Plugin Directory

Changeset 2335437


Ignore:
Timestamp:
07/04/2020 07:09:05 PM (5 years ago)
Author:
aigenseer
Message:

fix on close dialog kill video stream

Location:
qr-scanner-redirect/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • qr-scanner-redirect/trunk/assets/qr-scanner-redirect.js

    r2331902 r2335437  
    575706
    5858"),n.insert(0,"
    59 ");break;case 238:return r.ANSIX12_ENCODE;case 239:return r.TEXT_ENCODE;case 240:return r.EDIFACT_ENCODE;case 241:break;default:if(254!==i||0!==e.available())throw new s.default}}while(e.available()>0);return r.ASCII_ENCODE},e.decodeC40Segment=function(e,t){var n=!1,r=[],o=0;do{if(8===e.available())return;var i=e.readBits(8);if(254===i)return;this.parseTwoBytes(i,e.readBits(8),r);for(var a=0;a<3;a++){var u=r[a];switch(o){case 0:if(u<3)o=u+1;else{if(!(u<this.C40_BASIC_SET_CHARS.length))throw new s.default;var l=this.C40_BASIC_SET_CHARS[u];n?(t.append(String.fromCharCode(l.charCodeAt(0)+128)),n=!1):t.append(l)}break;case 1:n?(t.append(String.fromCharCode(u+128)),n=!1):t.append(String.fromCharCode(u)),o=0;break;case 2:if(u<this.C40_SHIFT2_SET_CHARS.length){l=this.C40_SHIFT2_SET_CHARS[u];n?(t.append(String.fromCharCode(l.charCodeAt(0)+128)),n=!1):t.append(l)}else switch(u){case 27:t.append(String.fromCharCode(29));break;case 30:n=!0;break;default:throw new s.default}o=0;break;case 3:n?(t.append(String.fromCharCode(u+224)),n=!1):t.append(String.fromCharCode(u+96)),o=0;break;default:throw new s.default}}}while(e.available()>0)},e.decodeTextSegment=function(e,t){var n=!1,r=[],o=0;do{if(8===e.available())return;var i=e.readBits(8);if(254===i)return;this.parseTwoBytes(i,e.readBits(8),r);for(var a=0;a<3;a++){var u=r[a];switch(o){case 0:if(u<3)o=u+1;else{if(!(u<this.TEXT_BASIC_SET_CHARS.length))throw new s.default;var l=this.TEXT_BASIC_SET_CHARS[u];n?(t.append(String.fromCharCode(l.charCodeAt(0)+128)),n=!1):t.append(l)}break;case 1:n?(t.append(String.fromCharCode(u+128)),n=!1):t.append(String.fromCharCode(u)),o=0;break;case 2:if(u<this.TEXT_SHIFT2_SET_CHARS.length){l=this.TEXT_SHIFT2_SET_CHARS[u];n?(t.append(String.fromCharCode(l.charCodeAt(0)+128)),n=!1):t.append(l)}else switch(u){case 27:t.append(String.fromCharCode(29));break;case 30:n=!0;break;default:throw new s.default}o=0;break;case 3:if(!(u<this.TEXT_SHIFT3_SET_CHARS.length))throw new s.default;l=this.TEXT_SHIFT3_SET_CHARS[u];n?(t.append(String.fromCharCode(l.charCodeAt(0)+128)),n=!1):t.append(l),o=0;break;default:throw new s.default}}}while(e.available()>0)},e.decodeAnsiX12Segment=function(e,t){var n=[];do{if(8===e.available())return;var r=e.readBits(8);if(254===r)return;this.parseTwoBytes(r,e.readBits(8),n);for(var o=0;o<3;o++){var i=n[o];switch(i){case 0:t.append("\r");break;case 1:t.append("*");break;case 2:t.append(">");break;case 3:t.append(" ");break;default:if(i<14)t.append(String.fromCharCode(i+44));else{if(!(i<40))throw new s.default;t.append(String.fromCharCode(i+51))}}}}while(e.available()>0)},e.parseTwoBytes=function(e,t,n){var r=(e<<8)+t-1,o=Math.floor(r/1600);n[0]=o,r-=1600*o,o=Math.floor(r/40),n[1]=o,n[2]=r-40*o},e.decodeEdifactSegment=function(e,t){do{if(e.available()<=16)return;for(var n=0;n<4;n++){var r=e.readBits(6);if(31===r){var o=8-e.getBitOffset();return void(8!==o&&e.readBits(o))}0==(32&r)&&(r|=64),t.append(String.fromCharCode(r))}}while(e.available()>0)},e.decodeBase256Segment=function(e,t,n){var r,o=1+e.getByteOffset(),i=this.unrandomize255State(e.readBits(8),o++);if((r=0===i?e.available()/8|0:i<250?i:250*(i-249)+this.unrandomize255State(e.readBits(8),o++))<0)throw new s.default;for(var a=new Uint8Array(r),f=0;f<r;f++){if(e.available()<8)throw new s.default;a[f]=this.unrandomize255State(e.readBits(8),o++)}n.push(a);try{t.append(u.default.decode(a,l.default.ISO88591))}catch(e){throw new c.default("Platform does not support required encoding: "+e.message)}},e.unrandomize255State=function(e,t){var n=e-(149*t%255+1);return n>=0?n:n+256},e.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"],e.C40_SHIFT2_SET_CHARS=["!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","@","[","\\","]","^","_"],e.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"],e.TEXT_SHIFT2_SET_CHARS=e.C40_SHIFT2_SET_CHARS,e.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)],e}();t.default=f},function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}},o=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0});var i=n(13),a=n(52),u=n(53),l=n(20),s=n(72),c=n(4),f=function(){function e(e){this.image=e,this.rectangleDetector=new s.default(e)}return e.prototype.detect=function(){var t,n,u=this.rectangleDetector.detect(),l=u[0],s=u[1],f=u[2],h=u[3],p=[];p.push(this.transitionsBetween(l,s)),p.push(this.transitionsBetween(l,f)),p.push(this.transitionsBetween(s,h)),p.push(this.transitionsBetween(f,h)),p.sort(d.resultPointsAndTransitionsComparator);var g=p[0],v=p[1],y=new Map;e.increment(y,g.getFrom()),e.increment(y,g.getTo()),e.increment(y,v.getFrom()),e.increment(y,v.getTo());var m=null,w=null,b=null;try{for(var _=r(Array.from(y.entries())),C=_.next();!C.done;C=_.next()){var E=o(C.value,2),A=E[0];2===E[1]?w=A:null==m?m=A:b=A}}catch(e){t={error:e}}finally{try{C&&!C.done&&(n=_.return)&&n.call(_)}finally{if(t)throw t.error}}if(null==m||null==w||null==b)throw new c.default;var I=[m,w,b];i.default.orderBestPatterns(I);var S=I[0];w=I[1];var O,T=I[2];O=y.has(l)?y.has(s)?y.has(f)?h:f:s:l;var R,N,M=this.transitionsBetween(T,O).getTransitions(),P=this.transitionsBetween(S,O).getTransitions();if(1==(1&M)&&M++,1==(1&P)&&P++,4*(M+=2)>=7*(P+=2)||4*P>=7*M)null==(N=this.correctTopRightRectangular(w,S,T,O,M,P))&&(N=O),1==(1&(M=this.transitionsBetween(T,N).getTransitions()))&&M++,1==(1&(P=this.transitionsBetween(S,N).getTransitions()))&&P++,R=e.sampleGrid(this.image,T,w,S,N,M,P);else{var x=Math.min(P,M);null==(N=this.correctTopRight(w,S,T,O,x))&&(N=O);var D=Math.max(this.transitionsBetween(T,N).getTransitions(),this.transitionsBetween(S,N).getTransitions());1==(1&++D)&&D++,R=e.sampleGrid(this.image,T,w,S,N,D,D)}return new a.default(R,[T,w,S,N])},e.prototype.correctTopRightRectangular=function(t,n,r,o,a,u){var l=e.distance(t,n)/a,s=e.distance(r,o),c=(o.getX()-r.getX())/s,f=(o.getY()-r.getY())/s,d=new i.default(o.getX()+l*c,o.getY()+l*f);l=e.distance(t,r)/u,s=e.distance(n,o),c=(o.getX()-n.getX())/s,f=(o.getY()-n.getY())/s;var h=new i.default(o.getX()+l*c,o.getY()+l*f);return this.isValid(d)?this.isValid(h)?Math.abs(a-this.transitionsBetween(r,d).getTransitions())+Math.abs(u-this.transitionsBetween(n,d).getTransitions())<=Math.abs(a-this.transitionsBetween(r,h).getTransitions())+Math.abs(u-this.transitionsBetween(n,h).getTransitions())?d:h:d:this.isValid(h)?h:null},e.prototype.correctTopRight=function(t,n,r,o,a){var u=e.distance(t,n)/a,l=e.distance(r,o),s=(o.getX()-r.getX())/l,c=(o.getY()-r.getY())/l,f=new i.default(o.getX()+u*s,o.getY()+u*c);u=e.distance(t,r)/a,l=e.distance(n,o),s=(o.getX()-n.getX())/l,c=(o.getY()-n.getY())/l;var d=new i.default(o.getX()+u*s,o.getY()+u*c);return this.isValid(f)?this.isValid(d)?Math.abs(this.transitionsBetween(r,f).getTransitions()-this.transitionsBetween(n,f).getTransitions())<=Math.abs(this.transitionsBetween(r,d).getTransitions()-this.transitionsBetween(n,d).getTransitions())?f:d:f:this.isValid(d)?d:null},e.prototype.isValid=function(e){return e.getX()>=0&&e.getX()<this.image.getWidth()&&e.getY()>0&&e.getY()<this.image.getHeight()},e.distance=function(e,t){return l.default.round(i.default.distance(e,t))},e.increment=function(e,t){var n=e.get(t);e.set(t,null==n?1:n+1)},e.sampleGrid=function(e,t,n,r,o,i,a){return u.default.getInstance().sampleGrid(e,i,a,.5,.5,i-.5,.5,i-.5,a-.5,.5,a-.5,t.getX(),t.getY(),o.getX(),o.getY(),r.getX(),r.getY(),n.getX(),n.getY())},e.prototype.transitionsBetween=function(e,t){var n=0|e.getX(),r=0|e.getY(),o=0|t.getX(),i=0|t.getY(),a=Math.abs(i-r)>Math.abs(o-n);if(a){var u=n;n=r,r=u,u=o,o=i,i=u}for(var l=Math.abs(o-n),s=Math.abs(i-r),c=-l/2,f=r<i?1:-1,h=n<o?1:-1,p=0,g=this.image.get(a?r:n,a?n:r),v=n,y=r;v!==o;v+=h){var m=this.image.get(a?y:v,a?v:y);if(m!==g&&(p++,g=m),(c+=s)>0){if(y===i)break;y+=f,c-=l}}return new d(e,t,p)},e}();t.default=f;var d=function(){function e(e,t,n){this.from=e,this.to=t,this.transitions=n}return e.prototype.getFrom=function(){return this.from},e.prototype.getTo=function(){return this.to},e.prototype.getTransitions=function(){return this.transitions},e.prototype.toString=function(){return this.from+"/"+this.to+"/"+this.transitions},e.resultPointsAndTransitionsComparator=function(e,t){return e.getTransitions()-t.getTransitions()},e}()},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(31),a=n(116),u=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=500);var r=new a.default;return r.setHints(t),e.call(this,r,n)||this}return o(t,e),t.prototype.decodeBitmap=function(e){return this.reader.decodeWithState(e)},t}(i.BrowserCodeReader);t.BrowserMultiFormatReader=u},function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(23),i=n(34),a=n(44),u=n(180),l=n(118),s=n(184),c=n(185),f=n(22),d=function(){function e(){this.rsDecoder=new a.default(i.default.QR_CODE_FIELD_256)}return e.prototype.decodeBooleanArray=function(e,t){return this.decodeBitMatrix(o.default.parseFromBooleanArray(e),t)},e.prototype.decodeBitMatrix=function(e,t){var n=new u.default(e),r=null;try{return this.decodeBitMatrixParser(n,t)}catch(e){r=e}try{n.remask(),n.setMirror(!0),n.readVersion(),n.readFormatInformation(),n.mirror();var o=this.decodeBitMatrixParser(n,t);return o.setOther(new l.default(!0)),o}catch(e){if(null!==r)throw r;throw e}},e.prototype.decodeBitMatrixParser=function(e,t){var n,o,i,a,u=e.readVersion(),l=e.readFormatInformation().getErrorCorrectionLevel(),f=e.readCodewords(),d=s.default.getDataBlocks(f,u,l),h=0;try{for(var p=r(d),g=p.next();!g.done;g=p.next()){h+=(b=g.value).getNumDataCodewords()}}catch(e){n={error:e}}finally{try{g&&!g.done&&(o=p.return)&&o.call(p)}finally{if(n)throw n.error}}var v=new Uint8Array(h),y=0;try{for(var m=r(d),w=m.next();!w.done;w=m.next()){var b,_=(b=w.value).getCodewords(),C=b.getNumDataCodewords();this.correctErrors(_,C);for(var E=0;E<C;E++)v[y++]=_[E]}}catch(e){i={error:e}}finally{try{w&&!w.done&&(a=m.return)&&a.call(m)}finally{if(i)throw i.error}}return c.default.decode(v,u,l,t)},e.prototype.correctErrors=function(e,t){e.length;var n=new Int32Array(e);try{this.rsDecoder.decode(n,e.length-t)}catch(e){throw new f.default}for(var r=0;r<t;r++)e[r]=n[r]},e}();t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(79),o=n(117),i=n(183),a=n(8),u=function(){function e(e){var t=e.getHeight();if(t<21||1!=(3&t))throw new a.default;this.bitMatrix=e}return e.prototype.readFormatInformation=function(){if(null!==this.parsedFormatInfo&&void 0!==this.parsedFormatInfo)return this.parsedFormatInfo;for(var e=0,t=0;t<6;t++)e=this.copyBit(t,8,e);e=this.copyBit(7,8,e),e=this.copyBit(8,8,e),e=this.copyBit(8,7,e);for(var n=5;n>=0;n--)e=this.copyBit(8,n,e);var r=this.bitMatrix.getHeight(),i=0,u=r-7;for(n=r-1;n>=u;n--)i=this.copyBit(8,n,i);for(t=r-8;t<r;t++)i=this.copyBit(t,8,i);if(this.parsedFormatInfo=o.default.decodeFormatInformation(e,i),null!==this.parsedFormatInfo)return this.parsedFormatInfo;throw new a.default},e.prototype.readVersion=function(){if(null!==this.parsedVersion&&void 0!==this.parsedVersion)return this.parsedVersion;var e=this.bitMatrix.getHeight(),t=Math.floor((e-17)/4);if(t<=6)return r.default.getVersionForNumber(t);for(var n=0,o=e-11,i=5;i>=0;i--)for(var u=e-9;u>=o;u--)n=this.copyBit(u,i,n);var l=r.default.decodeVersionInformation(n);if(null!==l&&l.getDimensionForVersion()===e)return this.parsedVersion=l,l;n=0;for(u=5;u>=0;u--)for(i=e-9;i>=o;i--)n=this.copyBit(u,i,n);if(null!==(l=r.default.decodeVersionInformation(n))&&l.getDimensionForVersion()===e)return this.parsedVersion=l,l;throw new a.default},e.prototype.copyBit=function(e,t,n){return(this.isMirror?this.bitMatrix.get(t,e):this.bitMatrix.get(e,t))?n<<1|1:n<<1},e.prototype.readCodewords=function(){var e=this.readFormatInformation(),t=this.readVersion(),n=i.default.values.get(e.getDataMask()),r=this.bitMatrix.getHeight();n.unmaskBitMatrix(this.bitMatrix,r);for(var o=t.buildFunctionPattern(),u=!0,l=new Uint8Array(t.getTotalCodewords()),s=0,c=0,f=0,d=r-1;d>0;d-=2){6===d&&d--;for(var h=0;h<r;h++)for(var p=u?r-1-h:h,g=0;g<2;g++)o.get(d-g,p)||(f++,c<<=1,this.bitMatrix.get(d-g,p)&&(c|=1),8===f&&(l[s++]=c,f=0,c=0));u=!u}if(s!==t.getTotalCodewords())throw new a.default;return l},e.prototype.remask=function(){if(null!==this.parsedFormatInfo){var e=i.default.values[this.parsedFormatInfo.getDataMask()],t=this.bitMatrix.getHeight();e.unmaskBitMatrix(this.bitMatrix,t)}},e.prototype.setMirror=function(e){this.parsedVersion=null,this.parsedFormatInfo=null,this.isMirror=e},e.prototype.mirror=function(){for(var e=this.bitMatrix,t=0,n=e.getWidth();t<n;t++)for(var r=t+1,o=e.getHeight();r<o;r++)e.get(t,r)!==e.get(r,t)&&(e.flip(r,t),e.flip(t,r))},e}();t.default=u},function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.ecCodewordsPerBlock=e,this.ecBlocks=t}return e.prototype.getECCodewordsPerBlock=function(){return this.ecCodewordsPerBlock},e.prototype.getNumBlocks=function(){var e,t,n=0,o=this.ecBlocks;try{for(var i=r(o),a=i.next();!a.done;a=i.next()){n+=a.value.getCount()}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}return n},e.prototype.getTotalECCodewords=function(){return this.ecCodewordsPerBlock*this.getNumBlocks()},e.prototype.getECBlocks=function(){return this.ecBlocks},e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){this.count=e,this.dataCodewords=t}return e.prototype.getCount=function(){return this.count},e.prototype.getDataCodewords=function(){return this.dataCodewords},e}();t.default=r},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.DATA_MASK_000=0]="DATA_MASK_000",e[e.DATA_MASK_001=1]="DATA_MASK_001",e[e.DATA_MASK_010=2]="DATA_MASK_010",e[e.DATA_MASK_011=3]="DATA_MASK_011",e[e.DATA_MASK_100=4]="DATA_MASK_100",e[e.DATA_MASK_101=5]="DATA_MASK_101",e[e.DATA_MASK_110=6]="DATA_MASK_110",e[e.DATA_MASK_111=7]="DATA_MASK_111"}(r=t.DataMaskValues||(t.DataMaskValues={}));var o=function(){function e(e,t){this.value=e,this.isMasked=t}return e.prototype.unmaskBitMatrix=function(e,t){for(var n=0;n<t;n++)for(var r=0;r<t;r++)this.isMasked(n,r)&&e.flip(r,n)},e.values=new Map([[r.DATA_MASK_000,new e(r.DATA_MASK_000,(function(e,t){return 0==(e+t&1)}))],[r.DATA_MASK_001,new e(r.DATA_MASK_001,(function(e,t){return 0==(1&e)}))],[r.DATA_MASK_010,new e(r.DATA_MASK_010,(function(e,t){return t%3==0}))],[r.DATA_MASK_011,new e(r.DATA_MASK_011,(function(e,t){return(e+t)%3==0}))],[r.DATA_MASK_100,new e(r.DATA_MASK_100,(function(e,t){return 0==(Math.floor(e/2)+Math.floor(t/3)&1)}))],[r.DATA_MASK_101,new e(r.DATA_MASK_101,(function(e,t){return e*t%6==0}))],[r.DATA_MASK_110,new e(r.DATA_MASK_110,(function(e,t){return e*t%6<3}))],[r.DATA_MASK_111,new e(r.DATA_MASK_111,(function(e,t){return 0==(e+t+e*t%3&1)}))]]),e}();t.default=o},function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(7),i=function(){function e(e,t){this.numDataCodewords=e,this.codewords=t}return e.getDataBlocks=function(t,n,i){var a,u,l,s;if(t.length!==n.getTotalCodewords())throw new o.default;var c=n.getECBlocksForLevel(i),f=0,d=c.getECBlocks();try{for(var h=r(d),p=h.next();!p.done;p=h.next()){f+=(w=p.value).getCount()}}catch(e){a={error:e}}finally{try{p&&!p.done&&(u=h.return)&&u.call(h)}finally{if(a)throw a.error}}var g=new Array(f),v=0;try{for(var y=r(d),m=y.next();!m.done;m=y.next())for(var w=m.value,b=0;b<w.getCount();b++){var _=w.getDataCodewords(),C=c.getECCodewordsPerBlock()+_;g[v++]=new e(_,new Uint8Array(C))}}catch(e){l={error:e}}finally{try{m&&!m.done&&(s=y.return)&&s.call(y)}finally{if(l)throw l.error}}for(var E=g[0].codewords.length,A=g.length-1;A>=0;){if(g[A].codewords.length===E)break;A--}A++;var I=E-c.getECCodewordsPerBlock(),S=0;for(b=0;b<I;b++)for(var O=0;O<v;O++)g[O].codewords[b]=t[S++];for(O=A;O<v;O++)g[O].codewords[I]=t[S++];var T=g[0].codewords.length;for(b=I;b<T;b++)for(O=0;O<v;O++){var R=O<A?b:b+1;g[O].codewords[R]=t[S++]}return g},e.prototype.getNumDataCodewords=function(){return this.numDataCodewords},e.prototype.getCodewords=function(){return this.codewords},e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(77),o=n(37),i=n(43),a=n(50),u=n(119),l=n(14),s=n(40),c=n(8),f=function(){function e(){}return e.decode=function(t,n,a,s){var f=new r.default(t),d=new l.default,h=new Array,p=-1,g=-1;try{var v=null,y=!1,m=void 0;do{if(f.available()<4)m=u.default.TERMINATOR;else{var w=f.readBits(4);m=u.default.forBits(w)}switch(m){case u.default.TERMINATOR:break;case u.default.FNC1_FIRST_POSITION:case u.default.FNC1_SECOND_POSITION:y=!0;break;case u.default.STRUCTURED_APPEND:if(f.available()<16)throw new c.default;p=f.readBits(8),g=f.readBits(8);break;case u.default.ECI:var b=e.parseECIValue(f);if(null===(v=o.default.getCharacterSetECIByValue(b)))throw new c.default;break;case u.default.HANZI:var _=f.readBits(4),C=f.readBits(m.getCharacterCountBits(n));_===e.GB2312_SUBSET&&e.decodeHanziSegment(f,d,C);break;default:var E=f.readBits(m.getCharacterCountBits(n));switch(m){case u.default.NUMERIC:e.decodeNumericSegment(f,d,E);break;case u.default.ALPHANUMERIC:e.decodeAlphanumericSegment(f,d,E,y);break;case u.default.BYTE:e.decodeByteSegment(f,d,E,v,h,s);break;case u.default.KANJI:e.decodeKanjiSegment(f,d,E);break;default:throw new c.default}}}while(m!==u.default.TERMINATOR)}catch(e){throw new c.default}return new i.default(t,d.toString(),0===h.length?null:h,null===a?null:a.toString(),p,g)},e.decodeHanziSegment=function(e,t,n){if(13*n>e.available())throw new c.default;for(var r=new Uint8Array(2*n),o=0;n>0;){var i=e.readBits(13),u=i/96<<8&4294967295|i%96;u+=u<959?41377:42657,r[o]=u>>8&255,r[o+1]=255&u,o+=2,n--}try{t.append(s.default.decode(r,a.default.GB2312))}catch(e){throw new c.default(e)}},e.decodeKanjiSegment=function(e,t,n){if(13*n>e.available())throw new c.default;for(var r=new Uint8Array(2*n),o=0;n>0;){var i=e.readBits(13),u=i/192<<8&4294967295|i%192;u+=u<7936?33088:49472,r[o]=u>>8,r[o+1]=u,o+=2,n--}try{t.append(s.default.decode(r,a.default.SHIFT_JIS))}catch(e){throw new c.default(e)}},e.decodeByteSegment=function(e,t,n,r,o,i){if(8*n>e.available())throw new c.default;for(var u,l=new Uint8Array(n),f=0;f<n;f++)l[f]=e.readBits(8);u=null===r?a.default.guessEncoding(l,i):r.getName();try{t.append(s.default.decode(l,u))}catch(e){throw new c.default(e)}o.push(l)},e.toAlphaNumericChar=function(t){if(t>=e.ALPHANUMERIC_CHARS.length)throw new c.default;return e.ALPHANUMERIC_CHARS[t]},e.decodeAlphanumericSegment=function(t,n,r,o){for(var i=n.length();r>1;){if(t.available()<11)throw new c.default;var a=t.readBits(11);n.append(e.toAlphaNumericChar(Math.floor(a/45))),n.append(e.toAlphaNumericChar(a%45)),r-=2}if(1===r){if(t.available()<6)throw new c.default;n.append(e.toAlphaNumericChar(t.readBits(6)))}if(o)for(var u=i;u<n.length();u++)"%"===n.charAt(u)&&(u<n.length()-1&&"%"===n.charAt(u+1)?n.deleteCharAt(u+1):n.setCharAt(u,String.fromCharCode(29)))},e.decodeNumericSegment=function(t,n,r){for(;r>=3;){if(t.available()<10)throw new c.default;var o=t.readBits(10);if(o>=1e3)throw new c.default;n.append(e.toAlphaNumericChar(Math.floor(o/100))),n.append(e.toAlphaNumericChar(Math.floor(o/10)%10)),n.append(e.toAlphaNumericChar(o%10)),r-=3}if(2===r){if(t.available()<7)throw new c.default;var i=t.readBits(7);if(i>=100)throw new c.default;n.append(e.toAlphaNumericChar(Math.floor(i/10))),n.append(e.toAlphaNumericChar(i%10))}else if(1===r){if(t.available()<4)throw new c.default;var a=t.readBits(4);if(a>=10)throw new c.default;n.append(e.toAlphaNumericChar(a))}},e.parseECIValue=function(e){var t=e.readBits(8);if(0==(128&t))return 127&t;if(128==(192&t))return(63&t)<<8&4294967295|e.readBits(8);if(192==(224&t))return(31&t)<<16&4294967295|e.readBits(16);throw new c.default},e.ALPHANUMERIC_CHARS="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.GB2312_SUBSET=1,e}();t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(18),o=n(13),i=n(52),a=n(53),u=n(73),l=n(20),s=n(79),c=n(187),f=n(190),d=n(4),h=function(){function e(e){this.image=e}return e.prototype.getImage=function(){return this.image},e.prototype.getResultPointCallback=function(){return this.resultPointCallback},e.prototype.detect=function(e){this.resultPointCallback=null==e?null:e.get(r.default.NEED_RESULT_POINT_CALLBACK);var t=new c.default(this.image,this.resultPointCallback).find(e);return this.processFinderPatternInfo(t)},e.prototype.processFinderPatternInfo=function(t){var n=t.getTopLeft(),r=t.getTopRight(),o=t.getBottomLeft(),a=this.calculateModuleSize(n,r,o);if(a<1)throw new d.default("No pattern found in proccess finder.");var u=e.computeDimension(n,r,o,a),l=s.default.getProvisionalVersionForDimension(u),c=l.getDimensionForVersion()-7,f=null;if(l.getAlignmentPatternCenters().length>0)for(var h=r.getX()-n.getX()+o.getX(),p=r.getY()-n.getY()+o.getY(),g=1-3/c,v=Math.floor(n.getX()+g*(h-n.getX())),y=Math.floor(n.getY()+g*(p-n.getY())),m=4;m<=16;m<<=1)try{f=this.findAlignmentInRegion(a,v,y,m);break}catch(e){if(!(e instanceof d.default))throw e}var w,b=e.createTransform(n,r,o,f,u),_=e.sampleGrid(this.image,b,u);return w=null===f?[o,n,r]:[o,n,r,f],new i.default(_,w)},e.createTransform=function(e,t,n,r,o){var i,a,l,s,c=o-3.5;return null!==r?(i=r.getX(),a=r.getY(),s=l=c-3):(i=t.getX()-e.getX()+n.getX(),a=t.getY()-e.getY()+n.getY(),l=c,s=c),u.default.quadrilateralToQuadrilateral(3.5,3.5,c,3.5,l,s,3.5,c,e.getX(),e.getY(),t.getX(),t.getY(),i,a,n.getX(),n.getY())},e.sampleGrid=function(e,t,n){return a.default.getInstance().sampleGridWithTransform(e,n,n,t)},e.computeDimension=function(e,t,n,r){var i=l.default.round(o.default.distance(e,t)/r),a=l.default.round(o.default.distance(e,n)/r),u=Math.floor((i+a)/2)+7;switch(3&u){case 0:u++;break;case 2:u--;break;case 3:throw new d.default("Dimensions could be not found.")}return u},e.prototype.calculateModuleSize=function(e,t,n){return(this.calculateModuleSizeOneWay(e,t)+this.calculateModuleSizeOneWay(e,n))/2},e.prototype.calculateModuleSizeOneWay=function(e,t){var n=this.sizeOfBlackWhiteBlackRunBothWays(Math.floor(e.getX()),Math.floor(e.getY()),Math.floor(t.getX()),Math.floor(t.getY())),r=this.sizeOfBlackWhiteBlackRunBothWays(Math.floor(t.getX()),Math.floor(t.getY()),Math.floor(e.getX()),Math.floor(e.getY()));return isNaN(n)?r/7:isNaN(r)?n/7:(n+r)/14},e.prototype.sizeOfBlackWhiteBlackRunBothWays=function(e,t,n,r){var o=this.sizeOfBlackWhiteBlackRun(e,t,n,r),i=1,a=e-(n-e);a<0?(i=e/(e-a),a=0):a>=this.image.getWidth()&&(i=(this.image.getWidth()-1-e)/(a-e),a=this.image.getWidth()-1);var u=Math.floor(t-(r-t)*i);return i=1,u<0?(i=t/(t-u),u=0):u>=this.image.getHeight()&&(i=(this.image.getHeight()-1-t)/(u-t),u=this.image.getHeight()-1),a=Math.floor(e+(a-e)*i),(o+=this.sizeOfBlackWhiteBlackRun(e,t,a,u))-1},e.prototype.sizeOfBlackWhiteBlackRun=function(e,t,n,r){var o=Math.abs(r-t)>Math.abs(n-e);if(o){var i=e;e=t,t=i,i=n,n=r,r=i}for(var a=Math.abs(n-e),u=Math.abs(r-t),s=-a/2,c=e<n?1:-1,f=t<r?1:-1,d=0,h=n+c,p=e,g=t;p!==h;p+=c){var v=o?g:p,y=o?p:g;if(1===d===this.image.get(v,y)){if(2===d)return l.default.distance(p,g,e,t);d++}if((s+=u)>0){if(g===r)break;g+=f,s-=a}}return 2===d?l.default.distance(n+c,r,e,t):NaN},e.prototype.findAlignmentInRegion=function(e,t,n,r){var o=Math.floor(r*e),i=Math.max(0,t-o),a=Math.min(this.image.getWidth()-1,t+o);if(a-i<3*e)throw new d.default("Alignment top exceeds estimated module size.");var u=Math.max(0,n-o),l=Math.min(this.image.getHeight()-1,n+o);if(l-u<3*e)throw new d.default("Alignment bottom exceeds estimated module size.");return new f.default(this.image,i,u,a-i,l-u,e,this.resultPointCallback).find()},e}();t.default=h},function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(18),i=n(13),a=n(188),u=n(189),l=n(4),s=function(){function e(e,t){this.image=e,this.resultPointCallback=t,this.possibleCenters=[],this.crossCheckStateCount=new Int32Array(5),this.resultPointCallback=t}return e.prototype.getImage=function(){return this.image},e.prototype.getPossibleCenters=function(){return this.possibleCenters},e.prototype.find=function(t){var n=null!=t&&void 0!==t.get(o.default.TRY_HARDER),r=null!=t&&void 0!==t.get(o.default.PURE_BARCODE),a=this.image,l=a.getHeight(),s=a.getWidth(),c=Math.floor(3*l/(4*e.MAX_MODULES));(c<e.MIN_SKIP||n)&&(c=e.MIN_SKIP);for(var f=!1,d=new Int32Array(5),h=c-1;h<l&&!f;h+=c){d[0]=0,d[1]=0,d[2]=0,d[3]=0,d[4]=0;for(var p=0,g=0;g<s;g++)if(a.get(g,h))1==(1&p)&&p++,d[p]++;else if(0==(1&p))if(4===p)if(e.foundPatternCross(d)){if(!0!==this.handlePossibleCenter(d,h,g,r)){d[0]=d[2],d[1]=d[3],d[2]=d[4],d[3]=1,d[4]=0,p=3;continue}if(c=2,!0===this.hasSkipped)f=this.haveMultiplyConfirmedCenters();else{var v=this.findRowSkip();v>d[2]&&(h+=v-d[2]-c,g=s-1)}p=0,d[0]=0,d[1]=0,d[2]=0,d[3]=0,d[4]=0}else d[0]=d[2],d[1]=d[3],d[2]=d[4],d[3]=1,d[4]=0,p=3;else d[++p]++;else d[p]++;if(e.foundPatternCross(d))!0===this.handlePossibleCenter(d,h,s,r)&&(c=d[0],this.hasSkipped&&(f=this.haveMultiplyConfirmedCenters()))}var y=this.selectBestPatterns();return i.default.orderBestPatterns(y),new u.default(y)},e.centerFromEnd=function(e,t){return t-e[4]-e[3]-e[2]/2},e.foundPatternCross=function(e){for(var t=0,n=0;n<5;n++){var r=e[n];if(0===r)return!1;t+=r}if(t<7)return!1;var o=t/7,i=o/2;return Math.abs(o-e[0])<i&&Math.abs(o-e[1])<i&&Math.abs(3*o-e[2])<3*i&&Math.abs(o-e[3])<i&&Math.abs(o-e[4])<i},e.prototype.getCrossCheckStateCount=function(){var e=this.crossCheckStateCount;return e[0]=0,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e},e.prototype.crossCheckDiagonal=function(t,n,r,o){for(var i=this.getCrossCheckStateCount(),a=0,u=this.image;t>=a&&n>=a&&u.get(n-a,t-a);)i[2]++,a++;if(t<a||n<a)return!1;for(;t>=a&&n>=a&&!u.get(n-a,t-a)&&i[1]<=r;)i[1]++,a++;if(t<a||n<a||i[1]>r)return!1;for(;t>=a&&n>=a&&u.get(n-a,t-a)&&i[0]<=r;)i[0]++,a++;if(i[0]>r)return!1;var l=u.getHeight(),s=u.getWidth();for(a=1;t+a<l&&n+a<s&&u.get(n+a,t+a);)i[2]++,a++;if(t+a>=l||n+a>=s)return!1;for(;t+a<l&&n+a<s&&!u.get(n+a,t+a)&&i[3]<r;)i[3]++,a++;if(t+a>=l||n+a>=s||i[3]>=r)return!1;for(;t+a<l&&n+a<s&&u.get(n+a,t+a)&&i[4]<r;)i[4]++,a++;if(i[4]>=r)return!1;var c=i[0]+i[1]+i[2]+i[3]+i[4];return Math.abs(c-o)<2*o&&e.foundPatternCross(i)},e.prototype.crossCheckVertical=function(t,n,r,o){for(var i=this.image,a=i.getHeight(),u=this.getCrossCheckStateCount(),l=t;l>=0&&i.get(n,l);)u[2]++,l--;if(l<0)return NaN;for(;l>=0&&!i.get(n,l)&&u[1]<=r;)u[1]++,l--;if(l<0||u[1]>r)return NaN;for(;l>=0&&i.get(n,l)&&u[0]<=r;)u[0]++,l--;if(u[0]>r)return NaN;for(l=t+1;l<a&&i.get(n,l);)u[2]++,l++;if(l===a)return NaN;for(;l<a&&!i.get(n,l)&&u[3]<r;)u[3]++,l++;if(l===a||u[3]>=r)return NaN;for(;l<a&&i.get(n,l)&&u[4]<r;)u[4]++,l++;if(u[4]>=r)return NaN;var s=u[0]+u[1]+u[2]+u[3]+u[4];return 5*Math.abs(s-o)>=2*o?NaN:e.foundPatternCross(u)?e.centerFromEnd(u,l):NaN},e.prototype.crossCheckHorizontal=function(t,n,r,o){for(var i=this.image,a=i.getWidth(),u=this.getCrossCheckStateCount(),l=t;l>=0&&i.get(l,n);)u[2]++,l--;if(l<0)return NaN;for(;l>=0&&!i.get(l,n)&&u[1]<=r;)u[1]++,l--;if(l<0||u[1]>r)return NaN;for(;l>=0&&i.get(l,n)&&u[0]<=r;)u[0]++,l--;if(u[0]>r)return NaN;for(l=t+1;l<a&&i.get(l,n);)u[2]++,l++;if(l===a)return NaN;for(;l<a&&!i.get(l,n)&&u[3]<r;)u[3]++,l++;if(l===a||u[3]>=r)return NaN;for(;l<a&&i.get(l,n)&&u[4]<r;)u[4]++,l++;if(u[4]>=r)return NaN;var s=u[0]+u[1]+u[2]+u[3]+u[4];return 5*Math.abs(s-o)>=o?NaN:e.foundPatternCross(u)?e.centerFromEnd(u,l):NaN},e.prototype.handlePossibleCenter=function(t,n,r,o){var i=t[0]+t[1]+t[2]+t[3]+t[4],u=e.centerFromEnd(t,r),l=this.crossCheckVertical(n,Math.floor(u),t[2],i);if(!isNaN(l)&&(u=this.crossCheckHorizontal(Math.floor(u),Math.floor(l),t[2],i),!isNaN(u)&&(!o||this.crossCheckDiagonal(Math.floor(l),Math.floor(u),t[2],i)))){for(var s=i/7,c=!1,f=this.possibleCenters,d=0,h=f.length;d<h;d++){var p=f[d];if(p.aboutEquals(s,l,u)){f[d]=p.combineEstimate(l,u,s),c=!0;break}}if(!c){var g=new a.default(u,l,s);f.push(g),null!==this.resultPointCallback&&void 0!==this.resultPointCallback&&this.resultPointCallback.foundPossibleResultPoint(g)}return!0}return!1},e.prototype.findRowSkip=function(){var t,n;if(this.possibleCenters.length<=1)return 0;var o=null;try{for(var i=r(this.possibleCenters),a=i.next();!a.done;a=i.next()){var u=a.value;if(u.getCount()>=e.CENTER_QUORUM){if(null!=o)return this.hasSkipped=!0,Math.floor((Math.abs(o.getX()-u.getX())-Math.abs(o.getY()-u.getY()))/2);o=u}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return 0},e.prototype.haveMultiplyConfirmedCenters=function(){var t,n,o,i,a=0,u=0,l=this.possibleCenters.length;try{for(var s=r(this.possibleCenters),c=s.next();!c.done;c=s.next()){(g=c.value).getCount()>=e.CENTER_QUORUM&&(a++,u+=g.getEstimatedModuleSize())}}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}if(a<3)return!1;var f=u/l,d=0;try{for(var h=r(this.possibleCenters),p=h.next();!p.done;p=h.next()){var g=p.value;d+=Math.abs(g.getEstimatedModuleSize()-f)}}catch(e){o={error:e}}finally{try{p&&!p.done&&(i=h.return)&&i.call(h)}finally{if(o)throw o.error}}return d<=.05*u},e.prototype.selectBestPatterns=function(){var e,t,n,o,i=this.possibleCenters.length;if(i<3)throw new l.default;var a,u=this.possibleCenters;if(i>3){var s=0,c=0;try{for(var f=r(this.possibleCenters),d=f.next();!d.done;d=f.next()){var h=d.value.getEstimatedModuleSize();s+=h,c+=h*h}}catch(t){e={error:t}}finally{try{d&&!d.done&&(t=f.return)&&t.call(f)}finally{if(e)throw e.error}}a=s/i;var p=Math.sqrt(c/i-a*a);u.sort((function(e,t){var n=Math.abs(t.getEstimatedModuleSize()-a),r=Math.abs(e.getEstimatedModuleSize()-a);return n<r?-1:n>r?1:0}));for(var g=Math.max(.2*a,p),v=0;v<u.length&&u.length>3;v++){var y=u[v];Math.abs(y.getEstimatedModuleSize()-a)>g&&(u.splice(v,1),v--)}}if(u.length>3){s=0;try{for(var m=r(u),w=m.next();!w.done;w=m.next()){s+=w.value.getEstimatedModuleSize()}}catch(e){n={error:e}}finally{try{w&&!w.done&&(o=m.return)&&o.call(m)}finally{if(n)throw n.error}}a=s/u.length,u.sort((function(e,t){if(t.getCount()===e.getCount()){var n=Math.abs(t.getEstimatedModuleSize()-a),r=Math.abs(e.getEstimatedModuleSize()-a);return n<r?1:n>r?-1:0}return t.getCount()-e.getCount()})),u.splice(3)}return[u[0],u[1],u[2]]},e.CENTER_QUORUM=2,e.MIN_SKIP=3,e.MAX_MODULES=57,e}();t.default=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t,n,r,o){var i=e.call(this,t,n)||this;return i.estimatedModuleSize=r,i.count=o,void 0===o&&(i.count=1),i}return o(t,e),t.prototype.getEstimatedModuleSize=function(){return this.estimatedModuleSize},t.prototype.getCount=function(){return this.count},t.prototype.aboutEquals=function(e,t,n){if(Math.abs(t-this.getY())<=e&&Math.abs(n-this.getX())<=e){var r=Math.abs(e-this.estimatedModuleSize);return r<=1||r<=this.estimatedModuleSize}return!1},t.prototype.combineEstimate=function(e,n,r){var o=this.count+1;return new t((this.count*this.getX()+n)/o,(this.count*this.getY()+e)/o,(this.count*this.estimatedModuleSize+r)/o,o)},t}(n(13).default);t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e){this.bottomLeft=e[0],this.topLeft=e[1],this.topRight=e[2]}return e.prototype.getBottomLeft=function(){return this.bottomLeft},e.prototype.getTopLeft=function(){return this.topLeft},e.prototype.getTopRight=function(){return this.topRight},e}();t.default=r},function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(191),i=n(4),a=function(){function e(e,t,n,r,o,i,a){this.image=e,this.startX=t,this.startY=n,this.width=r,this.height=o,this.moduleSize=i,this.resultPointCallback=a,this.possibleCenters=[],this.crossCheckStateCount=new Int32Array(3)}return e.prototype.find=function(){for(var e=this.startX,t=this.height,n=e+this.width,r=this.startY+t/2,o=new Int32Array(3),a=this.image,u=0;u<t;u++){var l=r+(0==(1&u)?Math.floor((u+1)/2):-Math.floor((u+1)/2));o[0]=0,o[1]=0,o[2]=0;for(var s=e;s<n&&!a.get(s,l);)s++;for(var c=0;s<n;){if(a.get(s,l))if(1===c)o[1]++;else if(2===c){var f;if(this.foundPatternCross(o))if(null!==(f=this.handlePossibleCenter(o,l,s)))return f;o[0]=o[2],o[1]=1,o[2]=0,c=1}else o[++c]++;else 1===c&&c++,o[c]++;s++}if(this.foundPatternCross(o))if(null!==(f=this.handlePossibleCenter(o,l,n)))return f}if(0!==this.possibleCenters.length)return this.possibleCenters[0];throw new i.default},e.centerFromEnd=function(e,t){return t-e[2]-e[1]/2},e.prototype.foundPatternCross=function(e){for(var t=this.moduleSize,n=t/2,r=0;r<3;r++)if(Math.abs(t-e[r])>=n)return!1;return!0},e.prototype.crossCheckVertical=function(t,n,r,o){var i=this.image,a=i.getHeight(),u=this.crossCheckStateCount;u[0]=0,u[1]=0,u[2]=0;for(var l=t;l>=0&&i.get(n,l)&&u[1]<=r;)u[1]++,l--;if(l<0||u[1]>r)return NaN;for(;l>=0&&!i.get(n,l)&&u[0]<=r;)u[0]++,l--;if(u[0]>r)return NaN;for(l=t+1;l<a&&i.get(n,l)&&u[1]<=r;)u[1]++,l++;if(l===a||u[1]>r)return NaN;for(;l<a&&!i.get(n,l)&&u[2]<=r;)u[2]++,l++;if(u[2]>r)return NaN;var s=u[0]+u[1]+u[2];return 5*Math.abs(s-o)>=2*o?NaN:this.foundPatternCross(u)?e.centerFromEnd(u,l):NaN},e.prototype.handlePossibleCenter=function(t,n,i){var a,u,l=t[0]+t[1]+t[2],s=e.centerFromEnd(t,i),c=this.crossCheckVertical(n,s,2*t[1],l);if(!isNaN(c)){var f=(t[0]+t[1]+t[2])/3;try{for(var d=r(this.possibleCenters),h=d.next();!h.done;h=d.next()){var p=h.value;if(p.aboutEquals(f,c,s))return p.combineEstimate(c,s,f)}}catch(e){a={error:e}}finally{try{h&&!h.done&&(u=d.return)&&u.call(d)}finally{if(a)throw a.error}}var g=new o.default(s,c,f);this.possibleCenters.push(g),null!==this.resultPointCallback&&void 0!==this.resultPointCallback&&this.resultPointCallback.foundPossibleResultPoint(g)}return null},e}();t.default=a},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t,n,r){var o=e.call(this,t,n)||this;return o.estimatedModuleSize=r,o}return o(t,e),t.prototype.aboutEquals=function(e,t,n){if(Math.abs(t-this.getY())<=e&&Math.abs(n-this.getX())<=e){var r=Math.abs(e-this.estimatedModuleSize);return r<=1||r<=this.estimatedModuleSize}return!1},t.prototype.combineEstimate=function(e,n,r){return new t((this.getX()+n)/2,(this.getY()+e)/2,(this.estimatedModuleSize+r)/2)},t}(n(13).default);t.default=i},function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(13),i=n(15),a=n(33),u=n(193),l=function(){function e(){}return e.detectMultiple=function(t,n,r){var o=t.getBlackMatrix(),i=e.detect(r,o);return i.length||((o=o.clone()).rotate180(),i=e.detect(r,o)),new u.default(o,i)},e.detect=function(t,n){for(var o,i,a=new Array,u=0,l=0,s=!1;u<n.getHeight();){var c=e.findVertices(n,u,l);if(null!=c[0]||null!=c[3]){if(s=!0,a.push(c),!t)break;null!=c[2]?(l=Math.trunc(c[2].getX()),u=Math.trunc(c[2].getY())):(l=Math.trunc(c[4].getX()),u=Math.trunc(c[4].getY()))}else{if(!s)break;s=!1,l=0;try{for(var f=r(a),d=f.next();!d.done;d=f.next()){var h=d.value;null!=h[1]&&(u=Math.trunc(Math.max(u,h[1].getY()))),null!=h[3]&&(u=Math.max(u,Math.trunc(h[3].getY())))}}catch(e){o={error:e}}finally{try{d&&!d.done&&(i=f.return)&&i.call(f)}finally{if(o)throw o.error}}u+=e.ROW_STEP}}return a},e.findVertices=function(t,n,r){var o=t.getHeight(),i=t.getWidth(),a=new Array(8);return e.copyToResult(a,e.findRowsWithPattern(t,o,i,n,r,e.START_PATTERN),e.INDEXES_START_PATTERN),null!=a[4]&&(r=Math.trunc(a[4].getX()),n=Math.trunc(a[4].getY())),e.copyToResult(a,e.findRowsWithPattern(t,o,i,n,r,e.STOP_PATTERN),e.INDEXES_STOP_PATTERN),a},e.copyToResult=function(e,t,n){for(var r=0;r<n.length;r++)e[n[r]]=t[r]},e.findRowsWithPattern=function(t,n,r,i,u,l){for(var s=new Array(4),c=!1,f=new Int32Array(l.length);i<n;i+=e.ROW_STEP){if(null!=(g=e.findGuardPattern(t,u,i,r,!1,l,f))){for(;i>0;){if(null==(p=e.findGuardPattern(t,u,--i,r,!1,l,f))){i++;break}g=p}s[0]=new o.default(g[0],i),s[1]=new o.default(g[1],i),c=!0;break}}var d=i+1;if(c){for(var h=0,p=Int32Array.from([Math.trunc(s[0].getX()),Math.trunc(s[1].getX())]);d<n;d++){var g;if(null!=(g=e.findGuardPattern(t,p[0],d,r,!1,l,f))&&Math.abs(p[0]-g[0])<e.MAX_PATTERN_DRIFT&&Math.abs(p[1]-g[1])<e.MAX_PATTERN_DRIFT)p=g,h=0;else{if(h>e.SKIPPED_ROW_COUNT_MAX)break;h++}}d-=h+1,s[2]=new o.default(p[0],d),s[3]=new o.default(p[1],d)}return d-i<e.BARCODE_MIN_HEIGHT&&a.default.fill(s,null),s},e.findGuardPattern=function(t,n,r,o,u,l,s){a.default.fillWithin(s,0,s.length,0);for(var c=n,f=0;t.get(c,r)&&c>0&&f++<e.MAX_PIXEL_DRIFT;)c--;for(var d=c,h=0,p=l.length,g=u;d<o;d++){if(t.get(d,r)!==g)s[h]++;else{if(h===p-1){if(e.patternMatchVariance(s,l,e.MAX_INDIVIDUAL_VARIANCE)<e.MAX_AVG_VARIANCE)return new Int32Array([c,d]);c+=s[0]+s[1],i.default.arraycopy(s,2,s,0,h-1),s[h-1]=0,s[h]=0,h--}else h++;s[h]=1,g=!g}}return h===p-1&&e.patternMatchVariance(s,l,e.MAX_INDIVIDUAL_VARIANCE)<e.MAX_AVG_VARIANCE?new Int32Array([c,d-1]):null},e.patternMatchVariance=function(e,t,n){for(var r=e.length,o=0,i=0,a=0;a<r;a++)o+=e[a],i+=t[a];if(o<i)return 1/0;var u=o/i;n*=u;for(var l=0,s=0;s<r;s++){var c=e[s],f=t[s]*u,d=c>f?c-f:f-c;if(d>n)return 1/0;l+=d}return l/o},e.INDEXES_START_PATTERN=Int32Array.from([0,4,1,5]),e.INDEXES_STOP_PATTERN=Int32Array.from([6,2,7,3]),e.MAX_AVG_VARIANCE=.42,e.MAX_INDIVIDUAL_VARIANCE=.8,e.START_PATTERN=Int32Array.from([8,1,1,1,1,1,1,3]),e.STOP_PATTERN=Int32Array.from([7,1,1,3,1,1,1,2,1]),e.MAX_PIXEL_DRIFT=3,e.MAX_PATTERN_DRIFT=5,e.SKIPPED_ROW_COUNT_MAX=25,e.ROW_STEP=5,e.BARCODE_MIN_HEIGHT=10,e}();t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){this.bits=e,this.points=t}return e.prototype.getBits=function(){return this.bits},e.prototype.getPoints=function(){return this.points},e}();t.default=r},function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(22),i=n(8),a=n(4),u=n(20),l=n(35),s=n(195),c=n(122),f=n(198),d=n(200),h=n(123),p=n(201),g=n(124),v=n(202),y=n(203),m=n(80),w=function(){function e(){}return e.decode=function(t,n,r,o,i,u,l){for(var s,d=new c.default(t,n,r,o,i),p=null,g=null,v=!0;;v=!1){if(null!=n&&(p=e.getRowIndicatorColumn(t,d,n,!0,u,l)),null!=o&&(g=e.getRowIndicatorColumn(t,d,o,!1,u,l)),null==(s=e.merge(p,g)))throw a.default.getNotFoundInstance();var y=s.getBoundingBox();if(!v||null==y||!(y.getMinY()<d.getMinY()||y.getMaxY()>d.getMaxY()))break;d=y}s.setBoundingBox(d);var m=s.getBarcodeColumnCount()+1;s.setDetectionResultColumn(0,p),s.setDetectionResultColumn(m,g);for(var w=null!=p,b=1;b<=m;b++){var _=w?b:m-b;if(void 0===s.getDetectionResultColumn(_)){var C=void 0;C=0===_||_===m?new f.default(d,0===_):new h.default(d),s.setDetectionResultColumn(_,C);for(var E=-1,A=E,I=d.getMinY();I<=d.getMaxY();I++){if((E=e.getStartColumn(s,_,I,w))<0||E>d.getMaxX()){if(-1===A)continue;E=A}var S=e.detectCodeword(t,d.getMinX(),d.getMaxX(),w,E,I,u,l);null!=S&&(C.setCodeword(I,S),A=E,u=Math.min(u,S.getWidth()),l=Math.max(l,S.getWidth()))}}}return e.createDecoderResult(s)},e.merge=function(t,n){if(null==t&&null==n)return null;var r=e.getBarcodeMetadata(t,n);if(null==r)return null;var o=c.default.merge(e.adjustBoundingBox(t),e.adjustBoundingBox(n));return new d.default(r,o)},e.adjustBoundingBox=function(t){var n,o;if(null==t)return null;var i=t.getRowHeights();if(null==i)return null;var a=e.getMax(i),u=0;try{for(var l=r(i),s=l.next();!s.done;s=l.next()){var c=s.value;if(u+=a-c,c>0)break}}catch(e){n={error:e}}finally{try{s&&!s.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}for(var f=t.getCodewords(),d=0;u>0&&null==f[d];d++)u--;var h=0;for(d=i.length-1;d>=0&&(h+=a-i[d],!(i[d]>0));d--);for(d=f.length-1;h>0&&null==f[d];d--)h--;return t.getBoundingBox().addMissingRows(u,h,t.isLeft())},e.getMax=function(e){var t,n,o=-1;try{for(var i=r(e),a=i.next();!a.done;a=i.next()){var u=a.value;o=Math.max(o,u)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return o},e.getBarcodeMetadata=function(e,t){var n,r;return null==e||null==(n=e.getBarcodeMetadata())?null==t?null:t.getBarcodeMetadata():null==t||null==(r=t.getBarcodeMetadata())?n:n.getColumnCount()!==r.getColumnCount()&&n.getErrorCorrectionLevel()!==r.getErrorCorrectionLevel()&&n.getRowCount()!==r.getRowCount()?null:n},e.getRowIndicatorColumn=function(t,n,r,o,i,a){for(var u=new f.default(n,o),l=0;l<2;l++)for(var s=0===l?1:-1,c=Math.trunc(Math.trunc(r.getX())),d=Math.trunc(Math.trunc(r.getY()));d<=n.getMaxY()&&d>=n.getMinY();d+=s){var h=e.detectCodeword(t,0,t.getWidth(),o,c,d,i,a);null!=h&&(u.setCodeword(d,h),c=o?h.getStartX():h.getEndX())}return u},e.adjustCodewordCount=function(t,n){var r=n[0][1],o=r.getValue(),i=t.getBarcodeColumnCount()*t.getBarcodeRowCount()-e.getNumberOfECCodeWords(t.getBarcodeECLevel());if(0===o.length){if(i<1||i>l.default.MAX_CODEWORDS_IN_BARCODE)throw a.default.getNotFoundInstance();r.setValue(i)}else o[0]!==i&&r.setValue(i)},e.createDecoderResult=function(t){var n=e.createBarcodeMatrix(t);e.adjustCodewordCount(t,n);for(var r=new Array,o=new Int32Array(t.getBarcodeRowCount()*t.getBarcodeColumnCount()),i=[],a=new Array,u=0;u<t.getBarcodeRowCount();u++)for(var s=0;s<t.getBarcodeColumnCount();s++){var c=n[u][s+1].getValue(),f=u*t.getBarcodeColumnCount()+s;0===c.length?r.push(f):1===c.length?o[f]=c[0]:(a.push(f),i.push(c))}for(var d=new Array(i.length),h=0;h<d.length;h++)d[h]=i[h];return e.createDecoderResultFromAmbiguousValues(t.getBarcodeECLevel(),o,l.default.toIntArray(r),l.default.toIntArray(a),d)},e.createDecoderResultFromAmbiguousValues=function(t,n,r,i,a){for(var u=new Int32Array(i.length),l=100;l-- >0;){for(var s=0;s<u.length;s++)n[i[s]]=a[s][u[s]];try{return e.decodeCodewords(n,t,r)}catch(e){if(!(e instanceof o.default))throw e}if(0===u.length)throw o.default.getChecksumInstance();for(s=0;s<u.length;s++){if(u[s]<a[s].length-1){u[s]++;break}if(u[s]=0,s===u.length-1)throw o.default.getChecksumInstance()}}throw o.default.getChecksumInstance()},e.createBarcodeMatrix=function(e){for(var t,n,o,i,a=Array.from({length:e.getBarcodeRowCount()},(function(){return new Array(e.getBarcodeColumnCount()+2)})),u=0;u<a.length;u++)for(var l=0;l<a[u].length;l++)a[u][l]=new g.default;var s=0;try{for(var c=r(e.getDetectionResultColumns()),f=c.next();!f.done;f=c.next()){var d=f.value;if(null!=d)try{for(var h=r(d.getCodewords()),p=h.next();!p.done;p=h.next()){var v=p.value;if(null!=v){var y=v.getRowNumber();if(y>=0){if(y>=a.length)continue;a[y][s].setValue(v.getValue())}}}}catch(e){o={error:e}}finally{try{p&&!p.done&&(i=h.return)&&i.call(h)}finally{if(o)throw o.error}}s++}}catch(e){t={error:e}}finally{try{f&&!f.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}return a},e.isValidBarcodeColumn=function(e,t){return t>=0&&t<=e.getBarcodeColumnCount()+1},e.getStartColumn=function(t,n,o,i){var a,u,l=i?1:-1,s=null;if(e.isValidBarcodeColumn(t,n-l)&&(s=t.getDetectionResultColumn(n-l).getCodeword(o)),null!=s)return i?s.getEndX():s.getStartX();if(null!=(s=t.getDetectionResultColumn(n).getCodewordNearby(o)))return i?s.getStartX():s.getEndX();if(e.isValidBarcodeColumn(t,n-l)&&(s=t.getDetectionResultColumn(n-l).getCodewordNearby(o)),null!=s)return i?s.getEndX():s.getStartX();for(var c=0;e.isValidBarcodeColumn(t,n-l);){n-=l;try{for(var f=r(t.getDetectionResultColumn(n).getCodewords()),d=f.next();!d.done;d=f.next()){var h=d.value;if(null!=h)return(i?h.getEndX():h.getStartX())+l*c*(h.getEndX()-h.getStartX())}}catch(e){a={error:e}}finally{try{d&&!d.done&&(u=f.return)&&u.call(f)}finally{if(a)throw a.error}}c++}return i?t.getBoundingBox().getMinX():t.getBoundingBox().getMaxX()},e.detectCodeword=function(t,n,r,o,i,a,s,c){i=e.adjustCodewordStartColumn(t,n,r,o,i,a);var f,d=e.getModuleBitCount(t,n,r,o,i,a);if(null==d)return null;var h=u.default.sum(d);if(o)f=i+h;else{for(var g=0;g<d.length/2;g++){var y=d[g];d[g]=d[d.length-1-g],d[d.length-1-g]=y}i=(f=i)-h}if(!e.checkCodewordSkew(h,s,c))return null;var m=v.default.getDecodedValue(d),w=l.default.getCodeword(m);return-1===w?null:new p.default(i,f,e.getCodewordBucketNumber(m),w)},e.getModuleBitCount=function(e,t,n,r,o,i){for(var a=o,u=new Int32Array(8),l=0,s=r?1:-1,c=r;(r?a<n:a>=t)&&l<u.length;)e.get(a,i)===c?(u[l]++,a+=s):(l++,c=!c);return l===u.length||a===(r?n:t)&&l===u.length-1?u:null},e.getNumberOfECCodeWords=function(e){return 2<<e},e.adjustCodewordStartColumn=function(t,n,r,o,i,a){for(var u=i,l=o?-1:1,s=0;s<2;s++){for(;(o?u>=n:u<r)&&o===t.get(u,a);){if(Math.abs(i-u)>e.CODEWORD_SKEW_SIZE)return i;u+=l}l=-l,o=!o}return u},e.checkCodewordSkew=function(t,n,r){return n-e.CODEWORD_SKEW_SIZE<=t&&t<=r+e.CODEWORD_SKEW_SIZE},e.decodeCodewords=function(t,n,r){if(0===t.length)throw i.default.getFormatInstance();var o=1<<n+1,a=e.correctErrors(t,r,o);e.verifyCodewordCount(t,o);var u=y.default.decode(t,""+n);return u.setErrorsCorrected(a),u.setErasures(r.length),u},e.correctErrors=function(t,n,r){if(null!=n&&n.length>r/2+e.MAX_ERRORS||r<0||r>e.MAX_EC_CODEWORDS)throw o.default.getChecksumInstance();return e.errorCorrection.decode(t,r,n)},e.verifyCodewordCount=function(e,t){if(e.length<4)throw i.default.getFormatInstance();var n=e[0];if(n>e.length)throw i.default.getFormatInstance();if(0===n){if(!(t<e.length))throw i.default.getFormatInstance();e[0]=e.length-t}},e.getBitCountForCodeword=function(e){for(var t=new Int32Array(8),n=0,r=t.length-1;!((1&e)!==n&&(n=1&e,--r<0));)t[r]++,e>>=1;return t},e.getCodewordBucketNumber=function(e){return e instanceof Int32Array?this.getCodewordBucketNumber_Int32Array(e):this.getCodewordBucketNumber_number(e)},e.getCodewordBucketNumber_number=function(t){return e.getCodewordBucketNumber(e.getBitCountForCodeword(t))},e.getCodewordBucketNumber_Int32Array=function(e){return(e[0]-e[2]+e[4]-e[6]+9)%9},e.toString=function(e){for(var t=new m.default,n=0;n<e.length;n++){t.format("Row %2d: ",n);for(var r=0;r<e[n].length;r++){var o=e[n][r];0===o.getValue().length?t.format("        ",null):t.format("%4d(%2d)",o.getValue()[0],o.getConfidence(o.getValue()[0]))}t.format("%n")}return t.toString()},e.CODEWORD_SKEW_SIZE=2,e.MAX_ERRORS=3,e.MAX_EC_CODEWORDS=512,e.errorCorrection=new s.default,e}();t.default=w},function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(22),i=n(121),a=n(196),u=function(){function e(){this.field=a.default.PDF417_GF}return e.prototype.decode=function(e,t,n){for(var a,u,l=new i.default(this.field,e),s=new Int32Array(t),c=!1,f=t;f>0;f--){var d=l.evaluateAt(this.field.exp(f));s[t-f]=d,0!==d&&(c=!0)}if(!c)return 0;var h=this.field.getOne();if(null!=n)try{for(var p=r(n),g=p.next();!g.done;g=p.next()){var v=g.value,y=this.field.exp(e.length-1-v),m=new i.default(this.field,new Int32Array([this.field.subtract(0,y),1]));h=h.multiply(m)}}catch(e){a={error:e}}finally{try{g&&!g.done&&(u=p.return)&&u.call(p)}finally{if(a)throw a.error}}var w=new i.default(this.field,s),b=this.runEuclideanAlgorithm(this.field.buildMonomial(t,1),w,t),_=b[0],C=b[1],E=this.findErrorLocations(_),A=this.findErrorMagnitudes(C,_,E);for(f=0;f<E.length;f++){var I=e.length-1-this.field.log(E[f]);if(I<0)throw o.default.getChecksumInstance();e[I]=this.field.subtract(e[I],A[f])}return E.length},e.prototype.runEuclideanAlgorithm=function(e,t,n){if(e.getDegree()<t.getDegree()){var r=e;e=t,t=r}for(var i=e,a=t,u=this.field.getZero(),l=this.field.getOne();a.getDegree()>=Math.round(n/2);){var s=i,c=u;if(u=l,(i=a).isZero())throw o.default.getChecksumInstance();a=s;for(var f=this.field.getZero(),d=i.getCoefficient(i.getDegree()),h=this.field.inverse(d);a.getDegree()>=i.getDegree()&&!a.isZero();){var p=a.getDegree()-i.getDegree(),g=this.field.multiply(a.getCoefficient(a.getDegree()),h);f=f.add(this.field.buildMonomial(p,g)),a=a.subtract(i.multiplyByMonomial(p,g))}l=f.multiply(u).subtract(c).negative()}var v=l.getCoefficient(0);if(0===v)throw o.default.getChecksumInstance();var y=this.field.inverse(v);return[l.multiply(y),a.multiply(y)]},e.prototype.findErrorLocations=function(e){for(var t=e.getDegree(),n=new Int32Array(t),r=0,i=1;i<this.field.getSize()&&r<t;i++)0===e.evaluateAt(i)&&(n[r]=this.field.inverse(i),r++);if(r!==t)throw o.default.getChecksumInstance();return n},e.prototype.findErrorMagnitudes=function(e,t,n){for(var r=t.getDegree(),o=new Int32Array(r),a=1;a<=r;a++)o[r-a]=this.field.multiply(a,t.getCoefficient(a));var u=new i.default(this.field,o),l=n.length,s=new Int32Array(l);for(a=0;a<l;a++){var c=this.field.inverse(n[a]),f=this.field.subtract(0,e.evaluateAt(c)),d=this.field.inverse(u.evaluateAt(c));s[a]=this.field.multiply(f,d)}return s},e}();t.default=u},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(35),a=n(121),u=n(7),l=function(e){function t(t,n){var r=e.call(this)||this;r.modulus=t,r.expTable=new Int32Array(t),r.logTable=new Int32Array(t);for(var o=1,i=0;i<t;i++)r.expTable[i]=o,o=o*n%t;for(i=0;i<t-1;i++)r.logTable[r.expTable[i]]=i;return r.zero=new a.default(r,new Int32Array([0])),r.one=new a.default(r,new Int32Array([1])),r}return o(t,e),t.prototype.getZero=function(){return this.zero},t.prototype.getOne=function(){return this.one},t.prototype.buildMonomial=function(e,t){if(e<0)throw new u.default;if(0===t)return this.zero;var n=new Int32Array(e+1);return n[0]=t,new a.default(this,n)},t.PDF417_GF=new t(i.default.NUMBER_OF_CODEWORDS,3),t}(n(197).default);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(7),o=n(71),i=function(){function e(){}return e.prototype.add=function(e,t){return(e+t)%this.modulus},e.prototype.subtract=function(e,t){return(this.modulus+e-t)%this.modulus},e.prototype.exp=function(e){return this.expTable[e]},e.prototype.log=function(e){if(0===e)throw new r.default;return this.logTable[e]},e.prototype.inverse=function(e){if(0===e)throw new o.default;return this.expTable[this.modulus-this.logTable[e]-1]},e.prototype.multiply=function(e,t){return 0===e||0===t?0:this.expTable[(this.logTable[e]+this.logTable[t])%(this.modulus-1)]},e.prototype.getSize=function(){return this.modulus},e.prototype.equals=function(e){return e===this},e}();t.default=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__values||function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(35),u=n(199),l=n(123),s=n(124),c=function(e){function t(t,n){var r=e.call(this,t)||this;return r._isLeft=n,r}return o(t,e),t.prototype.setRowNumbers=function(){var e,t;try{for(var n=i(this.getCodewords()),r=n.next();!r.done;r=n.next()){var o=r.value;null!=o&&o.setRowNumberAsRowIndicatorColumn()}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},t.prototype.adjustCompleteIndicatorColumnRowNumbers=function(e){var t=this.getCodewords();this.setRowNumbers(),this.removeIncorrectCodewords(t,e);for(var n=this.getBoundingBox(),r=this._isLeft?n.getTopLeft():n.getTopRight(),o=this._isLeft?n.getBottomLeft():n.getBottomRight(),i=this.imageRowToCodewordIndex(Math.trunc(r.getY())),a=this.imageRowToCodewordIndex(Math.trunc(o.getY())),u=-1,l=1,s=0,c=i;c<a;c++)if(null!=t[c]){var f=t[c],d=f.getRowNumber()-u;if(0===d)s++;else if(1===d)l=Math.max(l,s),s=1,u=f.getRowNumber();else if(d<0||f.getRowNumber()>=e.getRowCount()||d>c)t[c]=null;else{for(var h=void 0,p=(h=l>2?(l-2)*d:d)>=c,g=1;g<=h&&!p;g++)p=null!=t[c-g];p?t[c]=null:(u=f.getRowNumber(),s=1)}}},t.prototype.getRowHeights=function(){var e,t,n=this.getBarcodeMetadata();if(null==n)return null;this.adjustIncompleteIndicatorColumnRowNumbers(n);var r=new Int32Array(n.getRowCount());try{for(var o=i(this.getCodewords()),a=o.next();!a.done;a=o.next()){var u=a.value;if(null!=u){var l=u.getRowNumber();if(l>=r.length)continue;r[l]++}}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}return r},t.prototype.adjustIncompleteIndicatorColumnRowNumbers=function(e){for(var t=this.getBoundingBox(),n=this._isLeft?t.getTopLeft():t.getTopRight(),r=this._isLeft?t.getBottomLeft():t.getBottomRight(),o=this.imageRowToCodewordIndex(Math.trunc(n.getY())),i=this.imageRowToCodewordIndex(Math.trunc(r.getY())),a=this.getCodewords(),u=-1,l=1,s=0,c=o;c<i;c++)if(null!=a[c]){var f=a[c];f.setRowNumberAsRowIndicatorColumn();var d=f.getRowNumber()-u;0===d?s++:1===d?(l=Math.max(l,s),s=1,u=f.getRowNumber()):f.getRowNumber()>=e.getRowCount()?a[c]=null:(u=f.getRowNumber(),s=1)}},t.prototype.getBarcodeMetadata=function(){var e,t,n=this.getCodewords(),r=new s.default,o=new s.default,l=new s.default,c=new s.default;try{for(var f=i(n),d=f.next();!d.done;d=f.next()){var h=d.value;if(null!=h){h.setRowNumberAsRowIndicatorColumn();var p=h.getValue()%30,g=h.getRowNumber();switch(this._isLeft||(g+=2),g%3){case 0:o.setValue(3*p+1);break;case 1:c.setValue(p/3),l.setValue(p%3);break;case 2:r.setValue(p+1)}}}}catch(t){e={error:t}}finally{try{d&&!d.done&&(t=f.return)&&t.call(f)}finally{if(e)throw e.error}}if(0===r.getValue().length||0===o.getValue().length||0===l.getValue().length||0===c.getValue().length||r.getValue()[0]<1||o.getValue()[0]+l.getValue()[0]<a.default.MIN_ROWS_IN_BARCODE||o.getValue()[0]+l.getValue()[0]>a.default.MAX_ROWS_IN_BARCODE)return null;var v=new u.default(r.getValue()[0],o.getValue()[0],l.getValue()[0],c.getValue()[0]);return this.removeIncorrectCodewords(n,v),v},t.prototype.removeIncorrectCodewords=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(null!=e[n]){var o=r.getValue()%30,i=r.getRowNumber();if(i>t.getRowCount())e[n]=null;else switch(this._isLeft||(i+=2),i%3){case 0:3*o+1!==t.getRowCountUpperPart()&&(e[n]=null);break;case 1:Math.trunc(o/3)===t.getErrorCorrectionLevel()&&o%3===t.getRowCountLowerPart()||(e[n]=null);break;case 2:o+1!==t.getColumnCount()&&(e[n]=null)}}}},t.prototype.isLeft=function(){return this._isLeft},t.prototype.toString=function(){return"IsLeft: "+this._isLeft+"\n"+e.prototype.toString.call(this)},t}(l.default);t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t,n,r){this.columnCount=e,this.errorCorrectionLevel=r,this.rowCountUpperPart=t,this.rowCountLowerPart=n,this.rowCount=t+n}return e.prototype.getColumnCount=function(){return this.columnCount},e.prototype.getErrorCorrectionLevel=function(){return this.errorCorrectionLevel},e.prototype.getRowCount=function(){return this.rowCount},e.prototype.getRowCountUpperPart=function(){return this.rowCountUpperPart},e.prototype.getRowCountLowerPart=function(){return this.rowCountLowerPart},e}();t.default=r},function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(35),i=n(80),a=function(){function e(e,t){this.ADJUST_ROW_NUMBER_SKIP=2,this.barcodeMetadata=e,this.barcodeColumnCount=e.getColumnCount(),this.boundingBox=t,this.detectionResultColumns=new Array(this.barcodeColumnCount+2)}return e.prototype.getDetectionResultColumns=function(){this.adjustIndicatorColumnRowNumbers(this.detectionResultColumns[0]),this.adjustIndicatorColumnRowNumbers(this.detectionResultColumns[this.barcodeColumnCount+1]);var e,t=o.default.MAX_CODEWORDS_IN_BARCODE;do{e=t,t=this.adjustRowNumbersAndGetCount()}while(t>0&&t<e);return this.detectionResultColumns},e.prototype.adjustIndicatorColumnRowNumbers=function(e){null!=e&&e.adjustCompleteIndicatorColumnRowNumbers(this.barcodeMetadata)},e.prototype.adjustRowNumbersAndGetCount=function(){var e=this.adjustRowNumbersByRow();if(0===e)return 0;for(var t=1;t<this.barcodeColumnCount+1;t++)for(var n=this.detectionResultColumns[t].getCodewords(),r=0;r<n.length;r++)null!=n[r]&&(n[r].hasValidRowNumber()||this.adjustRowNumbers(t,r,n));return e},e.prototype.adjustRowNumbersByRow=function(){return this.adjustRowNumbersFromBothRI(),this.adjustRowNumbersFromLRI()+this.adjustRowNumbersFromRRI()},e.prototype.adjustRowNumbersFromBothRI=function(){if(null!=this.detectionResultColumns[0]&&null!=this.detectionResultColumns[this.barcodeColumnCount+1])for(var e=this.detectionResultColumns[0].getCodewords(),t=this.detectionResultColumns[this.barcodeColumnCount+1].getCodewords(),n=0;n<e.length;n++)if(null!=e[n]&&null!=t[n]&&e[n].getRowNumber()===t[n].getRowNumber())for(var r=1;r<=this.barcodeColumnCount;r++){var o=this.detectionResultColumns[r].getCodewords()[n];null!=o&&(o.setRowNumber(e[n].getRowNumber()),o.hasValidRowNumber()||(this.detectionResultColumns[r].getCodewords()[n]=null))}},e.prototype.adjustRowNumbersFromRRI=function(){if(null==this.detectionResultColumns[this.barcodeColumnCount+1])return 0;for(var t=0,n=this.detectionResultColumns[this.barcodeColumnCount+1].getCodewords(),r=0;r<n.length;r++)if(null!=n[r])for(var o=n[r].getRowNumber(),i=0,a=this.barcodeColumnCount+1;a>0&&i<this.ADJUST_ROW_NUMBER_SKIP;a--){var u=this.detectionResultColumns[a].getCodewords()[r];null!=u&&(i=e.adjustRowNumberIfValid(o,i,u),u.hasValidRowNumber()||t++)}return t},e.prototype.adjustRowNumbersFromLRI=function(){if(null==this.detectionResultColumns[0])return 0;for(var t=0,n=this.detectionResultColumns[0].getCodewords(),r=0;r<n.length;r++)if(null!=n[r])for(var o=n[r].getRowNumber(),i=0,a=1;a<this.barcodeColumnCount+1&&i<this.ADJUST_ROW_NUMBER_SKIP;a++){var u=this.detectionResultColumns[a].getCodewords()[r];null!=u&&(i=e.adjustRowNumberIfValid(o,i,u),u.hasValidRowNumber()||t++)}return t},e.adjustRowNumberIfValid=function(e,t,n){return null==n||n.hasValidRowNumber()||(n.isValidRowNumber(e)?(n.setRowNumber(e),t=0):++t),t},e.prototype.adjustRowNumbers=function(t,n,o){var i,a,u=o[n],l=this.detectionResultColumns[t-1].getCodewords(),s=l;null!=this.detectionResultColumns[t+1]&&(s=this.detectionResultColumns[t+1].getCodewords());var c=new Array(14);c[2]=l[n],c[3]=s[n],n>0&&(c[0]=o[n-1],c[4]=l[n-1],c[5]=s[n-1]),n>1&&(c[8]=o[n-2],c[10]=l[n-2],c[11]=s[n-2]),n<o.length-1&&(c[1]=o[n+1],c[6]=l[n+1],c[7]=s[n+1]),n<o.length-2&&(c[9]=o[n+2],c[12]=l[n+2],c[13]=s[n+2]);try{for(var f=r(c),d=f.next();!d.done;d=f.next()){var h=d.value;if(e.adjustRowNumber(u,h))return}}catch(e){i={error:e}}finally{try{d&&!d.done&&(a=f.return)&&a.call(f)}finally{if(i)throw i.error}}},e.adjustRowNumber=function(e,t){return null!=t&&(!(!t.hasValidRowNumber()||t.getBucket()!==e.getBucket())&&(e.setRowNumber(t.getRowNumber()),!0))},e.prototype.getBarcodeColumnCount=function(){return this.barcodeColumnCount},e.prototype.getBarcodeRowCount=function(){return this.barcodeMetadata.getRowCount()},e.prototype.getBarcodeECLevel=function(){return this.barcodeMetadata.getErrorCorrectionLevel()},e.prototype.setBoundingBox=function(e){this.boundingBox=e},e.prototype.getBoundingBox=function(){return this.boundingBox},e.prototype.setDetectionResultColumn=function(e,t){this.detectionResultColumns[e]=t},e.prototype.getDetectionResultColumn=function(e){return this.detectionResultColumns[e]},e.prototype.toString=function(){var e=this.detectionResultColumns[0];null==e&&(e=this.detectionResultColumns[this.barcodeColumnCount+1]);for(var t=new i.default,n=0;n<e.getCodewords().length;n++){t.format("CW %3d:",n);for(var r=0;r<this.barcodeColumnCount+2;r++)if(null!=this.detectionResultColumns[r]){var o=this.detectionResultColumns[r].getCodewords()[n];null!=o?t.format(" %3d|%3d",o.getRowNumber(),o.getValue()):t.format("    |   ")}else t.format("    |   ");t.format("%n")}return t.toString()},e}();t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(t,n,r,o){this.rowNumber=e.BARCODE_ROW_UNKNOWN,this.startX=Math.trunc(t),this.endX=Math.trunc(n),this.bucket=Math.trunc(r),this.value=Math.trunc(o)}return e.prototype.hasValidRowNumber=function(){return this.isValidRowNumber(this.rowNumber)},e.prototype.isValidRowNumber=function(t){return t!==e.BARCODE_ROW_UNKNOWN&&this.bucket===t%3*3},e.prototype.setRowNumberAsRowIndicatorColumn=function(){this.rowNumber=Math.trunc(3*Math.trunc(this.value/30)+Math.trunc(this.bucket/3))},e.prototype.getWidth=function(){return this.endX-this.startX},e.prototype.getStartX=function(){return this.startX},e.prototype.getEndX=function(){return this.endX},e.prototype.getBucket=function(){return this.bucket},e.prototype.getValue=function(){return this.value},e.prototype.getRowNumber=function(){return this.rowNumber},e.prototype.setRowNumber=function(e){this.rowNumber=e},e.prototype.toString=function(){return this.rowNumber+"|"+this.value},e.BARCODE_ROW_UNKNOWN=-1,e}();t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(20),o=n(35),i=n(104),a=function(){function e(){}return e.initialize=function(){for(var t=0;t<o.default.SYMBOL_TABLE.length;t++)for(var n=o.default.SYMBOL_TABLE[t],r=1&n,i=0;i<o.default.BARS_IN_MODULE;i++){for(var a=0;(1&n)===r;)a+=1,n>>=1;r=1&n,e.RATIOS_TABLE[t]||(e.RATIOS_TABLE[t]=new Array(o.default.BARS_IN_MODULE)),e.RATIOS_TABLE[t][o.default.BARS_IN_MODULE-i-1]=Math.fround(a/o.default.MODULES_IN_CODEWORD)}this.bSymbolTableReady=!0},e.getDecodedValue=function(t){var n=e.getDecodedCodewordValue(e.sampleBitCounts(t));return-1!==n?n:e.getClosestDecodedValue(t)},e.sampleBitCounts=function(e){for(var t=r.default.sum(e),n=new Int32Array(o.default.BARS_IN_MODULE),i=0,a=0,u=0;u<o.default.MODULES_IN_CODEWORD;u++){var l=t/(2*o.default.MODULES_IN_CODEWORD)+u*t/o.default.MODULES_IN_CODEWORD;a+e[i]<=l&&(a+=e[i],i++),n[i]++}return n},e.getDecodedCodewordValue=function(t){var n=e.getBitValue(t);return-1===o.default.getCodeword(n)?-1:n},e.getBitValue=function(e){for(var t=0,n=0;n<e.length;n++)for(var r=0;r<e[n];r++)t=t<<1|(n%2==0?1:0);return Math.trunc(t)},e.getClosestDecodedValue=function(t){var n=r.default.sum(t),a=new Array(o.default.BARS_IN_MODULE);if(n>1)for(var u=0;u<a.length;u++)a[u]=Math.fround(t[u]/n);var l=i.default.MAX_VALUE,s=-1;this.bSymbolTableReady||e.initialize();for(var c=0;c<e.RATIOS_TABLE.length;c++){for(var f=0,d=e.RATIOS_TABLE[c],h=0;h<o.default.BARS_IN_MODULE;h++){var p=Math.fround(d[h]-a[h]);if((f+=Math.fround(p*p))>=l)break}f<l&&(l=f,s=o.default.SYMBOL_TABLE[c])}return s},e.bSymbolTableReady=!1,e.RATIOS_TABLE=new Array(o.default.SYMBOL_TABLE.length).map((function(e){return new Array(o.default.BARS_IN_MODULE)})),e}();t.default=a},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var r,o,i=n(8),a=n(37),u=n(43),l=n(205),s=n(33),c=n(14),f=n(24),d=n(206),h=n(207),p=n(40);function g(){if("undefined"!=typeof window)return window.BigInt||null;if(void 0!==e)return e.BigInt||null;throw new Error("Can't search globals for BigInt!")}function v(e){if(void 0===o&&(o=g()),null===o)throw new Error("BigInt is not supported!");return o(e)}!function(e){e[e.ALPHA=0]="ALPHA",e[e.LOWER=1]="LOWER",e[e.MIXED=2]="MIXED",e[e.PUNCT=3]="PUNCT",e[e.ALPHA_SHIFT=4]="ALPHA_SHIFT",e[e.PUNCT_SHIFT=5]="PUNCT_SHIFT"}(r||(r={}));var y=function(){function e(){}return e.decode=function(t,n){var r=new c.default(""),o=a.default.ISO8859_1;r.enableDecoding(o);for(var s=1,f=t[s++],d=new l.default;s<t[0];){switch(f){case e.TEXT_COMPACTION_MODE_LATCH:s=e.textCompaction(t,s,r);break;case e.BYTE_COMPACTION_MODE_LATCH:case e.BYTE_COMPACTION_MODE_LATCH_6:s=e.byteCompaction(f,t,o,s,r);break;case e.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:r.append(t[s++]);break;case e.NUMERIC_COMPACTION_MODE_LATCH:s=e.numericCompaction(t,s,r);break;case e.ECI_CHARSET:a.default.getCharacterSetECIByValue(t[s++]);break;case e.ECI_GENERAL_PURPOSE:s+=2;break;case e.ECI_USER_DEFINED:s++;break;case e.BEGIN_MACRO_PDF417_CONTROL_BLOCK:s=e.decodeMacroBlock(t,s,d);break;case e.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case e.MACRO_PDF417_TERMINATOR:throw new i.default;default:s--,s=e.textCompaction(t,s,r)}if(!(s<t.length))throw i.default.getFormatInstance();f=t[s++]}if(0===r.length())throw i.default.getFormatInstance();var h=new u.default(null,r.toString(),null,n);return h.setOther(d),h},e.decodeMacroBlock=function(t,n,r){if(n+e.NUMBER_OF_SEQUENCE_CODEWORDS>t[0])throw i.default.getFormatInstance();for(var o=new Int32Array(e.NUMBER_OF_SEQUENCE_CODEWORDS),a=0;a<e.NUMBER_OF_SEQUENCE_CODEWORDS;a++,n++)o[a]=t[n];r.setSegmentIndex(f.default.parseInt(e.decodeBase900toBase10(o,e.NUMBER_OF_SEQUENCE_CODEWORDS)));var u=new c.default;n=e.textCompaction(t,n,u),r.setFileId(u.toString());var l=-1;for(t[n]===e.BEGIN_MACRO_PDF417_OPTIONAL_FIELD&&(l=n+1);n<t[0];)switch(t[n]){case e.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:switch(t[++n]){case e.MACRO_PDF417_OPTIONAL_FIELD_FILE_NAME:var h=new c.default;n=e.textCompaction(t,n+1,h),r.setFileName(h.toString());break;case e.MACRO_PDF417_OPTIONAL_FIELD_SENDER:var p=new c.default;n=e.textCompaction(t,n+1,p),r.setSender(p.toString());break;case e.MACRO_PDF417_OPTIONAL_FIELD_ADDRESSEE:var g=new c.default;n=e.textCompaction(t,n+1,g),r.setAddressee(g.toString());break;case e.MACRO_PDF417_OPTIONAL_FIELD_SEGMENT_COUNT:var v=new c.default;n=e.numericCompaction(t,n+1,v),r.setSegmentCount(f.default.parseInt(v.toString()));break;case e.MACRO_PDF417_OPTIONAL_FIELD_TIME_STAMP:var y=new c.default;n=e.numericCompaction(t,n+1,y),r.setTimestamp(d.default.parseLong(y.toString()));break;case e.MACRO_PDF417_OPTIONAL_FIELD_CHECKSUM:var m=new c.default;n=e.numericCompaction(t,n+1,m),r.setChecksum(f.default.parseInt(m.toString()));break;case e.MACRO_PDF417_OPTIONAL_FIELD_FILE_SIZE:var w=new c.default;n=e.numericCompaction(t,n+1,w),r.setFileSize(d.default.parseLong(w.toString()));break;default:throw i.default.getFormatInstance()}break;case e.MACRO_PDF417_TERMINATOR:n++,r.setLastSegment(!0);break;default:throw i.default.getFormatInstance()}if(-1!==l){var b=n-l;r.isLastSegment()&&b--,r.setOptionalData(s.default.copyOfRange(t,l,l+b))}return n},e.textCompaction=function(t,n,r){for(var o=new Int32Array(2*(t[0]-n)),i=new Int32Array(2*(t[0]-n)),a=0,u=!1;n<t[0]&&!u;){var l=t[n++];if(l<e.TEXT_COMPACTION_MODE_LATCH)o[a]=l/30,o[a+1]=l%30,a+=2;else switch(l){case e.TEXT_COMPACTION_MODE_LATCH:o[a++]=e.TEXT_COMPACTION_MODE_LATCH;break;case e.BYTE_COMPACTION_MODE_LATCH:case e.BYTE_COMPACTION_MODE_LATCH_6:case e.NUMERIC_COMPACTION_MODE_LATCH:case e.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case e.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case e.MACRO_PDF417_TERMINATOR:n--,u=!0;break;case e.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:o[a]=e.MODE_SHIFT_TO_BYTE_COMPACTION_MODE,l=t[n++],i[a]=l,a++}}return e.decodeTextCompaction(o,i,a,r),n},e.decodeTextCompaction=function(t,n,o,i){for(var a=r.ALPHA,u=r.ALPHA,l=0;l<o;){var s=t[l],c="";switch(a){case r.ALPHA:if(s<26)c=String.fromCharCode(65+s);else switch(s){case 26:c=" ";break;case e.LL:a=r.LOWER;break;case e.ML:a=r.MIXED;break;case e.PS:u=a,a=r.PUNCT_SHIFT;break;case e.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:i.append(n[l]);break;case e.TEXT_COMPACTION_MODE_LATCH:a=r.ALPHA}break;case r.LOWER:if(s<26)c=String.fromCharCode(97+s);else switch(s){case 26:c=" ";break;case e.AS:u=a,a=r.ALPHA_SHIFT;break;case e.ML:a=r.MIXED;break;case e.PS:u=a,a=r.PUNCT_SHIFT;break;case e.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:i.append(n[l]);break;case e.TEXT_COMPACTION_MODE_LATCH:a=r.ALPHA}break;case r.MIXED:if(s<e.PL)c=e.MIXED_CHARS[s];else switch(s){case e.PL:a=r.PUNCT;break;case 26:c=" ";break;case e.LL:a=r.LOWER;break;case e.AL:a=r.ALPHA;break;case e.PS:u=a,a=r.PUNCT_SHIFT;break;case e.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:i.append(n[l]);break;case e.TEXT_COMPACTION_MODE_LATCH:a=r.ALPHA}break;case r.PUNCT:if(s<e.PAL)c=e.PUNCT_CHARS[s];else switch(s){case e.PAL:a=r.ALPHA;break;case e.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:i.append(n[l]);break;case e.TEXT_COMPACTION_MODE_LATCH:a=r.ALPHA}break;case r.ALPHA_SHIFT:if(a=u,s<26)c=String.fromCharCode(65+s);else switch(s){case 26:c=" ";break;case e.TEXT_COMPACTION_MODE_LATCH:a=r.ALPHA}break;case r.PUNCT_SHIFT:if(a=u,s<e.PAL)c=e.PUNCT_CHARS[s];else switch(s){case e.PAL:a=r.ALPHA;break;case e.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:i.append(n[l]);break;case e.TEXT_COMPACTION_MODE_LATCH:a=r.ALPHA}}""!==c&&i.append(c),l++}},e.byteCompaction=function(t,n,r,o,i){var a=new h.default,u=0,l=0,s=!1;switch(t){case e.BYTE_COMPACTION_MODE_LATCH:for(var c=new Int32Array(6),f=n[o++];o<n[0]&&!s;)switch(c[u++]=f,l=900*l+f,f=n[o++]){case e.TEXT_COMPACTION_MODE_LATCH:case e.BYTE_COMPACTION_MODE_LATCH:case e.NUMERIC_COMPACTION_MODE_LATCH:case e.BYTE_COMPACTION_MODE_LATCH_6:case e.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case e.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case e.MACRO_PDF417_TERMINATOR:o--,s=!0;break;default:if(u%5==0&&u>0){for(var d=0;d<6;++d)a.write(Number(v(l)>>v(8*(5-d))));l=0,u=0}}o===n[0]&&f<e.TEXT_COMPACTION_MODE_LATCH&&(c[u++]=f);for(var g=0;g<u;g++)a.write(c[g]);break;case e.BYTE_COMPACTION_MODE_LATCH_6:for(;o<n[0]&&!s;){var y=n[o++];if(y<e.TEXT_COMPACTION_MODE_LATCH)u++,l=900*l+y;else switch(y){case e.TEXT_COMPACTION_MODE_LATCH:case e.BYTE_COMPACTION_MODE_LATCH:case e.NUMERIC_COMPACTION_MODE_LATCH:case e.BYTE_COMPACTION_MODE_LATCH_6:case e.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case e.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case e.MACRO_PDF417_TERMINATOR:o--,s=!0}if(u%5==0&&u>0){for(d=0;d<6;++d)a.write(Number(v(l)>>v(8*(5-d))));l=0,u=0}}}return i.append(p.default.decode(a.toByteArray(),r)),o},e.numericCompaction=function(t,n,r){for(var o=0,i=!1,a=new Int32Array(e.MAX_NUMERIC_CODEWORDS);n<t[0]&&!i;){var u=t[n++];if(n===t[0]&&(i=!0),u<e.TEXT_COMPACTION_MODE_LATCH)a[o]=u,o++;else switch(u){case e.TEXT_COMPACTION_MODE_LATCH:case e.BYTE_COMPACTION_MODE_LATCH:case e.BYTE_COMPACTION_MODE_LATCH_6:case e.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case e.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case e.MACRO_PDF417_TERMINATOR:n--,i=!0}(o%e.MAX_NUMERIC_CODEWORDS==0||u===e.NUMERIC_COMPACTION_MODE_LATCH||i)&&o>0&&(r.append(e.decodeBase900toBase10(a,o)),o=0)}return n},e.decodeBase900toBase10=function(t,n){for(var r=v(0),o=0;o<n;o++)r+=e.EXP900[n-o-1]*v(t[o]);var a=r.toString();if("1"!==a.charAt(0))throw new i.default;return a.substring(1)},e.TEXT_COMPACTION_MODE_LATCH=900,e.BYTE_COMPACTION_MODE_LATCH=901,e.NUMERIC_COMPACTION_MODE_LATCH=902,e.BYTE_COMPACTION_MODE_LATCH_6=924,e.ECI_USER_DEFINED=925,e.ECI_GENERAL_PURPOSE=926,e.ECI_CHARSET=927,e.BEGIN_MACRO_PDF417_CONTROL_BLOCK=928,e.BEGIN_MACRO_PDF417_OPTIONAL_FIELD=923,e.MACRO_PDF417_TERMINATOR=922,e.MODE_SHIFT_TO_BYTE_COMPACTION_MODE=913,e.MAX_NUMERIC_CODEWORDS=15,e.MACRO_PDF417_OPTIONAL_FIELD_FILE_NAME=0,e.MACRO_PDF417_OPTIONAL_FIELD_SEGMENT_COUNT=1,e.MACRO_PDF417_OPTIONAL_FIELD_TIME_STAMP=2,e.MACRO_PDF417_OPTIONAL_FIELD_SENDER=3,e.MACRO_PDF417_OPTIONAL_FIELD_ADDRESSEE=4,e.MACRO_PDF417_OPTIONAL_FIELD_FILE_SIZE=5,e.MACRO_PDF417_OPTIONAL_FIELD_CHECKSUM=6,e.PL=25,e.LL=27,e.AS=27,e.ML=28,e.AL=28,e.PS=29,e.PAL=29,e.PUNCT_CHARS=";<>@[\\]_`~!\r\t,:\n-.$/\"|*()?{}'",e.MIXED_CHARS="0123456789&\r\t,:#-.$/+%*=^",e.EXP900=g()?function(){var e=[];e[0]=v(1);var t=v(900);e[1]=t;for(var n=2;n<16;n++)e[n]=e[n-1]*t;return e}():[],e.NUMBER_OF_SEQUENCE_CODEWORDS=2,e}();t.default=y}).call(this,n(204))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.segmentCount=-1,this.fileSize=-1,this.timestamp=-1,this.checksum=-1}return e.prototype.getSegmentIndex=function(){return this.segmentIndex},e.prototype.setSegmentIndex=function(e){this.segmentIndex=e},e.prototype.getFileId=function(){return this.fileId},e.prototype.setFileId=function(e){this.fileId=e},e.prototype.getOptionalData=function(){return this.optionalData},e.prototype.setOptionalData=function(e){this.optionalData=e},e.prototype.isLastSegment=function(){return this.lastSegment},e.prototype.setLastSegment=function(e){this.lastSegment=e},e.prototype.getSegmentCount=function(){return this.segmentCount},e.prototype.setSegmentCount=function(e){this.segmentCount=e},e.prototype.getSender=function(){return this.sender||null},e.prototype.setSender=function(e){this.sender=e},e.prototype.getAddressee=function(){return this.addressee||null},e.prototype.setAddressee=function(e){this.addressee=e},e.prototype.getFileName=function(){return this.fileName},e.prototype.setFileName=function(e){this.fileName=e},e.prototype.getFileSize=function(){return this.fileSize},e.prototype.setFileSize=function(e){this.fileSize=e},e.prototype.getChecksum=function(){return this.checksum},e.prototype.setChecksum=function(e){this.checksum=e},e.prototype.getTimestamp=function(){return this.timestamp},e.prototype.setTimestamp=function(e){this.timestamp=e},e}();t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.parseLong=function(e,t){return void 0===t&&(t=void 0),parseInt(e,t)},e}();t.default=r},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(33),a=n(208),u=n(24),l=n(7),s=n(210),c=n(15),f=n(68),d=function(e){function t(t){void 0===t&&(t=32);var n=e.call(this)||this;if(n.count=0,t<0)throw new l.default("Negative initial size: "+t);return n.buf=new Uint8Array(t),n}return o(t,e),t.prototype.ensureCapacity=function(e){e-this.buf.length>0&&this.grow(e)},t.prototype.grow=function(e){var t=this.buf.length<<1;if(t-e<0&&(t=e),t<0){if(e<0)throw new s.default;t=u.default.MAX_VALUE}this.buf=i.default.copyOfUint8Array(this.buf,t)},t.prototype.write=function(e){this.ensureCapacity(this.count+1),this.buf[this.count]=e,this.count+=1},t.prototype.writeBytesOffset=function(e,t,n){if(t<0||t>e.length||n<0||t+n-e.length>0)throw new f.default;this.ensureCapacity(this.count+n),c.default.arraycopy(e,t,this.buf,this.count,n),this.count+=n},t.prototype.writeTo=function(e){e.writeBytesOffset(this.buf,0,this.count)},t.prototype.reset=function(){this.count=0},t.prototype.toByteArray=function(){return i.default.copyOfUint8Array(this.buf,this.count)},t.prototype.size=function(){return this.count},t.prototype.toString=function(e){return e?"string"==typeof e?this.toString_string(e):this.toString_number(e):this.toString_void()},t.prototype.toString_void=function(){return new String(this.buf).toString()},t.prototype.toString_string=function(e){return new String(this.buf).toString()},t.prototype.toString_number=function(e){return new String(this.buf).toString()},t.prototype.close=function(){},t}(a.default);t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(68),o=n(209),i=function(){function e(){}return e.prototype.writeBytes=function(e){this.writeBytesOffset(e,0,e.length)},e.prototype.writeBytesOffset=function(e,t,n){if(null==e)throw new o.default;if(t<0||t>e.length||n<0||t+n>e.length||t+n<0)throw new r.default;if(0!==n)for(var i=0;i<n;i++)this.write(e[t+i])},e.prototype.flush=function(){},e.prototype.close=function(){},e}();t.default=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(n(17).default);t.default=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(n(17).default);t.default=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(31),a=n(120),u=function(e){function t(t){return void 0===t&&(t=500),e.call(this,new a.default,t)||this}return o(t,e),t}(i.BrowserCodeReader);t.BrowserPDF417Reader=u},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(31),a=n(78),u=function(e){function t(t){return void 0===t&&(t=500),e.call(this,new a.default,t)||this}return o(t,e),t}(i.BrowserCodeReader);t.BrowserQRCodeReader=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(56),o=n(81),i=n(55),a=n(7),u=n(27),l=function(){function e(){}return e.prototype.write=function(t,n,u,l){if(void 0===l&&(l=null),0===t.length)throw new a.default("Found empty contents");if(n<0||u<0)throw new a.default("Requested dimensions are too small: "+n+"x"+u);var s=i.default.L,c=e.QUIET_ZONE_SIZE;null!==l&&(void 0!==l.get(r.default.ERROR_CORRECTION)&&(s=i.default.fromString(l.get(r.default.ERROR_CORRECTION).toString())),void 0!==l.get(r.default.MARGIN)&&(c=Number.parseInt(l.get(r.default.MARGIN).toString(),10)));var f=o.default.encode(t,s,l);return this.renderResult(f,n,u,c)},e.prototype.writeToDom=function(e,t,n,r,o){void 0===o&&(o=null),"string"==typeof e&&(e=document.querySelector(e));var i=this.write(t,n,r,o);e&&e.appendChild(i)},e.prototype.renderResult=function(e,t,n,r){var o=e.getMatrix();if(null===o)throw new u.default;for(var i=o.getWidth(),a=o.getHeight(),l=i+2*r,s=a+2*r,c=Math.max(t,l),f=Math.max(n,s),d=Math.min(Math.floor(c/l),Math.floor(f/s)),h=Math.floor((c-i*d)/2),p=Math.floor((f-a*d)/2),g=this.createSVGElement(c,f),v=0,y=p;v<a;v++,y+=d)for(var m=0,w=h;m<i;m++,w+=d)if(1===o.get(m,v)){var b=this.createSvgRectElement(w,y,d,d);g.appendChild(b)}return g},e.prototype.createSVGElement=function(t,n){var r=document.createElementNS(e.SVG_NS,"svg");return r.setAttributeNS(null,"height",t.toString()),r.setAttributeNS(null,"width",n.toString()),r},e.prototype.createSvgRectElement=function(t,n,r,o){var i=document.createElementNS(e.SVG_NS,"rect");return i.setAttributeNS(null,"x",t.toString()),i.setAttributeNS(null,"y",n.toString()),i.setAttributeNS(null,"height",r.toString()),i.setAttributeNS(null,"width",o.toString()),i.setAttributeNS(null,"fill","#000000"),i},e.QUIET_ZONE_SIZE=4,e.SVG_NS="http://www.w3.org/2000/svg",e}();t.BrowserQRCodeSvgWriter=l},function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(33),i=n(14),a=function(){function e(e,t){this.width=e,this.height=t;for(var n=new Array(t),r=0;r!==t;r++)n[r]=new Uint8Array(e);this.bytes=n}return e.prototype.getHeight=function(){return this.height},e.prototype.getWidth=function(){return this.width},e.prototype.get=function(e,t){return this.bytes[t][e]},e.prototype.getArray=function(){return this.bytes},e.prototype.setNumber=function(e,t,n){this.bytes[t][e]=n},e.prototype.setBoolean=function(e,t,n){this.bytes[t][e]=n?1:0},e.prototype.clear=function(e){var t,n;try{for(var i=r(this.bytes),a=i.next();!a.done;a=i.next()){var u=a.value;o.default.fill(u,e)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},e.prototype.equals=function(t){if(!(t instanceof e))return!1;var n=t;if(this.width!==n.width)return!1;if(this.height!==n.height)return!1;for(var r=0,o=this.height;r<o;++r)for(var i=this.bytes[r],a=n.bytes[r],u=0,l=this.width;u<l;++u)if(i[u]!==a[u])return!1;return!0},e.prototype.toString=function(){for(var e=new i.default,t=0,n=this.height;t<n;++t){for(var r=this.bytes[t],o=0,a=this.width;o<a;++o)switch(r[o]){case 0:e.append(" 0");break;case 1:e.append(" 1");break;default:e.append("  ")}e.append("\n")}return e.toString()},e}();t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(32),o=n(24),i=n(82),a=n(127),u=n(83),l=n(7),s=function(){function e(){}return e.clearMatrix=function(e){e.clear(255)},e.buildMatrix=function(t,n,r,o,i){e.clearMatrix(i),e.embedBasicPatterns(r,i),e.embedTypeInfo(n,o,i),e.maybeEmbedVersionInfo(r,i),e.embedDataBits(t,o,i)},e.embedBasicPatterns=function(t,n){e.embedPositionDetectionPatternsAndSeparators(n),e.embedDarkDotAtLeftBottomCorner(n),e.maybeEmbedPositionAdjustmentPatterns(t,n),e.embedTimingPatterns(n)},e.embedTypeInfo=function(t,n,o){var i=new r.default;e.makeTypeInfoBits(t,n,i);for(var a=0,u=i.getSize();a<u;++a){var l=i.get(i.getSize()-1-a),s=e.TYPE_INFO_COORDINATES[a],c=s[0],f=s[1];if(o.setBoolean(c,f,l),a<8){var d=o.getWidth()-a-1,h=8;o.setBoolean(d,h,l)}else{d=8,h=o.getHeight()-7+(a-8);o.setBoolean(d,h,l)}}},e.maybeEmbedVersionInfo=function(t,n){if(!(t.getVersionNumber()<7)){var o=new r.default;e.makeVersionInfoBits(t,o);for(var i=17,a=0;a<6;++a)for(var u=0;u<3;++u){var l=o.get(i);i--,n.setBoolean(a,n.getHeight()-11+u,l),n.setBoolean(n.getHeight()-11+u,a,l)}}},e.embedDataBits=function(t,n,r){for(var o=0,i=-1,l=r.getWidth()-1,s=r.getHeight()-1;l>0;){for(6===l&&(l-=1);s>=0&&s<r.getHeight();){for(var c=0;c<2;++c){var f=l-c;if(e.isEmpty(r.get(f,s))){var d=void 0;o<t.getSize()?(d=t.get(o),++o):d=!1,255!==n&&a.default.getDataMaskBit(n,f,s)&&(d=!d),r.setBoolean(f,s,d)}}s+=i}s+=i=-i,l-=2}if(o!==t.getSize())throw new u.default("Not all bits consumed: "+o+"/"+t.getSize())},e.findMSBSet=function(e){return 32-o.default.numberOfLeadingZeros(e)},e.calculateBCHCode=function(t,n){if(0===n)throw new l.default("0 polynomial");var r=e.findMSBSet(n);for(t<<=r-1;e.findMSBSet(t)>=r;)t^=n<<e.findMSBSet(t)-r;return t},e.makeTypeInfoBits=function(t,n,o){if(!i.default.isValidMaskPattern(n))throw new u.default("Invalid mask pattern");var a=t.getBits()<<3|n;o.appendBits(a,5);var l=e.calculateBCHCode(a,e.TYPE_INFO_POLY);o.appendBits(l,10);var s=new r.default;if(s.appendBits(e.TYPE_INFO_MASK_PATTERN,15),o.xor(s),15!==o.getSize())throw new u.default("should not happen but we got: "+o.getSize())},e.makeVersionInfoBits=function(t,n){n.appendBits(t.getVersionNumber(),6);var r=e.calculateBCHCode(t.getVersionNumber(),e.VERSION_INFO_POLY);if(n.appendBits(r,12),18!==n.getSize())throw new u.default("should not happen but we got: "+n.getSize())},e.isEmpty=function(e){return 255===e},e.embedTimingPatterns=function(t){for(var n=8;n<t.getWidth()-8;++n){var r=(n+1)%2;e.isEmpty(t.get(n,6))&&t.setNumber(n,6,r),e.isEmpty(t.get(6,n))&&t.setNumber(6,n,r)}},e.embedDarkDotAtLeftBottomCorner=function(e){if(0===e.get(8,e.getHeight()-8))throw new u.default;e.setNumber(8,e.getHeight()-8,1)},e.embedHorizontalSeparationPattern=function(t,n,r){for(var o=0;o<8;++o){if(!e.isEmpty(r.get(t+o,n)))throw new u.default;r.setNumber(t+o,n,0)}},e.embedVerticalSeparationPattern=function(t,n,r){for(var o=0;o<7;++o){if(!e.isEmpty(r.get(t,n+o)))throw new u.default;r.setNumber(t,n+o,0)}},e.embedPositionAdjustmentPattern=function(t,n,r){for(var o=0;o<5;++o)for(var i=e.POSITION_ADJUSTMENT_PATTERN[o],a=0;a<5;++a)r.setNumber(t+a,n+o,i[a])},e.embedPositionDetectionPattern=function(t,n,r){for(var o=0;o<7;++o)for(var i=e.POSITION_DETECTION_PATTERN[o],a=0;a<7;++a)r.setNumber(t+a,n+o,i[a])},e.embedPositionDetectionPatternsAndSeparators=function(t){var n=e.POSITION_DETECTION_PATTERN[0].length;e.embedPositionDetectionPattern(0,0,t),e.embedPositionDetectionPattern(t.getWidth()-n,0,t),e.embedPositionDetectionPattern(0,t.getWidth()-n,t);e.embedHorizontalSeparationPattern(0,7,t),e.embedHorizontalSeparationPattern(t.getWidth()-8,7,t),e.embedHorizontalSeparationPattern(0,t.getWidth()-8,t);e.embedVerticalSeparationPattern(7,0,t),e.embedVerticalSeparationPattern(t.getHeight()-7-1,0,t),e.embedVerticalSeparationPattern(7,t.getHeight()-7,t)},e.maybeEmbedPositionAdjustmentPatterns=function(t,n){if(!(t.getVersionNumber()<2))for(var r=t.getVersionNumber()-1,o=e.POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE[r],i=0,a=o.length;i!==a;i++){var u=o[i];if(u>=0)for(var l=0;l!==a;l++){var s=o[l];s>=0&&e.isEmpty(n.get(s,u))&&e.embedPositionAdjustmentPattern(s-2,u-2,n)}}},e.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])]),e.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])]),e.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])]),e.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])]),e.VERSION_INFO_POLY=7973,e.TYPE_INFO_POLY=1335,e.TYPE_INFO_MASK_PATTERN=21522,e}();t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){this.dataBytes=e,this.errorCorrectionBytes=t}return e.prototype.getDataBytes=function(){return this.dataBytes},e.prototype.getErrorCorrectionBytes=function(){return this.errorCorrectionBytes},e}();t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(128),o=n(9),i=n(7),a=function(){function e(){}return e.prototype.encode=function(e,t,n,a,u){var l;switch(t){case o.default.QR_CODE:l=new r.default;break;default:throw new i.default("No encoder available for format "+t)}return l.encode(e,t,n,a,u)},e}();t.default=a},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(15),a=n(42),u=n(41),l=n(7),s=function(e){function t(t,n,r,o,i,a,u,s){var c=e.call(this,a,u)||this;if(c.yuvData=t,c.dataWidth=n,c.dataHeight=r,c.left=o,c.top=i,o+a>n||i+u>r)throw new l.default("Crop rectangle does not fit within image data.");return s&&c.reverseHorizontal(a,u),c}return o(t,e),t.prototype.getRow=function(e,t){if(e<0||e>=this.getHeight())throw new l.default("Requested row is outside the image: "+e);var n=this.getWidth();(null==t||t.length<n)&&(t=new Uint8ClampedArray(n));var r=(e+this.top)*this.dataWidth+this.left;return i.default.arraycopy(this.yuvData,r,t,0,n),t},t.prototype.getMatrix=function(){var e=this.getWidth(),t=this.getHeight();if(e===this.dataWidth&&t===this.dataHeight)return this.yuvData;var n=e*t,r=new Uint8ClampedArray(n),o=this.top*this.dataWidth+this.left;if(e===this.dataWidth)return i.default.arraycopy(this.yuvData,o,r,0,n),r;for(var a=0;a<t;a++){var u=a*e;i.default.arraycopy(this.yuvData,o,r,u,e),o+=this.dataWidth}return r},t.prototype.isCropSupported=function(){return!0},t.prototype.crop=function(e,n,r,o){return new t(this.yuvData,this.dataWidth,this.dataHeight,this.left+e,this.top+n,r,o,!1)},t.prototype.renderThumbnail=function(){for(var e=this.getWidth()/t.THUMBNAIL_SCALE_FACTOR,n=this.getHeight()/t.THUMBNAIL_SCALE_FACTOR,r=new Int32Array(e*n),o=this.yuvData,i=this.top*this.dataWidth+this.left,a=0;a<n;a++){for(var u=a*e,l=0;l<e;l++){var s=255&o[i+l*t.THUMBNAIL_SCALE_FACTOR];r[u+l]=4278190080|65793*s}i+=this.dataWidth*t.THUMBNAIL_SCALE_FACTOR}return r},t.prototype.getThumbnailWidth=function(){return this.getWidth()/t.THUMBNAIL_SCALE_FACTOR},t.prototype.getThumbnailHeight=function(){return this.getHeight()/t.THUMBNAIL_SCALE_FACTOR},t.prototype.reverseHorizontal=function(e,t){for(var n=this.yuvData,r=0,o=this.top*this.dataWidth+this.left;r<t;r++,o+=this.dataWidth)for(var i=o+e/2,a=o,u=o+e-1;a<i;a++,u--){var l=n[a];n[a]=n[u],n[u]=l}},t.prototype.invert=function(){return new u.default(this)},t.THUMBNAIL_SCALE_FACTOR=2,t}(a.default);t.default=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),n(41);var i=n(41),a=n(42),u=n(15),l=n(7),s=function(e){function t(t,n,r,o,i,a,u){var s=e.call(this,n,r)||this;if(s.dataWidth=o,s.dataHeight=i,s.left=a,s.top=u,4===t.BYTES_PER_ELEMENT){for(var c=n*r,f=new Uint8ClampedArray(c),d=0;d<c;d++){var h=t[d],p=h>>16&255,g=h>>7&510,v=255&h;f[d]=(p+g+v)/4&255}s.luminances=f}else s.luminances=t;if(void 0===o&&(s.dataWidth=n),void 0===i&&(s.dataHeight=r),void 0===a&&(s.left=0),void 0===u&&(s.top=0),s.left+n>s.dataWidth||s.top+r>s.dataHeight)throw new l.default("Crop rectangle does not fit within image data.");return s}return o(t,e),t.prototype.getRow=function(e,t){if(e<0||e>=this.getHeight())throw new l.default("Requested row is outside the image: "+e);var n=this.getWidth();(null==t||t.length<n)&&(t=new Uint8ClampedArray(n));var r=(e+this.top)*this.dataWidth+this.left;return u.default.arraycopy(this.luminances,r,t,0,n),t},t.prototype.getMatrix=function(){var e=this.getWidth(),t=this.getHeight();if(e===this.dataWidth&&t===this.dataHeight)return this.luminances;var n=e*t,r=new Uint8ClampedArray(n),o=this.top*this.dataWidth+this.left;if(e===this.dataWidth)return u.default.arraycopy(this.luminances,o,r,0,n),r;for(var i=0;i<t;i++){var a=i*e;u.default.arraycopy(this.luminances,o,r,a,e),o+=this.dataWidth}return r},t.prototype.isCropSupported=function(){return!0},t.prototype.crop=function(e,n,r,o){return new t(this.luminances,r,o,this.dataWidth,this.dataHeight,this.left+e,this.top+n)},t.prototype.invert=function(){return new i.default(this)},t}(a.default);t.default=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__values||function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(9),u=n(4),l=n(19),s=n(20),c=n(110),f=n(75),d=n(111),h=n(112),p=n(221),g=n(234),v=n(235),y=n(236),m=n(15),w=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.pairs=new Array(t.MAX_PAIRS),n.rows=new Array,n.startEnd=[2],n}return o(t,e),t.prototype.decodeRow=function(e,n,r){this.pairs.length=0,this.startFromEven=!1;try{return t.constructResult(this.decodeRow2pairs(e,n))}catch(e){console.log(e)}return this.pairs.length=0,this.startFromEven=!0,t.constructResult(this.decodeRow2pairs(e,n))},t.prototype.reset=function(){this.pairs.length=0,this.rows.length=0},t.prototype.decodeRow2pairs=function(e,t){for(var n,r=!1;!r;)try{this.pairs.push(this.retrieveNextPair(t,this.pairs,e))}catch(e){if(!this.pairs.length)throw new e;r=!0}if(this.checkChecksum())return this.pairs;if(n=!!this.rows.length,this.storeRow(e,!1),n){var o=this.checkRowsBoolean(!1);if(null!=o)return o;if(null!=(o=this.checkRowsBoolean(!0)))return o}throw new u.default},t.prototype.checkRowsBoolean=function(e){if(this.rows.length>25)return this.rows.length=0,null;this.pairs.length=0,e&&(this.rows=this.rows.reverse());var t=null;try{t=this.checkRows(new Array,0)}catch(e){console.log(e)}return e&&(this.rows=this.rows.reverse()),t},t.prototype.checkRows=function(e,n){for(var r,o,a=n;a<this.rows.length;a++){var l=this.rows[a];this.pairs.length=0;try{for(var s=i(e),c=s.next();!c.done;c=s.next()){var f=c.value;this.pairs.push(f.getPairs())}}catch(e){r={error:e}}finally{try{c&&!c.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}if(this.pairs.push(l.getPairs()),t.isValidSequence(this.pairs)){if(this.checkChecksum())return this.pairs;var d=new Array(e);d.push(l);try{return this.checkRows(d,a+1)}catch(e){console.log(e)}}}throw new u.default},t.isValidSequence=function(e){var n,r;try{for(var o=i(t.FINDER_PATTERN_SEQUENCES),a=o.next();!a.done;a=o.next()){var u=a.value;if(!(e.length>u.length)){for(var l=!0,s=0;s<e.length;s++)if(e[s].getFinderPattern().getValue()!=u[s]){l=!1;break}if(l)return!0}}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return!1},t.prototype.storeRow=function(e,n){for(var r=0,o=!1,i=!1;r<this.rows.length;){var a=this.rows[r];if(a.getRowNumber()>e){i=a.isEquivalent(this.pairs);break}o=a.isEquivalent(this.pairs),r++}i||o||t.isPartialRow(this.pairs,this.rows)||(this.rows.push(r,new v.default(this.pairs,e,n)),this.removePartialRows(this.pairs,this.rows))},t.prototype.removePartialRows=function(e,t){var n,r,o,a,u,l;try{for(var s=i(t),c=s.next();!c.done;c=s.next()){var f=c.value;if(f.getPairs().length!==e.length){try{for(var d=i(f.getPairs()),h=d.next();!h.done;h=d.next()){var p=h.value,v=!1;try{for(var y=i(e),m=y.next();!m.done;m=y.next()){var w=m.value;if(g.default.equals(p,w)){v=!0;break}}}catch(e){u={error:e}}finally{try{m&&!m.done&&(l=y.return)&&l.call(y)}finally{if(u)throw u.error}}v||!1}}catch(e){o={error:e}}finally{try{h&&!h.done&&(a=d.return)&&a.call(d)}finally{if(o)throw o.error}}}}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}},t.isPartialRow=function(e,t){var n,r,o,a,u,l;try{for(var s=i(t),c=s.next();!c.done;c=s.next()){var f=c.value,d=!0;try{for(var h=i(e),p=h.next();!p.done;p=h.next()){var g=p.value,v=!1;try{for(var y=i(f.getPairs()),m=y.next();!m.done;m=y.next()){var w=m.value;if(g.equals(w)){v=!0;break}}}catch(e){u={error:e}}finally{try{m&&!m.done&&(l=y.return)&&l.call(y)}finally{if(u)throw u.error}}if(!v){d=!1;break}}}catch(e){o={error:e}}finally{try{p&&!p.done&&(a=h.return)&&a.call(h)}finally{if(o)throw o.error}}if(d)return!0}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return!1},t.prototype.getRows=function(){return this.rows},t.constructResult=function(e){var t=y.default.buildBitArray(e),n=p.createDecoder(t).parseInformation(),r=e[0].getFinderPattern().getResultPoints(),o=e[e.length-1].getFinderPattern().getResultPoints(),i=[r[0],r[1],o[0],o[1]];return new l.default(n,null,null,i,a.default.RSS_EXPANDED,null)},t.prototype.checkChecksum=function(){var e=this.pairs.get(0),t=e.getLeftChar(),n=e.getRightChar();if(null==n)return!1;for(var r=n.getChecksumPortion(),o=2,i=1;i<this.pairs.size();++i){var a=this.pairs.get(i);r+=a.getLeftChar().getChecksumPortion(),o++;var u=a.getRightChar();null!=u&&(r+=u.getChecksumPortion(),o++)}return 211*(o-4)+(r%=211)==t.getValue()},t.getNextSecondBar=function(e,t){var n;return e.get(t)?(n=e.getNextUnset(t),n=e.getNextSet(n)):(n=e.getNextSet(t),n=e.getNextUnset(n)),n},t.prototype.retrieveNextPair=function(e,n,r){var o,i=n.length%2==0;this.startFromEven&&(i=!i);var a=!0,l=-1;do{this.findNextPair(e,n,l),null==(o=this.parseFoundFinderPattern(e,r,i))?l=t.getNextSecondBar(e,this.startEnd[0]):a=!1}while(a);var s,c=this.decodeDataCharacter(e,o,i,!0);if(!this.isEmptyPair(n)&&n[n.length-1].mustBeLast())throw new u.default;try{s=this.decodeDataCharacter(e,o,i,!1)}catch(e){s=null,console.log(e)}return new g.default(c,s,o,!0)},t.prototype.isEmptyPair=function(e){return 0===e.length},t.prototype.findNextPair=function(e,n,r){var o=this.getDecodeFinderCounters();o[0]=0,o[1]=0,o[2]=0,o[3]=0;var i,a=e.getSize();if(r>=0)i=r;else if(this.isEmptyPair(n))i=0;else{i=n[n.length-1].getFinderPattern().getStartEnd()[1]}var l=n.length%2!=0;this.startFromEven&&(l=!l);for(var s=!1;i<a&&(s=!e.get(i));)i++;for(var c=0,f=i,d=i;d<a;d++)if(e.get(d)!=s)o[c]++;else{if(3==c){if(l&&t.reverseCounters(o),t.isFinderPattern(o))return this.startEnd[0]=f,void(this.startEnd[1]=d);l&&t.reverseCounters(o),f+=o[0]+o[1],o[0]=o[2],o[1]=o[3],o[2]=0,o[3]=0,c--}else c++;o[c]=1,s=!s}throw new u.default},t.reverseCounters=function(e){for(var t=e.length,n=0;n<t/2;++n){var r=e[n];e[n]=e[t-n-1],e[t-n-1]=r}},t.prototype.parseFoundFinderPattern=function(e,n,r){var o,i,a;if(r){for(var u=this.startEnd[0]-1;u>=0&&!e.get(u);)u--;u++,o=this.startEnd[0]-u,i=u,a=this.startEnd[1]}else i=this.startEnd[0],o=(a=e.getNextUnset(this.startEnd[1]+1))-this.startEnd[1];var l,s=this.getDecodeFinderCounters();m.default.arraycopy(s,0,s,1,s.length-1),s[0]=o;try{l=this.parseFinderValue(s,t.FINDER_PATTERNS)}catch(e){return null}return new d.default(l,[i,a],i,a,n)},t.prototype.decodeDataCharacter=function(e,n,r,o){for(var i=this.getDataCharacterCounters(),a=0;a<i.length;a++)i[a]=0;if(o)t.recordPatternInReverse(e,n.getStartEnd()[0],i);else{t.recordPattern(e,n.getStartEnd()[1],i);for(var l=0,c=i.length-1;l<c;l++,c--){var d=i[l];i[l]=i[c],i[c]=d}}var p=s.default.sum(new Int32Array(i))/17,g=(n.getStartEnd()[1]-n.getStartEnd()[0])/15;if(Math.abs(p-g)/g>.3)throw new u.default;var v=this.getOddCounts(),y=this.getEvenCounts(),m=this.getOddRoundingErrors(),w=this.getEvenRoundingErrors();for(l=0;l<i.length;l++){var b=1*i[l]/p,_=b+.5;if(_<1){if(b<.3)throw new u.default;_=1}else if(_>8){if(b>8.7)throw new u.default;_=8}var C=l/2;0==(1&l)?(v[C]=_,m[C]=b-_):(y[C]=_,w[C]=b-_)}this.adjustOddEvenCounts(17);var E=4*n.getValue()+(r?0:2)+(o?0:1)-1,A=0,I=0;for(l=v.length-1;l>=0;l--){if(t.isNotA1left(n,r,o)){var S=t.WEIGHTS[E][2*l];I+=v[l]*S}A+=v[l]}var O=0;for(l=y.length-1;l>=0;l--)if(t.isNotA1left(n,r,o)){S=t.WEIGHTS[E][2*l+1];O+=y[l]*S}var T=I+O;if(0!=(1&A)||A>13||A<4)throw new u.default;var R=(13-A)/2,N=t.SYMBOL_WIDEST[R],M=9-N,P=h.default.getRSSvalue(v,N,!0),x=h.default.getRSSvalue(y,M,!1),D=P*t.EVEN_TOTAL_SUBSET[R]+x+t.GSUM[R];return new f.default(D,T)},t.isNotA1left=function(e,t,n){return!(0==e.getValue()&&t&&n)},t.prototype.adjustOddEvenCounts=function(e){var n=s.default.sum(new Int32Array(this.getOddCounts())),r=s.default.sum(new Int32Array(this.getEvenCounts())),o=!1,i=!1;n>13?i=!0:n<4&&(o=!0);var a=!1,l=!1;r>13?l=!0:r<4&&(a=!0);var c=n+r-e,f=1==(1&n),d=0==(1&r);if(1==c)if(f){if(d)throw new u.default;i=!0}else{if(!d)throw new u.default;l=!0}else if(-1==c)if(f){if(d)throw new u.default;o=!0}else{if(!d)throw new u.default;a=!0}else{if(0!=c)throw new u.default;if(f){if(!d)throw new u.default;n<r?(o=!0,l=!0):(i=!0,a=!0)}else if(d)throw new u.default}if(o){if(i)throw new u.default;t.increment(this.getOddCounts(),this.getOddRoundingErrors())}if(i&&t.decrement(this.getOddCounts(),this.getOddRoundingErrors()),a){if(l)throw new u.default;t.increment(this.getEvenCounts(),this.getOddRoundingErrors())}l&&t.decrement(this.getEvenCounts(),this.getEvenRoundingErrors())},t.SYMBOL_WIDEST=[7,5,4,3,1],t.EVEN_TOTAL_SUBSET=[4,20,52,104,204],t.GSUM=[0,348,1388,2948,3988],t.FINDER_PATTERNS=[[1,8,4,1],[3,6,4,1],[3,4,6,1],[3,2,8,1],[2,6,5,1],[2,2,9,1]],t.WEIGHTS=[[1,3,9,27,81,32,96,77],[20,60,180,118,143,7,21,63],[189,145,13,39,117,140,209,205],[193,157,49,147,19,57,171,91],[62,186,136,197,169,85,44,132],[185,133,188,142,4,12,36,108],[113,128,173,97,80,29,87,50],[150,28,84,41,123,158,52,156],[46,138,203,187,139,206,196,166],[76,17,51,153,37,111,122,155],[43,129,176,106,107,110,119,146],[16,48,144,10,30,90,59,177],[109,116,137,200,178,112,125,164],[70,210,208,202,184,130,179,115],[134,191,151,31,93,68,204,190],[148,22,66,198,172,94,71,2],[6,18,54,162,64,192,154,40],[120,149,25,75,14,42,126,167],[79,26,78,23,69,207,199,175],[103,98,83,38,114,131,182,124],[161,61,183,127,170,88,53,159],[55,165,73,8,24,72,5,15],[45,135,194,160,58,174,100,89]],t.FINDER_PAT_A=0,t.FINDER_PAT_B=1,t.FINDER_PAT_C=2,t.FINDER_PAT_D=3,t.FINDER_PAT_E=4,t.FINDER_PAT_F=5,t.FINDER_PATTERN_SEQUENCES=[[t.FINDER_PAT_A,t.FINDER_PAT_A],[t.FINDER_PAT_A,t.FINDER_PAT_B,t.FINDER_PAT_B],[t.FINDER_PAT_A,t.FINDER_PAT_C,t.FINDER_PAT_B,t.FINDER_PAT_D],[t.FINDER_PAT_A,t.FINDER_PAT_E,t.FINDER_PAT_B,t.FINDER_PAT_D,t.FINDER_PAT_C],[t.FINDER_PAT_A,t.FINDER_PAT_E,t.FINDER_PAT_B,t.FINDER_PAT_D,t.FINDER_PAT_D,t.FINDER_PAT_F],[t.FINDER_PAT_A,t.FINDER_PAT_E,t.FINDER_PAT_B,t.FINDER_PAT_D,t.FINDER_PAT_E,t.FINDER_PAT_F,t.FINDER_PAT_F],[t.FINDER_PAT_A,t.FINDER_PAT_A,t.FINDER_PAT_B,t.FINDER_PAT_B,t.FINDER_PAT_C,t.FINDER_PAT_C,t.FINDER_PAT_D,t.FINDER_PAT_D],[t.FINDER_PAT_A,t.FINDER_PAT_A,t.FINDER_PAT_B,t.FINDER_PAT_B,t.FINDER_PAT_C,t.FINDER_PAT_C,t.FINDER_PAT_D,t.FINDER_PAT_E,t.FINDER_PAT_E],[t.FINDER_PAT_A,t.FINDER_PAT_A,t.FINDER_PAT_B,t.FINDER_PAT_B,t.FINDER_PAT_C,t.FINDER_PAT_C,t.FINDER_PAT_D,t.FINDER_PAT_E,t.FINDER_PAT_F,t.FINDER_PAT_F],[t.FINDER_PAT_A,t.FINDER_PAT_A,t.FINDER_PAT_B,t.FINDER_PAT_B,t.FINDER_PAT_C,t.FINDER_PAT_D,t.FINDER_PAT_D,t.FINDER_PAT_E,t.FINDER_PAT_E,t.FINDER_PAT_F,t.FINDER_PAT_F]],t.MAX_PAIRS=11,t}(c.default);t.default=w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(27),o=n(129),i=n(227),a=n(228),u=n(229),l=n(230),s=n(231),c=n(232),f=n(233);t.createDecoder=function(e){try{if(e.get(1))return new i.default(e);if(!e.get(2))return new a.default(e);switch(o.default.extractNumericValueFromBitArray(e,1,4)){case 4:return new u.default(e);case 5:return new l.default(e)}switch(o.default.extractNumericValueFromBitArray(e,1,5)){case 12:return new s.default(e);case 13:return new c.default(e)}switch(o.default.extractNumericValueFromBitArray(e,1,7)){case 56:return new f.default(e,"310","11");case 57:return new f.default(e,"320","11");case 58:return new f.default(e,"310","13");case 59:return new f.default(e,"320","13");case 60:return new f.default(e,"310","15");case 61:return new f.default(e,"320","15");case 62:return new f.default(e,"310","17");case 63:return new f.default(e,"320","17")}}catch(t){throw console.log(t),new r.default("unknown decoder: "+e)}}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t,n){var r=e.call(this,t)||this;return r.value=n,r}return o(t,e),t.prototype.getValue=function(){return this.value},t.prototype.isFNC1=function(){return this.value===t.FNC1},t.FNC1="$",t}(n(84).default);t.default=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(8),a=function(e){function t(t,n,r){var o=e.call(this,t)||this;if(n<0||n>10||r<0||r>10)throw new i.default;return o.firstDigit=n,o.secondDigit=r,o}return o(t,e),t.prototype.getFirstDigit=function(){return this.firstDigit},t.prototype.getSecondDigit=function(){return this.secondDigit},t.prototype.getValue=function(){return 10*this.firstDigit+this.secondDigit},t.prototype.isFirstDigitFNC1=function(){return this.firstDigit==t.FNC1},t.prototype.isSecondDigitFNC1=function(){return this.secondDigit==t.FNC1},t.prototype.isAnyFNC1=function(){return this.firstDigit===t.FNC1||this.secondDigit===t.FNC1},t.FNC1=10,t}(n(84).default);t.default=a},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t,n,r){var o=e.call(this,t)||this;return r?(o.remaining=!0,o.remainingValue=o.remainingValue):(o.remaining=!1,o.remainingValue=0),o.newString=n,o}return o(t,e),t.prototype.getNewString=function(){return this.newString},t.prototype.isRemaining=function(){return this.remaining},t.prototype.getRemainingValue=function(){return this.remainingValue},t}(n(84).default);t.default=i},function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(4),i=function(){function e(){}return e.parseFieldsInGeneralPurpose=function(t){var n,i,a,u,l,s,c,f;if(!t)return null;if(t.length<2)throw new o.default;var d=t.substring(0,2);try{for(var h=r(e.TWO_DIGIT_DATA_LENGTH),p=h.next();!p.done;p=h.next()){if((E=p.value)[0]===d)return E[1]===e.VARIABLE_LENGTH?e.processVariableAI(2,E[2],t):e.processFixedAI(2,E[1],t)}}catch(e){n={error:e}}finally{try{p&&!p.done&&(i=h.return)&&i.call(h)}finally{if(n)throw n.error}}if(t.length<3)throw new o.default;var g=t.substring(0,3);try{for(var v=r(e.THREE_DIGIT_DATA_LENGTH),y=v.next();!y.done;y=v.next()){if((E=y.value)[0]===g)return E[1]===e.VARIABLE_LENGTH?e.processVariableAI(3,E[2],t):e.processFixedAI(3,E[1],t)}}catch(e){a={error:e}}finally{try{y&&!y.done&&(u=v.return)&&u.call(v)}finally{if(a)throw a.error}}try{for(var m=r(e.THREE_DIGIT_PLUS_DIGIT_DATA_LENGTH),w=m.next();!w.done;w=m.next()){if((E=w.value)[0]===g)return E[1]===e.VARIABLE_LENGTH?e.processVariableAI(4,E[2],t):e.processFixedAI(4,E[1],t)}}catch(e){l={error:e}}finally{try{w&&!w.done&&(s=m.return)&&s.call(m)}finally{if(l)throw l.error}}if(t.length<4)throw new o.default;var b=t.substring(0,4);try{for(var _=r(e.FOUR_DIGIT_DATA_LENGTH),C=_.next();!C.done;C=_.next()){var E;if((E=C.value)[0]===b)return E[1]===e.VARIABLE_LENGTH?e.processVariableAI(4,E[2],t):e.processFixedAI(4,E[1],t)}}catch(e){c={error:e}}finally{try{C&&!C.done&&(f=_.return)&&f.call(_)}finally{if(c)throw c.error}}throw new o.default},e.processFixedAI=function(t,n,r){if(r.length<t)throw new o.default;var i=r.substring(0,t);if(r.length<t+n)throw new o.default;var a=r.substring(t,t+n),u=r.substring(t+n),l="("+i+")"+a,s=e.parseFieldsInGeneralPurpose(u);return null==s?l:l+s},e.processVariableAI=function(t,n,r){var o,i=r.substring(0,t);o=r.length<t+n?r.length:t+n;var a=r.substring(t,o),u=r.substring(o),l="("+i+")"+a,s=e.parseFieldsInGeneralPurpose(u);return null==s?l:l+s},e.VARIABLE_LENGTH=[],e.TWO_DIGIT_DATA_LENGTH=[["00",18],["01",14],["02",14],["10",e.VARIABLE_LENGTH,20],["11",6],["12",6],["13",6],["15",6],["17",6],["20",2],["21",e.VARIABLE_LENGTH,20],["22",e.VARIABLE_LENGTH,29],["30",e.VARIABLE_LENGTH,8],["37",e.VARIABLE_LENGTH,8],["90",e.VARIABLE_LENGTH,30],["91",e.VARIABLE_LENGTH,30],["92",e.VARIABLE_LENGTH,30],["93",e.VARIABLE_LENGTH,30],["94",e.VARIABLE_LENGTH,30],["95",e.VARIABLE_LENGTH,30],["96",e.VARIABLE_LENGTH,30],["97",e.VARIABLE_LENGTH,3],["98",e.VARIABLE_LENGTH,30],["99",e.VARIABLE_LENGTH,30]],e.THREE_DIGIT_DATA_LENGTH=[["240",e.VARIABLE_LENGTH,30],["241",e.VARIABLE_LENGTH,30],["242",e.VARIABLE_LENGTH,6],["250",e.VARIABLE_LENGTH,30],["251",e.VARIABLE_LENGTH,30],["253",e.VARIABLE_LENGTH,17],["254",e.VARIABLE_LENGTH,20],["400",e.VARIABLE_LENGTH,30],["401",e.VARIABLE_LENGTH,30],["402",17],["403",e.VARIABLE_LENGTH,30],["410",13],["411",13],["412",13],["413",13],["414",13],["420",e.VARIABLE_LENGTH,20],["421",e.VARIABLE_LENGTH,15],["422",3],["423",e.VARIABLE_LENGTH,15],["424",3],["425",3],["426",3]],e.THREE_DIGIT_PLUS_DIGIT_DATA_LENGTH=[["310",6],["311",6],["312",6],["313",6],["314",6],["315",6],["316",6],["320",6],["321",6],["322",6],["323",6],["324",6],["325",6],["326",6],["327",6],["328",6],["329",6],["330",6],["331",6],["332",6],["333",6],["334",6],["335",6],["336",6],["340",6],["341",6],["342",6],["343",6],["344",6],["345",6],["346",6],["347",6],["348",6],["349",6],["350",6],["351",6],["352",6],["353",6],["354",6],["355",6],["356",6],["357",6],["360",6],["361",6],["362",6],["363",6],["364",6],["365",6],["366",6],["367",6],["368",6],["369",6],["390",e.VARIABLE_LENGTH,15],["391",e.VARIABLE_LENGTH,18],["392",e.VARIABLE_LENGTH,15],["393",e.VARIABLE_LENGTH,18],["703",e.VARIABLE_LENGTH,30]],e.FOUR_DIGIT_DATA_LENGTH=[["7001",13],["7002",e.VARIABLE_LENGTH,30],["7003",10],["8001",14],["8002",e.VARIABLE_LENGTH,20],["8003",e.VARIABLE_LENGTH,30],["8004",e.VARIABLE_LENGTH,30],["8005",6],["8006",18],["8007",e.VARIABLE_LENGTH,30],["8008",e.VARIABLE_LENGTH,12],["8018",18],["8020",e.VARIABLE_LENGTH,25],["8100",6],["8101",10],["8102",2],["8110",e.VARIABLE_LENGTH,70],["8200",e.VARIABLE_LENGTH,70]],e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){t?this.decodedInformation=null:(this.finished=e,this.decodedInformation=t)}return e.prototype.getDecodedInformation=function(){return this.decodedInformation},e.prototype.isFinished=function(){return this.finished},e}();t.default=r},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(57),a=n(14),u=function(e){function t(t){return e.call(this,t)||this}return o(t,e),t.prototype.parseInformation=function(){var e=new a.default;e.append("(01)");var n=e.length(),r=this.getGeneralDecoder().extractNumericValueFromBitArray(t.HEADER_SIZE,4);return e.append(r),this.encodeCompressedGtinWithoutAI(e,t.HEADER_SIZE+4,n),this.getGeneralDecoder().decodeAllCodes(e,t.HEADER_SIZE+44)},t.HEADER_SIZE=4,t}(i.default);t.default=u},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(14),a=function(e){function t(t){return e.call(this,t)||this}return o(t,e),t.prototype.parseInformation=function(){var e=new i.default;return this.getGeneralDecoder().decodeAllCodes(e,t.HEADER_SIZE)},t.HEADER_SIZE=5,t}(n(130).default);t.default=a},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){return e.call(this,t)||this}return o(t,e),t.prototype.addWeightCode=function(e,t){e.append("(3103)")},t.prototype.checkWeight=function(e){return e},t}(n(131).default);t.default=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){return e.call(this,t)||this}return o(t,e),t.prototype.addWeightCode=function(e,t){t<1e4?e.append("(3202)"):e.append("(3203)")},t.prototype.checkWeight=function(e){return e<1e4?e:e-1e4},t}(n(131).default);t.default=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(57),a=n(4),u=n(14),l=function(e){function t(t){return e.call(this,t)||this}return o(t,e),t.prototype.parseInformation=function(){if(this.getInformation().getSize()<t.HEADER_SIZE+i.default.GTIN_SIZE)throw new a.default;var e=new u.default;this.encodeCompressedGtin(e,t.HEADER_SIZE);var n=this.getGeneralDecoder().extractNumericValueFromBitArray(t.HEADER_SIZE+i.default.GTIN_SIZE,t.LAST_DIGIT_SIZE);e.append("(392"),e.append(n),e.append(")");var r=this.getGeneralDecoder().decodeGeneralPurposeField(t.HEADER_SIZE+i.default.GTIN_SIZE+t.LAST_DIGIT_SIZE,null);return e.append(r.getNewString()),e.toString()},t.HEADER_SIZE=8,t.LAST_DIGIT_SIZE=2,t}(i.default);t.default=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(57),a=n(4),u=n(14),l=function(e){function t(t){return e.call(this,t)||this}return o(t,e),t.prototype.parseInformation=function(){if(this.getInformation().getSize()<t.HEADER_SIZE+i.default.GTIN_SIZE)throw new a.default;var e=new u.default;this.encodeCompressedGtin(e,t.HEADER_SIZE);var n=this.getGeneralDecoder().extractNumericValueFromBitArray(t.HEADER_SIZE+i.default.GTIN_SIZE,t.LAST_DIGIT_SIZE);e.append("(393"),e.append(n),e.append(")");var r=this.getGeneralDecoder().extractNumericValueFromBitArray(t.HEADER_SIZE+i.default.GTIN_SIZE+t.LAST_DIGIT_SIZE,t.FIRST_THREE_DIGITS_SIZE);r/100==0&&e.append("0"),r/10==0&&e.append("0"),e.append(r);var o=this.getGeneralDecoder().decodeGeneralPurposeField(t.HEADER_SIZE+i.default.GTIN_SIZE+t.LAST_DIGIT_SIZE+t.FIRST_THREE_DIGITS_SIZE,null);return e.append(o.getNewString()),e.toString()},t.HEADER_SIZE=8,t.LAST_DIGIT_SIZE=2,t.FIRST_THREE_DIGITS_SIZE=10,t}(i.default);t.default=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(132),a=n(4),u=n(14),l=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.dateCode=r,o.firstAIdigits=n,o}return o(t,e),t.prototype.parseInformation=function(){if(this.getInformation().getSize()!=t.HEADER_SIZE+t.GTIN_SIZE+t.WEIGHT_SIZE+t.DATE_SIZE)throw new a.default;var e=new u.default;return this.encodeCompressedGtin(e,t.HEADER_SIZE),this.encodeCompressedWeight(e,t.HEADER_SIZE+t.GTIN_SIZE,t.WEIGHT_SIZE),this.encodeCompressedDate(e,t.HEADER_SIZE+t.GTIN_SIZE+t.WEIGHT_SIZE),e.toString()},t.prototype.encodeCompressedDate=function(e,n){var r=this.getGeneralDecoder().extractNumericValueFromBitArray(n,t.DATE_SIZE);if(38400!=r){e.append("("),e.append(this.dateCode),e.append(")");var o=r%32,i=(r/=32)%12+1,a=r/=12;a/10==0&&e.append("0"),e.append(a),i/10==0&&e.append("0"),e.append(i),o/10==0&&e.append("0"),e.append(o)}},t.prototype.addWeightCode=function(e,t){e.append("("),e.append(this.firstAIdigits),e.append(t/1e5),e.append(")")},t.prototype.checkWeight=function(e){return e%1e5},t.HEADER_SIZE=8,t.WEIGHT_SIZE=20,t.DATE_SIZE=16,t}(i.default);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t,n,r){this.leftchar=e,this.rightchar=t,this.finderpattern=n,this.maybeLast=r}return e.prototype.mayBeLast=function(){return this.maybeLast},e.prototype.getLeftChar=function(){return this.leftchar},e.prototype.getRightChar=function(){return this.rightchar},e.prototype.getFinderPattern=function(){return this.finderpattern},e.prototype.mustBeLast=function(){return null==this.rightchar},e.prototype.toString=function(){return"[ "+this.leftchar+", "+this.rightchar+" : "+(null==this.finderpattern?"null":this.finderpattern.getValue())+" ]"},e.equals=function(t,n){return t instanceof e&&(e.equalsOrNull(t.leftchar,n.leftchar)&&e.equalsOrNull(t.rightchar,n.rightchar)&&e.equalsOrNull(t.finderpattern,n.finderpattern))},e.equalsOrNull=function(t,n){return null===t?null===n:e.equals(t,n)},e.prototype.hashCode=function(){return this.leftchar.getValue()^this.rightchar.getValue()^this.finderpattern.getValue()},e.hashNotNull=function(e){return null===e?0:e.hashCode()},e}();t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t,n){this.pairs=e,this.rowNumber=t,this.wasReversed=n}return e.prototype.getPairs=function(){return this.pairs},e.prototype.getRowNumber=function(){return this.rowNumber},e.prototype.isReversed=function(){return this.wasReversed},e.prototype.isEquivalent=function(e){return this.checkEqualitity(this,e)},e.prototype.toString=function(){return"{ "+this.pairs+" }"},e.prototype.equals=function(t,n){return t instanceof e&&(this.checkEqualitity(t,n)&&t.wasReversed===n.wasReversed)},e.prototype.checkEqualitity=function(e,t){var n;if(e&&t)return e.forEach((function(e,r){t.forEach((function(t){e.getLeftChar().getValue()===t.getLeftChar().getValue()&&e.getRightChar().getValue()===t.getRightChar().getValue()&&e.getFinderPatter().getValue()===t.getFinderPatter().getValue()&&(n=!0)}))})),n},e}();t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(32),o=function(){function e(){}return e.buildBitArray=function(e){var t=2*e.length-1;null==e[e.length-1].getRightChar()&&(t-=1);for(var n=12*t,o=new r.default(n),i=0,a=e[0].getRightChar().getValue(),u=11;u>=0;--u)0!=(a&1<<u)&&o.set(i),i++;for(u=1;u<e.length;++u){for(var l=e[u],s=l.getLeftChar().getValue(),c=11;c>=0;--c)0!=(s&1<<c)&&o.set(i),i++;if(null!=l.getRightChar()){var f=l.getRightChar().getValue();for(c=11;c>=0;--c)0!=(f&1<<c)&&o.set(i),i++}}return o},e}();t.default=o},function(e,t,n){var r=n(238);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(92)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(t=n(91)(!1)).push([e.i,'.qrscanner video {\n  position: fixed;\n  right: 0;\n  bottom: 0;\n  min-width: 100%;\n  min-height: 100%;\n}\n\n\n:root {\n  --main-qrcode-border: 3px;\n  --main-qrcode-scanner-width: 25vh;\n  --main-qrcode-scanner-height-move: 23.5vh;\n}\n\n.ocrloader {\n  width: var(--main-qrcode-scanner-width);\n  height: var(--main-qrcode-scanner-width);\n  z-index: 1;\n  position: absolute;\n  left: 50%;\n  top: 50%;\n  transform: translate(-50%,-50%);\n  backface-visibility: hidden;\n}\n.ocrloader span {\n  position: absolute;\n  left: 0;\n  top: 0;\n  width: 100%;\n  height: 1.5vh;\n  background-color: rgba(45, 183, 183, 0.54);\n  z-index: 2;\n  -webkit-animation: action 1s infinite  alternate;\n  animation: action 1s infinite  alternate;\n}\n\n\n\n.ocrloader:before,  .ocrloader:after,\nem:after, em:before {\n    z-index: 3;\n    border-color: #000;\n    content: "";\n    position: absolute;\n    width: 19px;\n    height: 16px;\n    border-style: solid;\n    border-width: 0px;\n  }\n.ocrloader:before {\n    left: 0;\n    top: 0;\n    border-left-width: var(--main-qrcode-border);\n    border-top-width: var(--main-qrcode-border);\n  }\n.ocrloader:after {\n    right: 0;\n    top: 0;\n    border-right-width: var(--main-qrcode-border);\n    border-top-width: var(--main-qrcode-border);\n  }\nem:before {\n  left: 0;\n  bottom: 0;\n  border-left-width: var(--main-qrcode-border);\n  border-bottom-width: var(--main-qrcode-border);\n}\nem:after {\n  right: 0;\n  bottom: 0;\n  border-right-width: var(--main-qrcode-border);\n  border-bottom-width: var(--main-qrcode-border);\n}\n\n\n@keyframes move {\n  /* 0%, 100% { transform: translateY(300%); }\n  50% { transform: translateY(0%); }\n  75% { transform: translateY(800%); } */\n  0%, 100% {\n    bottom: 0;\n  }\n  50% {\n    bottom: 100px;\n  }\n}\n\n@-webkit-keyframes action {\n        0% { transform: translateY(0); }\n        100% { transform: translateY(var(--main-qrcode-scanner-height-move)); }\n}\n@keyframes action {\n    0% { transform: translateY(0); }\n    100% { transform: translateY(var(--main-qrcode-scanner-height-move)); }\n}\n',""]),e.exports=t},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),i=n(11),a=n.n(i),u=n(138),l=n(1),s=n(262),c=n(38);var f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(s.a)(e,Object(l.a)({defaultTheme:c.a},t))},d=(n(6),n(58)),h=n(260),p=n(60);var g=function(e){var t=e.children,n=e.theme,r=Object(h.a)(),i=o.a.useMemo((function(){var e=null===r?n:function(e,t){return"function"==typeof t?t(e):Object(l.a)(Object(l.a)({},e),t)}(r,n);return null!=e&&(e[p.a]=null!==r),e}),[n,r]);return o.a.createElement(d.a.Provider,{value:i},t)},v=n(136),y=n.n(v),m=n(137),w=n.n(m),b=function(){function e(){}return e.getDefaultSettings=function(){return{force:!1,disableButton:!1,titleSelectDevice:"Select device",titlePermissonFailed:"Permission failed",contentPermissonFailed:"Your browser has no permission for the camera. Please activate the permission.",titleWaitPermission:"Wait for your permission",titleScanQRCode:"QR-Code-Scanner",titleRedirect:"Forwarding",contentRedirect:'Would you like to redirect to the url "%URL"'}},e.init=function(t){window.hasOwnProperty(t)?window.qrscannerredirect.settings=Object.assign(e.getDefaultSettings(),window.qrscannerredirect.settings):window.qrscannerredirect={settings:e.getDefaultSettings()},window.qrscannerredirect.app_name=t},e.getTitlePermissonFailed=function(){return window.qrscannerredirect.settings.titlePermissonFailed},e.getContentPermissonFailed=function(){return window.qrscannerredirect.settings.contentPermissonFailed},e.isButtonDisabled=function(){return window.qrscannerredirect.settings.disableButton},e.getContentRedirect=function(){return window.qrscannerredirect.settings.contentRedirect},e.getTitleRedirect=function(){return window.qrscannerredirect.settings.titleRedirect},e.getTitleWaitPermission=function(){return window.qrscannerredirect.settings.titleWaitPermission},e.getTitleScanQRCode=function(){return window.qrscannerredirect.settings.titleScanQRCode},e.getTitleSelectDevice=function(){return window.qrscannerredirect.settings.titleSelectDevice},e.isForce=function(){return window.qrscannerredirect.settings.force},e}(),_=function(){function e(){}return e.validURL=function(e){return!!new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(e)},e}(),C=n(133),E=n.n(C),A=n(2),I=n(3),S=n(5),O=n(16);function T(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function R(e,t){return r.useMemo((function(){return null==e&&null==t?null:function(n){T(e,n),T(t,n)}}),[e,t])}var N="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;function M(e){var t=r.useRef(e);return N((function(){t.current=e})),r.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}var P=!0,x=!1,D=null,k={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function B(e){e.metaKey||e.altKey||e.ctrlKey||(P=!0)}function L(){P=!1}function j(){"hidden"===this.visibilityState&&x&&(P=!0)}function F(e){var t,n,r,o=e.target;try{return o.matches(":focus-visible")}catch(e){}return P||(n=(t=o).type,!("INPUT"!==(r=t.tagName)||!k[n]||t.readOnly)||"TEXTAREA"===r&&!t.readOnly||!!t.isContentEditable)}function V(){x=!0,window.clearTimeout(D),D=window.setTimeout((function(){x=!1}),100)}function z(){return{isFocusVisible:F,onBlurVisible:V,ref:r.useCallback((function(e){var t,n=i.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",B,!0),t.addEventListener("mousedown",L,!0),t.addEventListener("pointerdown",L,!0),t.addEventListener("touchstart",L,!0),t.addEventListener("visibilitychange",j,!0))}),[])}}var U=n(29),W=n(28),H=n(46),G=n(36),Z=o.a.createContext(null);function X(e,t){var n=Object.create(null);return e&&r.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&Object(r.isValidElement)(e)?t(e):e}(e)})),n}function Y(e,t,n){return null!=n[t]?n[t]:e.props[t]}function K(e,t,n){var o=X(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var u={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var s=o[l][r];u[o[l][r]]=n(s)}u[l]=n(l)}for(r=0;r<i.length;r++)u[i[r]]=n(i[r]);return u}(t,o);return Object.keys(i).forEach((function(a){var u=i[a];if(Object(r.isValidElement)(u)){var l=a in t,s=a in o,c=t[a],f=Object(r.isValidElement)(c)&&!c.props.in;!s||l&&!f?s||!l||f?s&&l&&Object(r.isValidElement)(c)&&(i[a]=Object(r.cloneElement)(u,{onExited:n.bind(null,u),in:c.props.in,exit:Y(u,"exit",e),enter:Y(u,"enter",e)})):i[a]=Object(r.cloneElement)(u,{in:!1}):i[a]=Object(r.cloneElement)(u,{onExited:n.bind(null,u),in:!0,exit:Y(u,"exit",e),enter:Y(u,"enter",e)})}})),i}var Q=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},q=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(Object(H.a)(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Object(G.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,o,i=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,o=a,X(n.children,(function(e){return Object(r.cloneElement)(e,{onExited:o.bind(null,e),in:!0,appear:Y(e,"appear",n),enter:Y(e,"enter",n),exit:Y(e,"exit",n)})}))):K(e,i,a),firstRender:!1}},n.handleExited=function(e,t){var n=X(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Object(l.a)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Object(W.a)(e,["component","childFactory"]),i=this.state.contextValue,a=Q(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?o.a.createElement(Z.Provider,{value:i},a):o.a.createElement(Z.Provider,{value:i},o.a.createElement(t,r,a))},t}(o.a.Component);q.propTypes={},q.defaultProps={component:"div",childFactory:function(e){return e}};var J=q,$="undefined"==typeof window?r.useEffect:r.useLayoutEffect;var ee=function(e){var t=e.classes,n=e.pulsate,o=void 0!==n&&n,i=e.rippleX,a=e.rippleY,u=e.rippleSize,l=e.in,s=e.onExited,c=void 0===s?function(){}:s,f=e.timeout,d=r.useState(!1),h=d[0],p=d[1],g=Object(I.a)(t.ripple,t.rippleVisible,o&&t.ripplePulsate),v={width:u,height:u,top:-u/2+a,left:-u/2+i},y=Object(I.a)(t.child,h&&t.childLeaving,o&&t.childPulsate),m=M(c);return $((function(){if(!l){p(!0);var e=setTimeout(m,f);return function(){clearTimeout(e)}}}),[m,l,f]),r.createElement("span",{className:g,style:v},r.createElement("span",{className:y}))},te=r.forwardRef((function(e,t){var n=e.center,o=void 0!==n&&n,i=e.classes,a=e.className,u=Object(A.a)(e,["center","classes","className"]),s=r.useState([]),c=s[0],f=s[1],d=r.useRef(0),h=r.useRef(null);r.useEffect((function(){h.current&&(h.current(),h.current=null)}),[c]);var p=r.useRef(!1),g=r.useRef(null),v=r.useRef(null),y=r.useRef(null);r.useEffect((function(){return function(){clearTimeout(g.current)}}),[]);var m=r.useCallback((function(e){var t=e.pulsate,n=e.rippleX,o=e.rippleY,a=e.rippleSize,u=e.cb;f((function(e){return[].concat(Object(U.a)(e),[r.createElement(ee,{key:d.current,classes:i,timeout:550,pulsate:t,rippleX:n,rippleY:o,rippleSize:a})])})),d.current+=1,h.current=u}),[i]),w=r.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t.pulsate,i=void 0!==r&&r,a=t.center,u=void 0===a?o||t.pulsate:a,l=t.fakeElement,s=void 0!==l&&l;if("mousedown"===e.type&&p.current)p.current=!1;else{"touchstart"===e.type&&(p.current=!0);var c,f,d,h=s?null:y.current,w=h?h.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(u||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(w.width/2),f=Math.round(w.height/2);else{var b=e.touches?e.touches[0]:e,_=b.clientX,C=b.clientY;c=Math.round(_-w.left),f=Math.round(C-w.top)}if(u)(d=Math.sqrt((2*Math.pow(w.width,2)+Math.pow(w.height,2))/3))%2==0&&(d+=1);else{var E=2*Math.max(Math.abs((h?h.clientWidth:0)-c),c)+2,A=2*Math.max(Math.abs((h?h.clientHeight:0)-f),f)+2;d=Math.sqrt(Math.pow(E,2)+Math.pow(A,2))}e.touches?null===v.current&&(v.current=function(){m({pulsate:i,rippleX:c,rippleY:f,rippleSize:d,cb:n})},g.current=setTimeout((function(){v.current&&(v.current(),v.current=null)}),80)):m({pulsate:i,rippleX:c,rippleY:f,rippleSize:d,cb:n})}}),[o,m]),b=r.useCallback((function(){w({},{pulsate:!0})}),[w]),_=r.useCallback((function(e,t){if(clearTimeout(g.current),"touchend"===e.type&&v.current)return e.persist(),v.current(),v.current=null,void(g.current=setTimeout((function(){_(e,t)})));v.current=null,f((function(e){return e.length>0?e.slice(1):e})),h.current=t}),[]);return r.useImperativeHandle(t,(function(){return{pulsate:b,start:w,stop:_}}),[b,w,_]),r.createElement("span",Object(l.a)({className:Object(I.a)(i.root,a),ref:y},u),r.createElement(J,{component:null,exit:!0},c))})),ne=Object(S.a)((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(r.memo(te)),re=r.forwardRef((function(e,t){var n=e.action,o=e.buttonRef,a=e.centerRipple,u=void 0!==a&&a,s=e.children,c=e.classes,f=e.className,d=e.component,h=void 0===d?"button":d,p=e.disabled,g=void 0!==p&&p,v=e.disableRipple,y=void 0!==v&&v,m=e.disableTouchRipple,w=void 0!==m&&m,b=e.focusRipple,_=void 0!==b&&b,C=e.focusVisibleClassName,E=e.onBlur,S=e.onClick,O=e.onFocus,T=e.onFocusVisible,N=e.onKeyDown,P=e.onKeyUp,x=e.onMouseDown,D=e.onMouseLeave,k=e.onMouseUp,B=e.onTouchEnd,L=e.onTouchMove,j=e.onTouchStart,F=e.onDragLeave,V=e.tabIndex,U=void 0===V?0:V,W=e.TouchRippleProps,H=e.type,G=void 0===H?"button":H,Z=Object(A.a)(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),X=r.useRef(null);var Y=r.useRef(null),K=r.useState(!1),Q=K[0],q=K[1];g&&Q&&q(!1);var J=z(),$=J.isFocusVisible,ee=J.onBlurVisible,te=J.ref;function re(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:w;return M((function(r){return t&&t(r),!n&&Y.current&&Y.current[e](r),!0}))}r.useImperativeHandle(n,(function(){return{focusVisible:function(){q(!0),X.current.focus()}}}),[]),r.useEffect((function(){Q&&_&&!y&&Y.current.pulsate()}),[y,_,Q]);var oe=re("start",x),ie=re("stop",F),ae=re("stop",k),ue=re("stop",(function(e){Q&&e.preventDefault(),D&&D(e)})),le=re("start",j),se=re("stop",B),ce=re("stop",L),fe=re("stop",(function(e){Q&&(ee(e),q(!1)),E&&E(e)}),!1),de=M((function(e){X.current||(X.current=e.currentTarget),$(e)&&(q(!0),T&&T(e)),O&&O(e)})),he=function(){var e=i.findDOMNode(X.current);return h&&"button"!==h&&!("A"===e.tagName&&e.href)},pe=r.useRef(!1),ge=M((function(e){_&&!pe.current&&Q&&Y.current&&" "===e.key&&(pe.current=!0,e.persist(),Y.current.stop(e,(function(){Y.current.start(e)}))),e.target===e.currentTarget&&he()&&" "===e.key&&e.preventDefault(),N&&N(e),e.target===e.currentTarget&&he()&&"Enter"===e.key&&!g&&(e.preventDefault(),S&&S(e))})),ve=M((function(e){_&&" "===e.key&&Y.current&&Q&&!e.defaultPrevented&&(pe.current=!1,e.persist(),Y.current.stop(e,(function(){Y.current.pulsate(e)}))),P&&P(e),S&&e.target===e.currentTarget&&he()&&" "===e.key&&!e.defaultPrevented&&S(e)})),ye=h;"button"===ye&&Z.href&&(ye="a");var me={};"button"===ye?(me.type=G,me.disabled=g):("a"===ye&&Z.href||(me.role="button"),me["aria-disabled"]=g);var we=R(o,t),be=R(te,X),_e=R(we,be),Ce=r.useState(!1),Ee=Ce[0],Ae=Ce[1];r.useEffect((function(){Ae(!0)}),[]);var Ie=Ee&&!y&&!g;return r.createElement(ye,Object(l.a)({className:Object(I.a)(c.root,f,Q&&[c.focusVisible,C],g&&c.disabled),onBlur:fe,onClick:S,onFocus:de,onKeyDown:ge,onKeyUp:ve,onMouseDown:oe,onMouseLeave:ue,onMouseUp:ae,onDragLeave:ie,onTouchEnd:se,onTouchMove:ce,onTouchStart:le,ref:_e,tabIndex:g?-1:U},me,Z),s,Ie?r.createElement(ne,Object(l.a)({ref:Y,center:u},W)):null)})),oe=Object(S.a)({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(re),ie=n(10),ae=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.className,a=e.color,u=void 0===a?"default":a,s=e.component,c=void 0===s?"button":s,f=e.disabled,d=void 0!==f&&f,h=e.disableElevation,p=void 0!==h&&h,g=e.disableFocusRipple,v=void 0!==g&&g,y=e.endIcon,m=e.focusVisibleClassName,w=e.fullWidth,b=void 0!==w&&w,_=e.size,C=void 0===_?"medium":_,E=e.startIcon,S=e.type,O=void 0===S?"button":S,T=e.variant,R=void 0===T?"text":T,N=Object(A.a)(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),M=E&&r.createElement("span",{className:Object(I.a)(o.startIcon,o["iconSize".concat(Object(ie.a)(C))])},E),P=y&&r.createElement("span",{className:Object(I.a)(o.endIcon,o["iconSize".concat(Object(ie.a)(C))])},y);return r.createElement(oe,Object(l.a)({className:Object(I.a)(o.root,o[R],i,"inherit"===u?o.colorInherit:"default"!==u&&o["".concat(R).concat(Object(ie.a)(u))],"medium"!==C&&[o["".concat(R,"Size").concat(Object(ie.a)(C))],o["size".concat(Object(ie.a)(C))]],p&&o.disableElevation,d&&o.disabled,b&&o.fullWidth),component:c,disabled:d,focusRipple:!v,focusVisibleClassName:Object(I.a)(o.focusVisible,m),ref:t,type:O},N),r.createElement("span",{className:o.label},M,n,P))})),ue=Object(S.a)((function(e){return{root:Object(l.a)({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:Object(O.b)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:Object(O.b)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Object(O.b)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(Object(O.b)(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:Object(O.b)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(Object(O.b)(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:Object(O.b)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(ae),le=n(95);function se(e,t){var n=o.a.memo(o.a.forwardRef((function(t,n){return o.a.createElement(le.a,Object(l.a)({ref:n},t),e)})));return n.muiName=le.a.muiName,n}var ce=se(o.a.createElement("path",{d:"M10 20H5v2h5v2l3-3-3-3v2zm4 0v2h5v-2h-5zM12 8c1.1 0 2-.9 2-2s-.9-2-2-2-1.99.9-1.99 2S10.9 8 12 8zm5-8H7C5.9 0 5 .9 5 2v14c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2zM7 2h10v10.5c0-1.67-3.33-2.5-5-2.5s-5 .83-5 2.5V2z"})),fe=n(21),de=n(261);function he(e){return e&&e.ownerDocument||document}var pe="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;var ge=r.forwardRef((function(e,t){var n=e.children,o=e.container,a=e.disablePortal,u=void 0!==a&&a,l=e.onRendered,s=r.useState(null),c=s[0],f=s[1],d=R(r.isValidElement(n)?n.ref:null,t);return pe((function(){u||f(function(e){return e="function"==typeof e?e():e,i.findDOMNode(e)}(o)||document.body)}),[o,u]),pe((function(){if(c&&!u)return T(t,c),function(){T(t,null)}}),[t,c,u]),pe((function(){l&&(c||u)&&l()}),[l,c,u]),u?r.isValidElement(n)?r.cloneElement(n,{ref:d}):n:c?i.createPortal(n,c):c}));function ve(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r),t.apply(this,r)}}),(function(){}))}var ye=n(61);var me=n(39);function we(e){var t,n=he(e);return n.body===e?(t=n,he(t).defaultView||window).innerWidth>n.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function be(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function _e(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function Ce(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4?arguments[4]:void 0,i=[t,n].concat(Object(U.a)(r)),a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===i.indexOf(e)&&-1===a.indexOf(e.tagName)&&be(e,o)}))}function Ee(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function Ae(e,t){var n,r=[],o=[],i=e.container;if(!t.disableScrollLock){if(we(i)){var a=function(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}();r.push({value:i.style.paddingRight,key:"padding-right",el:i}),i.style["padding-right"]="".concat(_e(i)+a,"px"),n=he(i).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){o.push(e.style.paddingRight),e.style.paddingRight="".concat(_e(e)+a,"px")}))}var u=i.parentElement,l="HTML"===u.nodeName&&"scroll"===window.getComputedStyle(u)["overflow-y"]?u:i;r.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){o[t]?e.style.paddingRight=o[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var Ie=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modals=[],this.containers=[]}return Object(me.a)(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&be(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Ce(t,e.mountNode,e.modalRef,r,!0);var o=Ee(this.containers,(function(e){return e.container===t}));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=Ee(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=Ae(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=Ee(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&be(e.modalRef,!0),Ce(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var o=r.modals[r.modals.length-1];o.modalRef&&be(o.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();var Se=function(e){var t=e.children,n=e.disableAutoFocus,o=void 0!==n&&n,a=e.disableEnforceFocus,u=void 0!==a&&a,l=e.disableRestoreFocus,s=void 0!==l&&l,c=e.getDoc,f=e.isEnabled,d=e.open,h=r.useRef(),p=r.useRef(null),g=r.useRef(null),v=r.useRef(),y=r.useRef(null),m=r.useCallback((function(e){y.current=i.findDOMNode(e)}),[]),w=R(t.ref,m),b=r.useRef();return r.useEffect((function(){b.current=d}),[d]),!b.current&&d&&"undefined"!=typeof window&&(v.current=c().activeElement),r.useEffect((function(){if(d){var e=he(y.current);o||!y.current||y.current.contains(e.activeElement)||(y.current.hasAttribute("tabIndex")||y.current.setAttribute("tabIndex",-1),y.current.focus());var t=function(){e.hasFocus()&&!u&&f()&&!h.current?y.current&&!y.current.contains(e.activeElement)&&y.current.focus():h.current=!1},n=function(t){!u&&f()&&9===t.keyCode&&e.activeElement===y.current&&(h.current=!0,t.shiftKey?g.current.focus():p.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var r=setInterval((function(){t()}),50);return function(){clearInterval(r),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),s||(v.current&&v.current.focus&&v.current.focus(),v.current=null)}}}),[o,u,s,f,d]),r.createElement(r.Fragment,null,r.createElement("div",{tabIndex:0,ref:p,"data-test":"sentinelStart"}),r.cloneElement(t,{ref:w}),r.createElement("div",{tabIndex:0,ref:g,"data-test":"sentinelEnd"}))},Oe={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},Te=r.forwardRef((function(e,t){var n=e.invisible,o=void 0!==n&&n,i=e.open,a=Object(A.a)(e,["invisible","open"]);return i?r.createElement("div",Object(l.a)({"aria-hidden":!0,ref:t},a,{style:Object(l.a)({},Oe.root,o?Oe.invisible:{},a.style)})):null}));var Re=new Ie,Ne=r.forwardRef((function(e,t){var n=Object(h.a)(),o=Object(de.a)({name:"MuiModal",props:Object(l.a)({},e),theme:n}),a=o.BackdropComponent,u=void 0===a?Te:a,s=o.BackdropProps,c=o.children,f=o.closeAfterTransition,d=void 0!==f&&f,p=o.container,g=o.disableAutoFocus,v=void 0!==g&&g,y=o.disableBackdropClick,m=void 0!==y&&y,w=o.disableEnforceFocus,b=void 0!==w&&w,_=o.disableEscapeKeyDown,C=void 0!==_&&_,E=o.disablePortal,I=void 0!==E&&E,S=o.disableRestoreFocus,O=void 0!==S&&S,T=o.disableScrollLock,N=void 0!==T&&T,P=o.hideBackdrop,x=void 0!==P&&P,D=o.keepMounted,k=void 0!==D&&D,B=o.manager,L=void 0===B?Re:B,j=o.onBackdropClick,F=o.onClose,V=o.onEscapeKeyDown,z=o.onRendered,U=o.open,W=Object(A.a)(o,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),H=r.useState(!0),G=H[0],Z=H[1],X=r.useRef({}),Y=r.useRef(null),K=r.useRef(null),Q=R(K,t),q=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(o),J=function(){return he(Y.current)},$=function(){return X.current.modalRef=K.current,X.current.mountNode=Y.current,X.current},ee=function(){L.mount($(),{disableScrollLock:N}),K.current.scrollTop=0},te=M((function(){var e=function(e){return e="function"==typeof e?e():e,i.findDOMNode(e)}(p)||J().body;L.add($(),e),K.current&&ee()})),ne=r.useCallback((function(){return L.isTopModal($())}),[L]),re=M((function(e){Y.current=e,e&&(z&&z(),U&&ne()?ee():be(K.current,!0))})),oe=r.useCallback((function(){L.remove($())}),[L]);if(r.useEffect((function(){return function(){oe()}}),[oe]),r.useEffect((function(){U?te():q&&d||oe()}),[U,oe,q,d,te]),!k&&!U&&(!q||G))return null;var ie=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:ye.a}),ae={};return void 0===c.props.tabIndex&&(ae.tabIndex=c.props.tabIndex||"-1"),q&&(ae.onEnter=ve((function(){Z(!1)}),c.props.onEnter),ae.onExited=ve((function(){Z(!0),d&&oe()}),c.props.onExited)),r.createElement(ge,{ref:re,container:p,disablePortal:I},r.createElement("div",Object(l.a)({ref:Q,onKeyDown:function(e){"Escape"===e.key&&ne()&&(V&&V(e),C||(e.stopPropagation(),F&&F(e,"escapeKeyDown")))},role:"presentation"},W,{style:Object(l.a)({},ie.root,!U&&G?ie.hidden:{},W.style)}),x?null:r.createElement(u,Object(l.a)({open:U,onClick:function(e){e.target===e.currentTarget&&(j&&j(e),!m&&F&&F(e,"backdropClick"))}},s)),r.createElement(Se,{disableEnforceFocus:b,disableAutoFocus:v,disableRestoreFocus:O,getDoc:J,isEnabled:ne,open:U},r.cloneElement(c,ae))))})),Me=n(62),Pe=!1,xe=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o="exited",r.appearStatus="entering"):o="entered":o=t.unmountOnExit||t.mountOnEnter?"unmounted":"exited",r.state={status:o},r.nextCallback=null,r}Object(G.a)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&"unmounted"===t.status?{status:"exited"}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?"entering"!==n&&"entered"!==n&&(t="entering"):"entering"!==n&&"entered"!==n||(t="exiting")}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),"entering"===t?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[a.a.findDOMNode(this),r],i=o[0],u=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||Pe?this.safeSetState({status:"entered"},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,u),this.safeSetState({status:"entering"},(function(){t.props.onEntering(i,u),t.onTransitionEnd(s,(function(){t.safeSetState({status:"entered"},(function(){t.props.onEntered(i,u)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:a.a.findDOMNode(this);t&&!Pe?(this.props.onExit(r),this.safeSetState({status:"exiting"},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:"exited"},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:"exited"},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:a.a.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],u=o[1];this.props.addEndListener(i,u)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if("unmounted"===e)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,Object(W.a)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return o.a.createElement(Z.Provider,{value:null},"function"==typeof n?n(e,r):o.a.cloneElement(o.a.Children.only(n),r))},t}(o.a.Component);function De(){}xe.contextType=Z,xe.propTypes={},xe.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:De,onEntering:De,onEntered:De,onExit:De,onExiting:De,onExited:De},xe.UNMOUNTED="unmounted",xe.EXITED="exited",xe.ENTERING="entering",xe.ENTERED="entered",xe.EXITING="exiting";var ke=xe,Be=n(30);function Le(e,t){var n=e.timeout,r=e.style,o=void 0===r?{}:r;return{duration:o.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:o.transitionDelay}}var je={entering:{opacity:1},entered:{opacity:1}},Fe={enter:Be.b.enteringScreen,exit:Be.b.leavingScreen},Ve=r.forwardRef((function(e,t){var n=e.children,o=e.disableStrictModeCompat,i=void 0!==o&&o,a=e.in,u=e.onEnter,s=e.onEntered,f=e.onEntering,d=e.onExit,p=e.onExited,g=e.onExiting,v=e.style,y=e.TransitionComponent,m=void 0===y?ke:y,w=e.timeout,b=void 0===w?Fe:w,_=Object(A.a)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","TransitionComponent","timeout"]),C=Object(h.a)()||c.a,E=C.unstable_strictMode&&!i,I=r.useRef(null),S=R(n.ref,t),O=R(E?I:void 0,S),T=function(e){return function(t,n){if(e){var r=E?[I.current,t]:[t,n],o=Object(Me.a)(r,2),i=o[0],a=o[1];void 0===a?e(i):e(i,a)}}},N=T(f),M=T((function(e,t){!function(e){e.scrollTop}(e);var n=Le({style:v,timeout:b},{mode:"enter"});e.style.webkitTransition=C.transitions.create("opacity",n),e.style.transition=C.transitions.create("opacity",n),u&&u(e,t)})),P=T(s),x=T(g),D=T((function(e){var t=Le({style:v,timeout:b},{mode:"exit"});e.style.webkitTransition=C.transitions.create("opacity",t),e.style.transition=C.transitions.create("opacity",t),d&&d(e)})),k=T(p);return r.createElement(m,Object(l.a)({appear:!0,in:a,nodeRef:E?I:void 0,onEnter:M,onEntered:P,onEntering:N,onExit:D,onExited:k,onExiting:x,timeout:b},_),(function(e,t){return r.cloneElement(n,Object(l.a)({style:Object(l.a)({opacity:0,visibility:"exited"!==e||a?void 0:"hidden"},je[e],v,n.props.style),ref:O},t))}))})),ze=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.className,a=e.invisible,u=void 0!==a&&a,s=e.open,c=e.transitionDuration,f=e.TransitionComponent,d=void 0===f?Ve:f,h=Object(A.a)(e,["children","classes","className","invisible","open","transitionDuration","TransitionComponent"]);return r.createElement(d,Object(l.a)({in:s,timeout:c},h),r.createElement("div",{className:Object(I.a)(o.root,i,u&&o.invisible),"aria-hidden":!0,ref:t},n))})),Ue=Object(S.a)({root:{zIndex:-1,position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},{name:"MuiBackdrop"})(ze),We=r.forwardRef((function(e,t){var n=e.classes,o=e.className,i=e.component,a=void 0===i?"div":i,u=e.square,s=void 0!==u&&u,c=e.elevation,f=void 0===c?1:c,d=e.variant,h=void 0===d?"elevation":d,p=Object(A.a)(e,["classes","className","component","square","elevation","variant"]);return r.createElement(a,Object(l.a)({className:Object(I.a)(n.root,o,"outlined"===h?n.outlined:n["elevation".concat(f)],!s&&n.rounded),ref:t},p))})),He=Object(S.a)((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),Object(l.a)({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(We),Ge={enter:Be.b.enteringScreen,exit:Be.b.leavingScreen},Ze=r.forwardRef((function(e,t){var n=e.BackdropProps,o=e.children,i=e.classes,a=e.className,u=e.disableBackdropClick,s=void 0!==u&&u,c=e.disableEscapeKeyDown,f=void 0!==c&&c,d=e.fullScreen,h=void 0!==d&&d,p=e.fullWidth,g=void 0!==p&&p,v=e.maxWidth,y=void 0===v?"sm":v,m=e.onBackdropClick,w=e.onClose,b=e.onEnter,_=e.onEntered,C=e.onEntering,E=e.onEscapeKeyDown,S=e.onExit,O=e.onExited,T=e.onExiting,R=e.open,N=e.PaperComponent,M=void 0===N?He:N,P=e.PaperProps,x=void 0===P?{}:P,D=e.scroll,k=void 0===D?"paper":D,B=e.TransitionComponent,L=void 0===B?Ve:B,j=e.transitionDuration,F=void 0===j?Ge:j,V=e.TransitionProps,z=e["aria-describedby"],U=e["aria-labelledby"],W=Object(A.a)(e,["BackdropProps","children","classes","className","disableBackdropClick","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","onEnter","onEntered","onEntering","onEscapeKeyDown","onExit","onExited","onExiting","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps","aria-describedby","aria-labelledby"]),H=r.useRef();return r.createElement(Ne,Object(l.a)({className:Object(I.a)(i.root,a),BackdropComponent:Ue,BackdropProps:Object(l.a)({transitionDuration:F},n),closeAfterTransition:!0,disableBackdropClick:s,disableEscapeKeyDown:f,onEscapeKeyDown:E,onClose:w,open:R,ref:t},W),r.createElement(L,Object(l.a)({appear:!0,in:R,timeout:F,onEnter:b,onEntering:C,onEntered:_,onExit:S,onExiting:T,onExited:O,role:"none presentation"},V),r.createElement("div",{className:Object(I.a)(i.container,i["scroll".concat(Object(ie.a)(k))]),onMouseUp:function(e){e.target===e.currentTarget&&e.target===H.current&&(H.current=null,m&&m(e),!s&&w&&w(e,"backdropClick"))},onMouseDown:function(e){H.current=e.target}},r.createElement(M,Object(l.a)({elevation:24,role:"dialog","aria-describedby":z,"aria-labelledby":U},x,{className:Object(I.a)(i.paper,i["paperScroll".concat(Object(ie.a)(k))],i["paperWidth".concat(Object(ie.a)(String(y)))],x.className,h&&i.paperFullScreen,g&&i.paperFullWidth)}),o))))})),Xe=Object(S.a)((function(e){return{root:{"@media print":{position:"absolute !important"}},scrollPaper:{display:"flex",justifyContent:"center",alignItems:"center"},scrollBody:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}},container:{height:"100%","@media print":{height:"auto"},outline:0},paper:{margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},paperScrollPaper:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},paperScrollBody:{display:"inline-block",verticalAlign:"middle",textAlign:"left"},paperWidthFalse:{maxWidth:"calc(100% - 64px)"},paperWidthXs:{maxWidth:Math.max(e.breakpoints.values.xs,444),"&$paperScrollBody":Object(fe.a)({},e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64),{maxWidth:"calc(100% - 64px)"})},paperWidthSm:{maxWidth:e.breakpoints.values.sm,"&$paperScrollBody":Object(fe.a)({},e.breakpoints.down(e.breakpoints.values.sm+64),{maxWidth:"calc(100% - 64px)"})},paperWidthMd:{maxWidth:e.breakpoints.values.md,"&$paperScrollBody":Object(fe.a)({},e.breakpoints.down(e.breakpoints.values.md+64),{maxWidth:"calc(100% - 64px)"})},paperWidthLg:{maxWidth:e.breakpoints.values.lg,"&$paperScrollBody":Object(fe.a)({},e.breakpoints.down(e.breakpoints.values.lg+64),{maxWidth:"calc(100% - 64px)"})},paperWidthXl:{maxWidth:e.breakpoints.values.xl,"&$paperScrollBody":Object(fe.a)({},e.breakpoints.down(e.breakpoints.values.xl+64),{maxWidth:"calc(100% - 64px)"})},paperFullWidth:{width:"calc(100% - 64px)"},paperFullScreen:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,"&$paperScrollBody":{margin:0,maxWidth:"100%"}}}}),{name:"MuiDialog"})(Ze),Ye={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},Ke=r.forwardRef((function(e,t){var n=e.align,o=void 0===n?"inherit":n,i=e.classes,a=e.className,u=e.color,s=void 0===u?"initial":u,c=e.component,f=e.display,d=void 0===f?"initial":f,h=e.gutterBottom,p=void 0!==h&&h,g=e.noWrap,v=void 0!==g&&g,y=e.paragraph,m=void 0!==y&&y,w=e.variant,b=void 0===w?"body1":w,_=e.variantMapping,C=void 0===_?Ye:_,E=Object(A.a)(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),S=c||(m?"p":C[b]||Ye[b])||"span";return r.createElement(S,Object(l.a)({className:Object(I.a)(i.root,a,"inherit"!==b&&i[b],"initial"!==s&&i["color".concat(Object(ie.a)(s))],v&&i.noWrap,p&&i.gutterBottom,m&&i.paragraph,"inherit"!==o&&i["align".concat(Object(ie.a)(o))],"initial"!==d&&i["display".concat(Object(ie.a)(d))]),ref:t},E))})),Qe=Object(S.a)((function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(Ke),qe=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.className,a=e.disableTypography,u=void 0!==a&&a,s=Object(A.a)(e,["children","classes","className","disableTypography"]);return r.createElement("div",Object(l.a)({className:Object(I.a)(o.root,i),ref:t},s),u?n:r.createElement(Qe,{component:"h2",variant:"h6"},n))})),Je=Object(S.a)({root:{margin:0,padding:"16px 24px",flex:"0 0 auto"}},{name:"MuiDialogTitle"})(qe),$e=r.forwardRef((function(e,t){var n=e.disableSpacing,o=void 0!==n&&n,i=e.classes,a=e.className,u=Object(A.a)(e,["disableSpacing","classes","className"]);return r.createElement("div",Object(l.a)({className:Object(I.a)(i.root,a,!o&&i.spacing),ref:t},u))})),et=Object(S.a)({root:{display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},spacing:{"& > :not(:first-child)":{marginLeft:8}}},{name:"MuiDialogActions"})($e),tt=n(135),nt=n.n(tt),rt=r.forwardRef((function(e,t){var n=e.edge,o=void 0!==n&&n,i=e.children,a=e.classes,u=e.className,s=e.color,c=void 0===s?"default":s,f=e.disabled,d=void 0!==f&&f,h=e.disableFocusRipple,p=void 0!==h&&h,g=e.size,v=void 0===g?"medium":g,y=Object(A.a)(e,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return r.createElement(oe,Object(l.a)({className:Object(I.a)(a.root,u,"default"!==c&&a["color".concat(Object(ie.a)(c))],d&&a.disabled,"small"===v&&a["size".concat(Object(ie.a)(v))],{start:a.edgeStart,end:a.edgeEnd}[o]),centerRipple:!0,focusRipple:!p,disabled:d,ref:t},y),r.createElement("span",{className:a.label},i))})),ot=Object(S.a)((function(e){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:Object(O.b)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:e.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:Object(O.b)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Object(O.b)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:e.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}}),{name:"MuiIconButton"})(rt),it=(n(148),Object(S.a)((function(e){return{root:{borderBottom:"1px solid "+e.palette.divider,margin:0,display:"flex",alignItems:"center",zIndex:1,width:"100%",color:"white",background:"rgba(0, 0, 0, 1)"},typography:{width:"100%"},closeButton:{color:e.palette.grey[500],marginRight:"2em"}}}))((function(e){var t=e.children,n=e.classes,r=e.onClose;return o.a.createElement(Je,{disableTypography:!0,className:n.root+" dialogbar dialog-title"},o.a.createElement(Qe,{className:n.typography,variant:"h6"},t),r?o.a.createElement(ot,{"aria-label":"Close",className:n.closeButton,onClick:r},o.a.createElement(nt.a,null)):null)}))),at=Object(S.a)((function(e){return{root:{borderTop:"1px solid "+e.palette.divider,margin:0,justifyContent:"space-between",bottom:0,width:"100%"}}}))(et),ut=n(85),lt=(n(237),new ut.BrowserQRCodeReader);function st(e){var t,n,i=null;return Object(r.useEffect)((function(){!function(r){try{null!=i&&((i=i).srcObject=r,i.addEventListener("loadedmetadata",(function(){null!=i&&(n=t.getContext("2d"),function r(){setTimeout((function(){if(null!=i&&null!=n&&"function"==typeof n.drawImage)try{n.drawImage(i,0,0),lt.decodeFromImage(void 0,t.toDataURL("image/png")).then((function(t){e.onFetchCode(t.text)})).catch((function(){})),r()}catch(e){console.log(e)}}),500)}())}),!1),i.play())}catch(e){console.error(e)}}(e.mediaStream)})),o.a.createElement("div",{className:"qrscanner"},o.a.createElement("div",{className:"ocrloader"},o.a.createElement("em",null),o.a.createElement("span",null)),o.a.createElement("video",{ref:function(e){return i=e}}),o.a.createElement("canvas",{style:{display:"none"},ref:function(e){return t=e},width:640,height:480}))}var ct=r.createContext({}),ft=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.className,a=e.component,u=void 0===a?"ul":a,s=e.dense,c=void 0!==s&&s,f=e.disablePadding,d=void 0!==f&&f,h=e.subheader,p=Object(A.a)(e,["children","classes","className","component","dense","disablePadding","subheader"]),g=r.useMemo((function(){return{dense:c}}),[c]);return r.createElement(ct.Provider,{value:g},r.createElement(u,Object(l.a)({className:Object(I.a)(o.root,i,c&&o.dense,!d&&o.padding,h&&o.subheader),ref:t},p),h,n))})),dt=Object(S.a)({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(ft);var ht="undefined"==typeof window?r.useEffect:r.useLayoutEffect,pt=r.forwardRef((function(e,t){var n=e.alignItems,o=void 0===n?"center":n,a=e.autoFocus,u=void 0!==a&&a,s=e.button,c=void 0!==s&&s,f=e.children,d=e.classes,h=e.className,p=e.component,g=e.ContainerComponent,v=void 0===g?"li":g,y=e.ContainerProps,m=(y=void 0===y?{}:y).className,w=Object(A.a)(y,["className"]),b=e.dense,_=void 0!==b&&b,C=e.disabled,E=void 0!==C&&C,S=e.disableGutters,O=void 0!==S&&S,T=e.divider,N=void 0!==T&&T,M=e.focusVisibleClassName,P=e.selected,x=void 0!==P&&P,D=Object(A.a)(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),k=r.useContext(ct),B={dense:_||k.dense||!1,alignItems:o},L=r.useRef(null);ht((function(){u&&L.current&&L.current.focus()}),[u]);var j,F,V=r.Children.toArray(f),z=V.length&&(j=V[V.length-1],F=["ListItemSecondaryAction"],r.isValidElement(j)&&-1!==F.indexOf(j.type.muiName)),U=R(r.useCallback((function(e){L.current=i.findDOMNode(e)}),[]),t),W=Object(l.a)({className:Object(I.a)(d.root,h,B.dense&&d.dense,!O&&d.gutters,N&&d.divider,E&&d.disabled,c&&d.button,"center"!==o&&d.alignItemsFlexStart,z&&d.secondaryAction,x&&d.selected),disabled:E},D),H=p||"li";return c&&(W.component=p||"div",W.focusVisibleClassName=Object(I.a)(d.focusVisible,M),H=oe),z?(H=W.component||p?H:"div","li"===v&&("li"===H?H="div":"li"===W.component&&(W.component="div")),r.createElement(ct.Provider,{value:B},r.createElement(v,Object(l.a)({className:Object(I.a)(d.container,m),ref:U},w),r.createElement(H,W,V),V.pop()))):r.createElement(ct.Provider,{value:B},r.createElement(H,Object(l.a)({ref:U},W),V))})),gt=Object(S.a)((function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}}),{name:"MuiListItem"})(pt),vt=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.className,a=e.disableTypography,u=void 0!==a&&a,s=e.inset,c=void 0!==s&&s,f=e.primary,d=e.primaryTypographyProps,h=e.secondary,p=e.secondaryTypographyProps,g=Object(A.a)(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),v=r.useContext(ct).dense,y=null!=f?f:n;null==y||y.type===Qe||u||(y=r.createElement(Qe,Object(l.a)({variant:v?"body2":"body1",className:o.primary,component:"span",display:"block"},d),y));var m=h;return null==m||m.type===Qe||u||(m=r.createElement(Qe,Object(l.a)({variant:"body2",className:o.secondary,color:"textSecondary",display:"block"},p),m)),r.createElement("div",Object(l.a)({className:Object(I.a)(o.root,i,v&&o.dense,c&&o.inset,y&&m&&o.multiline),ref:t},g),y,m)})),yt=Object(S.a)({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(vt);function mt(e){var t=Object(r.useState)(e.open),n=t[0],i=t[1],a=Object(r.useState)(e.options),u=a[0],l=a[1];function s(){i(!1)}return Object(r.useEffect)((function(){return i(e.open)}),[e.open]),Object(r.useEffect)((function(){return l(e.options)}),[e.options]),o.a.createElement(Xe,{open:n,onClose:s},o.a.createElement(Je,null,e.title),o.a.createElement("div",null,o.a.createElement(dt,null,u.map((function(t,n){return o.a.createElement(gt,{button:!0,selected:t.selected,onClick:function(){t.selected||function(t){e.onSelect(t),s()}(t)},key:n},o.a.createElement(yt,{primary:t.title}))})))))}var wt=f({root:{width:500},content:{position:"relative",display:"flex",height:"100%",alignItems:"center",overflow:"hidden",justifyContent:"center"},dialogColor:{color:"white !important"},dialogActions:{minHeight:"64px",zIndex:1,background:"rgba(0, 0, 0, 1)",justifyContent:"center !important",position:"fixed"}});function bt(e){var t=wt(),n=e.videoStream.getDevices().length,i="",a=Object(r.useState)(e.videoStream.getCurrentStream()),u=a[0],l=a[1],s=Object(r.useState)(!1),c=s[0],f=s[1];function d(t){void 0===t&&(t=null),e.onClose(t)}function h(t){i=t,e.videoStream.getStreamByDeviceId(i).then((function(e){return l(e)}))}var p=null;p=o.a.createElement(at,{className:t.dialogActions},o.a.createElement(ue,{onClick:function(){switch(n){case 2:h(e.videoStream.getDevices([i])[0].id);break;default:f(!0)}},color:"primary"},o.a.createElement(ce,{fontSize:"large",className:t.dialogColor})));var g=null;if(c){var v=e.videoStream.getDevices().map((function(e){return Object.assign(e,{selected:i===e.id})}));g=o.a.createElement(mt,{open:!0,title:b.getTitleSelectDevice(),options:v,onSelect:function(e){return h(e.id)}})}return o.a.createElement(Xe,{fullScreen:!0,open:!0,onClose:function(){return d()}},o.a.createElement(it,{className:t.dialogColor,onClose:function(){return d()}},b.getTitleScanQRCode()),o.a.createElement("div",{className:t.content},o.a.createElement(st,{mediaStream:u,onFetchCode:d})),g,p)}var _t=se(o.a.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),Ct=se(o.a.createElement("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})),Et=r.forwardRef((function(e,t){var n=e.classes,o=e.className,i=e.dividers,a=void 0!==i&&i,u=Object(A.a)(e,["classes","className","dividers"]);return r.createElement("div",Object(l.a)({className:Object(I.a)(n.root,o,a&&n.dividers),ref:t},u))})),At=Object(S.a)((function(e){return{root:{flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"8px 24px","&:first-child":{paddingTop:20}},dividers:{padding:"16px 24px",borderTop:"1px solid ".concat(e.palette.divider),borderBottom:"1px solid ".concat(e.palette.divider)}}}),{name:"MuiDialogContent"})(Et),It=r.forwardRef((function(e,t){return r.createElement(Qe,Object(l.a)({component:"p",variant:"body1",color:"textSecondary",ref:t},e))})),St=Object(S.a)({root:{marginBottom:12}},{name:"MuiDialogContentText"})(It);function Ot(e){var t=Object(r.useState)(!0),n=t[0],i=t[1],a=Object(r.useState)(e.title),u=a[0],l=a[1],s=Object(r.useState)(e.text),c=s[0],f=s[1];function d(t){void 0===t&&(t=!1),i(!1),e.onClose(t)}return Object(r.useEffect)((function(){return l(e.title)}),[e.title]),Object(r.useEffect)((function(){return f(e.text)}),[e.text]),o.a.createElement(Xe,{open:n,onClose:function(){return d()},maxWidth:"md"},o.a.createElement(Je,null,u),o.a.createElement(At,null,o.a.createElement(St,null,c)),o.a.createElement(et,null,o.a.createElement(ue,{onClick:function(){return d()}},o.a.createElement(_t,{fontSize:"large"})),o.a.createElement(ue,{onClick:function(){return d(!0)}},o.a.createElement(Ct,{fontSize:"large"}))))}var Tt=f({root:{"> .MuiGrid-container-120 .MuiGrid-item-121":{display:"flex",justifyContent:"center"}}});function Rt(e){var t=Tt(),n=Object(r.useState)(!0),i=n[0],a=n[1],u=Object(r.useState)(e.title),l=u[0],s=u[1],c=Object(r.useState)(e.text),f=c[0],d=c[1];function h(){a(!1)}return Object(r.useEffect)((function(){return s(e.title)}),[e.title]),Object(r.useEffect)((function(){return d(e.text)}),[e.text]),o.a.createElement(Xe,{open:i,onClose:h,disableBackdropClick:!0,disableEscapeKeyDown:!0,className:t.root},o.a.createElement(Je,null,l),o.a.createElement(At,null,o.a.createElement(St,null,f)),o.a.createElement(et,null,o.a.createElement(ue,{onClick:h,color:"primary"}," ",o.a.createElement(Ct,{fontSize:"large"}))))}var Nt=function(){function e(){}return e.isMobile=function(){return/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)},e}(),Mt=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function u(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}l((r=r.apply(e,t||[])).next())}))},Pt=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}},xt=function(){function e(){this.DEFAULT_MEDIATRACK_CONSTRAINTS={facingMode:"user"},this.stream=null,this.currentMediaTrackConstraints=null,this.devices=[]}return e.getInstance=function(){var t=this;return new Promise((function(n,r){return Mt(t,void 0,void 0,(function(){var t;return Pt(this,(function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),null!==e.currentInstance?[3,2]:(e.currentInstance=new e,[4,e.currentInstance.setup()]);case 1:o.sent(),o.label=2;case 2:return n(e.currentInstance),[3,4];case 3:return t=o.sent(),e.destory(),r(t),[3,4];case 4:return[2]}}))}))}))},e.destory=function(){null!=e.currentInstance&&e.currentInstance.close(),e.currentInstance=null},e.prototype.setup=function(){var e=this;return new Promise((function(t,n){return Mt(e,void 0,void 0,(function(){var e,r,o;return Pt(this,(function(i){switch(i.label){case 0:return i.trys.push([0,3,,4]),Nt.isMobile()&&(this.DEFAULT_MEDIATRACK_CONSTRAINTS={facingMode:{exact:"environment"}}),e=this,[4,this.getMediaDeviceInfo()];case 1:return e.devices=i.sent().map((function(e){return{label:e.label.replace(/ (\(.*?\))/g,""),id:e.deviceId}})),r=this,[4,this.getMediaStreamByConstraints(this.DEFAULT_MEDIATRACK_CONSTRAINTS)];case 2:if(r.stream=i.sent(),null==this.stream)throw new Error("Stream are null");return t(),[3,4];case 3:return o=i.sent(),n(o),[3,4];case 4:return[2]}}))}))}))},e.prototype.getSortAndFilterMediaDeviceInfoList=function(e){return e.filter((function(e){return"videoinput"===e.kind})).sort((function(e,t){return e.label.includes("back")&&t.label.includes("front")?-1:e.label.includes("front")&&t.label.includes("back")?1:0}))},e.prototype.getMediaDeviceInfo=function(){var e=this;return new Promise((function(t,n){return Mt(e,void 0,void 0,(function(){var e,r;return Pt(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,navigator.mediaDevices.enumerateDevices()];case 1:return e=o.sent(),t(this.getSortAndFilterMediaDeviceInfoList(e)),[3,3];case 2:return r=o.sent(),n(r),[3,3];case 3:return[2]}}))}))}))},e.prototype.close=function(){null!=this.stream&&(this.stream.getTracks().forEach((function(e){return e.stop()})),this.stream=null)},e.prototype.getMediaStreamByConstraints=function(e){var t=this;return new Promise((function(n,r){return Mt(t,void 0,void 0,(function(){var t,o;return Pt(this,(function(i){switch(i.label){case 0:return null==this.stream||this.currentMediaTrackConstraints!==e?[3,1]:(n(this.stream),[3,4]);case 1:return i.trys.push([1,3,,4]),null!=this.stream&&this.currentMediaTrackConstraints!==e&&this.close(),t=this,[4,navigator.mediaDevices.getUserMedia({video:e})];case 2:return t.stream=i.sent(),this.currentMediaTrackConstraints=e,n(this.stream),[3,4];case 3:return o=i.sent(),r(o),[3,4];case 4:return[2]}}))}))}))},e.prototype.getDevices=function(e){return void 0===e&&(e=[]),this.devices.filter((function(t){return!e.indexOf(t.id)}))},e.prototype.getCurrentStream=function(){return this.stream},e.prototype.getStreamByDeviceId=function(e){var t=this;return new Promise((function(n,r){return Mt(t,void 0,void 0,(function(){var t,o,i;return Pt(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),t={deviceId:{exact:e}},o=this,[4,this.getMediaStreamByConstraints(t)];case 1:return o.stream=a.sent(),n(this.stream),[3,3];case 2:return i=a.sent(),r(i),[3,3];case 3:return[2]}}))}))}))},e.currentInstance=null,e}(),Dt=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function u(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}l((r=r.apply(e,t||[])).next())}))},kt=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}},Bt=Object(u.a)({palette:{primary:y.a,secondary:w.a}}),Lt=f({root:{width:500},img:{width:"4em"}});var jt=document.getElementById("qrscannerredirect");b.init("qrscannerredirect"),i.render(r.createElement((function(){var e=Lt(),t=Object(r.useState)(null),n=t[0],i=t[1],a=Object(r.useState)(null),u=a[0],l=a[1],s=null;function c(){null===n&&(l(o.a.createElement(Xe,{open:!0,disableBackdropClick:!0,disableEscapeKeyDown:!0},o.a.createElement(Je,null,b.getTitleWaitPermission()))),xt.getInstance().then((function(e){l(null),i(o.a.createElement(bt,{videoStream:e,onClose:f}))})).catch((function(e){l(o.a.createElement(Rt,{title:b.getTitlePermissonFailed(),text:b.getContentPermissonFailed(),onClose:function(){return l(null)}}))})))}function f(e){if(void 0===e&&(e=null),null!=e){if(_.validURL(e)){var t=b.getContentRedirect().replace("%URL",e);l(o.a.createElement(Ot,{title:b.getTitleRedirect(),text:t,onClose:function(t){return function(e,t){return Dt(this,void 0,void 0,(function(){return kt(this,(function(n){return e||b.isForce()?window.location.href=t:l(null),i(null),xt.destory(),[2]}))}))}(t,e)}}))}}else i(null)}return b.isButtonDisabled()||(s=o.a.createElement(ue,{onClick:function(){return c()}},o.a.createElement("img",{src:E.a,className:e.img,alt:"qrcode"}))),window.qrscannerredirect.open=function(){return c()},o.a.createElement(g,{theme:Bt},u,s,n)}),null),jt)},,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(1),o=n(45);function i(e){return e&&"object"===Object(o.a)(e)&&e.constructor===Object}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},o=n.clone?Object(r.a)({},e):e;return i(e)&&i(t)&&Object.keys(t).forEach((function(r){"__proto__"!==r&&(i(t[r])&&r in e?o[r]=a(e[r],t[r],n):o[r]=t[r])})),o}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),o=n.n(r),i=n(58);function a(){return o.a.useContext(i.a)}},function(e,t,n){"use strict";function r(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var o,i=t.props[n];for(o in i)void 0===r[o]&&(r[o]=i[o]);return r}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return dn}));var r=n(2),o=n(1),i=n(0),a=n.n(i),u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l="object"===("undefined"==typeof window?"undefined":u(window))&&"object"===("undefined"==typeof document?"undefined":u(document))&&9===document.nodeType;var s=n(39),c=n(36),f=n(46),d=n(28),h={}.constructor;function p(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(p);if(e.constructor!==h)return e;var t={};for(var n in e)t[n]=p(e[n]);return t}function g(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=p(t),i=r.plugins.onCreateRule(e,o,n);return i||(e[0],null)}var v=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n};function y(e,t){if(void 0===t&&(t=!1),!Array.isArray(e))return e;var n="";if(Array.isArray(e[0]))for(var r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=", "),n+=v(e[r]," ");else n=v(e,", ");return t||"!important"!==e[e.length-1]||(n+=" !important"),n}function m(e,t){for(var n="",r=0;r<t;r++)n+="  ";return n+e}function w(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var o=n.indent,i=void 0===o?0:o,a=t.fallbacks;if(e&&i++,a)if(Array.isArray(a))for(var u=0;u<a.length;u++){var l=a[u];for(var s in l){var c=l[s];null!=c&&(r&&(r+="\n"),r+=""+m(s+": "+y(c)+";",i))}}else for(var f in a){var d=a[f];null!=d&&(r&&(r+="\n"),r+=""+m(f+": "+y(d)+";",i))}for(var h in t){var p=t[h];null!=p&&"fallbacks"!==h&&(r&&(r+="\n"),r+=""+m(h+": "+y(p)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r="\n"+r+"\n"),m(e+" {"+r,--i)+m("}",i)):r}var b=/([[\].#*$><+~=|^:(),"'`\s])/g,_="undefined"!=typeof CSS&&CSS.escape,C=function(e){return _?_(e):e.replace(b,"\\$1")},E=function(){function e(e,t,n){this.type="style",this.key=void 0,this.isProcessed=!1,this.style=void 0,this.renderer=void 0,this.renderable=void 0,this.options=void 0;var r=n.sheet,o=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var o=t;n&&!1===n.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!r)return this;var u=i&&a;if(u?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return u?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),A=function(e){function t(t,n,r){var o;(o=e.call(this,t,n,r)||this).selectorText=void 0,o.id=void 0,o.renderable=void 0;var i=r.selector,a=r.scoped,u=r.sheet,l=r.generateId;return i?o.selectorText=i:!1!==a&&(o.id=l(Object(f.a)(Object(f.a)(o)),u),o.selectorText="."+C(o.id)),o}Object(c.a)(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=y(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Object(o.a)({},e,{allowEmpty:!0}):e;return w(this.selectorText,this.style,n)},Object(s.a)(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(E),I={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new A(e,t,n)}},S={indent:1,children:!0},O=/@([\w-]+)/,T=function(){function e(e,t,n){this.type="conditional",this.at=void 0,this.key=void 0,this.query=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e,this.query=n.name;var r=e.match(O);for(var i in this.at=r?r[1]:"unknown",this.options=n,this.rules=new q(Object(o.a)({},n,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.toString=function(e){if(void 0===e&&(e=S),null==e.indent&&(e.indent=S.indent),null==e.children&&(e.children=S.children),!1===e.children)return this.query+" {}";var t=this.rules.toString(e);return t?this.query+" {\n"+t+"\n}":""},e}(),R=/@media|@supports\s+/,N={onCreateRule:function(e,t,n){return R.test(e)?new T(e,t,n):null}},M={indent:1,children:!0},P=/@keyframes\s+([\w-]+)/,x=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.key=void 0,this.name=void 0,this.id=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0;var r=e.match(P);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var i=n.scoped,a=n.sheet,u=n.generateId;for(var l in this.id=!1===i?this.name:C(u(this,a)),this.rules=new q(Object(o.a)({},n,{parent:this})),t)this.rules.add(l,t[l],Object(o.a)({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){if(void 0===e&&(e=M),null==e.indent&&(e.indent=M.indent),null==e.children&&(e.children=M.children),!1===e.children)return this.at+" "+this.id+" {}";var t=this.rules.toString(e);return t&&(t="\n"+t+"\n"),this.at+" "+this.id+" {"+t+"}"},e}(),D=/@keyframes\s+/,k=/\$([\w-]+)/g,B=function(e,t){return"string"==typeof e?e.replace(k,(function(e,n){return n in t?t[n]:e})):e},L=function(e,t,n){var r=e[t],o=B(r,n);o!==r&&(e[t]=o)},j={onCreateRule:function(e,t,n){return"string"==typeof e&&D.test(e)?new x(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&L(e,"animation-name",n.keyframes),"animation"in e&&L(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return B(e,r.keyframes);default:return e}}},F=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).renderable=void 0,t}return Object(c.a)(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Object(o.a)({},e,{allowEmpty:!0}):e;return w(this.key,this.style,n)},t}(E),V={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new F(e,t,n):null}},z=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.key=void 0,this.style=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.style)){for(var t="",n=0;n<this.style.length;n++)t+=w(this.at,this.style[n]),this.style[n+1]&&(t+="\n");return t}return w(this.at,this.style,e)},e}(),U=/@font-face/,W={onCreateRule:function(e,t,n){return U.test(e)?new z(e,t,n):null}},H=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.key=void 0,this.style=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return w(this.key,this.style,e)},e}(),G={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new H(e,t,n):null}},Z=function(){function e(e,t,n){this.type="simple",this.key=void 0,this.value=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),X={"@charset":!0,"@import":!0,"@namespace":!0},Y=[I,N,j,V,W,G,{onCreateRule:function(e,t,n){return e in X?new Z(e,t,n):null}}],K={process:!0},Q={force:!0,process:!0},q=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=void 0,this.classes=void 0,this.keyframes=void 0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,i=r.parent,a=r.sheet,u=r.jss,l=r.Renderer,s=r.generateId,c=r.scoped,f=Object(o.a)({classes:this.classes,parent:i,sheet:a,jss:u,Renderer:l,generateId:s,scoped:c,name:e},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(f.selector="."+C(this.classes[d]));var h=g(d,t,f);if(!h)return null;this.register(h);var p=void 0===f.index?this.index.length:f.index;return this.index.splice(p,0,h),h},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof A?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof x&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof A?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof x&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.map[e],t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=K);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var u=t,l=u.style;if(i.onUpdate(n,t,a,r),r.process&&l&&l!==u.style){for(var s in i.onProcessStyle(u.style,u,a),u.style){var c=u.style[s];c!==l[s]&&u.prop(s,c,Q)}for(var f in l){var d=u.style[f],h=l[f];null==d&&d!==h&&u.prop(f,null,Q)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=0;o<this.index.length;o++){var i=this.index[o].toString(e);(i||r)&&(t&&(t+="\n"),t+=i)}return t},e}(),J=function(){function e(e,t){for(var n in this.options=void 0,this.deployed=void 0,this.attached=void 0,this.rules=void 0,this.renderer=void 0,this.classes=void 0,this.keyframes=void 0,this.queue=void 0,this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=Object(o.a)({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new q(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var o=this.rules.add(e,t,n);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(r?r.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var o=this.addRule(r,e[r],t);o&&n.push(o)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!!t&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),$=function(){function e(){this.plugins={internal:[],external:[]},this.registry=void 0}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var o=this.registry.onCreateRule[r](e,t,n);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,o=0;o<this.registry.onChangeValue.length;o++)r=this.registry.onChangeValue[o](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),ee=new(function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=Object(d.a)(t,["attached"]),o="",i=0;i<this.registry.length;i++){var a=this.registry[i];null!=n&&a.attached!==n||(o&&(o+="\n"),o+=a.toString(r))}return o},Object(s.a)(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}()),te="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),ne="2f1acc6c3a606b082e5eef5e54414ffb";null==te[ne]&&(te[ne]=0);var re=te[ne]++,oe=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var o="",i="";return r&&(r.options.classNamePrefix&&(i=r.options.classNamePrefix),null!=r.options.jss.id&&(o=String(r.options.jss.id))),e.minify?""+(i||"c")+re+o+t:i+n.key+"-"+re+(o?"-"+o:"")+"-"+t}},ie=function(e){var t;return function(){return t||(t=e()),t}};function ae(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}}function ue(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=y(n,!0),"!important"===n[n.length-1]))return e.style.setProperty(t,r,"important"),!0;e.attributeStyleMap?e.attributeStyleMap.set(t,r):e.style.setProperty(t,r)}catch(e){return!1}return!0}function le(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}}function se(e,t){return e.selectorText=t,e.selectorText===t}var ce=ie((function(){return document.querySelector("head")}));function fe(e){var t=ee.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if((n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e))&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var o=function(e){for(var t=ce(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var de=ie((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),he=function(e,t,n){var r=e.cssRules.length;(void 0===n||n>r)&&(n=r);try{if("insertRule"in e)e.insertRule(t,n);else if("appendRule"in e){e.appendRule(t)}}catch(e){return!1}return e.cssRules[n]},pe=function(){function e(e){this.getPropertyValue=ae,this.setProperty=ue,this.removeProperty=le,this.setSelector=se,this.element=void 0,this.sheet=void 0,this.hasInsertedRules=!1,e&&ee.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var i=de();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=fe(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var o=n,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else ce().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){var e=this.element.parentNode;e&&e.removeChild(this.element)},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,o=n;return("conditional"!==e.type&&"keyframes"!==e.type||!1!==(o=he(n,r.toString({children:!1}),t)))&&(this.insertRules(r.rules,o),o)}if(e.renderable&&e.renderable.parentStyleSheet===this.element.sheet)return e.renderable;var i=e.toString();if(!i)return!1;var a=he(n,i,t);return!1!==a&&(this.hasInsertedRules=!0,e.renderable=a,a)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),!0)},t.indexOf=function(e){for(var t=this.element.sheet.cssRules,n=0;n<t.length;n++)if(e===t[n])return n;return-1},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),ge=0,ve=function(){function e(e){this.id=ge++,this.version="10.3.0",this.plugins=new $,this.options={id:{minify:!1},createGenerateId:oe,Renderer:l?pe:null,plugins:[]},this.generateId=oe({minify:!1});for(var t=0;t<Y.length;t++)this.plugins.use(Y[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=Object(o.a)({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!=typeof n&&(n=0===ee.index?0:ee.index+1);var r=new J(e,Object(o.a)({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),ee.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var r=Object(o.a)({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var i=g(e,t,r);return i&&this.plugins.onProcessRule(i),i},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}();var ye="undefined"!=typeof CSS&&CSS&&"number"in CSS,me=function(e){return new ve(e)};
     59");break;case 238:return r.ANSIX12_ENCODE;case 239:return r.TEXT_ENCODE;case 240:return r.EDIFACT_ENCODE;case 241:break;default:if(254!==i||0!==e.available())throw new s.default}}while(e.available()>0);return r.ASCII_ENCODE},e.decodeC40Segment=function(e,t){var n=!1,r=[],o=0;do{if(8===e.available())return;var i=e.readBits(8);if(254===i)return;this.parseTwoBytes(i,e.readBits(8),r);for(var a=0;a<3;a++){var u=r[a];switch(o){case 0:if(u<3)o=u+1;else{if(!(u<this.C40_BASIC_SET_CHARS.length))throw new s.default;var l=this.C40_BASIC_SET_CHARS[u];n?(t.append(String.fromCharCode(l.charCodeAt(0)+128)),n=!1):t.append(l)}break;case 1:n?(t.append(String.fromCharCode(u+128)),n=!1):t.append(String.fromCharCode(u)),o=0;break;case 2:if(u<this.C40_SHIFT2_SET_CHARS.length){l=this.C40_SHIFT2_SET_CHARS[u];n?(t.append(String.fromCharCode(l.charCodeAt(0)+128)),n=!1):t.append(l)}else switch(u){case 27:t.append(String.fromCharCode(29));break;case 30:n=!0;break;default:throw new s.default}o=0;break;case 3:n?(t.append(String.fromCharCode(u+224)),n=!1):t.append(String.fromCharCode(u+96)),o=0;break;default:throw new s.default}}}while(e.available()>0)},e.decodeTextSegment=function(e,t){var n=!1,r=[],o=0;do{if(8===e.available())return;var i=e.readBits(8);if(254===i)return;this.parseTwoBytes(i,e.readBits(8),r);for(var a=0;a<3;a++){var u=r[a];switch(o){case 0:if(u<3)o=u+1;else{if(!(u<this.TEXT_BASIC_SET_CHARS.length))throw new s.default;var l=this.TEXT_BASIC_SET_CHARS[u];n?(t.append(String.fromCharCode(l.charCodeAt(0)+128)),n=!1):t.append(l)}break;case 1:n?(t.append(String.fromCharCode(u+128)),n=!1):t.append(String.fromCharCode(u)),o=0;break;case 2:if(u<this.TEXT_SHIFT2_SET_CHARS.length){l=this.TEXT_SHIFT2_SET_CHARS[u];n?(t.append(String.fromCharCode(l.charCodeAt(0)+128)),n=!1):t.append(l)}else switch(u){case 27:t.append(String.fromCharCode(29));break;case 30:n=!0;break;default:throw new s.default}o=0;break;case 3:if(!(u<this.TEXT_SHIFT3_SET_CHARS.length))throw new s.default;l=this.TEXT_SHIFT3_SET_CHARS[u];n?(t.append(String.fromCharCode(l.charCodeAt(0)+128)),n=!1):t.append(l),o=0;break;default:throw new s.default}}}while(e.available()>0)},e.decodeAnsiX12Segment=function(e,t){var n=[];do{if(8===e.available())return;var r=e.readBits(8);if(254===r)return;this.parseTwoBytes(r,e.readBits(8),n);for(var o=0;o<3;o++){var i=n[o];switch(i){case 0:t.append("\r");break;case 1:t.append("*");break;case 2:t.append(">");break;case 3:t.append(" ");break;default:if(i<14)t.append(String.fromCharCode(i+44));else{if(!(i<40))throw new s.default;t.append(String.fromCharCode(i+51))}}}}while(e.available()>0)},e.parseTwoBytes=function(e,t,n){var r=(e<<8)+t-1,o=Math.floor(r/1600);n[0]=o,r-=1600*o,o=Math.floor(r/40),n[1]=o,n[2]=r-40*o},e.decodeEdifactSegment=function(e,t){do{if(e.available()<=16)return;for(var n=0;n<4;n++){var r=e.readBits(6);if(31===r){var o=8-e.getBitOffset();return void(8!==o&&e.readBits(o))}0==(32&r)&&(r|=64),t.append(String.fromCharCode(r))}}while(e.available()>0)},e.decodeBase256Segment=function(e,t,n){var r,o=1+e.getByteOffset(),i=this.unrandomize255State(e.readBits(8),o++);if((r=0===i?e.available()/8|0:i<250?i:250*(i-249)+this.unrandomize255State(e.readBits(8),o++))<0)throw new s.default;for(var a=new Uint8Array(r),f=0;f<r;f++){if(e.available()<8)throw new s.default;a[f]=this.unrandomize255State(e.readBits(8),o++)}n.push(a);try{t.append(u.default.decode(a,l.default.ISO88591))}catch(e){throw new c.default("Platform does not support required encoding: "+e.message)}},e.unrandomize255State=function(e,t){var n=e-(149*t%255+1);return n>=0?n:n+256},e.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"],e.C40_SHIFT2_SET_CHARS=["!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","@","[","\\","]","^","_"],e.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"],e.TEXT_SHIFT2_SET_CHARS=e.C40_SHIFT2_SET_CHARS,e.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)],e}();t.default=f},function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}},o=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0});var i=n(13),a=n(52),u=n(53),l=n(20),s=n(72),c=n(4),f=function(){function e(e){this.image=e,this.rectangleDetector=new s.default(e)}return e.prototype.detect=function(){var t,n,u=this.rectangleDetector.detect(),l=u[0],s=u[1],f=u[2],h=u[3],p=[];p.push(this.transitionsBetween(l,s)),p.push(this.transitionsBetween(l,f)),p.push(this.transitionsBetween(s,h)),p.push(this.transitionsBetween(f,h)),p.sort(d.resultPointsAndTransitionsComparator);var g=p[0],v=p[1],y=new Map;e.increment(y,g.getFrom()),e.increment(y,g.getTo()),e.increment(y,v.getFrom()),e.increment(y,v.getTo());var m=null,w=null,b=null;try{for(var _=r(Array.from(y.entries())),C=_.next();!C.done;C=_.next()){var E=o(C.value,2),A=E[0];2===E[1]?w=A:null==m?m=A:b=A}}catch(e){t={error:e}}finally{try{C&&!C.done&&(n=_.return)&&n.call(_)}finally{if(t)throw t.error}}if(null==m||null==w||null==b)throw new c.default;var I=[m,w,b];i.default.orderBestPatterns(I);var S=I[0];w=I[1];var O,T=I[2];O=y.has(l)?y.has(s)?y.has(f)?h:f:s:l;var R,N,M=this.transitionsBetween(T,O).getTransitions(),P=this.transitionsBetween(S,O).getTransitions();if(1==(1&M)&&M++,1==(1&P)&&P++,4*(M+=2)>=7*(P+=2)||4*P>=7*M)null==(N=this.correctTopRightRectangular(w,S,T,O,M,P))&&(N=O),1==(1&(M=this.transitionsBetween(T,N).getTransitions()))&&M++,1==(1&(P=this.transitionsBetween(S,N).getTransitions()))&&P++,R=e.sampleGrid(this.image,T,w,S,N,M,P);else{var x=Math.min(P,M);null==(N=this.correctTopRight(w,S,T,O,x))&&(N=O);var D=Math.max(this.transitionsBetween(T,N).getTransitions(),this.transitionsBetween(S,N).getTransitions());1==(1&++D)&&D++,R=e.sampleGrid(this.image,T,w,S,N,D,D)}return new a.default(R,[T,w,S,N])},e.prototype.correctTopRightRectangular=function(t,n,r,o,a,u){var l=e.distance(t,n)/a,s=e.distance(r,o),c=(o.getX()-r.getX())/s,f=(o.getY()-r.getY())/s,d=new i.default(o.getX()+l*c,o.getY()+l*f);l=e.distance(t,r)/u,s=e.distance(n,o),c=(o.getX()-n.getX())/s,f=(o.getY()-n.getY())/s;var h=new i.default(o.getX()+l*c,o.getY()+l*f);return this.isValid(d)?this.isValid(h)?Math.abs(a-this.transitionsBetween(r,d).getTransitions())+Math.abs(u-this.transitionsBetween(n,d).getTransitions())<=Math.abs(a-this.transitionsBetween(r,h).getTransitions())+Math.abs(u-this.transitionsBetween(n,h).getTransitions())?d:h:d:this.isValid(h)?h:null},e.prototype.correctTopRight=function(t,n,r,o,a){var u=e.distance(t,n)/a,l=e.distance(r,o),s=(o.getX()-r.getX())/l,c=(o.getY()-r.getY())/l,f=new i.default(o.getX()+u*s,o.getY()+u*c);u=e.distance(t,r)/a,l=e.distance(n,o),s=(o.getX()-n.getX())/l,c=(o.getY()-n.getY())/l;var d=new i.default(o.getX()+u*s,o.getY()+u*c);return this.isValid(f)?this.isValid(d)?Math.abs(this.transitionsBetween(r,f).getTransitions()-this.transitionsBetween(n,f).getTransitions())<=Math.abs(this.transitionsBetween(r,d).getTransitions()-this.transitionsBetween(n,d).getTransitions())?f:d:f:this.isValid(d)?d:null},e.prototype.isValid=function(e){return e.getX()>=0&&e.getX()<this.image.getWidth()&&e.getY()>0&&e.getY()<this.image.getHeight()},e.distance=function(e,t){return l.default.round(i.default.distance(e,t))},e.increment=function(e,t){var n=e.get(t);e.set(t,null==n?1:n+1)},e.sampleGrid=function(e,t,n,r,o,i,a){return u.default.getInstance().sampleGrid(e,i,a,.5,.5,i-.5,.5,i-.5,a-.5,.5,a-.5,t.getX(),t.getY(),o.getX(),o.getY(),r.getX(),r.getY(),n.getX(),n.getY())},e.prototype.transitionsBetween=function(e,t){var n=0|e.getX(),r=0|e.getY(),o=0|t.getX(),i=0|t.getY(),a=Math.abs(i-r)>Math.abs(o-n);if(a){var u=n;n=r,r=u,u=o,o=i,i=u}for(var l=Math.abs(o-n),s=Math.abs(i-r),c=-l/2,f=r<i?1:-1,h=n<o?1:-1,p=0,g=this.image.get(a?r:n,a?n:r),v=n,y=r;v!==o;v+=h){var m=this.image.get(a?y:v,a?v:y);if(m!==g&&(p++,g=m),(c+=s)>0){if(y===i)break;y+=f,c-=l}}return new d(e,t,p)},e}();t.default=f;var d=function(){function e(e,t,n){this.from=e,this.to=t,this.transitions=n}return e.prototype.getFrom=function(){return this.from},e.prototype.getTo=function(){return this.to},e.prototype.getTransitions=function(){return this.transitions},e.prototype.toString=function(){return this.from+"/"+this.to+"/"+this.transitions},e.resultPointsAndTransitionsComparator=function(e,t){return e.getTransitions()-t.getTransitions()},e}()},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(31),a=n(116),u=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=500);var r=new a.default;return r.setHints(t),e.call(this,r,n)||this}return o(t,e),t.prototype.decodeBitmap=function(e){return this.reader.decodeWithState(e)},t}(i.BrowserCodeReader);t.BrowserMultiFormatReader=u},function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(23),i=n(34),a=n(44),u=n(180),l=n(118),s=n(184),c=n(185),f=n(22),d=function(){function e(){this.rsDecoder=new a.default(i.default.QR_CODE_FIELD_256)}return e.prototype.decodeBooleanArray=function(e,t){return this.decodeBitMatrix(o.default.parseFromBooleanArray(e),t)},e.prototype.decodeBitMatrix=function(e,t){var n=new u.default(e),r=null;try{return this.decodeBitMatrixParser(n,t)}catch(e){r=e}try{n.remask(),n.setMirror(!0),n.readVersion(),n.readFormatInformation(),n.mirror();var o=this.decodeBitMatrixParser(n,t);return o.setOther(new l.default(!0)),o}catch(e){if(null!==r)throw r;throw e}},e.prototype.decodeBitMatrixParser=function(e,t){var n,o,i,a,u=e.readVersion(),l=e.readFormatInformation().getErrorCorrectionLevel(),f=e.readCodewords(),d=s.default.getDataBlocks(f,u,l),h=0;try{for(var p=r(d),g=p.next();!g.done;g=p.next()){h+=(b=g.value).getNumDataCodewords()}}catch(e){n={error:e}}finally{try{g&&!g.done&&(o=p.return)&&o.call(p)}finally{if(n)throw n.error}}var v=new Uint8Array(h),y=0;try{for(var m=r(d),w=m.next();!w.done;w=m.next()){var b,_=(b=w.value).getCodewords(),C=b.getNumDataCodewords();this.correctErrors(_,C);for(var E=0;E<C;E++)v[y++]=_[E]}}catch(e){i={error:e}}finally{try{w&&!w.done&&(a=m.return)&&a.call(m)}finally{if(i)throw i.error}}return c.default.decode(v,u,l,t)},e.prototype.correctErrors=function(e,t){e.length;var n=new Int32Array(e);try{this.rsDecoder.decode(n,e.length-t)}catch(e){throw new f.default}for(var r=0;r<t;r++)e[r]=n[r]},e}();t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(79),o=n(117),i=n(183),a=n(8),u=function(){function e(e){var t=e.getHeight();if(t<21||1!=(3&t))throw new a.default;this.bitMatrix=e}return e.prototype.readFormatInformation=function(){if(null!==this.parsedFormatInfo&&void 0!==this.parsedFormatInfo)return this.parsedFormatInfo;for(var e=0,t=0;t<6;t++)e=this.copyBit(t,8,e);e=this.copyBit(7,8,e),e=this.copyBit(8,8,e),e=this.copyBit(8,7,e);for(var n=5;n>=0;n--)e=this.copyBit(8,n,e);var r=this.bitMatrix.getHeight(),i=0,u=r-7;for(n=r-1;n>=u;n--)i=this.copyBit(8,n,i);for(t=r-8;t<r;t++)i=this.copyBit(t,8,i);if(this.parsedFormatInfo=o.default.decodeFormatInformation(e,i),null!==this.parsedFormatInfo)return this.parsedFormatInfo;throw new a.default},e.prototype.readVersion=function(){if(null!==this.parsedVersion&&void 0!==this.parsedVersion)return this.parsedVersion;var e=this.bitMatrix.getHeight(),t=Math.floor((e-17)/4);if(t<=6)return r.default.getVersionForNumber(t);for(var n=0,o=e-11,i=5;i>=0;i--)for(var u=e-9;u>=o;u--)n=this.copyBit(u,i,n);var l=r.default.decodeVersionInformation(n);if(null!==l&&l.getDimensionForVersion()===e)return this.parsedVersion=l,l;n=0;for(u=5;u>=0;u--)for(i=e-9;i>=o;i--)n=this.copyBit(u,i,n);if(null!==(l=r.default.decodeVersionInformation(n))&&l.getDimensionForVersion()===e)return this.parsedVersion=l,l;throw new a.default},e.prototype.copyBit=function(e,t,n){return(this.isMirror?this.bitMatrix.get(t,e):this.bitMatrix.get(e,t))?n<<1|1:n<<1},e.prototype.readCodewords=function(){var e=this.readFormatInformation(),t=this.readVersion(),n=i.default.values.get(e.getDataMask()),r=this.bitMatrix.getHeight();n.unmaskBitMatrix(this.bitMatrix,r);for(var o=t.buildFunctionPattern(),u=!0,l=new Uint8Array(t.getTotalCodewords()),s=0,c=0,f=0,d=r-1;d>0;d-=2){6===d&&d--;for(var h=0;h<r;h++)for(var p=u?r-1-h:h,g=0;g<2;g++)o.get(d-g,p)||(f++,c<<=1,this.bitMatrix.get(d-g,p)&&(c|=1),8===f&&(l[s++]=c,f=0,c=0));u=!u}if(s!==t.getTotalCodewords())throw new a.default;return l},e.prototype.remask=function(){if(null!==this.parsedFormatInfo){var e=i.default.values[this.parsedFormatInfo.getDataMask()],t=this.bitMatrix.getHeight();e.unmaskBitMatrix(this.bitMatrix,t)}},e.prototype.setMirror=function(e){this.parsedVersion=null,this.parsedFormatInfo=null,this.isMirror=e},e.prototype.mirror=function(){for(var e=this.bitMatrix,t=0,n=e.getWidth();t<n;t++)for(var r=t+1,o=e.getHeight();r<o;r++)e.get(t,r)!==e.get(r,t)&&(e.flip(r,t),e.flip(t,r))},e}();t.default=u},function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.ecCodewordsPerBlock=e,this.ecBlocks=t}return e.prototype.getECCodewordsPerBlock=function(){return this.ecCodewordsPerBlock},e.prototype.getNumBlocks=function(){var e,t,n=0,o=this.ecBlocks;try{for(var i=r(o),a=i.next();!a.done;a=i.next()){n+=a.value.getCount()}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}return n},e.prototype.getTotalECCodewords=function(){return this.ecCodewordsPerBlock*this.getNumBlocks()},e.prototype.getECBlocks=function(){return this.ecBlocks},e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){this.count=e,this.dataCodewords=t}return e.prototype.getCount=function(){return this.count},e.prototype.getDataCodewords=function(){return this.dataCodewords},e}();t.default=r},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.DATA_MASK_000=0]="DATA_MASK_000",e[e.DATA_MASK_001=1]="DATA_MASK_001",e[e.DATA_MASK_010=2]="DATA_MASK_010",e[e.DATA_MASK_011=3]="DATA_MASK_011",e[e.DATA_MASK_100=4]="DATA_MASK_100",e[e.DATA_MASK_101=5]="DATA_MASK_101",e[e.DATA_MASK_110=6]="DATA_MASK_110",e[e.DATA_MASK_111=7]="DATA_MASK_111"}(r=t.DataMaskValues||(t.DataMaskValues={}));var o=function(){function e(e,t){this.value=e,this.isMasked=t}return e.prototype.unmaskBitMatrix=function(e,t){for(var n=0;n<t;n++)for(var r=0;r<t;r++)this.isMasked(n,r)&&e.flip(r,n)},e.values=new Map([[r.DATA_MASK_000,new e(r.DATA_MASK_000,(function(e,t){return 0==(e+t&1)}))],[r.DATA_MASK_001,new e(r.DATA_MASK_001,(function(e,t){return 0==(1&e)}))],[r.DATA_MASK_010,new e(r.DATA_MASK_010,(function(e,t){return t%3==0}))],[r.DATA_MASK_011,new e(r.DATA_MASK_011,(function(e,t){return(e+t)%3==0}))],[r.DATA_MASK_100,new e(r.DATA_MASK_100,(function(e,t){return 0==(Math.floor(e/2)+Math.floor(t/3)&1)}))],[r.DATA_MASK_101,new e(r.DATA_MASK_101,(function(e,t){return e*t%6==0}))],[r.DATA_MASK_110,new e(r.DATA_MASK_110,(function(e,t){return e*t%6<3}))],[r.DATA_MASK_111,new e(r.DATA_MASK_111,(function(e,t){return 0==(e+t+e*t%3&1)}))]]),e}();t.default=o},function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(7),i=function(){function e(e,t){this.numDataCodewords=e,this.codewords=t}return e.getDataBlocks=function(t,n,i){var a,u,l,s;if(t.length!==n.getTotalCodewords())throw new o.default;var c=n.getECBlocksForLevel(i),f=0,d=c.getECBlocks();try{for(var h=r(d),p=h.next();!p.done;p=h.next()){f+=(w=p.value).getCount()}}catch(e){a={error:e}}finally{try{p&&!p.done&&(u=h.return)&&u.call(h)}finally{if(a)throw a.error}}var g=new Array(f),v=0;try{for(var y=r(d),m=y.next();!m.done;m=y.next())for(var w=m.value,b=0;b<w.getCount();b++){var _=w.getDataCodewords(),C=c.getECCodewordsPerBlock()+_;g[v++]=new e(_,new Uint8Array(C))}}catch(e){l={error:e}}finally{try{m&&!m.done&&(s=y.return)&&s.call(y)}finally{if(l)throw l.error}}for(var E=g[0].codewords.length,A=g.length-1;A>=0;){if(g[A].codewords.length===E)break;A--}A++;var I=E-c.getECCodewordsPerBlock(),S=0;for(b=0;b<I;b++)for(var O=0;O<v;O++)g[O].codewords[b]=t[S++];for(O=A;O<v;O++)g[O].codewords[I]=t[S++];var T=g[0].codewords.length;for(b=I;b<T;b++)for(O=0;O<v;O++){var R=O<A?b:b+1;g[O].codewords[R]=t[S++]}return g},e.prototype.getNumDataCodewords=function(){return this.numDataCodewords},e.prototype.getCodewords=function(){return this.codewords},e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(77),o=n(37),i=n(43),a=n(50),u=n(119),l=n(14),s=n(40),c=n(8),f=function(){function e(){}return e.decode=function(t,n,a,s){var f=new r.default(t),d=new l.default,h=new Array,p=-1,g=-1;try{var v=null,y=!1,m=void 0;do{if(f.available()<4)m=u.default.TERMINATOR;else{var w=f.readBits(4);m=u.default.forBits(w)}switch(m){case u.default.TERMINATOR:break;case u.default.FNC1_FIRST_POSITION:case u.default.FNC1_SECOND_POSITION:y=!0;break;case u.default.STRUCTURED_APPEND:if(f.available()<16)throw new c.default;p=f.readBits(8),g=f.readBits(8);break;case u.default.ECI:var b=e.parseECIValue(f);if(null===(v=o.default.getCharacterSetECIByValue(b)))throw new c.default;break;case u.default.HANZI:var _=f.readBits(4),C=f.readBits(m.getCharacterCountBits(n));_===e.GB2312_SUBSET&&e.decodeHanziSegment(f,d,C);break;default:var E=f.readBits(m.getCharacterCountBits(n));switch(m){case u.default.NUMERIC:e.decodeNumericSegment(f,d,E);break;case u.default.ALPHANUMERIC:e.decodeAlphanumericSegment(f,d,E,y);break;case u.default.BYTE:e.decodeByteSegment(f,d,E,v,h,s);break;case u.default.KANJI:e.decodeKanjiSegment(f,d,E);break;default:throw new c.default}}}while(m!==u.default.TERMINATOR)}catch(e){throw new c.default}return new i.default(t,d.toString(),0===h.length?null:h,null===a?null:a.toString(),p,g)},e.decodeHanziSegment=function(e,t,n){if(13*n>e.available())throw new c.default;for(var r=new Uint8Array(2*n),o=0;n>0;){var i=e.readBits(13),u=i/96<<8&4294967295|i%96;u+=u<959?41377:42657,r[o]=u>>8&255,r[o+1]=255&u,o+=2,n--}try{t.append(s.default.decode(r,a.default.GB2312))}catch(e){throw new c.default(e)}},e.decodeKanjiSegment=function(e,t,n){if(13*n>e.available())throw new c.default;for(var r=new Uint8Array(2*n),o=0;n>0;){var i=e.readBits(13),u=i/192<<8&4294967295|i%192;u+=u<7936?33088:49472,r[o]=u>>8,r[o+1]=u,o+=2,n--}try{t.append(s.default.decode(r,a.default.SHIFT_JIS))}catch(e){throw new c.default(e)}},e.decodeByteSegment=function(e,t,n,r,o,i){if(8*n>e.available())throw new c.default;for(var u,l=new Uint8Array(n),f=0;f<n;f++)l[f]=e.readBits(8);u=null===r?a.default.guessEncoding(l,i):r.getName();try{t.append(s.default.decode(l,u))}catch(e){throw new c.default(e)}o.push(l)},e.toAlphaNumericChar=function(t){if(t>=e.ALPHANUMERIC_CHARS.length)throw new c.default;return e.ALPHANUMERIC_CHARS[t]},e.decodeAlphanumericSegment=function(t,n,r,o){for(var i=n.length();r>1;){if(t.available()<11)throw new c.default;var a=t.readBits(11);n.append(e.toAlphaNumericChar(Math.floor(a/45))),n.append(e.toAlphaNumericChar(a%45)),r-=2}if(1===r){if(t.available()<6)throw new c.default;n.append(e.toAlphaNumericChar(t.readBits(6)))}if(o)for(var u=i;u<n.length();u++)"%"===n.charAt(u)&&(u<n.length()-1&&"%"===n.charAt(u+1)?n.deleteCharAt(u+1):n.setCharAt(u,String.fromCharCode(29)))},e.decodeNumericSegment=function(t,n,r){for(;r>=3;){if(t.available()<10)throw new c.default;var o=t.readBits(10);if(o>=1e3)throw new c.default;n.append(e.toAlphaNumericChar(Math.floor(o/100))),n.append(e.toAlphaNumericChar(Math.floor(o/10)%10)),n.append(e.toAlphaNumericChar(o%10)),r-=3}if(2===r){if(t.available()<7)throw new c.default;var i=t.readBits(7);if(i>=100)throw new c.default;n.append(e.toAlphaNumericChar(Math.floor(i/10))),n.append(e.toAlphaNumericChar(i%10))}else if(1===r){if(t.available()<4)throw new c.default;var a=t.readBits(4);if(a>=10)throw new c.default;n.append(e.toAlphaNumericChar(a))}},e.parseECIValue=function(e){var t=e.readBits(8);if(0==(128&t))return 127&t;if(128==(192&t))return(63&t)<<8&4294967295|e.readBits(8);if(192==(224&t))return(31&t)<<16&4294967295|e.readBits(16);throw new c.default},e.ALPHANUMERIC_CHARS="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.GB2312_SUBSET=1,e}();t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(18),o=n(13),i=n(52),a=n(53),u=n(73),l=n(20),s=n(79),c=n(187),f=n(190),d=n(4),h=function(){function e(e){this.image=e}return e.prototype.getImage=function(){return this.image},e.prototype.getResultPointCallback=function(){return this.resultPointCallback},e.prototype.detect=function(e){this.resultPointCallback=null==e?null:e.get(r.default.NEED_RESULT_POINT_CALLBACK);var t=new c.default(this.image,this.resultPointCallback).find(e);return this.processFinderPatternInfo(t)},e.prototype.processFinderPatternInfo=function(t){var n=t.getTopLeft(),r=t.getTopRight(),o=t.getBottomLeft(),a=this.calculateModuleSize(n,r,o);if(a<1)throw new d.default("No pattern found in proccess finder.");var u=e.computeDimension(n,r,o,a),l=s.default.getProvisionalVersionForDimension(u),c=l.getDimensionForVersion()-7,f=null;if(l.getAlignmentPatternCenters().length>0)for(var h=r.getX()-n.getX()+o.getX(),p=r.getY()-n.getY()+o.getY(),g=1-3/c,v=Math.floor(n.getX()+g*(h-n.getX())),y=Math.floor(n.getY()+g*(p-n.getY())),m=4;m<=16;m<<=1)try{f=this.findAlignmentInRegion(a,v,y,m);break}catch(e){if(!(e instanceof d.default))throw e}var w,b=e.createTransform(n,r,o,f,u),_=e.sampleGrid(this.image,b,u);return w=null===f?[o,n,r]:[o,n,r,f],new i.default(_,w)},e.createTransform=function(e,t,n,r,o){var i,a,l,s,c=o-3.5;return null!==r?(i=r.getX(),a=r.getY(),s=l=c-3):(i=t.getX()-e.getX()+n.getX(),a=t.getY()-e.getY()+n.getY(),l=c,s=c),u.default.quadrilateralToQuadrilateral(3.5,3.5,c,3.5,l,s,3.5,c,e.getX(),e.getY(),t.getX(),t.getY(),i,a,n.getX(),n.getY())},e.sampleGrid=function(e,t,n){return a.default.getInstance().sampleGridWithTransform(e,n,n,t)},e.computeDimension=function(e,t,n,r){var i=l.default.round(o.default.distance(e,t)/r),a=l.default.round(o.default.distance(e,n)/r),u=Math.floor((i+a)/2)+7;switch(3&u){case 0:u++;break;case 2:u--;break;case 3:throw new d.default("Dimensions could be not found.")}return u},e.prototype.calculateModuleSize=function(e,t,n){return(this.calculateModuleSizeOneWay(e,t)+this.calculateModuleSizeOneWay(e,n))/2},e.prototype.calculateModuleSizeOneWay=function(e,t){var n=this.sizeOfBlackWhiteBlackRunBothWays(Math.floor(e.getX()),Math.floor(e.getY()),Math.floor(t.getX()),Math.floor(t.getY())),r=this.sizeOfBlackWhiteBlackRunBothWays(Math.floor(t.getX()),Math.floor(t.getY()),Math.floor(e.getX()),Math.floor(e.getY()));return isNaN(n)?r/7:isNaN(r)?n/7:(n+r)/14},e.prototype.sizeOfBlackWhiteBlackRunBothWays=function(e,t,n,r){var o=this.sizeOfBlackWhiteBlackRun(e,t,n,r),i=1,a=e-(n-e);a<0?(i=e/(e-a),a=0):a>=this.image.getWidth()&&(i=(this.image.getWidth()-1-e)/(a-e),a=this.image.getWidth()-1);var u=Math.floor(t-(r-t)*i);return i=1,u<0?(i=t/(t-u),u=0):u>=this.image.getHeight()&&(i=(this.image.getHeight()-1-t)/(u-t),u=this.image.getHeight()-1),a=Math.floor(e+(a-e)*i),(o+=this.sizeOfBlackWhiteBlackRun(e,t,a,u))-1},e.prototype.sizeOfBlackWhiteBlackRun=function(e,t,n,r){var o=Math.abs(r-t)>Math.abs(n-e);if(o){var i=e;e=t,t=i,i=n,n=r,r=i}for(var a=Math.abs(n-e),u=Math.abs(r-t),s=-a/2,c=e<n?1:-1,f=t<r?1:-1,d=0,h=n+c,p=e,g=t;p!==h;p+=c){var v=o?g:p,y=o?p:g;if(1===d===this.image.get(v,y)){if(2===d)return l.default.distance(p,g,e,t);d++}if((s+=u)>0){if(g===r)break;g+=f,s-=a}}return 2===d?l.default.distance(n+c,r,e,t):NaN},e.prototype.findAlignmentInRegion=function(e,t,n,r){var o=Math.floor(r*e),i=Math.max(0,t-o),a=Math.min(this.image.getWidth()-1,t+o);if(a-i<3*e)throw new d.default("Alignment top exceeds estimated module size.");var u=Math.max(0,n-o),l=Math.min(this.image.getHeight()-1,n+o);if(l-u<3*e)throw new d.default("Alignment bottom exceeds estimated module size.");return new f.default(this.image,i,u,a-i,l-u,e,this.resultPointCallback).find()},e}();t.default=h},function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(18),i=n(13),a=n(188),u=n(189),l=n(4),s=function(){function e(e,t){this.image=e,this.resultPointCallback=t,this.possibleCenters=[],this.crossCheckStateCount=new Int32Array(5),this.resultPointCallback=t}return e.prototype.getImage=function(){return this.image},e.prototype.getPossibleCenters=function(){return this.possibleCenters},e.prototype.find=function(t){var n=null!=t&&void 0!==t.get(o.default.TRY_HARDER),r=null!=t&&void 0!==t.get(o.default.PURE_BARCODE),a=this.image,l=a.getHeight(),s=a.getWidth(),c=Math.floor(3*l/(4*e.MAX_MODULES));(c<e.MIN_SKIP||n)&&(c=e.MIN_SKIP);for(var f=!1,d=new Int32Array(5),h=c-1;h<l&&!f;h+=c){d[0]=0,d[1]=0,d[2]=0,d[3]=0,d[4]=0;for(var p=0,g=0;g<s;g++)if(a.get(g,h))1==(1&p)&&p++,d[p]++;else if(0==(1&p))if(4===p)if(e.foundPatternCross(d)){if(!0!==this.handlePossibleCenter(d,h,g,r)){d[0]=d[2],d[1]=d[3],d[2]=d[4],d[3]=1,d[4]=0,p=3;continue}if(c=2,!0===this.hasSkipped)f=this.haveMultiplyConfirmedCenters();else{var v=this.findRowSkip();v>d[2]&&(h+=v-d[2]-c,g=s-1)}p=0,d[0]=0,d[1]=0,d[2]=0,d[3]=0,d[4]=0}else d[0]=d[2],d[1]=d[3],d[2]=d[4],d[3]=1,d[4]=0,p=3;else d[++p]++;else d[p]++;if(e.foundPatternCross(d))!0===this.handlePossibleCenter(d,h,s,r)&&(c=d[0],this.hasSkipped&&(f=this.haveMultiplyConfirmedCenters()))}var y=this.selectBestPatterns();return i.default.orderBestPatterns(y),new u.default(y)},e.centerFromEnd=function(e,t){return t-e[4]-e[3]-e[2]/2},e.foundPatternCross=function(e){for(var t=0,n=0;n<5;n++){var r=e[n];if(0===r)return!1;t+=r}if(t<7)return!1;var o=t/7,i=o/2;return Math.abs(o-e[0])<i&&Math.abs(o-e[1])<i&&Math.abs(3*o-e[2])<3*i&&Math.abs(o-e[3])<i&&Math.abs(o-e[4])<i},e.prototype.getCrossCheckStateCount=function(){var e=this.crossCheckStateCount;return e[0]=0,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e},e.prototype.crossCheckDiagonal=function(t,n,r,o){for(var i=this.getCrossCheckStateCount(),a=0,u=this.image;t>=a&&n>=a&&u.get(n-a,t-a);)i[2]++,a++;if(t<a||n<a)return!1;for(;t>=a&&n>=a&&!u.get(n-a,t-a)&&i[1]<=r;)i[1]++,a++;if(t<a||n<a||i[1]>r)return!1;for(;t>=a&&n>=a&&u.get(n-a,t-a)&&i[0]<=r;)i[0]++,a++;if(i[0]>r)return!1;var l=u.getHeight(),s=u.getWidth();for(a=1;t+a<l&&n+a<s&&u.get(n+a,t+a);)i[2]++,a++;if(t+a>=l||n+a>=s)return!1;for(;t+a<l&&n+a<s&&!u.get(n+a,t+a)&&i[3]<r;)i[3]++,a++;if(t+a>=l||n+a>=s||i[3]>=r)return!1;for(;t+a<l&&n+a<s&&u.get(n+a,t+a)&&i[4]<r;)i[4]++,a++;if(i[4]>=r)return!1;var c=i[0]+i[1]+i[2]+i[3]+i[4];return Math.abs(c-o)<2*o&&e.foundPatternCross(i)},e.prototype.crossCheckVertical=function(t,n,r,o){for(var i=this.image,a=i.getHeight(),u=this.getCrossCheckStateCount(),l=t;l>=0&&i.get(n,l);)u[2]++,l--;if(l<0)return NaN;for(;l>=0&&!i.get(n,l)&&u[1]<=r;)u[1]++,l--;if(l<0||u[1]>r)return NaN;for(;l>=0&&i.get(n,l)&&u[0]<=r;)u[0]++,l--;if(u[0]>r)return NaN;for(l=t+1;l<a&&i.get(n,l);)u[2]++,l++;if(l===a)return NaN;for(;l<a&&!i.get(n,l)&&u[3]<r;)u[3]++,l++;if(l===a||u[3]>=r)return NaN;for(;l<a&&i.get(n,l)&&u[4]<r;)u[4]++,l++;if(u[4]>=r)return NaN;var s=u[0]+u[1]+u[2]+u[3]+u[4];return 5*Math.abs(s-o)>=2*o?NaN:e.foundPatternCross(u)?e.centerFromEnd(u,l):NaN},e.prototype.crossCheckHorizontal=function(t,n,r,o){for(var i=this.image,a=i.getWidth(),u=this.getCrossCheckStateCount(),l=t;l>=0&&i.get(l,n);)u[2]++,l--;if(l<0)return NaN;for(;l>=0&&!i.get(l,n)&&u[1]<=r;)u[1]++,l--;if(l<0||u[1]>r)return NaN;for(;l>=0&&i.get(l,n)&&u[0]<=r;)u[0]++,l--;if(u[0]>r)return NaN;for(l=t+1;l<a&&i.get(l,n);)u[2]++,l++;if(l===a)return NaN;for(;l<a&&!i.get(l,n)&&u[3]<r;)u[3]++,l++;if(l===a||u[3]>=r)return NaN;for(;l<a&&i.get(l,n)&&u[4]<r;)u[4]++,l++;if(u[4]>=r)return NaN;var s=u[0]+u[1]+u[2]+u[3]+u[4];return 5*Math.abs(s-o)>=o?NaN:e.foundPatternCross(u)?e.centerFromEnd(u,l):NaN},e.prototype.handlePossibleCenter=function(t,n,r,o){var i=t[0]+t[1]+t[2]+t[3]+t[4],u=e.centerFromEnd(t,r),l=this.crossCheckVertical(n,Math.floor(u),t[2],i);if(!isNaN(l)&&(u=this.crossCheckHorizontal(Math.floor(u),Math.floor(l),t[2],i),!isNaN(u)&&(!o||this.crossCheckDiagonal(Math.floor(l),Math.floor(u),t[2],i)))){for(var s=i/7,c=!1,f=this.possibleCenters,d=0,h=f.length;d<h;d++){var p=f[d];if(p.aboutEquals(s,l,u)){f[d]=p.combineEstimate(l,u,s),c=!0;break}}if(!c){var g=new a.default(u,l,s);f.push(g),null!==this.resultPointCallback&&void 0!==this.resultPointCallback&&this.resultPointCallback.foundPossibleResultPoint(g)}return!0}return!1},e.prototype.findRowSkip=function(){var t,n;if(this.possibleCenters.length<=1)return 0;var o=null;try{for(var i=r(this.possibleCenters),a=i.next();!a.done;a=i.next()){var u=a.value;if(u.getCount()>=e.CENTER_QUORUM){if(null!=o)return this.hasSkipped=!0,Math.floor((Math.abs(o.getX()-u.getX())-Math.abs(o.getY()-u.getY()))/2);o=u}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return 0},e.prototype.haveMultiplyConfirmedCenters=function(){var t,n,o,i,a=0,u=0,l=this.possibleCenters.length;try{for(var s=r(this.possibleCenters),c=s.next();!c.done;c=s.next()){(g=c.value).getCount()>=e.CENTER_QUORUM&&(a++,u+=g.getEstimatedModuleSize())}}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}if(a<3)return!1;var f=u/l,d=0;try{for(var h=r(this.possibleCenters),p=h.next();!p.done;p=h.next()){var g=p.value;d+=Math.abs(g.getEstimatedModuleSize()-f)}}catch(e){o={error:e}}finally{try{p&&!p.done&&(i=h.return)&&i.call(h)}finally{if(o)throw o.error}}return d<=.05*u},e.prototype.selectBestPatterns=function(){var e,t,n,o,i=this.possibleCenters.length;if(i<3)throw new l.default;var a,u=this.possibleCenters;if(i>3){var s=0,c=0;try{for(var f=r(this.possibleCenters),d=f.next();!d.done;d=f.next()){var h=d.value.getEstimatedModuleSize();s+=h,c+=h*h}}catch(t){e={error:t}}finally{try{d&&!d.done&&(t=f.return)&&t.call(f)}finally{if(e)throw e.error}}a=s/i;var p=Math.sqrt(c/i-a*a);u.sort((function(e,t){var n=Math.abs(t.getEstimatedModuleSize()-a),r=Math.abs(e.getEstimatedModuleSize()-a);return n<r?-1:n>r?1:0}));for(var g=Math.max(.2*a,p),v=0;v<u.length&&u.length>3;v++){var y=u[v];Math.abs(y.getEstimatedModuleSize()-a)>g&&(u.splice(v,1),v--)}}if(u.length>3){s=0;try{for(var m=r(u),w=m.next();!w.done;w=m.next()){s+=w.value.getEstimatedModuleSize()}}catch(e){n={error:e}}finally{try{w&&!w.done&&(o=m.return)&&o.call(m)}finally{if(n)throw n.error}}a=s/u.length,u.sort((function(e,t){if(t.getCount()===e.getCount()){var n=Math.abs(t.getEstimatedModuleSize()-a),r=Math.abs(e.getEstimatedModuleSize()-a);return n<r?1:n>r?-1:0}return t.getCount()-e.getCount()})),u.splice(3)}return[u[0],u[1],u[2]]},e.CENTER_QUORUM=2,e.MIN_SKIP=3,e.MAX_MODULES=57,e}();t.default=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t,n,r,o){var i=e.call(this,t,n)||this;return i.estimatedModuleSize=r,i.count=o,void 0===o&&(i.count=1),i}return o(t,e),t.prototype.getEstimatedModuleSize=function(){return this.estimatedModuleSize},t.prototype.getCount=function(){return this.count},t.prototype.aboutEquals=function(e,t,n){if(Math.abs(t-this.getY())<=e&&Math.abs(n-this.getX())<=e){var r=Math.abs(e-this.estimatedModuleSize);return r<=1||r<=this.estimatedModuleSize}return!1},t.prototype.combineEstimate=function(e,n,r){var o=this.count+1;return new t((this.count*this.getX()+n)/o,(this.count*this.getY()+e)/o,(this.count*this.estimatedModuleSize+r)/o,o)},t}(n(13).default);t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e){this.bottomLeft=e[0],this.topLeft=e[1],this.topRight=e[2]}return e.prototype.getBottomLeft=function(){return this.bottomLeft},e.prototype.getTopLeft=function(){return this.topLeft},e.prototype.getTopRight=function(){return this.topRight},e}();t.default=r},function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(191),i=n(4),a=function(){function e(e,t,n,r,o,i,a){this.image=e,this.startX=t,this.startY=n,this.width=r,this.height=o,this.moduleSize=i,this.resultPointCallback=a,this.possibleCenters=[],this.crossCheckStateCount=new Int32Array(3)}return e.prototype.find=function(){for(var e=this.startX,t=this.height,n=e+this.width,r=this.startY+t/2,o=new Int32Array(3),a=this.image,u=0;u<t;u++){var l=r+(0==(1&u)?Math.floor((u+1)/2):-Math.floor((u+1)/2));o[0]=0,o[1]=0,o[2]=0;for(var s=e;s<n&&!a.get(s,l);)s++;for(var c=0;s<n;){if(a.get(s,l))if(1===c)o[1]++;else if(2===c){var f;if(this.foundPatternCross(o))if(null!==(f=this.handlePossibleCenter(o,l,s)))return f;o[0]=o[2],o[1]=1,o[2]=0,c=1}else o[++c]++;else 1===c&&c++,o[c]++;s++}if(this.foundPatternCross(o))if(null!==(f=this.handlePossibleCenter(o,l,n)))return f}if(0!==this.possibleCenters.length)return this.possibleCenters[0];throw new i.default},e.centerFromEnd=function(e,t){return t-e[2]-e[1]/2},e.prototype.foundPatternCross=function(e){for(var t=this.moduleSize,n=t/2,r=0;r<3;r++)if(Math.abs(t-e[r])>=n)return!1;return!0},e.prototype.crossCheckVertical=function(t,n,r,o){var i=this.image,a=i.getHeight(),u=this.crossCheckStateCount;u[0]=0,u[1]=0,u[2]=0;for(var l=t;l>=0&&i.get(n,l)&&u[1]<=r;)u[1]++,l--;if(l<0||u[1]>r)return NaN;for(;l>=0&&!i.get(n,l)&&u[0]<=r;)u[0]++,l--;if(u[0]>r)return NaN;for(l=t+1;l<a&&i.get(n,l)&&u[1]<=r;)u[1]++,l++;if(l===a||u[1]>r)return NaN;for(;l<a&&!i.get(n,l)&&u[2]<=r;)u[2]++,l++;if(u[2]>r)return NaN;var s=u[0]+u[1]+u[2];return 5*Math.abs(s-o)>=2*o?NaN:this.foundPatternCross(u)?e.centerFromEnd(u,l):NaN},e.prototype.handlePossibleCenter=function(t,n,i){var a,u,l=t[0]+t[1]+t[2],s=e.centerFromEnd(t,i),c=this.crossCheckVertical(n,s,2*t[1],l);if(!isNaN(c)){var f=(t[0]+t[1]+t[2])/3;try{for(var d=r(this.possibleCenters),h=d.next();!h.done;h=d.next()){var p=h.value;if(p.aboutEquals(f,c,s))return p.combineEstimate(c,s,f)}}catch(e){a={error:e}}finally{try{h&&!h.done&&(u=d.return)&&u.call(d)}finally{if(a)throw a.error}}var g=new o.default(s,c,f);this.possibleCenters.push(g),null!==this.resultPointCallback&&void 0!==this.resultPointCallback&&this.resultPointCallback.foundPossibleResultPoint(g)}return null},e}();t.default=a},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t,n,r){var o=e.call(this,t,n)||this;return o.estimatedModuleSize=r,o}return o(t,e),t.prototype.aboutEquals=function(e,t,n){if(Math.abs(t-this.getY())<=e&&Math.abs(n-this.getX())<=e){var r=Math.abs(e-this.estimatedModuleSize);return r<=1||r<=this.estimatedModuleSize}return!1},t.prototype.combineEstimate=function(e,n,r){return new t((this.getX()+n)/2,(this.getY()+e)/2,(this.estimatedModuleSize+r)/2)},t}(n(13).default);t.default=i},function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(13),i=n(15),a=n(33),u=n(193),l=function(){function e(){}return e.detectMultiple=function(t,n,r){var o=t.getBlackMatrix(),i=e.detect(r,o);return i.length||((o=o.clone()).rotate180(),i=e.detect(r,o)),new u.default(o,i)},e.detect=function(t,n){for(var o,i,a=new Array,u=0,l=0,s=!1;u<n.getHeight();){var c=e.findVertices(n,u,l);if(null!=c[0]||null!=c[3]){if(s=!0,a.push(c),!t)break;null!=c[2]?(l=Math.trunc(c[2].getX()),u=Math.trunc(c[2].getY())):(l=Math.trunc(c[4].getX()),u=Math.trunc(c[4].getY()))}else{if(!s)break;s=!1,l=0;try{for(var f=r(a),d=f.next();!d.done;d=f.next()){var h=d.value;null!=h[1]&&(u=Math.trunc(Math.max(u,h[1].getY()))),null!=h[3]&&(u=Math.max(u,Math.trunc(h[3].getY())))}}catch(e){o={error:e}}finally{try{d&&!d.done&&(i=f.return)&&i.call(f)}finally{if(o)throw o.error}}u+=e.ROW_STEP}}return a},e.findVertices=function(t,n,r){var o=t.getHeight(),i=t.getWidth(),a=new Array(8);return e.copyToResult(a,e.findRowsWithPattern(t,o,i,n,r,e.START_PATTERN),e.INDEXES_START_PATTERN),null!=a[4]&&(r=Math.trunc(a[4].getX()),n=Math.trunc(a[4].getY())),e.copyToResult(a,e.findRowsWithPattern(t,o,i,n,r,e.STOP_PATTERN),e.INDEXES_STOP_PATTERN),a},e.copyToResult=function(e,t,n){for(var r=0;r<n.length;r++)e[n[r]]=t[r]},e.findRowsWithPattern=function(t,n,r,i,u,l){for(var s=new Array(4),c=!1,f=new Int32Array(l.length);i<n;i+=e.ROW_STEP){if(null!=(g=e.findGuardPattern(t,u,i,r,!1,l,f))){for(;i>0;){if(null==(p=e.findGuardPattern(t,u,--i,r,!1,l,f))){i++;break}g=p}s[0]=new o.default(g[0],i),s[1]=new o.default(g[1],i),c=!0;break}}var d=i+1;if(c){for(var h=0,p=Int32Array.from([Math.trunc(s[0].getX()),Math.trunc(s[1].getX())]);d<n;d++){var g;if(null!=(g=e.findGuardPattern(t,p[0],d,r,!1,l,f))&&Math.abs(p[0]-g[0])<e.MAX_PATTERN_DRIFT&&Math.abs(p[1]-g[1])<e.MAX_PATTERN_DRIFT)p=g,h=0;else{if(h>e.SKIPPED_ROW_COUNT_MAX)break;h++}}d-=h+1,s[2]=new o.default(p[0],d),s[3]=new o.default(p[1],d)}return d-i<e.BARCODE_MIN_HEIGHT&&a.default.fill(s,null),s},e.findGuardPattern=function(t,n,r,o,u,l,s){a.default.fillWithin(s,0,s.length,0);for(var c=n,f=0;t.get(c,r)&&c>0&&f++<e.MAX_PIXEL_DRIFT;)c--;for(var d=c,h=0,p=l.length,g=u;d<o;d++){if(t.get(d,r)!==g)s[h]++;else{if(h===p-1){if(e.patternMatchVariance(s,l,e.MAX_INDIVIDUAL_VARIANCE)<e.MAX_AVG_VARIANCE)return new Int32Array([c,d]);c+=s[0]+s[1],i.default.arraycopy(s,2,s,0,h-1),s[h-1]=0,s[h]=0,h--}else h++;s[h]=1,g=!g}}return h===p-1&&e.patternMatchVariance(s,l,e.MAX_INDIVIDUAL_VARIANCE)<e.MAX_AVG_VARIANCE?new Int32Array([c,d-1]):null},e.patternMatchVariance=function(e,t,n){for(var r=e.length,o=0,i=0,a=0;a<r;a++)o+=e[a],i+=t[a];if(o<i)return 1/0;var u=o/i;n*=u;for(var l=0,s=0;s<r;s++){var c=e[s],f=t[s]*u,d=c>f?c-f:f-c;if(d>n)return 1/0;l+=d}return l/o},e.INDEXES_START_PATTERN=Int32Array.from([0,4,1,5]),e.INDEXES_STOP_PATTERN=Int32Array.from([6,2,7,3]),e.MAX_AVG_VARIANCE=.42,e.MAX_INDIVIDUAL_VARIANCE=.8,e.START_PATTERN=Int32Array.from([8,1,1,1,1,1,1,3]),e.STOP_PATTERN=Int32Array.from([7,1,1,3,1,1,1,2,1]),e.MAX_PIXEL_DRIFT=3,e.MAX_PATTERN_DRIFT=5,e.SKIPPED_ROW_COUNT_MAX=25,e.ROW_STEP=5,e.BARCODE_MIN_HEIGHT=10,e}();t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){this.bits=e,this.points=t}return e.prototype.getBits=function(){return this.bits},e.prototype.getPoints=function(){return this.points},e}();t.default=r},function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(22),i=n(8),a=n(4),u=n(20),l=n(35),s=n(195),c=n(122),f=n(198),d=n(200),h=n(123),p=n(201),g=n(124),v=n(202),y=n(203),m=n(80),w=function(){function e(){}return e.decode=function(t,n,r,o,i,u,l){for(var s,d=new c.default(t,n,r,o,i),p=null,g=null,v=!0;;v=!1){if(null!=n&&(p=e.getRowIndicatorColumn(t,d,n,!0,u,l)),null!=o&&(g=e.getRowIndicatorColumn(t,d,o,!1,u,l)),null==(s=e.merge(p,g)))throw a.default.getNotFoundInstance();var y=s.getBoundingBox();if(!v||null==y||!(y.getMinY()<d.getMinY()||y.getMaxY()>d.getMaxY()))break;d=y}s.setBoundingBox(d);var m=s.getBarcodeColumnCount()+1;s.setDetectionResultColumn(0,p),s.setDetectionResultColumn(m,g);for(var w=null!=p,b=1;b<=m;b++){var _=w?b:m-b;if(void 0===s.getDetectionResultColumn(_)){var C=void 0;C=0===_||_===m?new f.default(d,0===_):new h.default(d),s.setDetectionResultColumn(_,C);for(var E=-1,A=E,I=d.getMinY();I<=d.getMaxY();I++){if((E=e.getStartColumn(s,_,I,w))<0||E>d.getMaxX()){if(-1===A)continue;E=A}var S=e.detectCodeword(t,d.getMinX(),d.getMaxX(),w,E,I,u,l);null!=S&&(C.setCodeword(I,S),A=E,u=Math.min(u,S.getWidth()),l=Math.max(l,S.getWidth()))}}}return e.createDecoderResult(s)},e.merge=function(t,n){if(null==t&&null==n)return null;var r=e.getBarcodeMetadata(t,n);if(null==r)return null;var o=c.default.merge(e.adjustBoundingBox(t),e.adjustBoundingBox(n));return new d.default(r,o)},e.adjustBoundingBox=function(t){var n,o;if(null==t)return null;var i=t.getRowHeights();if(null==i)return null;var a=e.getMax(i),u=0;try{for(var l=r(i),s=l.next();!s.done;s=l.next()){var c=s.value;if(u+=a-c,c>0)break}}catch(e){n={error:e}}finally{try{s&&!s.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}for(var f=t.getCodewords(),d=0;u>0&&null==f[d];d++)u--;var h=0;for(d=i.length-1;d>=0&&(h+=a-i[d],!(i[d]>0));d--);for(d=f.length-1;h>0&&null==f[d];d--)h--;return t.getBoundingBox().addMissingRows(u,h,t.isLeft())},e.getMax=function(e){var t,n,o=-1;try{for(var i=r(e),a=i.next();!a.done;a=i.next()){var u=a.value;o=Math.max(o,u)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return o},e.getBarcodeMetadata=function(e,t){var n,r;return null==e||null==(n=e.getBarcodeMetadata())?null==t?null:t.getBarcodeMetadata():null==t||null==(r=t.getBarcodeMetadata())?n:n.getColumnCount()!==r.getColumnCount()&&n.getErrorCorrectionLevel()!==r.getErrorCorrectionLevel()&&n.getRowCount()!==r.getRowCount()?null:n},e.getRowIndicatorColumn=function(t,n,r,o,i,a){for(var u=new f.default(n,o),l=0;l<2;l++)for(var s=0===l?1:-1,c=Math.trunc(Math.trunc(r.getX())),d=Math.trunc(Math.trunc(r.getY()));d<=n.getMaxY()&&d>=n.getMinY();d+=s){var h=e.detectCodeword(t,0,t.getWidth(),o,c,d,i,a);null!=h&&(u.setCodeword(d,h),c=o?h.getStartX():h.getEndX())}return u},e.adjustCodewordCount=function(t,n){var r=n[0][1],o=r.getValue(),i=t.getBarcodeColumnCount()*t.getBarcodeRowCount()-e.getNumberOfECCodeWords(t.getBarcodeECLevel());if(0===o.length){if(i<1||i>l.default.MAX_CODEWORDS_IN_BARCODE)throw a.default.getNotFoundInstance();r.setValue(i)}else o[0]!==i&&r.setValue(i)},e.createDecoderResult=function(t){var n=e.createBarcodeMatrix(t);e.adjustCodewordCount(t,n);for(var r=new Array,o=new Int32Array(t.getBarcodeRowCount()*t.getBarcodeColumnCount()),i=[],a=new Array,u=0;u<t.getBarcodeRowCount();u++)for(var s=0;s<t.getBarcodeColumnCount();s++){var c=n[u][s+1].getValue(),f=u*t.getBarcodeColumnCount()+s;0===c.length?r.push(f):1===c.length?o[f]=c[0]:(a.push(f),i.push(c))}for(var d=new Array(i.length),h=0;h<d.length;h++)d[h]=i[h];return e.createDecoderResultFromAmbiguousValues(t.getBarcodeECLevel(),o,l.default.toIntArray(r),l.default.toIntArray(a),d)},e.createDecoderResultFromAmbiguousValues=function(t,n,r,i,a){for(var u=new Int32Array(i.length),l=100;l-- >0;){for(var s=0;s<u.length;s++)n[i[s]]=a[s][u[s]];try{return e.decodeCodewords(n,t,r)}catch(e){if(!(e instanceof o.default))throw e}if(0===u.length)throw o.default.getChecksumInstance();for(s=0;s<u.length;s++){if(u[s]<a[s].length-1){u[s]++;break}if(u[s]=0,s===u.length-1)throw o.default.getChecksumInstance()}}throw o.default.getChecksumInstance()},e.createBarcodeMatrix=function(e){for(var t,n,o,i,a=Array.from({length:e.getBarcodeRowCount()},(function(){return new Array(e.getBarcodeColumnCount()+2)})),u=0;u<a.length;u++)for(var l=0;l<a[u].length;l++)a[u][l]=new g.default;var s=0;try{for(var c=r(e.getDetectionResultColumns()),f=c.next();!f.done;f=c.next()){var d=f.value;if(null!=d)try{for(var h=r(d.getCodewords()),p=h.next();!p.done;p=h.next()){var v=p.value;if(null!=v){var y=v.getRowNumber();if(y>=0){if(y>=a.length)continue;a[y][s].setValue(v.getValue())}}}}catch(e){o={error:e}}finally{try{p&&!p.done&&(i=h.return)&&i.call(h)}finally{if(o)throw o.error}}s++}}catch(e){t={error:e}}finally{try{f&&!f.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}return a},e.isValidBarcodeColumn=function(e,t){return t>=0&&t<=e.getBarcodeColumnCount()+1},e.getStartColumn=function(t,n,o,i){var a,u,l=i?1:-1,s=null;if(e.isValidBarcodeColumn(t,n-l)&&(s=t.getDetectionResultColumn(n-l).getCodeword(o)),null!=s)return i?s.getEndX():s.getStartX();if(null!=(s=t.getDetectionResultColumn(n).getCodewordNearby(o)))return i?s.getStartX():s.getEndX();if(e.isValidBarcodeColumn(t,n-l)&&(s=t.getDetectionResultColumn(n-l).getCodewordNearby(o)),null!=s)return i?s.getEndX():s.getStartX();for(var c=0;e.isValidBarcodeColumn(t,n-l);){n-=l;try{for(var f=r(t.getDetectionResultColumn(n).getCodewords()),d=f.next();!d.done;d=f.next()){var h=d.value;if(null!=h)return(i?h.getEndX():h.getStartX())+l*c*(h.getEndX()-h.getStartX())}}catch(e){a={error:e}}finally{try{d&&!d.done&&(u=f.return)&&u.call(f)}finally{if(a)throw a.error}}c++}return i?t.getBoundingBox().getMinX():t.getBoundingBox().getMaxX()},e.detectCodeword=function(t,n,r,o,i,a,s,c){i=e.adjustCodewordStartColumn(t,n,r,o,i,a);var f,d=e.getModuleBitCount(t,n,r,o,i,a);if(null==d)return null;var h=u.default.sum(d);if(o)f=i+h;else{for(var g=0;g<d.length/2;g++){var y=d[g];d[g]=d[d.length-1-g],d[d.length-1-g]=y}i=(f=i)-h}if(!e.checkCodewordSkew(h,s,c))return null;var m=v.default.getDecodedValue(d),w=l.default.getCodeword(m);return-1===w?null:new p.default(i,f,e.getCodewordBucketNumber(m),w)},e.getModuleBitCount=function(e,t,n,r,o,i){for(var a=o,u=new Int32Array(8),l=0,s=r?1:-1,c=r;(r?a<n:a>=t)&&l<u.length;)e.get(a,i)===c?(u[l]++,a+=s):(l++,c=!c);return l===u.length||a===(r?n:t)&&l===u.length-1?u:null},e.getNumberOfECCodeWords=function(e){return 2<<e},e.adjustCodewordStartColumn=function(t,n,r,o,i,a){for(var u=i,l=o?-1:1,s=0;s<2;s++){for(;(o?u>=n:u<r)&&o===t.get(u,a);){if(Math.abs(i-u)>e.CODEWORD_SKEW_SIZE)return i;u+=l}l=-l,o=!o}return u},e.checkCodewordSkew=function(t,n,r){return n-e.CODEWORD_SKEW_SIZE<=t&&t<=r+e.CODEWORD_SKEW_SIZE},e.decodeCodewords=function(t,n,r){if(0===t.length)throw i.default.getFormatInstance();var o=1<<n+1,a=e.correctErrors(t,r,o);e.verifyCodewordCount(t,o);var u=y.default.decode(t,""+n);return u.setErrorsCorrected(a),u.setErasures(r.length),u},e.correctErrors=function(t,n,r){if(null!=n&&n.length>r/2+e.MAX_ERRORS||r<0||r>e.MAX_EC_CODEWORDS)throw o.default.getChecksumInstance();return e.errorCorrection.decode(t,r,n)},e.verifyCodewordCount=function(e,t){if(e.length<4)throw i.default.getFormatInstance();var n=e[0];if(n>e.length)throw i.default.getFormatInstance();if(0===n){if(!(t<e.length))throw i.default.getFormatInstance();e[0]=e.length-t}},e.getBitCountForCodeword=function(e){for(var t=new Int32Array(8),n=0,r=t.length-1;!((1&e)!==n&&(n=1&e,--r<0));)t[r]++,e>>=1;return t},e.getCodewordBucketNumber=function(e){return e instanceof Int32Array?this.getCodewordBucketNumber_Int32Array(e):this.getCodewordBucketNumber_number(e)},e.getCodewordBucketNumber_number=function(t){return e.getCodewordBucketNumber(e.getBitCountForCodeword(t))},e.getCodewordBucketNumber_Int32Array=function(e){return(e[0]-e[2]+e[4]-e[6]+9)%9},e.toString=function(e){for(var t=new m.default,n=0;n<e.length;n++){t.format("Row %2d: ",n);for(var r=0;r<e[n].length;r++){var o=e[n][r];0===o.getValue().length?t.format("        ",null):t.format("%4d(%2d)",o.getValue()[0],o.getConfidence(o.getValue()[0]))}t.format("%n")}return t.toString()},e.CODEWORD_SKEW_SIZE=2,e.MAX_ERRORS=3,e.MAX_EC_CODEWORDS=512,e.errorCorrection=new s.default,e}();t.default=w},function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(22),i=n(121),a=n(196),u=function(){function e(){this.field=a.default.PDF417_GF}return e.prototype.decode=function(e,t,n){for(var a,u,l=new i.default(this.field,e),s=new Int32Array(t),c=!1,f=t;f>0;f--){var d=l.evaluateAt(this.field.exp(f));s[t-f]=d,0!==d&&(c=!0)}if(!c)return 0;var h=this.field.getOne();if(null!=n)try{for(var p=r(n),g=p.next();!g.done;g=p.next()){var v=g.value,y=this.field.exp(e.length-1-v),m=new i.default(this.field,new Int32Array([this.field.subtract(0,y),1]));h=h.multiply(m)}}catch(e){a={error:e}}finally{try{g&&!g.done&&(u=p.return)&&u.call(p)}finally{if(a)throw a.error}}var w=new i.default(this.field,s),b=this.runEuclideanAlgorithm(this.field.buildMonomial(t,1),w,t),_=b[0],C=b[1],E=this.findErrorLocations(_),A=this.findErrorMagnitudes(C,_,E);for(f=0;f<E.length;f++){var I=e.length-1-this.field.log(E[f]);if(I<0)throw o.default.getChecksumInstance();e[I]=this.field.subtract(e[I],A[f])}return E.length},e.prototype.runEuclideanAlgorithm=function(e,t,n){if(e.getDegree()<t.getDegree()){var r=e;e=t,t=r}for(var i=e,a=t,u=this.field.getZero(),l=this.field.getOne();a.getDegree()>=Math.round(n/2);){var s=i,c=u;if(u=l,(i=a).isZero())throw o.default.getChecksumInstance();a=s;for(var f=this.field.getZero(),d=i.getCoefficient(i.getDegree()),h=this.field.inverse(d);a.getDegree()>=i.getDegree()&&!a.isZero();){var p=a.getDegree()-i.getDegree(),g=this.field.multiply(a.getCoefficient(a.getDegree()),h);f=f.add(this.field.buildMonomial(p,g)),a=a.subtract(i.multiplyByMonomial(p,g))}l=f.multiply(u).subtract(c).negative()}var v=l.getCoefficient(0);if(0===v)throw o.default.getChecksumInstance();var y=this.field.inverse(v);return[l.multiply(y),a.multiply(y)]},e.prototype.findErrorLocations=function(e){for(var t=e.getDegree(),n=new Int32Array(t),r=0,i=1;i<this.field.getSize()&&r<t;i++)0===e.evaluateAt(i)&&(n[r]=this.field.inverse(i),r++);if(r!==t)throw o.default.getChecksumInstance();return n},e.prototype.findErrorMagnitudes=function(e,t,n){for(var r=t.getDegree(),o=new Int32Array(r),a=1;a<=r;a++)o[r-a]=this.field.multiply(a,t.getCoefficient(a));var u=new i.default(this.field,o),l=n.length,s=new Int32Array(l);for(a=0;a<l;a++){var c=this.field.inverse(n[a]),f=this.field.subtract(0,e.evaluateAt(c)),d=this.field.inverse(u.evaluateAt(c));s[a]=this.field.multiply(f,d)}return s},e}();t.default=u},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(35),a=n(121),u=n(7),l=function(e){function t(t,n){var r=e.call(this)||this;r.modulus=t,r.expTable=new Int32Array(t),r.logTable=new Int32Array(t);for(var o=1,i=0;i<t;i++)r.expTable[i]=o,o=o*n%t;for(i=0;i<t-1;i++)r.logTable[r.expTable[i]]=i;return r.zero=new a.default(r,new Int32Array([0])),r.one=new a.default(r,new Int32Array([1])),r}return o(t,e),t.prototype.getZero=function(){return this.zero},t.prototype.getOne=function(){return this.one},t.prototype.buildMonomial=function(e,t){if(e<0)throw new u.default;if(0===t)return this.zero;var n=new Int32Array(e+1);return n[0]=t,new a.default(this,n)},t.PDF417_GF=new t(i.default.NUMBER_OF_CODEWORDS,3),t}(n(197).default);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(7),o=n(71),i=function(){function e(){}return e.prototype.add=function(e,t){return(e+t)%this.modulus},e.prototype.subtract=function(e,t){return(this.modulus+e-t)%this.modulus},e.prototype.exp=function(e){return this.expTable[e]},e.prototype.log=function(e){if(0===e)throw new r.default;return this.logTable[e]},e.prototype.inverse=function(e){if(0===e)throw new o.default;return this.expTable[this.modulus-this.logTable[e]-1]},e.prototype.multiply=function(e,t){return 0===e||0===t?0:this.expTable[(this.logTable[e]+this.logTable[t])%(this.modulus-1)]},e.prototype.getSize=function(){return this.modulus},e.prototype.equals=function(e){return e===this},e}();t.default=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__values||function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(35),u=n(199),l=n(123),s=n(124),c=function(e){function t(t,n){var r=e.call(this,t)||this;return r._isLeft=n,r}return o(t,e),t.prototype.setRowNumbers=function(){var e,t;try{for(var n=i(this.getCodewords()),r=n.next();!r.done;r=n.next()){var o=r.value;null!=o&&o.setRowNumberAsRowIndicatorColumn()}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},t.prototype.adjustCompleteIndicatorColumnRowNumbers=function(e){var t=this.getCodewords();this.setRowNumbers(),this.removeIncorrectCodewords(t,e);for(var n=this.getBoundingBox(),r=this._isLeft?n.getTopLeft():n.getTopRight(),o=this._isLeft?n.getBottomLeft():n.getBottomRight(),i=this.imageRowToCodewordIndex(Math.trunc(r.getY())),a=this.imageRowToCodewordIndex(Math.trunc(o.getY())),u=-1,l=1,s=0,c=i;c<a;c++)if(null!=t[c]){var f=t[c],d=f.getRowNumber()-u;if(0===d)s++;else if(1===d)l=Math.max(l,s),s=1,u=f.getRowNumber();else if(d<0||f.getRowNumber()>=e.getRowCount()||d>c)t[c]=null;else{for(var h=void 0,p=(h=l>2?(l-2)*d:d)>=c,g=1;g<=h&&!p;g++)p=null!=t[c-g];p?t[c]=null:(u=f.getRowNumber(),s=1)}}},t.prototype.getRowHeights=function(){var e,t,n=this.getBarcodeMetadata();if(null==n)return null;this.adjustIncompleteIndicatorColumnRowNumbers(n);var r=new Int32Array(n.getRowCount());try{for(var o=i(this.getCodewords()),a=o.next();!a.done;a=o.next()){var u=a.value;if(null!=u){var l=u.getRowNumber();if(l>=r.length)continue;r[l]++}}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}return r},t.prototype.adjustIncompleteIndicatorColumnRowNumbers=function(e){for(var t=this.getBoundingBox(),n=this._isLeft?t.getTopLeft():t.getTopRight(),r=this._isLeft?t.getBottomLeft():t.getBottomRight(),o=this.imageRowToCodewordIndex(Math.trunc(n.getY())),i=this.imageRowToCodewordIndex(Math.trunc(r.getY())),a=this.getCodewords(),u=-1,l=1,s=0,c=o;c<i;c++)if(null!=a[c]){var f=a[c];f.setRowNumberAsRowIndicatorColumn();var d=f.getRowNumber()-u;0===d?s++:1===d?(l=Math.max(l,s),s=1,u=f.getRowNumber()):f.getRowNumber()>=e.getRowCount()?a[c]=null:(u=f.getRowNumber(),s=1)}},t.prototype.getBarcodeMetadata=function(){var e,t,n=this.getCodewords(),r=new s.default,o=new s.default,l=new s.default,c=new s.default;try{for(var f=i(n),d=f.next();!d.done;d=f.next()){var h=d.value;if(null!=h){h.setRowNumberAsRowIndicatorColumn();var p=h.getValue()%30,g=h.getRowNumber();switch(this._isLeft||(g+=2),g%3){case 0:o.setValue(3*p+1);break;case 1:c.setValue(p/3),l.setValue(p%3);break;case 2:r.setValue(p+1)}}}}catch(t){e={error:t}}finally{try{d&&!d.done&&(t=f.return)&&t.call(f)}finally{if(e)throw e.error}}if(0===r.getValue().length||0===o.getValue().length||0===l.getValue().length||0===c.getValue().length||r.getValue()[0]<1||o.getValue()[0]+l.getValue()[0]<a.default.MIN_ROWS_IN_BARCODE||o.getValue()[0]+l.getValue()[0]>a.default.MAX_ROWS_IN_BARCODE)return null;var v=new u.default(r.getValue()[0],o.getValue()[0],l.getValue()[0],c.getValue()[0]);return this.removeIncorrectCodewords(n,v),v},t.prototype.removeIncorrectCodewords=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(null!=e[n]){var o=r.getValue()%30,i=r.getRowNumber();if(i>t.getRowCount())e[n]=null;else switch(this._isLeft||(i+=2),i%3){case 0:3*o+1!==t.getRowCountUpperPart()&&(e[n]=null);break;case 1:Math.trunc(o/3)===t.getErrorCorrectionLevel()&&o%3===t.getRowCountLowerPart()||(e[n]=null);break;case 2:o+1!==t.getColumnCount()&&(e[n]=null)}}}},t.prototype.isLeft=function(){return this._isLeft},t.prototype.toString=function(){return"IsLeft: "+this._isLeft+"\n"+e.prototype.toString.call(this)},t}(l.default);t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t,n,r){this.columnCount=e,this.errorCorrectionLevel=r,this.rowCountUpperPart=t,this.rowCountLowerPart=n,this.rowCount=t+n}return e.prototype.getColumnCount=function(){return this.columnCount},e.prototype.getErrorCorrectionLevel=function(){return this.errorCorrectionLevel},e.prototype.getRowCount=function(){return this.rowCount},e.prototype.getRowCountUpperPart=function(){return this.rowCountUpperPart},e.prototype.getRowCountLowerPart=function(){return this.rowCountLowerPart},e}();t.default=r},function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(35),i=n(80),a=function(){function e(e,t){this.ADJUST_ROW_NUMBER_SKIP=2,this.barcodeMetadata=e,this.barcodeColumnCount=e.getColumnCount(),this.boundingBox=t,this.detectionResultColumns=new Array(this.barcodeColumnCount+2)}return e.prototype.getDetectionResultColumns=function(){this.adjustIndicatorColumnRowNumbers(this.detectionResultColumns[0]),this.adjustIndicatorColumnRowNumbers(this.detectionResultColumns[this.barcodeColumnCount+1]);var e,t=o.default.MAX_CODEWORDS_IN_BARCODE;do{e=t,t=this.adjustRowNumbersAndGetCount()}while(t>0&&t<e);return this.detectionResultColumns},e.prototype.adjustIndicatorColumnRowNumbers=function(e){null!=e&&e.adjustCompleteIndicatorColumnRowNumbers(this.barcodeMetadata)},e.prototype.adjustRowNumbersAndGetCount=function(){var e=this.adjustRowNumbersByRow();if(0===e)return 0;for(var t=1;t<this.barcodeColumnCount+1;t++)for(var n=this.detectionResultColumns[t].getCodewords(),r=0;r<n.length;r++)null!=n[r]&&(n[r].hasValidRowNumber()||this.adjustRowNumbers(t,r,n));return e},e.prototype.adjustRowNumbersByRow=function(){return this.adjustRowNumbersFromBothRI(),this.adjustRowNumbersFromLRI()+this.adjustRowNumbersFromRRI()},e.prototype.adjustRowNumbersFromBothRI=function(){if(null!=this.detectionResultColumns[0]&&null!=this.detectionResultColumns[this.barcodeColumnCount+1])for(var e=this.detectionResultColumns[0].getCodewords(),t=this.detectionResultColumns[this.barcodeColumnCount+1].getCodewords(),n=0;n<e.length;n++)if(null!=e[n]&&null!=t[n]&&e[n].getRowNumber()===t[n].getRowNumber())for(var r=1;r<=this.barcodeColumnCount;r++){var o=this.detectionResultColumns[r].getCodewords()[n];null!=o&&(o.setRowNumber(e[n].getRowNumber()),o.hasValidRowNumber()||(this.detectionResultColumns[r].getCodewords()[n]=null))}},e.prototype.adjustRowNumbersFromRRI=function(){if(null==this.detectionResultColumns[this.barcodeColumnCount+1])return 0;for(var t=0,n=this.detectionResultColumns[this.barcodeColumnCount+1].getCodewords(),r=0;r<n.length;r++)if(null!=n[r])for(var o=n[r].getRowNumber(),i=0,a=this.barcodeColumnCount+1;a>0&&i<this.ADJUST_ROW_NUMBER_SKIP;a--){var u=this.detectionResultColumns[a].getCodewords()[r];null!=u&&(i=e.adjustRowNumberIfValid(o,i,u),u.hasValidRowNumber()||t++)}return t},e.prototype.adjustRowNumbersFromLRI=function(){if(null==this.detectionResultColumns[0])return 0;for(var t=0,n=this.detectionResultColumns[0].getCodewords(),r=0;r<n.length;r++)if(null!=n[r])for(var o=n[r].getRowNumber(),i=0,a=1;a<this.barcodeColumnCount+1&&i<this.ADJUST_ROW_NUMBER_SKIP;a++){var u=this.detectionResultColumns[a].getCodewords()[r];null!=u&&(i=e.adjustRowNumberIfValid(o,i,u),u.hasValidRowNumber()||t++)}return t},e.adjustRowNumberIfValid=function(e,t,n){return null==n||n.hasValidRowNumber()||(n.isValidRowNumber(e)?(n.setRowNumber(e),t=0):++t),t},e.prototype.adjustRowNumbers=function(t,n,o){var i,a,u=o[n],l=this.detectionResultColumns[t-1].getCodewords(),s=l;null!=this.detectionResultColumns[t+1]&&(s=this.detectionResultColumns[t+1].getCodewords());var c=new Array(14);c[2]=l[n],c[3]=s[n],n>0&&(c[0]=o[n-1],c[4]=l[n-1],c[5]=s[n-1]),n>1&&(c[8]=o[n-2],c[10]=l[n-2],c[11]=s[n-2]),n<o.length-1&&(c[1]=o[n+1],c[6]=l[n+1],c[7]=s[n+1]),n<o.length-2&&(c[9]=o[n+2],c[12]=l[n+2],c[13]=s[n+2]);try{for(var f=r(c),d=f.next();!d.done;d=f.next()){var h=d.value;if(e.adjustRowNumber(u,h))return}}catch(e){i={error:e}}finally{try{d&&!d.done&&(a=f.return)&&a.call(f)}finally{if(i)throw i.error}}},e.adjustRowNumber=function(e,t){return null!=t&&(!(!t.hasValidRowNumber()||t.getBucket()!==e.getBucket())&&(e.setRowNumber(t.getRowNumber()),!0))},e.prototype.getBarcodeColumnCount=function(){return this.barcodeColumnCount},e.prototype.getBarcodeRowCount=function(){return this.barcodeMetadata.getRowCount()},e.prototype.getBarcodeECLevel=function(){return this.barcodeMetadata.getErrorCorrectionLevel()},e.prototype.setBoundingBox=function(e){this.boundingBox=e},e.prototype.getBoundingBox=function(){return this.boundingBox},e.prototype.setDetectionResultColumn=function(e,t){this.detectionResultColumns[e]=t},e.prototype.getDetectionResultColumn=function(e){return this.detectionResultColumns[e]},e.prototype.toString=function(){var e=this.detectionResultColumns[0];null==e&&(e=this.detectionResultColumns[this.barcodeColumnCount+1]);for(var t=new i.default,n=0;n<e.getCodewords().length;n++){t.format("CW %3d:",n);for(var r=0;r<this.barcodeColumnCount+2;r++)if(null!=this.detectionResultColumns[r]){var o=this.detectionResultColumns[r].getCodewords()[n];null!=o?t.format(" %3d|%3d",o.getRowNumber(),o.getValue()):t.format("    |   ")}else t.format("    |   ");t.format("%n")}return t.toString()},e}();t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(t,n,r,o){this.rowNumber=e.BARCODE_ROW_UNKNOWN,this.startX=Math.trunc(t),this.endX=Math.trunc(n),this.bucket=Math.trunc(r),this.value=Math.trunc(o)}return e.prototype.hasValidRowNumber=function(){return this.isValidRowNumber(this.rowNumber)},e.prototype.isValidRowNumber=function(t){return t!==e.BARCODE_ROW_UNKNOWN&&this.bucket===t%3*3},e.prototype.setRowNumberAsRowIndicatorColumn=function(){this.rowNumber=Math.trunc(3*Math.trunc(this.value/30)+Math.trunc(this.bucket/3))},e.prototype.getWidth=function(){return this.endX-this.startX},e.prototype.getStartX=function(){return this.startX},e.prototype.getEndX=function(){return this.endX},e.prototype.getBucket=function(){return this.bucket},e.prototype.getValue=function(){return this.value},e.prototype.getRowNumber=function(){return this.rowNumber},e.prototype.setRowNumber=function(e){this.rowNumber=e},e.prototype.toString=function(){return this.rowNumber+"|"+this.value},e.BARCODE_ROW_UNKNOWN=-1,e}();t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(20),o=n(35),i=n(104),a=function(){function e(){}return e.initialize=function(){for(var t=0;t<o.default.SYMBOL_TABLE.length;t++)for(var n=o.default.SYMBOL_TABLE[t],r=1&n,i=0;i<o.default.BARS_IN_MODULE;i++){for(var a=0;(1&n)===r;)a+=1,n>>=1;r=1&n,e.RATIOS_TABLE[t]||(e.RATIOS_TABLE[t]=new Array(o.default.BARS_IN_MODULE)),e.RATIOS_TABLE[t][o.default.BARS_IN_MODULE-i-1]=Math.fround(a/o.default.MODULES_IN_CODEWORD)}this.bSymbolTableReady=!0},e.getDecodedValue=function(t){var n=e.getDecodedCodewordValue(e.sampleBitCounts(t));return-1!==n?n:e.getClosestDecodedValue(t)},e.sampleBitCounts=function(e){for(var t=r.default.sum(e),n=new Int32Array(o.default.BARS_IN_MODULE),i=0,a=0,u=0;u<o.default.MODULES_IN_CODEWORD;u++){var l=t/(2*o.default.MODULES_IN_CODEWORD)+u*t/o.default.MODULES_IN_CODEWORD;a+e[i]<=l&&(a+=e[i],i++),n[i]++}return n},e.getDecodedCodewordValue=function(t){var n=e.getBitValue(t);return-1===o.default.getCodeword(n)?-1:n},e.getBitValue=function(e){for(var t=0,n=0;n<e.length;n++)for(var r=0;r<e[n];r++)t=t<<1|(n%2==0?1:0);return Math.trunc(t)},e.getClosestDecodedValue=function(t){var n=r.default.sum(t),a=new Array(o.default.BARS_IN_MODULE);if(n>1)for(var u=0;u<a.length;u++)a[u]=Math.fround(t[u]/n);var l=i.default.MAX_VALUE,s=-1;this.bSymbolTableReady||e.initialize();for(var c=0;c<e.RATIOS_TABLE.length;c++){for(var f=0,d=e.RATIOS_TABLE[c],h=0;h<o.default.BARS_IN_MODULE;h++){var p=Math.fround(d[h]-a[h]);if((f+=Math.fround(p*p))>=l)break}f<l&&(l=f,s=o.default.SYMBOL_TABLE[c])}return s},e.bSymbolTableReady=!1,e.RATIOS_TABLE=new Array(o.default.SYMBOL_TABLE.length).map((function(e){return new Array(o.default.BARS_IN_MODULE)})),e}();t.default=a},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var r,o,i=n(8),a=n(37),u=n(43),l=n(205),s=n(33),c=n(14),f=n(24),d=n(206),h=n(207),p=n(40);function g(){if("undefined"!=typeof window)return window.BigInt||null;if(void 0!==e)return e.BigInt||null;throw new Error("Can't search globals for BigInt!")}function v(e){if(void 0===o&&(o=g()),null===o)throw new Error("BigInt is not supported!");return o(e)}!function(e){e[e.ALPHA=0]="ALPHA",e[e.LOWER=1]="LOWER",e[e.MIXED=2]="MIXED",e[e.PUNCT=3]="PUNCT",e[e.ALPHA_SHIFT=4]="ALPHA_SHIFT",e[e.PUNCT_SHIFT=5]="PUNCT_SHIFT"}(r||(r={}));var y=function(){function e(){}return e.decode=function(t,n){var r=new c.default(""),o=a.default.ISO8859_1;r.enableDecoding(o);for(var s=1,f=t[s++],d=new l.default;s<t[0];){switch(f){case e.TEXT_COMPACTION_MODE_LATCH:s=e.textCompaction(t,s,r);break;case e.BYTE_COMPACTION_MODE_LATCH:case e.BYTE_COMPACTION_MODE_LATCH_6:s=e.byteCompaction(f,t,o,s,r);break;case e.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:r.append(t[s++]);break;case e.NUMERIC_COMPACTION_MODE_LATCH:s=e.numericCompaction(t,s,r);break;case e.ECI_CHARSET:a.default.getCharacterSetECIByValue(t[s++]);break;case e.ECI_GENERAL_PURPOSE:s+=2;break;case e.ECI_USER_DEFINED:s++;break;case e.BEGIN_MACRO_PDF417_CONTROL_BLOCK:s=e.decodeMacroBlock(t,s,d);break;case e.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case e.MACRO_PDF417_TERMINATOR:throw new i.default;default:s--,s=e.textCompaction(t,s,r)}if(!(s<t.length))throw i.default.getFormatInstance();f=t[s++]}if(0===r.length())throw i.default.getFormatInstance();var h=new u.default(null,r.toString(),null,n);return h.setOther(d),h},e.decodeMacroBlock=function(t,n,r){if(n+e.NUMBER_OF_SEQUENCE_CODEWORDS>t[0])throw i.default.getFormatInstance();for(var o=new Int32Array(e.NUMBER_OF_SEQUENCE_CODEWORDS),a=0;a<e.NUMBER_OF_SEQUENCE_CODEWORDS;a++,n++)o[a]=t[n];r.setSegmentIndex(f.default.parseInt(e.decodeBase900toBase10(o,e.NUMBER_OF_SEQUENCE_CODEWORDS)));var u=new c.default;n=e.textCompaction(t,n,u),r.setFileId(u.toString());var l=-1;for(t[n]===e.BEGIN_MACRO_PDF417_OPTIONAL_FIELD&&(l=n+1);n<t[0];)switch(t[n]){case e.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:switch(t[++n]){case e.MACRO_PDF417_OPTIONAL_FIELD_FILE_NAME:var h=new c.default;n=e.textCompaction(t,n+1,h),r.setFileName(h.toString());break;case e.MACRO_PDF417_OPTIONAL_FIELD_SENDER:var p=new c.default;n=e.textCompaction(t,n+1,p),r.setSender(p.toString());break;case e.MACRO_PDF417_OPTIONAL_FIELD_ADDRESSEE:var g=new c.default;n=e.textCompaction(t,n+1,g),r.setAddressee(g.toString());break;case e.MACRO_PDF417_OPTIONAL_FIELD_SEGMENT_COUNT:var v=new c.default;n=e.numericCompaction(t,n+1,v),r.setSegmentCount(f.default.parseInt(v.toString()));break;case e.MACRO_PDF417_OPTIONAL_FIELD_TIME_STAMP:var y=new c.default;n=e.numericCompaction(t,n+1,y),r.setTimestamp(d.default.parseLong(y.toString()));break;case e.MACRO_PDF417_OPTIONAL_FIELD_CHECKSUM:var m=new c.default;n=e.numericCompaction(t,n+1,m),r.setChecksum(f.default.parseInt(m.toString()));break;case e.MACRO_PDF417_OPTIONAL_FIELD_FILE_SIZE:var w=new c.default;n=e.numericCompaction(t,n+1,w),r.setFileSize(d.default.parseLong(w.toString()));break;default:throw i.default.getFormatInstance()}break;case e.MACRO_PDF417_TERMINATOR:n++,r.setLastSegment(!0);break;default:throw i.default.getFormatInstance()}if(-1!==l){var b=n-l;r.isLastSegment()&&b--,r.setOptionalData(s.default.copyOfRange(t,l,l+b))}return n},e.textCompaction=function(t,n,r){for(var o=new Int32Array(2*(t[0]-n)),i=new Int32Array(2*(t[0]-n)),a=0,u=!1;n<t[0]&&!u;){var l=t[n++];if(l<e.TEXT_COMPACTION_MODE_LATCH)o[a]=l/30,o[a+1]=l%30,a+=2;else switch(l){case e.TEXT_COMPACTION_MODE_LATCH:o[a++]=e.TEXT_COMPACTION_MODE_LATCH;break;case e.BYTE_COMPACTION_MODE_LATCH:case e.BYTE_COMPACTION_MODE_LATCH_6:case e.NUMERIC_COMPACTION_MODE_LATCH:case e.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case e.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case e.MACRO_PDF417_TERMINATOR:n--,u=!0;break;case e.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:o[a]=e.MODE_SHIFT_TO_BYTE_COMPACTION_MODE,l=t[n++],i[a]=l,a++}}return e.decodeTextCompaction(o,i,a,r),n},e.decodeTextCompaction=function(t,n,o,i){for(var a=r.ALPHA,u=r.ALPHA,l=0;l<o;){var s=t[l],c="";switch(a){case r.ALPHA:if(s<26)c=String.fromCharCode(65+s);else switch(s){case 26:c=" ";break;case e.LL:a=r.LOWER;break;case e.ML:a=r.MIXED;break;case e.PS:u=a,a=r.PUNCT_SHIFT;break;case e.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:i.append(n[l]);break;case e.TEXT_COMPACTION_MODE_LATCH:a=r.ALPHA}break;case r.LOWER:if(s<26)c=String.fromCharCode(97+s);else switch(s){case 26:c=" ";break;case e.AS:u=a,a=r.ALPHA_SHIFT;break;case e.ML:a=r.MIXED;break;case e.PS:u=a,a=r.PUNCT_SHIFT;break;case e.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:i.append(n[l]);break;case e.TEXT_COMPACTION_MODE_LATCH:a=r.ALPHA}break;case r.MIXED:if(s<e.PL)c=e.MIXED_CHARS[s];else switch(s){case e.PL:a=r.PUNCT;break;case 26:c=" ";break;case e.LL:a=r.LOWER;break;case e.AL:a=r.ALPHA;break;case e.PS:u=a,a=r.PUNCT_SHIFT;break;case e.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:i.append(n[l]);break;case e.TEXT_COMPACTION_MODE_LATCH:a=r.ALPHA}break;case r.PUNCT:if(s<e.PAL)c=e.PUNCT_CHARS[s];else switch(s){case e.PAL:a=r.ALPHA;break;case e.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:i.append(n[l]);break;case e.TEXT_COMPACTION_MODE_LATCH:a=r.ALPHA}break;case r.ALPHA_SHIFT:if(a=u,s<26)c=String.fromCharCode(65+s);else switch(s){case 26:c=" ";break;case e.TEXT_COMPACTION_MODE_LATCH:a=r.ALPHA}break;case r.PUNCT_SHIFT:if(a=u,s<e.PAL)c=e.PUNCT_CHARS[s];else switch(s){case e.PAL:a=r.ALPHA;break;case e.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:i.append(n[l]);break;case e.TEXT_COMPACTION_MODE_LATCH:a=r.ALPHA}}""!==c&&i.append(c),l++}},e.byteCompaction=function(t,n,r,o,i){var a=new h.default,u=0,l=0,s=!1;switch(t){case e.BYTE_COMPACTION_MODE_LATCH:for(var c=new Int32Array(6),f=n[o++];o<n[0]&&!s;)switch(c[u++]=f,l=900*l+f,f=n[o++]){case e.TEXT_COMPACTION_MODE_LATCH:case e.BYTE_COMPACTION_MODE_LATCH:case e.NUMERIC_COMPACTION_MODE_LATCH:case e.BYTE_COMPACTION_MODE_LATCH_6:case e.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case e.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case e.MACRO_PDF417_TERMINATOR:o--,s=!0;break;default:if(u%5==0&&u>0){for(var d=0;d<6;++d)a.write(Number(v(l)>>v(8*(5-d))));l=0,u=0}}o===n[0]&&f<e.TEXT_COMPACTION_MODE_LATCH&&(c[u++]=f);for(var g=0;g<u;g++)a.write(c[g]);break;case e.BYTE_COMPACTION_MODE_LATCH_6:for(;o<n[0]&&!s;){var y=n[o++];if(y<e.TEXT_COMPACTION_MODE_LATCH)u++,l=900*l+y;else switch(y){case e.TEXT_COMPACTION_MODE_LATCH:case e.BYTE_COMPACTION_MODE_LATCH:case e.NUMERIC_COMPACTION_MODE_LATCH:case e.BYTE_COMPACTION_MODE_LATCH_6:case e.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case e.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case e.MACRO_PDF417_TERMINATOR:o--,s=!0}if(u%5==0&&u>0){for(d=0;d<6;++d)a.write(Number(v(l)>>v(8*(5-d))));l=0,u=0}}}return i.append(p.default.decode(a.toByteArray(),r)),o},e.numericCompaction=function(t,n,r){for(var o=0,i=!1,a=new Int32Array(e.MAX_NUMERIC_CODEWORDS);n<t[0]&&!i;){var u=t[n++];if(n===t[0]&&(i=!0),u<e.TEXT_COMPACTION_MODE_LATCH)a[o]=u,o++;else switch(u){case e.TEXT_COMPACTION_MODE_LATCH:case e.BYTE_COMPACTION_MODE_LATCH:case e.BYTE_COMPACTION_MODE_LATCH_6:case e.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case e.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case e.MACRO_PDF417_TERMINATOR:n--,i=!0}(o%e.MAX_NUMERIC_CODEWORDS==0||u===e.NUMERIC_COMPACTION_MODE_LATCH||i)&&o>0&&(r.append(e.decodeBase900toBase10(a,o)),o=0)}return n},e.decodeBase900toBase10=function(t,n){for(var r=v(0),o=0;o<n;o++)r+=e.EXP900[n-o-1]*v(t[o]);var a=r.toString();if("1"!==a.charAt(0))throw new i.default;return a.substring(1)},e.TEXT_COMPACTION_MODE_LATCH=900,e.BYTE_COMPACTION_MODE_LATCH=901,e.NUMERIC_COMPACTION_MODE_LATCH=902,e.BYTE_COMPACTION_MODE_LATCH_6=924,e.ECI_USER_DEFINED=925,e.ECI_GENERAL_PURPOSE=926,e.ECI_CHARSET=927,e.BEGIN_MACRO_PDF417_CONTROL_BLOCK=928,e.BEGIN_MACRO_PDF417_OPTIONAL_FIELD=923,e.MACRO_PDF417_TERMINATOR=922,e.MODE_SHIFT_TO_BYTE_COMPACTION_MODE=913,e.MAX_NUMERIC_CODEWORDS=15,e.MACRO_PDF417_OPTIONAL_FIELD_FILE_NAME=0,e.MACRO_PDF417_OPTIONAL_FIELD_SEGMENT_COUNT=1,e.MACRO_PDF417_OPTIONAL_FIELD_TIME_STAMP=2,e.MACRO_PDF417_OPTIONAL_FIELD_SENDER=3,e.MACRO_PDF417_OPTIONAL_FIELD_ADDRESSEE=4,e.MACRO_PDF417_OPTIONAL_FIELD_FILE_SIZE=5,e.MACRO_PDF417_OPTIONAL_FIELD_CHECKSUM=6,e.PL=25,e.LL=27,e.AS=27,e.ML=28,e.AL=28,e.PS=29,e.PAL=29,e.PUNCT_CHARS=";<>@[\\]_`~!\r\t,:\n-.$/\"|*()?{}'",e.MIXED_CHARS="0123456789&\r\t,:#-.$/+%*=^",e.EXP900=g()?function(){var e=[];e[0]=v(1);var t=v(900);e[1]=t;for(var n=2;n<16;n++)e[n]=e[n-1]*t;return e}():[],e.NUMBER_OF_SEQUENCE_CODEWORDS=2,e}();t.default=y}).call(this,n(204))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.segmentCount=-1,this.fileSize=-1,this.timestamp=-1,this.checksum=-1}return e.prototype.getSegmentIndex=function(){return this.segmentIndex},e.prototype.setSegmentIndex=function(e){this.segmentIndex=e},e.prototype.getFileId=function(){return this.fileId},e.prototype.setFileId=function(e){this.fileId=e},e.prototype.getOptionalData=function(){return this.optionalData},e.prototype.setOptionalData=function(e){this.optionalData=e},e.prototype.isLastSegment=function(){return this.lastSegment},e.prototype.setLastSegment=function(e){this.lastSegment=e},e.prototype.getSegmentCount=function(){return this.segmentCount},e.prototype.setSegmentCount=function(e){this.segmentCount=e},e.prototype.getSender=function(){return this.sender||null},e.prototype.setSender=function(e){this.sender=e},e.prototype.getAddressee=function(){return this.addressee||null},e.prototype.setAddressee=function(e){this.addressee=e},e.prototype.getFileName=function(){return this.fileName},e.prototype.setFileName=function(e){this.fileName=e},e.prototype.getFileSize=function(){return this.fileSize},e.prototype.setFileSize=function(e){this.fileSize=e},e.prototype.getChecksum=function(){return this.checksum},e.prototype.setChecksum=function(e){this.checksum=e},e.prototype.getTimestamp=function(){return this.timestamp},e.prototype.setTimestamp=function(e){this.timestamp=e},e}();t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.parseLong=function(e,t){return void 0===t&&(t=void 0),parseInt(e,t)},e}();t.default=r},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(33),a=n(208),u=n(24),l=n(7),s=n(210),c=n(15),f=n(68),d=function(e){function t(t){void 0===t&&(t=32);var n=e.call(this)||this;if(n.count=0,t<0)throw new l.default("Negative initial size: "+t);return n.buf=new Uint8Array(t),n}return o(t,e),t.prototype.ensureCapacity=function(e){e-this.buf.length>0&&this.grow(e)},t.prototype.grow=function(e){var t=this.buf.length<<1;if(t-e<0&&(t=e),t<0){if(e<0)throw new s.default;t=u.default.MAX_VALUE}this.buf=i.default.copyOfUint8Array(this.buf,t)},t.prototype.write=function(e){this.ensureCapacity(this.count+1),this.buf[this.count]=e,this.count+=1},t.prototype.writeBytesOffset=function(e,t,n){if(t<0||t>e.length||n<0||t+n-e.length>0)throw new f.default;this.ensureCapacity(this.count+n),c.default.arraycopy(e,t,this.buf,this.count,n),this.count+=n},t.prototype.writeTo=function(e){e.writeBytesOffset(this.buf,0,this.count)},t.prototype.reset=function(){this.count=0},t.prototype.toByteArray=function(){return i.default.copyOfUint8Array(this.buf,this.count)},t.prototype.size=function(){return this.count},t.prototype.toString=function(e){return e?"string"==typeof e?this.toString_string(e):this.toString_number(e):this.toString_void()},t.prototype.toString_void=function(){return new String(this.buf).toString()},t.prototype.toString_string=function(e){return new String(this.buf).toString()},t.prototype.toString_number=function(e){return new String(this.buf).toString()},t.prototype.close=function(){},t}(a.default);t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(68),o=n(209),i=function(){function e(){}return e.prototype.writeBytes=function(e){this.writeBytesOffset(e,0,e.length)},e.prototype.writeBytesOffset=function(e,t,n){if(null==e)throw new o.default;if(t<0||t>e.length||n<0||t+n>e.length||t+n<0)throw new r.default;if(0!==n)for(var i=0;i<n;i++)this.write(e[t+i])},e.prototype.flush=function(){},e.prototype.close=function(){},e}();t.default=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(n(17).default);t.default=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(n(17).default);t.default=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(31),a=n(120),u=function(e){function t(t){return void 0===t&&(t=500),e.call(this,new a.default,t)||this}return o(t,e),t}(i.BrowserCodeReader);t.BrowserPDF417Reader=u},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(31),a=n(78),u=function(e){function t(t){return void 0===t&&(t=500),e.call(this,new a.default,t)||this}return o(t,e),t}(i.BrowserCodeReader);t.BrowserQRCodeReader=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(56),o=n(81),i=n(55),a=n(7),u=n(27),l=function(){function e(){}return e.prototype.write=function(t,n,u,l){if(void 0===l&&(l=null),0===t.length)throw new a.default("Found empty contents");if(n<0||u<0)throw new a.default("Requested dimensions are too small: "+n+"x"+u);var s=i.default.L,c=e.QUIET_ZONE_SIZE;null!==l&&(void 0!==l.get(r.default.ERROR_CORRECTION)&&(s=i.default.fromString(l.get(r.default.ERROR_CORRECTION).toString())),void 0!==l.get(r.default.MARGIN)&&(c=Number.parseInt(l.get(r.default.MARGIN).toString(),10)));var f=o.default.encode(t,s,l);return this.renderResult(f,n,u,c)},e.prototype.writeToDom=function(e,t,n,r,o){void 0===o&&(o=null),"string"==typeof e&&(e=document.querySelector(e));var i=this.write(t,n,r,o);e&&e.appendChild(i)},e.prototype.renderResult=function(e,t,n,r){var o=e.getMatrix();if(null===o)throw new u.default;for(var i=o.getWidth(),a=o.getHeight(),l=i+2*r,s=a+2*r,c=Math.max(t,l),f=Math.max(n,s),d=Math.min(Math.floor(c/l),Math.floor(f/s)),h=Math.floor((c-i*d)/2),p=Math.floor((f-a*d)/2),g=this.createSVGElement(c,f),v=0,y=p;v<a;v++,y+=d)for(var m=0,w=h;m<i;m++,w+=d)if(1===o.get(m,v)){var b=this.createSvgRectElement(w,y,d,d);g.appendChild(b)}return g},e.prototype.createSVGElement=function(t,n){var r=document.createElementNS(e.SVG_NS,"svg");return r.setAttributeNS(null,"height",t.toString()),r.setAttributeNS(null,"width",n.toString()),r},e.prototype.createSvgRectElement=function(t,n,r,o){var i=document.createElementNS(e.SVG_NS,"rect");return i.setAttributeNS(null,"x",t.toString()),i.setAttributeNS(null,"y",n.toString()),i.setAttributeNS(null,"height",r.toString()),i.setAttributeNS(null,"width",o.toString()),i.setAttributeNS(null,"fill","#000000"),i},e.QUIET_ZONE_SIZE=4,e.SVG_NS="http://www.w3.org/2000/svg",e}();t.BrowserQRCodeSvgWriter=l},function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(33),i=n(14),a=function(){function e(e,t){this.width=e,this.height=t;for(var n=new Array(t),r=0;r!==t;r++)n[r]=new Uint8Array(e);this.bytes=n}return e.prototype.getHeight=function(){return this.height},e.prototype.getWidth=function(){return this.width},e.prototype.get=function(e,t){return this.bytes[t][e]},e.prototype.getArray=function(){return this.bytes},e.prototype.setNumber=function(e,t,n){this.bytes[t][e]=n},e.prototype.setBoolean=function(e,t,n){this.bytes[t][e]=n?1:0},e.prototype.clear=function(e){var t,n;try{for(var i=r(this.bytes),a=i.next();!a.done;a=i.next()){var u=a.value;o.default.fill(u,e)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},e.prototype.equals=function(t){if(!(t instanceof e))return!1;var n=t;if(this.width!==n.width)return!1;if(this.height!==n.height)return!1;for(var r=0,o=this.height;r<o;++r)for(var i=this.bytes[r],a=n.bytes[r],u=0,l=this.width;u<l;++u)if(i[u]!==a[u])return!1;return!0},e.prototype.toString=function(){for(var e=new i.default,t=0,n=this.height;t<n;++t){for(var r=this.bytes[t],o=0,a=this.width;o<a;++o)switch(r[o]){case 0:e.append(" 0");break;case 1:e.append(" 1");break;default:e.append("  ")}e.append("\n")}return e.toString()},e}();t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(32),o=n(24),i=n(82),a=n(127),u=n(83),l=n(7),s=function(){function e(){}return e.clearMatrix=function(e){e.clear(255)},e.buildMatrix=function(t,n,r,o,i){e.clearMatrix(i),e.embedBasicPatterns(r,i),e.embedTypeInfo(n,o,i),e.maybeEmbedVersionInfo(r,i),e.embedDataBits(t,o,i)},e.embedBasicPatterns=function(t,n){e.embedPositionDetectionPatternsAndSeparators(n),e.embedDarkDotAtLeftBottomCorner(n),e.maybeEmbedPositionAdjustmentPatterns(t,n),e.embedTimingPatterns(n)},e.embedTypeInfo=function(t,n,o){var i=new r.default;e.makeTypeInfoBits(t,n,i);for(var a=0,u=i.getSize();a<u;++a){var l=i.get(i.getSize()-1-a),s=e.TYPE_INFO_COORDINATES[a],c=s[0],f=s[1];if(o.setBoolean(c,f,l),a<8){var d=o.getWidth()-a-1,h=8;o.setBoolean(d,h,l)}else{d=8,h=o.getHeight()-7+(a-8);o.setBoolean(d,h,l)}}},e.maybeEmbedVersionInfo=function(t,n){if(!(t.getVersionNumber()<7)){var o=new r.default;e.makeVersionInfoBits(t,o);for(var i=17,a=0;a<6;++a)for(var u=0;u<3;++u){var l=o.get(i);i--,n.setBoolean(a,n.getHeight()-11+u,l),n.setBoolean(n.getHeight()-11+u,a,l)}}},e.embedDataBits=function(t,n,r){for(var o=0,i=-1,l=r.getWidth()-1,s=r.getHeight()-1;l>0;){for(6===l&&(l-=1);s>=0&&s<r.getHeight();){for(var c=0;c<2;++c){var f=l-c;if(e.isEmpty(r.get(f,s))){var d=void 0;o<t.getSize()?(d=t.get(o),++o):d=!1,255!==n&&a.default.getDataMaskBit(n,f,s)&&(d=!d),r.setBoolean(f,s,d)}}s+=i}s+=i=-i,l-=2}if(o!==t.getSize())throw new u.default("Not all bits consumed: "+o+"/"+t.getSize())},e.findMSBSet=function(e){return 32-o.default.numberOfLeadingZeros(e)},e.calculateBCHCode=function(t,n){if(0===n)throw new l.default("0 polynomial");var r=e.findMSBSet(n);for(t<<=r-1;e.findMSBSet(t)>=r;)t^=n<<e.findMSBSet(t)-r;return t},e.makeTypeInfoBits=function(t,n,o){if(!i.default.isValidMaskPattern(n))throw new u.default("Invalid mask pattern");var a=t.getBits()<<3|n;o.appendBits(a,5);var l=e.calculateBCHCode(a,e.TYPE_INFO_POLY);o.appendBits(l,10);var s=new r.default;if(s.appendBits(e.TYPE_INFO_MASK_PATTERN,15),o.xor(s),15!==o.getSize())throw new u.default("should not happen but we got: "+o.getSize())},e.makeVersionInfoBits=function(t,n){n.appendBits(t.getVersionNumber(),6);var r=e.calculateBCHCode(t.getVersionNumber(),e.VERSION_INFO_POLY);if(n.appendBits(r,12),18!==n.getSize())throw new u.default("should not happen but we got: "+n.getSize())},e.isEmpty=function(e){return 255===e},e.embedTimingPatterns=function(t){for(var n=8;n<t.getWidth()-8;++n){var r=(n+1)%2;e.isEmpty(t.get(n,6))&&t.setNumber(n,6,r),e.isEmpty(t.get(6,n))&&t.setNumber(6,n,r)}},e.embedDarkDotAtLeftBottomCorner=function(e){if(0===e.get(8,e.getHeight()-8))throw new u.default;e.setNumber(8,e.getHeight()-8,1)},e.embedHorizontalSeparationPattern=function(t,n,r){for(var o=0;o<8;++o){if(!e.isEmpty(r.get(t+o,n)))throw new u.default;r.setNumber(t+o,n,0)}},e.embedVerticalSeparationPattern=function(t,n,r){for(var o=0;o<7;++o){if(!e.isEmpty(r.get(t,n+o)))throw new u.default;r.setNumber(t,n+o,0)}},e.embedPositionAdjustmentPattern=function(t,n,r){for(var o=0;o<5;++o)for(var i=e.POSITION_ADJUSTMENT_PATTERN[o],a=0;a<5;++a)r.setNumber(t+a,n+o,i[a])},e.embedPositionDetectionPattern=function(t,n,r){for(var o=0;o<7;++o)for(var i=e.POSITION_DETECTION_PATTERN[o],a=0;a<7;++a)r.setNumber(t+a,n+o,i[a])},e.embedPositionDetectionPatternsAndSeparators=function(t){var n=e.POSITION_DETECTION_PATTERN[0].length;e.embedPositionDetectionPattern(0,0,t),e.embedPositionDetectionPattern(t.getWidth()-n,0,t),e.embedPositionDetectionPattern(0,t.getWidth()-n,t);e.embedHorizontalSeparationPattern(0,7,t),e.embedHorizontalSeparationPattern(t.getWidth()-8,7,t),e.embedHorizontalSeparationPattern(0,t.getWidth()-8,t);e.embedVerticalSeparationPattern(7,0,t),e.embedVerticalSeparationPattern(t.getHeight()-7-1,0,t),e.embedVerticalSeparationPattern(7,t.getHeight()-7,t)},e.maybeEmbedPositionAdjustmentPatterns=function(t,n){if(!(t.getVersionNumber()<2))for(var r=t.getVersionNumber()-1,o=e.POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE[r],i=0,a=o.length;i!==a;i++){var u=o[i];if(u>=0)for(var l=0;l!==a;l++){var s=o[l];s>=0&&e.isEmpty(n.get(s,u))&&e.embedPositionAdjustmentPattern(s-2,u-2,n)}}},e.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])]),e.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])]),e.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])]),e.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])]),e.VERSION_INFO_POLY=7973,e.TYPE_INFO_POLY=1335,e.TYPE_INFO_MASK_PATTERN=21522,e}();t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){this.dataBytes=e,this.errorCorrectionBytes=t}return e.prototype.getDataBytes=function(){return this.dataBytes},e.prototype.getErrorCorrectionBytes=function(){return this.errorCorrectionBytes},e}();t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(128),o=n(9),i=n(7),a=function(){function e(){}return e.prototype.encode=function(e,t,n,a,u){var l;switch(t){case o.default.QR_CODE:l=new r.default;break;default:throw new i.default("No encoder available for format "+t)}return l.encode(e,t,n,a,u)},e}();t.default=a},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(15),a=n(42),u=n(41),l=n(7),s=function(e){function t(t,n,r,o,i,a,u,s){var c=e.call(this,a,u)||this;if(c.yuvData=t,c.dataWidth=n,c.dataHeight=r,c.left=o,c.top=i,o+a>n||i+u>r)throw new l.default("Crop rectangle does not fit within image data.");return s&&c.reverseHorizontal(a,u),c}return o(t,e),t.prototype.getRow=function(e,t){if(e<0||e>=this.getHeight())throw new l.default("Requested row is outside the image: "+e);var n=this.getWidth();(null==t||t.length<n)&&(t=new Uint8ClampedArray(n));var r=(e+this.top)*this.dataWidth+this.left;return i.default.arraycopy(this.yuvData,r,t,0,n),t},t.prototype.getMatrix=function(){var e=this.getWidth(),t=this.getHeight();if(e===this.dataWidth&&t===this.dataHeight)return this.yuvData;var n=e*t,r=new Uint8ClampedArray(n),o=this.top*this.dataWidth+this.left;if(e===this.dataWidth)return i.default.arraycopy(this.yuvData,o,r,0,n),r;for(var a=0;a<t;a++){var u=a*e;i.default.arraycopy(this.yuvData,o,r,u,e),o+=this.dataWidth}return r},t.prototype.isCropSupported=function(){return!0},t.prototype.crop=function(e,n,r,o){return new t(this.yuvData,this.dataWidth,this.dataHeight,this.left+e,this.top+n,r,o,!1)},t.prototype.renderThumbnail=function(){for(var e=this.getWidth()/t.THUMBNAIL_SCALE_FACTOR,n=this.getHeight()/t.THUMBNAIL_SCALE_FACTOR,r=new Int32Array(e*n),o=this.yuvData,i=this.top*this.dataWidth+this.left,a=0;a<n;a++){for(var u=a*e,l=0;l<e;l++){var s=255&o[i+l*t.THUMBNAIL_SCALE_FACTOR];r[u+l]=4278190080|65793*s}i+=this.dataWidth*t.THUMBNAIL_SCALE_FACTOR}return r},t.prototype.getThumbnailWidth=function(){return this.getWidth()/t.THUMBNAIL_SCALE_FACTOR},t.prototype.getThumbnailHeight=function(){return this.getHeight()/t.THUMBNAIL_SCALE_FACTOR},t.prototype.reverseHorizontal=function(e,t){for(var n=this.yuvData,r=0,o=this.top*this.dataWidth+this.left;r<t;r++,o+=this.dataWidth)for(var i=o+e/2,a=o,u=o+e-1;a<i;a++,u--){var l=n[a];n[a]=n[u],n[u]=l}},t.prototype.invert=function(){return new u.default(this)},t.THUMBNAIL_SCALE_FACTOR=2,t}(a.default);t.default=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),n(41);var i=n(41),a=n(42),u=n(15),l=n(7),s=function(e){function t(t,n,r,o,i,a,u){var s=e.call(this,n,r)||this;if(s.dataWidth=o,s.dataHeight=i,s.left=a,s.top=u,4===t.BYTES_PER_ELEMENT){for(var c=n*r,f=new Uint8ClampedArray(c),d=0;d<c;d++){var h=t[d],p=h>>16&255,g=h>>7&510,v=255&h;f[d]=(p+g+v)/4&255}s.luminances=f}else s.luminances=t;if(void 0===o&&(s.dataWidth=n),void 0===i&&(s.dataHeight=r),void 0===a&&(s.left=0),void 0===u&&(s.top=0),s.left+n>s.dataWidth||s.top+r>s.dataHeight)throw new l.default("Crop rectangle does not fit within image data.");return s}return o(t,e),t.prototype.getRow=function(e,t){if(e<0||e>=this.getHeight())throw new l.default("Requested row is outside the image: "+e);var n=this.getWidth();(null==t||t.length<n)&&(t=new Uint8ClampedArray(n));var r=(e+this.top)*this.dataWidth+this.left;return u.default.arraycopy(this.luminances,r,t,0,n),t},t.prototype.getMatrix=function(){var e=this.getWidth(),t=this.getHeight();if(e===this.dataWidth&&t===this.dataHeight)return this.luminances;var n=e*t,r=new Uint8ClampedArray(n),o=this.top*this.dataWidth+this.left;if(e===this.dataWidth)return u.default.arraycopy(this.luminances,o,r,0,n),r;for(var i=0;i<t;i++){var a=i*e;u.default.arraycopy(this.luminances,o,r,a,e),o+=this.dataWidth}return r},t.prototype.isCropSupported=function(){return!0},t.prototype.crop=function(e,n,r,o){return new t(this.luminances,r,o,this.dataWidth,this.dataHeight,this.left+e,this.top+n)},t.prototype.invert=function(){return new i.default(this)},t}(a.default);t.default=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__values||function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(9),u=n(4),l=n(19),s=n(20),c=n(110),f=n(75),d=n(111),h=n(112),p=n(221),g=n(234),v=n(235),y=n(236),m=n(15),w=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.pairs=new Array(t.MAX_PAIRS),n.rows=new Array,n.startEnd=[2],n}return o(t,e),t.prototype.decodeRow=function(e,n,r){this.pairs.length=0,this.startFromEven=!1;try{return t.constructResult(this.decodeRow2pairs(e,n))}catch(e){console.log(e)}return this.pairs.length=0,this.startFromEven=!0,t.constructResult(this.decodeRow2pairs(e,n))},t.prototype.reset=function(){this.pairs.length=0,this.rows.length=0},t.prototype.decodeRow2pairs=function(e,t){for(var n,r=!1;!r;)try{this.pairs.push(this.retrieveNextPair(t,this.pairs,e))}catch(e){if(!this.pairs.length)throw new e;r=!0}if(this.checkChecksum())return this.pairs;if(n=!!this.rows.length,this.storeRow(e,!1),n){var o=this.checkRowsBoolean(!1);if(null!=o)return o;if(null!=(o=this.checkRowsBoolean(!0)))return o}throw new u.default},t.prototype.checkRowsBoolean=function(e){if(this.rows.length>25)return this.rows.length=0,null;this.pairs.length=0,e&&(this.rows=this.rows.reverse());var t=null;try{t=this.checkRows(new Array,0)}catch(e){console.log(e)}return e&&(this.rows=this.rows.reverse()),t},t.prototype.checkRows=function(e,n){for(var r,o,a=n;a<this.rows.length;a++){var l=this.rows[a];this.pairs.length=0;try{for(var s=i(e),c=s.next();!c.done;c=s.next()){var f=c.value;this.pairs.push(f.getPairs())}}catch(e){r={error:e}}finally{try{c&&!c.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}if(this.pairs.push(l.getPairs()),t.isValidSequence(this.pairs)){if(this.checkChecksum())return this.pairs;var d=new Array(e);d.push(l);try{return this.checkRows(d,a+1)}catch(e){console.log(e)}}}throw new u.default},t.isValidSequence=function(e){var n,r;try{for(var o=i(t.FINDER_PATTERN_SEQUENCES),a=o.next();!a.done;a=o.next()){var u=a.value;if(!(e.length>u.length)){for(var l=!0,s=0;s<e.length;s++)if(e[s].getFinderPattern().getValue()!=u[s]){l=!1;break}if(l)return!0}}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return!1},t.prototype.storeRow=function(e,n){for(var r=0,o=!1,i=!1;r<this.rows.length;){var a=this.rows[r];if(a.getRowNumber()>e){i=a.isEquivalent(this.pairs);break}o=a.isEquivalent(this.pairs),r++}i||o||t.isPartialRow(this.pairs,this.rows)||(this.rows.push(r,new v.default(this.pairs,e,n)),this.removePartialRows(this.pairs,this.rows))},t.prototype.removePartialRows=function(e,t){var n,r,o,a,u,l;try{for(var s=i(t),c=s.next();!c.done;c=s.next()){var f=c.value;if(f.getPairs().length!==e.length){try{for(var d=i(f.getPairs()),h=d.next();!h.done;h=d.next()){var p=h.value,v=!1;try{for(var y=i(e),m=y.next();!m.done;m=y.next()){var w=m.value;if(g.default.equals(p,w)){v=!0;break}}}catch(e){u={error:e}}finally{try{m&&!m.done&&(l=y.return)&&l.call(y)}finally{if(u)throw u.error}}v||!1}}catch(e){o={error:e}}finally{try{h&&!h.done&&(a=d.return)&&a.call(d)}finally{if(o)throw o.error}}}}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}},t.isPartialRow=function(e,t){var n,r,o,a,u,l;try{for(var s=i(t),c=s.next();!c.done;c=s.next()){var f=c.value,d=!0;try{for(var h=i(e),p=h.next();!p.done;p=h.next()){var g=p.value,v=!1;try{for(var y=i(f.getPairs()),m=y.next();!m.done;m=y.next()){var w=m.value;if(g.equals(w)){v=!0;break}}}catch(e){u={error:e}}finally{try{m&&!m.done&&(l=y.return)&&l.call(y)}finally{if(u)throw u.error}}if(!v){d=!1;break}}}catch(e){o={error:e}}finally{try{p&&!p.done&&(a=h.return)&&a.call(h)}finally{if(o)throw o.error}}if(d)return!0}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return!1},t.prototype.getRows=function(){return this.rows},t.constructResult=function(e){var t=y.default.buildBitArray(e),n=p.createDecoder(t).parseInformation(),r=e[0].getFinderPattern().getResultPoints(),o=e[e.length-1].getFinderPattern().getResultPoints(),i=[r[0],r[1],o[0],o[1]];return new l.default(n,null,null,i,a.default.RSS_EXPANDED,null)},t.prototype.checkChecksum=function(){var e=this.pairs.get(0),t=e.getLeftChar(),n=e.getRightChar();if(null==n)return!1;for(var r=n.getChecksumPortion(),o=2,i=1;i<this.pairs.size();++i){var a=this.pairs.get(i);r+=a.getLeftChar().getChecksumPortion(),o++;var u=a.getRightChar();null!=u&&(r+=u.getChecksumPortion(),o++)}return 211*(o-4)+(r%=211)==t.getValue()},t.getNextSecondBar=function(e,t){var n;return e.get(t)?(n=e.getNextUnset(t),n=e.getNextSet(n)):(n=e.getNextSet(t),n=e.getNextUnset(n)),n},t.prototype.retrieveNextPair=function(e,n,r){var o,i=n.length%2==0;this.startFromEven&&(i=!i);var a=!0,l=-1;do{this.findNextPair(e,n,l),null==(o=this.parseFoundFinderPattern(e,r,i))?l=t.getNextSecondBar(e,this.startEnd[0]):a=!1}while(a);var s,c=this.decodeDataCharacter(e,o,i,!0);if(!this.isEmptyPair(n)&&n[n.length-1].mustBeLast())throw new u.default;try{s=this.decodeDataCharacter(e,o,i,!1)}catch(e){s=null,console.log(e)}return new g.default(c,s,o,!0)},t.prototype.isEmptyPair=function(e){return 0===e.length},t.prototype.findNextPair=function(e,n,r){var o=this.getDecodeFinderCounters();o[0]=0,o[1]=0,o[2]=0,o[3]=0;var i,a=e.getSize();if(r>=0)i=r;else if(this.isEmptyPair(n))i=0;else{i=n[n.length-1].getFinderPattern().getStartEnd()[1]}var l=n.length%2!=0;this.startFromEven&&(l=!l);for(var s=!1;i<a&&(s=!e.get(i));)i++;for(var c=0,f=i,d=i;d<a;d++)if(e.get(d)!=s)o[c]++;else{if(3==c){if(l&&t.reverseCounters(o),t.isFinderPattern(o))return this.startEnd[0]=f,void(this.startEnd[1]=d);l&&t.reverseCounters(o),f+=o[0]+o[1],o[0]=o[2],o[1]=o[3],o[2]=0,o[3]=0,c--}else c++;o[c]=1,s=!s}throw new u.default},t.reverseCounters=function(e){for(var t=e.length,n=0;n<t/2;++n){var r=e[n];e[n]=e[t-n-1],e[t-n-1]=r}},t.prototype.parseFoundFinderPattern=function(e,n,r){var o,i,a;if(r){for(var u=this.startEnd[0]-1;u>=0&&!e.get(u);)u--;u++,o=this.startEnd[0]-u,i=u,a=this.startEnd[1]}else i=this.startEnd[0],o=(a=e.getNextUnset(this.startEnd[1]+1))-this.startEnd[1];var l,s=this.getDecodeFinderCounters();m.default.arraycopy(s,0,s,1,s.length-1),s[0]=o;try{l=this.parseFinderValue(s,t.FINDER_PATTERNS)}catch(e){return null}return new d.default(l,[i,a],i,a,n)},t.prototype.decodeDataCharacter=function(e,n,r,o){for(var i=this.getDataCharacterCounters(),a=0;a<i.length;a++)i[a]=0;if(o)t.recordPatternInReverse(e,n.getStartEnd()[0],i);else{t.recordPattern(e,n.getStartEnd()[1],i);for(var l=0,c=i.length-1;l<c;l++,c--){var d=i[l];i[l]=i[c],i[c]=d}}var p=s.default.sum(new Int32Array(i))/17,g=(n.getStartEnd()[1]-n.getStartEnd()[0])/15;if(Math.abs(p-g)/g>.3)throw new u.default;var v=this.getOddCounts(),y=this.getEvenCounts(),m=this.getOddRoundingErrors(),w=this.getEvenRoundingErrors();for(l=0;l<i.length;l++){var b=1*i[l]/p,_=b+.5;if(_<1){if(b<.3)throw new u.default;_=1}else if(_>8){if(b>8.7)throw new u.default;_=8}var C=l/2;0==(1&l)?(v[C]=_,m[C]=b-_):(y[C]=_,w[C]=b-_)}this.adjustOddEvenCounts(17);var E=4*n.getValue()+(r?0:2)+(o?0:1)-1,A=0,I=0;for(l=v.length-1;l>=0;l--){if(t.isNotA1left(n,r,o)){var S=t.WEIGHTS[E][2*l];I+=v[l]*S}A+=v[l]}var O=0;for(l=y.length-1;l>=0;l--)if(t.isNotA1left(n,r,o)){S=t.WEIGHTS[E][2*l+1];O+=y[l]*S}var T=I+O;if(0!=(1&A)||A>13||A<4)throw new u.default;var R=(13-A)/2,N=t.SYMBOL_WIDEST[R],M=9-N,P=h.default.getRSSvalue(v,N,!0),x=h.default.getRSSvalue(y,M,!1),D=P*t.EVEN_TOTAL_SUBSET[R]+x+t.GSUM[R];return new f.default(D,T)},t.isNotA1left=function(e,t,n){return!(0==e.getValue()&&t&&n)},t.prototype.adjustOddEvenCounts=function(e){var n=s.default.sum(new Int32Array(this.getOddCounts())),r=s.default.sum(new Int32Array(this.getEvenCounts())),o=!1,i=!1;n>13?i=!0:n<4&&(o=!0);var a=!1,l=!1;r>13?l=!0:r<4&&(a=!0);var c=n+r-e,f=1==(1&n),d=0==(1&r);if(1==c)if(f){if(d)throw new u.default;i=!0}else{if(!d)throw new u.default;l=!0}else if(-1==c)if(f){if(d)throw new u.default;o=!0}else{if(!d)throw new u.default;a=!0}else{if(0!=c)throw new u.default;if(f){if(!d)throw new u.default;n<r?(o=!0,l=!0):(i=!0,a=!0)}else if(d)throw new u.default}if(o){if(i)throw new u.default;t.increment(this.getOddCounts(),this.getOddRoundingErrors())}if(i&&t.decrement(this.getOddCounts(),this.getOddRoundingErrors()),a){if(l)throw new u.default;t.increment(this.getEvenCounts(),this.getOddRoundingErrors())}l&&t.decrement(this.getEvenCounts(),this.getEvenRoundingErrors())},t.SYMBOL_WIDEST=[7,5,4,3,1],t.EVEN_TOTAL_SUBSET=[4,20,52,104,204],t.GSUM=[0,348,1388,2948,3988],t.FINDER_PATTERNS=[[1,8,4,1],[3,6,4,1],[3,4,6,1],[3,2,8,1],[2,6,5,1],[2,2,9,1]],t.WEIGHTS=[[1,3,9,27,81,32,96,77],[20,60,180,118,143,7,21,63],[189,145,13,39,117,140,209,205],[193,157,49,147,19,57,171,91],[62,186,136,197,169,85,44,132],[185,133,188,142,4,12,36,108],[113,128,173,97,80,29,87,50],[150,28,84,41,123,158,52,156],[46,138,203,187,139,206,196,166],[76,17,51,153,37,111,122,155],[43,129,176,106,107,110,119,146],[16,48,144,10,30,90,59,177],[109,116,137,200,178,112,125,164],[70,210,208,202,184,130,179,115],[134,191,151,31,93,68,204,190],[148,22,66,198,172,94,71,2],[6,18,54,162,64,192,154,40],[120,149,25,75,14,42,126,167],[79,26,78,23,69,207,199,175],[103,98,83,38,114,131,182,124],[161,61,183,127,170,88,53,159],[55,165,73,8,24,72,5,15],[45,135,194,160,58,174,100,89]],t.FINDER_PAT_A=0,t.FINDER_PAT_B=1,t.FINDER_PAT_C=2,t.FINDER_PAT_D=3,t.FINDER_PAT_E=4,t.FINDER_PAT_F=5,t.FINDER_PATTERN_SEQUENCES=[[t.FINDER_PAT_A,t.FINDER_PAT_A],[t.FINDER_PAT_A,t.FINDER_PAT_B,t.FINDER_PAT_B],[t.FINDER_PAT_A,t.FINDER_PAT_C,t.FINDER_PAT_B,t.FINDER_PAT_D],[t.FINDER_PAT_A,t.FINDER_PAT_E,t.FINDER_PAT_B,t.FINDER_PAT_D,t.FINDER_PAT_C],[t.FINDER_PAT_A,t.FINDER_PAT_E,t.FINDER_PAT_B,t.FINDER_PAT_D,t.FINDER_PAT_D,t.FINDER_PAT_F],[t.FINDER_PAT_A,t.FINDER_PAT_E,t.FINDER_PAT_B,t.FINDER_PAT_D,t.FINDER_PAT_E,t.FINDER_PAT_F,t.FINDER_PAT_F],[t.FINDER_PAT_A,t.FINDER_PAT_A,t.FINDER_PAT_B,t.FINDER_PAT_B,t.FINDER_PAT_C,t.FINDER_PAT_C,t.FINDER_PAT_D,t.FINDER_PAT_D],[t.FINDER_PAT_A,t.FINDER_PAT_A,t.FINDER_PAT_B,t.FINDER_PAT_B,t.FINDER_PAT_C,t.FINDER_PAT_C,t.FINDER_PAT_D,t.FINDER_PAT_E,t.FINDER_PAT_E],[t.FINDER_PAT_A,t.FINDER_PAT_A,t.FINDER_PAT_B,t.FINDER_PAT_B,t.FINDER_PAT_C,t.FINDER_PAT_C,t.FINDER_PAT_D,t.FINDER_PAT_E,t.FINDER_PAT_F,t.FINDER_PAT_F],[t.FINDER_PAT_A,t.FINDER_PAT_A,t.FINDER_PAT_B,t.FINDER_PAT_B,t.FINDER_PAT_C,t.FINDER_PAT_D,t.FINDER_PAT_D,t.FINDER_PAT_E,t.FINDER_PAT_E,t.FINDER_PAT_F,t.FINDER_PAT_F]],t.MAX_PAIRS=11,t}(c.default);t.default=w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(27),o=n(129),i=n(227),a=n(228),u=n(229),l=n(230),s=n(231),c=n(232),f=n(233);t.createDecoder=function(e){try{if(e.get(1))return new i.default(e);if(!e.get(2))return new a.default(e);switch(o.default.extractNumericValueFromBitArray(e,1,4)){case 4:return new u.default(e);case 5:return new l.default(e)}switch(o.default.extractNumericValueFromBitArray(e,1,5)){case 12:return new s.default(e);case 13:return new c.default(e)}switch(o.default.extractNumericValueFromBitArray(e,1,7)){case 56:return new f.default(e,"310","11");case 57:return new f.default(e,"320","11");case 58:return new f.default(e,"310","13");case 59:return new f.default(e,"320","13");case 60:return new f.default(e,"310","15");case 61:return new f.default(e,"320","15");case 62:return new f.default(e,"310","17");case 63:return new f.default(e,"320","17")}}catch(t){throw console.log(t),new r.default("unknown decoder: "+e)}}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t,n){var r=e.call(this,t)||this;return r.value=n,r}return o(t,e),t.prototype.getValue=function(){return this.value},t.prototype.isFNC1=function(){return this.value===t.FNC1},t.FNC1="$",t}(n(84).default);t.default=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(8),a=function(e){function t(t,n,r){var o=e.call(this,t)||this;if(n<0||n>10||r<0||r>10)throw new i.default;return o.firstDigit=n,o.secondDigit=r,o}return o(t,e),t.prototype.getFirstDigit=function(){return this.firstDigit},t.prototype.getSecondDigit=function(){return this.secondDigit},t.prototype.getValue=function(){return 10*this.firstDigit+this.secondDigit},t.prototype.isFirstDigitFNC1=function(){return this.firstDigit==t.FNC1},t.prototype.isSecondDigitFNC1=function(){return this.secondDigit==t.FNC1},t.prototype.isAnyFNC1=function(){return this.firstDigit===t.FNC1||this.secondDigit===t.FNC1},t.FNC1=10,t}(n(84).default);t.default=a},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t,n,r){var o=e.call(this,t)||this;return r?(o.remaining=!0,o.remainingValue=o.remainingValue):(o.remaining=!1,o.remainingValue=0),o.newString=n,o}return o(t,e),t.prototype.getNewString=function(){return this.newString},t.prototype.isRemaining=function(){return this.remaining},t.prototype.getRemainingValue=function(){return this.remainingValue},t}(n(84).default);t.default=i},function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(4),i=function(){function e(){}return e.parseFieldsInGeneralPurpose=function(t){var n,i,a,u,l,s,c,f;if(!t)return null;if(t.length<2)throw new o.default;var d=t.substring(0,2);try{for(var h=r(e.TWO_DIGIT_DATA_LENGTH),p=h.next();!p.done;p=h.next()){if((E=p.value)[0]===d)return E[1]===e.VARIABLE_LENGTH?e.processVariableAI(2,E[2],t):e.processFixedAI(2,E[1],t)}}catch(e){n={error:e}}finally{try{p&&!p.done&&(i=h.return)&&i.call(h)}finally{if(n)throw n.error}}if(t.length<3)throw new o.default;var g=t.substring(0,3);try{for(var v=r(e.THREE_DIGIT_DATA_LENGTH),y=v.next();!y.done;y=v.next()){if((E=y.value)[0]===g)return E[1]===e.VARIABLE_LENGTH?e.processVariableAI(3,E[2],t):e.processFixedAI(3,E[1],t)}}catch(e){a={error:e}}finally{try{y&&!y.done&&(u=v.return)&&u.call(v)}finally{if(a)throw a.error}}try{for(var m=r(e.THREE_DIGIT_PLUS_DIGIT_DATA_LENGTH),w=m.next();!w.done;w=m.next()){if((E=w.value)[0]===g)return E[1]===e.VARIABLE_LENGTH?e.processVariableAI(4,E[2],t):e.processFixedAI(4,E[1],t)}}catch(e){l={error:e}}finally{try{w&&!w.done&&(s=m.return)&&s.call(m)}finally{if(l)throw l.error}}if(t.length<4)throw new o.default;var b=t.substring(0,4);try{for(var _=r(e.FOUR_DIGIT_DATA_LENGTH),C=_.next();!C.done;C=_.next()){var E;if((E=C.value)[0]===b)return E[1]===e.VARIABLE_LENGTH?e.processVariableAI(4,E[2],t):e.processFixedAI(4,E[1],t)}}catch(e){c={error:e}}finally{try{C&&!C.done&&(f=_.return)&&f.call(_)}finally{if(c)throw c.error}}throw new o.default},e.processFixedAI=function(t,n,r){if(r.length<t)throw new o.default;var i=r.substring(0,t);if(r.length<t+n)throw new o.default;var a=r.substring(t,t+n),u=r.substring(t+n),l="("+i+")"+a,s=e.parseFieldsInGeneralPurpose(u);return null==s?l:l+s},e.processVariableAI=function(t,n,r){var o,i=r.substring(0,t);o=r.length<t+n?r.length:t+n;var a=r.substring(t,o),u=r.substring(o),l="("+i+")"+a,s=e.parseFieldsInGeneralPurpose(u);return null==s?l:l+s},e.VARIABLE_LENGTH=[],e.TWO_DIGIT_DATA_LENGTH=[["00",18],["01",14],["02",14],["10",e.VARIABLE_LENGTH,20],["11",6],["12",6],["13",6],["15",6],["17",6],["20",2],["21",e.VARIABLE_LENGTH,20],["22",e.VARIABLE_LENGTH,29],["30",e.VARIABLE_LENGTH,8],["37",e.VARIABLE_LENGTH,8],["90",e.VARIABLE_LENGTH,30],["91",e.VARIABLE_LENGTH,30],["92",e.VARIABLE_LENGTH,30],["93",e.VARIABLE_LENGTH,30],["94",e.VARIABLE_LENGTH,30],["95",e.VARIABLE_LENGTH,30],["96",e.VARIABLE_LENGTH,30],["97",e.VARIABLE_LENGTH,3],["98",e.VARIABLE_LENGTH,30],["99",e.VARIABLE_LENGTH,30]],e.THREE_DIGIT_DATA_LENGTH=[["240",e.VARIABLE_LENGTH,30],["241",e.VARIABLE_LENGTH,30],["242",e.VARIABLE_LENGTH,6],["250",e.VARIABLE_LENGTH,30],["251",e.VARIABLE_LENGTH,30],["253",e.VARIABLE_LENGTH,17],["254",e.VARIABLE_LENGTH,20],["400",e.VARIABLE_LENGTH,30],["401",e.VARIABLE_LENGTH,30],["402",17],["403",e.VARIABLE_LENGTH,30],["410",13],["411",13],["412",13],["413",13],["414",13],["420",e.VARIABLE_LENGTH,20],["421",e.VARIABLE_LENGTH,15],["422",3],["423",e.VARIABLE_LENGTH,15],["424",3],["425",3],["426",3]],e.THREE_DIGIT_PLUS_DIGIT_DATA_LENGTH=[["310",6],["311",6],["312",6],["313",6],["314",6],["315",6],["316",6],["320",6],["321",6],["322",6],["323",6],["324",6],["325",6],["326",6],["327",6],["328",6],["329",6],["330",6],["331",6],["332",6],["333",6],["334",6],["335",6],["336",6],["340",6],["341",6],["342",6],["343",6],["344",6],["345",6],["346",6],["347",6],["348",6],["349",6],["350",6],["351",6],["352",6],["353",6],["354",6],["355",6],["356",6],["357",6],["360",6],["361",6],["362",6],["363",6],["364",6],["365",6],["366",6],["367",6],["368",6],["369",6],["390",e.VARIABLE_LENGTH,15],["391",e.VARIABLE_LENGTH,18],["392",e.VARIABLE_LENGTH,15],["393",e.VARIABLE_LENGTH,18],["703",e.VARIABLE_LENGTH,30]],e.FOUR_DIGIT_DATA_LENGTH=[["7001",13],["7002",e.VARIABLE_LENGTH,30],["7003",10],["8001",14],["8002",e.VARIABLE_LENGTH,20],["8003",e.VARIABLE_LENGTH,30],["8004",e.VARIABLE_LENGTH,30],["8005",6],["8006",18],["8007",e.VARIABLE_LENGTH,30],["8008",e.VARIABLE_LENGTH,12],["8018",18],["8020",e.VARIABLE_LENGTH,25],["8100",6],["8101",10],["8102",2],["8110",e.VARIABLE_LENGTH,70],["8200",e.VARIABLE_LENGTH,70]],e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){t?this.decodedInformation=null:(this.finished=e,this.decodedInformation=t)}return e.prototype.getDecodedInformation=function(){return this.decodedInformation},e.prototype.isFinished=function(){return this.finished},e}();t.default=r},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(57),a=n(14),u=function(e){function t(t){return e.call(this,t)||this}return o(t,e),t.prototype.parseInformation=function(){var e=new a.default;e.append("(01)");var n=e.length(),r=this.getGeneralDecoder().extractNumericValueFromBitArray(t.HEADER_SIZE,4);return e.append(r),this.encodeCompressedGtinWithoutAI(e,t.HEADER_SIZE+4,n),this.getGeneralDecoder().decodeAllCodes(e,t.HEADER_SIZE+44)},t.HEADER_SIZE=4,t}(i.default);t.default=u},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(14),a=function(e){function t(t){return e.call(this,t)||this}return o(t,e),t.prototype.parseInformation=function(){var e=new i.default;return this.getGeneralDecoder().decodeAllCodes(e,t.HEADER_SIZE)},t.HEADER_SIZE=5,t}(n(130).default);t.default=a},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){return e.call(this,t)||this}return o(t,e),t.prototype.addWeightCode=function(e,t){e.append("(3103)")},t.prototype.checkWeight=function(e){return e},t}(n(131).default);t.default=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){return e.call(this,t)||this}return o(t,e),t.prototype.addWeightCode=function(e,t){t<1e4?e.append("(3202)"):e.append("(3203)")},t.prototype.checkWeight=function(e){return e<1e4?e:e-1e4},t}(n(131).default);t.default=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(57),a=n(4),u=n(14),l=function(e){function t(t){return e.call(this,t)||this}return o(t,e),t.prototype.parseInformation=function(){if(this.getInformation().getSize()<t.HEADER_SIZE+i.default.GTIN_SIZE)throw new a.default;var e=new u.default;this.encodeCompressedGtin(e,t.HEADER_SIZE);var n=this.getGeneralDecoder().extractNumericValueFromBitArray(t.HEADER_SIZE+i.default.GTIN_SIZE,t.LAST_DIGIT_SIZE);e.append("(392"),e.append(n),e.append(")");var r=this.getGeneralDecoder().decodeGeneralPurposeField(t.HEADER_SIZE+i.default.GTIN_SIZE+t.LAST_DIGIT_SIZE,null);return e.append(r.getNewString()),e.toString()},t.HEADER_SIZE=8,t.LAST_DIGIT_SIZE=2,t}(i.default);t.default=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(57),a=n(4),u=n(14),l=function(e){function t(t){return e.call(this,t)||this}return o(t,e),t.prototype.parseInformation=function(){if(this.getInformation().getSize()<t.HEADER_SIZE+i.default.GTIN_SIZE)throw new a.default;var e=new u.default;this.encodeCompressedGtin(e,t.HEADER_SIZE);var n=this.getGeneralDecoder().extractNumericValueFromBitArray(t.HEADER_SIZE+i.default.GTIN_SIZE,t.LAST_DIGIT_SIZE);e.append("(393"),e.append(n),e.append(")");var r=this.getGeneralDecoder().extractNumericValueFromBitArray(t.HEADER_SIZE+i.default.GTIN_SIZE+t.LAST_DIGIT_SIZE,t.FIRST_THREE_DIGITS_SIZE);r/100==0&&e.append("0"),r/10==0&&e.append("0"),e.append(r);var o=this.getGeneralDecoder().decodeGeneralPurposeField(t.HEADER_SIZE+i.default.GTIN_SIZE+t.LAST_DIGIT_SIZE+t.FIRST_THREE_DIGITS_SIZE,null);return e.append(o.getNewString()),e.toString()},t.HEADER_SIZE=8,t.LAST_DIGIT_SIZE=2,t.FIRST_THREE_DIGITS_SIZE=10,t}(i.default);t.default=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(132),a=n(4),u=n(14),l=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.dateCode=r,o.firstAIdigits=n,o}return o(t,e),t.prototype.parseInformation=function(){if(this.getInformation().getSize()!=t.HEADER_SIZE+t.GTIN_SIZE+t.WEIGHT_SIZE+t.DATE_SIZE)throw new a.default;var e=new u.default;return this.encodeCompressedGtin(e,t.HEADER_SIZE),this.encodeCompressedWeight(e,t.HEADER_SIZE+t.GTIN_SIZE,t.WEIGHT_SIZE),this.encodeCompressedDate(e,t.HEADER_SIZE+t.GTIN_SIZE+t.WEIGHT_SIZE),e.toString()},t.prototype.encodeCompressedDate=function(e,n){var r=this.getGeneralDecoder().extractNumericValueFromBitArray(n,t.DATE_SIZE);if(38400!=r){e.append("("),e.append(this.dateCode),e.append(")");var o=r%32,i=(r/=32)%12+1,a=r/=12;a/10==0&&e.append("0"),e.append(a),i/10==0&&e.append("0"),e.append(i),o/10==0&&e.append("0"),e.append(o)}},t.prototype.addWeightCode=function(e,t){e.append("("),e.append(this.firstAIdigits),e.append(t/1e5),e.append(")")},t.prototype.checkWeight=function(e){return e%1e5},t.HEADER_SIZE=8,t.WEIGHT_SIZE=20,t.DATE_SIZE=16,t}(i.default);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t,n,r){this.leftchar=e,this.rightchar=t,this.finderpattern=n,this.maybeLast=r}return e.prototype.mayBeLast=function(){return this.maybeLast},e.prototype.getLeftChar=function(){return this.leftchar},e.prototype.getRightChar=function(){return this.rightchar},e.prototype.getFinderPattern=function(){return this.finderpattern},e.prototype.mustBeLast=function(){return null==this.rightchar},e.prototype.toString=function(){return"[ "+this.leftchar+", "+this.rightchar+" : "+(null==this.finderpattern?"null":this.finderpattern.getValue())+" ]"},e.equals=function(t,n){return t instanceof e&&(e.equalsOrNull(t.leftchar,n.leftchar)&&e.equalsOrNull(t.rightchar,n.rightchar)&&e.equalsOrNull(t.finderpattern,n.finderpattern))},e.equalsOrNull=function(t,n){return null===t?null===n:e.equals(t,n)},e.prototype.hashCode=function(){return this.leftchar.getValue()^this.rightchar.getValue()^this.finderpattern.getValue()},e.hashNotNull=function(e){return null===e?0:e.hashCode()},e}();t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t,n){this.pairs=e,this.rowNumber=t,this.wasReversed=n}return e.prototype.getPairs=function(){return this.pairs},e.prototype.getRowNumber=function(){return this.rowNumber},e.prototype.isReversed=function(){return this.wasReversed},e.prototype.isEquivalent=function(e){return this.checkEqualitity(this,e)},e.prototype.toString=function(){return"{ "+this.pairs+" }"},e.prototype.equals=function(t,n){return t instanceof e&&(this.checkEqualitity(t,n)&&t.wasReversed===n.wasReversed)},e.prototype.checkEqualitity=function(e,t){var n;if(e&&t)return e.forEach((function(e,r){t.forEach((function(t){e.getLeftChar().getValue()===t.getLeftChar().getValue()&&e.getRightChar().getValue()===t.getRightChar().getValue()&&e.getFinderPatter().getValue()===t.getFinderPatter().getValue()&&(n=!0)}))})),n},e}();t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(32),o=function(){function e(){}return e.buildBitArray=function(e){var t=2*e.length-1;null==e[e.length-1].getRightChar()&&(t-=1);for(var n=12*t,o=new r.default(n),i=0,a=e[0].getRightChar().getValue(),u=11;u>=0;--u)0!=(a&1<<u)&&o.set(i),i++;for(u=1;u<e.length;++u){for(var l=e[u],s=l.getLeftChar().getValue(),c=11;c>=0;--c)0!=(s&1<<c)&&o.set(i),i++;if(null!=l.getRightChar()){var f=l.getRightChar().getValue();for(c=11;c>=0;--c)0!=(f&1<<c)&&o.set(i),i++}}return o},e}();t.default=o},function(e,t,n){var r=n(238);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(92)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(t=n(91)(!1)).push([e.i,'.qrscanner video {\n  position: fixed;\n  right: 0;\n  bottom: 0;\n  min-width: 100%;\n  min-height: 100%;\n}\n\n\n:root {\n  --main-qrcode-border: 3px;\n  --main-qrcode-scanner-width: 25vh;\n  --main-qrcode-scanner-height-move: 23.5vh;\n}\n\n.ocrloader {\n  width: var(--main-qrcode-scanner-width);\n  height: var(--main-qrcode-scanner-width);\n  z-index: 1;\n  position: absolute;\n  left: 50%;\n  top: 50%;\n  transform: translate(-50%,-50%);\n  backface-visibility: hidden;\n}\n.ocrloader span {\n  position: absolute;\n  left: 0;\n  top: 0;\n  width: 100%;\n  height: 1.5vh;\n  background-color: rgba(45, 183, 183, 0.54);\n  z-index: 2;\n  -webkit-animation: action 1s infinite  alternate;\n  animation: action 1s infinite  alternate;\n}\n\n\n\n.ocrloader:before,  .ocrloader:after,\nem:after, em:before {\n    z-index: 3;\n    border-color: #000;\n    content: "";\n    position: absolute;\n    width: 19px;\n    height: 16px;\n    border-style: solid;\n    border-width: 0px;\n  }\n.ocrloader:before {\n    left: 0;\n    top: 0;\n    border-left-width: var(--main-qrcode-border);\n    border-top-width: var(--main-qrcode-border);\n  }\n.ocrloader:after {\n    right: 0;\n    top: 0;\n    border-right-width: var(--main-qrcode-border);\n    border-top-width: var(--main-qrcode-border);\n  }\nem:before {\n  left: 0;\n  bottom: 0;\n  border-left-width: var(--main-qrcode-border);\n  border-bottom-width: var(--main-qrcode-border);\n}\nem:after {\n  right: 0;\n  bottom: 0;\n  border-right-width: var(--main-qrcode-border);\n  border-bottom-width: var(--main-qrcode-border);\n}\n\n\n@keyframes move {\n  /* 0%, 100% { transform: translateY(300%); }\n  50% { transform: translateY(0%); }\n  75% { transform: translateY(800%); } */\n  0%, 100% {\n    bottom: 0;\n  }\n  50% {\n    bottom: 100px;\n  }\n}\n\n@-webkit-keyframes action {\n        0% { transform: translateY(0); }\n        100% { transform: translateY(var(--main-qrcode-scanner-height-move)); }\n}\n@keyframes action {\n    0% { transform: translateY(0); }\n    100% { transform: translateY(var(--main-qrcode-scanner-height-move)); }\n}\n',""]),e.exports=t},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),i=n(11),a=n.n(i),u=n(138),l=n(1),s=n(262),c=n(38);var f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(s.a)(e,Object(l.a)({defaultTheme:c.a},t))},d=(n(6),n(58)),h=n(260),p=n(60);var g=function(e){var t=e.children,n=e.theme,r=Object(h.a)(),i=o.a.useMemo((function(){var e=null===r?n:function(e,t){return"function"==typeof t?t(e):Object(l.a)(Object(l.a)({},e),t)}(r,n);return null!=e&&(e[p.a]=null!==r),e}),[n,r]);return o.a.createElement(d.a.Provider,{value:i},t)},v=n(136),y=n.n(v),m=n(137),w=n.n(m),b=function(){function e(){}return e.getDefaultSettings=function(){return{force:!1,disableButton:!1,titleSelectDevice:"Select device",titlePermissonFailed:"Permission failed",contentPermissonFailed:"Your browser has no permission for the camera. Please activate the permission.",titleWaitPermission:"Wait for your permission",titleScanQRCode:"QR-Code-Scanner",titleRedirect:"Forwarding",contentRedirect:'Would you like to redirect to the url "%URL"'}},e.init=function(t){window.hasOwnProperty(t)?window.qrscannerredirect.settings=Object.assign(e.getDefaultSettings(),window.qrscannerredirect.settings):window.qrscannerredirect={settings:e.getDefaultSettings()},window.qrscannerredirect.app_name=t},e.getTitlePermissonFailed=function(){return window.qrscannerredirect.settings.titlePermissonFailed},e.getContentPermissonFailed=function(){return window.qrscannerredirect.settings.contentPermissonFailed},e.isButtonDisabled=function(){return window.qrscannerredirect.settings.disableButton},e.getContentRedirect=function(){return window.qrscannerredirect.settings.contentRedirect},e.getTitleRedirect=function(){return window.qrscannerredirect.settings.titleRedirect},e.getTitleWaitPermission=function(){return window.qrscannerredirect.settings.titleWaitPermission},e.getTitleScanQRCode=function(){return window.qrscannerredirect.settings.titleScanQRCode},e.getTitleSelectDevice=function(){return window.qrscannerredirect.settings.titleSelectDevice},e.isForce=function(){return window.qrscannerredirect.settings.force},e}(),_=function(){function e(){}return e.validURL=function(e){return!!new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(e)},e}(),C=n(133),E=n.n(C),A=n(2),I=n(3),S=n(5),O=n(16);function T(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function R(e,t){return r.useMemo((function(){return null==e&&null==t?null:function(n){T(e,n),T(t,n)}}),[e,t])}var N="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;function M(e){var t=r.useRef(e);return N((function(){t.current=e})),r.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}var P=!0,x=!1,D=null,k={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function B(e){e.metaKey||e.altKey||e.ctrlKey||(P=!0)}function L(){P=!1}function j(){"hidden"===this.visibilityState&&x&&(P=!0)}function F(e){var t,n,r,o=e.target;try{return o.matches(":focus-visible")}catch(e){}return P||(n=(t=o).type,!("INPUT"!==(r=t.tagName)||!k[n]||t.readOnly)||"TEXTAREA"===r&&!t.readOnly||!!t.isContentEditable)}function V(){x=!0,window.clearTimeout(D),D=window.setTimeout((function(){x=!1}),100)}function z(){return{isFocusVisible:F,onBlurVisible:V,ref:r.useCallback((function(e){var t,n=i.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",B,!0),t.addEventListener("mousedown",L,!0),t.addEventListener("pointerdown",L,!0),t.addEventListener("touchstart",L,!0),t.addEventListener("visibilitychange",j,!0))}),[])}}var U=n(29),W=n(28),H=n(46),G=n(36),Z=o.a.createContext(null);function X(e,t){var n=Object.create(null);return e&&r.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&Object(r.isValidElement)(e)?t(e):e}(e)})),n}function Y(e,t,n){return null!=n[t]?n[t]:e.props[t]}function K(e,t,n){var o=X(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var u={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var s=o[l][r];u[o[l][r]]=n(s)}u[l]=n(l)}for(r=0;r<i.length;r++)u[i[r]]=n(i[r]);return u}(t,o);return Object.keys(i).forEach((function(a){var u=i[a];if(Object(r.isValidElement)(u)){var l=a in t,s=a in o,c=t[a],f=Object(r.isValidElement)(c)&&!c.props.in;!s||l&&!f?s||!l||f?s&&l&&Object(r.isValidElement)(c)&&(i[a]=Object(r.cloneElement)(u,{onExited:n.bind(null,u),in:c.props.in,exit:Y(u,"exit",e),enter:Y(u,"enter",e)})):i[a]=Object(r.cloneElement)(u,{in:!1}):i[a]=Object(r.cloneElement)(u,{onExited:n.bind(null,u),in:!0,exit:Y(u,"exit",e),enter:Y(u,"enter",e)})}})),i}var Q=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},q=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(Object(H.a)(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Object(G.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,o,i=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,o=a,X(n.children,(function(e){return Object(r.cloneElement)(e,{onExited:o.bind(null,e),in:!0,appear:Y(e,"appear",n),enter:Y(e,"enter",n),exit:Y(e,"exit",n)})}))):K(e,i,a),firstRender:!1}},n.handleExited=function(e,t){var n=X(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Object(l.a)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Object(W.a)(e,["component","childFactory"]),i=this.state.contextValue,a=Q(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?o.a.createElement(Z.Provider,{value:i},a):o.a.createElement(Z.Provider,{value:i},o.a.createElement(t,r,a))},t}(o.a.Component);q.propTypes={},q.defaultProps={component:"div",childFactory:function(e){return e}};var J=q,$="undefined"==typeof window?r.useEffect:r.useLayoutEffect;var ee=function(e){var t=e.classes,n=e.pulsate,o=void 0!==n&&n,i=e.rippleX,a=e.rippleY,u=e.rippleSize,l=e.in,s=e.onExited,c=void 0===s?function(){}:s,f=e.timeout,d=r.useState(!1),h=d[0],p=d[1],g=Object(I.a)(t.ripple,t.rippleVisible,o&&t.ripplePulsate),v={width:u,height:u,top:-u/2+a,left:-u/2+i},y=Object(I.a)(t.child,h&&t.childLeaving,o&&t.childPulsate),m=M(c);return $((function(){if(!l){p(!0);var e=setTimeout(m,f);return function(){clearTimeout(e)}}}),[m,l,f]),r.createElement("span",{className:g,style:v},r.createElement("span",{className:y}))},te=r.forwardRef((function(e,t){var n=e.center,o=void 0!==n&&n,i=e.classes,a=e.className,u=Object(A.a)(e,["center","classes","className"]),s=r.useState([]),c=s[0],f=s[1],d=r.useRef(0),h=r.useRef(null);r.useEffect((function(){h.current&&(h.current(),h.current=null)}),[c]);var p=r.useRef(!1),g=r.useRef(null),v=r.useRef(null),y=r.useRef(null);r.useEffect((function(){return function(){clearTimeout(g.current)}}),[]);var m=r.useCallback((function(e){var t=e.pulsate,n=e.rippleX,o=e.rippleY,a=e.rippleSize,u=e.cb;f((function(e){return[].concat(Object(U.a)(e),[r.createElement(ee,{key:d.current,classes:i,timeout:550,pulsate:t,rippleX:n,rippleY:o,rippleSize:a})])})),d.current+=1,h.current=u}),[i]),w=r.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t.pulsate,i=void 0!==r&&r,a=t.center,u=void 0===a?o||t.pulsate:a,l=t.fakeElement,s=void 0!==l&&l;if("mousedown"===e.type&&p.current)p.current=!1;else{"touchstart"===e.type&&(p.current=!0);var c,f,d,h=s?null:y.current,w=h?h.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(u||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(w.width/2),f=Math.round(w.height/2);else{var b=e.touches?e.touches[0]:e,_=b.clientX,C=b.clientY;c=Math.round(_-w.left),f=Math.round(C-w.top)}if(u)(d=Math.sqrt((2*Math.pow(w.width,2)+Math.pow(w.height,2))/3))%2==0&&(d+=1);else{var E=2*Math.max(Math.abs((h?h.clientWidth:0)-c),c)+2,A=2*Math.max(Math.abs((h?h.clientHeight:0)-f),f)+2;d=Math.sqrt(Math.pow(E,2)+Math.pow(A,2))}e.touches?null===v.current&&(v.current=function(){m({pulsate:i,rippleX:c,rippleY:f,rippleSize:d,cb:n})},g.current=setTimeout((function(){v.current&&(v.current(),v.current=null)}),80)):m({pulsate:i,rippleX:c,rippleY:f,rippleSize:d,cb:n})}}),[o,m]),b=r.useCallback((function(){w({},{pulsate:!0})}),[w]),_=r.useCallback((function(e,t){if(clearTimeout(g.current),"touchend"===e.type&&v.current)return e.persist(),v.current(),v.current=null,void(g.current=setTimeout((function(){_(e,t)})));v.current=null,f((function(e){return e.length>0?e.slice(1):e})),h.current=t}),[]);return r.useImperativeHandle(t,(function(){return{pulsate:b,start:w,stop:_}}),[b,w,_]),r.createElement("span",Object(l.a)({className:Object(I.a)(i.root,a),ref:y},u),r.createElement(J,{component:null,exit:!0},c))})),ne=Object(S.a)((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(r.memo(te)),re=r.forwardRef((function(e,t){var n=e.action,o=e.buttonRef,a=e.centerRipple,u=void 0!==a&&a,s=e.children,c=e.classes,f=e.className,d=e.component,h=void 0===d?"button":d,p=e.disabled,g=void 0!==p&&p,v=e.disableRipple,y=void 0!==v&&v,m=e.disableTouchRipple,w=void 0!==m&&m,b=e.focusRipple,_=void 0!==b&&b,C=e.focusVisibleClassName,E=e.onBlur,S=e.onClick,O=e.onFocus,T=e.onFocusVisible,N=e.onKeyDown,P=e.onKeyUp,x=e.onMouseDown,D=e.onMouseLeave,k=e.onMouseUp,B=e.onTouchEnd,L=e.onTouchMove,j=e.onTouchStart,F=e.onDragLeave,V=e.tabIndex,U=void 0===V?0:V,W=e.TouchRippleProps,H=e.type,G=void 0===H?"button":H,Z=Object(A.a)(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),X=r.useRef(null);var Y=r.useRef(null),K=r.useState(!1),Q=K[0],q=K[1];g&&Q&&q(!1);var J=z(),$=J.isFocusVisible,ee=J.onBlurVisible,te=J.ref;function re(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:w;return M((function(r){return t&&t(r),!n&&Y.current&&Y.current[e](r),!0}))}r.useImperativeHandle(n,(function(){return{focusVisible:function(){q(!0),X.current.focus()}}}),[]),r.useEffect((function(){Q&&_&&!y&&Y.current.pulsate()}),[y,_,Q]);var oe=re("start",x),ie=re("stop",F),ae=re("stop",k),ue=re("stop",(function(e){Q&&e.preventDefault(),D&&D(e)})),le=re("start",j),se=re("stop",B),ce=re("stop",L),fe=re("stop",(function(e){Q&&(ee(e),q(!1)),E&&E(e)}),!1),de=M((function(e){X.current||(X.current=e.currentTarget),$(e)&&(q(!0),T&&T(e)),O&&O(e)})),he=function(){var e=i.findDOMNode(X.current);return h&&"button"!==h&&!("A"===e.tagName&&e.href)},pe=r.useRef(!1),ge=M((function(e){_&&!pe.current&&Q&&Y.current&&" "===e.key&&(pe.current=!0,e.persist(),Y.current.stop(e,(function(){Y.current.start(e)}))),e.target===e.currentTarget&&he()&&" "===e.key&&e.preventDefault(),N&&N(e),e.target===e.currentTarget&&he()&&"Enter"===e.key&&!g&&(e.preventDefault(),S&&S(e))})),ve=M((function(e){_&&" "===e.key&&Y.current&&Q&&!e.defaultPrevented&&(pe.current=!1,e.persist(),Y.current.stop(e,(function(){Y.current.pulsate(e)}))),P&&P(e),S&&e.target===e.currentTarget&&he()&&" "===e.key&&!e.defaultPrevented&&S(e)})),ye=h;"button"===ye&&Z.href&&(ye="a");var me={};"button"===ye?(me.type=G,me.disabled=g):("a"===ye&&Z.href||(me.role="button"),me["aria-disabled"]=g);var we=R(o,t),be=R(te,X),_e=R(we,be),Ce=r.useState(!1),Ee=Ce[0],Ae=Ce[1];r.useEffect((function(){Ae(!0)}),[]);var Ie=Ee&&!y&&!g;return r.createElement(ye,Object(l.a)({className:Object(I.a)(c.root,f,Q&&[c.focusVisible,C],g&&c.disabled),onBlur:fe,onClick:S,onFocus:de,onKeyDown:ge,onKeyUp:ve,onMouseDown:oe,onMouseLeave:ue,onMouseUp:ae,onDragLeave:ie,onTouchEnd:se,onTouchMove:ce,onTouchStart:le,ref:_e,tabIndex:g?-1:U},me,Z),s,Ie?r.createElement(ne,Object(l.a)({ref:Y,center:u},W)):null)})),oe=Object(S.a)({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(re),ie=n(10),ae=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.className,a=e.color,u=void 0===a?"default":a,s=e.component,c=void 0===s?"button":s,f=e.disabled,d=void 0!==f&&f,h=e.disableElevation,p=void 0!==h&&h,g=e.disableFocusRipple,v=void 0!==g&&g,y=e.endIcon,m=e.focusVisibleClassName,w=e.fullWidth,b=void 0!==w&&w,_=e.size,C=void 0===_?"medium":_,E=e.startIcon,S=e.type,O=void 0===S?"button":S,T=e.variant,R=void 0===T?"text":T,N=Object(A.a)(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),M=E&&r.createElement("span",{className:Object(I.a)(o.startIcon,o["iconSize".concat(Object(ie.a)(C))])},E),P=y&&r.createElement("span",{className:Object(I.a)(o.endIcon,o["iconSize".concat(Object(ie.a)(C))])},y);return r.createElement(oe,Object(l.a)({className:Object(I.a)(o.root,o[R],i,"inherit"===u?o.colorInherit:"default"!==u&&o["".concat(R).concat(Object(ie.a)(u))],"medium"!==C&&[o["".concat(R,"Size").concat(Object(ie.a)(C))],o["size".concat(Object(ie.a)(C))]],p&&o.disableElevation,d&&o.disabled,b&&o.fullWidth),component:c,disabled:d,focusRipple:!v,focusVisibleClassName:Object(I.a)(o.focusVisible,m),ref:t,type:O},N),r.createElement("span",{className:o.label},M,n,P))})),ue=Object(S.a)((function(e){return{root:Object(l.a)({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:Object(O.b)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:Object(O.b)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Object(O.b)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(Object(O.b)(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:Object(O.b)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(Object(O.b)(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:Object(O.b)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(ae),le=n(95);function se(e,t){var n=o.a.memo(o.a.forwardRef((function(t,n){return o.a.createElement(le.a,Object(l.a)({ref:n},t),e)})));return n.muiName=le.a.muiName,n}var ce=se(o.a.createElement("path",{d:"M10 20H5v2h5v2l3-3-3-3v2zm4 0v2h5v-2h-5zM12 8c1.1 0 2-.9 2-2s-.9-2-2-2-1.99.9-1.99 2S10.9 8 12 8zm5-8H7C5.9 0 5 .9 5 2v14c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2zM7 2h10v10.5c0-1.67-3.33-2.5-5-2.5s-5 .83-5 2.5V2z"})),fe=n(21),de=n(261);function he(e){return e&&e.ownerDocument||document}var pe="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;var ge=r.forwardRef((function(e,t){var n=e.children,o=e.container,a=e.disablePortal,u=void 0!==a&&a,l=e.onRendered,s=r.useState(null),c=s[0],f=s[1],d=R(r.isValidElement(n)?n.ref:null,t);return pe((function(){u||f(function(e){return e="function"==typeof e?e():e,i.findDOMNode(e)}(o)||document.body)}),[o,u]),pe((function(){if(c&&!u)return T(t,c),function(){T(t,null)}}),[t,c,u]),pe((function(){l&&(c||u)&&l()}),[l,c,u]),u?r.isValidElement(n)?r.cloneElement(n,{ref:d}):n:c?i.createPortal(n,c):c}));function ve(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r),t.apply(this,r)}}),(function(){}))}var ye=n(61);var me=n(39);function we(e){var t,n=he(e);return n.body===e?(t=n,he(t).defaultView||window).innerWidth>n.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function be(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function _e(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function Ce(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4?arguments[4]:void 0,i=[t,n].concat(Object(U.a)(r)),a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===i.indexOf(e)&&-1===a.indexOf(e.tagName)&&be(e,o)}))}function Ee(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function Ae(e,t){var n,r=[],o=[],i=e.container;if(!t.disableScrollLock){if(we(i)){var a=function(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}();r.push({value:i.style.paddingRight,key:"padding-right",el:i}),i.style["padding-right"]="".concat(_e(i)+a,"px"),n=he(i).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){o.push(e.style.paddingRight),e.style.paddingRight="".concat(_e(e)+a,"px")}))}var u=i.parentElement,l="HTML"===u.nodeName&&"scroll"===window.getComputedStyle(u)["overflow-y"]?u:i;r.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){o[t]?e.style.paddingRight=o[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var Ie=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modals=[],this.containers=[]}return Object(me.a)(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&be(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Ce(t,e.mountNode,e.modalRef,r,!0);var o=Ee(this.containers,(function(e){return e.container===t}));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=Ee(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=Ae(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=Ee(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&be(e.modalRef,!0),Ce(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var o=r.modals[r.modals.length-1];o.modalRef&&be(o.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();var Se=function(e){var t=e.children,n=e.disableAutoFocus,o=void 0!==n&&n,a=e.disableEnforceFocus,u=void 0!==a&&a,l=e.disableRestoreFocus,s=void 0!==l&&l,c=e.getDoc,f=e.isEnabled,d=e.open,h=r.useRef(),p=r.useRef(null),g=r.useRef(null),v=r.useRef(),y=r.useRef(null),m=r.useCallback((function(e){y.current=i.findDOMNode(e)}),[]),w=R(t.ref,m),b=r.useRef();return r.useEffect((function(){b.current=d}),[d]),!b.current&&d&&"undefined"!=typeof window&&(v.current=c().activeElement),r.useEffect((function(){if(d){var e=he(y.current);o||!y.current||y.current.contains(e.activeElement)||(y.current.hasAttribute("tabIndex")||y.current.setAttribute("tabIndex",-1),y.current.focus());var t=function(){e.hasFocus()&&!u&&f()&&!h.current?y.current&&!y.current.contains(e.activeElement)&&y.current.focus():h.current=!1},n=function(t){!u&&f()&&9===t.keyCode&&e.activeElement===y.current&&(h.current=!0,t.shiftKey?g.current.focus():p.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var r=setInterval((function(){t()}),50);return function(){clearInterval(r),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),s||(v.current&&v.current.focus&&v.current.focus(),v.current=null)}}}),[o,u,s,f,d]),r.createElement(r.Fragment,null,r.createElement("div",{tabIndex:0,ref:p,"data-test":"sentinelStart"}),r.cloneElement(t,{ref:w}),r.createElement("div",{tabIndex:0,ref:g,"data-test":"sentinelEnd"}))},Oe={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},Te=r.forwardRef((function(e,t){var n=e.invisible,o=void 0!==n&&n,i=e.open,a=Object(A.a)(e,["invisible","open"]);return i?r.createElement("div",Object(l.a)({"aria-hidden":!0,ref:t},a,{style:Object(l.a)({},Oe.root,o?Oe.invisible:{},a.style)})):null}));var Re=new Ie,Ne=r.forwardRef((function(e,t){var n=Object(h.a)(),o=Object(de.a)({name:"MuiModal",props:Object(l.a)({},e),theme:n}),a=o.BackdropComponent,u=void 0===a?Te:a,s=o.BackdropProps,c=o.children,f=o.closeAfterTransition,d=void 0!==f&&f,p=o.container,g=o.disableAutoFocus,v=void 0!==g&&g,y=o.disableBackdropClick,m=void 0!==y&&y,w=o.disableEnforceFocus,b=void 0!==w&&w,_=o.disableEscapeKeyDown,C=void 0!==_&&_,E=o.disablePortal,I=void 0!==E&&E,S=o.disableRestoreFocus,O=void 0!==S&&S,T=o.disableScrollLock,N=void 0!==T&&T,P=o.hideBackdrop,x=void 0!==P&&P,D=o.keepMounted,k=void 0!==D&&D,B=o.manager,L=void 0===B?Re:B,j=o.onBackdropClick,F=o.onClose,V=o.onEscapeKeyDown,z=o.onRendered,U=o.open,W=Object(A.a)(o,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),H=r.useState(!0),G=H[0],Z=H[1],X=r.useRef({}),Y=r.useRef(null),K=r.useRef(null),Q=R(K,t),q=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(o),J=function(){return he(Y.current)},$=function(){return X.current.modalRef=K.current,X.current.mountNode=Y.current,X.current},ee=function(){L.mount($(),{disableScrollLock:N}),K.current.scrollTop=0},te=M((function(){var e=function(e){return e="function"==typeof e?e():e,i.findDOMNode(e)}(p)||J().body;L.add($(),e),K.current&&ee()})),ne=r.useCallback((function(){return L.isTopModal($())}),[L]),re=M((function(e){Y.current=e,e&&(z&&z(),U&&ne()?ee():be(K.current,!0))})),oe=r.useCallback((function(){L.remove($())}),[L]);if(r.useEffect((function(){return function(){oe()}}),[oe]),r.useEffect((function(){U?te():q&&d||oe()}),[U,oe,q,d,te]),!k&&!U&&(!q||G))return null;var ie=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:ye.a}),ae={};return void 0===c.props.tabIndex&&(ae.tabIndex=c.props.tabIndex||"-1"),q&&(ae.onEnter=ve((function(){Z(!1)}),c.props.onEnter),ae.onExited=ve((function(){Z(!0),d&&oe()}),c.props.onExited)),r.createElement(ge,{ref:re,container:p,disablePortal:I},r.createElement("div",Object(l.a)({ref:Q,onKeyDown:function(e){"Escape"===e.key&&ne()&&(V&&V(e),C||(e.stopPropagation(),F&&F(e,"escapeKeyDown")))},role:"presentation"},W,{style:Object(l.a)({},ie.root,!U&&G?ie.hidden:{},W.style)}),x?null:r.createElement(u,Object(l.a)({open:U,onClick:function(e){e.target===e.currentTarget&&(j&&j(e),!m&&F&&F(e,"backdropClick"))}},s)),r.createElement(Se,{disableEnforceFocus:b,disableAutoFocus:v,disableRestoreFocus:O,getDoc:J,isEnabled:ne,open:U},r.cloneElement(c,ae))))})),Me=n(62),Pe=!1,xe=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o="exited",r.appearStatus="entering"):o="entered":o=t.unmountOnExit||t.mountOnEnter?"unmounted":"exited",r.state={status:o},r.nextCallback=null,r}Object(G.a)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&"unmounted"===t.status?{status:"exited"}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?"entering"!==n&&"entered"!==n&&(t="entering"):"entering"!==n&&"entered"!==n||(t="exiting")}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),"entering"===t?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[a.a.findDOMNode(this),r],i=o[0],u=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||Pe?this.safeSetState({status:"entered"},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,u),this.safeSetState({status:"entering"},(function(){t.props.onEntering(i,u),t.onTransitionEnd(s,(function(){t.safeSetState({status:"entered"},(function(){t.props.onEntered(i,u)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:a.a.findDOMNode(this);t&&!Pe?(this.props.onExit(r),this.safeSetState({status:"exiting"},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:"exited"},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:"exited"},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:a.a.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],u=o[1];this.props.addEndListener(i,u)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if("unmounted"===e)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,Object(W.a)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return o.a.createElement(Z.Provider,{value:null},"function"==typeof n?n(e,r):o.a.cloneElement(o.a.Children.only(n),r))},t}(o.a.Component);function De(){}xe.contextType=Z,xe.propTypes={},xe.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:De,onEntering:De,onEntered:De,onExit:De,onExiting:De,onExited:De},xe.UNMOUNTED="unmounted",xe.EXITED="exited",xe.ENTERING="entering",xe.ENTERED="entered",xe.EXITING="exiting";var ke=xe,Be=n(30);function Le(e,t){var n=e.timeout,r=e.style,o=void 0===r?{}:r;return{duration:o.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:o.transitionDelay}}var je={entering:{opacity:1},entered:{opacity:1}},Fe={enter:Be.b.enteringScreen,exit:Be.b.leavingScreen},Ve=r.forwardRef((function(e,t){var n=e.children,o=e.disableStrictModeCompat,i=void 0!==o&&o,a=e.in,u=e.onEnter,s=e.onEntered,f=e.onEntering,d=e.onExit,p=e.onExited,g=e.onExiting,v=e.style,y=e.TransitionComponent,m=void 0===y?ke:y,w=e.timeout,b=void 0===w?Fe:w,_=Object(A.a)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","TransitionComponent","timeout"]),C=Object(h.a)()||c.a,E=C.unstable_strictMode&&!i,I=r.useRef(null),S=R(n.ref,t),O=R(E?I:void 0,S),T=function(e){return function(t,n){if(e){var r=E?[I.current,t]:[t,n],o=Object(Me.a)(r,2),i=o[0],a=o[1];void 0===a?e(i):e(i,a)}}},N=T(f),M=T((function(e,t){!function(e){e.scrollTop}(e);var n=Le({style:v,timeout:b},{mode:"enter"});e.style.webkitTransition=C.transitions.create("opacity",n),e.style.transition=C.transitions.create("opacity",n),u&&u(e,t)})),P=T(s),x=T(g),D=T((function(e){var t=Le({style:v,timeout:b},{mode:"exit"});e.style.webkitTransition=C.transitions.create("opacity",t),e.style.transition=C.transitions.create("opacity",t),d&&d(e)})),k=T(p);return r.createElement(m,Object(l.a)({appear:!0,in:a,nodeRef:E?I:void 0,onEnter:M,onEntered:P,onEntering:N,onExit:D,onExited:k,onExiting:x,timeout:b},_),(function(e,t){return r.cloneElement(n,Object(l.a)({style:Object(l.a)({opacity:0,visibility:"exited"!==e||a?void 0:"hidden"},je[e],v,n.props.style),ref:O},t))}))})),ze=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.className,a=e.invisible,u=void 0!==a&&a,s=e.open,c=e.transitionDuration,f=e.TransitionComponent,d=void 0===f?Ve:f,h=Object(A.a)(e,["children","classes","className","invisible","open","transitionDuration","TransitionComponent"]);return r.createElement(d,Object(l.a)({in:s,timeout:c},h),r.createElement("div",{className:Object(I.a)(o.root,i,u&&o.invisible),"aria-hidden":!0,ref:t},n))})),Ue=Object(S.a)({root:{zIndex:-1,position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},{name:"MuiBackdrop"})(ze),We=r.forwardRef((function(e,t){var n=e.classes,o=e.className,i=e.component,a=void 0===i?"div":i,u=e.square,s=void 0!==u&&u,c=e.elevation,f=void 0===c?1:c,d=e.variant,h=void 0===d?"elevation":d,p=Object(A.a)(e,["classes","className","component","square","elevation","variant"]);return r.createElement(a,Object(l.a)({className:Object(I.a)(n.root,o,"outlined"===h?n.outlined:n["elevation".concat(f)],!s&&n.rounded),ref:t},p))})),He=Object(S.a)((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),Object(l.a)({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(We),Ge={enter:Be.b.enteringScreen,exit:Be.b.leavingScreen},Ze=r.forwardRef((function(e,t){var n=e.BackdropProps,o=e.children,i=e.classes,a=e.className,u=e.disableBackdropClick,s=void 0!==u&&u,c=e.disableEscapeKeyDown,f=void 0!==c&&c,d=e.fullScreen,h=void 0!==d&&d,p=e.fullWidth,g=void 0!==p&&p,v=e.maxWidth,y=void 0===v?"sm":v,m=e.onBackdropClick,w=e.onClose,b=e.onEnter,_=e.onEntered,C=e.onEntering,E=e.onEscapeKeyDown,S=e.onExit,O=e.onExited,T=e.onExiting,R=e.open,N=e.PaperComponent,M=void 0===N?He:N,P=e.PaperProps,x=void 0===P?{}:P,D=e.scroll,k=void 0===D?"paper":D,B=e.TransitionComponent,L=void 0===B?Ve:B,j=e.transitionDuration,F=void 0===j?Ge:j,V=e.TransitionProps,z=e["aria-describedby"],U=e["aria-labelledby"],W=Object(A.a)(e,["BackdropProps","children","classes","className","disableBackdropClick","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","onEnter","onEntered","onEntering","onEscapeKeyDown","onExit","onExited","onExiting","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps","aria-describedby","aria-labelledby"]),H=r.useRef();return r.createElement(Ne,Object(l.a)({className:Object(I.a)(i.root,a),BackdropComponent:Ue,BackdropProps:Object(l.a)({transitionDuration:F},n),closeAfterTransition:!0,disableBackdropClick:s,disableEscapeKeyDown:f,onEscapeKeyDown:E,onClose:w,open:R,ref:t},W),r.createElement(L,Object(l.a)({appear:!0,in:R,timeout:F,onEnter:b,onEntering:C,onEntered:_,onExit:S,onExiting:T,onExited:O,role:"none presentation"},V),r.createElement("div",{className:Object(I.a)(i.container,i["scroll".concat(Object(ie.a)(k))]),onMouseUp:function(e){e.target===e.currentTarget&&e.target===H.current&&(H.current=null,m&&m(e),!s&&w&&w(e,"backdropClick"))},onMouseDown:function(e){H.current=e.target}},r.createElement(M,Object(l.a)({elevation:24,role:"dialog","aria-describedby":z,"aria-labelledby":U},x,{className:Object(I.a)(i.paper,i["paperScroll".concat(Object(ie.a)(k))],i["paperWidth".concat(Object(ie.a)(String(y)))],x.className,h&&i.paperFullScreen,g&&i.paperFullWidth)}),o))))})),Xe=Object(S.a)((function(e){return{root:{"@media print":{position:"absolute !important"}},scrollPaper:{display:"flex",justifyContent:"center",alignItems:"center"},scrollBody:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}},container:{height:"100%","@media print":{height:"auto"},outline:0},paper:{margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},paperScrollPaper:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},paperScrollBody:{display:"inline-block",verticalAlign:"middle",textAlign:"left"},paperWidthFalse:{maxWidth:"calc(100% - 64px)"},paperWidthXs:{maxWidth:Math.max(e.breakpoints.values.xs,444),"&$paperScrollBody":Object(fe.a)({},e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64),{maxWidth:"calc(100% - 64px)"})},paperWidthSm:{maxWidth:e.breakpoints.values.sm,"&$paperScrollBody":Object(fe.a)({},e.breakpoints.down(e.breakpoints.values.sm+64),{maxWidth:"calc(100% - 64px)"})},paperWidthMd:{maxWidth:e.breakpoints.values.md,"&$paperScrollBody":Object(fe.a)({},e.breakpoints.down(e.breakpoints.values.md+64),{maxWidth:"calc(100% - 64px)"})},paperWidthLg:{maxWidth:e.breakpoints.values.lg,"&$paperScrollBody":Object(fe.a)({},e.breakpoints.down(e.breakpoints.values.lg+64),{maxWidth:"calc(100% - 64px)"})},paperWidthXl:{maxWidth:e.breakpoints.values.xl,"&$paperScrollBody":Object(fe.a)({},e.breakpoints.down(e.breakpoints.values.xl+64),{maxWidth:"calc(100% - 64px)"})},paperFullWidth:{width:"calc(100% - 64px)"},paperFullScreen:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,"&$paperScrollBody":{margin:0,maxWidth:"100%"}}}}),{name:"MuiDialog"})(Ze),Ye={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},Ke=r.forwardRef((function(e,t){var n=e.align,o=void 0===n?"inherit":n,i=e.classes,a=e.className,u=e.color,s=void 0===u?"initial":u,c=e.component,f=e.display,d=void 0===f?"initial":f,h=e.gutterBottom,p=void 0!==h&&h,g=e.noWrap,v=void 0!==g&&g,y=e.paragraph,m=void 0!==y&&y,w=e.variant,b=void 0===w?"body1":w,_=e.variantMapping,C=void 0===_?Ye:_,E=Object(A.a)(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),S=c||(m?"p":C[b]||Ye[b])||"span";return r.createElement(S,Object(l.a)({className:Object(I.a)(i.root,a,"inherit"!==b&&i[b],"initial"!==s&&i["color".concat(Object(ie.a)(s))],v&&i.noWrap,p&&i.gutterBottom,m&&i.paragraph,"inherit"!==o&&i["align".concat(Object(ie.a)(o))],"initial"!==d&&i["display".concat(Object(ie.a)(d))]),ref:t},E))})),Qe=Object(S.a)((function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(Ke),qe=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.className,a=e.disableTypography,u=void 0!==a&&a,s=Object(A.a)(e,["children","classes","className","disableTypography"]);return r.createElement("div",Object(l.a)({className:Object(I.a)(o.root,i),ref:t},s),u?n:r.createElement(Qe,{component:"h2",variant:"h6"},n))})),Je=Object(S.a)({root:{margin:0,padding:"16px 24px",flex:"0 0 auto"}},{name:"MuiDialogTitle"})(qe),$e=r.forwardRef((function(e,t){var n=e.disableSpacing,o=void 0!==n&&n,i=e.classes,a=e.className,u=Object(A.a)(e,["disableSpacing","classes","className"]);return r.createElement("div",Object(l.a)({className:Object(I.a)(i.root,a,!o&&i.spacing),ref:t},u))})),et=Object(S.a)({root:{display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},spacing:{"& > :not(:first-child)":{marginLeft:8}}},{name:"MuiDialogActions"})($e),tt=n(135),nt=n.n(tt),rt=r.forwardRef((function(e,t){var n=e.edge,o=void 0!==n&&n,i=e.children,a=e.classes,u=e.className,s=e.color,c=void 0===s?"default":s,f=e.disabled,d=void 0!==f&&f,h=e.disableFocusRipple,p=void 0!==h&&h,g=e.size,v=void 0===g?"medium":g,y=Object(A.a)(e,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return r.createElement(oe,Object(l.a)({className:Object(I.a)(a.root,u,"default"!==c&&a["color".concat(Object(ie.a)(c))],d&&a.disabled,"small"===v&&a["size".concat(Object(ie.a)(v))],{start:a.edgeStart,end:a.edgeEnd}[o]),centerRipple:!0,focusRipple:!p,disabled:d,ref:t},y),r.createElement("span",{className:a.label},i))})),ot=Object(S.a)((function(e){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:Object(O.b)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:e.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:Object(O.b)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Object(O.b)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:e.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}}),{name:"MuiIconButton"})(rt),it=(n(148),Object(S.a)((function(e){return{root:{borderBottom:"1px solid "+e.palette.divider,margin:0,display:"flex",alignItems:"center",zIndex:1,width:"100%",color:"white",background:"rgba(0, 0, 0, 1)"},typography:{width:"100%"},closeButton:{color:e.palette.grey[500],marginRight:"2em"}}}))((function(e){var t=e.children,n=e.classes,r=e.onClose;return o.a.createElement(Je,{disableTypography:!0,className:n.root+" dialogbar dialog-title"},o.a.createElement(Qe,{className:n.typography,variant:"h6"},t),r?o.a.createElement(ot,{"aria-label":"Close",className:n.closeButton,onClick:r},o.a.createElement(nt.a,null)):null)}))),at=Object(S.a)((function(e){return{root:{borderTop:"1px solid "+e.palette.divider,margin:0,justifyContent:"space-between",bottom:0,width:"100%"}}}))(et),ut=n(85),lt=(n(237),new ut.BrowserQRCodeReader);function st(e){var t,n,i=null;return Object(r.useEffect)((function(){!function(r){try{null!=i&&((i=i).srcObject=r,i.addEventListener("loadedmetadata",(function(){null!=i&&(n=t.getContext("2d"),function r(){setTimeout((function(){if(null!=i&&null!=n&&"function"==typeof n.drawImage)try{n.drawImage(i,0,0),lt.decodeFromImage(void 0,t.toDataURL("image/png")).then((function(t){e.onFetchCode(t.text)})).catch((function(){})),r()}catch(e){console.log(e)}}),500)}())}),!1),i.play())}catch(e){console.error(e)}}(e.mediaStream)})),o.a.createElement("div",{className:"qrscanner"},o.a.createElement("div",{className:"ocrloader"},o.a.createElement("em",null),o.a.createElement("span",null)),o.a.createElement("video",{ref:function(e){return i=e}}),o.a.createElement("canvas",{style:{display:"none"},ref:function(e){return t=e},width:640,height:480}))}var ct=r.createContext({}),ft=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.className,a=e.component,u=void 0===a?"ul":a,s=e.dense,c=void 0!==s&&s,f=e.disablePadding,d=void 0!==f&&f,h=e.subheader,p=Object(A.a)(e,["children","classes","className","component","dense","disablePadding","subheader"]),g=r.useMemo((function(){return{dense:c}}),[c]);return r.createElement(ct.Provider,{value:g},r.createElement(u,Object(l.a)({className:Object(I.a)(o.root,i,c&&o.dense,!d&&o.padding,h&&o.subheader),ref:t},p),h,n))})),dt=Object(S.a)({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(ft);var ht="undefined"==typeof window?r.useEffect:r.useLayoutEffect,pt=r.forwardRef((function(e,t){var n=e.alignItems,o=void 0===n?"center":n,a=e.autoFocus,u=void 0!==a&&a,s=e.button,c=void 0!==s&&s,f=e.children,d=e.classes,h=e.className,p=e.component,g=e.ContainerComponent,v=void 0===g?"li":g,y=e.ContainerProps,m=(y=void 0===y?{}:y).className,w=Object(A.a)(y,["className"]),b=e.dense,_=void 0!==b&&b,C=e.disabled,E=void 0!==C&&C,S=e.disableGutters,O=void 0!==S&&S,T=e.divider,N=void 0!==T&&T,M=e.focusVisibleClassName,P=e.selected,x=void 0!==P&&P,D=Object(A.a)(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),k=r.useContext(ct),B={dense:_||k.dense||!1,alignItems:o},L=r.useRef(null);ht((function(){u&&L.current&&L.current.focus()}),[u]);var j,F,V=r.Children.toArray(f),z=V.length&&(j=V[V.length-1],F=["ListItemSecondaryAction"],r.isValidElement(j)&&-1!==F.indexOf(j.type.muiName)),U=R(r.useCallback((function(e){L.current=i.findDOMNode(e)}),[]),t),W=Object(l.a)({className:Object(I.a)(d.root,h,B.dense&&d.dense,!O&&d.gutters,N&&d.divider,E&&d.disabled,c&&d.button,"center"!==o&&d.alignItemsFlexStart,z&&d.secondaryAction,x&&d.selected),disabled:E},D),H=p||"li";return c&&(W.component=p||"div",W.focusVisibleClassName=Object(I.a)(d.focusVisible,M),H=oe),z?(H=W.component||p?H:"div","li"===v&&("li"===H?H="div":"li"===W.component&&(W.component="div")),r.createElement(ct.Provider,{value:B},r.createElement(v,Object(l.a)({className:Object(I.a)(d.container,m),ref:U},w),r.createElement(H,W,V),V.pop()))):r.createElement(ct.Provider,{value:B},r.createElement(H,Object(l.a)({ref:U},W),V))})),gt=Object(S.a)((function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}}),{name:"MuiListItem"})(pt),vt=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.className,a=e.disableTypography,u=void 0!==a&&a,s=e.inset,c=void 0!==s&&s,f=e.primary,d=e.primaryTypographyProps,h=e.secondary,p=e.secondaryTypographyProps,g=Object(A.a)(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),v=r.useContext(ct).dense,y=null!=f?f:n;null==y||y.type===Qe||u||(y=r.createElement(Qe,Object(l.a)({variant:v?"body2":"body1",className:o.primary,component:"span",display:"block"},d),y));var m=h;return null==m||m.type===Qe||u||(m=r.createElement(Qe,Object(l.a)({variant:"body2",className:o.secondary,color:"textSecondary",display:"block"},p),m)),r.createElement("div",Object(l.a)({className:Object(I.a)(o.root,i,v&&o.dense,c&&o.inset,y&&m&&o.multiline),ref:t},g),y,m)})),yt=Object(S.a)({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(vt);function mt(e){var t=Object(r.useState)(e.open),n=t[0],i=t[1],a=Object(r.useState)(e.options),u=a[0],l=a[1];function s(){i(!1)}return Object(r.useEffect)((function(){return i(e.open)}),[e.open]),Object(r.useEffect)((function(){return l(e.options)}),[e.options]),o.a.createElement(Xe,{open:n,onClose:s},o.a.createElement(Je,null,e.title),o.a.createElement("div",null,o.a.createElement(dt,null,u.map((function(t,n){return o.a.createElement(gt,{button:!0,selected:t.selected,onClick:function(){t.selected||function(t){e.onSelect(t),s()}(t)},key:n},o.a.createElement(yt,{primary:t.title}))})))))}var wt=f({root:{width:500},content:{position:"relative",display:"flex",height:"100%",alignItems:"center",overflow:"hidden",justifyContent:"center"},dialogColor:{color:"white !important"},dialogActions:{minHeight:"64px",zIndex:1,background:"rgba(0, 0, 0, 1)",justifyContent:"center !important",position:"fixed"}});function bt(e){var t=wt(),n=e.videoStream.getDevices().length,i="",a=Object(r.useState)(e.videoStream.getCurrentStream()),u=a[0],l=a[1],s=Object(r.useState)(!1),c=s[0],f=s[1];function d(t){void 0===t&&(t=null),e.onClose(t)}function h(t){i=t,e.videoStream.getStreamByDeviceId(i).then((function(e){return l(e)}))}var p=null;p=o.a.createElement(at,{className:t.dialogActions},o.a.createElement(ue,{onClick:function(){switch(n){case 2:h(e.videoStream.getDevices([i])[0].id);break;default:f(!0)}},color:"primary"},o.a.createElement(ce,{fontSize:"large",className:t.dialogColor})));var g=null;if(c){var v=e.videoStream.getDevices().map((function(e){return Object.assign(e,{selected:i===e.id})}));g=o.a.createElement(mt,{open:!0,title:b.getTitleSelectDevice(),options:v,onSelect:function(e){return h(e.id)}})}return o.a.createElement(Xe,{fullScreen:!0,open:!0,onClose:function(){return d()}},o.a.createElement(it,{className:t.dialogColor,onClose:function(){return d()}},b.getTitleScanQRCode()),o.a.createElement("div",{className:t.content},o.a.createElement(st,{mediaStream:u,onFetchCode:d})),g,p)}var _t=se(o.a.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),Ct=se(o.a.createElement("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})),Et=r.forwardRef((function(e,t){var n=e.classes,o=e.className,i=e.dividers,a=void 0!==i&&i,u=Object(A.a)(e,["classes","className","dividers"]);return r.createElement("div",Object(l.a)({className:Object(I.a)(n.root,o,a&&n.dividers),ref:t},u))})),At=Object(S.a)((function(e){return{root:{flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"8px 24px","&:first-child":{paddingTop:20}},dividers:{padding:"16px 24px",borderTop:"1px solid ".concat(e.palette.divider),borderBottom:"1px solid ".concat(e.palette.divider)}}}),{name:"MuiDialogContent"})(Et),It=r.forwardRef((function(e,t){return r.createElement(Qe,Object(l.a)({component:"p",variant:"body1",color:"textSecondary",ref:t},e))})),St=Object(S.a)({root:{marginBottom:12}},{name:"MuiDialogContentText"})(It);function Ot(e){var t=Object(r.useState)(!0),n=t[0],i=t[1],a=Object(r.useState)(e.title),u=a[0],l=a[1],s=Object(r.useState)(e.text),c=s[0],f=s[1];function d(t){void 0===t&&(t=!1),i(!1),e.onClose(t)}return Object(r.useEffect)((function(){return l(e.title)}),[e.title]),Object(r.useEffect)((function(){return f(e.text)}),[e.text]),o.a.createElement(Xe,{open:n,onClose:function(){return d()},maxWidth:"md"},o.a.createElement(Je,null,u),o.a.createElement(At,null,o.a.createElement(St,null,c)),o.a.createElement(et,null,o.a.createElement(ue,{onClick:function(){return d()}},o.a.createElement(_t,{fontSize:"large"})),o.a.createElement(ue,{onClick:function(){return d(!0)}},o.a.createElement(Ct,{fontSize:"large"}))))}var Tt=f({root:{"> .MuiGrid-container-120 .MuiGrid-item-121":{display:"flex",justifyContent:"center"}}});function Rt(e){var t=Tt(),n=Object(r.useState)(!0),i=n[0],a=n[1],u=Object(r.useState)(e.title),l=u[0],s=u[1],c=Object(r.useState)(e.text),f=c[0],d=c[1];function h(){a(!1)}return Object(r.useEffect)((function(){return s(e.title)}),[e.title]),Object(r.useEffect)((function(){return d(e.text)}),[e.text]),o.a.createElement(Xe,{open:i,onClose:h,disableBackdropClick:!0,disableEscapeKeyDown:!0,className:t.root},o.a.createElement(Je,null,l),o.a.createElement(At,null,o.a.createElement(St,null,f)),o.a.createElement(et,null,o.a.createElement(ue,{onClick:h,color:"primary"}," ",o.a.createElement(Ct,{fontSize:"large"}))))}var Nt=function(){function e(){}return e.isMobile=function(){return/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)},e}(),Mt=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function u(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}l((r=r.apply(e,t||[])).next())}))},Pt=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}},xt=function(){function e(){this.DEFAULT_MEDIATRACK_CONSTRAINTS={facingMode:"user"},this.stream=null,this.currentMediaTrackConstraints=null,this.devices=[]}return e.getInstance=function(){var t=this;return new Promise((function(n,r){return Mt(t,void 0,void 0,(function(){var t;return Pt(this,(function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),null!==e.currentInstance?[3,2]:(e.currentInstance=new e,[4,e.currentInstance.setup()]);case 1:o.sent(),o.label=2;case 2:return n(e.currentInstance),[3,4];case 3:return t=o.sent(),e.destory(),r(t),[3,4];case 4:return[2]}}))}))}))},e.destory=function(){null!=e.currentInstance&&e.currentInstance.close(),e.currentInstance=null},e.prototype.setup=function(){var e=this;return new Promise((function(t,n){return Mt(e,void 0,void 0,(function(){var e,r,o;return Pt(this,(function(i){switch(i.label){case 0:return i.trys.push([0,3,,4]),Nt.isMobile()&&(this.DEFAULT_MEDIATRACK_CONSTRAINTS={facingMode:{exact:"environment"}}),e=this,[4,this.getMediaDeviceInfo()];case 1:return e.devices=i.sent().map((function(e){return{label:e.label.replace(/ (\(.*?\))/g,""),id:e.deviceId}})),r=this,[4,this.getMediaStreamByConstraints(this.DEFAULT_MEDIATRACK_CONSTRAINTS)];case 2:if(r.stream=i.sent(),null==this.stream)throw new Error("Stream are null");return t(),[3,4];case 3:return o=i.sent(),n(o),[3,4];case 4:return[2]}}))}))}))},e.prototype.getSortAndFilterMediaDeviceInfoList=function(e){return e.filter((function(e){return"videoinput"===e.kind})).sort((function(e,t){return e.label.includes("back")&&t.label.includes("front")?-1:e.label.includes("front")&&t.label.includes("back")?1:0}))},e.prototype.getMediaDeviceInfo=function(){var e=this;return new Promise((function(t,n){return Mt(e,void 0,void 0,(function(){var e,r;return Pt(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,navigator.mediaDevices.enumerateDevices()];case 1:return e=o.sent(),t(this.getSortAndFilterMediaDeviceInfoList(e)),[3,3];case 2:return r=o.sent(),n(r),[3,3];case 3:return[2]}}))}))}))},e.prototype.close=function(){null!=this.stream&&(this.stream.getTracks().forEach((function(e){return e.stop()})),this.stream=null)},e.prototype.getMediaStreamByConstraints=function(e){var t=this;return new Promise((function(n,r){return Mt(t,void 0,void 0,(function(){var t,o;return Pt(this,(function(i){switch(i.label){case 0:return null==this.stream||this.currentMediaTrackConstraints!==e?[3,1]:(n(this.stream),[3,4]);case 1:return i.trys.push([1,3,,4]),null!=this.stream&&this.currentMediaTrackConstraints!==e&&this.close(),t=this,[4,navigator.mediaDevices.getUserMedia({video:e})];case 2:return t.stream=i.sent(),this.currentMediaTrackConstraints=e,n(this.stream),[3,4];case 3:return o=i.sent(),r(o),[3,4];case 4:return[2]}}))}))}))},e.prototype.getDevices=function(e){return void 0===e&&(e=[]),this.devices.filter((function(t){return!e.indexOf(t.id)}))},e.prototype.getCurrentStream=function(){return this.stream},e.prototype.getStreamByDeviceId=function(e){var t=this;return new Promise((function(n,r){return Mt(t,void 0,void 0,(function(){var t,o,i;return Pt(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),t={deviceId:{exact:e}},o=this,[4,this.getMediaStreamByConstraints(t)];case 1:return o.stream=a.sent(),n(this.stream),[3,3];case 2:return i=a.sent(),r(i),[3,3];case 3:return[2]}}))}))}))},e.currentInstance=null,e}(),Dt=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function u(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}l((r=r.apply(e,t||[])).next())}))},kt=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}},Bt=Object(u.a)({palette:{primary:y.a,secondary:w.a}}),Lt=f({root:{width:500},img:{width:"4em"}});var jt=document.getElementById("qrscannerredirect");b.init("qrscannerredirect"),i.render(r.createElement((function(){var e=Lt(),t=Object(r.useState)(null),n=t[0],i=t[1],a=Object(r.useState)(null),u=a[0],l=a[1],s=null;function c(){null===n&&(l(o.a.createElement(Xe,{open:!0,disableBackdropClick:!0,disableEscapeKeyDown:!0},o.a.createElement(Je,null,b.getTitleWaitPermission()))),xt.getInstance().then((function(e){l(null),i(o.a.createElement(bt,{videoStream:e,onClose:f}))})).catch((function(e){l(o.a.createElement(Rt,{title:b.getTitlePermissonFailed(),text:b.getContentPermissonFailed(),onClose:function(){return l(null)}}))})))}function f(e){if(void 0===e&&(e=null),null!=e){if(_.validURL(e)){var t=b.getContentRedirect().replace("%URL",e);l(o.a.createElement(Ot,{title:b.getTitleRedirect(),text:t,onClose:function(t){return function(e,t){return Dt(this,void 0,void 0,(function(){return kt(this,(function(n){return e||b.isForce()?window.location.href=t:l(null),i(null),xt.destory(),[2]}))}))}(t,e)}}))}}else xt.destory(),i(null)}return b.isButtonDisabled()||(s=o.a.createElement(ue,{onClick:function(){return c()}},o.a.createElement("img",{src:E.a,className:e.img,alt:"qrcode"}))),window.qrscannerredirect.open=function(){return c()},o.a.createElement(g,{theme:Bt},u,s,n)}),null),jt)},,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(1),o=n(45);function i(e){return e&&"object"===Object(o.a)(e)&&e.constructor===Object}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},o=n.clone?Object(r.a)({},e):e;return i(e)&&i(t)&&Object.keys(t).forEach((function(r){"__proto__"!==r&&(i(t[r])&&r in e?o[r]=a(e[r],t[r],n):o[r]=t[r])})),o}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),o=n.n(r),i=n(58);function a(){return o.a.useContext(i.a)}},function(e,t,n){"use strict";function r(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var o,i=t.props[n];for(o in i)void 0===r[o]&&(r[o]=i[o]);return r}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return dn}));var r=n(2),o=n(1),i=n(0),a=n.n(i),u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l="object"===("undefined"==typeof window?"undefined":u(window))&&"object"===("undefined"==typeof document?"undefined":u(document))&&9===document.nodeType;var s=n(39),c=n(36),f=n(46),d=n(28),h={}.constructor;function p(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(p);if(e.constructor!==h)return e;var t={};for(var n in e)t[n]=p(e[n]);return t}function g(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=p(t),i=r.plugins.onCreateRule(e,o,n);return i||(e[0],null)}var v=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n};function y(e,t){if(void 0===t&&(t=!1),!Array.isArray(e))return e;var n="";if(Array.isArray(e[0]))for(var r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=", "),n+=v(e[r]," ");else n=v(e,", ");return t||"!important"!==e[e.length-1]||(n+=" !important"),n}function m(e,t){for(var n="",r=0;r<t;r++)n+="  ";return n+e}function w(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var o=n.indent,i=void 0===o?0:o,a=t.fallbacks;if(e&&i++,a)if(Array.isArray(a))for(var u=0;u<a.length;u++){var l=a[u];for(var s in l){var c=l[s];null!=c&&(r&&(r+="\n"),r+=""+m(s+": "+y(c)+";",i))}}else for(var f in a){var d=a[f];null!=d&&(r&&(r+="\n"),r+=""+m(f+": "+y(d)+";",i))}for(var h in t){var p=t[h];null!=p&&"fallbacks"!==h&&(r&&(r+="\n"),r+=""+m(h+": "+y(p)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r="\n"+r+"\n"),m(e+" {"+r,--i)+m("}",i)):r}var b=/([[\].#*$><+~=|^:(),"'`\s])/g,_="undefined"!=typeof CSS&&CSS.escape,C=function(e){return _?_(e):e.replace(b,"\\$1")},E=function(){function e(e,t,n){this.type="style",this.key=void 0,this.isProcessed=!1,this.style=void 0,this.renderer=void 0,this.renderable=void 0,this.options=void 0;var r=n.sheet,o=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var o=t;n&&!1===n.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!r)return this;var u=i&&a;if(u?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return u?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),A=function(e){function t(t,n,r){var o;(o=e.call(this,t,n,r)||this).selectorText=void 0,o.id=void 0,o.renderable=void 0;var i=r.selector,a=r.scoped,u=r.sheet,l=r.generateId;return i?o.selectorText=i:!1!==a&&(o.id=l(Object(f.a)(Object(f.a)(o)),u),o.selectorText="."+C(o.id)),o}Object(c.a)(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=y(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Object(o.a)({},e,{allowEmpty:!0}):e;return w(this.selectorText,this.style,n)},Object(s.a)(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(E),I={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new A(e,t,n)}},S={indent:1,children:!0},O=/@([\w-]+)/,T=function(){function e(e,t,n){this.type="conditional",this.at=void 0,this.key=void 0,this.query=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e,this.query=n.name;var r=e.match(O);for(var i in this.at=r?r[1]:"unknown",this.options=n,this.rules=new q(Object(o.a)({},n,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.toString=function(e){if(void 0===e&&(e=S),null==e.indent&&(e.indent=S.indent),null==e.children&&(e.children=S.children),!1===e.children)return this.query+" {}";var t=this.rules.toString(e);return t?this.query+" {\n"+t+"\n}":""},e}(),R=/@media|@supports\s+/,N={onCreateRule:function(e,t,n){return R.test(e)?new T(e,t,n):null}},M={indent:1,children:!0},P=/@keyframes\s+([\w-]+)/,x=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.key=void 0,this.name=void 0,this.id=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0;var r=e.match(P);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var i=n.scoped,a=n.sheet,u=n.generateId;for(var l in this.id=!1===i?this.name:C(u(this,a)),this.rules=new q(Object(o.a)({},n,{parent:this})),t)this.rules.add(l,t[l],Object(o.a)({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){if(void 0===e&&(e=M),null==e.indent&&(e.indent=M.indent),null==e.children&&(e.children=M.children),!1===e.children)return this.at+" "+this.id+" {}";var t=this.rules.toString(e);return t&&(t="\n"+t+"\n"),this.at+" "+this.id+" {"+t+"}"},e}(),D=/@keyframes\s+/,k=/\$([\w-]+)/g,B=function(e,t){return"string"==typeof e?e.replace(k,(function(e,n){return n in t?t[n]:e})):e},L=function(e,t,n){var r=e[t],o=B(r,n);o!==r&&(e[t]=o)},j={onCreateRule:function(e,t,n){return"string"==typeof e&&D.test(e)?new x(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&L(e,"animation-name",n.keyframes),"animation"in e&&L(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return B(e,r.keyframes);default:return e}}},F=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).renderable=void 0,t}return Object(c.a)(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Object(o.a)({},e,{allowEmpty:!0}):e;return w(this.key,this.style,n)},t}(E),V={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new F(e,t,n):null}},z=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.key=void 0,this.style=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.style)){for(var t="",n=0;n<this.style.length;n++)t+=w(this.at,this.style[n]),this.style[n+1]&&(t+="\n");return t}return w(this.at,this.style,e)},e}(),U=/@font-face/,W={onCreateRule:function(e,t,n){return U.test(e)?new z(e,t,n):null}},H=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.key=void 0,this.style=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return w(this.key,this.style,e)},e}(),G={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new H(e,t,n):null}},Z=function(){function e(e,t,n){this.type="simple",this.key=void 0,this.value=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),X={"@charset":!0,"@import":!0,"@namespace":!0},Y=[I,N,j,V,W,G,{onCreateRule:function(e,t,n){return e in X?new Z(e,t,n):null}}],K={process:!0},Q={force:!0,process:!0},q=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=void 0,this.classes=void 0,this.keyframes=void 0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,i=r.parent,a=r.sheet,u=r.jss,l=r.Renderer,s=r.generateId,c=r.scoped,f=Object(o.a)({classes:this.classes,parent:i,sheet:a,jss:u,Renderer:l,generateId:s,scoped:c,name:e},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(f.selector="."+C(this.classes[d]));var h=g(d,t,f);if(!h)return null;this.register(h);var p=void 0===f.index?this.index.length:f.index;return this.index.splice(p,0,h),h},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof A?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof x&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof A?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof x&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.map[e],t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=K);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var u=t,l=u.style;if(i.onUpdate(n,t,a,r),r.process&&l&&l!==u.style){for(var s in i.onProcessStyle(u.style,u,a),u.style){var c=u.style[s];c!==l[s]&&u.prop(s,c,Q)}for(var f in l){var d=u.style[f],h=l[f];null==d&&d!==h&&u.prop(f,null,Q)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=0;o<this.index.length;o++){var i=this.index[o].toString(e);(i||r)&&(t&&(t+="\n"),t+=i)}return t},e}(),J=function(){function e(e,t){for(var n in this.options=void 0,this.deployed=void 0,this.attached=void 0,this.rules=void 0,this.renderer=void 0,this.classes=void 0,this.keyframes=void 0,this.queue=void 0,this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=Object(o.a)({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new q(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var o=this.rules.add(e,t,n);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(r?r.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var o=this.addRule(r,e[r],t);o&&n.push(o)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!!t&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),$=function(){function e(){this.plugins={internal:[],external:[]},this.registry=void 0}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var o=this.registry.onCreateRule[r](e,t,n);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,o=0;o<this.registry.onChangeValue.length;o++)r=this.registry.onChangeValue[o](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),ee=new(function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=Object(d.a)(t,["attached"]),o="",i=0;i<this.registry.length;i++){var a=this.registry[i];null!=n&&a.attached!==n||(o&&(o+="\n"),o+=a.toString(r))}return o},Object(s.a)(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}()),te="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),ne="2f1acc6c3a606b082e5eef5e54414ffb";null==te[ne]&&(te[ne]=0);var re=te[ne]++,oe=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var o="",i="";return r&&(r.options.classNamePrefix&&(i=r.options.classNamePrefix),null!=r.options.jss.id&&(o=String(r.options.jss.id))),e.minify?""+(i||"c")+re+o+t:i+n.key+"-"+re+(o?"-"+o:"")+"-"+t}},ie=function(e){var t;return function(){return t||(t=e()),t}};function ae(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}}function ue(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=y(n,!0),"!important"===n[n.length-1]))return e.style.setProperty(t,r,"important"),!0;e.attributeStyleMap?e.attributeStyleMap.set(t,r):e.style.setProperty(t,r)}catch(e){return!1}return!0}function le(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}}function se(e,t){return e.selectorText=t,e.selectorText===t}var ce=ie((function(){return document.querySelector("head")}));function fe(e){var t=ee.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if((n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e))&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var o=function(e){for(var t=ce(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var de=ie((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),he=function(e,t,n){var r=e.cssRules.length;(void 0===n||n>r)&&(n=r);try{if("insertRule"in e)e.insertRule(t,n);else if("appendRule"in e){e.appendRule(t)}}catch(e){return!1}return e.cssRules[n]},pe=function(){function e(e){this.getPropertyValue=ae,this.setProperty=ue,this.removeProperty=le,this.setSelector=se,this.element=void 0,this.sheet=void 0,this.hasInsertedRules=!1,e&&ee.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var i=de();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=fe(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var o=n,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else ce().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){var e=this.element.parentNode;e&&e.removeChild(this.element)},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,o=n;return("conditional"!==e.type&&"keyframes"!==e.type||!1!==(o=he(n,r.toString({children:!1}),t)))&&(this.insertRules(r.rules,o),o)}if(e.renderable&&e.renderable.parentStyleSheet===this.element.sheet)return e.renderable;var i=e.toString();if(!i)return!1;var a=he(n,i,t);return!1!==a&&(this.hasInsertedRules=!0,e.renderable=a,a)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),!0)},t.indexOf=function(e){for(var t=this.element.sheet.cssRules,n=0;n<t.length;n++)if(e===t[n])return n;return-1},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),ge=0,ve=function(){function e(e){this.id=ge++,this.version="10.3.0",this.plugins=new $,this.options={id:{minify:!1},createGenerateId:oe,Renderer:l?pe:null,plugins:[]},this.generateId=oe({minify:!1});for(var t=0;t<Y.length;t++)this.plugins.use(Y[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=Object(o.a)({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!=typeof n&&(n=0===ee.index?0:ee.index+1);var r=new J(e,Object(o.a)({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),ee.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var r=Object(o.a)({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var i=g(e,t,r);return i&&this.plugins.onProcessRule(i),i},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}();var ye="undefined"!=typeof CSS&&CSS&&"number"in CSS,me=function(e){return new ve(e)};
    6060/**
    6161 * A better abstraction over CSS.
  • qr-scanner-redirect/trunk/index.php

    r2331902 r2335437  
    44 * Plugin URI:        https://github.com/aigenseer/qr-scanner-redirect
    55 * Description:       Wordpress web qr-scanner with redirect function
    6  * Version:           1.0.2
     6 * Version:           1.0.3
    77 * Requires at least: 5.2
    88 * Requires PHP:      7.2
Note: See TracChangeset for help on using the changeset viewer.