"use strict";(self["webpackChunkbyte_sailing_mobile"]=self["webpackChunkbyte_sailing_mobile"]||[]).push([[6064],{34881:function(t,e,r){r.d(e,{BrowserMultiFormatReader:function(){return b}});r(57658);var n=r(66704),o=r(24772),i=r(85777),a=r(63992),s=r(6459),u=r(53706),c=(r(23767),r(8585),r(68696),r(59932)),h=r(6204),f=r(96148),l=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),d=function(t){function e(r){var n=t.call(this,r.width,r.height)||this;return n.canvas=r,n.tempCanvasElement=null,n.buffer=e.makeBufferFromCanvasImageData(r),n}return l(e,t),e.makeBufferFromCanvasImageData=function(t){var r=t.getContext("2d").getImageData(0,0,t.width,t.height);return e.toGrayscaleBuffer(r.data,t.width,t.height)},e.toGrayscaleBuffer=function(t,r,n){var o=new Uint8ClampedArray(r*n);if(e.FRAME_INDEX=!e.FRAME_INDEX,e.FRAME_INDEX)for(var i=0,a=0,s=t.length;i>10}o[a]=u}else{i=0,a=0;for(var d=t.length;i>10}o[a]=255-u}}return o},e.prototype.getRow=function(t,e){if(t<0||t>=this.getHeight())throw new f.Z("Requested row is outside the image: "+t);var r=this.getWidth(),n=t*r;return null===e?e=this.buffer.slice(n,n+r):(e.length0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},v=function(){function t(t,e,r){void 0===e&&(e=500),this.reader=t,this.timeBetweenScansMillis=e,this._hints=r,this._stopContinuousDecode=!1,this._stopAsyncDecode=!1,this._timeBetweenDecodingAttempts=0}return Object.defineProperty(t.prototype,"hasNavigator",{get:function(){return"undefined"!==typeof navigator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isMediaDevicesSuported",{get:function(){return this.hasNavigator&&!!navigator.mediaDevices},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canEnumerateDevices",{get:function(){return!(!this.isMediaDevicesSuported||!navigator.mediaDevices.enumerateDevices)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timeBetweenDecodingAttempts",{get:function(){return this._timeBetweenDecodingAttempts},set:function(t){this._timeBetweenDecodingAttempts=t<0?0:t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hints",{get:function(){return this._hints},set:function(t){this._hints=t||null},enumerable:!1,configurable:!0}),t.prototype.listVideoInputDevices=function(){return g(this,void 0,void 0,(function(){var t,e,r,n,o,i,a,s,u,c,h,f;return w(this,(function(l){switch(l.label){case 0:if(!this.hasNavigator)throw new Error("Can't enumerate devices, navigator is not present.");if(!this.canEnumerateDevices)throw new Error("Can't enumerate devices, method not supported.");return[4,navigator.mediaDevices.enumerateDevices()];case 1:t=l.sent(),e=[];try{for(r=y(t),n=r.next();!n.done;n=r.next())o=n.value,i="video"===o.kind?"videoinput":o.kind,"videoinput"===i&&(a=o.deviceId||o.id,s=o.label||"Video device "+(e.length+1),u=o.groupId,c={deviceId:a,label:s,kind:i,groupId:u},e.push(c))}catch(d){h={error:d}}finally{try{n&&!n.done&&(f=r.return)&&f.call(r)}finally{if(h)throw h.error}}return[2,e]}}))}))},t.prototype.getVideoInputDevices=function(){return g(this,void 0,void 0,(function(){var t;return w(this,(function(e){switch(e.label){case 0:return[4,this.listVideoInputDevices()];case 1:return t=e.sent(),[2,t.map((function(t){return new p(t.deviceId,t.label)}))]}}))}))},t.prototype.findDeviceById=function(t){return g(this,void 0,void 0,(function(){var e;return w(this,(function(r){switch(r.label){case 0:return[4,this.listVideoInputDevices()];case 1:return e=r.sent(),e?[2,e.find((function(e){return e.deviceId===t}))]:[2,null]}}))}))},t.prototype.decodeFromInputVideoDevice=function(t,e){return g(this,void 0,void 0,(function(){return w(this,(function(r){switch(r.label){case 0:return[4,this.decodeOnceFromVideoDevice(t,e)];case 1:return[2,r.sent()]}}))}))},t.prototype.decodeOnceFromVideoDevice=function(t,e){return g(this,void 0,void 0,(function(){var r,n;return w(this,(function(o){switch(o.label){case 0:return this.reset(),r=t?{deviceId:{exact:t}}:{facingMode:"environment"},n={video:r},[4,this.decodeOnceFromConstraints(n,e)];case 1:return[2,o.sent()]}}))}))},t.prototype.decodeOnceFromConstraints=function(t,e){return g(this,void 0,void 0,(function(){var r;return w(this,(function(n){switch(n.label){case 0:return[4,navigator.mediaDevices.getUserMedia(t)];case 1:return r=n.sent(),[4,this.decodeOnceFromStream(r,e)];case 2:return[2,n.sent()]}}))}))},t.prototype.decodeOnceFromStream=function(t,e){return g(this,void 0,void 0,(function(){var r,n;return w(this,(function(o){switch(o.label){case 0:return this.reset(),[4,this.attachStreamToVideo(t,e)];case 1:return r=o.sent(),[4,this.decodeOnce(r)];case 2:return n=o.sent(),[2,n]}}))}))},t.prototype.decodeFromInputVideoDeviceContinuously=function(t,e,r){return g(this,void 0,void 0,(function(){return w(this,(function(n){switch(n.label){case 0:return[4,this.decodeFromVideoDevice(t,e,r)];case 1:return[2,n.sent()]}}))}))},t.prototype.decodeFromVideoDevice=function(t,e,r){return g(this,void 0,void 0,(function(){var n,o;return w(this,(function(i){switch(i.label){case 0:return n=t?{deviceId:{exact:t}}:{facingMode:"environment"},o={video:n},[4,this.decodeFromConstraints(o,e,r)];case 1:return[2,i.sent()]}}))}))},t.prototype.decodeFromConstraints=function(t,e,r){return g(this,void 0,void 0,(function(){var n;return w(this,(function(o){switch(o.label){case 0:return[4,navigator.mediaDevices.getUserMedia(t)];case 1:return n=o.sent(),[4,this.decodeFromStream(n,e,r)];case 2:return[2,o.sent()]}}))}))},t.prototype.decodeFromStream=function(t,e,r){return g(this,void 0,void 0,(function(){var n;return w(this,(function(o){switch(o.label){case 0:return this.reset(),[4,this.attachStreamToVideo(t,e)];case 1:return n=o.sent(),[4,this.decodeContinuously(n,r)];case 2:return[2,o.sent()]}}))}))},t.prototype.stopAsyncDecode=function(){this._stopAsyncDecode=!0},t.prototype.stopContinuousDecode=function(){this._stopContinuousDecode=!0},t.prototype.attachStreamToVideo=function(t,e){return g(this,void 0,void 0,(function(){var r;return w(this,(function(n){switch(n.label){case 0:return r=this.prepareVideoElement(e),this.addVideoSource(r,t),this.videoElement=r,this.stream=t,[4,this.playVideoOnLoadAsync(r)];case 1:return n.sent(),[2,r]}}))}))},t.prototype.playVideoOnLoadAsync=function(t){var e=this;return new Promise((function(r,n){return e.playVideoOnLoad(t,(function(){return r()}))}))},t.prototype.playVideoOnLoad=function(t,e){var r=this;this.videoEndedListener=function(){return r.stopStreams()},this.videoCanPlayListener=function(){return r.tryPlayVideo(t)},t.addEventListener("ended",this.videoEndedListener),t.addEventListener("canplay",this.videoCanPlayListener),t.addEventListener("playing",e),this.tryPlayVideo(t)},t.prototype.isVideoPlaying=function(t){return t.currentTime>0&&!t.paused&&!t.ended&&t.readyState>2},t.prototype.tryPlayVideo=function(t){return g(this,void 0,void 0,(function(){return w(this,(function(e){switch(e.label){case 0:if(this.isVideoPlaying(t))return console.warn("Trying to play video that is already playing."),[2];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,t.play()];case 2:return e.sent(),[3,4];case 3:return e.sent(),console.warn("It was not possible to play the video."),[3,4];case 4:return[2]}}))}))},t.prototype.getMediaElement=function(t,e){var r=document.getElementById(t);if(!r)throw new n.Z("element with id '"+t+"' not found");if(r.nodeName.toLowerCase()!==e.toLowerCase())throw new n.Z("element with id '"+t+"' must be an "+e+" element");return r},t.prototype.decodeFromImage=function(t,e){if(!t&&!e)throw new n.Z("either imageElement with a src set or an url must be provided");return e&&!t?this.decodeFromImageUrl(e):this.decodeFromImageElement(t)},t.prototype.decodeFromVideo=function(t,e){if(!t&&!e)throw new n.Z("Either an element with a src set or an URL must be provided");return e&&!t?this.decodeFromVideoUrl(e):this.decodeFromVideoElement(t)},t.prototype.decodeFromVideoContinuously=function(t,e,r){if(void 0===t&&void 0===e)throw new n.Z("Either an element with a src set or an URL must be provided");return e&&!t?this.decodeFromVideoUrlContinuously(e,r):this.decodeFromVideoElementContinuously(t,r)},t.prototype.decodeFromImageElement=function(t){if(!t)throw new n.Z("An image element must be provided.");this.reset();var e,r=this.prepareImageElement(t);return this.imageElement=r,e=this.isImageLoaded(r)?this.decodeOnce(r,!1,!0):this._decodeOnLoadImage(r),e},t.prototype.decodeFromVideoElement=function(t){var e=this._decodeFromVideoElementSetup(t);return this._decodeOnLoadVideo(e)},t.prototype.decodeFromVideoElementContinuously=function(t,e){var r=this._decodeFromVideoElementSetup(t);return this._decodeOnLoadVideoContinuously(r,e)},t.prototype._decodeFromVideoElementSetup=function(t){if(!t)throw new n.Z("A video element must be provided.");this.reset();var e=this.prepareVideoElement(t);return this.videoElement=e,e},t.prototype.decodeFromImageUrl=function(t){if(!t)throw new n.Z("An URL must be provided.");this.reset();var e=this.prepareImageElement();this.imageElement=e;var r=this._decodeOnLoadImage(e);return e.src=t,r},t.prototype.decodeFromVideoUrl=function(t){if(!t)throw new n.Z("An URL must be provided.");this.reset();var e=this.prepareVideoElement(),r=this.decodeFromVideoElement(e);return e.src=t,r},t.prototype.decodeFromVideoUrlContinuously=function(t,e){if(!t)throw new n.Z("An URL must be provided.");this.reset();var r=this.prepareVideoElement(),o=this.decodeFromVideoElementContinuously(r,e);return r.src=t,o},t.prototype._decodeOnLoadImage=function(t){var e=this;return new Promise((function(r,n){e.imageLoadedListener=function(){return e.decodeOnce(t,!1,!0).then(r,n)},t.addEventListener("load",e.imageLoadedListener)}))},t.prototype._decodeOnLoadVideo=function(t){return g(this,void 0,void 0,(function(){return w(this,(function(e){switch(e.label){case 0:return[4,this.playVideoOnLoadAsync(t)];case 1:return e.sent(),[4,this.decodeOnce(t)];case 2:return[2,e.sent()]}}))}))},t.prototype._decodeOnLoadVideoContinuously=function(t,e){return g(this,void 0,void 0,(function(){return w(this,(function(r){switch(r.label){case 0:return[4,this.playVideoOnLoadAsync(t)];case 1:return r.sent(),this.decodeContinuously(t,e),[2]}}))}))},t.prototype.isImageLoaded=function(t){return!!t.complete&&0!==t.naturalWidth},t.prototype.prepareImageElement=function(t){var e;return"undefined"===typeof t&&(e=document.createElement("img"),e.width=200,e.height=200),"string"===typeof t&&(e=this.getMediaElement(t,"img")),t instanceof HTMLImageElement&&(e=t),e},t.prototype.prepareVideoElement=function(t){var e;return t||"undefined"===typeof document||(e=document.createElement("video"),e.width=200,e.height=200),"string"===typeof t&&(e=this.getMediaElement(t,"video")),t instanceof HTMLVideoElement&&(e=t),e.setAttribute("autoplay","true"),e.setAttribute("muted","true"),e.setAttribute("playsinline","true"),e},t.prototype.decodeOnce=function(t,e,r){var n=this;void 0===e&&(e=!0),void 0===r&&(r=!0),this._stopAsyncDecode=!1;var o=function(a,c){if(n._stopAsyncDecode)return c(new u.Z("Video stream has ended before any code could be detected.")),void(n._stopAsyncDecode=void 0);try{var h=n.decode(t);a(h)}catch(p){var f=e&&p instanceof u.Z,l=p instanceof i.Z||p instanceof s.Z,d=l&&r;if(f||d)return setTimeout(o,n._timeBetweenDecodingAttempts,a,c);c(p)}};return new Promise((function(t,e){return o(t,e)}))},t.prototype.decodeContinuously=function(t,e){var r=this;this._stopContinuousDecode=!1;var n=function(){if(r._stopContinuousDecode)r._stopContinuousDecode=void 0;else try{var o=r.decode(t);e(o,null),setTimeout(n,r.timeBetweenScansMillis)}catch(h){e(null,h);var a=h instanceof i.Z||h instanceof s.Z,c=h instanceof u.Z;(a||c)&&setTimeout(n,r._timeBetweenDecodingAttempts)}};n()},t.prototype.decode=function(t){var e=this.createBinaryBitmap(t);return this.decodeBitmap(e)},t.prototype.createBinaryBitmap=function(t){this.getCaptureCanvasContext(t);t instanceof HTMLVideoElement?this.drawFrameOnCanvas(t):this.drawImageOnCanvas(t);var e=this.getCaptureCanvas(t),r=new d(e),n=new a.Z(r);return new o.Z(n)},t.prototype.getCaptureCanvasContext=function(t){if(!this.captureCanvasContext){var e=this.getCaptureCanvas(t),r=void 0;try{r=e.getContext("2d",{willReadFrequently:!0})}catch(n){r=e.getContext("2d")}this.captureCanvasContext=r}return this.captureCanvasContext},t.prototype.getCaptureCanvas=function(t){if(!this.captureCanvas){var e=this.createCaptureCanvas(t);this.captureCanvas=e}return this.captureCanvas},t.prototype.drawFrameOnCanvas=function(t,e,r){void 0===e&&(e={sx:0,sy:0,sWidth:t.videoWidth,sHeight:t.videoHeight,dx:0,dy:0,dWidth:t.videoWidth,dHeight:t.videoHeight}),void 0===r&&(r=this.captureCanvasContext),r.drawImage(t,e.sx,e.sy,e.sWidth,e.sHeight,e.dx,e.dy,e.dWidth,e.dHeight)},t.prototype.drawImageOnCanvas=function(t,e,r){void 0===e&&(e={sx:0,sy:0,sWidth:t.naturalWidth,sHeight:t.naturalHeight,dx:0,dy:0,dWidth:t.naturalWidth,dHeight:t.naturalHeight}),void 0===r&&(r=this.captureCanvasContext),r.drawImage(t,e.sx,e.sy,e.sWidth,e.sHeight,e.dx,e.dy,e.dWidth,e.dHeight)},t.prototype.decodeBitmap=function(t){return this.reader.decode(t,this._hints)},t.prototype.createCaptureCanvas=function(t){if("undefined"===typeof document)return this._destroyCaptureCanvas(),null;var e,r,n=document.createElement("canvas");return"undefined"!==typeof t&&(t instanceof HTMLVideoElement?(e=t.videoWidth,r=t.videoHeight):t instanceof HTMLImageElement&&(e=t.naturalWidth||t.width,r=t.naturalHeight||t.height)),n.style.width=e+"px",n.style.height=r+"px",n.width=e,n.height=r,n},t.prototype.stopStreams=function(){this.stream&&(this.stream.getVideoTracks().forEach((function(t){return t.stop()})),this.stream=void 0),!1===this._stopAsyncDecode&&this.stopAsyncDecode(),!1===this._stopContinuousDecode&&this.stopContinuousDecode()},t.prototype.reset=function(){this.stopStreams(),this._destroyVideoElement(),this._destroyImageElement(),this._destroyCaptureCanvas()},t.prototype._destroyVideoElement=function(){this.videoElement&&("undefined"!==typeof this.videoEndedListener&&this.videoElement.removeEventListener("ended",this.videoEndedListener),"undefined"!==typeof this.videoPlayingEventListener&&this.videoElement.removeEventListener("playing",this.videoPlayingEventListener),"undefined"!==typeof this.videoCanPlayListener&&this.videoElement.removeEventListener("loadedmetadata",this.videoCanPlayListener),this.cleanVideoSource(this.videoElement),this.videoElement=void 0)},t.prototype._destroyImageElement=function(){this.imageElement&&(void 0!==this.imageLoadedListener&&this.imageElement.removeEventListener("load",this.imageLoadedListener),this.imageElement.src=void 0,this.imageElement.removeAttribute("src"),this.imageElement=void 0)},t.prototype._destroyCaptureCanvas=function(){this.captureCanvasContext=void 0,this.captureCanvas=void 0},t.prototype.addVideoSource=function(t,e){try{t.srcObject=e}catch(r){t.src=URL.createObjectURL(e)}},t.prototype.cleanVideoSource=function(t){try{t.srcObject=null}catch(e){t.src=""}this.videoElement.removeAttribute("src")},t}(),_=r(72990),C=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),A=(function(t){function e(e){return void 0===e&&(e=500),t.call(this,new _.Z,e)||this}C(e,t)}(v),r(32990)),m=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),E=(function(t){function e(e,r){return void 0===e&&(e=500),t.call(this,new A.Z(r),e,r)||this}m(e,t)}(v),r(10510)),I=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),S=(function(t){function e(e){return void 0===e&&(e=500),t.call(this,new E.Z,e)||this}I(e,t)}(v),r(33800)),T=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),b=function(t){function e(e,r){void 0===e&&(e=null),void 0===r&&(r=500);var n=this,o=new S.Z;return o.setHints(e),n=t.call(this,o,r)||this,n}return T(e,t),e.prototype.decodeBitmap=function(t){return this.reader.decodeWithState(t)},e}(v),O=r(26347),R=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),N=(function(t){function e(e){return void 0===e&&(e=500),t.call(this,new O.Z,e)||this}R(e,t)}(v),r(57889)),Z=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),D=(function(t){function e(e){return void 0===e&&(e=500),t.call(this,new N.Z,e)||this}Z(e,t)}(v),r(31984)),M=r(99188),P=r(93782),B=r(39605);(function(){function t(){}t.prototype.write=function(e,r,n,o){if(void 0===o&&(o=null),0===e.length)throw new f.Z("Found empty contents");if(r<0||n<0)throw new f.Z("Requested dimensions are too small: "+r+"x"+n);var i=P.Z.L,a=t.QUIET_ZONE_SIZE;null!==o&&(void 0!==o.get(D.Z.ERROR_CORRECTION)&&(i=P.Z.fromString(o.get(D.Z.ERROR_CORRECTION).toString())),void 0!==o.get(D.Z.MARGIN)&&(a=Number.parseInt(o.get(D.Z.MARGIN).toString(),10)));var s=M.Z.encode(e,i,o);return this.renderResult(s,r,n,a)},t.prototype.writeToDom=function(t,e,r,n,o){void 0===o&&(o=null),"string"===typeof t&&(t=document.querySelector(t));var i=this.write(e,r,n,o);t&&t.appendChild(i)},t.prototype.renderResult=function(t,e,r,n){var o=t.getMatrix();if(null===o)throw new B.Z;for(var i=o.getWidth(),a=o.getHeight(),s=i+2*n,u=a+2*n,c=Math.max(e,s),h=Math.max(r,u),f=Math.min(Math.floor(c/s),Math.floor(h/u)),l=Math.floor((c-i*f)/2),d=Math.floor((h-a*f)/2),p=this.createSVGElement(c,h),g=0,w=d;g=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},d=function(){function t(){}return t.prototype.decode=function(t,e){return this.setHints(e),this.decodeInternal(t)},t.prototype.decodeWithState=function(t){return null!==this.readers&&void 0!==this.readers||this.setHints(null),this.decodeInternal(t)},t.prototype.setHints=function(t){this.hints=t;var e=null!==t&&void 0!==t&&void 0!==t.get(n.Z.TRY_HARDER),r=null===t||void 0===t?null:t.get(n.Z.POSSIBLE_FORMATS),c=new Array;if(null!==r&&void 0!==r){var f=r.some((function(t){return t===o.Z.UPC_A||t===o.Z.UPC_E||t===o.Z.EAN_13||t===o.Z.EAN_8||t===o.Z.CODABAR||t===o.Z.CODE_39||t===o.Z.CODE_93||t===o.Z.CODE_128||t===o.Z.ITF||t===o.Z.RSS_14||t===o.Z.RSS_EXPANDED}));f&&!e&&c.push(new s.Z(t)),r.includes(o.Z.QR_CODE)&&c.push(new i.Z),r.includes(o.Z.DATA_MATRIX)&&c.push(new u.Z),r.includes(o.Z.AZTEC)&&c.push(new a.Z),r.includes(o.Z.PDF_417)&&c.push(new h.Z),f&&e&&c.push(new s.Z(t))}0===c.length&&(e||c.push(new s.Z(t)),c.push(new i.Z),c.push(new u.Z),c.push(new a.Z),c.push(new h.Z),e&&c.push(new s.Z(t))),this.readers=c},t.prototype.reset=function(){var t,e;if(null!==this.readers)try{for(var r=l(this.readers),n=r.next();!n.done;n=r.next()){var o=n.value;o.reset()}}catch(i){t={error:i}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}},t.prototype.decodeInternal=function(t){var e,r;if(null===this.readers)throw new f.Z("No readers where selected, nothing can be read.");try{for(var n=l(this.readers),o=n.next();!o.done;o=n.next()){var i=o.value;try{return i.decode(t,this.hints)}catch(a){if(a instanceof f.Z)continue}}}catch(s){e={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}throw new c.Z("No MultiFormat Readers were able to detect the code.")},t}();e["Z"]=d},54152:function(t,e,r){var n=r(84163),o=r(91373),i=r(96148);(function(){function t(){}t.prototype.encode=function(t,e,r,a,s){var u;switch(e){case o.Z.QR_CODE:u=new n.Z;break;default:throw new i.Z("No encoder available for format "+e)}return u.encode(t,e,r,a,s)}})()},53706:function(t,e,r){var n=r(59707),o=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.getNotFoundInstance=function(){return new e},e.kind="NotFoundException",e}(n.Z);e["Z"]=i},23562:function(t,e,r){r(23767),r(8585),r(68696);var n=r(98090),o=r(6204),i=r(59932),a=r(96148),s=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();(function(t){function e(e,r,n,o,i,s,u,c){var h=t.call(this,s,u)||this;if(h.yuvData=e,h.dataWidth=r,h.dataHeight=n,h.left=o,h.top=i,o+s>r||i+u>n)throw new a.Z("Crop rectangle does not fit within image data.");return c&&h.reverseHorizontal(s,u),h}s(e,t),e.prototype.getRow=function(t,e){if(t<0||t>=this.getHeight())throw new a.Z("Requested row is outside the image: "+t);var r=this.getWidth();(null===e||void 0===e||e.length>16&255,g=d>>7&510,w=255&d;f[l]=(p+g+w)/4&255}c.luminances=f}else c.luminances=e;if(void 0===o&&(c.dataWidth=r),void 0===i&&(c.dataHeight=n),void 0===s&&(c.left=0),void 0===u&&(c.top=0),c.left+r>c.dataWidth||c.top+n>c.dataHeight)throw new a.Z("Crop rectangle does not fit within image data.");return c}s(e,t),e.prototype.getRow=function(t,e){if(t<0||t>=this.getHeight())throw new a.Z("Requested row is outside the image: "+t);var r=this.getWidth();(null===e||void 0===e||e.length0){var r=new Array(e.length+t.length);n.Z.arraycopy(e,0,r,0,e.length),n.Z.arraycopy(t,0,r,e.length,t.length),this.resultPoints=r}},t.prototype.getTimestamp=function(){return this.timestamp},t.prototype.toString=function(){return this.text},t}();e["Z"]=o},69153:function(t,e){var r;(function(t){t[t["OTHER"]=0]="OTHER",t[t["ORIENTATION"]=1]="ORIENTATION",t[t["BYTE_SEGMENTS"]=2]="BYTE_SEGMENTS",t[t["ERROR_CORRECTION_LEVEL"]=3]="ERROR_CORRECTION_LEVEL",t[t["ISSUE_NUMBER"]=4]="ISSUE_NUMBER",t[t["SUGGESTED_PRICE"]=5]="SUGGESTED_PRICE",t[t["POSSIBLE_COUNTRY"]=6]="POSSIBLE_COUNTRY",t[t["UPC_EAN_EXTENSION"]=7]="UPC_EAN_EXTENSION",t[t["PDF417_EXTRA_METADATA"]=8]="PDF417_EXTRA_METADATA",t[t["STRUCTURED_APPEND_SEQUENCE"]=9]="STRUCTURED_APPEND_SEQUENCE",t[t["STRUCTURED_APPEND_PARITY"]=10]="STRUCTURED_APPEND_PARITY"})(r||(r={})),e["Z"]=r},69728:function(t,e,r){var n=r(61997),o=r(51322),i=function(){function t(t,e){this.x=t,this.y=e}return t.prototype.getX=function(){return this.x},t.prototype.getY=function(){return this.y},t.prototype.equals=function(e){if(e instanceof t){var r=e;return this.x===r.x&&this.y===r.y}return!1},t.prototype.hashCode=function(){return 31*o.Z.floatToIntBits(this.x)+o.Z.floatToIntBits(this.y)},t.prototype.toString=function(){return"("+this.x+","+this.y+")"},t.orderBestPatterns=function(t){var e,r,n,o=this.distance(t[0],t[1]),i=this.distance(t[1],t[2]),a=this.distance(t[0],t[2]);if(i>=o&&i>=a?(r=t[0],e=t[1],n=t[2]):a>=i&&a>=o?(r=t[1],e=t[0],n=t[2]):(r=t[2],e=t[0],n=t[1]),this.crossProductZ(e,r,n)<0){var s=e;e=n,n=s}t[0]=e,t[1]=r,t[2]=n},t.distance=function(t,e){return n.Z.distance(t.x,t.y,e.x,e.y)},t.crossProductZ=function(t,e,r){var n=e.x,o=e.y;return(r.x-n)*(t.y-o)-(r.y-o)*(t.x-n)},t}();e["Z"]=i},18545:function(t,e,r){var n=r(59707),o=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.kind="UnsupportedOperationException",e}(n.Z);e["Z"]=i},60597:function(t,e,r){var n=r(59707),o=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.kind="WriterException",e}(n.Z);e["Z"]=i},90136:function(t,e,r){var n=r(86071),o=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),i=function(t){function e(e,r,n,o,i){var a=t.call(this,e,r)||this;return a.compact=n,a.nbDatablocks=o,a.nbLayers=i,a}return o(e,t),e.prototype.getNbLayers=function(){return this.nbLayers},e.prototype.getNbDatablocks=function(){return this.nbDatablocks},e.prototype.isCompact=function(){return this.compact},e}(n.Z);e["Z"]=i},72990:function(t,e,r){var n=r(54739),o=r(91373),i=r(80206),a=r(69153),s=r(98090),u=r(18155),c=r(53418),h=function(){function t(){}return t.prototype.decode=function(t,e){void 0===e&&(e=null);var r=null,i=new c.Z(t.getBlackMatrix()),h=null,f=null;try{var l=i.detectMirror(!1);h=l.getPoints(),this.reportFoundResultPoints(e,h),f=(new u.Z).decode(l)}catch(w){r=w}if(null==f)try{l=i.detectMirror(!0);h=l.getPoints(),this.reportFoundResultPoints(e,h),f=(new u.Z).decode(l)}catch(w){if(null!=r)throw r;throw w}var d=new n.Z(f.getText(),f.getRawBytes(),f.getNumBits(),h,o.Z.AZTEC,s.Z.currentTimeMillis()),p=f.getByteSegments();null!=p&&d.putMetadata(a.Z.BYTE_SEGMENTS,p);var g=f.getECLevel();return null!=g&&d.putMetadata(a.Z.ERROR_CORRECTION_LEVEL,g),d},t.prototype.reportFoundResultPoints=function(t,e){if(null!=t){var r=t.get(i.Z.NEED_RESULT_POINT_CALLBACK);null!=r&&e.forEach((function(t,e,n){r.foundPossibleResultPoint(t)}))}},t.prototype.reset=function(){},t}();e["Z"]=h},95445:function(t,e,r){var n=r(91373),o=r(31984),i=r(47839),a=r(33954),s=r(80426),u=r(60082),c=r(87489),h=r(39605),f=r(96148),l=r(72868);(function(){function t(){}t.prototype.encode=function(t,e,r,n){return this.encodeWithHints(t,e,r,n,null)},t.prototype.encodeWithHints=function(e,r,n,a,h){var f=u.Z.ISO_8859_1,l=i.Z.DEFAULT_EC_PERCENT,d=i.Z.DEFAULT_AZTEC_LAYERS;return null!=h&&(h.has(o.Z.CHARACTER_SET)&&(f=s.Z.forName(h.get(o.Z.CHARACTER_SET).toString())),h.has(o.Z.ERROR_CORRECTION)&&(l=c.Z.parseInt(h.get(o.Z.ERROR_CORRECTION).toString())),h.has(o.Z.AZTEC_LAYERS)&&(d=c.Z.parseInt(h.get(o.Z.AZTEC_LAYERS).toString()))),t.encodeLayers(e,r,n,a,f,l,d)},t.encodeLayers=function(e,r,o,a,s,u,c){if(r!==n.Z.AZTEC)throw new f.Z("Can only encode AZTEC, but got "+r);var h=i.Z.encode(l.Z.getBytes(e,s),u,c);return t.renderResult(h,o,a)},t.renderResult=function(t,e,r){var n=t.getMatrix();if(null==n)throw new h.Z;for(var o=n.getWidth(),i=n.getHeight(),s=Math.max(e,o),u=Math.max(r,i),c=Math.min(s/o,u/i),f=(s-o*c)/2,l=(u-i*c)/2,d=new a.Z(s,u),p=0,g=l;p1,y,y+n-1),y+=n-1;else for(var v=n-1;v>=0;--v)w[y++]=0!==(g&1<=8?t.readCode(e,r,8):t.readCode(e,r,n)<<8-n},t.convertBoolArrayToByteArray=function(e){for(var r=new Uint8Array((e.length+7)/8),n=0;n","?","[","]","{","}","CTRL_UL"],t.DIGIT_TABLE=["CTRL_PS"," ","0","1","2","3","4","5","6","7","8","9",",",".","CTRL_UL","CTRL_US"],t}();e["Z"]=f},53418:function(t,e,r){r(23767),r(8585),r(68696);var n=r(69728),o=r(90136),i=r(61997),a=r(18153),s=r(69268),u=r(38589),c=r(53706),h=r(73848),f=r(87489),l=function(){function t(t,e){this.x=t,this.y=e}return t.prototype.toResultPoint=function(){return new n.Z(this.getX(),this.getY())},t.prototype.getX=function(){return this.x},t.prototype.getY=function(){return this.y},t}(),d=function(){function t(t){this.EXPECTED_CORNER_BITS=new Int32Array([3808,476,2107,1799]),this.image=t}return t.prototype.detect=function(){return this.detectMirror(!1)},t.prototype.detectMirror=function(t){var e=this.getMatrixCenter(),r=this.getBullsEyeCorners(e);if(t){var n=r[0];r[0]=r[2],r[2]=n}this.extractParameters(r);var i=this.sampleGrid(this.image,r[this.shift%4],r[(this.shift+1)%4],r[(this.shift+2)%4],r[(this.shift+3)%4]),a=this.getMatrixCornerPoints(r);return new o.Z(i,a,this.compact,this.nbDataBlocks,this.nbLayers)},t.prototype.extractParameters=function(t){if(!this.isValidPoint(t[0])||!this.isValidPoint(t[1])||!this.isValidPoint(t[2])||!this.isValidPoint(t[3]))throw new c.Z;var e=2*this.nbCenterLayers,r=new Int32Array([this.sampleLine(t[0],t[1],e),this.sampleLine(t[1],t[2],e),this.sampleLine(t[2],t[3],e),this.sampleLine(t[3],t[0],e)]);this.shift=this.getRotation(r,e);for(var n=0,o=0;o<4;o++){var i=r[(this.shift+o)%4];this.compact?(n<<=7,n+=i>>1&127):(n<<=10,n+=(i>>2&992)+(i>>1&31))}var a=this.getCorrectedParameterData(n,this.compact);this.compact?(this.nbLayers=1+(a>>6),this.nbDataBlocks=1+(63&a)):(this.nbLayers=1+(a>>11),this.nbDataBlocks=1+(2047&a))},t.prototype.getRotation=function(t,e){var r=0;t.forEach((function(t,n,o){var i=(t>>e-2<<1)+(1&t);r=(r<<3)+i})),r=((1&r)<<11)+(r>>1);for(var n=0;n<4;n++)if(f.Z.bitCount(r^this.EXPECTED_CORNER_BITS[n])<=2)return n;throw new c.Z},t.prototype.getCorrectedParameterData=function(t,e){var r,n;e?(r=7,n=2):(r=10,n=4);for(var o=r-n,i=new Int32Array(r),a=r-1;a>=0;--a)i[a]=15&t,t>>=4;try{var h=new u.Z(s.Z.AZTEC_PARAM);h.decode(i,o)}catch(l){throw new c.Z}var f=0;for(a=0;a2){var l=this.distancePoint(f,s)*this.nbCenterLayers/(this.distancePoint(i,e)*(this.nbCenterLayers+2));if(l<.75||l>1.25||!this.isWhiteOrBlackRectangle(s,u,h,f))break}e=s,r=u,o=h,i=f,a=!a}if(5!==this.nbCenterLayers&&7!==this.nbCenterLayers)throw new c.Z;this.compact=5===this.nbCenterLayers;var d=new n.Z(e.getX()+.5,e.getY()-.5),p=new n.Z(r.getX()+.5,r.getY()+.5),g=new n.Z(o.getX()-.5,o.getY()+.5),w=new n.Z(i.getX()-.5,i.getY()-.5);return this.expandSquare([d,p,g,w],2*this.nbCenterLayers-3,2*this.nbCenterLayers)},t.prototype.getMatrixCenter=function(){var t,e,r,n;try{var o=new a.Z(this.image).detect();t=o[0],e=o[1],r=o[2],n=o[3]}catch(f){var s=this.image.getWidth()/2,u=this.image.getHeight()/2;t=this.getFirstDifferent(new l(s+7,u-7),!1,1,-1).toResultPoint(),e=this.getFirstDifferent(new l(s+7,u+7),!1,1,1).toResultPoint(),r=this.getFirstDifferent(new l(s-7,u+7),!1,-1,1).toResultPoint(),n=this.getFirstDifferent(new l(s-7,u-7),!1,-1,-1).toResultPoint()}var c=i.Z.round((t.getX()+n.getX()+e.getX()+r.getX())/4),h=i.Z.round((t.getY()+n.getY()+e.getY()+r.getY())/4);try{o=new a.Z(this.image,15,c,h).detect();t=o[0],e=o[1],r=o[2],n=o[3]}catch(f){t=this.getFirstDifferent(new l(c+7,h-7),!1,1,-1).toResultPoint(),e=this.getFirstDifferent(new l(c+7,h+7),!1,1,1).toResultPoint(),r=this.getFirstDifferent(new l(c-7,h+7),!1,-1,1).toResultPoint(),n=this.getFirstDifferent(new l(c-7,h-7),!1,-1,-1).toResultPoint()}return c=i.Z.round((t.getX()+n.getX()+e.getX()+r.getX())/4),h=i.Z.round((t.getY()+n.getY()+e.getY()+r.getY())/4),new l(c,h)},t.prototype.getMatrixCornerPoints=function(t){return this.expandSquare(t,2*this.nbCenterLayers,this.getDimension())},t.prototype.sampleGrid=function(t,e,r,n,o){var i=h.Z.getInstance(),a=this.getDimension(),s=a/2-this.nbCenterLayers,u=a/2+this.nbCenterLayers;return i.sampleGrid(t,a,a,s,s,u,s,u,u,s,u,e.getX(),e.getY(),r.getX(),r.getY(),n.getX(),n.getY(),o.getX(),o.getY())},t.prototype.sampleLine=function(t,e,r){for(var n=0,o=this.distanceResultPoint(t,e),a=o/r,s=t.getX(),u=t.getY(),c=a*(e.getX()-t.getX())/o,h=a*(e.getY()-t.getY())/o,f=0;f.1&&l<.9?0:l<=.1===c?1:-1},t.prototype.getFirstDifferent=function(t,e,r,n){var o=t.getX()+r,i=t.getY()+n;while(this.isValid(o,i)&&this.image.get(o,i)===e)o+=r,i+=n;o-=r,i-=n;while(this.isValid(o,i)&&this.image.get(o,i)===e)o+=r;o-=r;while(this.isValid(o,i)&&this.image.get(o,i)===e)i+=n;return i-=n,new l(o,i)},t.prototype.expandSquare=function(t,e,r){var o=r/(2*e),i=t[0].getX()-t[2].getX(),a=t[0].getY()-t[2].getY(),s=(t[0].getX()+t[2].getX())/2,u=(t[0].getY()+t[2].getY())/2,c=new n.Z(s+o*i,u+o*a),h=new n.Z(s-o*i,u-o*a);i=t[1].getX()-t[3].getX(),a=t[1].getY()-t[3].getY(),s=(t[1].getX()+t[3].getX())/2,u=(t[1].getY()+t[3].getY())/2;var f=new n.Z(s+o*i,u+o*a),l=new n.Z(s-o*i,u-o*a),d=[c,f,h,l];return d},t.prototype.isValid=function(t,e){return t>=0&&t0&&e=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},d=function(){function t(){}return t.encodeBytes=function(e){return t.encode(e,t.DEFAULT_EC_PERCENT,t.DEFAULT_AZTEC_LAYERS)},t.encode=function(e,r,n){var u,c,l,d,p,g=new h.Z(e).encode(),w=f.Z.truncDivision(g.getSize()*r,100)+11,y=g.getSize()+w;if(n!==t.DEFAULT_AZTEC_LAYERS){if(u=n<0,c=Math.abs(n),c>(u?t.MAX_NB_BITS_COMPACT:t.MAX_NB_BITS))throw new o.Z(i.Z.format("Illegal value %s for layers",n));l=t.totalBitsInLayer(c,u),d=t.WORD_SIZE[c];var v=l-l%d;if(p=t.stuffBits(g,d),p.getSize()+w>v)throw new o.Z("Data to large for user specified layer");if(u&&p.getSize()>64*d)throw new o.Z("Data to large for user specified layer")}else{d=0,p=null;for(var _=0;;_++){if(_>t.MAX_NB_BITS)throw new o.Z("Data too large for an Aztec code");if(u=_<=3,c=u?_+1:_,l=t.totalBitsInLayer(c,u),!(y>l)){null!=p&&d===t.WORD_SIZE[c]||(d=t.WORD_SIZE[c],p=t.stuffBits(g,d));v=l-l%d;if(!(u&&p.getSize()>64*d)&&p.getSize()+w<=v)break}}}var C,A=t.generateCheckWords(p,l,d),m=p.getSize()/d,E=t.generateModeMessage(u,c,m),I=(u?11:14)+4*c,S=new Int32Array(I);if(u){C=I;for(_=0;_=o||t.get(a+u))&&(s|=1<"},e}(s),f=h,l=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),d=function(t){function e(e,r,n){var o=t.call(this,e,0,0)||this;return o.binaryShiftStart=r,o.binaryShiftByteCount=n,o}return l(e,t),e.prototype.appendTo=function(t,e){for(var r=0;r62?t.appendBits(this.binaryShiftByteCount-31,16):0===r?t.appendBits(Math.min(this.binaryShiftByteCount,31),5):t.appendBits(this.binaryShiftByteCount-31,5)),t.appendBits(e[this.binaryShiftStart+r],8)},e.prototype.addBinaryShift=function(t,r){return new e(this,t,r)},e.prototype.toString=function(){return"<"+this.binaryShiftStart+"::"+(this.binaryShiftStart+this.binaryShiftByteCount-1)+">"},e}(f),p=d;function g(t,e,r){return new p(t,e,r)}function w(t,e,r){return new f(t,e,r)}var y=["UPPER","LOWER","DIGIT","MIXED","PUNCT"],v=0,_=1,C=2,A=3,m=4,E=new f(null,0,0),I=(r(23767),r(8585),r(68696),[Int32Array.from([0,327708,327710,327709,656318]),Int32Array.from([590318,0,327710,327709,656318]),Int32Array.from([262158,590300,0,590301,932798]),Int32Array.from([327709,327708,656318,0,327710]),Int32Array.from([327711,656380,656382,656381,0])]),S=r(54671),T=function(t){var e="function"===typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function b(t){var e,r;try{for(var n=T(t),o=n.next();!o.done;o=n.next()){var i=o.value;S.Z.fill(i,-1)}}catch(a){e={error:a}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}return t[v][m]=0,t[_][m]=0,t[_][v]=28,t[A][m]=0,t[C][m]=0,t[C][v]=15,t}var O=b(S.Z.createInt32Array(6,6)),R=r(72868),N=function(t){var e="function"===typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Z=function(){function t(t,e,r,n){this.token=t,this.mode=e,this.binaryShiftByteCount=r,this.bitCount=n}return t.prototype.getMode=function(){return this.mode},t.prototype.getToken=function(){return this.token},t.prototype.getBinaryShiftByteCount=function(){return this.binaryShiftByteCount},t.prototype.getBitCount=function(){return this.bitCount},t.prototype.latchAndAppend=function(e,r){var n=this.bitCount,o=this.token;if(e!==this.mode){var i=I[this.mode][e];o=w(o,65535&i,i>>16),n+=i>>16}var a=e===C?4:5;return o=w(o,r,a),new t(o,e,0,n+a)},t.prototype.shiftAndAppend=function(e,r){var n=this.token,o=this.mode===C?4:5;return n=w(n,O[this.mode][e],o),n=w(n,r,5),new t(n,this.mode,0,this.bitCount+o+5)},t.prototype.addBinaryShiftChar=function(e){var r=this.token,n=this.mode,o=this.bitCount;if(this.mode===m||this.mode===C){var i=I[n][v];r=w(r,65535&i,i>>16),o+=i>>16,n=v}var a=0===this.binaryShiftByteCount||31===this.binaryShiftByteCount?18:62===this.binaryShiftByteCount?9:8,s=new t(r,n,this.binaryShiftByteCount+1,o+a);return 2078===s.binaryShiftByteCount&&(s=s.endBinaryShift(e+1)),s},t.prototype.endBinaryShift=function(e){if(0===this.binaryShiftByteCount)return this;var r=this.token;return r=g(r,e-this.binaryShiftByteCount,this.binaryShiftByteCount),new t(r,this.mode,0,this.bitCount)},t.prototype.isBetterThanOrEqualTo=function(e){var r=this.bitCount+(I[this.mode][e.mode]>>16);return this.binaryShiftByteCounte.binaryShiftByteCount&&e.binaryShiftByteCount>0&&(r+=10),r<=e.bitCount},t.prototype.toBitArray=function(t){for(var e,r,n=[],o=this.endBinaryShift(t.length).token;null!==o;o=o.getPrevious())n.unshift(o);var a=new i.Z;try{for(var s=N(n),u=s.next();!u.done;u=s.next()){var c=u.value;c.appendTo(a,t)}}catch(h){e={error:h}}finally{try{u&&!u.done&&(r=s.return)&&r.call(s)}finally{if(e)throw e.error}}return a},t.prototype.toString=function(){return R.Z.format("%s bits=%d bytes=%d",y[this.mode],this.bitCount,this.binaryShiftByteCount)},t.calculateBinaryShiftCost=function(t){return t.binaryShiftByteCount>62?21:t.binaryShiftByteCount>31?20:t.binaryShiftByteCount>0?10:0},t.INITIAL_STATE=new t(E,v,0,0),t}(),D=Z;function M(t){var e=R.Z.getCharCode(" "),r=R.Z.getCharCode("."),n=R.Z.getCharCode(",");t[v][e]=1;for(var o=R.Z.getCharCode("Z"),i=R.Z.getCharCode("A"),a=i;a<=o;a++)t[v][a]=a-i+2;t[_][e]=1;var s=R.Z.getCharCode("z"),u=R.Z.getCharCode("a");for(a=u;a<=s;a++)t[_][a]=a-u+2;t[C][e]=1;var c=R.Z.getCharCode("9"),h=R.Z.getCharCode("0");for(a=h;a<=c;a++)t[C][a]=a-h+2;t[C][n]=12,t[C][r]=13;for(var f=["\0"," ","","","","","","","","\b","\t","\n","\v","\f","\r","","","","","","@","\\","^","_","`","|","~",""],l=0;l","?","[","]","{","}"];for(l=0;l0&&(t[m][R.Z.getCharCode(d[l])]=l);return t}var P=M(S.Z.createInt32Array(5,256)),B=function(t){var e="function"===typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},L=function(){function t(t){this.text=t}return t.prototype.encode=function(){for(var e=R.Z.getCharCode(" "),r=R.Z.getCharCode("\n"),n=o.singletonList(D.INITIAL_STATE),i=0;i0?(n=t.updateStateListForPair(n,i,a),i++):n=this.updateStateListForChar(n,i)}var u=o.min(n,(function(t,e){return t.getBitCount()-e.getBitCount()}));return u.toBitArray(this.text)},t.prototype.updateStateListForChar=function(e,r){var n,o,i=[];try{for(var a=B(e),s=a.next();!s.done;s=a.next()){var u=s.value;this.updateStateForChar(u,r,i)}}catch(c){n={error:c}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}return t.simplifyStates(i)},t.prototype.updateStateForChar=function(t,e,r){for(var n=255&this.text[e],o=P[t.getMode()][n]>0,i=null,a=0;a<=m;a++){var s=P[a][n];if(s>0){if(null==i&&(i=t.endBinaryShift(e)),!o||a===t.getMode()||a===C){var u=i.latchAndAppend(a,s);r.push(u)}if(!o&&O[t.getMode()][a]>=0){var c=i.shiftAndAppend(a,s);r.push(c)}}}if(t.getBinaryShiftByteCount()>0||0===P[t.getMode()][n]){var h=t.addBinaryShiftChar(e);r.push(h)}},t.updateStateListForPair=function(t,e,r){var n,o,i=[];try{for(var a=B(t),s=a.next();!s.done;s=a.next()){var u=s.value;this.updateStateForPair(u,e,r,i)}}catch(c){n={error:c}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}return this.simplifyStates(i)},t.updateStateForPair=function(t,e,r,n){var o=t.endBinaryShift(e);if(n.push(o.latchAndAppend(m,r)),t.getMode()!==m&&n.push(o.shiftAndAppend(m,r)),3===r||4===r){var i=o.latchAndAppend(C,16-r).latchAndAppend(C,1);n.push(i)}if(t.getBinaryShiftByteCount()>0){var a=t.addBinaryShiftChar(e).addBinaryShiftChar(e+1);n.push(a)}},t.simplifyStates=function(t){var e,r,n,o,i=[];try{for(var a=B(t),s=a.next();!s.done;s=a.next()){var u=s.value,c=!0,h=function(t){if(t.isBetterThanOrEqualTo(u))return c=!1,"break";u.isBetterThanOrEqualTo(t)&&(i=i.filter((function(e){return e!==t})))};try{for(var f=(n=void 0,B(i)),l=f.next();!l.done;l=f.next()){var d=l.value,p=h(d);if("break"===p)break}}catch(g){n={error:g}}finally{try{l&&!l.done&&(o=f.return)&&o.call(f)}finally{if(n)throw n.error}}c&&i.push(u)}}catch(w){e={error:w}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}return i},t}(),F=L},53550:function(t,e,r){r(23767),r(8585),r(68696),r(57658);var n=r(96148),o=r(54671),i=r(87489),a=r(98090),s=function(){function t(e,r){void 0===e?(this.size=0,this.bits=new Int32Array(1)):(this.size=e,this.bits=void 0===r||null===r?t.makeArray(e):r)}return t.prototype.getSize=function(){return this.size},t.prototype.getSizeInBytes=function(){return Math.floor((this.size+7)/8)},t.prototype.ensureCapacity=function(e){if(e>32*this.bits.length){var r=t.makeArray(e);a.Z.arraycopy(this.bits,0,r,0,this.bits.length),this.bits=r}},t.prototype.get=function(t){return 0!==(this.bits[Math.floor(t/32)]&1<<(31&t))},t.prototype.set=function(t){this.bits[Math.floor(t/32)]|=1<<(31&t)},t.prototype.flip=function(t){this.bits[Math.floor(t/32)]^=1<<(31&t)},t.prototype.getNextSet=function(t){var e=this.size;if(t>=e)return e;var r=this.bits,n=Math.floor(t/32),o=r[n];o&=~((1<<(31&t))-1);var a=r.length;while(0===o){if(++n===a)return e;o=r[n]}var s=32*n+i.Z.numberOfTrailingZeros(o);return s>e?e:s},t.prototype.getNextUnset=function(t){var e=this.size;if(t>=e)return e;var r=this.bits,n=Math.floor(t/32),o=~r[n];o&=~((1<<(31&t))-1);var a=r.length;while(0===o){if(++n===a)return e;o=~r[n]}var s=32*n+i.Z.numberOfTrailingZeros(o);return s>e?e:s},t.prototype.setBulk=function(t,e){this.bits[Math.floor(t/32)]=e},t.prototype.setRange=function(t,e){if(ethis.size)throw new n.Z;if(e!==t){e--;for(var r=Math.floor(t/32),o=Math.floor(e/32),i=this.bits,a=r;a<=o;a++){var s=a>r?0:31&t,u=athis.size)throw new n.Z;if(e===t)return!0;e--;for(var o=Math.floor(t/32),i=Math.floor(e/32),a=this.bits,s=o;s<=i;s++){var u=s>o?0:31&t,c=s32)throw new n.Z("Num bits must be between 0 and 32");this.ensureCapacity(this.size+e);for(var r=e;r>0;r--)this.appendBit(1===(t>>r-1&1))},t.prototype.appendBitArray=function(t){var e=t.size;this.ensureCapacity(this.size+e);for(var r=0;r>1&1431655765|(1431655765&i)<<1,i=i>>2&858993459|(858993459&i)<<2,i=i>>4&252645135|(252645135&i)<<4,i=i>>8&16711935|(16711935&i)<<8,i=i>>16&65535|(65535&i)<<16,t[e-o]=i}if(this.size!==32*r){var a=32*r-this.size,s=t[0]>>>a;for(o=1;o>>a}t[r-1]=s}this.bits=t},t.makeArray=function(t){return new Int32Array(Math.floor((t+31)/32))},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var r=e;return this.size===r.size&&o.Z.equals(this.bits,r.bits)},t.prototype.hashCode=function(){return 31*this.size+o.Z.hashCode(this.bits)},t.prototype.toString=function(){for(var t="",e=0,r=this.size;ea){if(-1===u)u=i-a;else if(i-a!==u)throw new s.Z("row lengths do not match");a=i,c++}h++}else if(e.substring(h,h+r.length)===r)h+=r.length,o[i]=!0,i++;else{if(e.substring(h,h+n.length)!==n)throw new s.Z("illegal character encountered: "+e.substring(h));h+=n.length,o[i]=!1,i++}if(i>a){if(-1===u)u=i-a;else if(i-a!==u)throw new s.Z("row lengths do not match");c++}for(var f=new t(u,c),l=0;l>>(31&t)&1)},t.prototype.set=function(t,e){var r=e*this.rowSize+Math.floor(t/32);this.bits[r]|=1<<(31&t)&4294967295},t.prototype.unset=function(t,e){var r=e*this.rowSize+Math.floor(t/32);this.bits[r]&=~(1<<(31&t)&4294967295)},t.prototype.flip=function(t,e){var r=e*this.rowSize+Math.floor(t/32);this.bits[r]^=1<<(31&t)&4294967295},t.prototype.xor=function(t){if(this.width!==t.getWidth()||this.height!==t.getHeight()||this.rowSize!==t.getRowSize())throw new s.Z("input matrix dimensions do not match");for(var e=new n.Z(Math.floor(this.width/32)+1),r=this.rowSize,o=this.bits,i=0,a=this.height;ithis.height||o>this.width)throw new s.Z("The region must fit inside the matrix");for(var a=this.rowSize,u=this.bits,c=e;cs&&(s=u),32*ca){f=31;while(h>>>f===0)f--;32*c+f>a&&(a=32*c+f)}}}return a=0&&0===e[r])r--;if(r<0)return null;var n=Math.floor(r/t),o=32*Math.floor(r%t),i=e[r],a=31;while(i>>>a===0)a--;return o+=a,Int32Array.from([o,n])},t.prototype.getWidth=function(){return this.width},t.prototype.getHeight=function(){return this.height},t.prototype.getRowSize=function(){return this.rowSize},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var r=e;return this.width===r.width&&this.height===r.height&&this.rowSize===r.rowSize&&i.Z.equals(this.bits,r.bits)},t.prototype.hashCode=function(){var t=this.width;return t=31*t+this.width,t=31*t+this.height,t=31*t+this.rowSize,t=31*t+i.Z.hashCode(this.bits),t},t.prototype.toString=function(t,e,r){return void 0===t&&(t="X "),void 0===e&&(e=" "),void 0===r&&(r="\n"),this.buildToString(t,e,r)},t.prototype.buildToString=function(t,e,r){for(var n=new a.Z,o=0,i=this.height;o32||t>this.available())throw new n.Z(""+t);var e=0,r=this.bitOffset,o=this.byteOffset,i=this.bytes;if(r>0){var a=8-r,s=t>8-s<>u,t-=s,r+=s,8===r&&(r=0,o++)}if(t>0){while(t>=8)e=e<<8|255&i[o],o++,t-=8;if(t>0){u=8-t,c=255>>u<>u,r+=t}}return this.bitOffset=r,this.byteOffset=o,e},t.prototype.available=function(){return 8*(this.bytes.length-this.byteOffset)-this.bitOffset},t}();e["Z"]=o},5687:function(t,e,r){r(23767),r(8585),r(68696);var n,o=r(6459),i=function(t){var e="function"===typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};(function(t){t[t["Cp437"]=0]="Cp437",t[t["ISO8859_1"]=1]="ISO8859_1",t[t["ISO8859_2"]=2]="ISO8859_2",t[t["ISO8859_3"]=3]="ISO8859_3",t[t["ISO8859_4"]=4]="ISO8859_4",t[t["ISO8859_5"]=5]="ISO8859_5",t[t["ISO8859_6"]=6]="ISO8859_6",t[t["ISO8859_7"]=7]="ISO8859_7",t[t["ISO8859_8"]=8]="ISO8859_8",t[t["ISO8859_9"]=9]="ISO8859_9",t[t["ISO8859_10"]=10]="ISO8859_10",t[t["ISO8859_11"]=11]="ISO8859_11",t[t["ISO8859_13"]=12]="ISO8859_13",t[t["ISO8859_14"]=13]="ISO8859_14",t[t["ISO8859_15"]=14]="ISO8859_15",t[t["ISO8859_16"]=15]="ISO8859_16",t[t["SJIS"]=16]="SJIS",t[t["Cp1250"]=17]="Cp1250",t[t["Cp1251"]=18]="Cp1251",t[t["Cp1252"]=19]="Cp1252",t[t["Cp1256"]=20]="Cp1256",t[t["UnicodeBigUnmarked"]=21]="UnicodeBigUnmarked",t[t["UTF8"]=22]="UTF8",t[t["ASCII"]=23]="ASCII",t[t["Big5"]=24]="Big5",t[t["GB18030"]=25]="GB18030",t[t["EUC_KR"]=26]="EUC_KR"})(n||(n={}));var a=function(){function t(e,r,n){for(var o,a,s=[],u=3;u=900)throw new o.Z("incorect value");var r=t.VALUES_TO_ECI.get(e);if(void 0===r)throw new o.Z("incorect value");return r},t.getCharacterSetECIByName=function(e){var r=t.NAME_TO_ECI.get(e);if(void 0===r)throw new o.Z("incorect value");return r},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var r=e;return this.getName()===r.getName()},t.VALUE_IDENTIFIER_TO_ECI=new Map,t.VALUES_TO_ECI=new Map,t.NAME_TO_ECI=new Map,t.Cp437=new t(n.Cp437,Int32Array.from([0,2]),"Cp437"),t.ISO8859_1=new t(n.ISO8859_1,Int32Array.from([1,3]),"ISO-8859-1","ISO88591","ISO8859_1"),t.ISO8859_2=new t(n.ISO8859_2,4,"ISO-8859-2","ISO88592","ISO8859_2"),t.ISO8859_3=new t(n.ISO8859_3,5,"ISO-8859-3","ISO88593","ISO8859_3"),t.ISO8859_4=new t(n.ISO8859_4,6,"ISO-8859-4","ISO88594","ISO8859_4"),t.ISO8859_5=new t(n.ISO8859_5,7,"ISO-8859-5","ISO88595","ISO8859_5"),t.ISO8859_6=new t(n.ISO8859_6,8,"ISO-8859-6","ISO88596","ISO8859_6"),t.ISO8859_7=new t(n.ISO8859_7,9,"ISO-8859-7","ISO88597","ISO8859_7"),t.ISO8859_8=new t(n.ISO8859_8,10,"ISO-8859-8","ISO88598","ISO8859_8"),t.ISO8859_9=new t(n.ISO8859_9,11,"ISO-8859-9","ISO88599","ISO8859_9"),t.ISO8859_10=new t(n.ISO8859_10,12,"ISO-8859-10","ISO885910","ISO8859_10"),t.ISO8859_11=new t(n.ISO8859_11,13,"ISO-8859-11","ISO885911","ISO8859_11"),t.ISO8859_13=new t(n.ISO8859_13,15,"ISO-8859-13","ISO885913","ISO8859_13"),t.ISO8859_14=new t(n.ISO8859_14,16,"ISO-8859-14","ISO885914","ISO8859_14"),t.ISO8859_15=new t(n.ISO8859_15,17,"ISO-8859-15","ISO885915","ISO8859_15"),t.ISO8859_16=new t(n.ISO8859_16,18,"ISO-8859-16","ISO885916","ISO8859_16"),t.SJIS=new t(n.SJIS,20,"SJIS","Shift_JIS"),t.Cp1250=new t(n.Cp1250,21,"Cp1250","windows-1250"),t.Cp1251=new t(n.Cp1251,22,"Cp1251","windows-1251"),t.Cp1252=new t(n.Cp1252,23,"Cp1252","windows-1252"),t.Cp1256=new t(n.Cp1256,24,"Cp1256","windows-1256"),t.UnicodeBigUnmarked=new t(n.UnicodeBigUnmarked,25,"UnicodeBigUnmarked","UTF-16BE","UnicodeBig"),t.UTF8=new t(n.UTF8,26,"UTF8","UTF-8"),t.ASCII=new t(n.ASCII,Int32Array.from([27,170]),"ASCII","US-ASCII"),t.Big5=new t(n.Big5,28,"Big5"),t.GB18030=new t(n.GB18030,29,"GB18030","GB2312","EUC_CN","GBK"),t.EUC_KR=new t(n.EUC_KR,30,"EUC_KR","EUC-KR"),t}();e["Z"]=a},65156:function(t,e){var r=function(){function t(t,e,r,n,o,i){void 0===o&&(o=-1),void 0===i&&(i=-1),this.rawBytes=t,this.text=e,this.byteSegments=r,this.ecLevel=n,this.structuredAppendSequenceNumber=o,this.structuredAppendParity=i,this.numBits=void 0===t||null===t?0:8*t.length}return t.prototype.getRawBytes=function(){return this.rawBytes},t.prototype.getNumBits=function(){return this.numBits},t.prototype.setNumBits=function(t){this.numBits=t},t.prototype.getText=function(){return this.text},t.prototype.getByteSegments=function(){return this.byteSegments},t.prototype.getECLevel=function(){return this.ecLevel},t.prototype.getErrorsCorrected=function(){return this.errorsCorrected},t.prototype.setErrorsCorrected=function(t){this.errorsCorrected=t},t.prototype.getErasures=function(){return this.erasures},t.prototype.setErasures=function(t){this.erasures=t},t.prototype.getOther=function(){return this.other},t.prototype.setOther=function(t){this.other=t},t.prototype.hasStructuredAppend=function(){return this.structuredAppendParity>=0&&this.structuredAppendSequenceNumber>=0},t.prototype.getStructuredAppendParity=function(){return this.structuredAppendParity},t.prototype.getStructuredAppendSequenceNumber=function(){return this.structuredAppendSequenceNumber},t}();e["Z"]=r},18318:function(t,e,r){r(23767),r(8585),r(68696);var n=r(15785),o=r(33954),i=r(23067),a=r(53706),s=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.sampleGrid=function(t,e,r,n,o,a,s,u,c,h,f,l,d,p,g,w,y,v,_){var C=i.Z.quadrilateralToQuadrilateral(n,o,a,s,u,c,h,f,l,d,p,g,w,y,v,_);return this.sampleGridWithTransform(t,e,r,C)},e.prototype.sampleGridWithTransform=function(t,e,r,i){if(e<=0||r<=0)throw new a.Z;for(var s=new o.Z(e,r),u=new Float32Array(2*e),c=0;c>e.LUMINANCE_SHIFT]++;var c=e.estimateBlackPoint(s);if(i<3)for(u=0;u>e.LUMINANCE_SHIFT]++}var d=e.estimateBlackPoint(a),p=t.getMatrix();for(s=0;si&&(o=s,i=t[s]),t[s]>n&&(n=t[s]);var u=0,c=0;for(s=0;sc&&(u=s,c=f)}if(o>u){var l=o;o=u,u=l}if(u-o<=r/16)throw new a.Z;var d=u-1,p=-1;for(s=u-1;s>o;s--){var g=s-o;f=g*g*(u-s)*(n-t[s]);f>p&&(d=s,p=f)}return d<r||u<-1||u>o)throw new n.Z;i=!1,-1===s?(e[a]=0,i=!0):s===r&&(e[a]=r-1,i=!0),-1===u?(e[a+1]=0,i=!0):u===o&&(e[a+1]=o-1,i=!0)}i=!0;for(a=e.length-2;a>=0&&i;a-=2){s=Math.floor(e[a]),u=Math.floor(e[a+1]);if(s<-1||s>r||u<-1||u>o)throw new n.Z;i=!1,-1===s?(e[a]=0,i=!0):s===r&&(e[a]=r-1,i=!0),-1===u?(e[a+1]=0,i=!0):u===o&&(e[a+1]=o-1,i=!0)}},t}();e["Z"]=o},73848:function(t,e,r){var n=r(18318),o=function(){function t(){}return t.setGridSampler=function(e){t.gridSampler=e},t.getInstance=function(){return t.gridSampler},t.gridSampler=new n.Z,t}();e["Z"]=o},63992:function(t,e,r){r(23767),r(8585),r(68696);var n=r(22079),o=r(33954),i=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),a=function(t){function e(e){var r=t.call(this,e)||this;return r.matrix=null,r}return i(e,t),e.prototype.getBlackMatrix=function(){if(null!==this.matrix)return this.matrix;var r=this.getLuminanceSource(),n=r.getWidth(),i=r.getHeight();if(n>=e.MINIMUM_DIMENSION&&i>=e.MINIMUM_DIMENSION){var a=r.getMatrix(),s=n>>e.BLOCK_SIZE_POWER;0!==(n&e.BLOCK_SIZE_MASK)&&s++;var u=i>>e.BLOCK_SIZE_POWER;0!==(i&e.BLOCK_SIZE_MASK)&&u++;var c=e.calculateBlackPoints(a,s,u,n,i),h=new o.Z(n,i);e.calculateThresholdForBlock(a,s,u,n,i,c,h),this.matrix=h}else this.matrix=t.prototype.getBlackMatrix.call(this);return this.matrix},e.prototype.createBinarizer=function(t){return new e(t)},e.calculateThresholdForBlock=function(t,r,n,o,i,a,s){for(var u=i-e.BLOCK_SIZE,c=o-e.BLOCK_SIZE,h=0;hu&&(f=u);for(var l=e.cap(h,2,n-3),d=0;dc&&(p=c);for(var g=e.cap(d,2,r-3),w=0,y=-2;y<=2;y++){var v=a[l+y];w+=v[g-2]+v[g-1]+v[g]+v[g+1]+v[g+2]}var _=w/25;e.thresholdBlock(t,p,f,_,o,s)}}},e.cap=function(t,e,r){return tr?r:t},e.thresholdBlock=function(t,r,n,o,i,a){for(var s=0,u=n*i+r;sa&&(h=a);for(var f=0;fs&&(l=s);for(var d=0,p=255,g=0,w=0,y=h*o+l;wg&&(g=_)}if(g-p>e.MIN_DYNAMIC_RANGE)for(w++,y+=o;w>2*e.BLOCK_SIZE_POWER;if(g-p<=e.MIN_DYNAMIC_RANGE&&(C=p/2,c>0&&f>0)){var A=(u[c-1][f]+2*u[c][f-1]+u[c-1][f-1])/4;p3&&239===e[0]&&187===e[1]&&191===e[2],C=0;C0?0===(128&A)?s=!1:u--:0!==(128&A)&&(0===(64&A)?s=!1:(u++,0===(32&A)?c++:(u++,0===(16&A)?h++:(u++,0===(8&A)?f++:s=!1))))),i&&(A>127&&A<160?i=!1:A>159&&(A<192||215===A||247===A)&&v++),a&&(l>0?A<64||127===A||A>252?a=!1:l--:128===A||160===A||A>239?a=!1:A>160&&A<224?(d++,g=0,p++,p>w&&(w=p)):A>127?(l++,p=0,g++,g>y&&(y=g)):(p=0,g=0))}return s&&u>0&&(s=!1),a&&l>0&&(a=!1),s&&(_||c+h+f>0)?t.UTF8:a&&(t.ASSUME_SHIFT_JIS||w>=3||y>=3)?t.SHIFT_JIS:i&&a?2===w&&2===d||10*v>=o?t.SHIFT_JIS:t.ISO88591:i?t.ISO88591:a?t.SHIFT_JIS:s?t.UTF8:t.PLATFORM_DEFAULT_ENCODING},t.format=function(t){for(var e=[],r=1;r=Number.MAX_SAFE_INTEGER?Number.MAX_SAFE_INTEGER:t+(t<0?-.5:.5)|0},t.distance=function(t,e,r,n){var o=t-r,i=e-n;return Math.sqrt(o*o+i*i)},t.sum=function(t){for(var e=0,r=0,n=t.length;r!==n;r++){var o=t[r];e+=o}return e},t}();e["Z"]=r},18153:function(t,e,r){var n=r(69728),o=r(61997),i=r(53706),a=function(){function t(e,r,n,o){this.image=e,this.height=e.getHeight(),this.width=e.getWidth(),void 0!==r&&null!==r||(r=t.INIT_SIZE),void 0!==n&&null!==n||(n=e.getWidth()/2|0),void 0!==o&&null!==o||(o=e.getHeight()/2|0);var a=r/2|0;if(this.leftInit=n-a,this.rightInit=n+a,this.upInit=o-a,this.downInit=o+a,this.upInit<0||this.leftInit<0||this.downInit>=this.height||this.rightInit>=this.width)throw new i.Z}return t.prototype.detect=function(){var t=this.leftInit,e=this.rightInit,r=this.upInit,n=this.downInit,o=!1,a=!0,s=!1,u=!1,c=!1,h=!1,f=!1,l=this.width,d=this.height;while(a){a=!1;var p=!0;while((p||!u)&&e=l){o=!0;break}var g=!0;while((g||!c)&&n=d){o=!0;break}var w=!0;while((w||!h)&&t>=0)w=this.containsBlackPoint(r,n,t,!1),w?(t--,a=!0,h=!0):h||t--;if(t<0){o=!0;break}var y=!0;while((y||!f)&&r>=0)y=this.containsBlackPoint(t,e,r,!0),y?(r--,a=!0,f=!0):f||r--;if(r<0){o=!0;break}a&&(s=!0)}if(!o&&s){for(var v=e-t,_=null,C=1;null===_&&C=r&&(s^=e,s&=r-1);i.expTable=a;var c=new Int32Array(r);for(u=0;u1&&0===e[0]){var n=1;while(na.length){var s=r;r=a,a=s}var u=new Int32Array(a.length),c=a.length-r.length;o.Z.arraycopy(a,0,u,0,c);for(var h=c;h=t.getDegree()&&!n.isZero()){var s=n.getDegree()-t.getDegree(),u=e.multiply(n.getCoefficient(n.getDegree()),a),c=t.multiplyByMonomial(s,u),h=e.buildMonomial(s,u);r=r.addOrSubtract(h),n=n.addOrSubtract(c)}return[r,n]},t.prototype.toString=function(){for(var t="",e=this.getDegree();e>=0;e--){var r=this.getCoefficient(e);if(0!==r){if(r<0?(t+=" - ",r=-r):t.length>0&&(t+=" + "),0===e||1!==r){var n=this.field.log(r);0===n?t+="1":1===n?t+="a":(t+="a^",t+=n)}0!==e&&(1===e?t+="x":(t+="x^",t+=e))}}return t},t}();e["Z"]=a},38589:function(t,e,r){r(23767),r(8585),r(68696);var n=r(69268),o=r(70645),i=r(81573),a=r(39605),s=function(){function t(t){this.field=t}return t.prototype.decode=function(t,e){for(var r=this.field,a=new o.Z(r,t),s=new Int32Array(e),u=!0,c=0;c=(r/2|0)){var f=s,l=c;if(s=u,c=h,s.isZero())throw new i.Z("r_{i-1} was zero");u=f;var d=o.getZero(),p=s.getCoefficient(s.getDegree()),g=o.inverse(p);while(u.getDegree()>=s.getDegree()&&!u.isZero()){var w=u.getDegree()-s.getDegree(),y=o.multiply(u.getCoefficient(u.getDegree()),g);d=d.addOrSubtract(o.buildMonomial(w,y)),u=u.addOrSubtract(s.multiplyByMonomial(w,y))}if(h=d.multiply(c).addOrSubtract(l),u.getDegree()>=s.getDegree())throw new a.Z("Division algorithm failed to reduce polynomial?")}var v=h.getCoefficient(0);if(0===v)throw new i.Z("sigmaTilde(0) was zero");var _=o.inverse(v),C=h.multiplyScalar(_),A=u.multiplyScalar(_);return[C,A]},t.prototype.findErrorLocations=function(t){var e=t.getDegree();if(1===e)return Int32Array.from([t.getCoefficient(1)]);for(var r=new Int32Array(e),n=0,o=this.field,a=1;a=e.length)for(var r=e[e.length-1],o=this.field,i=e.length;i<=t;i++){var a=r.multiply(new n.Z(o,Int32Array.from([1,o.exp(i-1+o.getGeneratorBase())])));e.push(a),r=a}return e[t]},t.prototype.encode=function(t,e){if(0===e)throw new i.Z("No error correction bytes");var r=t.length-e;if(r<=0)throw new i.Z("No data bytes provided");var a=this.buildGenerator(e),s=new Int32Array(r);o.Z.arraycopy(t,0,s,0,r);var u=new n.Z(this.field,s);u=u.multiplyByMonomial(e,1);for(var c=u.divide(a)[1],h=c.getCoefficients(),f=e-h.length,l=0;l=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},g=function(){function t(t,e,r){this.ecCodewords=t,this.ecBlocks=[e],r&&this.ecBlocks.push(r)}return t.prototype.getECCodewords=function(){return this.ecCodewords},t.prototype.getECBlocks=function(){return this.ecBlocks},t}(),w=function(){function t(t,e){this.count=t,this.dataCodewords=e}return t.prototype.getCount=function(){return this.count},t.prototype.getDataCodewords=function(){return this.dataCodewords},t}(),y=function(){function t(t,e,r,n,o,i){var a,s;this.versionNumber=t,this.symbolSizeRows=e,this.symbolSizeColumns=r,this.dataRegionSizeRows=n,this.dataRegionSizeColumns=o,this.ecBlocks=i;var u=0,c=i.getECCodewords(),h=i.getECBlocks();try{for(var f=p(h),l=f.next();!l.done;l=f.next()){var d=l.value;u+=d.getCount()*(d.getDataCodewords()+c)}}catch(g){a={error:g}}finally{try{l&&!l.done&&(s=f.return)&&s.call(f)}finally{if(a)throw a.error}}this.totalCodewords=u}return t.prototype.getVersionNumber=function(){return this.versionNumber},t.prototype.getSymbolSizeRows=function(){return this.symbolSizeRows},t.prototype.getSymbolSizeColumns=function(){return this.symbolSizeColumns},t.prototype.getDataRegionSizeRows=function(){return this.dataRegionSizeRows},t.prototype.getDataRegionSizeColumns=function(){return this.dataRegionSizeColumns},t.prototype.getTotalCodewords=function(){return this.totalCodewords},t.prototype.getECBlocks=function(){return this.ecBlocks},t.getVersionForDimensions=function(e,r){var n,o;if(0!==(1&e)||0!==(1&r))throw new d.Z;try{for(var i=p(t.VERSIONS),a=i.next();!a.done;a=i.next()){var s=a.value;if(s.symbolSizeRows===e&&s.symbolSizeColumns===r)return s}}catch(u){n={error:u}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}throw new d.Z},t.prototype.toString=function(){return""+this.versionNumber},t.buildVersions=function(){return[new t(1,10,10,8,8,new g(5,new w(1,3))),new t(2,12,12,10,10,new g(7,new w(1,5))),new t(3,14,14,12,12,new g(10,new w(1,8))),new t(4,16,16,14,14,new g(12,new w(1,12))),new t(5,18,18,16,16,new g(14,new w(1,18))),new t(6,20,20,18,18,new g(18,new w(1,22))),new t(7,22,22,20,20,new g(20,new w(1,30))),new t(8,24,24,22,22,new g(24,new w(1,36))),new t(9,26,26,24,24,new g(28,new w(1,44))),new t(10,32,32,14,14,new g(36,new w(1,62))),new t(11,36,36,16,16,new g(42,new w(1,86))),new t(12,40,40,18,18,new g(48,new w(1,114))),new t(13,44,44,20,20,new g(56,new w(1,144))),new t(14,48,48,22,22,new g(68,new w(1,174))),new t(15,52,52,24,24,new g(42,new w(2,102))),new t(16,64,64,14,14,new g(56,new w(2,140))),new t(17,72,72,16,16,new g(36,new w(4,92))),new t(18,80,80,18,18,new g(48,new w(4,114))),new t(19,88,88,20,20,new g(56,new w(4,144))),new t(20,96,96,22,22,new g(68,new w(4,174))),new t(21,104,104,24,24,new g(56,new w(6,136))),new t(22,120,120,18,18,new g(68,new w(6,175))),new t(23,132,132,20,20,new g(62,new w(8,163))),new t(24,144,144,22,22,new g(62,new w(8,156),new w(2,155))),new t(25,8,18,6,16,new g(7,new w(1,5))),new t(26,8,32,6,14,new g(11,new w(1,10))),new t(27,12,26,10,24,new g(14,new w(1,16))),new t(28,12,36,10,16,new g(18,new w(1,22))),new t(29,16,36,14,16,new g(24,new w(1,32))),new t(30,16,48,14,22,new g(28,new w(1,49)))]},t.VERSIONS=t.buildVersions(),t}(),v=y,_=r(96148),C=function(){function t(e){var r=e.getHeight();if(r<8||r>144||0!==(1&r))throw new d.Z;this.version=t.readVersion(e),this.mappingBitMatrix=this.extractDataRegion(e),this.readMappingMatrix=new o.Z(this.mappingBitMatrix.getWidth(),this.mappingBitMatrix.getHeight())}return t.prototype.getVersion=function(){return this.version},t.readVersion=function(t){var e=t.getHeight(),r=t.getWidth();return v.getVersionForDimensions(e,r)},t.prototype.readCodewords=function(){var t=new Int8Array(this.version.getTotalCodewords()),e=0,r=4,n=0,o=this.mappingBitMatrix.getHeight(),i=this.mappingBitMatrix.getWidth(),a=!1,s=!1,u=!1,c=!1;do{if(r!==o||0!==n||a)if(r!==o-2||0!==n||0===(3&i)||s)if(r!==o+4||2!==n||0!==(7&i)||u)if(r!==o-2||0!==n||4!==(7&i)||c){do{r=0&&!this.readMappingMatrix.get(n,r)&&(t[e++]=255&this.readUtah(r,n,o,i)),r-=2,n+=2}while(r>=0&&n=0&&n=0);r+=3,n+=1}else t[e++]=255&this.readCorner4(o,i),r-=2,n+=2,c=!0;else t[e++]=255&this.readCorner3(o,i),r-=2,n+=2,u=!0;else t[e++]=255&this.readCorner2(o,i),r-=2,n+=2,s=!0;else t[e++]=255&this.readCorner1(o,i),r-=2,n+=2,a=!0}while(r=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},E=function(){function t(t,e){this.numDataCodewords=t,this.codewords=e}return t.getDataBlocks=function(e,r){var n,o,i,a,s=r.getECBlocks(),u=0,c=s.getECBlocks();try{for(var h=m(c),f=h.next();!f.done;f=h.next()){var l=f.value;u+=l.getCount()}}catch(D){n={error:D}}finally{try{f&&!f.done&&(o=h.return)&&o.call(h)}finally{if(n)throw n.error}}var d=new Array(u),p=0;try{for(var g=m(c),w=g.next();!w.done;w=g.next()){l=w.value;for(var y=0;y7?y-1:y;d[N].codewords[Z]=e[S++]}if(S!==e.length)throw new _.Z;return d},t.prototype.getNumDataCodewords=function(){return this.numDataCodewords},t.prototype.getCodewords=function(){return this.codewords},t}(),I=E,S=r(63567),T=function(t){var e="function"===typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},b=function(){function t(){this.rsDecoder=new l.Z(f.Z.DATA_MATRIX_FIELD_256)}return t.prototype.decode=function(t){var e,r,n=new A(t),o=n.getVersion(),i=n.readCodewords(),a=I.getDataBlocks(i,o),s=0;try{for(var u=T(a),c=u.next();!c.done;c=u.next()){var h=c.value;s+=h.getNumDataCodewords()}}catch(v){e={error:v}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(e)throw e.error}}for(var f=new Uint8Array(s),l=a.length,d=0;da&&(c=a,h[0]=e,h[1]=r,h[2]=n,h[3]=o),c>s&&(c=s,h[0]=r,h[1]=n,h[2]=o,h[3]=e),c>u&&(h[0]=n,h[1]=o,h[2]=e,h[3]=r),h},t.prototype.detectSolid2=function(e){var r=e[0],n=e[1],o=e[2],i=e[3],a=this.transitionsBetween(r,i),s=t.shiftPoint(n,o,4*(a+1)),u=t.shiftPoint(o,n,4*(a+1)),c=this.transitionsBetween(s,r),h=this.transitionsBetween(u,i);return cd?h:f},t.prototype.shiftToModuleCenter=function(e){var r=e[0],n=e[1],o=e[2],i=e[3],a=this.transitionsBetween(r,i)+1,s=this.transitionsBetween(o,i)+1,u=t.shiftPoint(r,n,4*s),c=t.shiftPoint(o,n,4*a);a=this.transitionsBetween(u,i)+1,s=this.transitionsBetween(c,i)+1,1===(1&a)&&(a+=1),1===(1&s)&&(s+=1);var h,f,l=(r.getX()+n.getX()+o.getX()+i.getX())/4,d=(r.getY()+n.getY()+o.getY()+i.getY())/4;return r=t.moveAway(r,l,d),n=t.moveAway(n,l,d),o=t.moveAway(o,l,d),i=t.moveAway(i,l,d),u=t.shiftPoint(r,n,4*s),u=t.shiftPoint(u,i,4*a),h=t.shiftPoint(n,r,4*s),h=t.shiftPoint(h,o,4*a),c=t.shiftPoint(o,i,4*s),c=t.shiftPoint(c,n,4*a),f=t.shiftPoint(i,o,4*s),f=t.shiftPoint(f,r,4*a),[u,h,c,f]},t.prototype.isValid=function(t){return t.getX()>=0&&t.getX()0&&t.getY()Math.abs(o-r);if(a){var s=r;r=n,n=s,s=o,o=i,i=s}for(var u=Math.abs(o-r),c=Math.abs(i-n),h=-u/2,f=n0){if(w===i)break;w+=f,h-=u}}return d},t}(),P=M,B=function(){function t(){this.decoder=new O}return t.prototype.decode=function(e,r){var o,a;if(void 0===r&&(r=null),null!=r&&r.has(i.Z.PURE_BARCODE)){var h=t.extractPureBits(e.getBlackMatrix());o=this.decoder.decode(h),a=t.NO_POINTS}else{var f=new P(e.getBlackMatrix()).detect();o=this.decoder.decode(f.getBits()),a=f.getPoints()}var l=o.getRawBytes(),d=new s.Z(o.getText(),l,8*l.length,a,n.Z.DATA_MATRIX,c.Z.currentTimeMillis()),p=o.getByteSegments();null!=p&&d.putMetadata(u.Z.BYTE_SEGMENTS,p);var g=o.getECLevel();return null!=g&&d.putMetadata(u.Z.ERROR_CORRECTION_LEVEL,g),d},t.prototype.reset=function(){},t.extractPureBits=function(t){var e=t.getTopLeftOnBit(),r=t.getBottomRightOnBit();if(null==e||null==r)throw new a.Z;var n=this.moduleSize(e,t),i=e[1],s=r[1],u=e[0],c=r[0],h=(c-u+1)/n,f=(s-i+1)/n;if(h<=0||f<=0)throw new a.Z;var l=n/2;i+=l,u+=l;for(var d=new o.Z(h,f),p=0;p=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},y=function(){function t(t){this.charset=t,this.name=t.name}return t.prototype.canEncode=function(t){try{return null!=p.Z.encode(t,this.charset)}catch(e){return!1}},t}(),v=function(){function t(t,e,r){var n,o,i,a,s,c;this.ENCODERS=["IBM437","ISO-8859-2","ISO-8859-3","ISO-8859-4","ISO-8859-5","ISO-8859-6","ISO-8859-7","ISO-8859-8","ISO-8859-9","ISO-8859-10","ISO-8859-11","ISO-8859-13","ISO-8859-14","ISO-8859-15","ISO-8859-16","windows-1250","windows-1251","windows-1252","windows-1256","Shift_JIS"].map((function(t){return new y(u.Z.forName(t))})),this.encoders=[];var h=[];h.push(new y(d.Z.ISO_8859_1));for(var f=null!=e&&e.name.startsWith("UTF"),l=0;l=this.bytes.length)return!1;for(var r=0;r=this.length())throw new Error(""+t);if(this.isECI(t))throw new Error("value at "+t+" is not a character but an ECI");return this.isFNC1(t)?this.fnc1:this.bytes[t]},t.prototype.subSequence=function(t,e){if(t<0||t>e||e>this.length())throw new Error(""+t);for(var r=new C.Z,n=t;n=this.length())throw new Error(""+t);return this.bytes[t]>255&&this.bytes[t]<=999},t.prototype.isFNC1=function(t){if(t<0||t>=this.length())throw new Error(""+t);return 1e3===this.bytes[t]},t.prototype.getECIValue=function(t){if(t<0||t>=this.length())throw new Error(""+t);if(!this.isECI(t))throw new Error("value at "+t+" is not an ECI but a character");return this.bytes[t]-256},t.prototype.addEdge=function(t,e,r){(null==t[e][r.encoderIndex]||t[e][r.encoderIndex].cachedTotalSize>r.cachedTotalSize)&&(t[e][r.encoderIndex]=r)},t.prototype.addEdges=function(t,e,r,n,o,i){var a=t.charAt(n).charCodeAt(0),s=0,u=e.length();e.getPriorityEncoderIndex()>=0&&(a===i||e.canEncode(a,e.getPriorityEncoderIndex()))&&(s=e.getPriorityEncoderIndex(),u=s+1);for(var c=s;c=0;i--)h.unshift(255&l[i])}var d=null===f.previous?0:f.previous.encoderIndex;d!==f.encoderIndex&&h.unshift(256+e.getECIValue(f.encoderIndex)),f=f.previous}var p=[];for(i=0;i=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},T=function(t,e){var r="function"===typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{while((void 0===e||e-- >0)&&!(n=i.next()).done)a.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(r=i["return"])&&r.call(i)}finally{if(o)throw o.error}}return a},b=function(){for(var t=[],e=0;e","?","@","[","\\","]","^","_"],R=function(){function t(){}return t.isExtendedASCII=function(t,e){return t!==e&&t>=128&&t<=255},t.isInC40Shift1Set=function(t){return t<=31},t.isInC40Shift2Set=function(t,e){var r,n;try{for(var o=S(O),i=o.next();!i.done;i=o.next()){var a=i.value;if(a.charCodeAt(0)===t)return!0}}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return t===e},t.isInTextShift1Set=function(t){return this.isInC40Shift1Set(t)},t.isInTextShift2Set=function(t,e){return this.isInC40Shift2Set(t,e)},t.encodeHighLevel=function(t,e,r,n){void 0===e&&(e=null),void 0===r&&(r=-1),void 0===n&&(n=0);var o=0;return t.startsWith(l.qL)&&t.endsWith(l.Lt)?(o=5,t=t.substring(l.qL.length,t.length-2)):t.startsWith(l.np)&&t.endsWith(l.Lt)&&(o=6,t=t.substring(l.np.length,t.length-2)),decodeURIComponent(escape(String.fromCharCode.apply(String,b(this.encode(t,e,r,n,o)))))},t.encode=function(t,e,r,n,o){return this.encodeMinimally(new D(t,e,r,n,o)).getBytes()},t.addEdge=function(t,e){var r=e.fromPosition+e.characterLength;(null===t[r][e.getEndMode()]||t[r][e.getEndMode()].cachedTotalSize>e.cachedTotalSize)&&(t[r][e.getEndMode()]=e)},t.getNumberOfC40Words=function(e,r,n,o){for(var i=0,a=r;a=128&&(n&&f.Z.isNativeC40(u-128)||!n&&f.Z.isNativeText(u-128))?i+=3:i+=4}else i+=2;if(i%3===0||(i-2)%3===0&&a+1===e.length())return o[0]=a-r+1,Math.ceil(i/3)}return o[0]=0,0},t.addEdges=function(e,r,o,i){var a,s;if(e.isECI(o))this.addEdge(r,new Z(e,n.ASCII,o,1,i));else{var u,c=e.charAt(o);if(null===i||i.getEndMode()!==n.EDF){f.Z.isDigit(c)&&e.haveNCharacters(o,2)&&f.Z.isDigit(e.charAt(o+1))?this.addEdge(r,new Z(e,n.ASCII,o,2,i)):this.addEdge(r,new Z(e,n.ASCII,o,1,i));var h=[n.C40,n.TEXT];try{for(var l=S(h),d=l.next();!d.done;d=l.next()){var p=d.value,g=[];t.getNumberOfC40Words(e,o,p===n.C40,g)>0&&this.addEdge(r,new Z(e,p,o,g[0],i))}}catch(y){a={error:y}}finally{try{d&&!d.done&&(s=l.return)&&s.call(l)}finally{if(a)throw a.error}}e.haveNCharacters(o,3)&&f.Z.isNativeX12(e.charAt(o))&&f.Z.isNativeX12(e.charAt(o+1))&&f.Z.isNativeX12(e.charAt(o+2))&&this.addEdge(r,new Z(e,n.X12,o,3,i)),this.addEdge(r,new Z(e,n.B256,o,1,i))}for(u=0;u<3;u++){var w=o+u;if(!e.haveNCharacters(w,1)||!f.Z.isNativeEDIFACT(e.charAt(w)))break;this.addEdge(r,new Z(e,n.EDF,o,u+1,i))}3===u&&e.haveNCharacters(o,4)&&f.Z.isNativeEDIFACT(e.charAt(o+3))&&this.addEdge(r,new Z(e,n.EDF,o,4,i))}},t.encodeMinimally=function(t){var e=t.length(),r=Array(e+1).fill(null).map((function(){return Array(6).fill(0)}));this.addEdges(t,r,0,null);for(var n=1;n<=e;n++){for(var o=0;o<6;o++)null!==r[n][o]&&n=1&&o<=3?s.cachedTotalSize+1:s.cachedTotalSize;u0&&(r+=this.prepend(Z.getBytes(232),o));for(var u=0;u=0;r--)e.unshift(t[r]);return t.length},t.prototype.randomize253State=function(t){var e=149*t%253+1,r=129+e;return r<=254?r:r-254},t.prototype.applyRandomPattern=function(t,e,r){for(var n=0;n0&&this.getCodewordsRemaining(this.cachedTotalSize+t)<=2-t)return n.ASCII}if(this.mode===n.C40||this.mode===n.TEXT||this.mode===n.X12){if(this.fromPosition+this.characterLength>=this.input.length()&&0===this.getCodewordsRemaining(this.cachedTotalSize))return n.ASCII;t=this.getLastASCII();if(1===t&&0===this.getCodewordsRemaining(this.cachedTotalSize+1))return n.ASCII}return this.mode},t.prototype.getMode=function(){return this.mode},t.prototype.getLastASCII=function(){var t=this.input.length(),e=this.fromPosition+this.characterLength;return t-e>4||e>=t?0:t-e===1?R.isExtendedASCII(this.input.charAt(e),this.input.getFNC1Character())?0:1:t-e===2?R.isExtendedASCII(this.input.charAt(e),this.input.getFNC1Character())||R.isExtendedASCII(this.input.charAt(e+1),this.input.getFNC1Character())?0:f.Z.isDigit(this.input.charAt(e))&&f.Z.isDigit(this.input.charAt(e+1))?1:2:t-e===3?f.Z.isDigit(this.input.charAt(e))&&f.Z.isDigit(this.input.charAt(e+1))&&!R.isExtendedASCII(this.input.charAt(e+2),this.input.getFNC1Character())||f.Z.isDigit(this.input.charAt(e+1))&&f.Z.isDigit(this.input.charAt(e+2))&&!R.isExtendedASCII(this.input.charAt(e),this.input.getFNC1Character())?2:0:f.Z.isDigit(this.input.charAt(e))&&f.Z.isDigit(this.input.charAt(e+1))&&f.Z.isDigit(this.input.charAt(e+2))&&f.Z.isDigit(this.input.charAt(e+3))?2:0},t.prototype.getMinSymbolSize=function(t){var e,r,n,o,i,a;switch(this.input.getShapeHint()){case 1:try{for(var s=S(this.squareCodewordCapacities),u=s.next();!u.done;u=s.next()){var c=u.value;if(c>=t)return c}}catch(p){e={error:p}}finally{try{u&&!u.done&&(r=s.return)&&r.call(s)}finally{if(e)throw e.error}}break;case 2:try{for(var h=S(this.rectangularCodewordCapacities),f=h.next();!f.done;f=h.next()){c=f.value;if(c>=t)return c}}catch(g){n={error:g}}finally{try{f&&!f.done&&(o=h.return)&&o.call(h)}finally{if(n)throw n.error}}break}try{for(var l=S(this.allCodewordCapacities),d=l.next();!d.done;d=l.next()){c=d.value;if(c>=t)return c}}catch(w){i={error:w}}finally{try{d&&!d.done&&(a=l.return)&&a.call(l)}finally{if(i)throw i.error}}return this.allCodewordCapacities[this.allCodewordCapacities.length-1]},t.prototype.getCodewordsRemaining=function(t){return this.getMinSymbolSize(t)-t},t.getBytes=function(t,e){var r=new Uint8Array(e?2:1);return r[0]=t,e&&(r[1]=e),r},t.prototype.setC40Word=function(t,e,r,n,o){var i=1600*(255&r)+40*(255&n)+(255&o)+1;t[e]=i/256,t[e+1]=i%256},t.prototype.getX12Value=function(t){return 13===t?0:42===t?1:62===t?2:32===t?3:t>=48&&t<=57?t-44:t>=65&&t<=90?t-51:t},t.prototype.getX12Words=function(){if(this.characterLength%3!==0)throw new Error("X12 words must be a multiple of 3");for(var t=new Uint8Array(this.characterLength/3*2),e=0;e=33&&r<=47?r-33:r>=48&&r<=57?r-44:r>=58&&r<=64?r-43:r>=65&&r<=90?r-64:r>=91&&r<=95?r-69:96===r?0:r>=97&&r<=122?r-83:r>=123&&r<=127?r-96:r},t.prototype.getC40Words=function(t,e){for(var r=[],n=0;n>16&255,e[o+1]=s>>8&255,e[o+2]=255&s}return e},t.prototype.getLatchBytes=function(){switch(this.getPreviousMode()){case n.ASCII:case n.B256:switch(this.mode){case n.B256:return t.getBytes(231);case n.C40:return t.getBytes(230);case n.TEXT:return t.getBytes(239);case n.X12:return t.getBytes(238);case n.EDF:return t.getBytes(240)}break;case n.C40:case n.TEXT:case n.X12:if(this.mode!==this.getPreviousMode())switch(this.mode){case n.ASCII:return t.getBytes(254);case n.B256:return t.getBytes(254,231);case n.C40:return t.getBytes(254,230);case n.TEXT:return t.getBytes(254,239);case n.X12:return t.getBytes(254,238);case n.EDF:return t.getBytes(254,240)}break;case n.EDF:if(this.mode!==n.EDF)throw new Error("Cannot switch from EDF to "+this.mode);break}return new Uint8Array(0)},t.prototype.getDataBytes=function(){switch(this.mode){case n.ASCII:return this.input.isECI(this.fromPosition)?t.getBytes(241,this.input.getECIValue(this.fromPosition)+1):R.isExtendedASCII(this.input.charAt(this.fromPosition),this.input.getFNC1Character())?t.getBytes(235,this.input.charAt(this.fromPosition)-127):2===this.characterLength?t.getBytes(10*this.input.charAt(this.fromPosition)+this.input.charAt(this.fromPosition+1)+130):this.input.isFNC1(this.fromPosition)?t.getBytes(232):t.getBytes(this.input.charAt(this.fromPosition)+1);case n.B256:return t.getBytes(this.input.charAt(this.fromPosition));case n.C40:return this.getC40Words(!0,this.input.getFNC1Character());case n.TEXT:return this.getC40Words(!1,this.input.getFNC1Character());case n.X12:return this.getX12Words();case n.EDF:return this.getEDFBytes()}},t}(),D=function(t){function e(e,r,n,o,i){var a=t.call(this,e,r,n)||this;return a.shape=o,a.macroId=i,a}return I(e,t),e.prototype.getMacroId=function(){return this.macroId},e.prototype.getShapeHint=function(){return this.shape},e}(m),M=r(63264);r(79897),r(60522),function(){function t(){}t.prototype.encode=function(t,e,r,n,i){if(void 0===i&&(i=null),""===t.trim())throw new Error("Found empty contents");if(e!==o.Z.DATA_MATRIX)throw new Error("Can only encode DATA_MATRIX, but got "+e);if(r<0||n<0)throw new Error("Requested dimensions can't be negative: "+r+"x"+n);var s,l=0,d=null,p=null;if(null!=i){var g=i.get(a.Z.DATA_MATRIX_SHAPE);null!=g&&(l=g);var w=i.get(a.Z.MIN_SIZE);null!=w&&(d=w);var y=i.get(a.Z.MAX_SIZE);null!=y&&(p=y)}var v=null!=i&&i.has(a.Z.DATA_MATRIX_COMPACT)&&Boolean(i.get(a.Z.DATA_MATRIX_COMPACT).toString());if(v){var _=i.has(a.Z.GS1_FORMAT)&&Boolean(i.get(a.Z.GS1_FORMAT).toString()),C=null,A=i.has(a.Z.CHARACTER_SET);A&&(C=u.Z.forName(i.get(a.Z.CHARACTER_SET).toString())),s=R.encodeHighLevel(t,C,_?29:-1,l)}else{var m=null!=i&&i.has(a.Z.FORCE_C40)&&Boolean(i.get(a.Z.FORCE_C40).toString());s=f.Z.encodeHighLevel(t,l,d,p,m)}var E=M.Z.lookup(s.length,l,d,p,!0),I=h.Z.encodeECC200(s,E),S=new c.Z(I,E.getSymbolDataWidth(),E.getSymbolDataHeight());return S.place(),this.encodeLowLevel(S,E,r,n)},t.prototype.encodeLowLevel=function(t,e,r,n){for(var o=e.getSymbolDataWidth(),i=e.getSymbolDataHeight(),a=new s.Z(e.getSymbolWidth(),e.getSymbolHeight()),u=0,c=0;c0);return s.length()>0&&r.append(s.toString()),new o.Z(t,r.toString(),0===u.length?null:u,null)},t.decodeAsciiSegment=function(t,e,r){var o=!1;do{var i=t.readBits(8);if(0===i)throw new c.Z;if(i<=128)return o&&(i+=128),e.append(String.fromCharCode(i-1)),n.ASCII_ENCODE;if(129===i)return n.PAD_ENCODE;if(i<=229){var a=i-130;a<10&&e.append("0"),e.append(""+a)}else switch(i){case 230:return n.C40_ENCODE;case 231:return n.BASE256_ENCODE;case 232:e.append(String.fromCharCode(29));break;case 233:case 234:break;case 235:o=!0;break;case 236:e.append("[)>05"),r.insert(0,"");break;case 237:e.append("[)>06"),r.insert(0,"");break;case 238:return n.ANSIX12_ENCODE;case 239:return n.TEXT_ENCODE;case 240:return n.EDIFACT_ENCODE;case 241:break;default:if(254!==i||0!==t.available())throw new c.Z;break}}while(t.available()>0);return n.ASCII_ENCODE},t.decodeC40Segment=function(t,e){var r=!1,n=[],o=0;do{if(8===t.available())return;var i=t.readBits(8);if(254===i)return;this.parseTwoBytes(i,t.readBits(8),n);for(var a=0;a<3;a++){var s=n[a];switch(o){case 0:if(s<3)o=s+1;else{if(!(s0)},t.decodeTextSegment=function(t,e){var r=!1,n=[],o=0;do{if(8===t.available())return;var i=t.readBits(8);if(254===i)return;this.parseTwoBytes(i,t.readBits(8),n);for(var a=0;a<3;a++){var s=n[a];switch(o){case 0:if(s<3)o=s+1;else{if(!(s0)},t.decodeAnsiX12Segment=function(t,e){var r=[];do{if(8===t.available())return;var n=t.readBits(8);if(254===n)return;this.parseTwoBytes(n,t.readBits(8),r);for(var o=0;o<3;o++){var i=r[o];switch(i){case 0:e.append("\r");break;case 1:e.append("*");break;case 2:e.append(">");break;case 3:e.append(" ");break;default:if(i<14)e.append(String.fromCharCode(i+44));else{if(!(i<40))throw new c.Z;e.append(String.fromCharCode(i+51))}break}}}while(t.available()>0)},t.parseTwoBytes=function(t,e,r){var n=(t<<8)+e-1,o=Math.floor(n/1600);r[0]=o,n-=1600*o,o=Math.floor(n/40),r[1]=o,r[2]=n-40*o},t.decodeEdifactSegment=function(t,e){do{if(t.available()<=16)return;for(var r=0;r<4;r++){var n=t.readBits(6);if(31===n){var o=8-t.getBitOffset();return void(8!==o&&t.readBits(o))}0===(32&n)&&(n|=64),e.append(String.fromCharCode(n))}}while(t.available()>0)},t.decodeBase256Segment=function(t,e,r){var n,o=1+t.getByteOffset(),i=this.unrandomize255State(t.readBits(8),o++);if(n=0===i?t.available()/8|0:i<250?i:250*(i-249)+this.unrandomize255State(t.readBits(8),o++),n<0)throw new c.Z;for(var a=new Uint8Array(n),f=0;f=0?n:n+256},t.C40_BASIC_SET_CHARS=["*","*","*"," ","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"],t.C40_SHIFT2_SET_CHARS=["!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","@","[","\\","]","^","_"],t.TEXT_BASIC_SET_CHARS=["*","*","*"," ","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"],t.TEXT_SHIFT2_SET_CHARS=t.C40_SHIFT2_SET_CHARS,t.TEXT_SHIFT3_SET_CHARS=["`","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","{","|","}","~",String.fromCharCode(127)],t}();e["Z"]=f},64973:function(t,e,r){r.d(e,{g:function(){return i}});var n=r(38707),o=r(36006),i=function(){function t(){}return t.prototype.getEncodingMode=function(){return n.KJ},t.prototype.encode=function(t){var e=o.Z.determineConsecutiveDigitCount(t.getMessage(),t.pos);if(e>=2)t.writeCodeword(this.encodeASCIIDigits(t.getMessage().charCodeAt(t.pos),t.getMessage().charCodeAt(t.pos+1))),t.pos+=2;else{var r=t.getCurrentChar(),i=o.Z.lookAheadTest(t.getMessage(),t.pos,this.getEncodingMode());if(i!==this.getEncodingMode())switch(i){case n.vF:return t.writeCodeword(n.Fd),void t.signalEncoderChange(n.vF);case n.Bw:return t.writeCodeword(n.RJ),void t.signalEncoderChange(n.Bw);case n.Pi:t.writeCodeword(n.xh),t.signalEncoderChange(n.Pi);break;case n.Uz:t.writeCodeword(n.HO),t.signalEncoderChange(n.Uz);break;case n.t_:t.writeCodeword(n.gy),t.signalEncoderChange(n.t_);break;default:throw new Error("Illegal mode: "+i)}else o.Z.isExtendedASCII(r)?(t.writeCodeword(n.R2),t.writeCodeword(r-128+1),t.pos++):(t.writeCodeword(r+1),t.pos++)}},t.prototype.encodeASCIIDigits=function(t,e){if(o.Z.isDigit(t)&&o.Z.isDigit(e)){var r=10*(t-48)+(e-48);return r+130}throw new Error("not digits: "+t+e)},t}()},3726:function(t,e,r){r.d(e,{M:function(){return s}});var n=r(72868),o=r(36845),i=r(36006),a=r(38707),s=function(){function t(){}return t.prototype.getEncodingMode=function(){return a.vF},t.prototype.encode=function(t){var e=new o.Z;e.append(0);while(t.hasMoreCharacters()){var r=t.getCurrentChar();e.append(r),t.pos++;var s=i.Z.lookAheadTest(t.getMessage(),t.pos,this.getEncodingMode());if(s!==this.getEncodingMode()){t.signalEncoderChange(a.KJ);break}}var u=e.length()-1,c=1,h=t.getCodewordCount()+u+c;t.updateSymbolInfo(h);var f=t.getSymbolInfo().getDataCapacity()-h>0;if(t.hasMoreCharacters()||f)if(u<=249)e.setCharAt(0,n.Z.getCharAt(u));else{if(!(u<=1555))throw new Error("Message length not in valid ranges: "+u);e.setCharAt(0,n.Z.getCharAt(Math.floor(u/250)+249)),e.insert(1,n.Z.getCharAt(u%250))}var l=0;for(r=e.length();l3||1!==h))&&(t.pos=o)}e.length()>0&&t.writeCodeword(i.RJ),this.handleEOD(t,e)},t.prototype.encode=function(t){var e=new n.Z;while(t.hasMoreCharacters()){var r=t.getCurrentChar();t.pos++;var a=this.encodeChar(r,e),s=2*Math.floor(e.length()/3),u=t.getCodewordCount()+s;t.updateSymbolInfo(u);var c=t.getSymbolInfo().getDataCapacity()-u;if(!t.hasMoreCharacters()){var h=new n.Z;e.length()%3===2&&2!==c&&(a=this.backtrackOneCharacter(t,e,h,a));while(e.length()%3===1&&(a>3||1!==c))a=this.backtrackOneCharacter(t,e,h,a);break}var f=e.length();if(f%3===0){var l=o.Z.lookAheadTest(t.getMessage(),t.pos,this.getEncodingMode());if(l!==this.getEncodingMode()){t.signalEncoderChange(i.KJ);break}}}this.handleEOD(t,e)},t.prototype.backtrackOneCharacter=function(t,e,r,n){var o=e.length(),i=e.toString().substring(0,o-n);e.setLengthToZero(),e.append(i),t.pos--;var a=t.getCurrentChar();return n=this.encodeChar(a,r),t.resetSymbolInfo(),n},t.prototype.writeNextTriplet=function(t,e){t.writeCodewords(this.encodeToCodewords(e.toString()));var r=e.toString().substring(3);e.setLengthToZero(),e.append(r)},t.prototype.handleEOD=function(t,e){var r=Math.floor(e.length()/3*2),n=e.length()%3,o=t.getCodewordCount()+r;t.updateSymbolInfo(o);var a=t.getSymbolInfo().getDataCapacity()-o;if(2===n){e.append("\0");while(e.length()>=3)this.writeNextTriplet(t,e);t.hasMoreCharacters()&&t.writeCodeword(i.fs)}else if(1===a&&1===n){while(e.length()>=3)this.writeNextTriplet(t,e);t.hasMoreCharacters()&&t.writeCodeword(i.fs),t.pos--}else{if(0!==n)throw new Error("Unexpected case. Please report!");while(e.length()>=3)this.writeNextTriplet(t,e);(a>0||t.hasMoreCharacters())&&t.writeCodeword(i.fs)}t.signalEncoderChange(i.KJ)},t.prototype.encodeChar=function(t,e){if(t===" ".charCodeAt(0))return e.append(3),1;if(t>="0".charCodeAt(0)&&t<="9".charCodeAt(0))return e.append(t-48+4),1;if(t>="A".charCodeAt(0)&&t<="Z".charCodeAt(0))return e.append(t-65+14),1;if(t<" ".charCodeAt(0))return e.append(0),e.append(t),2;if(t<="/".charCodeAt(0))return e.append(1),e.append(t-33),2;if(t<="@".charCodeAt(0))return e.append(1),e.append(t-58+15),2;if(t<="_".charCodeAt(0))return e.append(1),e.append(t-91+22),2;if(t<=127)return e.append(2),e.append(t-96),2;e.append("1");var r=2;return r+=this.encodeChar(t-128,e),r},t.prototype.encodeToCodewords=function(t){var e=1600*t.charCodeAt(0)+40*t.charCodeAt(1)+t.charCodeAt(2)+1,r=e/256,o=e%256,i=new n.Z;return i.append(r),i.append(o),i.toString()},t}()},25071:function(t,e,r){r(23767),r(8585),r(68696);var n=r(54671),o=function(){function t(t,e,r){this.codewords=t,this.numcols=e,this.numrows=r,this.bits=new Uint8Array(e*r),n.Z.fill(this.bits,2)}return t.prototype.getNumrows=function(){return this.numrows},t.prototype.getNumcols=function(){return this.numcols},t.prototype.getBits=function(){return this.bits},t.prototype.getBit=function(t,e){return 1===this.bits[e*this.numcols+t]},t.prototype.setBit=function(t,e,r){this.bits[e*this.numcols+t]=r?1:0},t.prototype.noBit=function(t,e){return 2===this.bits[e*this.numcols+t]},t.prototype.place=function(){var t=0,e=4,r=0;do{e===this.numrows&&0===r&&this.corner1(t++),e===this.numrows-2&&0===r&&this.numcols%4!==0&&this.corner2(t++),e===this.numrows-2&&0===r&&this.numcols%8===4&&this.corner3(t++),e===this.numrows+4&&2===r&&this.numcols%8===0&&this.corner4(t++);do{e=0&&this.noBit(r,e)&&this.utah(e,r,t++),e-=2,r+=2}while(e>=0&&r=0&&r=0);e+=3,r++}while(e=4){t.writeCodewords(this.encodeToCodewords(e.toString()));var u=e.toString().substring(4);e.setLengthToZero(),e.append(u);var c=a.Z.lookAheadTest(t.getMessage(),t.pos,this.getEncodingMode());if(c!==this.getEncodingMode()){t.signalEncoderChange(i.KJ);break}}}e.append(n.Z.getCharAt(31)),this.handleEOD(t,e)},t.prototype.handleEOD=function(t,e){try{var r=e.length();if(0===r)return;if(1===r){t.updateSymbolInfo();var n=t.getSymbolInfo().getDataCapacity()-t.getCodewordCount(),o=t.getRemainingCharacters();if(o>n&&(t.updateSymbolInfo(t.getCodewordCount()+1),n=t.getSymbolInfo().getDataCapacity()-t.getCodewordCount()),o<=n&&n<=2)return}if(r>4)throw new Error("Count must not exceed 4");var a=r-1,s=this.encodeToCodewords(e.toString()),u=!t.hasMoreCharacters(),c=u&&a<=2;if(a<=2){t.updateSymbolInfo(t.getCodewordCount()+a);n=t.getSymbolInfo().getDataCapacity()-t.getCodewordCount();n>=3&&(c=!1,t.updateSymbolInfo(t.getCodewordCount()+s.length))}c?(t.resetSymbolInfo(),t.pos-=a):t.writeCodewords(s)}finally{t.signalEncoderChange(i.KJ)}},t.prototype.encodeChar=function(t,e){t>=" ".charCodeAt(0)&&t<="?".charCodeAt(0)?e.append(t):t>="@".charCodeAt(0)&&t<="^".charCodeAt(0)?e.append(n.Z.getCharAt(t-64)):a.Z.illegalCharacter(n.Z.getCharAt(t))},t.prototype.encodeToCodewords=function(t){var e=t.length;if(0===e)throw new Error("StringBuilder must not be empty");var r=t.charAt(0).charCodeAt(0),n=e>=2?t.charAt(1).charCodeAt(0):0,i=e>=3?t.charAt(2).charCodeAt(0):0,a=e>=4?t.charAt(3).charCodeAt(0):0,s=(r<<18)+(n<<12)+(i<<6)+a,u=s>>16&255,c=s>>8&255,h=255&s,f=new o.Z;return f.append(u),e>=2&&f.append(c),e>=3&&f.append(h),f.toString()},t}()},64836:function(t,e,r){r.d(e,{y:function(){return i}});var n=r(36845),o=r(63264),i=function(){function t(t){this.msg=t,this.pos=0,this.skipAtEnd=0;for(var e=t.split("").map((function(t){return t.charCodeAt(0)})),r=new n.Z,o=0,i=e.length;othis.symbolInfo.getDataCapacity())&&(this.symbolInfo=o.Z.lookup(t,this.shape,this.minSize,this.maxSize,!0))},t.prototype.resetSymbolInfo=function(){this.symbolInfo=null},t}()},76983:function(t,e,r){var n=r(36845),o=r(38707),i=function(){function t(){}return t.encodeECC200=function(t,e){if(t.length!==e.getDataCapacity())throw new Error("The number of codewords does not match the selected symbol");var r=new n.Z;r.append(t);var o=e.getInterleavedBlockCount();if(1===o){var i=this.createECCBlock(t,e.getErrorCodewords());r.append(i)}else{for(var a=[],s=[],u=0;u0;u--)0!==s&&0!==i[u]?a[u]=a[u-1]^o.UD[(o.sY[s]+o.sY[i[u]])%255]:a[u]=a[u-1];0!==s&&0!==i[0]?a[0]=o.UD[(o.sY[s]+o.sY[i[0]])%255]:a[0]=0}var c=[];for(n=0;n=0&&(w=g.getNewEncoding(),g.resetEncoderSignal());var y=g.getCodewordCount();g.updateSymbolInfo();var v=g.getSymbolInfo().getDataCapacity();y=t.length)return r;var n;r===a.KJ?n=[0,1,1,1,1,1.25]:(n=[1,2,2,2,2,2.25],n[r]=0);var o=0,i=new Uint8Array(6),s=[];while(1){if(e+o===t.length){f.Z.fill(i,0),f.Z.fill(s,0);var u=this.findMinimums(n,s,l.Z.MAX_VALUE,i),c=this.getMinimumCount(i);if(s[a.KJ]===u)return a.KJ;if(1===c){if(i[a.vF]>0)return a.vF;if(i[a.t_]>0)return a.t_;if(i[a.Uz]>0)return a.Uz;if(i[a.Pi]>0)return a.Pi}return a.Bw}var h=t.charCodeAt(e+o);if(o++,this.isDigit(h)?n[a.KJ]+=.5:this.isExtendedASCII(h)?(n[a.KJ]=Math.ceil(n[a.KJ]),n[a.KJ]+=2):(n[a.KJ]=Math.ceil(n[a.KJ]),n[a.KJ]++),this.isNativeC40(h)?n[a.Bw]+=2/3:this.isExtendedASCII(h)?n[a.Bw]+=8/3:n[a.Bw]+=4/3,this.isNativeText(h)?n[a.Uz]+=2/3:this.isExtendedASCII(h)?n[a.Uz]+=8/3:n[a.Uz]+=4/3,this.isNativeX12(h)?n[a.Pi]+=2/3:this.isExtendedASCII(h)?n[a.Pi]+=13/3:n[a.Pi]+=10/3,this.isNativeEDIFACT(h)?n[a.t_]+=3/4:this.isExtendedASCII(h)?n[a.t_]+=4.25:n[a.t_]+=3.25,this.isSpecialB256(h)?n[a.vF]+=4:n[a.vF]++,o>=4){if(f.Z.fill(i,0),f.Z.fill(s,0),this.findMinimums(n,s,l.Z.MAX_VALUE,i),s[a.KJ]i&&(r=i,f.Z.fill(n,0)),r===i&&(n[o]=n[o]+1)}return r},t.getMinimumCount=function(t){for(var e=0,r=0;r<6;r++)e+=t[r];return e||0},t.isDigit=function(t){return t>="0".charCodeAt(0)&&t<="9".charCodeAt(0)},t.isExtendedASCII=function(t){return t>=128&&t<=255},t.isNativeC40=function(t){return t===" ".charCodeAt(0)||t>="0".charCodeAt(0)&&t<="9".charCodeAt(0)||t>="A".charCodeAt(0)&&t<="Z".charCodeAt(0)},t.isNativeText=function(t){return t===" ".charCodeAt(0)||t>="0".charCodeAt(0)&&t<="9".charCodeAt(0)||t>="a".charCodeAt(0)&&t<="z".charCodeAt(0)},t.isNativeX12=function(t){return this.isX12TermSep(t)||t===" ".charCodeAt(0)||t>="0".charCodeAt(0)&&t<="9".charCodeAt(0)||t>="A".charCodeAt(0)&&t<="Z".charCodeAt(0)},t.isX12TermSep=function(t){return 13===t||t==="*".charCodeAt(0)||t===">".charCodeAt(0)},t.isNativeEDIFACT=function(t){return t>=" ".charCodeAt(0)&&t<="^".charCodeAt(0)},t.isSpecialB256=function(t){return!1},t.determineConsecutiveDigitCount=function(t,e){void 0===e&&(e=0);var r=t.length,n=e;while(n=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},i=function(){function t(t,e,r,n,o,i,a,s){void 0===a&&(a=0),void 0===s&&(s=0),this.rectangular=t,this.dataCapacity=e,this.errorCodewords=r,this.matrixWidth=n,this.matrixHeight=o,this.dataRegions=i,this.rsBlockData=a,this.rsBlockError=s}return t.lookup=function(t,e,r,n,i){var a,u;void 0===e&&(e=0),void 0===r&&(r=null),void 0===n&&(n=null),void 0===i&&(i=!0);try{for(var c=o(s),h=c.next();!h.done;h=c.next()){var f=h.value;if((1!==e||!f.rectangular)&&((2!==e||f.rectangular)&&(null==r||!(f.getSymbolWidth()n.getWidth()||f.getSymbolHeight()>n.getHeight()))&&t<=f.dataCapacity))return f}}catch(l){a={error:l}}finally{try{h&&!h.done&&(u=c.return)&&u.call(c)}finally{if(a)throw a.error}}if(i)throw new Error("Can't find a symbol arrangement that matches the message. Data codewords: "+t);return null},t.prototype.getHorizontalDataRegions=function(){switch(this.dataRegions){case 1:return 1;case 2:case 4:return 2;case 16:return 4;case 36:return 6;default:throw new Error("Cannot handle this number of data regions")}},t.prototype.getVerticalDataRegions=function(){switch(this.dataRegions){case 1:case 2:return 1;case 4:return 2;case 16:return 4;case 36:return 6;default:throw new Error("Cannot handle this number of data regions")}},t.prototype.getSymbolDataWidth=function(){return this.getHorizontalDataRegions()*this.matrixWidth},t.prototype.getSymbolDataHeight=function(){return this.getVerticalDataRegions()*this.matrixHeight},t.prototype.getSymbolWidth=function(){return this.getSymbolDataWidth()+2*this.getHorizontalDataRegions()},t.prototype.getSymbolHeight=function(){return this.getSymbolDataHeight()+2*this.getVerticalDataRegions()},t.prototype.getCodewordCount=function(){return this.dataCapacity+this.errorCodewords},t.prototype.getInterleavedBlockCount=function(){return this.rsBlockData?this.dataCapacity/this.rsBlockData:1},t.prototype.getDataCapacity=function(){return this.dataCapacity},t.prototype.getErrorCodewords=function(){return this.errorCodewords},t.prototype.getDataLengthForInterleavedBlock=function(t){return this.rsBlockData},t.prototype.getErrorLengthForInterleavedBlock=function(t){return this.rsBlockError},t}();e["Z"]=i;var a=function(t){function e(){return t.call(this,!1,1558,620,22,22,36,-1,62)||this}return n(e,t),e.prototype.getInterleavedBlockCount=function(){return 10},e.prototype.getDataLengthForInterleavedBlock=function(t){return t<=8?156:155},e}(i),s=[new i(!1,3,5,8,8,1),new i(!1,5,7,10,10,1),new i(!0,5,7,16,6,1),new i(!1,8,10,12,12,1),new i(!0,10,11,14,6,2),new i(!1,12,12,14,14,1),new i(!0,16,14,24,10,1),new i(!1,18,14,16,16,1),new i(!1,22,18,18,18,1),new i(!0,22,18,16,10,2),new i(!1,30,20,20,20,1),new i(!0,32,24,16,14,2),new i(!1,36,24,22,22,1),new i(!1,44,28,24,24,1),new i(!0,49,28,22,14,2),new i(!1,62,36,14,14,4),new i(!1,86,42,16,16,4),new i(!1,114,48,18,18,4),new i(!1,144,56,20,20,4),new i(!1,174,68,22,22,4),new i(!1,204,84,24,24,4,102,42),new i(!1,280,112,14,14,16,140,56),new i(!1,368,144,16,16,16,92,36),new i(!1,456,192,18,18,16,114,48),new i(!1,576,224,20,20,16,144,56),new i(!1,696,272,22,22,16,174,68),new i(!1,816,336,24,24,16,136,56),new i(!1,1050,408,18,18,36,175,68),new i(!1,1304,496,20,20,36,163,62),new a]},79897:function(t,e,r){r.d(e,{p:function(){return a}});var n=r(45054),o=r(38707),i=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getEncodingMode=function(){return o.Uz},e.prototype.encodeChar=function(t,e){if(t===" ".charCodeAt(0))return e.append(3),1;if(t>="0".charCodeAt(0)&&t<="9".charCodeAt(0))return e.append(t-48+4),1;if(t>="a".charCodeAt(0)&&t<="z".charCodeAt(0))return e.append(t-97+14),1;if(t<" ".charCodeAt(0))return e.append(0),e.append(t),2;if(t<="/".charCodeAt(0))return e.append(1),e.append(t-33),2;if(t<="@".charCodeAt(0))return e.append(1),e.append(t-58+15),2;if(t>="[".charCodeAt(0)&&t<="_".charCodeAt(0))return e.append(1),e.append(t-91+22),2;if(t==="`".charCodeAt(0))return e.append(2),e.append(0),2;if(t<="Z".charCodeAt(0))return e.append(2),e.append(t-65+1),2;if(t<=127)return e.append(2),e.append(t-123+27),2;e.append("1");var r=2;return r+=this.encodeChar(t-128,e),r},e}(n.D)},60522:function(t,e,r){r.d(e,{c:function(){return c}});var n=r(72868),o=r(36845),i=r(45054),a=r(36006),s=r(38707),u=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e.prototype.getEncodingMode=function(){return s.Pi},e.prototype.encode=function(t){var e=new o.Z;while(t.hasMoreCharacters()){var r=t.getCurrentChar();t.pos++,this.encodeChar(r,e);var n=e.length();if(n%3===0){this.writeNextTriplet(t,e);var i=a.Z.lookAheadTest(t.getMessage(),t.pos,this.getEncodingMode());if(i!==this.getEncodingMode()){t.signalEncoderChange(s.KJ);break}}}this.handleEOD(t,e)},e.prototype.encodeChar=function(t,e){switch(t){case 13:e.append(0);break;case"*".charCodeAt(0):e.append(1);break;case">".charCodeAt(0):e.append(2);break;case" ".charCodeAt(0):e.append(3);break;default:t>="0".charCodeAt(0)&&t<="9".charCodeAt(0)?e.append(t-48+4):t>="A".charCodeAt(0)&&t<="Z".charCodeAt(0)?e.append(t-65+14):a.Z.illegalCharacter(n.Z.getCharAt(t));break}return 1},e.prototype.handleEOD=function(t,e){t.updateSymbolInfo();var r=t.getSymbolInfo().getDataCapacity()-t.getCodewordCount(),n=e.length();t.pos-=n,(t.getRemainingCharacters()>1||r>1||t.getRemainingCharacters()!==r)&&t.writeCodeword(s.RW),t.getNewEncoding()<0&&t.signalEncoderChange(s.KJ)},e}(i.D)},38707:function(t,e,r){var n;r.d(e,{Bg:function(){return f},Bw:function(){return T},Fd:function(){return d},HO:function(){return v},Jg:function(){return w},KJ:function(){return S},Lt:function(){return I},Pi:function(){return O},R2:function(){return p},RJ:function(){return l},RW:function(){return A},Sh:function(){return a},UD:function(){return h},Uz:function(){return b},cA:function(){return i},fs:function(){return C},gy:function(){return _},np:function(){return E},nz:function(){return g},qL:function(){return m},sY:function(){return c},t_:function(){return R},vF:function(){return N},xh:function(){return y}});var o,i=[5,7,10,11,12,14,18,20,24,28,36,42,48,56,62,68],a=[[228,48,15,111,62],[23,68,144,134,240,92,254],[28,24,185,166,223,248,116,255,110,61],[175,138,205,12,194,168,39,245,60,97,120],[41,153,158,91,61,42,142,213,97,178,100,242],[156,97,192,252,95,9,157,119,138,45,18,186,83,185],[83,195,100,39,188,75,66,61,241,213,109,129,94,254,225,48,90,188],[15,195,244,9,233,71,168,2,188,160,153,145,253,79,108,82,27,174,186,172],[52,190,88,205,109,39,176,21,155,197,251,223,155,21,5,172,254,124,12,181,184,96,50,193],[211,231,43,97,71,96,103,174,37,151,170,53,75,34,249,121,17,138,110,213,141,136,120,151,233,168,93,255],[245,127,242,218,130,250,162,181,102,120,84,179,220,251,80,182,229,18,2,4,68,33,101,137,95,119,115,44,175,184,59,25,225,98,81,112],[77,193,137,31,19,38,22,153,247,105,122,2,245,133,242,8,175,95,100,9,167,105,214,111,57,121,21,1,253,57,54,101,248,202,69,50,150,177,226,5,9,5],[245,132,172,223,96,32,117,22,238,133,238,231,205,188,237,87,191,106,16,147,118,23,37,90,170,205,131,88,120,100,66,138,186,240,82,44,176,87,187,147,160,175,69,213,92,253,225,19],[175,9,223,238,12,17,220,208,100,29,175,170,230,192,215,235,150,159,36,223,38,200,132,54,228,146,218,234,117,203,29,232,144,238,22,150,201,117,62,207,164,13,137,245,127,67,247,28,155,43,203,107,233,53,143,46],[242,93,169,50,144,210,39,118,202,188,201,189,143,108,196,37,185,112,134,230,245,63,197,190,250,106,185,221,175,64,114,71,161,44,147,6,27,218,51,63,87,10,40,130,188,17,163,31,176,170,4,107,232,7,94,166,224,124,86,47,11,204],[220,228,173,89,251,149,159,56,89,33,147,244,154,36,73,127,213,136,248,180,234,197,158,177,68,122,93,213,15,160,227,236,66,139,153,185,202,167,179,25,220,232,96,210,231,136,223,239,181,241,59,52,172,25,49,232,211,189,64,54,108,153,132,63,96,103,82,186]],s=301,u=function(t,e){for(var r=1,n=0;n<255;n++)e[n]=r,t[r]=n,r*=2,r>=256&&(r^=s);return{LOG:t,ALOG:e}},c=(n=u([],[]),n.LOG),h=n.ALOG;(function(t){t[t["FORCE_NONE"]=0]="FORCE_NONE",t[t["FORCE_SQUARE"]=1]="FORCE_SQUARE",t[t["FORCE_RECTANGLE"]=2]="FORCE_RECTANGLE"})(o||(o={}));var f=129,l=230,d=231,p=235,g=236,w=237,y=238,v=239,_=240,C=254,A=254,m="[)>05",E="[)>06",I="",S=0,T=1,b=2,O=3,R=4,N=5},96762:function(t,e,r){r(57658);var n=r(91373),o=r(53706),i=r(6828),a=r(54739),s=r(69728),u=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.CODA_BAR_CHAR_SET={nnnnnww:"0",nnnnwwn:"1",nnnwnnw:"2",wwnnnnn:"3",nnwnnwn:"4",wnnnnwn:"5",nwnnnnw:"6",nwnnwnn:"7",nwwnnnn:"8",wnnwnnn:"9",nnnwwnn:"-",nnwwnnn:"$",wnnnwnw:":",wnwnnnw:"/",wnwnwnn:".",nnwwwww:"+",nnwwnwn:"A",nwnwnnw:"B",nnnwnww:"C",nnnwwwn:"D"},e}return u(e,t),e.prototype.decodeRow=function(t,e,r){var i=this.getValidRowData(e);if(!i)throw new o.Z;var u=this.codaBarDecodeRow(i.row);if(!u)throw new o.Z;return new a.Z(u,null,0,[new s.Z(i.left,t),new s.Z(i.right,t)],n.Z.CODABAR,(new Date).getTime())},e.prototype.getValidRowData=function(t){var e=t.toArray(),r=e.indexOf(!0);if(-1===r)return null;var n=e.lastIndexOf(!0);if(n<=r)return null;e=e.slice(r,n+1);for(var o=[],i=e[0],a=1,s=1;s0){var n=t.splice(0,8).splice(0,7),o=n.map((function(t){return t=0&&t.isRange(Math.max(0,a-(f-a)/2),a,!1))return Int32Array.from([a,f,d]);a+=i[0]+i[1],i=i.slice(2,i.length-1),i[o-1]=0,i[o]=0,o--}else o++;i[o]=1,u=!u}throw new s.Z},e.decodeCode=function(t,r,n){h.Z.recordPattern(t,n,r);for(var o=e.MAX_AVG_VARIANCE,i=-1,a=0;a=0)return i;throw new s.Z},e.prototype.decodeRow=function(t,r,h){var f,l=h&&!0===h.get(i.Z.ASSUME_GS1),d=e.findStartPattern(r),p=d[2],g=0,w=new Uint8Array(20);switch(w[g++]=p,p){case e.CODE_START_A:f=e.CODE_CODE_A;break;case e.CODE_START_B:f=e.CODE_CODE_B;break;case e.CODE_START_C:f=e.CODE_CODE_C;break;default:throw new a.Z}var y=!1,v=!1,_="",C=d[0],A=d[1],m=Int32Array.from([0,0,0,0,0,0]),E=0,I=0,S=p,T=0,b=!0,O=!1,R=!1;while(!y){var N=v;switch(v=!1,E=I,I=e.decodeCode(r,m,A),w[g++]=I,I!==e.CODE_STOP&&(b=!0),I!==e.CODE_STOP&&(T++,S+=T*I),C=A,A+=m.reduce((function(t,e){return t+e}),0),I){case e.CODE_START_A:case e.CODE_START_B:case e.CODE_START_C:throw new a.Z}switch(f){case e.CODE_CODE_A:if(I<64)_+=R===O?String.fromCharCode(" ".charCodeAt(0)+I):String.fromCharCode(" ".charCodeAt(0)+I+128),R=!1;else if(I<96)_+=R===O?String.fromCharCode(I-64):String.fromCharCode(I+64),R=!1;else switch(I!==e.CODE_STOP&&(b=!1),I){case e.CODE_FNC_1:l&&(0===_.length?_+="]C1":_+=String.fromCharCode(29));break;case e.CODE_FNC_2:case e.CODE_FNC_3:break;case e.CODE_FNC_4_A:!O&&R?(O=!0,R=!1):O&&R?(O=!1,R=!1):R=!0;break;case e.CODE_SHIFT:v=!0,f=e.CODE_CODE_B;break;case e.CODE_CODE_B:f=e.CODE_CODE_B;break;case e.CODE_CODE_C:f=e.CODE_CODE_C;break;case e.CODE_STOP:y=!0;break}break;case e.CODE_CODE_B:if(I<96)_+=R===O?String.fromCharCode(" ".charCodeAt(0)+I):String.fromCharCode(" ".charCodeAt(0)+I+128),R=!1;else switch(I!==e.CODE_STOP&&(b=!1),I){case e.CODE_FNC_1:l&&(0===_.length?_+="]C1":_+=String.fromCharCode(29));break;case e.CODE_FNC_2:case e.CODE_FNC_3:break;case e.CODE_FNC_4_B:!O&&R?(O=!0,R=!1):O&&R?(O=!1,R=!1):R=!0;break;case e.CODE_SHIFT:v=!0,f=e.CODE_CODE_A;break;case e.CODE_CODE_A:f=e.CODE_CODE_A;break;case e.CODE_CODE_C:f=e.CODE_CODE_C;break;case e.CODE_STOP:y=!0;break}break;case e.CODE_CODE_C:if(I<100)I<10&&(_+="0"),_+=I;else switch(I!==e.CODE_STOP&&(b=!1),I){case e.CODE_FNC_1:l&&(0===_.length?_+="]C1":_+=String.fromCharCode(29));break;case e.CODE_CODE_A:f=e.CODE_CODE_A;break;case e.CODE_CODE_B:f=e.CODE_CODE_B;break;case e.CODE_STOP:y=!0;break}break}N&&(f=f===e.CODE_CODE_A?e.CODE_CODE_B:e.CODE_CODE_A)}var Z=A-C;if(A=r.getNextUnset(A),!r.isRange(A,Math.min(r.getSize(),A+(A-C)/2),!1))throw new s.Z;if(S-=T*E,S%103!==E)throw new o.Z;var D=_.length;if(0===D)throw new s.Z;D>0&&b&&(_=f===e.CODE_CODE_C?_.substring(0,D-2):_.substring(0,D-1));for(var M=(d[1]+d[0])/2,P=C+Z/2,B=w.length,L=new Uint8Array(B),F=0;F=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},l=function(t){function e(e,r){void 0===e&&(e=!1),void 0===r&&(r=!1);var n=t.call(this)||this;return n.usingCheckDigit=e,n.extendedMode=r,n.decodeRowResult="",n.counters=new Int32Array(9),n}return h(e,t),e.prototype.decodeRow=function(t,r,i){var s,h,l,d,p=this.counters;p.fill(0),this.decodeRowResult="";var g,w,y=e.findAsteriskPattern(r,p),v=r.getNextSet(y[1]),_=r.getSize();do{e.recordPattern(r,v,p);var C=e.toNarrowWidePattern(p);if(C<0)throw new a.Z;g=e.patternToChar(C),this.decodeRowResult+=g,w=v;try{for(var A=(s=void 0,f(p)),m=A.next();!m.done;m=A.next()){var E=m.value;v+=E}}catch(P){s={error:P}}finally{try{m&&!m.done&&(h=A.return)&&h.call(A)}finally{if(s)throw s.error}}v=r.getNextSet(v)}while("*"!==g);this.decodeRowResult=this.decodeRowResult.substring(0,this.decodeRowResult.length-1);var I=0;try{for(var S=f(p),T=S.next();!T.done;T=S.next()){E=T.value;I+=E}}catch(B){l={error:B}}finally{try{T&&!T.done&&(d=S.return)&&d.call(S)}finally{if(l)throw l.error}}var b,O=v-w-I;if(v!==_&&2*Oi&&(a=c)}}catch(p){e={error:p}}finally{try{u&&!u.done&&(r=s.return)&&r.call(s)}finally{if(e)throw e.error}}i=a,n=0;for(var h=0,l=0,d=0;di&&(l|=1<0;d++){c=t[d];if(c>i&&(n--,2*c>=h))return-1}return l}}while(n>3);return-1},e.patternToChar=function(t){for(var r=0;r="A"&&a<="Z"))throw new i.Z;s=String.fromCharCode(a.charCodeAt(0)+32);break;case"$":if(!(a>="A"&&a<="Z"))throw new i.Z;s=String.fromCharCode(a.charCodeAt(0)-64);break;case"%":if(a>="A"&&a<="E")s=String.fromCharCode(a.charCodeAt(0)-38);else if(a>="F"&&a<="J")s=String.fromCharCode(a.charCodeAt(0)-11);else if(a>="K"&&a<="O")s=String.fromCharCode(a.charCodeAt(0)+16);else if(a>="P"&&a<="T")s=String.fromCharCode(a.charCodeAt(0)+43);else if("U"===a)s="\0";else if("V"===a)s="@";else if("W"===a)s="`";else{if("X"!==a&&"Y"!==a&&"Z"!==a)throw new i.Z;s=""}break;case"/":if(a>="A"&&a<="O")s=String.fromCharCode(a.charCodeAt(0)-32);else{if("Z"!==a)throw new i.Z;s=":"}break}r+=s,n++}else r+=o}return r},e.ALPHABET_STRING="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%",e.CHARACTER_ENCODINGS=[52,289,97,352,49,304,112,37,292,100,265,73,328,25,280,88,13,268,76,28,259,67,322,19,274,82,7,262,70,22,385,193,448,145,400,208,133,388,196,168,162,138,42],e.ASTERISK_ENCODING=148,e}(s.Z);e["Z"]=l},16196:function(t,e,r){r(23767),r(8585),r(68696);var n=r(91373),o=r(85777),i=r(6459),a=r(53706),s=r(6828),u=r(54739),c=r(69728),h=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),f=function(t){var e="function"===typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},l=function(t){function e(){var e=t.call(this)||this;return e.decodeRowResult="",e.counters=new Int32Array(6),e}return h(e,t),e.prototype.decodeRow=function(t,r,o){var i,s,h,l,d,p,g=this.findAsteriskPattern(r),w=r.getNextSet(g[1]),y=r.getSize(),v=this.counters;v.fill(0),this.decodeRowResult="";do{e.recordPattern(r,w,v);var _=this.toPattern(v);if(_<0)throw new a.Z;d=this.patternToChar(_),this.decodeRowResult+=d,p=w;try{for(var C=(i=void 0,f(v)),A=C.next();!A.done;A=C.next()){var m=A.value;w+=m}}catch(R){i={error:R}}finally{try{A&&!A.done&&(s=C.return)&&s.call(C)}finally{if(i)throw i.error}}w=r.getNextSet(w)}while("*"!==d);this.decodeRowResult=this.decodeRowResult.substring(0,this.decodeRowResult.length-1);var E=0;try{for(var I=f(v),S=I.next();!S.done;S=I.next()){m=S.value;E+=m}}catch(N){h={error:N}}finally{try{S&&!S.done&&(l=I.return)&&l.call(I)}finally{if(h)throw h.error}}if(w===y||!r.get(w))throw new a.Z;if(this.decodeRowResult.length<2)throw new a.Z;this.checkChecksums(this.decodeRowResult),this.decodeRowResult=this.decodeRowResult.substring(0,this.decodeRowResult.length-2);var T=this.decodeExtended(this.decodeRowResult),b=(g[1]+g[0])/2,O=p+E/2;return new u.Z(T,null,0,[new c.Z(b,t),new c.Z(O,t)],n.Z.CODE_93,(new Date).getTime())},e.prototype.findAsteriskPattern=function(t){var r=t.getSize(),n=t.getNextSet(0);this.counters.fill(0);for(var o=this.counters,i=n,s=!1,u=o.length,c=0,h=n;h4)return-1;if(0===(1&c))for(var l=0;l="a"&&o<="d"){if(n>=e-1)throw new i.Z;var a=t.charAt(n+1),s="\0";switch(o){case"d":if(!(a>="A"&&a<="Z"))throw new i.Z;s=String.fromCharCode(a.charCodeAt(0)+32);break;case"a":if(!(a>="A"&&a<="Z"))throw new i.Z;s=String.fromCharCode(a.charCodeAt(0)-64);break;case"b":if(a>="A"&&a<="E")s=String.fromCharCode(a.charCodeAt(0)-38);else if(a>="F"&&a<="J")s=String.fromCharCode(a.charCodeAt(0)-11);else if(a>="K"&&a<="O")s=String.fromCharCode(a.charCodeAt(0)+16);else if(a>="P"&&a<="T")s=String.fromCharCode(a.charCodeAt(0)+43);else if("U"===a)s="\0";else if("V"===a)s="@";else if("W"===a)s="`";else{if(!(a>="X"&&a<="Z"))throw new i.Z;s=String.fromCharCode(127)}break;case"c":if(a>="A"&&a<="O")s=String.fromCharCode(a.charCodeAt(0)-32);else{if("Z"!==a)throw new i.Z;s=":"}break}r+=s,n++}else r+=o}return r},e.prototype.checkChecksums=function(t){var e=t.length;this.checkOneChecksum(t,e-2,20),this.checkOneChecksum(t,e-1,15)},e.prototype.checkOneChecksum=function(t,r,n){for(var i=1,a=0,s=r-1;s>=0;s--)a+=i*e.ALPHABET_STRING.indexOf(t.charAt(s)),++i>n&&(i=1);if(t.charAt(r)!==e.ALPHABET_STRING[a%47])throw new o.Z},e.ALPHABET_STRING="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%abcd*",e.CHARACTER_ENCODINGS=[276,328,324,322,296,292,290,336,274,266,424,420,418,404,402,394,360,356,354,308,282,344,332,326,300,278,436,434,428,422,406,410,364,358,310,314,302,468,466,458,366,374,430,294,474,470,306,350],e.ASTERISK_ENCODING=e.CHARACTER_ENCODINGS[47],e}(s.Z);e["Z"]=l},14977:function(t,e,r){r(23767),r(8585),r(68696);var n=r(91373),o=r(39426),i=r(53706),a=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),s=function(t){var e="function"===typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},u=function(t){function e(){var e=t.call(this)||this;return e.decodeMiddleCounters=Int32Array.from([0,0,0,0]),e}return a(e,t),e.prototype.decodeMiddle=function(t,r,n){var i,a,u,c,h=this.decodeMiddleCounters;h[0]=0,h[1]=0,h[2]=0,h[3]=0;for(var f=t.getSize(),l=r[1],d=0,p=0;p<6&&l=10&&(d|=1<<5-p)}n=e.determineFirstDigit(n,d);var _=o.Z.findGuardPattern(t,l,!0,o.Z.MIDDLE_PATTERN,new Int32Array(o.Z.MIDDLE_PATTERN.length).fill(0));l=_[1];for(p=0;p<6&&l=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.narrowLineWidth=-1,e}return l(e,t),e.prototype.decodeRow=function(t,r,a){var h,f,l=this.decodeStart(r),p=this.decodeEnd(r),g=new c.Z;e.decodeMiddle(r,l[1],p[0],g);var w=g.toString(),y=null;null!=a&&(y=a.get(o.Z.ALLOWED_LENGTHS)),null==y&&(y=e.DEFAULT_ALLOWED_LENGTHS);var v=w.length,_=!1,C=0;try{for(var A=d(y),m=A.next();!m.done;m=A.next()){var E=m.value;if(v===E){_=!0;break}E>C&&(C=E)}}catch(T){h={error:T}}finally{try{m&&!m.done&&(f=A.return)&&f.call(A)}finally{if(h)throw h.error}}if(!_&&v>C&&(_=!0),!_)throw new i.Z;var I=[new u.Z(l[1],t),new u.Z(p[0],t)],S=new s.Z(w,null,0,I,n.Z.ITF,(new Date).getTime());return S},e.decodeMiddle=function(t,r,n,o){var i=new Int32Array(10),a=new Int32Array(5),s=new Int32Array(5);i.fill(0),a.fill(0),s.fill(0);while(r0&&n>=0;n--){if(t.get(n))break;r--}if(0!==r)throw new a.Z},e.skipWhiteSpace=function(t){var e=t.getSize(),r=t.getNextSet(0);if(r===e)throw new a.Z;return r},e.prototype.decodeEnd=function(t){t.reverse();try{var r=e.skipWhiteSpace(t),n=void 0;try{n=e.findGuardPattern(t,r,e.END_PATTERN_REVERSED[0])}catch(i){i instanceof a.Z&&(n=e.findGuardPattern(t,r,e.END_PATTERN_REVERSED[1]))}this.validateQuietZone(t,n[0]);var o=n[0];return n[0]=t.getSize()-n[1],n[1]=t.getSize()-o,n}finally{t.reverse()}},e.findGuardPattern=function(t,r,n){var o=n.length,i=new Int32Array(o),s=t.getSize(),u=!1,c=0,l=r;i.fill(0);for(var d=r;d=0)return n%10;throw new a.Z},e.PATTERNS=[Int32Array.from([1,1,2,2,1]),Int32Array.from([2,1,1,1,2]),Int32Array.from([1,2,1,1,2]),Int32Array.from([2,2,1,1,1]),Int32Array.from([1,1,2,1,2]),Int32Array.from([2,1,2,1,1]),Int32Array.from([1,2,2,1,1]),Int32Array.from([1,1,1,2,2]),Int32Array.from([2,1,1,2,1]),Int32Array.from([1,2,1,2,1]),Int32Array.from([1,1,3,3,1]),Int32Array.from([3,1,1,1,3]),Int32Array.from([1,3,1,1,3]),Int32Array.from([3,3,1,1,1]),Int32Array.from([1,1,3,1,3]),Int32Array.from([3,1,3,1,1]),Int32Array.from([1,3,3,1,1]),Int32Array.from([1,1,1,3,3]),Int32Array.from([3,1,1,3,1]),Int32Array.from([1,3,1,3,1])],e.MAX_AVG_VARIANCE=.38,e.MAX_INDIVIDUAL_VARIANCE=.5,e.DEFAULT_ALLOWED_LENGTHS=[6,8,10,12,14],e.START_PATTERN=Int32Array.from([1,1,1,1]),e.END_PATTERN_REVERSED=[Int32Array.from([1,1,2]),Int32Array.from([1,1,3])],e}(f.Z);e["Z"]=p},32990:function(t,e,r){r.d(e,{Z:function(){return B}});r(57658);var n=r(91373),o=r(80206),i=r(53706),a=r(43701),s=r(55341),u=r(16196),c=r(21753),h=r(54739),f=r(6828),l=r(14977),d=(r(23767),r(8585),r(68696),r(39426)),p=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),g=function(t){var e="function"===typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},w=function(t){function e(){var e=t.call(this)||this;return e.decodeMiddleCounters=Int32Array.from([0,0,0,0]),e}return p(e,t),e.prototype.decodeMiddle=function(t,e,r){var n,o,i,a,s=this.decodeMiddleCounters;s[0]=0,s[1]=0,s[2]=0,s[3]=0;for(var u=t.getSize(),c=e[1],h=0;h<4&&c=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},I=function(t){function e(){var e=t.call(this)||this;return e.decodeMiddleCounters=new Int32Array(4),e}return m(e,t),e.prototype.decodeMiddle=function(t,r,n){var o,i,a=this.decodeMiddleCounters.map((function(t){return t}));a[0]=0,a[1]=0,a[2]=0,a[3]=0;for(var s=t.getSize(),u=r[1],c=0,h=0;h<6&&u=10&&(c|=1<<5-h)}return e.determineNumSysAndCheckDigit(new A.Z(n),c),u},e.prototype.decodeEnd=function(t,r){return e.findGuardPatternWithoutCounters(t,r,!0,e.MIDDLE_END_PATTERN)},e.prototype.checkChecksum=function(t){return d.Z.checkChecksum(e.convertUPCEtoUPCA(t))},e.determineNumSysAndCheckDigit=function(t,e){for(var r=0;r<=1;r++)for(var n=0;n<10;n++)if(e===this.NUMSYS_AND_CHECK_DIGIT_PATTERNS[r][n])return t.insert(0,"0"+r),void t.append("0"+n);throw i.Z.getNotFoundInstance()},e.prototype.getBarcodeFormat=function(){return n.Z.UPC_E},e.convertUPCEtoUPCA=function(t){var e=t.slice(1,7).split("").map((function(t){return t.charCodeAt(0)})),r=new A.Z;r.append(t.charAt(0));var n=e[5];switch(n){case 0:case 1:case 2:r.appendChars(e,0,2),r.append(n),r.append("0000"),r.appendChars(e,2,3);break;case 3:r.appendChars(e,0,3),r.append("00000"),r.appendChars(e,3,2);break;case 4:r.appendChars(e,0,4),r.append("00000"),r.append(e[4]);break;default:r.appendChars(e,0,5),r.append("0000"),r.append(n);break}return t.length>=8&&r.append(t.charAt(7)),r.toString()},e.MIDDLE_END_PATTERN=Int32Array.from([1,1,1,1,1,1]),e.NUMSYS_AND_CHECK_DIGIT_PATTERNS=[Int32Array.from([56,52,50,49,44,38,35,42,41,37]),Int32Array.from([7,11,13,14,19,25,28,21,22,1])],e}(d.Z),S=I,T=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),b=function(t){var e="function"===typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},O=function(t){function e(e){var r=t.call(this)||this,i=null==e?null:e.get(o.Z.POSSIBLE_FORMATS),a=[];return null!=i&&(i.indexOf(n.Z.EAN_13)>-1&&a.push(new l.Z),i.indexOf(n.Z.UPC_A)>-1&&a.push(new C),i.indexOf(n.Z.EAN_8)>-1&&a.push(new y),i.indexOf(n.Z.UPC_E)>-1&&a.push(new S)),0===a.length&&(a.push(new l.Z),a.push(new C),a.push(new y),a.push(new S)),r.readers=a,r}return T(e,t),e.prototype.decodeRow=function(t,e,r){var a,s;try{for(var u=b(this.readers),c=u.next();!c.done;c=u.next()){var f=c.value;try{var l=f.decodeRow(t,e,r),d=l.getBarcodeFormat()===n.Z.EAN_13&&"0"===l.getText().charAt(0),p=null==r?null:r.get(o.Z.POSSIBLE_FORMATS),g=null==p||p.includes(n.Z.UPC_A);if(d&&g){var w=l.getRawBytes(),y=new h.Z(l.getText().substring(1),w,w?w.length:null,l.getResultPoints(),n.Z.UPC_A);return y.putAllMetadata(l.getResultMetadata()),y}return l}catch(v){}}}catch(_){a={error:_}}finally{try{c&&!c.done&&(s=u.return)&&s.call(u)}finally{if(a)throw a.error}}throw new i.Z},e.prototype.reset=function(){var t,e;try{for(var r=b(this.readers),n=r.next();!n.done;n=r.next()){var o=n.value;o.reset()}}catch(i){t={error:i}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}},e}(f.Z),R=O,N=r(96762),Z=r(83926),D=r(26388),M=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),P=function(t){function e(e){var r=t.call(this)||this;r.readers=[];var i=e?e.get(o.Z.POSSIBLE_FORMATS):null,h=e&&void 0!==e.get(o.Z.ASSUME_CODE_39_CHECK_DIGIT);return i&&((i.includes(n.Z.EAN_13)||i.includes(n.Z.UPC_A)||i.includes(n.Z.EAN_8)||i.includes(n.Z.UPC_E))&&r.readers.push(new R(e)),i.includes(n.Z.CODE_39)&&r.readers.push(new s.Z(h)),i.includes(n.Z.CODE_93)&&r.readers.push(new u.Z),i.includes(n.Z.CODE_128)&&r.readers.push(new a.Z),i.includes(n.Z.ITF)&&r.readers.push(new c.Z),i.includes(n.Z.CODABAR)&&r.readers.push(new N.Z),i.includes(n.Z.RSS_14)&&r.readers.push(new D.Z),i.includes(n.Z.RSS_EXPANDED)&&(console.warn("RSS Expanded reader IS NOT ready for production yet! use at your own risk."),r.readers.push(new Z.Z))),0===r.readers.length&&(r.readers.push(new R(e)),r.readers.push(new s.Z),r.readers.push(new u.Z),r.readers.push(new R(e)),r.readers.push(new a.Z),r.readers.push(new c.Z),r.readers.push(new D.Z)),r}return M(e,t),e.prototype.decodeRow=function(t,e,r){for(var n=0;n>(f?8:5));r=f?c:15;for(var d=Math.trunc(c/2),p=0;p=c)break;try{h=t.getBlackRow(y,h)}catch(m){continue}for(var v=function(t){if(1===t&&(h.reverse(),e&&!0===e.get(o.Z.NEED_RESULT_POINT_CALLBACK))){var r=new Map;e.forEach((function(t,e){return r.set(e,t)})),r.delete(o.Z.NEED_RESULT_POINT_CALLBACK),e=r}try{var n=_.decodeRow(y,h,e);if(1===t){n.putMetadata(i.Z.ORIENTATION,180);var s=n.getResultPoints();null!==s&&(s[0]=new a.Z(u-s[0].getX()-1,s[0].getY()),s[1]=new a.Z(u-s[1].getX()-1,s[1].getY()))}return{value:n}}catch(c){}},_=this,C=0;C<2;C++){var A=v(C);if("object"===typeof A)return A.value}}throw new s.Z},t.recordPattern=function(t,e,r){for(var n=r.length,o=0;o=i)throw new s.Z;var a=!t.get(e),u=0,c=e;while(c0&&o>=0)e.get(--r)!==i&&(o--,i=!i);if(o>=0)throw new s.Z;t.recordPattern(e,r+1,n)},t.patternMatchVariance=function(t,e,r){for(var n=t.length,o=0,i=0,a=0;af?h-f:f-h;if(l>r)return Number.POSITIVE_INFINITY;u+=l}return u/o},t}();e["Z"]=u},39426:function(t,e,r){r.d(e,{Z:function(){return S}});r(23767),r(8585),r(68696);var n=r(91373),o=r(80206),i=r(54739),a=r(69153),s=r(69728),u=r(6828),c=r(53706),h=r(6459),f=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.decodeRowStringBuffer="",e}return f(e,t),e.findStartGuardPattern=function(t){var r,n=!1,o=0,i=Int32Array.from([0,0,0]);while(!n){i=Int32Array.from([0,0,0]),r=e.findGuardPattern(t,o,!1,this.START_END_PATTERN,i);var a=r[0];o=r[1];var s=a-(o-a);s>=0&&(n=t.isRange(s,a,!1))}return r},e.checkChecksum=function(t){return e.checkStandardUPCEANChecksum(t)},e.checkStandardUPCEANChecksum=function(t){var r=t.length;if(0===r)return!1;var n=parseInt(t.charAt(r-1),10);return e.getStandardUPCEANChecksum(t.substring(0,r-1))===n},e.getStandardUPCEANChecksum=function(t){for(var e=t.length,r=0,n=e-1;n>=0;n-=2){var o=t.charAt(n).charCodeAt(0)-"0".charCodeAt(0);if(o<0||o>9)throw new h.Z;r+=o}r*=3;for(n=e-2;n>=0;n-=2){o=t.charAt(n).charCodeAt(0)-"0".charCodeAt(0);if(o<0||o>9)throw new h.Z;r+=o}return(1e3-r)%10},e.decodeEnd=function(t,r){return e.findGuardPattern(t,r,!1,e.START_END_PATTERN,new Int32Array(e.START_END_PATTERN.length).fill(0))},e.findGuardPatternWithoutCounters=function(t,e,r,n){return this.findGuardPattern(t,e,r,n,new Int32Array(n.length))},e.findGuardPattern=function(t,r,n,o,i){var a=t.getSize();r=n?t.getNextUnset(r):t.getNextSet(r);for(var s=0,h=r,f=o.length,l=n,d=r;d=0)return a;throw new c.Z},e.MAX_AVG_VARIANCE=.48,e.MAX_INDIVIDUAL_VARIANCE=.7,e.START_END_PATTERN=Int32Array.from([1,1,1]),e.MIDDLE_PATTERN=Int32Array.from([1,1,1,1,1]),e.END_PATTERN=Int32Array.from([1,1,1,1,1,1]),e.L_PATTERNS=[Int32Array.from([3,2,1,1]),Int32Array.from([2,2,2,1]),Int32Array.from([2,1,2,2]),Int32Array.from([1,4,1,1]),Int32Array.from([1,1,3,2]),Int32Array.from([1,2,3,1]),Int32Array.from([1,1,1,4]),Int32Array.from([1,3,1,2]),Int32Array.from([1,2,1,3]),Int32Array.from([3,1,1,2])],e}(u.Z),d=l,p=function(t){var e="function"===typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},g=function(){function t(){this.CHECK_DIGIT_ENCODINGS=[24,20,18,17,12,6,3,10,9,5],this.decodeMiddleCounters=Int32Array.from([0,0,0,0]),this.decodeRowStringBuffer=""}return t.prototype.decodeRow=function(e,r,o){var a=this.decodeRowStringBuffer,u=this.decodeMiddle(r,o,a),c=a.toString(),h=t.parseExtensionString(c),f=[new s.Z((o[0]+o[1])/2,e),new s.Z(u,e)],l=new i.Z(c,null,0,f,n.Z.UPC_EAN_EXTENSION,(new Date).getTime());return null!=h&&l.putAllMetadata(h),l},t.prototype.decodeMiddle=function(e,r,n){var o,i,a=this.decodeMiddleCounters;a[0]=0,a[1]=0,a[2]=0,a[3]=0;for(var s=e.getSize(),u=r[1],h=0,f=0;f<5&&u=10&&(h|=1<<4-f),4!==f&&(u=e.getNextSet(u),u=e.getNextUnset(u))}if(5!==n.length)throw new c.Z;var v=this.determineCheckDigit(h);if(t.extensionChecksum(n.toString())!==v)throw new c.Z;return u},t.extensionChecksum=function(t){for(var e=t.length,r=0,n=e-2;n>=0;n-=2)r+=t.charAt(n).charCodeAt(0)-"0".charCodeAt(0);r*=3;for(n=e-1;n>=0;n-=2)r+=t.charAt(n).charCodeAt(0)-"0".charCodeAt(0);return r*=3,r%10},t.prototype.determineCheckDigit=function(t){for(var e=0;e<10;e++)if(t===this.CHECK_DIGIT_ENCODINGS[e])return e;throw new c.Z},t.parseExtensionString=function(e){if(5!==e.length)return null;var r=t.parseExtension5String(e);return null==r?null:new Map([[a.Z.SUGGESTED_PRICE,r]])},t.parseExtension5String=function(t){var e;switch(t.charAt(0)){case"0":e="£";break;case"5":e="$";break;case"9":switch(t){case"90000":return null;case"99991":return"0.00";case"99990":return"Used"}e="";break;default:e="";break}var r=parseInt(t.substring(1)),n=(r/100).toString(),o=r%100,i=o<10?"0"+o:o.toString();return e+n+"."+i},t}(),w=g,y=function(t){var e="function"===typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},v=function(){function t(){this.decodeMiddleCounters=Int32Array.from([0,0,0,0]),this.decodeRowStringBuffer=""}return t.prototype.decodeRow=function(e,r,o){var a=this.decodeRowStringBuffer,u=this.decodeMiddle(r,o,a),c=a.toString(),h=t.parseExtensionString(c),f=[new s.Z((o[0]+o[1])/2,e),new s.Z(u,e)],l=new i.Z(c,null,0,f,n.Z.UPC_EAN_EXTENSION,(new Date).getTime());return null!=h&&l.putAllMetadata(h),l},t.prototype.decodeMiddle=function(t,e,r){var n,o,i=this.decodeMiddleCounters;i[0]=0,i[1]=0,i[2]=0,i[3]=0;for(var a=t.getSize(),s=e[1],u=0,h=0;h<2&&s=10&&(u|=1<<1-h),1!==h&&(s=t.getNextSet(s),s=t.getNextUnset(s))}if(2!==r.length)throw new c.Z;if(parseInt(r.toString())%4!==u)throw new c.Z;return s},t.parseExtensionString=function(t){return 2!==t.length?null:new Map([[a.Z.ISSUE_NUMBER,parseInt(t)]])},t}(),_=v,C=function(){function t(){}return t.decodeRow=function(t,e,r){var n=d.findGuardPattern(e,r,!1,this.EXTENSION_START_PATTERN,new Int32Array(this.EXTENSION_START_PATTERN.length).fill(0));try{var o=new w;return o.decodeRow(t,e,n)}catch(a){var i=new _;return i.decodeRow(t,e,n)}},t.EXTENSION_START_PATTERN=Int32Array.from([1,1,2]),t}(),A=C,m=r(85777),E=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),I=function(t){function e(){var r=t.call(this)||this;r.decodeRowStringBuffer="",e.L_AND_G_PATTERNS=e.L_PATTERNS.map((function(t){return Int32Array.from(t)}));for(var n=10;n<20;n++){for(var o=e.L_PATTERNS[n-10],i=new Int32Array(o.length),a=0;a=r.getSize()||!r.isRange(C,E,!1))throw new c.Z;var I=w.toString();if(I.length<8)throw new h.Z;if(!e.checkChecksum(I))throw new m.Z;var S=(f[1]+f[0])/2,T=(v[1]+v[0])/2,b=this.getBarcodeFormat(),O=[new s.Z(S,t),new s.Z(T,t)],R=new i.Z(I,null,0,O,b,(new Date).getTime()),N=0;try{var Z=A.decodeRow(t,r,v[1]);R.putMetadata(a.Z.UPC_EAN_EXTENSION,Z.getText()),R.putAllMetadata(Z.getResultMetadata()),R.addResultPoints(Z.getResultPoints()),N=Z.getText().length}catch(B){}var D=null==u?null:u.get(o.Z.ALLOWED_EAN_EXTENSIONS);if(null!=D){var M=!1;for(var P in D)if(N.toString()===P){M=!0;break}if(!M)throw new c.Z}return b===n.Z.EAN_13||n.Z.UPC_A,R},e.checkChecksum=function(t){return e.checkStandardUPCEANChecksum(t)},e.checkStandardUPCEANChecksum=function(t){var r=t.length;if(0===r)return!1;var n=parseInt(t.charAt(r-1),10);return e.getStandardUPCEANChecksum(t.substring(0,r-1))===n},e.getStandardUPCEANChecksum=function(t){for(var e=t.length,r=0,n=e-1;n>=0;n-=2){var o=t.charAt(n).charCodeAt(0)-"0".charCodeAt(0);if(o<0||o>9)throw new h.Z;r+=o}r*=3;for(n=e-2;n>=0;n-=2){o=t.charAt(n).charCodeAt(0)-"0".charCodeAt(0);if(o<0||o>9)throw new h.Z;r+=o}return(1e3-r)%10},e.decodeEnd=function(t,r){return e.findGuardPattern(t,r,!1,e.START_END_PATTERN,new Int32Array(e.START_END_PATTERN.length).fill(0))},e}(d),S=I},66792:function(t,e,r){r(23767),r(8585),r(68696);var n=r(61997),o=r(53706),i=r(6828),a=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),s=function(t){var e="function"===typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},u=function(t){function e(){var e=t.call(this)||this;return e.decodeFinderCounters=new Int32Array(4),e.dataCharacterCounters=new Int32Array(8),e.oddRoundingErrors=new Array(4),e.evenRoundingErrors=new Array(4),e.oddCounts=new Array(e.dataCharacterCounters.length/2),e.evenCounts=new Array(e.dataCharacterCounters.length/2),e}return a(e,t),e.prototype.getDecodeFinderCounters=function(){return this.decodeFinderCounters},e.prototype.getDataCharacterCounters=function(){return this.dataCharacterCounters},e.prototype.getOddRoundingErrors=function(){return this.oddRoundingErrors},e.prototype.getEvenRoundingErrors=function(){return this.evenRoundingErrors},e.prototype.getOddCounts=function(){return this.oddCounts},e.prototype.getEvenCounts=function(){return this.evenCounts},e.prototype.parseFinderValue=function(t,r){for(var n=0;nn&&(n=e[o],r=o);t[r]++},e.decrement=function(t,e){for(var r=0,n=e[0],o=1;o=e.MIN_FINDER_PATTERN_RATIO&&a<=e.MAX_FINDER_PATTERN_RATIO){var u=Number.MAX_SAFE_INTEGER,c=Number.MIN_SAFE_INTEGER;try{for(var h=s(t),f=h.next();!f.done;f=h.next()){var l=f.value;l>c&&(c=l),l=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},A=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.possibleLeftPairs=[],e.possibleRightPairs=[],e}return _(e,t),e.prototype.decodeRow=function(t,r,n){var o,i,a,s,u=this.decodePair(r,!1,t,n);e.addOrTally(this.possibleLeftPairs,u),r.reverse();var c=this.decodePair(r,!0,t,n);e.addOrTally(this.possibleRightPairs,c),r.reverse();try{for(var f=C(this.possibleLeftPairs),l=f.next();!l.done;l=f.next()){var d=l.value;if(d.getCount()>1)try{for(var p=(a=void 0,C(this.possibleRightPairs)),g=p.next();!g.done;g=p.next()){var w=g.value;if(w.getCount()>1&&e.checkChecksum(d,w))return e.constructResult(d,w)}}catch(y){a={error:y}}finally{try{g&&!g.done&&(s=p.return)&&s.call(p)}finally{if(a)throw a.error}}}}catch(v){o={error:v}}finally{try{l&&!l.done&&(i=f.return)&&i.call(f)}finally{if(o)throw o.error}}throw new h.Z},e.addOrTally=function(t,e){var r,n;if(null!=e){var o=!1;try{for(var i=C(t),a=i.next();!a.done;a=i.next()){var s=a.value;if(s.getValue()===e.getValue()){s.incrementCount(),o=!0;break}}}catch(u){r={error:u}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}o||t.push(e)}},e.prototype.reset=function(){this.possibleLeftPairs.length=0,this.possibleRightPairs.length=0},e.constructResult=function(t,e){for(var r=4537077*t.getValue()+e.getValue(),n=new String(r).toString(),o=new f.Z,i=13-n.length;i>0;i--)o.append("0");o.append(n);var a=0;for(i=0;i<13;i++){var s=o.charAt(i).charCodeAt(0)-"0".charCodeAt(0);a+=0===(1&i)?3*s:s}a=10-a%10,10===a&&(a=0),o.append(a.toString());var c=t.getFinderPattern().getResultPoints(),h=e.getFinderPattern().getResultPoints();return new u.Z(o.toString(),null,0,[c[0],c[1],h[0],h[1]],l.Z.RSS_14,(new Date).getTime())},e.checkChecksum=function(t,e){var r=(t.getChecksumPortion()+16*e.getChecksumPortion())%79,n=9*t.getFinderPattern().getValue()+e.getFinderPattern().getValue();return n>72&&n--,n>8&&n--,r===n},e.prototype.decodePair=function(t,e,r,n){try{var o=this.findFinderPattern(t,e),i=this.parseFoundFinderPattern(t,r,e,o),a=null==n?null:n.get(c.Z.NEED_RESULT_POINT_CALLBACK);if(null!=a){var u=(o[0]+o[1])/2;e&&(u=t.getSize()-1-u),a.foundPossibleResultPoint(new d.Z(u,r))}var h=this.decodeDataCharacter(t,i,!0),f=this.decodeDataCharacter(t,i,!1);return new s(1597*h.getValue()+f.getValue(),h.getChecksumPortion()+4*f.getChecksumPortion(),i)}catch(l){return null}},e.prototype.decodeDataCharacter=function(t,r,n){for(var i=this.getDataCharacterCounters(),a=0;a8&&(A=8);var m=Math.floor(s/2);0===(1&s)?(d[m]=A,y[m]=C-A):(p[m]=A,_[m]=C-A)}this.adjustOddEvenCounts(n,f);var E=0,I=0;for(s=d.length-1;s>=0;s--)I*=9,I+=d[s],E+=d[s];var S=0,T=0;for(s=p.length-1;s>=0;s--)S*=9,S+=p[s],T+=p[s];var b=I+3*S;if(n){if(0!==(1&E)||E>12||E<4)throw new h.Z;var O=(12-E)/2,R=e.OUTSIDE_ODD_WIDEST[O],N=9-R,Z=w.Z.getRSSvalue(d,R,!1),D=w.Z.getRSSvalue(p,N,!0),M=e.OUTSIDE_EVEN_TOTAL_SUBSET[O],P=e.OUTSIDE_GSUM[O];return new o.Z(Z*M+D+P,b)}if(0!==(1&T)||T>10||T<4)throw new h.Z;O=(10-T)/2,R=e.INSIDE_ODD_WIDEST[O],N=9-R,Z=w.Z.getRSSvalue(d,R,!0),D=w.Z.getRSSvalue(p,N,!1);var B=e.INSIDE_ODD_TOTAL_SUBSET[O];P=e.INSIDE_GSUM[O];return new o.Z(D*B+Z+P,b)},e.prototype.findFinderPattern=function(t,e){var r=this.getDecodeFinderCounters();r[0]=0,r[1]=0,r[2]=0,r[3]=0;var o=t.getSize(),i=!1,a=0;while(a=0&&i!==t.get(a))a--;a++;var s=o[0]-a,u=this.getDecodeFinderCounters(),c=new Int32Array(u.length);y.Z.arraycopy(u,0,c,1,u.length-1),c[0]=s;var h=this.parseFinderValue(c,e.FINDER_PATTERNS),f=a,l=o[1];return n&&(f=t.getSize()-1-f,l=t.getSize()-1-l),new p.Z(h,[a,o[1]],f,l,r)},e.prototype.adjustOddEvenCounts=function(t,e){var r=g.Z.sum(new Int32Array(this.getOddCounts())),o=g.Z.sum(new Int32Array(this.getEvenCounts())),i=!1,a=!1,s=!1,u=!1;t?(r>12?a=!0:r<4&&(i=!0),o>12?u=!0:o<4&&(s=!0)):(r>11?a=!0:r<5&&(i=!0),o>10?u=!0:o<4&&(s=!0));var c=r+o-e,f=(1&r)===(t?1:0),l=1===(1&o);if(1===c)if(f){if(l)throw new h.Z;a=!0}else{if(!l)throw new h.Z;u=!0}else if(-1===c)if(f){if(l)throw new h.Z;i=!0}else{if(!l)throw new h.Z;s=!0}else{if(0!==c)throw new h.Z;if(f){if(!l)throw new h.Z;r=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},n=function(){function t(){}return t.getRSSvalue=function(e,n,o){var i,a,s=0;try{for(var u=r(e),c=u.next();!c.done;c=u.next()){var h=c.value;s+=h}}catch(_){i={error:_}}finally{try{c&&!c.done&&(a=u.return)&&a.call(u)}finally{if(i)throw i.error}}for(var f=0,l=0,d=e.length,p=0;p=d-p-1&&(w-=t.combins(s-g-(d-p),d-p-2)),d-p-1>1){for(var y=0,v=s-g-(d-p-2);v>n;v--)y+=t.combins(s-g-v-1,d-p-3);w-=y*(d-1-p)}else s-g>n&&w--;f+=w}s-=g}return f},t.combins=function(t,e){var r,n;t-e>e?(n=e,r=t-e):(n=t-e,r=e);for(var o=1,i=1,a=t;a>r;a--)o*=a,i<=n&&(o/=i,i++);while(i<=n)o/=i,i++;return o},t}();e["Z"]=n},83926:function(t,e,r){r.d(e,{Z:function(){return E}});r(57658),r(23767),r(8585),r(68696);var n=r(91373),o=r(61997),i=r(53706),a=r(54739),s=r(98090),u=r(66792),c=r(35698),h=r(12193),f=r(89999),l=r(53550),d=function(){function t(){}return t.buildBitArray=function(t){var e=2*t.length-1;null==t[t.length-1].getRightChar()&&(e-=1);for(var r=12*e,n=new l.Z(r),o=0,i=t[0],a=i.getRightChar().getValue(),s=11;s>=0;--s)0!==(a&1<=0;--h)0!==(c&1<=0;--h)0!==(f&1<=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},m=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.pairs=new Array(e.MAX_PAIRS),r.rows=new Array,r.startEnd=[2],r}return C(e,t),e.prototype.decodeRow=function(t,r,n){this.pairs.length=0,this.startFromEven=!1;try{return e.constructResult(this.decodeRow2pairs(t,r))}catch(o){}return this.pairs.length=0,this.startFromEven=!0,e.constructResult(this.decodeRow2pairs(t,r))},e.prototype.reset=function(){this.pairs.length=0,this.rows.length=0},e.prototype.decodeRow2pairs=function(t,e){var r,n=!1;while(!n)try{this.pairs.push(this.retrieveNextPair(e,this.pairs,t))}catch(a){if(a instanceof i.Z){if(!this.pairs.length)throw new i.Z;n=!0}}if(this.checkChecksum())return this.pairs;if(r=!!this.rows.length,this.storeRow(t,!1),r){var o=this.checkRowsBoolean(!1);if(null!=o)return o;if(o=this.checkRowsBoolean(!0),null!=o)return o}throw new i.Z},e.prototype.checkRowsBoolean=function(t){if(this.rows.length>25)return this.rows.length=0,null;this.pairs.length=0,t&&(this.rows=this.rows.reverse());var e=null;try{e=this.checkRows(new Array,0)}catch(r){console.log(r)}return t&&(this.rows=this.rows.reverse()),e},e.prototype.checkRows=function(t,r){for(var n,o,a=r;aa.length)){for(var s=!0,u=0;ut){i=a.isEquivalent(this.pairs);break}o=a.isEquivalent(this.pairs),n++}i||o||e.isPartialRow(this.pairs,this.rows)||(this.rows.push(n,new _(this.pairs,t,r)),this.removePartialRows(this.pairs,this.rows))},e.prototype.removePartialRows=function(t,e){var r,n,o,i,a,s;try{for(var u=A(e),c=u.next();!c.done;c=u.next()){var h=c.value;if(h.getPairs().length!==t.length){try{for(var f=(o=void 0,A(h.getPairs())),l=f.next();!l.done;l=f.next()){var d=l.value,p=!1;try{for(var g=(a=void 0,A(t)),w=g.next();!w.done;w=g.next()){var v=w.value;if(y.equals(d,v)){p=!0;break}}}catch(_){a={error:_}}finally{try{w&&!w.done&&(s=g.return)&&s.call(g)}finally{if(a)throw a.error}}p||!1}}catch(C){o={error:C}}finally{try{l&&!l.done&&(i=f.return)&&i.call(f)}finally{if(o)throw o.error}}}}}catch(m){r={error:m}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}},e.isPartialRow=function(t,e){var r,n,o,i,a,s;try{for(var u=A(e),c=u.next();!c.done;c=u.next()){var h=c.value,f=!0;try{for(var l=(o=void 0,A(t)),d=l.next();!d.done;d=l.next()){var p=d.value,g=!1;try{for(var w=(a=void 0,A(h.getPairs())),y=w.next();!y.done;y=w.next()){var v=y.value;if(p.equals(v)){g=!0;break}}}catch(_){a={error:_}}finally{try{y&&!y.done&&(s=w.return)&&s.call(w)}finally{if(a)throw a.error}}if(!g){f=!1;break}}}catch(C){o={error:C}}finally{try{d&&!d.done&&(i=l.return)&&i.call(l)}finally{if(o)throw o.error}}if(f)return!0}}catch(m){r={error:m}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}return!1},e.prototype.getRows=function(){return this.rows},e.constructResult=function(t){var e=p.buildBitArray(t),r=(0,g.U)(e),o=r.parseInformation(),i=t[0].getFinderPattern().getResultPoints(),s=t[t.length-1].getFinderPattern().getResultPoints(),u=[i[0],i[1],s[0],s[1]];return new a.Z(o,null,null,u,n.Z.RSS_EXPANDED,null)},e.prototype.checkChecksum=function(){var t=this.pairs.get(0),e=t.getLeftChar(),r=t.getRightChar();if(null===r)return!1;for(var n=r.getChecksumPortion(),o=2,i=1;i=0)a=n;else if(this.isEmptyPair(r))a=0;else{var u=r[r.length-1];a=u.getFinderPattern().getStartEnd()[1]}var c=r.length%2!==0;this.startFromEven&&(c=!c);var h=!1;while(a=0&&!t.get(u))u--;u++,o=this.startEnd[0]-u,i=u,a=this.startEnd[1]}else i=this.startEnd[0],a=t.getNextUnset(this.startEnd[1]+1),o=a-this.startEnd[1];var c,f=this.getDecodeFinderCounters();s.Z.arraycopy(f,0,f,1,f.length-1),f[0]=o;try{c=this.parseFinderValue(f,e.FINDER_PATTERNS)}catch(l){return null}return new h.Z(c,[i,a],i,a,r)},e.prototype.decodeDataCharacter=function(t,r,n,a){for(var s=this.getDataCharacterCounters(),u=0;u.3)throw new i.Z;var y=this.getOddCounts(),v=this.getEvenCounts(),_=this.getOddRoundingErrors(),C=this.getEvenRoundingErrors();for(h=0;h8){if(A>8.7)throw new i.Z;m=8}var E=h/2;0===(1&h)?(y[E]=m,_[E]=A-m):(v[E]=m,C[E]=A-m)}this.adjustOddEvenCounts(p);var I=4*r.getValue()+(n?0:2)+(a?0:1)-1,S=0,T=0;for(h=y.length-1;h>=0;h--){if(e.isNotA1left(r,n,a)){var b=e.WEIGHTS[I][2*h];T+=y[h]*b}S+=y[h]}var O=0;for(h=v.length-1;h>=0;h--)if(e.isNotA1left(r,n,a)){b=e.WEIGHTS[I][2*h+1];O+=v[h]*b}var R=T+O;if(0!==(1&S)||S>13||S<4)throw new i.Z;var N=(13-S)/2,Z=e.SYMBOL_WIDEST[N],D=9-Z,M=f.Z.getRSSvalue(y,Z,!0),P=f.Z.getRSSvalue(v,D,!1),B=e.EVEN_TOTAL_SUBSET[N],L=e.GSUM[N],F=M*B+P+L;return new c.Z(F,R)},e.isNotA1left=function(t,e,r){return!(0===t.getValue()&&e&&r)},e.prototype.adjustOddEvenCounts=function(t){var r=o.Z.sum(new Int32Array(this.getOddCounts())),n=o.Z.sum(new Int32Array(this.getEvenCounts())),a=!1,s=!1;r>13?s=!0:r<4&&(a=!0);var u=!1,c=!1;n>13?c=!0:n<4&&(u=!0);var h=r+n-t,f=1===(1&r),l=0===(1&n);if(1===h)if(f){if(l)throw new i.Z;s=!0}else{if(!l)throw new i.Z;c=!0}else if(-1===h)if(f){if(l)throw new i.Z;a=!0}else{if(!l)throw new i.Z;u=!0}else{if(0!==h)throw new i.Z;if(f){if(!l)throw new i.Z;r10||o<0||o>10)throw new n.Z;return i.firstDigit=r,i.secondDigit=o,i}return w(e,t),e.prototype.getFirstDigit=function(){return this.firstDigit},e.prototype.getSecondDigit=function(){return this.secondDigit},e.prototype.getValue=function(){return 10*this.firstDigit+this.secondDigit},e.prototype.isFirstDigitFNC1=function(){return this.firstDigit===e.FNC1},e.prototype.isSecondDigitFNC1=function(){return this.secondDigit===e.FNC1},e.prototype.isAnyFNC1=function(){return this.firstDigit===e.FNC1||this.secondDigit===e.FNC1},e.FNC1=10,e}(c),v=y,_=r(53706),C=function(t){var e="function"===typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},A=function(){function t(){}return t.parseFieldsInGeneralPurpose=function(e){var r,n,o,i,a,s,u,c;if(!e)return null;if(e.length<2)throw new _.Z;var h=e.substring(0,2);try{for(var f=C(t.TWO_DIGIT_DATA_LENGTH),l=f.next();!l.done;l=f.next()){var d=l.value;if(d[0]===h)return d[1]===t.VARIABLE_LENGTH?t.processVariableAI(2,d[2],e):t.processFixedAI(2,d[1],e)}}catch(I){r={error:I}}finally{try{l&&!l.done&&(n=f.return)&&n.call(f)}finally{if(r)throw r.error}}if(e.length<3)throw new _.Z;var p=e.substring(0,3);try{for(var g=C(t.THREE_DIGIT_DATA_LENGTH),w=g.next();!w.done;w=g.next()){d=w.value;if(d[0]===p)return d[1]===t.VARIABLE_LENGTH?t.processVariableAI(3,d[2],e):t.processFixedAI(3,d[1],e)}}catch(S){o={error:S}}finally{try{w&&!w.done&&(i=g.return)&&i.call(g)}finally{if(o)throw o.error}}try{for(var y=C(t.THREE_DIGIT_PLUS_DIGIT_DATA_LENGTH),v=y.next();!v.done;v=y.next()){d=v.value;if(d[0]===p)return d[1]===t.VARIABLE_LENGTH?t.processVariableAI(4,d[2],e):t.processFixedAI(4,d[1],e)}}catch(T){a={error:T}}finally{try{v&&!v.done&&(s=y.return)&&s.call(y)}finally{if(a)throw a.error}}if(e.length<4)throw new _.Z;var A=e.substring(0,4);try{for(var m=C(t.FOUR_DIGIT_DATA_LENGTH),E=m.next();!E.done;E=m.next()){d=E.value;if(d[0]===A)return d[1]===t.VARIABLE_LENGTH?t.processVariableAI(4,d[2],e):t.processFixedAI(4,d[1],e)}}catch(b){u={error:b}}finally{try{E&&!E.done&&(c=m.return)&&c.call(m)}finally{if(u)throw u.error}}throw new _.Z},t.processFixedAI=function(e,r,n){if(n.lengththis.information.getSize())return t+4<=this.information.getSize();for(var e=t;ethis.information.getSize()){var e=this.extractNumericValueFromBitArray(t,4);return new v(this.information.getSize(),0===e?v.FNC1:e-1,v.FNC1)}var r=this.extractNumericValueFromBitArray(t,7),n=(r-8)/11,o=(r-8)%11;return new v(t+7,n,o)},t.prototype.extractNumericValueFromBitArray=function(e,r){return t.extractNumericValueFromBitArray(this.information,e,r)},t.extractNumericValueFromBitArray=function(t,e,r){for(var n=0,o=0;othis.information.getSize())return!1;var e=this.extractNumericValueFromBitArray(t,5);if(e>=5&&e<16)return!0;if(t+7>this.information.getSize())return!1;var r=this.extractNumericValueFromBitArray(t,7);if(r>=64&&r<116)return!0;if(t+8>this.information.getSize())return!1;var n=this.extractNumericValueFromBitArray(t,8);return n>=232&&n<253},t.prototype.decodeIsoIec646=function(t){var e=this.extractNumericValueFromBitArray(t,5);if(15===e)return new l(t+5,l.FNC1);if(e>=5&&e<15)return new l(t+5,"0"+(e-5));var r=this.extractNumericValueFromBitArray(t,7);if(r>=64&&r<90)return new l(t+7,""+(r+1));if(r>=90&&r<116)return new l(t+7,""+(r+7));var o,i=this.extractNumericValueFromBitArray(t,8);switch(i){case 232:o="!";break;case 233:o='"';break;case 234:o="%";break;case 235:o="&";break;case 236:o="'";break;case 237:o="(";break;case 238:o=")";break;case 239:o="*";break;case 240:o="+";break;case 241:o=",";break;case 242:o="-";break;case 243:o=".";break;case 244:o="/";break;case 245:o=":";break;case 246:o=";";break;case 247:o="<";break;case 248:o="=";break;case 249:o=">";break;case 250:o="?";break;case 251:o="_";break;case 252:o=" ";break;default:throw new n.Z}return new l(t+8,o)},t.prototype.isStillAlpha=function(t){if(t+5>this.information.getSize())return!1;var e=this.extractNumericValueFromBitArray(t,5);if(e>=5&&e<16)return!0;if(t+6>this.information.getSize())return!1;var r=this.extractNumericValueFromBitArray(t,6);return r>=16&&r<63},t.prototype.decodeAlphanumeric=function(t){var e=this.extractNumericValueFromBitArray(t,5);if(15===e)return new l(t+5,l.FNC1);if(e>=5&&e<15)return new l(t+5,"0"+(e-5));var r,n=this.extractNumericValueFromBitArray(t,6);if(n>=32&&n<58)return new l(t+6,""+(n+33));switch(n){case 58:r="*";break;case 59:r=",";break;case 60:r="-";break;case 61:r=".";break;case 62:r="/";break;default:throw new o.Z("Decoding invalid alphanumeric value: "+n)}return new l(t+6,r)},t.prototype.isAlphaTo646ToAlphaLatch=function(t){if(t+1>this.information.getSize())return!1;for(var e=0;e<5&&e+tthis.information.getSize())return!1;for(var e=t;ethis.information.getSize())return!1;for(var e=0;e<4&&e+t=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},a=function(){function t(){}return t.prototype.PDF417Common=function(){},t.getBitCountSum=function(t){return o.Z.sum(t)},t.toIntArray=function(e){var r,n;if(null==e||!e.length)return t.EMPTY_INT_ARRAY;var o=new Int32Array(e.length),a=0;try{for(var s=i(e),u=s.next();!u.done;u=s.next()){var c=u.value;o[a++]=c}}catch(h){r={error:h}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}return o},t.getCodeword=function(e){var r=n.Z.binarySearch(t.SYMBOL_TABLE,262143&e);return r<0?-1:(t.CODEWORD_TABLE[r]-1)%t.NUMBER_OF_CODEWORDS},t.NUMBER_OF_CODEWORDS=929,t.MAX_CODEWORDS_IN_BARCODE=t.NUMBER_OF_CODEWORDS-1,t.MIN_ROWS_IN_BARCODE=3,t.MAX_ROWS_IN_BARCODE=90,t.MODULES_IN_CODEWORD=17,t.MODULES_IN_STOP_PATTERN=18,t.BARS_IN_MODULE=8,t.EMPTY_INT_ARRAY=new Int32Array([]),t.SYMBOL_TABLE=Int32Array.from([66142,66170,66206,66236,66290,66292,66350,66382,66396,66454,66470,66476,66594,66600,66614,66626,66628,66632,66640,66654,66662,66668,66682,66690,66718,66720,66748,66758,66776,66798,66802,66804,66820,66824,66832,66846,66848,66876,66880,66936,66950,66956,66968,66992,67006,67022,67036,67042,67044,67048,67062,67118,67150,67164,67214,67228,67256,67294,67322,67350,67366,67372,67398,67404,67416,67438,67474,67476,67490,67492,67496,67510,67618,67624,67650,67656,67664,67678,67686,67692,67706,67714,67716,67728,67742,67744,67772,67782,67788,67800,67822,67826,67828,67842,67848,67870,67872,67900,67904,67960,67974,67992,68016,68030,68046,68060,68066,68068,68072,68086,68104,68112,68126,68128,68156,68160,68216,68336,68358,68364,68376,68400,68414,68448,68476,68494,68508,68536,68546,68548,68552,68560,68574,68582,68588,68654,68686,68700,68706,68708,68712,68726,68750,68764,68792,68802,68804,68808,68816,68830,68838,68844,68858,68878,68892,68920,68976,68990,68994,68996,69e3,69008,69022,69024,69052,69062,69068,69080,69102,69106,69108,69142,69158,69164,69190,69208,69230,69254,69260,69272,69296,69310,69326,69340,69386,69394,69396,69410,69416,69430,69442,69444,69448,69456,69470,69478,69484,69554,69556,69666,69672,69698,69704,69712,69726,69754,69762,69764,69776,69790,69792,69820,69830,69836,69848,69870,69874,69876,69890,69918,69920,69948,69952,70008,70022,70040,70064,70078,70094,70108,70114,70116,70120,70134,70152,70174,70176,70264,70384,70412,70448,70462,70496,70524,70542,70556,70584,70594,70600,70608,70622,70630,70636,70664,70672,70686,70688,70716,70720,70776,70896,71136,71180,71192,71216,71230,71264,71292,71360,71416,71452,71480,71536,71550,71554,71556,71560,71568,71582,71584,71612,71622,71628,71640,71662,71726,71732,71758,71772,71778,71780,71784,71798,71822,71836,71864,71874,71880,71888,71902,71910,71916,71930,71950,71964,71992,72048,72062,72066,72068,72080,72094,72096,72124,72134,72140,72152,72174,72178,72180,72206,72220,72248,72304,72318,72416,72444,72456,72464,72478,72480,72508,72512,72568,72588,72600,72624,72638,72654,72668,72674,72676,72680,72694,72726,72742,72748,72774,72780,72792,72814,72838,72856,72880,72894,72910,72924,72930,72932,72936,72950,72966,72972,72984,73008,73022,73056,73084,73102,73116,73144,73156,73160,73168,73182,73190,73196,73210,73226,73234,73236,73250,73252,73256,73270,73282,73284,73296,73310,73318,73324,73346,73348,73352,73360,73374,73376,73404,73414,73420,73432,73454,73498,73518,73522,73524,73550,73564,73570,73572,73576,73590,73800,73822,73858,73860,73872,73886,73888,73916,73944,73970,73972,73992,74014,74016,74044,74048,74104,74118,74136,74160,74174,74210,74212,74216,74230,74244,74256,74270,74272,74360,74480,74502,74508,74544,74558,74592,74620,74638,74652,74680,74690,74696,74704,74726,74732,74782,74784,74812,74992,75232,75288,75326,75360,75388,75456,75512,75576,75632,75646,75650,75652,75664,75678,75680,75708,75718,75724,75736,75758,75808,75836,75840,75896,76016,76256,76736,76824,76848,76862,76896,76924,76992,77048,77296,77340,77368,77424,77438,77536,77564,77572,77576,77584,77600,77628,77632,77688,77702,77708,77720,77744,77758,77774,77788,77870,77902,77916,77922,77928,77966,77980,78008,78018,78024,78032,78046,78060,78074,78094,78136,78192,78206,78210,78212,78224,78238,78240,78268,78278,78284,78296,78322,78324,78350,78364,78448,78462,78560,78588,78600,78622,78624,78652,78656,78712,78726,78744,78768,78782,78798,78812,78818,78820,78824,78838,78862,78876,78904,78960,78974,79072,79100,79296,79352,79368,79376,79390,79392,79420,79424,79480,79600,79628,79640,79664,79678,79712,79740,79772,79800,79810,79812,79816,79824,79838,79846,79852,79894,79910,79916,79942,79948,79960,79982,79988,80006,80024,80048,80062,80078,80092,80098,80100,80104,80134,80140,80176,80190,80224,80252,80270,80284,80312,80328,80336,80350,80358,80364,80378,80390,80396,80408,80432,80446,80480,80508,80576,80632,80654,80668,80696,80752,80766,80776,80784,80798,80800,80828,80844,80856,80878,80882,80884,80914,80916,80930,80932,80936,80950,80962,80968,80976,80990,80998,81004,81026,81028,81040,81054,81056,81084,81094,81100,81112,81134,81154,81156,81160,81168,81182,81184,81212,81216,81272,81286,81292,81304,81328,81342,81358,81372,81380,81384,81398,81434,81454,81458,81460,81486,81500,81506,81508,81512,81526,81550,81564,81592,81602,81604,81608,81616,81630,81638,81644,81702,81708,81722,81734,81740,81752,81774,81778,81780,82050,82078,82080,82108,82180,82184,82192,82206,82208,82236,82240,82296,82316,82328,82352,82366,82402,82404,82408,82440,82448,82462,82464,82492,82496,82552,82672,82694,82700,82712,82736,82750,82784,82812,82830,82882,82884,82888,82896,82918,82924,82952,82960,82974,82976,83004,83008,83064,83184,83424,83468,83480,83504,83518,83552,83580,83648,83704,83740,83768,83824,83838,83842,83844,83848,83856,83872,83900,83910,83916,83928,83950,83984,84e3,84028,84032,84088,84208,84448,84928,85040,85054,85088,85116,85184,85240,85488,85560,85616,85630,85728,85756,85764,85768,85776,85790,85792,85820,85824,85880,85894,85900,85912,85936,85966,85980,86048,86080,86136,86256,86496,86976,88160,88188,88256,88312,88560,89056,89200,89214,89312,89340,89536,89592,89608,89616,89632,89664,89720,89840,89868,89880,89904,89952,89980,89998,90012,90040,90190,90204,90254,90268,90296,90306,90308,90312,90334,90382,90396,90424,90480,90494,90500,90504,90512,90526,90528,90556,90566,90572,90584,90610,90612,90638,90652,90680,90736,90750,90848,90876,90884,90888,90896,90910,90912,90940,90944,91e3,91014,91020,91032,91056,91070,91086,91100,91106,91108,91112,91126,91150,91164,91192,91248,91262,91360,91388,91584,91640,91664,91678,91680,91708,91712,91768,91888,91928,91952,91966,92e3,92028,92046,92060,92088,92098,92100,92104,92112,92126,92134,92140,92188,92216,92272,92384,92412,92608,92664,93168,93200,93214,93216,93244,93248,93304,93424,93664,93720,93744,93758,93792,93820,93888,93944,93980,94008,94064,94078,94084,94088,94096,94110,94112,94140,94150,94156,94168,94246,94252,94278,94284,94296,94318,94342,94348,94360,94384,94398,94414,94428,94440,94470,94476,94488,94512,94526,94560,94588,94606,94620,94648,94658,94660,94664,94672,94686,94694,94700,94714,94726,94732,94744,94768,94782,94816,94844,94912,94968,94990,95004,95032,95088,95102,95112,95120,95134,95136,95164,95180,95192,95214,95218,95220,95244,95256,95280,95294,95328,95356,95424,95480,95728,95758,95772,95800,95856,95870,95968,95996,96008,96016,96030,96032,96060,96064,96120,96152,96176,96190,96220,96226,96228,96232,96290,96292,96296,96310,96322,96324,96328,96336,96350,96358,96364,96386,96388,96392,96400,96414,96416,96444,96454,96460,96472,96494,96498,96500,96514,96516,96520,96528,96542,96544,96572,96576,96632,96646,96652,96664,96688,96702,96718,96732,96738,96740,96744,96758,96772,96776,96784,96798,96800,96828,96832,96888,97008,97030,97036,97048,97072,97086,97120,97148,97166,97180,97208,97220,97224,97232,97246,97254,97260,97326,97330,97332,97358,97372,97378,97380,97384,97398,97422,97436,97464,97474,97476,97480,97488,97502,97510,97516,97550,97564,97592,97648,97666,97668,97672,97680,97694,97696,97724,97734,97740,97752,97774,97830,97836,97850,97862,97868,97880,97902,97906,97908,97926,97932,97944,97968,97998,98012,98018,98020,98024,98038,98618,98674,98676,98838,98854,98874,98892,98904,98926,98930,98932,98968,99006,99042,99044,99048,99062,99166,99194,99246,99286,99350,99366,99372,99386,99398,99416,99438,99442,99444,99462,99504,99518,99534,99548,99554,99556,99560,99574,99590,99596,99608,99632,99646,99680,99708,99726,99740,99768,99778,99780,99784,99792,99806,99814,99820,99834,99858,99860,99874,99880,99894,99906,99920,99934,99962,99970,99972,99976,99984,99998,1e5,100028,100038,100044,100056,100078,100082,100084,100142,100174,100188,100246,100262,100268,100306,100308,100390,100396,100410,100422,100428,100440,100462,100466,100468,100486,100504,100528,100542,100558,100572,100578,100580,100584,100598,100620,100656,100670,100704,100732,100750,100792,100802,100808,100816,100830,100838,100844,100858,100888,100912,100926,100960,100988,101056,101112,101148,101176,101232,101246,101250,101252,101256,101264,101278,101280,101308,101318,101324,101336,101358,101362,101364,101410,101412,101416,101430,101442,101448,101456,101470,101478,101498,101506,101508,101520,101534,101536,101564,101580,101618,101620,101636,101640,101648,101662,101664,101692,101696,101752,101766,101784,101838,101858,101860,101864,101934,101938,101940,101966,101980,101986,101988,101992,102030,102044,102072,102082,102084,102088,102096,102138,102166,102182,102188,102214,102220,102232,102254,102282,102290,102292,102306,102308,102312,102326,102444,102458,102470,102476,102488,102514,102516,102534,102552,102576,102590,102606,102620,102626,102632,102646,102662,102668,102704,102718,102752,102780,102798,102812,102840,102850,102856,102864,102878,102886,102892,102906,102936,102974,103008,103036,103104,103160,103224,103280,103294,103298,103300,103312,103326,103328,103356,103366,103372,103384,103406,103410,103412,103472,103486,103520,103548,103616,103672,103920,103992,104048,104062,104160,104188,104194,104196,104200,104208,104224,104252,104256,104312,104326,104332,104344,104368,104382,104398,104412,104418,104420,104424,104482,104484,104514,104520,104528,104542,104550,104570,104578,104580,104592,104606,104608,104636,104652,104690,104692,104706,104712,104734,104736,104764,104768,104824,104838,104856,104910,104930,104932,104936,104968,104976,104990,104992,105020,105024,105080,105200,105240,105278,105312,105372,105410,105412,105416,105424,105446,105518,105524,105550,105564,105570,105572,105576,105614,105628,105656,105666,105672,105680,105702,105722,105742,105756,105784,105840,105854,105858,105860,105864,105872,105888,105932,105970,105972,106006,106022,106028,106054,106060,106072,106100,106118,106124,106136,106160,106174,106190,106210,106212,106216,106250,106258,106260,106274,106276,106280,106306,106308,106312,106320,106334,106348,106394,106414,106418,106420,106566,106572,106610,106612,106630,106636,106648,106672,106686,106722,106724,106728,106742,106758,106764,106776,106800,106814,106848,106876,106894,106908,106936,106946,106948,106952,106960,106974,106982,106988,107032,107056,107070,107104,107132,107200,107256,107292,107320,107376,107390,107394,107396,107400,107408,107422,107424,107452,107462,107468,107480,107502,107506,107508,107544,107568,107582,107616,107644,107712,107768,108016,108060,108088,108144,108158,108256,108284,108290,108292,108296,108304,108318,108320,108348,108352,108408,108422,108428,108440,108464,108478,108494,108508,108514,108516,108520,108592,108640,108668,108736,108792,109040,109536,109680,109694,109792,109820,110016,110072,110084,110088,110096,110112,110140,110144,110200,110320,110342,110348,110360,110384,110398,110432,110460,110478,110492,110520,110532,110536,110544,110558,110658,110686,110714,110722,110724,110728,110736,110750,110752,110780,110796,110834,110836,110850,110852,110856,110864,110878,110880,110908,110912,110968,110982,111e3,111054,111074,111076,111080,111108,111112,111120,111134,111136,111164,111168,111224,111344,111372,111422,111456,111516,111554,111556,111560,111568,111590,111632,111646,111648,111676,111680,111736,111856,112096,112152,112224,112252,112320,112440,112514,112516,112520,112528,112542,112544,112588,112686,112718,112732,112782,112796,112824,112834,112836,112840,112848,112870,112890,112910,112924,112952,113008,113022,113026,113028,113032,113040,113054,113056,113100,113138,113140,113166,113180,113208,113264,113278,113376,113404,113416,113424,113440,113468,113472,113560,113614,113634,113636,113640,113686,113702,113708,113734,113740,113752,113778,113780,113798,113804,113816,113840,113854,113870,113890,113892,113896,113926,113932,113944,113968,113982,114016,114044,114076,114114,114116,114120,114128,114150,114170,114194,114196,114210,114212,114216,114242,114244,114248,114256,114270,114278,114306,114308,114312,114320,114334,114336,114364,114380,114420,114458,114478,114482,114484,114510,114524,114530,114532,114536,114842,114866,114868,114970,114994,114996,115042,115044,115048,115062,115130,115226,115250,115252,115278,115292,115298,115300,115304,115318,115342,115394,115396,115400,115408,115422,115430,115436,115450,115478,115494,115514,115526,115532,115570,115572,115738,115758,115762,115764,115790,115804,115810,115812,115816,115830,115854,115868,115896,115906,115912,115920,115934,115942,115948,115962,115996,116024,116080,116094,116098,116100,116104,116112,116126,116128,116156,116166,116172,116184,116206,116210,116212,116246,116262,116268,116282,116294,116300,116312,116334,116338,116340,116358,116364,116376,116400,116414,116430,116444,116450,116452,116456,116498,116500,116514,116520,116534,116546,116548,116552,116560,116574,116582,116588,116602,116654,116694,116714,116762,116782,116786,116788,116814,116828,116834,116836,116840,116854,116878,116892,116920,116930,116936,116944,116958,116966,116972,116986,117006,117048,117104,117118,117122,117124,117136,117150,117152,117180,117190,117196,117208,117230,117234,117236,117304,117360,117374,117472,117500,117506,117508,117512,117520,117536,117564,117568,117624,117638,117644,117656,117680,117694,117710,117724,117730,117732,117736,117750,117782,117798,117804,117818,117830,117848,117874,117876,117894,117936,117950,117966,117986,117988,117992,118022,118028,118040,118064,118078,118112,118140,118172,118210,118212,118216,118224,118238,118246,118266,118306,118312,118338,118352,118366,118374,118394,118402,118404,118408,118416,118430,118432,118460,118476,118514,118516,118574,118578,118580,118606,118620,118626,118628,118632,118678,118694,118700,118730,118738,118740,118830,118834,118836,118862,118876,118882,118884,118888,118902,118926,118940,118968,118978,118980,118984,118992,119006,119014,119020,119034,119068,119096,119152,119166,119170,119172,119176,119184,119198,119200,119228,119238,119244,119256,119278,119282,119284,119324,119352,119408,119422,119520,119548,119554,119556,119560,119568,119582,119584,119612,119616,119672,119686,119692,119704,119728,119742,119758,119772,119778,119780,119784,119798,119920,119934,120032,120060,120256,120312,120324,120328,120336,120352,120384,120440,120560,120582,120588,120600,120624,120638,120672,120700,120718,120732,120760,120770,120772,120776,120784,120798,120806,120812,120870,120876,120890,120902,120908,120920,120946,120948,120966,120972,120984,121008,121022,121038,121058,121060,121064,121078,121100,121112,121136,121150,121184,121212,121244,121282,121284,121288,121296,121318,121338,121356,121368,121392,121406,121440,121468,121536,121592,121656,121730,121732,121736,121744,121758,121760,121804,121842,121844,121890,121922,121924,121928,121936,121950,121958,121978,121986,121988,121992,122e3,122014,122016,122044,122060,122098,122100,122116,122120,122128,122142,122144,122172,122176,122232,122246,122264,122318,122338,122340,122344,122414,122418,122420,122446,122460,122466,122468,122472,122510,122524,122552,122562,122564,122568,122576,122598,122618,122646,122662,122668,122694,122700,122712,122738,122740,122762,122770,122772,122786,122788,122792,123018,123026,123028,123042,123044,123048,123062,123098,123146,123154,123156,123170,123172,123176,123190,123202,123204,123208,123216,123238,123244,123258,123290,123314,123316,123402,123410,123412,123426,123428,123432,123446,123458,123464,123472,123486,123494,123500,123514,123522,123524,123528,123536,123552,123580,123590,123596,123608,123630,123634,123636,123674,123698,123700,123740,123746,123748,123752,123834,123914,123922,123924,123938,123944,123958,123970,123976,123984,123998,124006,124012,124026,124034,124036,124048,124062,124064,124092,124102,124108,124120,124142,124146,124148,124162,124164,124168,124176,124190,124192,124220,124224,124280,124294,124300,124312,124336,124350,124366,124380,124386,124388,124392,124406,124442,124462,124466,124468,124494,124508,124514,124520,124558,124572,124600,124610,124612,124616,124624,124646,124666,124694,124710,124716,124730,124742,124748,124760,124786,124788,124818,124820,124834,124836,124840,124854,124946,124948,124962,124964,124968,124982,124994,124996,125e3,125008,125022,125030,125036,125050,125058,125060,125064,125072,125086,125088,125116,125126,125132,125144,125166,125170,125172,125186,125188,125192,125200,125216,125244,125248,125304,125318,125324,125336,125360,125374,125390,125404,125410,125412,125416,125430,125444,125448,125456,125472,125504,125560,125680,125702,125708,125720,125744,125758,125792,125820,125838,125852,125880,125890,125892,125896,125904,125918,125926,125932,125978,125998,126002,126004,126030,126044,126050,126052,126056,126094,126108,126136,126146,126148,126152,126160,126182,126202,126222,126236,126264,126320,126334,126338,126340,126344,126352,126366,126368,126412,126450,126452,126486,126502,126508,126522,126534,126540,126552,126574,126578,126580,126598,126604,126616,126640,126654,126670,126684,126690,126692,126696,126738,126754,126756,126760,126774,126786,126788,126792,126800,126814,126822,126828,126842,126894,126898,126900,126934,127126,127142,127148,127162,127178,127186,127188,127254,127270,127276,127290,127302,127308,127320,127342,127346,127348,127370,127378,127380,127394,127396,127400,127450,127510,127526,127532,127546,127558,127576,127598,127602,127604,127622,127628,127640,127664,127678,127694,127708,127714,127716,127720,127734,127754,127762,127764,127778,127784,127810,127812,127816,127824,127838,127846,127866,127898,127918,127922,127924,128022,128038,128044,128058,128070,128076,128088,128110,128114,128116,128134,128140,128152,128176,128190,128206,128220,128226,128228,128232,128246,128262,128268,128280,128304,128318,128352,128380,128398,128412,128440,128450,128452,128456,128464,128478,128486,128492,128506,128522,128530,128532,128546,128548,128552,128566,128578,128580,128584,128592,128606,128614,128634,128642,128644,128648,128656,128670,128672,128700,128716,128754,128756,128794,128814,128818,128820,128846,128860,128866,128868,128872,128886,128918,128934,128940,128954,128978,128980,129178,129198,129202,129204,129238,129258,129306,129326,129330,129332,129358,129372,129378,129380,129384,129398,129430,129446,129452,129466,129482,129490,129492,129562,129582,129586,129588,129614,129628,129634,129636,129640,129654,129678,129692,129720,129730,129732,129736,129744,129758,129766,129772,129814,129830,129836,129850,129862,129868,129880,129902,129906,129908,129930,129938,129940,129954,129956,129960,129974,130010]),t.CODEWORD_TABLE=Int32Array.from([2627,1819,2622,2621,1813,1812,2729,2724,2723,2779,2774,2773,902,896,908,868,865,861,859,2511,873,871,1780,835,2493,825,2491,842,837,844,1764,1762,811,810,809,2483,807,2482,806,2480,815,814,813,812,2484,817,816,1745,1744,1742,1746,2655,2637,2635,2626,2625,2623,2628,1820,2752,2739,2737,2728,2727,2725,2730,2785,2783,2778,2777,2775,2780,787,781,747,739,736,2413,754,752,1719,692,689,681,2371,678,2369,700,697,694,703,1688,1686,642,638,2343,631,2341,627,2338,651,646,643,2345,654,652,1652,1650,1647,1654,601,599,2322,596,2321,594,2319,2317,611,610,608,606,2324,603,2323,615,614,612,1617,1616,1614,1612,616,1619,1618,2575,2538,2536,905,901,898,909,2509,2507,2504,870,867,864,860,2512,875,872,1781,2490,2489,2487,2485,1748,836,834,832,830,2494,827,2492,843,841,839,845,1765,1763,2701,2676,2674,2653,2648,2656,2634,2633,2631,2629,1821,2638,2636,2770,2763,2761,2750,2745,2753,2736,2735,2733,2731,1848,2740,2738,2786,2784,591,588,576,569,566,2296,1590,537,534,526,2276,522,2274,545,542,539,548,1572,1570,481,2245,466,2242,462,2239,492,485,482,2249,496,494,1534,1531,1528,1538,413,2196,406,2191,2188,425,419,2202,415,2199,432,430,427,1472,1467,1464,433,1476,1474,368,367,2160,365,2159,362,2157,2155,2152,378,377,375,2166,372,2165,369,2162,383,381,379,2168,1419,1418,1416,1414,385,1411,384,1423,1422,1420,1424,2461,802,2441,2439,790,786,783,794,2409,2406,2403,750,742,738,2414,756,753,1720,2367,2365,2362,2359,1663,693,691,684,2373,680,2370,702,699,696,704,1690,1687,2337,2336,2334,2332,1624,2329,1622,640,637,2344,634,2342,630,2340,650,648,645,2346,655,653,1653,1651,1649,1655,2612,2597,2595,2571,2568,2565,2576,2534,2529,2526,1787,2540,2537,907,904,900,910,2503,2502,2500,2498,1768,2495,1767,2510,2508,2506,869,866,863,2513,876,874,1782,2720,2713,2711,2697,2694,2691,2702,2672,2670,2664,1828,2678,2675,2647,2646,2644,2642,1823,2639,1822,2654,2652,2650,2657,2771,1855,2765,2762,1850,1849,2751,2749,2747,2754,353,2148,344,342,336,2142,332,2140,345,1375,1373,306,2130,299,2128,295,2125,319,314,311,2132,1354,1352,1349,1356,262,257,2101,253,2096,2093,274,273,267,2107,263,2104,280,278,275,1316,1311,1308,1320,1318,2052,202,2050,2044,2040,219,2063,212,2060,208,2055,224,221,2066,1260,1258,1252,231,1248,229,1266,1264,1261,1268,155,1998,153,1996,1994,1991,1988,165,164,2007,162,2006,159,2003,2e3,172,171,169,2012,166,2010,1186,1184,1182,1179,175,1176,173,1192,1191,1189,1187,176,1194,1193,2313,2307,2305,592,589,2294,2292,2289,578,572,568,2297,580,1591,2272,2267,2264,1547,538,536,529,2278,525,2275,547,544,541,1574,1571,2237,2235,2229,1493,2225,1489,478,2247,470,2244,465,2241,493,488,484,2250,498,495,1536,1533,1530,1539,2187,2186,2184,2182,1432,2179,1430,2176,1427,414,412,2197,409,2195,405,2193,2190,426,424,421,2203,418,2201,431,429,1473,1471,1469,1466,434,1477,1475,2478,2472,2470,2459,2457,2454,2462,803,2437,2432,2429,1726,2443,2440,792,789,785,2401,2399,2393,1702,2389,1699,2411,2408,2405,745,741,2415,758,755,1721,2358,2357,2355,2353,1661,2350,1660,2347,1657,2368,2366,2364,2361,1666,690,687,2374,683,2372,701,698,705,1691,1689,2619,2617,2610,2608,2605,2613,2593,2588,2585,1803,2599,2596,2563,2561,2555,1797,2551,1795,2573,2570,2567,2577,2525,2524,2522,2520,1786,2517,1785,2514,1783,2535,2533,2531,2528,1788,2541,2539,906,903,911,2721,1844,2715,2712,1838,1836,2699,2696,2693,2703,1827,1826,1824,2673,2671,2669,2666,1829,2679,2677,1858,1857,2772,1854,1853,1851,1856,2766,2764,143,1987,139,1986,135,133,131,1984,128,1983,125,1981,138,137,136,1985,1133,1132,1130,112,110,1974,107,1973,104,1971,1969,122,121,119,117,1977,114,1976,124,1115,1114,1112,1110,1117,1116,84,83,1953,81,1952,78,1950,1948,1945,94,93,91,1959,88,1958,85,1955,99,97,95,1961,1086,1085,1083,1081,1078,100,1090,1089,1087,1091,49,47,1917,44,1915,1913,1910,1907,59,1926,56,1925,53,1922,1919,66,64,1931,61,1929,1042,1040,1038,71,1035,70,1032,68,1048,1047,1045,1043,1050,1049,12,10,1869,1867,1864,1861,21,1880,19,1877,1874,1871,28,1888,25,1886,22,1883,982,980,977,974,32,30,991,989,987,984,34,995,994,992,2151,2150,2147,2146,2144,356,355,354,2149,2139,2138,2136,2134,1359,343,341,338,2143,335,2141,348,347,346,1376,1374,2124,2123,2121,2119,1326,2116,1324,310,308,305,2131,302,2129,298,2127,320,318,316,313,2133,322,321,1355,1353,1351,1357,2092,2091,2089,2087,1276,2084,1274,2081,1271,259,2102,256,2100,252,2098,2095,272,269,2108,266,2106,281,279,277,1317,1315,1313,1310,282,1321,1319,2039,2037,2035,2032,1203,2029,1200,1197,207,2053,205,2051,201,2049,2046,2043,220,218,2064,215,2062,211,2059,228,226,223,2069,1259,1257,1254,232,1251,230,1267,1265,1263,2316,2315,2312,2311,2309,2314,2304,2303,2301,2299,1593,2308,2306,590,2288,2287,2285,2283,1578,2280,1577,2295,2293,2291,579,577,574,571,2298,582,581,1592,2263,2262,2260,2258,1545,2255,1544,2252,1541,2273,2271,2269,2266,1550,535,532,2279,528,2277,546,543,549,1575,1573,2224,2222,2220,1486,2217,1485,2214,1482,1479,2238,2236,2234,2231,1496,2228,1492,480,477,2248,473,2246,469,2243,490,487,2251,497,1537,1535,1532,2477,2476,2474,2479,2469,2468,2466,2464,1730,2473,2471,2453,2452,2450,2448,1729,2445,1728,2460,2458,2456,2463,805,804,2428,2427,2425,2423,1725,2420,1724,2417,1722,2438,2436,2434,2431,1727,2444,2442,793,791,788,795,2388,2386,2384,1697,2381,1696,2378,1694,1692,2402,2400,2398,2395,1703,2392,1701,2412,2410,2407,751,748,744,2416,759,757,1807,2620,2618,1806,1805,2611,2609,2607,2614,1802,1801,1799,2594,2592,2590,2587,1804,2600,2598,1794,1793,1791,1789,2564,2562,2560,2557,1798,2554,1796,2574,2572,2569,2578,1847,1846,2722,1843,1842,1840,1845,2716,2714,1835,1834,1832,1830,1839,1837,2700,2698,2695,2704,1817,1811,1810,897,862,1777,829,826,838,1760,1758,808,2481,1741,1740,1738,1743,2624,1818,2726,2776,782,740,737,1715,686,679,695,1682,1680,639,628,2339,647,644,1645,1643,1640,1648,602,600,597,595,2320,593,2318,609,607,604,1611,1610,1608,1606,613,1615,1613,2328,926,924,892,886,899,857,850,2505,1778,824,823,821,819,2488,818,2486,833,831,828,840,1761,1759,2649,2632,2630,2746,2734,2732,2782,2781,570,567,1587,531,527,523,540,1566,1564,476,467,463,2240,486,483,1524,1521,1518,1529,411,403,2192,399,2189,423,416,1462,1457,1454,428,1468,1465,2210,366,363,2158,360,2156,357,2153,376,373,370,2163,1410,1409,1407,1405,382,1402,380,1417,1415,1412,1421,2175,2174,777,774,771,784,732,725,722,2404,743,1716,676,674,668,2363,665,2360,685,1684,1681,626,624,622,2335,620,2333,617,2330,641,635,649,1646,1644,1642,2566,928,925,2530,2527,894,891,888,2501,2499,2496,858,856,854,851,1779,2692,2668,2665,2645,2643,2640,2651,2768,2759,2757,2744,2743,2741,2748,352,1382,340,337,333,1371,1369,307,300,296,2126,315,312,1347,1342,1350,261,258,250,2097,246,2094,271,268,264,1306,1301,1298,276,1312,1309,2115,203,2048,195,2045,191,2041,213,209,2056,1246,1244,1238,225,1234,222,1256,1253,1249,1262,2080,2079,154,1997,150,1995,147,1992,1989,163,160,2004,156,2001,1175,1174,1172,1170,1167,170,1164,167,1185,1183,1180,1177,174,1190,1188,2025,2024,2022,587,586,564,559,556,2290,573,1588,520,518,512,2268,508,2265,530,1568,1565,461,457,2233,450,2230,446,2226,479,471,489,1526,1523,1520,397,395,2185,392,2183,389,2180,2177,410,2194,402,422,1463,1461,1459,1456,1470,2455,799,2433,2430,779,776,773,2397,2394,2390,734,728,724,746,1717,2356,2354,2351,2348,1658,677,675,673,670,667,688,1685,1683,2606,2589,2586,2559,2556,2552,927,2523,2521,2518,2515,1784,2532,895,893,890,2718,2709,2707,2689,2687,2684,2663,2662,2660,2658,1825,2667,2769,1852,2760,2758,142,141,1139,1138,134,132,129,126,1982,1129,1128,1126,1131,113,111,108,105,1972,101,1970,120,118,115,1109,1108,1106,1104,123,1113,1111,82,79,1951,75,1949,72,1946,92,89,86,1956,1077,1076,1074,1072,98,1069,96,1084,1082,1079,1088,1968,1967,48,45,1916,42,1914,39,1911,1908,60,57,54,1923,50,1920,1031,1030,1028,1026,67,1023,65,1020,62,1041,1039,1036,1033,69,1046,1044,1944,1943,1941,11,9,1868,7,1865,1862,1859,20,1878,16,1875,13,1872,970,968,966,963,29,960,26,23,983,981,978,975,33,971,31,990,988,985,1906,1904,1902,993,351,2145,1383,331,330,328,326,2137,323,2135,339,1372,1370,294,293,291,289,2122,286,2120,283,2117,309,303,317,1348,1346,1344,245,244,242,2090,239,2088,236,2085,2082,260,2099,249,270,1307,1305,1303,1300,1314,189,2038,186,2036,183,2033,2030,2026,206,198,2047,194,216,1247,1245,1243,1240,227,1237,1255,2310,2302,2300,2286,2284,2281,565,563,561,558,575,1589,2261,2259,2256,2253,1542,521,519,517,514,2270,511,533,1569,1567,2223,2221,2218,2215,1483,2211,1480,459,456,453,2232,449,474,491,1527,1525,1522,2475,2467,2465,2451,2449,2446,801,800,2426,2424,2421,2418,1723,2435,780,778,775,2387,2385,2382,2379,1695,2375,1693,2396,735,733,730,727,749,1718,2616,2615,2604,2603,2601,2584,2583,2581,2579,1800,2591,2550,2549,2547,2545,1792,2542,1790,2558,929,2719,1841,2710,2708,1833,1831,2690,2688,2686,1815,1809,1808,1774,1756,1754,1737,1736,1734,1739,1816,1711,1676,1674,633,629,1638,1636,1633,1641,598,1605,1604,1602,1600,605,1609,1607,2327,887,853,1775,822,820,1757,1755,1584,524,1560,1558,468,464,1514,1511,1508,1519,408,404,400,1452,1447,1444,417,1458,1455,2208,364,361,358,2154,1401,1400,1398,1396,374,1393,371,1408,1406,1403,1413,2173,2172,772,726,723,1712,672,669,666,682,1678,1675,625,623,621,618,2331,636,632,1639,1637,1635,920,918,884,880,889,849,848,847,846,2497,855,852,1776,2641,2742,2787,1380,334,1367,1365,301,297,1340,1338,1335,1343,255,251,247,1296,1291,1288,265,1302,1299,2113,204,196,192,2042,1232,1230,1224,214,1220,210,1242,1239,1235,1250,2077,2075,151,148,1993,144,1990,1163,1162,1160,1158,1155,161,1152,157,1173,1171,1168,1165,168,1181,1178,2021,2020,2018,2023,585,560,557,1585,516,509,1562,1559,458,447,2227,472,1516,1513,1510,398,396,393,390,2181,386,2178,407,1453,1451,1449,1446,420,1460,2209,769,764,720,712,2391,729,1713,664,663,661,659,2352,656,2349,671,1679,1677,2553,922,919,2519,2516,885,883,881,2685,2661,2659,2767,2756,2755,140,1137,1136,130,127,1125,1124,1122,1127,109,106,102,1103,1102,1100,1098,116,1107,1105,1980,80,76,73,1947,1068,1067,1065,1063,90,1060,87,1075,1073,1070,1080,1966,1965,46,43,40,1912,36,1909,1019,1018,1016,1014,58,1011,55,1008,51,1029,1027,1024,1021,63,1037,1034,1940,1939,1937,1942,8,1866,4,1863,1,1860,956,954,952,949,946,17,14,969,967,964,961,27,957,24,979,976,972,1901,1900,1898,1896,986,1905,1903,350,349,1381,329,327,324,1368,1366,292,290,287,284,2118,304,1341,1339,1337,1345,243,240,237,2086,233,2083,254,1297,1295,1293,1290,1304,2114,190,187,184,2034,180,2031,177,2027,199,1233,1231,1229,1226,217,1223,1241,2078,2076,584,555,554,552,550,2282,562,1586,507,506,504,502,2257,499,2254,515,1563,1561,445,443,441,2219,438,2216,435,2212,460,454,475,1517,1515,1512,2447,798,797,2422,2419,770,768,766,2383,2380,2376,721,719,717,714,731,1714,2602,2582,2580,2548,2546,2543,923,921,2717,2706,2705,2683,2682,2680,1771,1752,1750,1733,1732,1731,1735,1814,1707,1670,1668,1631,1629,1626,1634,1599,1598,1596,1594,1603,1601,2326,1772,1753,1751,1581,1554,1552,1504,1501,1498,1509,1442,1437,1434,401,1448,1445,2206,1392,1391,1389,1387,1384,359,1399,1397,1394,1404,2171,2170,1708,1672,1669,619,1632,1630,1628,1773,1378,1363,1361,1333,1328,1336,1286,1281,1278,248,1292,1289,2111,1218,1216,1210,197,1206,193,1228,1225,1221,1236,2073,2071,1151,1150,1148,1146,152,1143,149,1140,145,1161,1159,1156,1153,158,1169,1166,2017,2016,2014,2019,1582,510,1556,1553,452,448,1506,1500,394,391,387,1443,1441,1439,1436,1450,2207,765,716,713,1709,662,660,657,1673,1671,916,914,879,878,877,882,1135,1134,1121,1120,1118,1123,1097,1096,1094,1092,103,1101,1099,1979,1059,1058,1056,1054,77,1051,74,1066,1064,1061,1071,1964,1963,1007,1006,1004,1002,999,41,996,37,1017,1015,1012,1009,52,1025,1022,1936,1935,1933,1938,942,940,938,935,932,5,2,955,953,950,947,18,943,15,965,962,958,1895,1894,1892,1890,973,1899,1897,1379,325,1364,1362,288,285,1334,1332,1330,241,238,234,1287,1285,1283,1280,1294,2112,188,185,181,178,2028,1219,1217,1215,1212,200,1209,1227,2074,2072,583,553,551,1583,505,503,500,513,1557,1555,444,442,439,436,2213,455,451,1507,1505,1502,796,763,762,760,767,711,710,708,706,2377,718,715,1710,2544,917,915,2681,1627,1597,1595,2325,1769,1749,1747,1499,1438,1435,2204,1390,1388,1385,1395,2169,2167,1704,1665,1662,1625,1623,1620,1770,1329,1282,1279,2109,1214,1207,1222,2068,2065,1149,1147,1144,1141,146,1157,1154,2013,2011,2008,2015,1579,1549,1546,1495,1487,1433,1431,1428,1425,388,1440,2205,1705,658,1667,1664,1119,1095,1093,1978,1057,1055,1052,1062,1962,1960,1005,1003,1e3,997,38,1013,1010,1932,1930,1927,1934,941,939,936,933,6,930,3,951,948,944,1889,1887,1884,1881,959,1893,1891,35,1377,1360,1358,1327,1325,1322,1331,1277,1275,1272,1269,235,1284,2110,1205,1204,1201,1198,182,1195,179,1213,2070,2067,1580,501,1551,1548,440,437,1497,1494,1490,1503,761,709,707,1706,913,912,2198,1386,2164,2161,1621,1766,2103,1208,2058,2054,1145,1142,2005,2002,1999,2009,1488,1429,1426,2200,1698,1659,1656,1975,1053,1957,1954,1001,998,1924,1921,1918,1928,937,934,931,1879,1876,1873,1870,945,1885,1882,1323,1273,1270,2105,1202,1199,1196,1211,2061,2057,1576,1543,1540,1484,1481,1478,1491,1700]),t}();e["Z"]=a},26347:function(t,e,r){r.d(e,{Z:function(){return Q}});r(57658);var n=r(91373),o=r(85777),i=r(6459),a=r(53706),s=r(54739),u=r(18501),c=r(87489),h=r(69153),f=(r(23767),r(8585),r(68696),r(69728)),l=r(98090),d=r(54671),p=function(){function t(t,e){this.bits=t,this.points=e}return t.prototype.getBits=function(){return this.bits},t.prototype.getPoints=function(){return this.points},t}(),g=p,w=function(t){var e="function"===typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},y=function(){function t(){}return t.detectMultiple=function(e,r,n){var o=e.getBlackMatrix(),i=t.detect(n,o);return i.length||(o=o.clone(),o.rotate180(),i=t.detect(n,o)),new g(o,i)},t.detect=function(e,r){var n,o,i=new Array,a=0,s=0,u=!1;while(a0){var l=t.findGuardPattern(e,i,--o,n,!1,a,c);if(null==l){o++;break}h=l}s[0]=new f.Z(h[0],o),s[1]=new f.Z(h[1],o),u=!0;break}}var p=o+1;if(u){var g=0;for(l=Int32Array.from([Math.trunc(s[0].getX()),Math.trunc(s[1].getX())]);pt.SKIPPED_ROW_COUNT_MAX)break;g++}}p-=g+1,s[2]=new f.Z(l[0],p),s[3]=new f.Z(l[1],p)}return p-o0&&c++f?h-f:f-h;if(l>r)return 1/0;u+=l}return u/o},t.INDEXES_START_PATTERN=Int32Array.from([0,4,1,5]),t.INDEXES_STOP_PATTERN=Int32Array.from([6,2,7,3]),t.MAX_AVG_VARIANCE=.42,t.MAX_INDIVIDUAL_VARIANCE=.8,t.START_PATTERN=Int32Array.from([8,1,1,1,1,1,1,3]),t.STOP_PATTERN=Int32Array.from([7,1,1,3,1,1,1,2,1]),t.MAX_PIXEL_DRIFT=3,t.MAX_PATTERN_DRIFT=5,t.SKIPPED_ROW_COUNT_MAX=25,t.ROW_STEP=5,t.BARCODE_MIN_HEIGHT=10,t}(),v=y,_=r(61997),C=r(14368),A=function(){function t(e,r,n,o,i){e instanceof t?this.constructor_2(e):this.constructor_1(e,r,n,o,i)}return t.prototype.constructor_1=function(t,e,r,n,o){var i=null==e||null==r,s=null==n||null==o;if(i&&s)throw new a.Z;i?(e=new f.Z(0,n.getY()),r=new f.Z(0,o.getY())):s&&(n=new f.Z(t.getWidth()-1,e.getY()),o=new f.Z(t.getWidth()-1,r.getY())),this.image=t,this.topLeft=e,this.bottomLeft=r,this.topRight=n,this.bottomRight=o,this.minX=Math.trunc(Math.min(e.getX(),r.getX())),this.maxX=Math.trunc(Math.max(n.getX(),o.getX())),this.minY=Math.trunc(Math.min(e.getY(),n.getY())),this.maxY=Math.trunc(Math.max(r.getY(),o.getY()))},t.prototype.constructor_2=function(t){this.image=t.image,this.topLeft=t.getTopLeft(),this.bottomLeft=t.getBottomLeft(),this.topRight=t.getTopRight(),this.bottomRight=t.getBottomRight(),this.minX=t.getMinX(),this.maxX=t.getMaxX(),this.minY=t.getMinY(),this.maxY=t.getMaxY()},t.merge=function(e,r){return null==e?r:null==r?e:new t(e.image,e.topLeft,e.bottomLeft,r.topRight,r.bottomRight)},t.prototype.addMissingRows=function(e,r,n){var o=this.topLeft,i=this.bottomLeft,a=this.topRight,s=this.bottomRight;if(e>0){var u=n?this.topLeft:this.topRight,c=Math.trunc(u.getY()-e);c<0&&(c=0);var h=new f.Z(u.getX(),c);n?o=h:a=h}if(r>0){var l=n?this.bottomLeft:this.bottomRight,d=Math.trunc(l.getY()+r);d>=this.image.getHeight()&&(d=this.image.getHeight()-1);var p=new f.Z(l.getX(),d);n?i=p:s=p}return new t(this.image,o,i,a,s)},t.prototype.getMinX=function(){return this.minX},t.prototype.getMaxX=function(){return this.maxX},t.prototype.getMinY=function(){return this.minY},t.prototype.getMaxY=function(){return this.maxY},t.prototype.getTopLeft=function(){return this.topLeft},t.prototype.getTopRight=function(){return this.topRight},t.prototype.getBottomLeft=function(){return this.bottomLeft},t.prototype.getBottomRight=function(){return this.bottomRight},t}(),m=A,E=function(){function t(t,e,r,n){this.columnCount=t,this.errorCorrectionLevel=n,this.rowCountUpperPart=e,this.rowCountLowerPart=r,this.rowCount=e+r}return t.prototype.getColumnCount=function(){return this.columnCount},t.prototype.getErrorCorrectionLevel=function(){return this.errorCorrectionLevel},t.prototype.getRowCount=function(){return this.rowCount},t.prototype.getRowCountUpperPart=function(){return this.rowCountUpperPart},t.prototype.getRowCountLowerPart=function(){return this.rowCountLowerPart},t}(),I=E,S=function(){function t(){this.buffer=""}return t.form=function(t,e){var r=-1;function n(t,n,o,i,a,s){if("%%"===t)return"%";if(void 0!==e[++r]){t=i?parseInt(i.substr(1)):void 0;var u,c=a?parseInt(a.substr(1)):void 0;switch(s){case"s":u=e[r];break;case"c":u=e[r][0];break;case"f":u=parseFloat(e[r]).toFixed(t);break;case"p":u=parseFloat(e[r]).toPrecision(t);break;case"e":u=parseFloat(e[r]).toExponential(t);break;case"x":u=parseInt(e[r]).toString(c||16);break;case"d":u=parseFloat(parseInt(e[r],c||10).toPrecision(t)).toFixed(0);break}u="object"===typeof u?JSON.stringify(u):(+u).toString(c);var h=parseInt(o),f=o&&o[0]+""==="0"?"0":" ";while(u.length=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},O=function(){function t(t){this.boundingBox=new m(t),this.codewords=new Array(t.getMaxY()-t.getMinY()+1)}return t.prototype.getCodewordNearby=function(e){var r=this.getCodeword(e);if(null!=r)return r;for(var n=1;n=0&&(r=this.codewords[o],null!=r))return r;if(o=this.imageRowToCodewordIndex(e)+n,o=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Z=function(t,e){var r="function"===typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{while((void 0===e||e-- >0)&&!(n=i.next()).done)a.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(r=i["return"])&&r.call(i)}finally{if(o)throw o.error}}return a},D=function(){function t(){this.values=new Map}return t.prototype.setValue=function(t){t=Math.trunc(t);var e=this.values.get(t);null==e&&(e=0),e++,this.values.set(t,e)},t.prototype.getValue=function(){var t,e,r=-1,n=new Array,o=function(t,e){var o={getKey:function(){return t},getValue:function(){return e}};o.getValue()>r?(r=o.getValue(),n=[],n.push(o.getKey())):o.getValue()===r&&n.push(o.getKey())};try{for(var i=N(this.values.entries()),a=i.next();!a.done;a=i.next()){var s=Z(a.value,2),c=s[0],h=s[1];o(c,h)}}catch(f){t={error:f}}finally{try{a&&!a.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}return u.Z.toIntArray(n)},t.prototype.getConfidence=function(t){return this.values.get(t)},t}(),M=D,P=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),B=function(t){var e="function"===typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},L=function(t){function e(e,r){var n=t.call(this,e)||this;return n._isLeft=r,n}return P(e,t),e.prototype.setRowNumbers=function(){var t,e;try{for(var r=B(this.getCodewords()),n=r.next();!n.done;n=r.next()){var o=n.value;null!=o&&o.setRowNumberAsRowIndicatorColumn()}}catch(i){t={error:i}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}},e.prototype.adjustCompleteIndicatorColumnRowNumbers=function(t){var e=this.getCodewords();this.setRowNumbers(),this.removeIncorrectCodewords(e,t);for(var r=this.getBoundingBox(),n=this._isLeft?r.getTopLeft():r.getTopRight(),o=this._isLeft?r.getBottomLeft():r.getBottomRight(),i=this.imageRowToCodewordIndex(Math.trunc(n.getY())),a=this.imageRowToCodewordIndex(Math.trunc(o.getY())),s=-1,u=1,c=0,h=i;h=t.getRowCount()||l>h)e[h]=null;else{var d=void 0;d=u>2?(u-2)*l:l;for(var p=d>=h,g=1;g<=d&&!p;g++)p=null!=e[h-g];p?e[h]=null:(s=f.getRowNumber(),c=1)}}},e.prototype.getRowHeights=function(){var t,e,r=this.getBarcodeMetadata();if(null==r)return null;this.adjustIncompleteIndicatorColumnRowNumbers(r);var n=new Int32Array(r.getRowCount());try{for(var o=B(this.getCodewords()),i=o.next();!i.done;i=o.next()){var a=i.value;if(null!=a){var s=a.getRowNumber();if(s>=n.length)continue;n[s]++}}}catch(u){t={error:u}}finally{try{i&&!i.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}return n},e.prototype.adjustIncompleteIndicatorColumnRowNumbers=function(t){for(var e=this.getBoundingBox(),r=this._isLeft?e.getTopLeft():e.getTopRight(),n=this._isLeft?e.getBottomLeft():e.getBottomRight(),o=this.imageRowToCodewordIndex(Math.trunc(r.getY())),i=this.imageRowToCodewordIndex(Math.trunc(n.getY())),a=this.getCodewords(),s=-1,u=1,c=0,h=o;h=t.getRowCount()?a[h]=null:(s=f.getRowNumber(),c=1)}},e.prototype.getBarcodeMetadata=function(){var t,e,r=this.getCodewords(),n=new M,o=new M,i=new M,a=new M;try{for(var s=B(r),c=s.next();!c.done;c=s.next()){var h=c.value;if(null!=h){h.setRowNumberAsRowIndicatorColumn();var f=h.getValue()%30,l=h.getRowNumber();switch(this._isLeft||(l+=2),l%3){case 0:o.setValue(3*f+1);break;case 1:a.setValue(f/3),i.setValue(f%3);break;case 2:n.setValue(f+1);break}}}}catch(p){t={error:p}}finally{try{c&&!c.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}if(0===n.getValue().length||0===o.getValue().length||0===i.getValue().length||0===a.getValue().length||n.getValue()[0]<1||o.getValue()[0]+i.getValue()[0]u.Z.MAX_ROWS_IN_BARCODE)return null;var d=new I(n.getValue()[0],o.getValue()[0],i.getValue()[0],a.getValue()[0]);return this.removeIncorrectCodewords(r,d),d},e.prototype.removeIncorrectCodewords=function(t,e){for(var r=0;re.getRowCount())t[r]=null;else switch(this._isLeft||(i+=2),i%3){case 0:3*o+1!==e.getRowCountUpperPart()&&(t[r]=null);break;case 1:Math.trunc(o/3)===e.getErrorCorrectionLevel()&&o%3===e.getRowCountLowerPart()||(t[r]=null);break;case 2:o+1!==e.getColumnCount()&&(t[r]=null);break}}}},e.prototype.isLeft=function(){return this._isLeft},e.prototype.toString=function(){return"IsLeft: "+this._isLeft+"\n"+t.prototype.toString.call(this)},e}(R),F=L,x=function(t){var e="function"===typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},k=function(){function t(t,e){this.ADJUST_ROW_NUMBER_SKIP=2,this.barcodeMetadata=t,this.barcodeColumnCount=t.getColumnCount(),this.boundingBox=e,this.detectionResultColumns=new Array(this.barcodeColumnCount+2)}return t.prototype.getDetectionResultColumns=function(){this.adjustIndicatorColumnRowNumbers(this.detectionResultColumns[0]),this.adjustIndicatorColumnRowNumbers(this.detectionResultColumns[this.barcodeColumnCount+1]);var t,e=u.Z.MAX_CODEWORDS_IN_BARCODE;do{t=e,e=this.adjustRowNumbersAndGetCount()}while(e>0&&e0&&i0&&(c[0]=n[r-1],c[4]=s[r-1],c[5]=u[r-1]),r>1&&(c[8]=n[r-2],c[10]=s[r-2],c[11]=u[r-2]),r>=1;n=1&r,t.RATIOS_TABLE[e]||(t.RATIOS_TABLE[e]=new Array(u.Z.BARS_IN_MODULE)),t.RATIOS_TABLE[e][u.Z.BARS_IN_MODULE-o-1]=Math.fround(i/u.Z.MODULES_IN_CODEWORD)}this.bSymbolTableReady=!0},t.getDecodedValue=function(e){var r=t.getDecodedCodewordValue(t.sampleBitCounts(e));return-1!==r?r:t.getClosestDecodedValue(e)},t.sampleBitCounts=function(t){for(var e=_.Z.sum(t),r=new Int32Array(u.Z.BARS_IN_MODULE),n=0,o=0,i=0;i1)for(var o=0;o=i)break}c=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Y=function(){function t(){}return t.decode=function(e,r,n,o,i,s,u){for(var c,h=new m(e,r,n,o,i),f=null,l=null,d=!0;;d=!1){if(null!=r&&(f=t.getRowIndicatorColumn(e,h,r,!0,s,u)),null!=o&&(l=t.getRowIndicatorColumn(e,h,o,!1,s,u)),c=t.merge(f,l),null==c)throw a.Z.getNotFoundInstance();var p=c.getBoundingBox();if(!d||null==p||!(p.getMinY()h.getMaxY()))break;h=p}c.setBoundingBox(h);var g=c.getBarcodeColumnCount()+1;c.setDetectionResultColumn(0,f),c.setDetectionResultColumn(g,l);for(var w=null!=f,y=1;y<=g;y++){var v=w?y:g-y;if(void 0===c.getDetectionResultColumn(v)){var _=void 0;_=0===v||v===g?new F(h,0===v):new R(h),c.setDetectionResultColumn(v,_);for(var C=-1,A=C,E=h.getMinY();E<=h.getMaxY();E++){if(C=t.getStartColumn(c,v,E,w),C<0||C>h.getMaxX()){if(-1===A)continue;C=A}var I=t.detectCodeword(e,h.getMinX(),h.getMaxX(),w,C,E,s,u);null!=I&&(_.setCodeword(E,I),A=C,s=Math.min(s,I.getWidth()),u=Math.max(u,I.getWidth()))}}}return t.createDecoderResult(c)},t.merge=function(e,r){if(null==e&&null==r)return null;var n=t.getBarcodeMetadata(e,r);if(null==n)return null;var o=m.merge(t.adjustBoundingBox(e),t.adjustBoundingBox(r));return new V(n,o)},t.adjustBoundingBox=function(e){var r,n;if(null==e)return null;var o=e.getRowHeights();if(null==o)return null;var i=t.getMax(o),a=0;try{for(var s=j(o),u=s.next();!u.done;u=s.next()){var c=u.value;if(a+=i-c,c>0)break}}catch(d){r={error:d}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}for(var h=e.getCodewords(),f=0;a>0&&null==h[f];f++)a--;var l=0;for(f=o.length-1;f>=0;f--)if(l+=i-o[f],o[f]>0)break;for(f=h.length-1;l>0&&null==h[f];f--)l--;return e.getBoundingBox().addMissingRows(a,l,e.isLeft())},t.getMax=function(t){var e,r,n=-1;try{for(var o=j(t),i=o.next();!i.done;i=o.next()){var a=i.value;n=Math.max(n,a)}}catch(s){e={error:s}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return n},t.getBarcodeMetadata=function(t,e){var r,n;return null==t||null==(r=t.getBarcodeMetadata())?null==e?null:e.getBarcodeMetadata():null==e||null==(n=e.getBarcodeMetadata())?r:r.getColumnCount()!==n.getColumnCount()&&r.getErrorCorrectionLevel()!==n.getErrorCorrectionLevel()&&r.getRowCount()!==n.getRowCount()?null:r},t.getRowIndicatorColumn=function(e,r,n,o,i,a){for(var s=new F(r,o),u=0;u<2;u++)for(var c=0===u?1:-1,h=Math.trunc(Math.trunc(n.getX())),f=Math.trunc(Math.trunc(n.getY()));f<=r.getMaxY()&&f>=r.getMinY();f+=c){var l=t.detectCodeword(e,0,e.getWidth(),o,h,f,i,a);null!=l&&(s.setCodeword(f,l),h=o?l.getStartX():l.getEndX())}return s},t.adjustCodewordCount=function(e,r){var n=r[0][1],o=n.getValue(),i=e.getBarcodeColumnCount()*e.getBarcodeRowCount()-t.getNumberOfECCodeWords(e.getBarcodeECLevel());if(0===o.length){if(i<1||i>u.Z.MAX_CODEWORDS_IN_BARCODE)throw a.Z.getNotFoundInstance();n.setValue(i)}else o[0]!==i&&n.setValue(i)},t.createDecoderResult=function(e){var r=t.createBarcodeMatrix(e);t.adjustCodewordCount(e,r);for(var n=new Array,o=new Int32Array(e.getBarcodeRowCount()*e.getBarcodeColumnCount()),i=[],a=new Array,s=0;s0){for(var c=0;c=0){if(g>=i.length)continue;i[g][u].setValue(p.getValue())}}}}catch(w){n={error:w}}finally{try{d&&!d.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}u++}}catch(y){e={error:y}}finally{try{h&&!h.done&&(r=c.return)&&r.call(c)}finally{if(e)throw e.error}}return i},t.isValidBarcodeColumn=function(t,e){return e>=0&&e<=t.getBarcodeColumnCount()+1},t.getStartColumn=function(e,r,n,o){var i,a,s=o?1:-1,u=null;if(t.isValidBarcodeColumn(e,r-s)&&(u=e.getDetectionResultColumn(r-s).getCodeword(n)),null!=u)return o?u.getEndX():u.getStartX();if(u=e.getDetectionResultColumn(r).getCodewordNearby(n),null!=u)return o?u.getStartX():u.getEndX();if(t.isValidBarcodeColumn(e,r-s)&&(u=e.getDetectionResultColumn(r-s).getCodewordNearby(n)),null!=u)return o?u.getEndX():u.getStartX();var c=0;while(t.isValidBarcodeColumn(e,r-s)){r-=s;try{for(var h=(i=void 0,j(e.getDetectionResultColumn(r).getCodewords())),f=h.next();!f.done;f=h.next()){var l=f.value;if(null!=l)return(o?l.getEndX():l.getStartX())+s*c*(l.getEndX()-l.getStartX())}}catch(d){i={error:d}}finally{try{f&&!f.done&&(a=h.return)&&a.call(h)}finally{if(i)throw i.error}}c++}return o?e.getBoundingBox().getMinX():e.getBoundingBox().getMaxX()},t.detectCodeword=function(e,r,n,o,i,a,s,c){i=t.adjustCodewordStartColumn(e,r,n,o,i,a);var h,f=t.getModuleBitCount(e,r,n,o,i,a);if(null==f)return null;var l=_.Z.sum(f);if(o)h=i+l;else{for(var d=0;d=e)&&u=r:st.CODEWORD_SKEW_SIZE)return i;s+=u}u=-u,o=!o}return s},t.checkCodewordSkew=function(e,r,n){return r-t.CODEWORD_SKEW_SIZE<=e&&e<=n+t.CODEWORD_SKEW_SIZE},t.decodeCodewords=function(e,r,n){if(0===e.length)throw i.Z.getFormatInstance();var o=1<n/2+t.MAX_ERRORS||n<0||n>t.MAX_EC_CODEWORDS)throw o.Z.getChecksumInstance();return t.errorCorrection.decode(e,n,r)},t.verifyCodewordCount=function(t,e){if(t.length<4)throw i.Z.getFormatInstance();var r=t[0];if(r>t.length)throw i.Z.getFormatInstance();if(0===r){if(!(e>=1}return e},t.getCodewordBucketNumber=function(t){return t instanceof Int32Array?this.getCodewordBucketNumber_Int32Array(t):this.getCodewordBucketNumber_number(t)},t.getCodewordBucketNumber_number=function(e){return t.getCodewordBucketNumber(t.getBitCountForCodeword(e))},t.getCodewordBucketNumber_Int32Array=function(t){return(t[0]-t[2]+t[4]-t[6]+9)%9},t.toString=function(t){for(var e=new T,r=0;r=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},J=function(){function t(){}return t.prototype.decode=function(e,r){void 0===r&&(r=null);var n=t.decode(e,r,!1);if(null==n||0===n.length||null==n[0])throw a.Z.getNotFoundInstance();return n[0]},t.prototype.decodeMultiple=function(e,r){void 0===r&&(r=null);try{return t.decode(e,r,!0)}catch(n){if(n instanceof i.Z||n instanceof o.Z)throw a.Z.getNotFoundInstance();throw n}},t.decode=function(e,r,o){var i,a,u=new Array,c=v.detectMultiple(e,r,o);try{for(var f=q(c.getPoints()),l=f.next();!l.done;l=f.next()){var d=l.value,p=K.decode(c.getBits(),d[4],d[5],d[6],d[7],t.getMinCodewordWidth(d),t.getMaxCodewordWidth(d)),g=new s.Z(p.getText(),p.getRawBytes(),void 0,d,n.Z.PDF_417);g.putMetadata(h.Z.ERROR_CORRECTION_LEVEL,p.getECLevel());var w=p.getOther();null!=w&&g.putMetadata(h.Z.PDF417_EXTRA_METADATA,w),u.push(g)}}catch(y){i={error:y}}finally{try{l&&!l.done&&(a=f.return)&&a.call(f)}finally{if(i)throw i.error}}return u.map((function(t){return t}))},t.getMaxWidth=function(t,e){return null==t||null==e?0:Math.trunc(Math.abs(t.getX()-e.getX()))},t.getMinWidth=function(t,e){return null==t||null==e?c.Z.MAX_VALUE:Math.trunc(Math.abs(t.getX()-e.getX()))},t.getMaxCodewordWidth=function(e){return Math.floor(Math.max(Math.max(t.getMaxWidth(e[0],e[4]),t.getMaxWidth(e[6],e[2])*u.Z.MODULES_IN_CODEWORD/u.Z.MODULES_IN_STOP_PATTERN),Math.max(t.getMaxWidth(e[1],e[5]),t.getMaxWidth(e[7],e[3])*u.Z.MODULES_IN_CODEWORD/u.Z.MODULES_IN_STOP_PATTERN)))},t.getMinCodewordWidth=function(e){return Math.floor(Math.min(Math.min(t.getMinWidth(e[0],e[4]),t.getMinWidth(e[6],e[2])*u.Z.MODULES_IN_CODEWORD/u.Z.MODULES_IN_STOP_PATTERN),Math.min(t.getMinWidth(e[1],e[5]),t.getMinWidth(e[7],e[3])*u.Z.MODULES_IN_CODEWORD/u.Z.MODULES_IN_STOP_PATTERN)))},t.prototype.reset=function(){},t}(),Q=J},53327:function(t,e){var r=function(){function t(){this.segmentCount=-1,this.fileSize=-1,this.timestamp=-1,this.checksum=-1}return t.prototype.getSegmentIndex=function(){return this.segmentIndex},t.prototype.setSegmentIndex=function(t){this.segmentIndex=t},t.prototype.getFileId=function(){return this.fileId},t.prototype.setFileId=function(t){this.fileId=t},t.prototype.getOptionalData=function(){return this.optionalData},t.prototype.setOptionalData=function(t){this.optionalData=t},t.prototype.isLastSegment=function(){return this.lastSegment},t.prototype.setLastSegment=function(t){this.lastSegment=t},t.prototype.getSegmentCount=function(){return this.segmentCount},t.prototype.setSegmentCount=function(t){this.segmentCount=t},t.prototype.getSender=function(){return this.sender||null},t.prototype.setSender=function(t){this.sender=t},t.prototype.getAddressee=function(){return this.addressee||null},t.prototype.setAddressee=function(t){this.addressee=t},t.prototype.getFileName=function(){return this.fileName},t.prototype.setFileName=function(t){this.fileName=t},t.prototype.getFileSize=function(){return this.fileSize},t.prototype.setFileSize=function(t){this.fileSize=t},t.prototype.getChecksum=function(){return this.checksum},t.prototype.setChecksum=function(t){this.checksum=t},t.prototype.getTimestamp=function(){return this.timestamp},t.prototype.setTimestamp=function(t){this.timestamp=t},t}();e["Z"]=r},70897:function(t,e,r){r.d(e,{Z:function(){return P}});r(23767),r(8585),r(68696);var n,o,i=r(6459),a=r(5687),s=r(65156),u=r(53327),c=r(54671),h=r(36845),f=r(87489),l=function(){function t(){}return t.parseLong=function(t,e){return void 0===e&&(e=void 0),parseInt(t,e)},t}(),d=l,p=r(20862),g=r(59707),w=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return w(e,t),e.kind="NullPointerException",e}(g.Z),v=y,_=function(){function t(){}return t.prototype.writeBytes=function(t){this.writeBytesOffset(t,0,t.length)},t.prototype.writeBytesOffset=function(t,e,r){if(null==t)throw new v;if(e<0||e>t.length||r<0||e+r>t.length||e+r<0)throw new p.Z;if(0!==r)for(var n=0;n0&&this.grow(t)},e.prototype.grow=function(t){var e=this.buf.length,r=e<<1;if(r-t<0&&(r=t),r<0){if(t<0)throw new I;r=f.Z.MAX_VALUE}this.buf=c.Z.copyOfUint8Array(this.buf,r)},e.prototype.write=function(t){this.ensureCapacity(this.count+1),this.buf[this.count]=t,this.count+=1},e.prototype.writeBytesOffset=function(t,e,r){if(e<0||e>t.length||r<0||e+r-t.length>0)throw new p.Z;this.ensureCapacity(this.count+r),S.Z.arraycopy(t,e,this.buf,this.count,r),this.count+=r},e.prototype.writeTo=function(t){t.writeBytesOffset(this.buf,0,this.count)},e.prototype.reset=function(){this.count=0},e.prototype.toByteArray=function(){return c.Z.copyOfUint8Array(this.buf,this.count)},e.prototype.size=function(){return this.count},e.prototype.toString=function(t){return t?"string"===typeof t?this.toString_string(t):this.toString_number(t):this.toString_void()},e.prototype.toString_void=function(){return new String(this.buf).toString()},e.prototype.toString_string=function(t){return new String(this.buf).toString()},e.prototype.toString_number=function(t){return new String(this.buf).toString()},e.prototype.close=function(){},e}(C),O=b,R=r(90537);function N(){if("undefined"!==typeof window)return window["BigInt"]||null;if("undefined"!==typeof r.g)return r.g["BigInt"]||null;if("undefined"!==typeof self)return self["BigInt"]||null;throw new Error("Can't search globals for BigInt!")}function Z(t){if("undefined"===typeof o&&(o=N()),null===o)throw new Error("BigInt is not supported!");return o(t)}function D(){var t=[];t[0]=Z(1);var e=Z(900);t[1]=e;for(var r=2;r<16;r++)t[r]=t[r-1]*e;return t}(function(t){t[t["ALPHA"]=0]="ALPHA",t[t["LOWER"]=1]="LOWER",t[t["MIXED"]=2]="MIXED",t[t["PUNCT"]=3]="PUNCT",t[t["ALPHA_SHIFT"]=4]="ALPHA_SHIFT",t[t["PUNCT_SHIFT"]=5]="PUNCT_SHIFT"})(n||(n={}));var M=function(){function t(){}return t.decode=function(e,r){var n=new h.Z(""),o=a.Z.ISO8859_1;n.enableDecoding(o);var c=1,f=e[c++],l=new u.Z;while(ce[0])throw i.Z.getFormatInstance();for(var o=new Int32Array(t.NUMBER_OF_SEQUENCE_CODEWORDS),a=0;a0){for(var l=0;l<6;++l)a.write(Number(Z(u)>>Z(8*(5-l))));u=0,s=0}break}o===r[0]&&f0){for(l=0;l<6;++l)a.write(Number(Z(u)>>Z(8*(5-l))));u=0,s=0}}break}return i.append(R.Z.decode(a.toByteArray(),n)),o},t.numericCompaction=function(e,r,n){var o=0,i=!1,a=new Int32Array(t.MAX_NUMERIC_CODEWORDS);while(r0&&(n.append(t.decodeBase900toBase10(a,o)),o=0)}return r},t.decodeBase900toBase10=function(e,r){for(var n=Z(0),o=0;o@[\\]_`~!\r\t,:\n-.$/\"|*()?{}'",t.MIXED_CHARS="0123456789&\r\t,:#-.$/+%*=^",t.EXP900=N()?D():[],t.NUMBER_OF_SEQUENCE_CODEWORDS=2,t}(),P=M},14368:function(t,e,r){r.d(e,{Z:function(){return _}});r(23767),r(8585),r(68696);var n=r(85777),o=r(96148),i=r(98090),a=r(36845),s=function(t){var e="function"===typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},u=function(){function t(t,e){if(0===e.length)throw new o.Z;this.field=t;var r=e.length;if(r>1&&0===e[0]){var n=1;while(nn.length){var a=r;r=n,n=a}var s=new Int32Array(n.length),u=n.length-r.length;i.Z.arraycopy(n,0,s,0,u);for(var c=u;c=0;e--){var r=this.getCoefficient(e);0!==r&&(r<0?(t.append(" - "),r=-r):t.length()>0&&t.append(" + "),0!==e&&1===r||t.append(r),0!==e&&(1===e?t.append("x"):(t.append("x^"),t.append(e))))}return t.toString()},t}(),c=u,h=r(18501),f=r(6744),l=function(){function t(){}return t.prototype.add=function(t,e){return(t+e)%this.modulus},t.prototype.subtract=function(t,e){return(this.modulus+t-e)%this.modulus},t.prototype.exp=function(t){return this.expTable[t]},t.prototype.log=function(t){if(0===t)throw new o.Z;return this.logTable[t]},t.prototype.inverse=function(t){if(0===t)throw new f.Z;return this.expTable[this.modulus-this.logTable[t]-1]},t.prototype.multiply=function(t,e){return 0===t||0===e?0:this.expTable[(this.logTable[t]+this.logTable[e])%(this.modulus-1)]},t.prototype.getSize=function(){return this.modulus},t.prototype.equals=function(t){return t===this},t}(),d=l,p=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),g=function(t){function e(e,r){var n=t.call(this)||this;n.modulus=e,n.expTable=new Int32Array(e),n.logTable=new Int32Array(e);for(var o=1,i=0;i=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},v=function(){function t(){this.field=w.PDF417_GF}return t.prototype.decode=function(t,e,r){for(var o,i,a=new c(this.field,t),s=new Int32Array(e),u=!1,h=e;h>0;h--){var f=a.evaluateAt(this.field.exp(h));s[e-h]=f,0!==f&&(u=!0)}if(!u)return 0;var l=this.field.getOne();if(null!=r)try{for(var d=y(r),p=d.next();!p.done;p=d.next()){var g=p.value,w=this.field.exp(t.length-1-g),v=new c(this.field,new Int32Array([this.field.subtract(0,w),1]));l=l.multiply(v)}}catch(T){o={error:T}}finally{try{p&&!p.done&&(i=d.return)&&i.call(d)}finally{if(o)throw o.error}}var _=new c(this.field,s),C=this.runEuclideanAlgorithm(this.field.buildMonomial(e,1),_,e),A=C[0],m=C[1],E=this.findErrorLocations(A),I=this.findErrorMagnitudes(m,A,E);for(h=0;h=Math.round(r/2)){var c=i,h=s;if(i=a,s=u,i.isZero())throw n.Z.getChecksumInstance();a=c;var f=this.field.getZero(),l=i.getCoefficient(i.getDegree()),d=this.field.inverse(l);while(a.getDegree()>=i.getDegree()&&!a.isZero()){var p=a.getDegree()-i.getDegree(),g=this.field.multiply(a.getCoefficient(a.getDegree()),d);f=f.add(this.field.buildMonomial(p,g)),a=a.subtract(i.multiplyByMonomial(p,g))}u=f.multiply(s).subtract(h).negative()}var w=u.getCoefficient(0);if(0===w)throw n.Z.getChecksumInstance();var y=this.field.inverse(w),v=u.multiply(y),_=a.multiply(y);return[v,_]},t.prototype.findErrorLocations=function(t){for(var e=t.getDegree(),r=new Int32Array(e),o=0,i=1;i=0;r--)t=this.copyBit(8,r,t);var n=this.bitMatrix.getHeight(),o=0,i=n-7;for(r=n-1;r>=i;r--)o=this.copyBit(8,r,o);for(e=n-8;e=0;o--)for(var i=t-9;i>=n;i--)r=this.copyBit(i,o,r);var a=l.Z.decodeVersionInformation(r);if(null!==a&&a.getDimensionForVersion()===t)return this.parsedVersion=a,a;r=0;for(i=5;i>=0;i--)for(o=t-9;o>=n;o--)r=this.copyBit(i,o,r);if(a=l.Z.decodeVersionInformation(r),null!==a&&a.getDimensionForVersion()===t)return this.parsedVersion=a,a;throw new g.Z},t.prototype.copyBit=function(t,e,r){var n=this.isMirror?this.bitMatrix.get(e,t):this.bitMatrix.get(t,e);return n?r<<1|1:r<<1},t.prototype.readCodewords=function(){var t=this.readFormatInformation(),e=this.readVersion(),r=p.Z.values.get(t.getDataMask()),n=this.bitMatrix.getHeight();r.unmaskBitMatrix(this.bitMatrix,n);for(var o=e.buildFunctionPattern(),i=!0,a=new Uint8Array(e.getTotalCodewords()),s=0,u=0,c=0,h=n-1;h>0;h-=2){6===h&&h--;for(var f=0;f=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},C=function(){function t(t,e){this.numDataCodewords=t,this.codewords=e}return t.getDataBlocks=function(e,r,n){var o,i,a,s;if(e.length!==r.getTotalCodewords())throw new v.Z;var u=r.getECBlocksForLevel(n),c=0,h=u.getECBlocks();try{for(var f=_(h),l=f.next();!l.done;l=f.next()){var d=l.value;c+=d.getCount()}}catch(Z){o={error:Z}}finally{try{l&&!l.done&&(i=f.return)&&i.call(f)}finally{if(o)throw o.error}}var p=new Array(c),g=0;try{for(var w=_(h),y=w.next();!y.done;y=w.next()){d=y.value;for(var C=0;C=0){var S=p[I].codewords.length;if(S===E)break;I--}I++;var T=E-u.getECCodewordsPerBlock(),b=0;for(C=0;C=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},T=function(){function t(){this.rsDecoder=new f.Z(h.Z.QR_CODE_FIELD_256)}return t.prototype.decodeBooleanArray=function(t,e){return this.decodeBitMatrix(o.Z.parseFromBooleanArray(t),e)},t.prototype.decodeBitMatrix=function(t,e){var r=new y(t),n=null;try{return this.decodeBitMatrixParser(r,e)}catch(i){n=i}try{r.remask(),r.setMirror(!0),r.readVersion(),r.readFormatInformation(),r.mirror();var o=this.decodeBitMatrixParser(r,e);return o.setOther(new I(!0)),o}catch(i){if(null!==n)throw n;throw i}},t.prototype.decodeBitMatrixParser=function(t,e){var r,n,o,i,a=t.readVersion(),s=t.readFormatInformation().getErrorCorrectionLevel(),u=t.readCodewords(),c=A.getDataBlocks(u,a,s),h=0;try{for(var f=S(c),l=f.next();!l.done;l=f.next()){var d=l.value;h+=d.getNumDataCodewords()}}catch(E){r={error:E}}finally{try{l&&!l.done&&(n=f.return)&&n.call(f)}finally{if(r)throw r.error}}var p=new Uint8Array(h),g=0;try{for(var w=S(c),y=w.next();!y.done;y=w.next()){d=y.value;var v=d.getCodewords(),_=d.getNumDataCodewords();this.correctErrors(v,_);for(var C=0;C<_;C++)p[g++]=v[C]}}catch(I){o={error:I}}finally{try{y&&!y.done&&(i=w.return)&&i.call(w)}finally{if(o)throw o.error}}return m.Z.decode(p,a,s,e)},t.prototype.correctErrors=function(t,e){var r=new Int32Array(t);try{this.rsDecoder.decode(r,t.length-e)}catch(o){throw new c.Z}for(var n=0;n=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},F=function(){function t(t,e,r,n,o,i,a){this.image=t,this.startX=e,this.startY=r,this.width=n,this.height=o,this.moduleSize=i,this.resultPointCallback=a,this.possibleCenters=[],this.crossCheckStateCount=new Int32Array(3)}return t.prototype.find=function(){for(var t=this.startX,e=this.height,r=this.width,n=t+r,o=this.startY+e/2,i=new Int32Array(3),s=this.image,u=0;u=r)return!1;return!0},t.prototype.crossCheckVertical=function(e,r,n,o){var i=this.image,a=i.getHeight(),s=this.crossCheckStateCount;s[0]=0,s[1]=0,s[2]=0;var u=e;while(u>=0&&i.get(r,u)&&s[1]<=n)s[1]++,u--;if(u<0||s[1]>n)return NaN;while(u>=0&&!i.get(r,u)&&s[0]<=n)s[0]++,u--;if(s[0]>n)return NaN;u=e+1;while(un)return NaN;while(un)return NaN;var c=s[0]+s[1]+s[2];return 5*Math.abs(c-o)>=2*o?NaN:this.foundPatternCross(s)?t.centerFromEnd(s,u):NaN},t.prototype.handlePossibleCenter=function(e,r,n){var o,i,a=e[0]+e[1]+e[2],s=t.centerFromEnd(e,n),u=this.crossCheckVertical(r,s,2*e[1],a);if(!isNaN(u)){var c=(e[0]+e[1]+e[2])/3;try{for(var h=L(this.possibleCenters),f=h.next();!f.done;f=h.next()){var l=f.value;if(l.aboutEquals(c,u,s))return l.combineEstimate(u,s,c)}}catch(p){o={error:p}}finally{try{f&&!f.done&&(i=h.return)&&i.call(h)}finally{if(o)throw o.error}}var d=new B(s,u,c);this.possibleCenters.push(d),null!==this.resultPointCallback&&void 0!==this.resultPointCallback&&this.resultPointCallback.foundPossibleResultPoint(d)}return null},t}(),x=F,k=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),V=function(t){function e(e,r,n,o){var i=t.call(this,e,r)||this;return i.estimatedModuleSize=n,i.count=o,void 0===o&&(i.count=1),i}return k(e,t),e.prototype.getEstimatedModuleSize=function(){return this.estimatedModuleSize},e.prototype.getCount=function(){return this.count},e.prototype.aboutEquals=function(t,e,r){if(Math.abs(e-this.getY())<=t&&Math.abs(r-this.getX())<=t){var n=Math.abs(t-this.estimatedModuleSize);return n<=1||n<=this.estimatedModuleSize}return!1},e.prototype.combineEstimate=function(t,r,n){var o=this.count+1,i=(this.count*this.getX()+r)/o,a=(this.count*this.getY()+t)/o,s=(this.count*this.estimatedModuleSize+n)/o;return new e(i,a,s,o)},e}(D.Z),U=V,H=function(){function t(t){this.bottomLeft=t[0],this.topLeft=t[1],this.topRight=t[2]}return t.prototype.getBottomLeft=function(){return this.bottomLeft},t.prototype.getTopLeft=function(){return this.topLeft},t.prototype.getTopRight=function(){return this.topRight},t}(),X=H,G=function(t){var e="function"===typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},W=function(){function t(t,e){this.image=t,this.resultPointCallback=e,this.possibleCenters=[],this.crossCheckStateCount=new Int32Array(5),this.resultPointCallback=e}return t.prototype.getImage=function(){return this.image},t.prototype.getPossibleCenters=function(){return this.possibleCenters},t.prototype.find=function(e){var r=null!==e&&void 0!==e&&void 0!==e.get(i.Z.TRY_HARDER),n=null!==e&&void 0!==e&&void 0!==e.get(i.Z.PURE_BARCODE),o=this.image,a=o.getHeight(),s=o.getWidth(),u=Math.floor(3*a/(4*t.MAX_MODULES));(uh[2]&&(f+=g-h[2]-u,d=s-1)}l=0,h[0]=0,h[1]=0,h[2]=0,h[3]=0,h[4]=0}else h[0]=h[2],h[1]=h[3],h[2]=h[4],h[3]=1,h[4]=0,l=3;else h[++l]++;else h[l]++;if(t.foundPatternCross(h)){p=this.handlePossibleCenter(h,f,s,n);!0===p&&(u=h[0],this.hasSkipped&&(c=this.haveMultiplyConfirmedCenters()))}}var w=this.selectBestPatterns();return D.Z.orderBestPatterns(w),new X(w)},t.centerFromEnd=function(t,e){return e-t[4]-t[3]-t[2]/2},t.foundPatternCross=function(t){for(var e=0,r=0;r<5;r++){var n=t[r];if(0===n)return!1;e+=n}if(e<7)return!1;var o=e/7,i=o/2;return Math.abs(o-t[0])=a&&r>=a&&s.get(r-a,e-a))i[2]++,a++;if(e=a&&r>=a&&!s.get(r-a,e-a)&&i[1]<=n)i[1]++,a++;if(en)return!1;while(e>=a&&r>=a&&s.get(r-a,e-a)&&i[0]<=n)i[0]++,a++;if(i[0]>n)return!1;var u=s.getHeight(),c=s.getWidth();a=1;while(e+a=u||r+a>=c)return!1;while(e+a=u||r+a>=c||i[3]>=n)return!1;while(e+a=n)return!1;var h=i[0]+i[1]+i[2]+i[3]+i[4];return Math.abs(h-o)<2*o&&t.foundPatternCross(i)},t.prototype.crossCheckVertical=function(e,r,n,o){var i=this.image,a=i.getHeight(),s=this.getCrossCheckStateCount(),u=e;while(u>=0&&i.get(r,u))s[2]++,u--;if(u<0)return NaN;while(u>=0&&!i.get(r,u)&&s[1]<=n)s[1]++,u--;if(u<0||s[1]>n)return NaN;while(u>=0&&i.get(r,u)&&s[0]<=n)s[0]++,u--;if(s[0]>n)return NaN;u=e+1;while(u=n)return NaN;while(u=n)return NaN;var c=s[0]+s[1]+s[2]+s[3]+s[4];return 5*Math.abs(c-o)>=2*o?NaN:t.foundPatternCross(s)?t.centerFromEnd(s,u):NaN},t.prototype.crossCheckHorizontal=function(e,r,n,o){var i=this.image,a=i.getWidth(),s=this.getCrossCheckStateCount(),u=e;while(u>=0&&i.get(u,r))s[2]++,u--;if(u<0)return NaN;while(u>=0&&!i.get(u,r)&&s[1]<=n)s[1]++,u--;if(u<0||s[1]>n)return NaN;while(u>=0&&i.get(u,r)&&s[0]<=n)s[0]++,u--;if(s[0]>n)return NaN;u=e+1;while(u=n)return NaN;while(u=n)return NaN;var c=s[0]+s[1]+s[2]+s[3]+s[4];return 5*Math.abs(c-o)>=o?NaN:t.foundPatternCross(s)?t.centerFromEnd(s,u):NaN},t.prototype.handlePossibleCenter=function(e,r,n,o){var i=e[0]+e[1]+e[2]+e[3]+e[4],a=t.centerFromEnd(e,n),s=this.crossCheckVertical(r,Math.floor(a),e[2],i);if(!isNaN(s)&&(a=this.crossCheckHorizontal(Math.floor(a),Math.floor(s),e[2],i),!isNaN(a)&&(!o||this.crossCheckDiagonal(Math.floor(s),Math.floor(a),e[2],i)))){for(var u=i/7,c=!1,h=this.possibleCenters,f=0,l=h.length;f=t.CENTER_QUORUM){if(null!=o)return this.hasSkipped=!0,Math.floor((Math.abs(o.getX()-s.getX())-Math.abs(o.getY()-s.getY()))/2);o=s}}}catch(u){e={error:u}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}return 0},t.prototype.haveMultiplyConfirmedCenters=function(){var e,r,n,o,i=0,a=0,s=this.possibleCenters.length;try{for(var u=G(this.possibleCenters),c=u.next();!c.done;c=u.next()){var h=c.value;h.getCount()>=t.CENTER_QUORUM&&(i++,a+=h.getEstimatedModuleSize())}}catch(g){e={error:g}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(e)throw e.error}}if(i<3)return!1;var f=a/s,l=0;try{for(var d=G(this.possibleCenters),p=d.next();!p.done;p=d.next()){h=p.value;l+=Math.abs(h.getEstimatedModuleSize()-f)}}catch(w){n={error:w}}finally{try{p&&!p.done&&(o=d.return)&&o.call(d)}finally{if(n)throw n.error}}return l<=.05*a},t.prototype.selectBestPatterns=function(){var t,e,r,n,o=this.possibleCenters.length;if(o<3)throw new a.Z;var i,s=this.possibleCenters;if(o>3){var u=0,c=0;try{for(var h=G(this.possibleCenters),f=h.next();!f.done;f=h.next()){var l=f.value,d=l.getEstimatedModuleSize();u+=d,c+=d*d}}catch(A){t={error:A}}finally{try{f&&!f.done&&(e=h.return)&&e.call(h)}finally{if(t)throw t.error}}i=u/o;var p=Math.sqrt(c/o-i*i);s.sort((function(t,e){var r=Math.abs(e.getEstimatedModuleSize()-i),n=Math.abs(t.getEstimatedModuleSize()-i);return rn?1:0}));for(var g=Math.max(.2*i,p),w=0;w3;w++){var y=s[w];Math.abs(y.getEstimatedModuleSize()-i)>g&&(s.splice(w,1),w--)}}if(s.length>3){u=0;try{for(var v=G(s),_=v.next();!_.done;_=v.next()){var C=_.value;u+=C.getEstimatedModuleSize()}}catch(m){r={error:m}}finally{try{_&&!_.done&&(n=v.return)&&n.call(v)}finally{if(r)throw r.error}}i=u/s.length,s.sort((function(t,e){if(e.getCount()===t.getCount()){var r=Math.abs(e.getEstimatedModuleSize()-i),n=Math.abs(t.getEstimatedModuleSize()-i);return rn?-1:0}return e.getCount()-t.getCount()})),s.splice(3)}return[s[0],s[1],s[2]]},t.CENTER_QUORUM=2,t.MIN_SKIP=3,t.MAX_MODULES=57,t}(),z=W,j=function(){function t(t){this.image=t}return t.prototype.getImage=function(){return this.image},t.prototype.getResultPointCallback=function(){return this.resultPointCallback},t.prototype.detect=function(t){this.resultPointCallback=null===t||void 0===t?null:t.get(i.Z.NEED_RESULT_POINT_CALLBACK);var e=new z(this.image,this.resultPointCallback),r=e.find(t);return this.processFinderPatternInfo(r)},t.prototype.processFinderPatternInfo=function(e){var r=e.getTopLeft(),n=e.getTopRight(),o=e.getBottomLeft(),i=this.calculateModuleSize(r,n,o);if(i<1)throw new a.Z("No pattern found in proccess finder.");var s=t.computeDimension(r,n,o,i),u=l.Z.getProvisionalVersionForDimension(s),c=u.getDimensionForVersion()-7,h=null;if(u.getAlignmentPatternCenters().length>0)for(var f=n.getX()-r.getX()+o.getX(),d=n.getY()-r.getY()+o.getY(),p=1-3/c,g=Math.floor(r.getX()+p*(f-r.getX())),w=Math.floor(r.getY()+p*(d-r.getY())),y=4;y<=16;y<<=1)try{h=this.findAlignmentInRegion(i,g,w,y);break}catch(A){if(!(A instanceof a.Z))throw A}var v,_=t.createTransform(r,n,o,h,s),C=t.sampleGrid(this.image,_,s);return v=null===h?[o,r,n]:[o,r,n,h],new R.Z(C,v)},t.createTransform=function(t,e,r,n,o){var i,a,s,u,c=o-3.5;return null!==n?(i=n.getX(),a=n.getY(),s=c-3,u=s):(i=e.getX()-t.getX()+r.getX(),a=e.getY()-t.getY()+r.getY(),s=c,u=c),Z.Z.quadrilateralToQuadrilateral(3.5,3.5,c,3.5,s,u,3.5,c,t.getX(),t.getY(),e.getX(),e.getY(),i,a,r.getX(),r.getY())},t.sampleGrid=function(t,e,r){var n=N.Z.getInstance();return n.sampleGridWithTransform(t,r,r,e)},t.computeDimension=function(t,e,r,n){var o=O.Z.round(D.Z.distance(t,e)/n),i=O.Z.round(D.Z.distance(t,r)/n),s=Math.floor((o+i)/2)+7;switch(3&s){case 0:s++;break;case 2:s--;break;case 3:throw new a.Z("Dimensions could be not found.")}return s},t.prototype.calculateModuleSize=function(t,e,r){return(this.calculateModuleSizeOneWay(t,e)+this.calculateModuleSizeOneWay(t,r))/2},t.prototype.calculateModuleSizeOneWay=function(t,e){var r=this.sizeOfBlackWhiteBlackRunBothWays(Math.floor(t.getX()),Math.floor(t.getY()),Math.floor(e.getX()),Math.floor(e.getY())),n=this.sizeOfBlackWhiteBlackRunBothWays(Math.floor(e.getX()),Math.floor(e.getY()),Math.floor(t.getX()),Math.floor(t.getY()));return isNaN(r)?n/7:isNaN(n)?r/7:(r+n)/14},t.prototype.sizeOfBlackWhiteBlackRunBothWays=function(t,e,r,n){var o=this.sizeOfBlackWhiteBlackRun(t,e,r,n),i=1,a=t-(r-t);a<0?(i=t/(t-a),a=0):a>=this.image.getWidth()&&(i=(this.image.getWidth()-1-t)/(a-t),a=this.image.getWidth()-1);var s=Math.floor(e-(n-e)*i);return i=1,s<0?(i=e/(e-s),s=0):s>=this.image.getHeight()&&(i=(this.image.getHeight()-1-e)/(s-e),s=this.image.getHeight()-1),a=Math.floor(t+(a-t)*i),o+=this.sizeOfBlackWhiteBlackRun(t,e,a,s),o-1},t.prototype.sizeOfBlackWhiteBlackRun=function(t,e,r,n){var o=Math.abs(n-e)>Math.abs(r-t);if(o){var i=t;t=e,e=i,i=r,r=n,n=i}for(var a=Math.abs(r-t),s=Math.abs(n-e),u=-a/2,c=t0){if(p===n)break;p+=h,u-=a}}return 2===f?O.Z.distance(r+c,n,t,e):NaN},t.prototype.findAlignmentInRegion=function(t,e,r,n){var o=Math.floor(n*t),i=Math.max(0,e-o),s=Math.min(this.image.getWidth()-1,e+o);if(s-i<3*t)throw new a.Z("Alignment top exceeds estimated module size.");var u=Math.max(0,r-o),c=Math.min(this.image.getHeight()-1,r+o);if(c-u<3*t)throw new a.Z("Alignment bottom exceeds estimated module size.");var h=new x(this.image,i,u,s-i,c-u,t,this.resultPointCallback);return h.find()},t}(),Y=j,K=function(){function t(){this.decoder=new b}return t.prototype.getDecoder=function(){return this.decoder},t.prototype.decode=function(e,r){var o,a;if(void 0!==r&&null!==r&&void 0!==r.get(i.Z.PURE_BARCODE)){var c=t.extractPureBits(e.getBlackMatrix());o=this.decoder.decodeBitMatrix(c,r),a=t.NO_POINTS}else{var h=new Y(e.getBlackMatrix()).detect(r);o=this.decoder.decodeBitMatrix(h.getBits(),r),a=h.getPoints()}o.getOther()instanceof I&&o.getOther().applyMirroredCorrection(a);var f=new s.Z(o.getText(),o.getRawBytes(),void 0,a,n.Z.QR_CODE,void 0),l=o.getByteSegments();null!==l&&f.putMetadata(u.Z.BYTE_SEGMENTS,l);var d=o.getECLevel();return null!==d&&f.putMetadata(u.Z.ERROR_CORRECTION_LEVEL,d),o.hasStructuredAppend()&&(f.putMetadata(u.Z.STRUCTURED_APPEND_SEQUENCE,o.getStructuredAppendSequenceNumber()),f.putMetadata(u.Z.STRUCTURED_APPEND_PARITY,o.getStructuredAppendParity())),f},t.prototype.reset=function(){},t.extractPureBits=function(t){var e=t.getTopLeftOnBit(),r=t.getBottomRightOnBit();if(null===e||null===r)throw new a.Z;var n=this.moduleSize(e,t),i=e[1],s=r[1],u=e[0],c=r[0];if(u>=c||i>=s)throw new a.Z;if(s-i!==c-u&&(c=u+(s-i),c>=t.getWidth()))throw new a.Z;var h=Math.round((c-u+1)/n),f=Math.round((s-i+1)/n);if(h<=0||f<=0)throw new a.Z;if(f!==h)throw new a.Z;var l=Math.floor(n/2);i+=l,u+=l;var d=u+Math.floor((h-1)*n)-c;if(d>0){if(d>l)throw new a.Z;u-=d}var p=i+Math.floor((f-1)*n)-s;if(p>0){if(p>l)throw new a.Z;i-=p}for(var g=new o.Z(h,f),w=0;wt.available())throw new s.Z;var n=new Uint8Array(2*r),o=0;while(r>0){var i=t.readBits(13),u=i/96<<8&4294967295|i%96;u+=u<959?41377:42657,n[o]=u>>8&255,n[o+1]=255&u,o+=2,r--}try{e.append(c.Z.decode(n,a.Z.GB2312))}catch(h){throw new s.Z(h)}},t.decodeKanjiSegment=function(t,e,r){if(13*r>t.available())throw new s.Z;var n=new Uint8Array(2*r),o=0;while(r>0){var i=t.readBits(13),u=i/192<<8&4294967295|i%192;u+=u<7936?33088:49472,n[o]=u>>8,n[o+1]=u,o+=2,r--}try{e.append(c.Z.decode(n,a.Z.SHIFT_JIS))}catch(h){throw new s.Z(h)}},t.decodeByteSegment=function(t,e,r,n,o,i){if(8*r>t.available())throw new s.Z;for(var u,h=new Uint8Array(r),f=0;f=t.ALPHANUMERIC_CHARS.length)throw new s.Z;return t.ALPHANUMERIC_CHARS[e]},t.decodeAlphanumericSegment=function(e,r,n,o){var i=r.length();while(n>1){if(e.available()<11)throw new s.Z;var a=e.readBits(11);r.append(t.toAlphaNumericChar(Math.floor(a/45))),r.append(t.toAlphaNumericChar(a%45)),n-=2}if(1===n){if(e.available()<6)throw new s.Z;r.append(t.toAlphaNumericChar(e.readBits(6)))}if(o)for(var u=i;u=3){if(e.available()<10)throw new s.Z;var o=e.readBits(10);if(o>=1e3)throw new s.Z;r.append(t.toAlphaNumericChar(Math.floor(o/100))),r.append(t.toAlphaNumericChar(Math.floor(o/10)%10)),r.append(t.toAlphaNumericChar(o%10)),n-=3}if(2===n){if(e.available()<7)throw new s.Z;var i=e.readBits(7);if(i>=100)throw new s.Z;r.append(t.toAlphaNumericChar(Math.floor(i/10))),r.append(t.toAlphaNumericChar(i%10))}else if(1===n){if(e.available()<4)throw new s.Z;var a=e.readBits(4);if(a>=10)throw new s.Z;r.append(t.toAlphaNumericChar(a))}},t.parseECIValue=function(t){var e=t.readBits(8);if(0===(128&e))return 127&e;if(128===(192&e)){var r=t.readBits(8);return(63&e)<<8&4294967295|r}if(192===(224&e)){var n=t.readBits(16);return(31&e)<<16&4294967295|n}throw new s.Z},t.ALPHANUMERIC_CHARS="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",t.GB2312_SUBSET=1,t}();e["Z"]=f},93782:function(t,e,r){var n,o=r(66704),i=r(96148);(function(t){t[t["L"]=0]="L",t[t["M"]=1]="M",t[t["Q"]=2]="Q",t[t["H"]=3]="H"})(n||(n={}));var a=function(){function t(e,r,n){this.value=e,this.stringValue=r,this.bits=n,t.FOR_BITS.set(n,this),t.FOR_VALUE.set(e,this)}return t.prototype.getValue=function(){return this.value},t.prototype.getBits=function(){return this.bits},t.fromString=function(e){switch(e){case"L":return t.L;case"M":return t.M;case"Q":return t.Q;case"H":return t.H;default:throw new o.Z(e+"not available")}},t.prototype.toString=function(){return this.stringValue},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var r=e;return this.value===r.value},t.forBits=function(e){if(e<0||e>=t.FOR_BITS.size)throw new i.Z;return t.FOR_BITS.get(e)},t.FOR_BITS=new Map,t.FOR_VALUE=new Map,t.L=new t(n.L,"L",1),t.M=new t(n.M,"M",0),t.Q=new t(n.Q,"Q",3),t.H=new t(n.H,"H",2),t}();e["Z"]=a},43880:function(t,e,r){r(23767),r(8585),r(68696);var n=r(93782),o=r(87489),i=function(t){var e="function"===typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},a=function(){function t(t){this.errorCorrectionLevel=n.Z.forBits(t>>3&3),this.dataMask=7&t}return t.numBitsDiffering=function(t,e){return o.Z.bitCount(t^e)},t.decodeFormatInformation=function(e,r){var n=t.doDecodeFormatInformation(e,r);return null!==n?n:t.doDecodeFormatInformation(e^t.FORMAT_INFO_MASK_QR,r^t.FORMAT_INFO_MASK_QR)},t.doDecodeFormatInformation=function(e,r){var n,o,a=Number.MAX_SAFE_INTEGER,s=0;try{for(var u=i(t.FORMAT_INFO_DECODE_LOOKUP),c=u.next();!c.done;c=u.next()){var h=c.value,f=h[0];if(f===e||f===r)return new t(h[1]);var l=t.numBitsDiffering(e,f);l=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},a=function(){function t(t){for(var e=[],r=1;r=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},d=function(){function t(t,e){for(var r,n,o=[],i=2;i40)throw new f.Z;return t.VERSIONS[e-1]},t.decodeVersionInformation=function(e){for(var r=Number.MAX_SAFE_INTEGER,n=0,i=0;i6&&(e.setRegion(t-11,0,3,6),e.setRegion(0,t-11,6,3)),e},t.prototype.toString=function(){return""+this.versionNumber},t.VERSION_DECODE_INFO=Int32Array.from([31892,34236,39577,42195,48118,51042,55367,58893,63784,68472,70749,76311,79154,84390,87683,92361,96236,102084,102881,110507,110734,117786,119615,126325,127568,133589,136944,141498,145311,150283,152622,158308,161089,167017]),t.VERSIONS=[new t(1,new Int32Array(0),new s(7,new c(1,19)),new s(10,new c(1,16)),new s(13,new c(1,13)),new s(17,new c(1,9))),new t(2,Int32Array.from([6,18]),new s(10,new c(1,34)),new s(16,new c(1,28)),new s(22,new c(1,22)),new s(28,new c(1,16))),new t(3,Int32Array.from([6,22]),new s(15,new c(1,55)),new s(26,new c(1,44)),new s(18,new c(2,17)),new s(22,new c(2,13))),new t(4,Int32Array.from([6,26]),new s(20,new c(1,80)),new s(18,new c(2,32)),new s(26,new c(2,24)),new s(16,new c(4,9))),new t(5,Int32Array.from([6,30]),new s(26,new c(1,108)),new s(24,new c(2,43)),new s(18,new c(2,15),new c(2,16)),new s(22,new c(2,11),new c(2,12))),new t(6,Int32Array.from([6,34]),new s(18,new c(2,68)),new s(16,new c(4,27)),new s(24,new c(4,19)),new s(28,new c(4,15))),new t(7,Int32Array.from([6,22,38]),new s(20,new c(2,78)),new s(18,new c(4,31)),new s(18,new c(2,14),new c(4,15)),new s(26,new c(4,13),new c(1,14))),new t(8,Int32Array.from([6,24,42]),new s(24,new c(2,97)),new s(22,new c(2,38),new c(2,39)),new s(22,new c(4,18),new c(2,19)),new s(26,new c(4,14),new c(2,15))),new t(9,Int32Array.from([6,26,46]),new s(30,new c(2,116)),new s(22,new c(3,36),new c(2,37)),new s(20,new c(4,16),new c(4,17)),new s(24,new c(4,12),new c(4,13))),new t(10,Int32Array.from([6,28,50]),new s(18,new c(2,68),new c(2,69)),new s(26,new c(4,43),new c(1,44)),new s(24,new c(6,19),new c(2,20)),new s(28,new c(6,15),new c(2,16))),new t(11,Int32Array.from([6,30,54]),new s(20,new c(4,81)),new s(30,new c(1,50),new c(4,51)),new s(28,new c(4,22),new c(4,23)),new s(24,new c(3,12),new c(8,13))),new t(12,Int32Array.from([6,32,58]),new s(24,new c(2,92),new c(2,93)),new s(22,new c(6,36),new c(2,37)),new s(26,new c(4,20),new c(6,21)),new s(28,new c(7,14),new c(4,15))),new t(13,Int32Array.from([6,34,62]),new s(26,new c(4,107)),new s(22,new c(8,37),new c(1,38)),new s(24,new c(8,20),new c(4,21)),new s(22,new c(12,11),new c(4,12))),new t(14,Int32Array.from([6,26,46,66]),new s(30,new c(3,115),new c(1,116)),new s(24,new c(4,40),new c(5,41)),new s(20,new c(11,16),new c(5,17)),new s(24,new c(11,12),new c(5,13))),new t(15,Int32Array.from([6,26,48,70]),new s(22,new c(5,87),new c(1,88)),new s(24,new c(5,41),new c(5,42)),new s(30,new c(5,24),new c(7,25)),new s(24,new c(11,12),new c(7,13))),new t(16,Int32Array.from([6,26,50,74]),new s(24,new c(5,98),new c(1,99)),new s(28,new c(7,45),new c(3,46)),new s(24,new c(15,19),new c(2,20)),new s(30,new c(3,15),new c(13,16))),new t(17,Int32Array.from([6,30,54,78]),new s(28,new c(1,107),new c(5,108)),new s(28,new c(10,46),new c(1,47)),new s(28,new c(1,22),new c(15,23)),new s(28,new c(2,14),new c(17,15))),new t(18,Int32Array.from([6,30,56,82]),new s(30,new c(5,120),new c(1,121)),new s(26,new c(9,43),new c(4,44)),new s(28,new c(17,22),new c(1,23)),new s(28,new c(2,14),new c(19,15))),new t(19,Int32Array.from([6,30,58,86]),new s(28,new c(3,113),new c(4,114)),new s(26,new c(3,44),new c(11,45)),new s(26,new c(17,21),new c(4,22)),new s(26,new c(9,13),new c(16,14))),new t(20,Int32Array.from([6,34,62,90]),new s(28,new c(3,107),new c(5,108)),new s(26,new c(3,41),new c(13,42)),new s(30,new c(15,24),new c(5,25)),new s(28,new c(15,15),new c(10,16))),new t(21,Int32Array.from([6,28,50,72,94]),new s(28,new c(4,116),new c(4,117)),new s(26,new c(17,42)),new s(28,new c(17,22),new c(6,23)),new s(30,new c(19,16),new c(6,17))),new t(22,Int32Array.from([6,26,50,74,98]),new s(28,new c(2,111),new c(7,112)),new s(28,new c(17,46)),new s(30,new c(7,24),new c(16,25)),new s(24,new c(34,13))),new t(23,Int32Array.from([6,30,54,78,102]),new s(30,new c(4,121),new c(5,122)),new s(28,new c(4,47),new c(14,48)),new s(30,new c(11,24),new c(14,25)),new s(30,new c(16,15),new c(14,16))),new t(24,Int32Array.from([6,28,54,80,106]),new s(30,new c(6,117),new c(4,118)),new s(28,new c(6,45),new c(14,46)),new s(30,new c(11,24),new c(16,25)),new s(30,new c(30,16),new c(2,17))),new t(25,Int32Array.from([6,32,58,84,110]),new s(26,new c(8,106),new c(4,107)),new s(28,new c(8,47),new c(13,48)),new s(30,new c(7,24),new c(22,25)),new s(30,new c(22,15),new c(13,16))),new t(26,Int32Array.from([6,30,58,86,114]),new s(28,new c(10,114),new c(2,115)),new s(28,new c(19,46),new c(4,47)),new s(28,new c(28,22),new c(6,23)),new s(30,new c(33,16),new c(4,17))),new t(27,Int32Array.from([6,34,62,90,118]),new s(30,new c(8,122),new c(4,123)),new s(28,new c(22,45),new c(3,46)),new s(30,new c(8,23),new c(26,24)),new s(30,new c(12,15),new c(28,16))),new t(28,Int32Array.from([6,26,50,74,98,122]),new s(30,new c(3,117),new c(10,118)),new s(28,new c(3,45),new c(23,46)),new s(30,new c(4,24),new c(31,25)),new s(30,new c(11,15),new c(31,16))),new t(29,Int32Array.from([6,30,54,78,102,126]),new s(30,new c(7,116),new c(7,117)),new s(28,new c(21,45),new c(7,46)),new s(30,new c(1,23),new c(37,24)),new s(30,new c(19,15),new c(26,16))),new t(30,Int32Array.from([6,26,52,78,104,130]),new s(30,new c(5,115),new c(10,116)),new s(28,new c(19,47),new c(10,48)),new s(30,new c(15,24),new c(25,25)),new s(30,new c(23,15),new c(25,16))),new t(31,Int32Array.from([6,30,56,82,108,134]),new s(30,new c(13,115),new c(3,116)),new s(28,new c(2,46),new c(29,47)),new s(30,new c(42,24),new c(1,25)),new s(30,new c(23,15),new c(28,16))),new t(32,Int32Array.from([6,34,60,86,112,138]),new s(30,new c(17,115)),new s(28,new c(10,46),new c(23,47)),new s(30,new c(10,24),new c(35,25)),new s(30,new c(19,15),new c(35,16))),new t(33,Int32Array.from([6,30,58,86,114,142]),new s(30,new c(17,115),new c(1,116)),new s(28,new c(14,46),new c(21,47)),new s(30,new c(29,24),new c(19,25)),new s(30,new c(11,15),new c(46,16))),new t(34,Int32Array.from([6,34,62,90,118,146]),new s(30,new c(13,115),new c(6,116)),new s(28,new c(14,46),new c(23,47)),new s(30,new c(44,24),new c(7,25)),new s(30,new c(59,16),new c(1,17))),new t(35,Int32Array.from([6,30,54,78,102,126,150]),new s(30,new c(12,121),new c(7,122)),new s(28,new c(12,47),new c(26,48)),new s(30,new c(39,24),new c(14,25)),new s(30,new c(22,15),new c(41,16))),new t(36,Int32Array.from([6,24,50,76,102,128,154]),new s(30,new c(6,121),new c(14,122)),new s(28,new c(6,47),new c(34,48)),new s(30,new c(46,24),new c(10,25)),new s(30,new c(2,15),new c(64,16))),new t(37,Int32Array.from([6,28,54,80,106,132,158]),new s(30,new c(17,122),new c(4,123)),new s(28,new c(29,46),new c(14,47)),new s(30,new c(49,24),new c(10,25)),new s(30,new c(24,15),new c(46,16))),new t(38,Int32Array.from([6,32,58,84,110,136,162]),new s(30,new c(4,122),new c(18,123)),new s(28,new c(13,46),new c(32,47)),new s(30,new c(48,24),new c(14,25)),new s(30,new c(42,15),new c(32,16))),new t(39,Int32Array.from([6,26,54,82,110,138,166]),new s(30,new c(20,117),new c(4,118)),new s(28,new c(40,47),new c(7,48)),new s(30,new c(43,24),new c(22,25)),new s(30,new c(10,15),new c(67,16))),new t(40,Int32Array.from([6,30,58,86,114,142,170]),new s(30,new c(19,118),new c(6,119)),new s(28,new c(18,47),new c(31,48)),new s(30,new c(34,24),new c(34,25)),new s(30,new c(20,15),new c(61,16)))],t}(),p=d},60460:function(t,e,r){r(23767),r(8585),r(68696);var n=r(54671),o=r(36845),i=function(t){var e="function"===typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},a=function(){function t(t,e){this.width=t,this.height=e;for(var r=new Array(e),n=0;n!==e;n++)r[n]=new Uint8Array(t);this.bytes=r}return t.prototype.getHeight=function(){return this.height},t.prototype.getWidth=function(){return this.width},t.prototype.get=function(t,e){return this.bytes[e][t]},t.prototype.getArray=function(){return this.bytes},t.prototype.setNumber=function(t,e,r){this.bytes[e][t]=r},t.prototype.setBoolean=function(t,e,r){this.bytes[e][t]=r?1:0},t.prototype.clear=function(t){var e,r;try{for(var o=i(this.bytes),a=o.next();!a.done;a=o.next()){var s=a.value;n.Z.fill(s,t)}}catch(u){e={error:u}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var r=e;if(this.width!==r.width)return!1;if(this.height!==r.height)return!1;for(var n=0,o=this.height;n=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},_=function(){function t(){}return t.calculateMaskPenalty=function(t){return h.Z.applyMaskPenaltyRule1(t)+h.Z.applyMaskPenaltyRule2(t)+h.Z.applyMaskPenaltyRule3(t)+h.Z.applyMaskPenaltyRule4(t)},t.encode=function(e,r,a){void 0===a&&(a=null);var s=t.DEFAULT_BYTE_MODE_ENCODING,h=null!==a&&void 0!==a.get(n.Z.CHARACTER_SET);h&&(s=a.get(n.Z.CHARACTER_SET).toString());var p=this.chooseMode(e,s),g=new o.Z;if(p===u.Z.BYTE&&(h||t.DEFAULT_BYTE_MODE_ENCODING!==s)){var w=i.Z.getCharacterSetECIByName(s);void 0!==w&&this.appendECI(w,g)}this.appendModeInfo(p,g);var v,_=new o.Z;if(this.appendBytes(e,p,_,s),null!==a&&void 0!==a.get(n.Z.QR_VERSION)){var C=Number.parseInt(a.get(n.Z.QR_VERSION).toString(),10);v=c.Z.getVersionForNumber(C);var A=this.calculateBitsNeeded(p,g,_,v);if(!this.willFit(A,v,r))throw new y.Z("Data too big for requested version")}else v=this.recommendVersion(r,p,g,_);var m=new o.Z;m.appendBitArray(g);var E=p===u.Z.BYTE?_.getSizeInBytes():e.length;this.appendLengthInfo(E,v,p,m),m.appendBitArray(_);var I=v.getECBlocksForLevel(r),S=v.getTotalCodewords()-I.getTotalECCodewords();this.terminateBits(S,m);var T=this.interleaveWithECBytes(m,v.getTotalCodewords(),S,I.getNumBlocks()),b=new l.Z;b.setECLevel(r),b.setMode(p),b.setVersion(v);var O=v.getDimensionForVersion(),R=new f.Z(O,O),N=this.chooseMaskPattern(T,r,v,R);return b.setMaskPattern(N),d.Z.buildMatrix(T,r,v,N,R),b.setMatrix(R),b},t.recommendVersion=function(t,e,r,n){var o=this.calculateBitsNeeded(e,r,n,c.Z.getVersionForNumber(1)),i=this.chooseVersion(o,t),a=this.calculateBitsNeeded(e,r,n,i);return this.chooseVersion(a,t)},t.calculateBitsNeeded=function(t,e,r,n){return e.getSize()+t.getCharacterCountBits(n)+r.getSize()},t.getAlphanumericCode=function(e){return e159)&&(o<224||o>235))return!1}return!0},t.chooseMaskPattern=function(t,e,r,n){for(var o=Number.MAX_SAFE_INTEGER,i=-1,a=0;a=s},t.terminateBits=function(t,e){var r=8*t;if(e.getSize()>r)throw new y.Z("data bits cannot fit in the QR Code"+e.getSize()+" > "+r);for(var n=0;n<4&&e.getSize()0)for(n=o;n<8;n++)e.appendBit(!1);var i=t-e.getSizeInBytes();for(n=0;n=r)throw new y.Z("Block ID too large");var a=t%r,s=r-a,u=Math.floor(t/r),c=u+1,h=Math.floor(e/r),f=h+1,l=u-h,d=c-f;if(l!==d)throw new y.Z("EC bytes mismatch");if(r!==s+a)throw new y.Z("RS blocks mismatch");if(t!==(h+l)*s+(f+d)*a)throw new y.Z("Total bytes mismatch");n=1<=0&&r<=9},t.appendNumericBytes=function(e,r){var n=e.length,o=0;while(o=33088&&u<=40956?c=u-33088:u>=57408&&u<=60351&&(c=u-49472),-1===c)throw new y.Z("Invalid byte sequence");var h=192*(c>>8)+(255&c);e.appendBits(h,13)}},t.appendECI=function(t,e){e.appendBits(u.Z.ECI.getBits(),4),e.appendBits(t.getValue(),8)},t.ALPHANUMERIC_TABLE=Int32Array.from([-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,36,-1,-1,-1,37,38,-1,-1,-1,-1,39,40,-1,41,42,43,0,1,2,3,4,5,6,7,8,9,44,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,-1,-1,-1,-1,-1]),t.DEFAULT_BYTE_MODE_ENCODING=i.Z.UTF8.getName(),t}(),C=_},64941:function(t,e,r){var n=r(96148),o=function(){function t(){}return t.applyMaskPenaltyRule1=function(e){return t.applyMaskPenaltyRule1Internal(e,!0)+t.applyMaskPenaltyRule1Internal(e,!1)},t.applyMaskPenaltyRule2=function(e){for(var r=0,n=e.getArray(),o=e.getWidth(),i=e.getHeight(),a=0;a=5&&(n+=t.N1+(u-5)),u=1,c=f)}u>=5&&(n+=t.N1+(u-5))}return n},t.N1=3,t.N2=3,t.N3=40,t.N4=10,t}();e["Z"]=o},40037:function(t,e,r){r(23767),r(8585),r(68696);var n=r(53550),o=r(87489),i=r(82211),a=r(64941),s=r(60597),u=r(96148),c=function(){function t(){}return t.clearMatrix=function(t){t.clear(255)},t.buildMatrix=function(e,r,n,o,i){t.clearMatrix(i),t.embedBasicPatterns(n,i),t.embedTypeInfo(r,o,i),t.maybeEmbedVersionInfo(n,i),t.embedDataBits(e,o,i)},t.embedBasicPatterns=function(e,r){t.embedPositionDetectionPatternsAndSeparators(r),t.embedDarkDotAtLeftBottomCorner(r),t.maybeEmbedPositionAdjustmentPatterns(e,r),t.embedTimingPatterns(r)},t.embedTypeInfo=function(e,r,o){var i=new n.Z;t.makeTypeInfoBits(e,r,i);for(var a=0,s=i.getSize();a0){6===u&&(u-=1);while(c>=0&&c=n)e^=r<=0)for(var u=0;u!==a;u++){var c=o[u];c>=0&&t.isEmpty(r.get(c,s))&&t.embedPositionAdjustmentPattern(c-2,s-2,r)}}},t.POSITION_DETECTION_PATTERN=Array.from([Int32Array.from([1,1,1,1,1,1,1]),Int32Array.from([1,0,0,0,0,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,0,0,0,0,1]),Int32Array.from([1,1,1,1,1,1,1])]),t.POSITION_ADJUSTMENT_PATTERN=Array.from([Int32Array.from([1,1,1,1,1]),Int32Array.from([1,0,0,0,1]),Int32Array.from([1,0,1,0,1]),Int32Array.from([1,0,0,0,1]),Int32Array.from([1,1,1,1,1])]),t.POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE=Array.from([Int32Array.from([-1,-1,-1,-1,-1,-1,-1]),Int32Array.from([6,18,-1,-1,-1,-1,-1]),Int32Array.from([6,22,-1,-1,-1,-1,-1]),Int32Array.from([6,26,-1,-1,-1,-1,-1]),Int32Array.from([6,30,-1,-1,-1,-1,-1]),Int32Array.from([6,34,-1,-1,-1,-1,-1]),Int32Array.from([6,22,38,-1,-1,-1,-1]),Int32Array.from([6,24,42,-1,-1,-1,-1]),Int32Array.from([6,26,46,-1,-1,-1,-1]),Int32Array.from([6,28,50,-1,-1,-1,-1]),Int32Array.from([6,30,54,-1,-1,-1,-1]),Int32Array.from([6,32,58,-1,-1,-1,-1]),Int32Array.from([6,34,62,-1,-1,-1,-1]),Int32Array.from([6,26,46,66,-1,-1,-1]),Int32Array.from([6,26,48,70,-1,-1,-1]),Int32Array.from([6,26,50,74,-1,-1,-1]),Int32Array.from([6,30,54,78,-1,-1,-1]),Int32Array.from([6,30,56,82,-1,-1,-1]),Int32Array.from([6,30,58,86,-1,-1,-1]),Int32Array.from([6,34,62,90,-1,-1,-1]),Int32Array.from([6,28,50,72,94,-1,-1]),Int32Array.from([6,26,50,74,98,-1,-1]),Int32Array.from([6,30,54,78,102,-1,-1]),Int32Array.from([6,28,54,80,106,-1,-1]),Int32Array.from([6,32,58,84,110,-1,-1]),Int32Array.from([6,30,58,86,114,-1,-1]),Int32Array.from([6,34,62,90,118,-1,-1]),Int32Array.from([6,26,50,74,98,122,-1]),Int32Array.from([6,30,54,78,102,126,-1]),Int32Array.from([6,26,52,78,104,130,-1]),Int32Array.from([6,30,56,82,108,134,-1]),Int32Array.from([6,34,60,86,112,138,-1]),Int32Array.from([6,30,58,86,114,142,-1]),Int32Array.from([6,34,62,90,118,146,-1]),Int32Array.from([6,30,54,78,102,126,150]),Int32Array.from([6,24,50,76,102,128,154]),Int32Array.from([6,28,54,80,106,132,158]),Int32Array.from([6,32,58,84,110,136,162]),Int32Array.from([6,26,54,82,110,138,166]),Int32Array.from([6,30,58,86,114,142,170])]),t.TYPE_INFO_COORDINATES=Array.from([Int32Array.from([8,0]),Int32Array.from([8,1]),Int32Array.from([8,2]),Int32Array.from([8,3]),Int32Array.from([8,4]),Int32Array.from([8,5]),Int32Array.from([8,7]),Int32Array.from([8,8]),Int32Array.from([7,8]),Int32Array.from([5,8]),Int32Array.from([4,8]),Int32Array.from([3,8]),Int32Array.from([2,8]),Int32Array.from([1,8]),Int32Array.from([0,8])]),t.VERSION_INFO_POLY=7973,t.TYPE_INFO_POLY=1335,t.TYPE_INFO_MASK_PATTERN=21522,t}();e["Z"]=c},82211:function(t,e,r){var n=r(36845),o=function(){function t(){this.maskPattern=-1}return t.prototype.getMode=function(){return this.mode},t.prototype.getECLevel=function(){return this.ecLevel},t.prototype.getVersion=function(){return this.version},t.prototype.getMaskPattern=function(){return this.maskPattern},t.prototype.getMatrix=function(){return this.matrix},t.prototype.toString=function(){var t=new n.Z;return t.append("<<\n"),t.append(" mode: "),t.append(this.mode?this.mode.toString():"null"),t.append("\n ecLevel: "),t.append(this.ecLevel?this.ecLevel.toString():"null"),t.append("\n version: "),t.append(this.version?this.version.toString():"null"),t.append("\n maskPattern: "),t.append(this.maskPattern.toString()),this.matrix?(t.append("\n matrix:\n"),t.append(this.matrix.toString())):t.append("\n matrix: null\n"),t.append(">>\n"),t.toString()},t.prototype.setMode=function(t){this.mode=t},t.prototype.setECLevel=function(t){this.ecLevel=t},t.prototype.setVersion=function(t){this.version=t},t.prototype.setMaskPattern=function(t){this.maskPattern=t},t.prototype.setMatrix=function(t){this.matrix=t},t.isValidMaskPattern=function(e){return e>=0&&e=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},h=function(){function t(){}return t.fill=function(t,e){for(var r=0,n=t.length;rr)throw new o.Z("fromIndex("+e+") > toIndex("+r+")");if(e<0)throw new u(e);if(r>t)throw new u(r)},t.asList=function(){for(var t=[],e=0;e>1,s=n(r,e[a]);if(s>0)o=a+1;else{if(!(s<0))return a;i=a-1}}return-o-1},t.numberComparator=function(t,e){return t-e},t}(),f=h},80426:function(t,e,r){var n=r(5687),o=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.forName=function(t){return this.getCharacterSetECIByName(t)},e}(n.Z);e["Z"]=i},51322:function(t,e){var r=function(){function t(){}return t.floatToIntBits=function(t){return t},t.MAX_VALUE=Number.MAX_SAFE_INTEGER,t}();e["Z"]=r},87489:function(t,e){var r=function(){function t(){}return t.numberOfTrailingZeros=function(t){var e;if(0===t)return 32;var r=31;return e=t<<16,0!==e&&(r-=16,t=e),e=t<<8,0!==e&&(r-=8,t=e),e=t<<4,0!==e&&(r-=4,t=e),e=t<<2,0!==e&&(r-=2,t=e),r-(t<<1>>>31)},t.numberOfLeadingZeros=function(t){if(0===t)return 32;var e=1;return t>>>16===0&&(e+=16,t<<=16),t>>>24===0&&(e+=8,t<<=8),t>>>28===0&&(e+=4,t<<=4),t>>>30===0&&(e+=2,t<<=2),e-=t>>>31,e},t.toHexString=function(t){return t.toString(16)},t.toBinaryString=function(t){return String(parseInt(String(t),2))},t.bitCount=function(t){return t-=t>>>1&1431655765,t=(858993459&t)+(t>>>2&858993459),t=t+(t>>>4)&252645135,t+=t>>>8,t+=t>>>16,63&t},t.truncDivision=function(t,e){return Math.trunc(t/e)},t.parseInt=function(t,e){return void 0===e&&(e=void 0),parseInt(t,e)},t.MIN_VALUE_32_BITS=-2147483648,t.MAX_VALUE=Number.MAX_SAFE_INTEGER,t}();e["Z"]=r},60082:function(t,e,r){var n=r(5687),o=function(){function t(){}return t.ISO_8859_1=n.Z.ISO8859_1,t}();e["Z"]=o},36845:function(t,e,r){var n=r(72868),o=function(){function t(t){void 0===t&&(t=""),this.value=t}return t.prototype.enableDecoding=function(t){return this.encoding=t,this},t.prototype.append=function(t){return"string"===typeof t?this.value+=t.toString():this.encoding?this.value+=n.Z.castAsNonUtf8Char(t,this.encoding):this.value+=String.fromCharCode(t),this},t.prototype.appendChars=function(t,e,r){for(var n=e;e{const r=(0,i.iH)(),u=()=>{r.value=(0,o.EL)(t).height};return(0,n.bv)((()=>{if((0,n.Y3)(u),e)for(let t=1;t<=3;t++)setTimeout(u,100*t)})),(0,s.h)((()=>(0,n.Y3)(u))),(0,n.YP)([a.bn,a.uK],u),r};function c(t,e){const r=u(t,!0);return t=>(0,n.Wm)("div",{class:e("placeholder"),style:{height:r.value?`${r.value}px`:void 0}},[t()])}},39420:function(t,e,r){r.d(e,{l2:function(){return w}});var n=r(11404),o=r(73396),i=r(44870),a=r(610),s=r(5323),u=r(96048),c=r(25322),h=r(34373),f=r(13649);const[l,d]=(0,a["do"])("nav-bar"),p={title:String,fixed:Boolean,zIndex:s.Or,border:s.J5,leftText:String,rightText:String,leftArrow:Boolean,placeholder:Boolean,safeAreaInsetTop:Boolean,clickable:s.J5};var g=(0,o.aZ)({name:l,props:p,emits:["clickLeft","clickRight"],setup(t,{emit:e,slots:r}){const n=(0,i.iH)(),a=(0,h.J)(n,d),s=t=>e("clickLeft",t),l=t=>e("clickRight",t),p=()=>r.left?r.left():[t.leftArrow&&(0,o.Wm)(f.JO,{class:d("arrow"),name:"arrow-left"},null),t.leftText&&(0,o.Wm)("span",{class:d("text")},[t.leftText])],g=()=>r.right?r.right():(0,o.Wm)("span",{class:d("text")},[t.rightText]),w=()=>{const{title:e,fixed:i,border:a,zIndex:h}=t,f=(0,u.As)(h),w=t.leftArrow||t.leftText||r.left,y=t.rightText||r.right;return(0,o.Wm)("div",{ref:n,style:f,class:[d({fixed:i}),{[c.xe]:a,"van-safe-area-top":t.safeAreaInsetTop}]},[(0,o.Wm)("div",{class:d("content")},[w&&(0,o.Wm)("div",{class:[d("left"),t.clickable?c.e9:""],onClick:s},[p()]),(0,o.Wm)("div",{class:[d("title"),"van-ellipsis"]},[r.title?r.title():e]),y&&(0,o.Wm)("div",{class:[d("right"),t.clickable?c.e9:""],onClick:l},[g()])])])};return()=>t.fixed&&t.placeholder?a(w):w()}});const w=(0,n.n)(g)},12097:function(t,e,r){r(31958),r(20368),r(56742)}}]); //# sourceMappingURL=6064.46ca0f8c.js.map