(this["webpackJsonpgonzo-test-client"]=this["webpackJsonpgonzo-test-client"]||[]).push([[113],{"07l2":function(t,e,r){var n=r("wQnj"),i=r("I0N7");function o(t,e){switch(t=parseFloat(t),e){case 0:return i(t,0,360);case 1:case 2:return i(t,0,100);case 3:return i(t,0,1)}}t.exports=function(t){return n(t).map(o)}},"4JlD":function(t,e,r){"use strict";var n=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,e,r,s){return e=e||"&",r=r||"=",null===t&&(t=void 0),"object"===typeof t?o(a(t),(function(a){var s=encodeURIComponent(n(a))+r;return i(t[a])?o(t[a],(function(t){return s+encodeURIComponent(n(t))})).join(e):s+encodeURIComponent(n(t[a]))})).join(e):s?encodeURIComponent(n(s))+r+encodeURIComponent(n(t)):""};var i=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function o(t,e){if(t.map)return t.map(e);for(var r=[],n=0;n1&&n--,o=6*n<1?e+6*(r-e)*n:2*n<1?r:3*n<2?e+(r-e)*(2/3-n)*6:e,i[u]=255*o;return i}},"6jo/":function(t,e){t.exports=function(t){4!==t.length&&5!==t.length||(t=function(t){for(var e="#",r=1;r=0||(i[r]=t[r]);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var r=0;r>6),e+=String.fromCharCode(128|63&n)):n<55296||n>=57344?(e+=String.fromCharCode(224|n>>12),e+=String.fromCharCode(128|n>>6&63),e+=String.fromCharCode(128|63&n)):(r++,n=65536+((1023&n)<<10|1023&t.charCodeAt(r)),e+=String.fromCharCode(240|n>>18),e+=String.fromCharCode(128|n>>12&63),e+=String.fromCharCode(128|n>>6&63),e+=String.fromCharCode(128|63&n))}return e}var v={size:128,level:"L",bgColor:"#FFFFFF",fgColor:"#000000"},m={value:w.string.isRequired,size:w.number,level:w.oneOf(["L","M","Q","H"]),bgColor:w.string,fgColor:w.string},y=function(t){function e(){var t,r,n;a(this,e);for(var i=arguments.length,o=new Array(i),s=0;s=7&&this.setupTypeNumber(t),null==this.dataCache&&(this.dataCache=h.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,e)},u.setupPositionProbePattern=function(t,e){for(var r=-1;r<=7;r++)if(!(t+r<=-1||this.moduleCount<=t+r))for(var n=-1;n<=7;n++)e+n<=-1||this.moduleCount<=e+n||(this.modules[t+r][e+n]=0<=r&&r<=6&&(0==n||6==n)||0<=n&&n<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=n&&n<=4)},u.getBestMaskPattern=function(){for(var t=0,e=0,r=0;r<8;r++){this.makeImpl(!0,r);var n=a.getLostPoint(this);(0==r||t>n)&&(t=n,e=r)}return e},u.createMovieClip=function(t,e,r){var n=t.createEmptyMovieClip(e,r);this.make();for(var i=0;i>r&1);this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=n}for(r=0;r<18;r++){n=!t&&1==(e>>r&1);this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=n}},u.setupTypeInfo=function(t,e){for(var r=this.errorCorrectLevel<<3|e,n=a.getBCHTypeInfo(r),i=0;i<15;i++){var o=!t&&1==(n>>i&1);i<6?this.modules[i][8]=o:i<8?this.modules[i+1][8]=o:this.modules[this.moduleCount-15+i][8]=o}for(i=0;i<15;i++){o=!t&&1==(n>>i&1);i<8?this.modules[8][this.moduleCount-i-1]=o:i<9?this.modules[8][15-i-1+1]=o:this.modules[8][15-i-1]=o}this.modules[this.moduleCount-8][8]=!t},u.mapData=function(t,e){for(var r=-1,n=this.moduleCount-1,i=7,o=0,s=this.moduleCount-1;s>0;s-=2)for(6==s&&s--;;){for(var h=0;h<2;h++)if(null==this.modules[n][s-h]){var u=!1;o>>i&1)),a.getMask(e,n,s-h)&&(u=!u),this.modules[n][s-h]=u,-1==--i&&(o++,i=7)}if((n+=r)<0||this.moduleCount<=n){n-=r,r=-r;break}}},h.PAD0=236,h.PAD1=17,h.createData=function(t,e,r){for(var n=i.getRSBlocks(t,e),s=new o,u=0;u8*l)throw new Error("code length overflow. ("+s.getLengthInBits()+">"+8*l+")");for(s.getLengthInBits()+4<=8*l&&s.put(0,4);s.getLengthInBits()%8!=0;)s.putBit(!1);for(;!(s.getLengthInBits()>=8*l)&&(s.put(h.PAD0,8),!(s.getLengthInBits()>=8*l));)s.put(h.PAD1,8);return h.createBytes(s,n)},h.createBytes=function(t,e){for(var r=0,n=0,i=0,o=new Array(e.length),h=new Array(e.length),u=0;u=0?d.get(p):0}}var g=0;for(c=0;c=i.length)throw"ArgumentException";return i[t]};var i=[new n(1,0,"M"),new n(0,1,"L"),new n(3,2,"H"),new n(2,3,"Q")],o=[[21522,0],[20773,1],[24188,2],[23371,3],[17913,4],[16590,5],[20375,6],[19104,7],[30660,8],[29427,9],[32170,10],[30877,11],[26159,12],[25368,13],[27713,14],[26998,15],[5769,16],[5054,17],[7399,18],[6608,19],[1890,20],[597,21],[3340,22],[2107,23],[13663,24],[12392,25],[16177,26],[14854,27],[9396,28],[8579,29],[11994,30],[11245,31]],a=[0,1,1,2,1,2,2,3,1,2,2,3,2,3,3,4];function s(t){this.errorCorrectionLevel=n.forBits(t>>3&3),this.dataMask=7&t}function h(t,e){if(e||(e=t),t<1||e<1)throw"Both dimensions must be greater than 0";this.width=t,this.height=e;var r=t>>5;0!=(31&t)&&r++,this.rowSize=r,this.bits=new Array(r*e);for(var n=0;n>5);return 0!=(1&L(this.bits[r],31&t))},h.prototype.set_Renamed=function(t,e){var r=e*this.rowSize+(t>>5);this.bits[r]|=1<<(31&t)},h.prototype.flip=function(t,e){var r=e*this.rowSize+(t>>5);this.bits[r]^=1<<(31&t)},h.prototype.clear=function(){for(var t=this.bits.length,e=0;ethis.height||i>this.width)throw"The region must fit inside the matrix";for(var a=e;a>5)]|=1<<(31&h)},Object.defineProperty(f.prototype,"TotalECCodewords",{get:function(){return this.ecCodewordsPerBlock*this.NumBlocks}}),Object.defineProperty(f.prototype,"NumBlocks",{get:function(){for(var t=0,e=0;e6&&(e.setRegion(t-11,0,3,6),e.setRegion(0,t-11,6,3)),e},l.prototype.getECBlocksForLevel=function(t){return this.ecBlocks[t.ordinal()]},l.VERSION_DECODE_INFO=[31892,34236,39577,42195,48118,51042,55367,58893,63784,68472,70749,76311,79154,84390,87683,92361,96236,102084,102881,110507,110734,117786,119615,126325,127568,133589,136944,141498,145311,150283,152622,158308,161089,167017],l.VERSIONS=[new l(1,[],new f(7,new u(1,19)),new f(10,new u(1,16)),new f(13,new u(1,13)),new f(17,new u(1,9))),new l(2,[6,18],new f(10,new u(1,34)),new f(16,new u(1,28)),new f(22,new u(1,22)),new f(28,new u(1,16))),new l(3,[6,22],new f(15,new u(1,55)),new f(26,new u(1,44)),new f(18,new u(2,17)),new f(22,new u(2,13))),new l(4,[6,26],new f(20,new u(1,80)),new f(18,new u(2,32)),new f(26,new u(2,24)),new f(16,new u(4,9))),new l(5,[6,30],new f(26,new u(1,108)),new f(24,new u(2,43)),new f(18,new u(2,15),new u(2,16)),new f(22,new u(2,11),new u(2,12))),new l(6,[6,34],new f(18,new u(2,68)),new f(16,new u(4,27)),new f(24,new u(4,19)),new f(28,new u(4,15))),new l(7,[6,22,38],new f(20,new u(2,78)),new f(18,new u(4,31)),new f(18,new u(2,14),new u(4,15)),new f(26,new u(4,13),new u(1,14))),new l(8,[6,24,42],new f(24,new u(2,97)),new f(22,new u(2,38),new u(2,39)),new f(22,new u(4,18),new u(2,19)),new f(26,new u(4,14),new u(2,15))),new l(9,[6,26,46],new f(30,new u(2,116)),new f(22,new u(3,36),new u(2,37)),new f(20,new u(4,16),new u(4,17)),new f(24,new u(4,12),new u(4,13))),new l(10,[6,28,50],new f(18,new u(2,68),new u(2,69)),new f(26,new u(4,43),new u(1,44)),new f(24,new u(6,19),new u(2,20)),new f(28,new u(6,15),new u(2,16))),new l(11,[6,30,54],new f(20,new u(4,81)),new f(30,new u(1,50),new u(4,51)),new f(28,new u(4,22),new u(4,23)),new f(24,new u(3,12),new u(8,13))),new l(12,[6,32,58],new f(24,new u(2,92),new u(2,93)),new f(22,new u(6,36),new u(2,37)),new f(26,new u(4,20),new u(6,21)),new f(28,new u(7,14),new u(4,15))),new l(13,[6,34,62],new f(26,new u(4,107)),new f(22,new u(8,37),new u(1,38)),new f(24,new u(8,20),new u(4,21)),new f(22,new u(12,11),new u(4,12))),new l(14,[6,26,46,66],new f(30,new u(3,115),new u(1,116)),new f(24,new u(4,40),new u(5,41)),new f(20,new u(11,16),new u(5,17)),new f(24,new u(11,12),new u(5,13))),new l(15,[6,26,48,70],new f(22,new u(5,87),new u(1,88)),new f(24,new u(5,41),new u(5,42)),new f(30,new u(5,24),new u(7,25)),new f(24,new u(11,12),new u(7,13))),new l(16,[6,26,50,74],new f(24,new u(5,98),new u(1,99)),new f(28,new u(7,45),new u(3,46)),new f(24,new u(15,19),new u(2,20)),new f(30,new u(3,15),new u(13,16))),new l(17,[6,30,54,78],new f(28,new u(1,107),new u(5,108)),new f(28,new u(10,46),new u(1,47)),new f(28,new u(1,22),new u(15,23)),new f(28,new u(2,14),new u(17,15))),new l(18,[6,30,56,82],new f(30,new u(5,120),new u(1,121)),new f(26,new u(9,43),new u(4,44)),new f(28,new u(17,22),new u(1,23)),new f(28,new u(2,14),new u(19,15))),new l(19,[6,30,58,86],new f(28,new u(3,113),new u(4,114)),new f(26,new u(3,44),new u(11,45)),new f(26,new u(17,21),new u(4,22)),new f(26,new u(9,13),new u(16,14))),new l(20,[6,34,62,90],new f(28,new u(3,107),new u(5,108)),new f(26,new u(3,41),new u(13,42)),new f(30,new u(15,24),new u(5,25)),new f(28,new u(15,15),new u(10,16))),new l(21,[6,28,50,72,94],new f(28,new u(4,116),new u(4,117)),new f(26,new u(17,42)),new f(28,new u(17,22),new u(6,23)),new f(30,new u(19,16),new u(6,17))),new l(22,[6,26,50,74,98],new f(28,new u(2,111),new u(7,112)),new f(28,new u(17,46)),new f(30,new u(7,24),new u(16,25)),new f(24,new u(34,13))),new l(23,[6,30,54,74,102],new f(30,new u(4,121),new u(5,122)),new f(28,new u(4,47),new u(14,48)),new f(30,new u(11,24),new u(14,25)),new f(30,new u(16,15),new u(14,16))),new l(24,[6,28,54,80,106],new f(30,new u(6,117),new u(4,118)),new f(28,new u(6,45),new u(14,46)),new f(30,new u(11,24),new u(16,25)),new f(30,new u(30,16),new u(2,17))),new l(25,[6,32,58,84,110],new f(26,new u(8,106),new u(4,107)),new f(28,new u(8,47),new u(13,48)),new f(30,new u(7,24),new u(22,25)),new f(30,new u(22,15),new u(13,16))),new l(26,[6,30,58,86,114],new f(28,new u(10,114),new u(2,115)),new f(28,new u(19,46),new u(4,47)),new f(28,new u(28,22),new u(6,23)),new f(30,new u(33,16),new u(4,17))),new l(27,[6,34,62,90,118],new f(30,new u(8,122),new u(4,123)),new f(28,new u(22,45),new u(3,46)),new f(30,new u(8,23),new u(26,24)),new f(30,new u(12,15),new u(28,16))),new l(28,[6,26,50,74,98,122],new f(30,new u(3,117),new u(10,118)),new f(28,new u(3,45),new u(23,46)),new f(30,new u(4,24),new u(31,25)),new f(30,new u(11,15),new u(31,16))),new l(29,[6,30,54,78,102,126],new f(30,new u(7,116),new u(7,117)),new f(28,new u(21,45),new u(7,46)),new f(30,new u(1,23),new u(37,24)),new f(30,new u(19,15),new u(26,16))),new l(30,[6,26,52,78,104,130],new f(30,new u(5,115),new u(10,116)),new f(28,new u(19,47),new u(10,48)),new f(30,new u(15,24),new u(25,25)),new f(30,new u(23,15),new u(25,16))),new l(31,[6,30,56,82,108,134],new f(30,new u(13,115),new u(3,116)),new f(28,new u(2,46),new u(29,47)),new f(30,new u(42,24),new u(1,25)),new f(30,new u(23,15),new u(28,16))),new l(32,[6,34,60,86,112,138],new f(30,new u(17,115)),new f(28,new u(10,46),new u(23,47)),new f(30,new u(10,24),new u(35,25)),new f(30,new u(19,15),new u(35,16))),new l(33,[6,30,58,86,114,142],new f(30,new u(17,115),new u(1,116)),new f(28,new u(14,46),new u(21,47)),new f(30,new u(29,24),new u(19,25)),new f(30,new u(11,15),new u(46,16))),new l(34,[6,34,62,90,118,146],new f(30,new u(13,115),new u(6,116)),new f(28,new u(14,46),new u(23,47)),new f(30,new u(44,24),new u(7,25)),new f(30,new u(59,16),new u(1,17))),new l(35,[6,30,54,78,102,126,150],new f(30,new u(12,121),new u(7,122)),new f(28,new u(12,47),new u(26,48)),new f(30,new u(39,24),new u(14,25)),new f(30,new u(22,15),new u(41,16))),new l(36,[6,24,50,76,102,128,154],new f(30,new u(6,121),new u(14,122)),new f(28,new u(6,47),new u(34,48)),new f(30,new u(46,24),new u(10,25)),new f(30,new u(2,15),new u(64,16))),new l(37,[6,28,54,80,106,132,158],new f(30,new u(17,122),new u(4,123)),new f(28,new u(29,46),new u(14,47)),new f(30,new u(49,24),new u(10,25)),new f(30,new u(24,15),new u(46,16))),new l(38,[6,32,58,84,110,136,162],new f(30,new u(4,122),new u(18,123)),new f(28,new u(13,46),new u(32,47)),new f(30,new u(48,24),new u(14,25)),new f(30,new u(42,15),new u(32,16))),new l(39,[6,26,54,82,110,138,166],new f(30,new u(20,117),new u(4,118)),new f(28,new u(40,47),new u(7,48)),new f(30,new u(43,24),new u(22,25)),new f(30,new u(10,15),new u(67,16))),new l(40,[6,30,58,86,114,142,170],new f(30,new u(19,118),new u(6,119)),new f(28,new u(18,47),new u(31,48)),new f(30,new u(34,24),new u(34,25)),new f(30,new u(20,15),new u(61,16)))],l.getVersionForNumber=function(t){if(t<1||t>40)throw"ArgumentException";return l.VERSIONS[t-1]},l.getProvisionalVersionForDimension=function(t){if(t%4!=1)throw"Error getProvisionalVersionForDimension";try{return l.getVersionForNumber(t-17>>2)}catch(e){throw"Error getVersionForNumber"}},l.decodeVersionInformation=function(t){for(var e=4294967295,r=0,n=0;n=r)return!1;return!0},w.prototype.crossCheckVertical=function(t,e,r,n){var i=this.image,o=i.height,a=this.crossCheckStateCount;a[0]=0,a[1]=0,a[2]=0;for(var s=t;s>=0&&i.data[e+s*i.width]&&a[1]<=r;)a[1]++,s--;if(s<0||a[1]>r)return NaN;for(;s>=0&&!i.data[e+s*i.width]&&a[0]<=r;)a[0]++,s--;if(a[0]>r)return NaN;for(s=t+1;sr)return NaN;for(;sr)return NaN;var h=a[0]+a[1]+a[2];return 5*Math.abs(h-n)>=2*n?NaN:this.foundPatternCross(a)?this.centerFromEnd(a,s):NaN},w.prototype.handlePossibleCenter=function(t,e,r){var n=t[0]+t[1]+t[2],i=this.centerFromEnd(t,r),o=this.crossCheckVertical(e,Math.floor(i),2*t[1],n);if(!isNaN(o)){for(var a=(t[0]+t[1]+t[2])/3,s=this.possibleCenters.length,h=0;h>1),o=[0,0,0],a=0;a>1:-(a+1>>1));o[0]=0,o[1]=0,o[2]=0;for(var h=e;hr||s<-1||s>n)throw"Error.checkAndNudgePoints ";i=!1,-1==a?(e[o]=0,i=!0):a==r&&(e[o]=r-1,i=!0),-1==s?(e[o+1]=0,i=!0):s==n&&(e[o+1]=n-1,i=!0)}i=!0;for(o=e.length-2;o>=0&&i;o-=2){a=Math.floor(e[o]),s=Math.floor(e[o+1]);if(a<-1||a>r||s<-1||s>n)throw"Error.checkAndNudgePoints ";i=!1,-1==a?(e[o]=0,i=!0):a==r&&(e[o]=r-1,i=!0),-1==s?(e[o+1]=0,i=!0):s==n&&(e[o+1]=n-1,i=!0)}},sampleGrid3:function(t,e,r){for(var n=new h(e),i=new Array(e<<1),o=0;o>1),i[u+1]=s;r.transformPoints1(i),d.checkAndNudgePoints(t,i);try{for(u=0;u>1,o)}}catch(f){throw"Error.checkAndNudgePoints"}}return n}},p=d;function g(t,e,r){this.x=t,this.y=e,this.count=1,this.estimatedModuleSize=r}function v(t){this.bottomLeft=t[0],this.topLeft=t[1],this.topRight=t[2]}function m(){this.image=null,this.possibleCenters=[],this.hasSkipped=!1,this.crossCheckStateCount=[0,0,0,0,0],this.resultPointCallback=null}function y(t,e,r,n,i,o,a,s,h){this.a11=t,this.a12=n,this.a13=a,this.a21=e,this.a22=i,this.a23=s,this.a31=r,this.a32=o,this.a33=h}function b(t,e){this.bits=t,this.points=e}function C(t){this.image=t,this.resultPointCallback=null}function M(t,e){if(null==e||0==e.length)throw"System.ArgumentException";this.field=t;var r=e.length;if(r>1&&0==e[0]){for(var n=1;n=256&&(e^=t);for(r=0;r<255;r++)this.logTable[this.expTable[r]]=r;var n=new Array(1);n[0]=0,this.zero=new M(this,new Array(n));var i=new Array(1);i[0]=1,this.one=new M(this,new Array(i))}function P(t){this.field=t}Object.defineProperty(g.prototype,"X",{get:function(){return this.x}}),Object.defineProperty(g.prototype,"Y",{get:function(){return this.y}}),g.prototype.incrementCount=function(){this.count++},g.prototype.aboutEquals=function(t,e,r){if(Math.abs(e-this.y)<=t&&Math.abs(r-this.x)<=t){var n=Math.abs(t-this.estimatedModuleSize);return n<=1||n/this.estimatedModuleSize<=1}return!1},Object.defineProperty(m.prototype,"CrossCheckStateCount",{get:function(){return this.crossCheckStateCount[0]=0,this.crossCheckStateCount[1]=0,this.crossCheckStateCount[2]=0,this.crossCheckStateCount[3]=0,this.crossCheckStateCount[4]=0,this.crossCheckStateCount}}),m.prototype.foundPatternCross=function(t){for(var e=0,r=0;r<5;r++){var n=t[r];if(0==n)return!1;e+=n}if(e<7)return!1;var i=Math.floor((e<<8)/7),o=Math.floor(i/2);return Math.abs(i-(t[0]<<8))=0&&i.data[e+s*i.width];)a[2]++,s--;if(s<0)return NaN;for(;s>=0&&!i.data[e+s*i.width]&&a[1]<=r;)a[1]++,s--;if(s<0||a[1]>r)return NaN;for(;s>=0&&i.data[e+s*i.width]&&a[0]<=r;)a[0]++,s--;if(a[0]>r)return NaN;for(s=t+1;s=r)return NaN;for(;s=r)return NaN;var h=a[0]+a[1]+a[2]+a[3]+a[4];return 5*Math.abs(h-n)>=2*n?NaN:this.foundPatternCross(a)?this.centerFromEnd(a,s):NaN},m.prototype.crossCheckHorizontal=function(t,e,r,n){for(var i=this.image,o=i.width,a=this.CrossCheckStateCount,s=t;s>=0&&i.data[s+e*i.width];)a[2]++,s--;if(s<0)return NaN;for(;s>=0&&!i.data[s+e*i.width]&&a[1]<=r;)a[1]++,s--;if(s<0||a[1]>r)return NaN;for(;s>=0&&i.data[s+e*i.width]&&a[0]<=r;)a[0]++,s--;if(a[0]>r)return NaN;for(s=t+1;s=r)return NaN;for(;s=r)return NaN;var h=a[0]+a[1]+a[2]+a[3]+a[4];return 5*Math.abs(h-n)>=n?NaN:this.foundPatternCross(a)?this.centerFromEnd(a,s):NaN},m.prototype.handlePossibleCenter=function(t,e,r){var n=t[0]+t[1]+t[2]+t[3]+t[4],i=this.centerFromEnd(t,r),o=this.crossCheckVertical(e,Math.floor(i),t[2],n);if(!isNaN(o)&&(i=this.crossCheckHorizontal(Math.floor(i),Math.floor(o),t[2],n),!isNaN(i))){for(var a=n/7,s=!1,h=this.possibleCenters.length,u=0;u3){for(var e=0,r=0,n=0;n=0;n--){var h=this.possibleCenters[n];Math.abs(h.estimatedModuleSize-o)>s&&this.possibleCenters.splice(n,1)}}return this.possibleCenters.length>3&&this.possibleCenters.sort((function(t,e){return t.count>e.count?-1:t.count=2){if(null!=e)return this.hasSkipped=!0,Math.floor((Math.abs(e.X-n.X)-Math.abs(e.Y-n.Y))/2);e=n}}return 0},m.prototype.haveMultiplyConfirmedCenters=function(){for(var t=0,e=0,r=this.possibleCenters.length,n=0;n=2&&(t++,e+=i.estimatedModuleSize)}if(t<3)return!1;var o=e/r,a=0;for(n=0;no[2]&&(a+=u-o[2]-n,h=r-1)}else{do{h++}while(h=o&&a>=s?(n=t[0],r=t[1],i=t[2]):s>=a&&s>=o?(n=t[1],r=t[0],i=t[2]):(n=t[2],r=t[0],i=t[1]),function(t,e,r){var n=e.x,i=e.y;return(r.x-n)*(t.y-i)-(r.y-i)*(t.x-n)}(r,n,i)<0){var h=r;r=i,i=h}t[0]=r,t[1]=n,t[2]=i}(f),new v(f)},y.prototype.transformPoints1=function(t){for(var e=t.length,r=this.a11,n=this.a12,i=this.a13,o=this.a21,a=this.a22,s=this.a23,h=this.a31,u=this.a32,f=this.a33,l=0;lMath.abs(r-t);if(i){var o=t;t=e,e=o,o=r,r=n,n=o}for(var a=Math.abs(r-t),s=Math.abs(n-e),h=-a>>1,u=e0){if(w==n)break;w+=u,h-=a}}var m=r-t,y=n-e;return Math.sqrt(m*m+y*y)},C.prototype.sizeOfBlackWhiteBlackRunBothWays=function(t,e,r,n){var i=this.sizeOfBlackWhiteBlackRun(t,e,r,n),o=1,a=t-(r-t);a<0?(o=t/(t-a),a=0):a>=this.image.width&&(o=(this.image.width-1-t)/(a-t),a=this.image.width-1);var s=Math.floor(e-(n-e)*o);return o=1,s<0?(o=e/(e-s),s=0):s>=this.image.height&&(o=(this.image.height-1-e)/(s-e),s=this.image.height-1),a=Math.floor(t+(a-t)*o),(i+=this.sizeOfBlackWhiteBlackRun(t,e,a,s))-1},C.prototype.calculateModuleSizeOneWay=function(t,e){var r=this.sizeOfBlackWhiteBlackRunBothWays(Math.floor(t.X),Math.floor(t.Y),Math.floor(e.X),Math.floor(e.Y)),n=this.sizeOfBlackWhiteBlackRunBothWays(Math.floor(e.X),Math.floor(e.Y),Math.floor(t.X),Math.floor(t.Y));return isNaN(r)?n/7:isNaN(n)?r/7:(r+n)/14},C.prototype.calculateModuleSize=function(t,e,r){return(this.calculateModuleSizeOneWay(t,e)+this.calculateModuleSizeOneWay(t,r))/2},C.prototype.distance=function(t,e){var r=t.X-e.X,n=t.Y-e.Y;return Math.sqrt(r*r+n*n)},C.prototype.computeDimension=function(t,e,r,n){var i=7+(Math.round(this.distance(t,e)/n)+Math.round(this.distance(t,r)/n)>>1);switch(3&i){case 0:i++;break;case 2:i--;break;case 3:throw"Error"}return i},C.prototype.findAlignmentInRegion=function(t,e,r,n){var i=Math.floor(n*t),o=Math.max(0,e-i),a=Math.min(this.image.width-1,e+i);if(a-o<3*t)throw"Error";var s=Math.max(0,r-i),h=Math.min(this.image.height-1,r+i);return new w(this.image,o,s,a-o,h-s,t,this.resultPointCallback).find()},C.prototype.createTransform=function(t,e,r,n,i){var o,a,s,h,u=i-3.5;return null!=n?(o=n.X,a=n.Y,s=h=u-3):(o=e.X-t.X+r.X,a=e.Y-t.Y+r.Y,s=h=u),y.quadrilateralToQuadrilateral(3.5,3.5,u,3.5,s,h,3.5,u,t.X,t.Y,e.X,e.Y,o,a,r.X,r.Y)},C.prototype.sampleGrid=function(t,e,r){return p.sampleGrid3(t,r,e)},C.prototype.processFinderPatternInfo=function(t){var e=t.topLeft,r=t.topRight,n=t.bottomLeft,i=this.calculateModuleSize(e,r,n);if(i<1)throw"Error";var o=this.computeDimension(e,r,n,i),a=l.getProvisionalVersionForDimension(o),s=a.DimensionForVersion-7,h=null;if(a.alignmentPatternCenters.length>0)for(var u=r.X-e.X+n.X,f=r.Y-e.Y+n.Y,c=1-3/s,w=Math.floor(e.X+c*(u-e.X)),d=Math.floor(e.Y+c*(f-e.Y)),p=4;p<=16;p<<=1){h=this.findAlignmentInRegion(i,w,d,p);break}var g=this.createTransform(e,r,n,h,o);return new b(this.sampleGrid(this.image,g,o),null==h?[n,e,r]:[n,e,r,h])},C.prototype.detect=function(){var t=(new m).findFinderPattern(this.image);return this.processFinderPatternInfo(t)},Object.defineProperty(M.prototype,"Zero",{get:function(){return 0==this.coefficients[0]}}),Object.defineProperty(M.prototype,"Degree",{get:function(){return this.coefficients.length-1}}),M.prototype.getCoefficient=function(t){return this.coefficients[this.coefficients.length-1-t]},M.prototype.evaluateAt=function(t){if(0==t)return this.getCoefficient(0);var e=this.coefficients.length;if(1==t){for(var r=0,n=0;nr.length){var n=e;e=r,r=n}for(var i=new Array(r.length),o=r.length-e.length,a=0;a=t.Degree&&!r.Zero;){var o=r.Degree-t.Degree,a=this.field.multiply(r.getCoefficient(r.Degree),i),s=t.multiplyByMonomial(o,a),h=this.field.buildMonomial(o,a);e=e.addOrSubtract(h),r=r.addOrSubtract(s)}return[e,r]},Object.defineProperty(k.prototype,"Zero",{get:function(){return this.zero}}),Object.defineProperty(k.prototype,"One",{get:function(){return this.one}}),k.prototype.buildMonomial=function(t,e){if(t<0)throw"System.ArgumentException";if(0==e)return this.zero;for(var r=new Array(t+1),n=0;n=Math.floor(r/2);){var f=i,l=a,c=h;if(a=s,h=u,(i=o).Zero)throw"r_{i-1} was zero";o=f;for(var w=this.field.Zero,d=i.getCoefficient(i.Degree),p=this.field.inverse(d);o.Degree>=i.Degree&&!o.Zero;){var g=o.Degree-i.Degree,v=this.field.multiply(o.getCoefficient(o.Degree),p);w=w.addOrSubtract(this.field.buildMonomial(g,v)),o=o.addOrSubtract(i.multiplyByMonomial(g,v))}s=w.multiply1(a).addOrSubtract(l),u=w.multiply1(h).addOrSubtract(c)}var m=u.getCoefficient(0);if(0==m)throw"ReedSolomonException sigmaTilde(0) was zero";var y=this.field.inverse(m);return[u.multiply2(y),o.multiply2(y)]},P.prototype.findErrorLocations=function(t){var e=t.Degree;if(1==e)return new Array(t.getCoefficient(1));for(var r=new Array(e),n=0,i=1;i<256&&n7)throw"System.ArgumentException";return B.DATA_MASKS[t]},B.DATA_MASKS=[new function(){this.unmaskBitMatrix=function(t,e){for(var r=0;r=10&&e<=26?this.dataLengthMode=1:e>=27&&e<=40&&(this.dataLengthMode=2)}A.prototype.copyBit=function(t,e,r){return this.bitMatrix.get_Renamed(t,e)?r<<1|1:r<<1},A.prototype.readFormatInformation=function(){if(null!=this.parsedFormatInfo)return this.parsedFormatInfo;for(var t=0,e=0;e<6;e++)t=this.copyBit(e,8,t);t=this.copyBit(7,8,t),t=this.copyBit(8,8,t),t=this.copyBit(8,7,t);for(var r=5;r>=0;r--)t=this.copyBit(8,r,t);if(this.parsedFormatInfo=s.decodeFormatInformation(t),null!=this.parsedFormatInfo)return this.parsedFormatInfo;var n=this.bitMatrix.Dimension;t=0;var i=n-8;for(e=n-1;e>=i;e--)t=this.copyBit(e,8,t);for(r=n-7;r>2;if(e<=6)return l.getVersionForNumber(e);for(var r=0,n=t-11,i=5;i>=0;i--)for(var o=t-9;o>=n;o--)r=this.copyBit(o,i,r);if(this.parsedVersion=l.decodeVersionInformation(r),null!=this.parsedVersion&&this.parsedVersion.DimensionForVersion==t)return this.parsedVersion;r=0;for(o=5;o>=0;o--)for(i=t-9;i>=n;i--)r=this.copyBit(o,i,r);if(this.parsedVersion=l.decodeVersionInformation(r),null!=this.parsedVersion&&this.parsedVersion.DimensionForVersion==t)return this.parsedVersion;throw"Error readVersion"},A.prototype.readCodewords=function(){var t=this.readFormatInformation(),e=this.readVersion(),r=E.forReference(t.dataMask),n=this.bitMatrix.Dimension;r.unmaskBitMatrix(this.bitMatrix,n);for(var i=e.buildFunctionPattern(),o=!0,a=new Array(e.totalCodewords),s=0,h=0,u=0,f=n-1;f>0;f-=2){6==f&&f--;for(var l=0;l=0;){if(s[d].codewords.length==w)break;d--}d++;var p=w-n.ecCodewordsPerBlock,g=0;for(a=0;a>this.bitPointer-t+1,this.bitPointer-=t,e}if(t>8-(t-(this.bitPointer+1)),this.bitPointer=this.bitPointer-t%8,this.bitPointer<0&&(this.bitPointer=8+this.bitPointer),e}if(t>8-(t-(this.bitPointer+1+8))),this.bitPointer=this.bitPointer-(t-8)%8,this.bitPointer<0&&(this.bitPointer=8+this.bitPointer),e}return 0},N.prototype.NextMode=function(){return this.blockPointer>this.blocks.length-this.numErrorCorrectionCode-2?0:this.getNextBits(4)},N.prototype.getDataLength=function(t){for(var e=0;t>>e!=1;)e++;return this.getNextBits(x.sizeOfDataLengthInfo[this.dataLengthMode][e])},N.prototype.getRomanAndFigureString=function(t){var e=t,r=0,n="",i=["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"," ","$","%","*","+","-",".","/",":"];do{if(e>1)r=this.getNextBits(11),n+=i[Math.floor(r/45)],n+=i[r%45],e-=2;else 1==e&&(n+=i[r=this.getNextBits(6)],e-=1)}while(e>0);return n},N.prototype.getFigureString=function(t){var e=t,r=0,n="";do{e>=3?((r=this.getNextBits(10))<100&&(n+="0"),r<10&&(n+="0"),e-=3):2==e?((r=this.getNextBits(7))<10&&(n+="0"),e-=2):1==e&&(r=this.getNextBits(4),e-=1),n+=r}while(e>0);return n},N.prototype.get8bitByteArray=function(t){var e=t,r=0,n=[];do{r=this.getNextBits(8),n.push(r),e--}while(e>0);return n},N.prototype.getKanjiString=function(t){var e=t,r=0,n="";do{var i=((r=this.getNextBits(13))/192<<8)+r%192,o=0;o=i+33088<=40956?i+33088:i+49472,n+=String.fromCharCode(o),e--}while(e>0);return n},Object.defineProperty(N.prototype,"DataByte",{get:function(){for(var t=[];;){var e=this.NextMode();if(0==e){if(t.length>0)break;throw"Empty data block"}if(1!=e&&2!=e&&4!=e&&8!=e&&7!=e)throw"Invalid mode: "+e+" in (block:"+this.blockPointer+" bit:"+this.bitPointer+")";var r=this.getDataLength(e);if(r<1)throw"Invalid data length: "+r;switch(e){case 1:for(var n=this.getFigureString(r),i=new Array(n.length),o=0;o=0?t>>e:(t>>e)+(2<<~e)}x.sizeOfDataLengthInfo=[[10,9,8,8],[12,11,16,10],[14,13,16,12]],I.prototype.decode=function(t,e){var r=function(){try{this.error=void 0,this.result=this.process(this.imagedata)}catch(t){this.error=t,this.result=void 0}return null!=this.callback&&this.callback(this.error,this.result),this.result}.bind(this);if(void 0!=t&&void 0!=t.width)this.width=t.width,this.height=t.height,this.imagedata={data:e||t.data},this.imagedata.width=t.width,this.imagedata.height=t.height,r();else{if("undefined"===typeof Image)throw new Error("This source format is not supported in your environment, you need to pass an image buffer with width and height (see https://github.com/edi9999/jsqrcode/blob/master/test/qrcode.js)");var n=new Image;n.crossOrigin="Anonymous",n.onload=function(){var t=document.createElement("canvas"),e=t.getContext("2d"),i=document.getElementById("out-canvas");if(null!=i){var o=i.getContext("2d");o.clearRect(0,0,320,240),o.drawImage(n,0,0,320,240)}t.width=n.width,t.height=n.height,e.drawImage(n,0,0),this.width=n.width,this.height=n.height;try{this.imagedata=e.getImageData(0,0,n.width,n.height)}catch(a){if(this.result="Cross domain image reading not supported in your browser! Save it to your computer then drag and drop the file!",null!=this.callback)return this.callback(null,this.result)}r()}.bind(this),n.src=t}},I.prototype.decode_utf8=function(t){return decodeURIComponent(escape(t))},I.prototype.process=function(t){for(var e=(new Date).getTime(),r=new C(this.grayScaleToBitmap(this.grayscale(t))).detect(),n=S.decode(r.bits).DataByte,i="",o=0;on[s][a][1]&&(n[s][a][1]=f)}}for(var l=new Array(4),c=0;c<4;c++)l[c]=new Array(4);for(a=0;a<4;a++)for(s=0;s<4;s++)l[s][a]=Math.floor((n[s][a][0]+n[s][a][1])/2);return l},I.prototype.grayScaleToBitmap=function(t){for(var e=this.getMiddleBrightnessPerArea(t),r=e.length,n=Math.floor(t.width/r),i=Math.floor(t.height/r),o=0;o=0;)e^=d.G15<=0;)e^=d.G18<>>=1;return e},getPatternPosition:function(t){return d.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,r){switch(t){case a:return(e+r)%2==0;case s:return e%2==0;case h:return r%3==0;case u:return(e+r)%3==0;case f:return(Math.floor(e/2)+Math.floor(r/3))%2==0;case l:return e*r%2+e*r%3==0;case c:return(e*r%2+e*r%3)%2==0;case w:return(e*r%3+(e+r)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new i([1],0),r=0;r5&&(r+=3+o-5)}for(n=0;n-1?e.split(","):e;r[t]=n};default:return function(t,e,r){void 0!==r[t]?r[t]=[].concat(r[t],e):r[t]=e}}}(e=Object.assign({decode:!0,sort:!0,arrayFormat:"none",parseNumbers:!1,parseBooleans:!1},e)),i=Object.create(null);if("string"!==typeof t)return i;if(!(t=t.trim().replace(/^[?#&]/,"")))return i;var o=!0,a=!1,h=void 0;try{for(var f,l=t.split("&")[Symbol.iterator]();!(o=(f=l.next()).done);o=!0){var w=f.value,d=s(e.decode?w.replace(/\+/g," "):w,"="),p=n(d,2),g=p[0],v=p[1];v=void 0===v?null:u(v,e),r(u(g,e),v,i)}}catch(B){a=!0,h=B}finally{try{o||null==l.return||l.return()}finally{if(a)throw h}}for(var m=0,y=Object.keys(i);m0})).join("&")},e.parseUrl=function(t,e){return{url:f(t).split("?")[0]||"",query:w(l(t),e)}}},dQei:function(t,e){for(var r={glog:function(t){if(t<1)throw new Error("glog("+t+")");return r.LOG_TABLE[t]},gexp:function(t){for(;t<0;)t+=255;for(;t>=256;)t-=255;return r.EXP_TABLE[t]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},n=0;n<8;n++)r.EXP_TABLE[n]=1<0&&u>h&&(u=h);for(var f=0;f=0?(l=p.substr(0,g),c=p.substr(g+1)):(l=p,c=""),w=decodeURIComponent(l),d=decodeURIComponent(c),n(a,w)?i(a[w])?a[w].push(d):a[w]=[a[w],d]:a[w]=d}return a};var i=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},nVVt:function(t,e){t.exports={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8}},rcnY:function(t,e,r){var n=r("aRTE");function i(t,e){this.totalCount=t,this.dataCount=e}i.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],i.getRSBlocks=function(t,e){var r=i.getRsBlockTable(t,e);if(void 0==r)throw new Error("bad rs block @ typeNumber:"+t+"/errorCorrectLevel:"+e);for(var n=r.length/3,o=new Array,a=0;a>>7-t%8&1)},put:function(t,e){for(var r=0;r>>e-r-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}},t.exports=r}}]); //# sourceMappingURL=main~f9ca8911.d1faa705.chunk.js.map