(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{448:function(t,e,r){varn=r(738),o=r(739),i=r(756),a=r(757);functionu(t,e,r,i,a){varu=[].slice.call(arguments,1),s=u.length,f="function"===typeofu[s-1];if(!f&&!n())thrownewError("Callback required as last argument");if(!f){if(s<1)thrownewError("Too few arguments provided");return1===s?(r=e,e=i=void0):2!==s||e.getContext||(i=r,r=e,e=void0),newPromise(function(n,a){try{varu=o.create(r,i);n(t(u,e,i))}catch(s){a(s)}})}if(s<2)thrownewError("Too few arguments provided");2===s?(a=r,r=e,e=i=void0):3===s&&(e.getContext&&"undefined"===typeofa?(a=i,i=void0):(a=i,i=r,r=e,e=void0));try{varh=o.create(r,i);a(null,t(h,e,i))}catch(c){a(c)}}e.create=o.create,e.toCanvas=u.bind(null,i.render),e.toDataURL=u.bind(null,i.renderToDataURL),e.toString=u.bind(null,function(t,e,r){returna.render(t,r)})},479:function(t,e){varr,n=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];e.getSymbolSize=function(t){if(!t)thrownewError('"version" cannot be null or undefined');if(t<1||t>40)thrownewError('"version" should be in range from 1 to 40');return4*t+17},e.getSymbolTotalCodewords=function(t){returnn[t]},e.getBCHDigit=function(t){for(vare=0;0!==t;)e++,t>>>=1;returne},e.setToSJISFunction=function(t){if("function"!==typeoft)thrownewError('"toSJISFunc" is not a valid function.');r=t},e.isKanjiModeEnabled=function(){return"undefined"!==typeofr},e.toSJIS=function(t){returnr(t)}},480:function(t,e,r){varn=r(632),o=r(633);e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(t,e){if(!t.ccBits)thrownewError("Invalid mode: "+t);if(!n.isValid(e))thrownewError("Invalid version: "+e);returne>=1&&e<10?t.ccBits[0]:e<27?t.ccBits[1]:t.ccBits[2]},e.getBestModeForData=function(t){returno.testNumeric(t)?e.NUMERIC:o.testAlphanumeric(t)?e.ALPHANUMERIC:o.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(t){if(t&&t.id)returnt.id;thrownewError("Invalid mode")},e.isValid=function(t){returnt&&t.bit&&t.ccBits},e.from=function(t,r){if(e.isValid(t))returnt;try{returnfunction(t){if("string"!==typeoft)thrownewError("Param is not a string");switch(t.toLowerCase()){case"numeric":returne.NUMERIC;case"alphanumeric":returne.ALPHANUMERIC;case"kanji":returne.KANJI;case"byte":returne.BYTE;default:thrownewError("Unknown mode: "+t)}}(t)}catch(n){returnr}}},498:function(t,e,r){"use strict";varn=r(550);i.TYPED_ARRAY_SUPPORT=function(){try{vart=newUint8Array(1);returnt.__proto__={__proto__:Uint8Array.prototype,foo:function(){return42}},42===t.foo()}catch(e){return!1}}();varo=i.TYPED_ARRAY_SUPPORT?2147483647:1073741823;functioni(t,e,r){returni.TYPED_ARRAY_SUPPORT||thisinstanceofi?"number"===typeoft?s(this,t):function(t,e,r,n){if("number"===typeofe)thrownewTypeError('"value" argument must not be a number');if("undefined"!==typeofArrayBuffer&&einstanceofArrayBuffer)returnfunction(t,e,r,n){if(r<0||e.byteLength<r)thrownewRangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))thrownewRangeError("'length' is out of bounds");varo;o=void0===r&&void0===n?newUint8Array(e):void0===n?newUint8Array(e,r):newUint8Array(e,r,n);i.TYPED_ARRAY_SUPPORT?o.__proto__=i.prototype:o=f(t,o);returno}(t,e,r,n);if("string"===typeofe)returnfunction(t,e){varr=0|c(e),n=u(t,r),o=n.write(e);o!==r&&(n=n.slice(0,o));returnn}(t,e);returnfunction(t,e){if(i.isBuffer(e)){varr=0|a(e.length),n=u(t,r);return0===n.length?n:(e.copy(n,0,0,r),n)}if(e){if("undefined"!==typeofArrayBuffer&&e.bufferinstanceofArrayBuffer||"length"ine)return"number"!==typeofe.length||(o=e.length)!==o?u(t,0):f(t,e);if("Buffer"===e.type&&Array.isArray(e.data))returnf(t,e.data)}varo;thrownewTypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}(this,t,e,r):newi(t,e,r)}functiona(t){if(t>=o)thrownewRangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return0|t}functionu(t,e){varr;returni.TYPED_ARRAY_SUPPORT?(r=newUint8Array(e)).__proto__=i.prototype:(null===(r=t)&&(r=newi(e)),r.length=e),r}functions(t,e){varr=u(t,e<0?0:0|a(e));if(!i.TYPED_ARRAY_SUPPORT)for(varn=0;n<e;++n)r[n]=0;returnr}functionf(t,e){for(varr=e.length<0?0:0|a(e.length),n=u(t,r),o=0;o<r;o+=1)n[o]=255&e[o];returnn}functionh(t,e){varr;e=e||1/0;for(varn=t.length,o=null,i=[],a=0;a<n;++a){if((r=t.charCodeAt(a))>55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}elseo&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}elseif(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}elseif(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))thrownewError("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}returni}functionc(t){returni.isBuffer(t)?t.length:"undefined"!==typeofArrayBuffer&&"function"===typeofArrayBuffer.isView&&(ArrayBuffer.isView(t)||tinstanceofArrayBuffer)?t.byteLength:("string"!==typeoft&&(t=""+t),0===t.length?0:h(t).length)}i.TYPED_ARRAY_SUPPORT&&(i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,"undefined"!==typeofSymbol&&Symbol.species&&i[Symbol.species]===i&&Object.defineProperty(i,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1})),i.prototype.write=function(t,e,r){void0===e?(r=this.length,e=0):void0===r&&"string"===typeofe?(r=this.length,e=0):isFinite(e)&&(e|=0,isFinite(r)?r|=0:r=void0);varn=this.length-e;if((void0===r||r>n)&&(r=n),t.length>0&&(r<0||e<0)||e>this.length)thrownewRangeError("Attempt to write outside buffer bounds");returnfunction(t,e,r,n){returnfunction(t,e,r,n){for(varo=0;o<n&&!(o+r>=e.length||o>=t.length);++o)e[o+r]=t[o];returno}(h(e,t.length-r),t,r,n)}(this,t,e,r)},i.prototype.slice=function(t,e){varr,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t),i.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=i.prototype;else{varo=e-t;r=newi(o,void0);for(vara=0;a<o;++a)r[a]=this[a+t]}returnr},i.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return0;if(0===t.length||0===this.length)return0;if(e<0)thrownewRangeError("targetStart out of bounds");if(r<0||r>=this.length)thrownewRangeError("sourceStart out of bounds");if(n<0)thrownewRangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);varo,a=n-r;if(this===t&&r<e&&e<n)for(o=a-1;o>=0;--o)t[o+e]=this[o+r];elseif(a<1e3||!i.TYPED_ARRAY_SUPPORT)for(o=0;o<a;++o)t[o+e]=this[o+r];elseUint8Array.prototype.set.call(t,this.subarray(r,r+a),e);returna},i.prototype.fill=function(t,e,r){if("string"===typeoft){if("string"===typeofe?(e=0,r=this.length):"string"===typeofr&&(r=this.length),1===t.length){varn=t.charCodeAt(0);n<256&&(t=n)}}else"number"===typeoft&&(t&=255);if(e<0||this.length<e||this.length<r)thrownewRangeError("Out of range index");if(r<=e)returnthis;varo;if(e>>>=0,r=void0===r?this.length:r>>>0,t||(t=0),"number"===typeoft)for(o=e;o<r;++o)this[o]=t;else{vara=i.isBuffer(t)?t:newi(t),u=a.length;for(o=0;o<r-e;++o)this[o+e]=a[o%u]}returnthis},i.concat=function(t,e){if(!n(t))thrownewTypeError('"list" argument must be an Array of Buffers');if(0===t.length)returnu(null,0);varr;if(void0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;varo=s(null,e),a=0;for(r=0;r<t.length;++r){varf=t[r];if(!i.isBuffer(f))thrownewTypeError('"list" argument must be an Array of Buffers');f.copy(o,a),a+=f.length}returno},i.byteLength=c,i.prototype._isBuffer=!0,i.isBuffer=function(t){return!(null==t||!t._isBuffer)},t.exports=i},550:function(t,e){varr={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},551:function(t,e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2},e.isValid=function(t){returnt&&"undefined"!==typeoft.bit&&t.bit>=0&&t.bit<4},e.from=function(t,r){if(e.isValid(t))returnt;try{returnfunction(t){if("string"!==typeoft)thrownewError("Param is not a string");switch(t.toLowerCase()){case"l":case"low":returne.L;case"m":case"medium":returne.M;case"q":case"quartile":returne.Q;case"h":case"high":returne.H;default:thrownewError("Unknown EC Level: "+t)}}(t)}catch(n){returnr}}},631:function(t,e,r){varn=r(551),o=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],i=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];e.getBlocksCount=function(t,e){switch(e){casen.L:returno[4*(t-1)+0];casen.M:returno[4*(t-1)+1];casen.Q:returno[4*(t-1)+2];casen.H:returno[4*(t-1)+3];default:return}},e.getTotalCodewordsCount=function(t,e){switch(e){casen.L:returni[4*(t-1)+0];casen.M:returni[4*(t-1)+1];casen.Q:returni[4*(t-1)+2];casen.H:returni[4*(t-1)+3];default:return}}},632:function(t,e){e.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}},633:function(t,e){varr="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",n="(?:(?![A-Z0-9 $%*+\\-./:]|"+(r=r.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+";e.KANJI=newRegExp(r,"g"),e.BYTE_KANJI=newRegExp("[^A-Z0-9 $%*+\\-./:]+","g"),e.BYTE=newRegExp(n,"g"),e.NUMERIC=newRegExp("[0-9]+","g"),e.ALPHANUMERIC=newRegExp("[A-Z $%*+\\-./:]+","g");varo=newRegExp("^"+r+"$"),i=newRegExp("^[0-9]+$"),a=newRegExp("^[A-Z0-9 $%*+\\-./:]+$");e.testKanji=function(t){returno.test(t)},e.testNumeric=function(t){returni.test(t)},e.testAlphanumeric=function(t){returna.test(t)}},634:function(t,e){functionr(t){if("string"!==typeoft)thrownewError("Color should be defined as hex string");vare=t.slice().replace("#","").split("");if(e.length<3||5===e.length||e.length>8)thrownewError("Invalid hex color: "+t);3!==e.length&&4!==e.length||(e=Array.prototype.concat.apply([],e.map(function(t){return[t,t]}))),6===e.length&&e.push("F","F");varr=parseInt(e.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:255&r,hex:"#"+e.slice(0,6).join("")}}e.getOptions=function(t){t||(t={}),t.color||(t.color={});vare="undefined"===typeoft.margin||null===t.margin||t.margin<0?4:t.margin,n=t.width&&t.width>=21?t.width:void0,o=t.scale||4;return{width:n,scale:n?4:o,margin:e,color:{dark:r(t.color.dark||"#000000ff"),light:r(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},e.getScale=function(t,e){returne.width&&e.width>=t+2*e.margin?e.width/(t+2*e.margin):e.scale},e.getImageWidth=function(t,r){varn=e.getScale(t,r);returnMath.floor((t+2*r.margin)*n)},e.qrToImageData=function(t,r,n){for(varo=r.modules.size,i=r.modules.data,a=e.getScale(o,n),u=Math.floor((o+2*n.margin)*a),s=n.margin*a,f=[n.color.light,n.color.dark],h=0;h<u;h++)for(varc=0;c<u;c++){varl=4*(h*u+c),g=n.color.light;if(h>=s&&c>=s&&h<u-s&&c<u-s)g=f[i[Math.floor((h-s)/a)*o+Math.floor((c-s)/a)]?1:0];t[l++]=g.r,t[l++]=g.g,t[l++]=g.b,t[l]=g.a}}},738:function(t,e){t.exports=function(){return"function"===typeofPromise&&Promise.prototype&&Promise.prototype.then}},739:function(t,e,r){varn=r(498),o=r(479),i=r(551),a=r(740),u=r(741),s=r(742),f=r(743),h=r(744),c=r(631),l=r(745),g=r(748),d=r(749),p=r(480),v=r(750),w=r(550);functiony(t,e,r){varn,o,i=t.size,a=d.getEncodedBits(e,r);for(n=0;n<15;n++)o=1===(a>>n&1),n<6?t.set(n,8,o,!0):n<8?t.set(n+1,8,o,!0):t.set(i-15+n,8,o,!0),n<8?t.set(8,i-n-1,o,!0):n<9?t.set(8,15-n-1+1,o,!0):t.set(8,15-n-1,o,!0);t.set(i-8,8,1,!0)}functionm(t,e,r){vari=newa;r.forEach(function(e){i.put(e.mode.bit,4),i.put(e.getLength(),p.getCharCountIndicator(e.mode,t)),e.write(i)});varu=8*(o.getSymbolTotalCodewords(t)-c.getTotalCodewordsCount(t,e));for(i.getLengthInBits()+4<=u&&i.put(0,4);i.getLengthInBits()%8!==0;)i.putBit(0);for(vars=(u-i.getLengthInBits())/8,f=0;f<s;f++)i.put(f%2?17:236,8);returnfunction(t,e,r){for(vari=o.getSymbolTotalCodewords(e),a=c.getTotalCodewordsCount(e,r),u=i-a,s=c.getBlocksCount(e,r),f=s-i%s,h=Math.floor(i/s),g=Math.floor(u/s),d=g+1,p=h-g,v=newl(p),w=0,y=newArray(s),m=newArray(s),E=0,A=newn(t.buffer),B=0;B<s;B++){varb=B<f?g:d;y[B]=A.slice(w,w+b),m[B]=v.encode(y[B]),w+=b,E=Math.max(E,b)}varP,R,T=newn(i),C=0;for(P=0;P<E;P++)for(R=0;R<s;R++)P<y[R].length&&(T[C++]=y[R][P]);for(P=0;P<p;P++)for(R=0;R<s;R++)T[C++]=m[R][P];returnT}(i,t,e)}functionE(t,e,r,n){vari;if(w(t))i=v.fromArray(t);else{if("string"!==typeoft)thrownewError("Invalid data");vara=e;if(!a){varc=v.rawSplit(t);a=g.getBestVersionForData(c,r)}i=v.fromString(t,a||40)}varl=g.getBestVersionForData(i,r);if(!l)thrownewError("The amount of data is too big to be stored in a QR Code");if(e){if(e<l)thrownewError("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+l+".\n")}elsee=l;vard=m(e,r,i),p=o.getSymbolSize(e),E=newu(p);returnfunction(t,e){for(varr=t.size,n=f.getPositions(e),o=0;o<n.length;o++)for(vari=n[o][0],a=n[o][1],u=-1;u<=7;u++)if(!(i+u<=-1||r<=i+u))for(vars=-1;s<=7;s++)a+s<=-1||r<=a+s||(u>=0&&u<=6&&(0===s||6===s)||s>=0&&s<=6&&(0===u||6===u)||u>=2&&u<=4&&s>=2&&s<=4?t.set(i+u,a+s,!0,!0):t.set(i+u,a+s,!1,!0))}(E,e),function(t){for(vare=t.size,r=8;r<e-8;r++){varn=r%2===0;t.set(r,6,n,!0),t.set(6,r,n,!0)}}(E),function(t,e){for(varr=s.getPositions(e),n=0;n<r.length;n++)for(varo=r[n][0],i=r[n][1],a=-2;a<=2;a++)for(varu=-2;u<=2;u++)-2===a||2===a||-2===u||2===u||0===a&&0===u?t.set(o+a,i+u,!0,!0):t.set(o+a,i+u,!1,!0)}(E,e),y(E,r,0),e>=7&&function(t,e){for(varr,n,o,i=t.size,a=g.getEncodedBits(e),u=0;u<18;u++)r=Math.floor(u/3),n=u%3+i-8-3,o=1===(a>>u&1),t.set(r,n,o,!0),t.set(n,r,o,!0)}(E,e),function(t,e){for(varr=t.size,n=-1,o=r-1,i=7,a=0,u=r-1;u>0;u-=2)for(6===u&&u--;;){for(vars=0;s<2;s++)if(!t.isReserved(o,u-s)){varf=!1;a<e.length&&(f=1===(e[a]>>>i&1)),t.set(o,u-s,f),-1===--i&&(a++,i=7)}if((o+=n)<0||r<=o){o-=n,n=-n;break}}}(E,d),isNaN(n)&&(n=h.getBestMask(E,y.bind(null,E,r))),h.applyMask(n,E),y(E,r,n),{modules:E,version:e,errorCorrectionLevel:r,maskPattern:n,segments:i}}e.create=function(t,e){if("undefined"===typeoft||""===t)thrownewError("No input text");varr,n,a=i.M;return"undefined"!==typeofe&&(a=i.from(e.errorCorrectionLevel,i.M),r=g.from(e.version),n=h.from(e.maskPattern),e.toSJISFunc&&o.setToSJISFunction(e.toSJISFunc)),E(t,r,a,n)}},740:function(t,e){functionr(){this.buffer=[],this.length=0}r.prototype={get:function(t){vare=Math.floor(t/8);return1===(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(varr=0;r<e;r++)this.putBit(1===(t>>>e-r-1&1))},getLengthInBits:function(){returnthis.length},putBit:function(t){vare=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},741:function(t,e,r){varn=r(498);functiono(t){if(!t||t<1)thrownewError("BitMatrix size must be defined and greater than 0");this.size=t,this.data=newn(t*t),this.data.fill(0),this.reservedBit=newn(t*t),this.reservedBit.fill(0)}o.prototype.set=function(t,e,r,n){varo=t*this.size+e;this.data[o]=r,n&&(this.reservedBit[o]=!0)},o.prototype.get=function(t,e){returnthis.data[t*this.size+e]},o.prototype.xor=function(t,e,r){this.data[t*this.size+e]^=r},o.prototype.isReserved=function(t,e){returnthis.reservedBit[t*this.size+e]},t.exports=o},742:function(t,e,r){varn=r(479).getSymbolSize;e.getRowColCoords=function(t){if(1===t)return[];for(vare=Math.floor(t/7)+2,r=n(t),o=145===r?26:2*Math.ceil((r-13)/(2*e-2)),i=[r-7],a=1;a<e-1;a++)i[a]=i[a-1]-o;returni.push(6),i.reverse()},e.getPositions=function(t){for(varr=[],n=e.getRowColCoords(t),o=n.length,i=0;i<o;i++)for(vara=0;a<o;a++)0===i&&0===a||0===i&&a===o-1||i===o-1&&0===a||r.push([n[i],n[a]]);returnr}},743:function(t,e,r){varn=r(479).getSymbolSize;e.getPositions=function(t){vare=n(t);return[[0,0],[e-7,0],[0,e-7]]}},744:function(t,e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};varr=3,n=3,o=40,i=10;functiona(t,r,n){switch(t){casee.Patterns.PATTERN000:return(r+n)%2===0;casee.Patterns.PATTERN001:returnr%2===0;casee.Patterns.PATTERN010:returnn%3===0;casee.Patterns.PATTERN011:return(r+n)%3===0;casee.Patterns.PATTERN100:return(Math.floor(r/2)+Math.floor(n/3))%2===0;casee.Patterns.PATTERN101:returnr*n%2+r*n%3===0;casee.Patterns.PATTERN110:return(r*n%2+r*n%3)%2===0;casee.Patterns.PATTERN111:return(r*n%3+(r+n)%2)%2===0;default:thrownewError("bad maskPattern:"+t)}}e.isValid=function(t){returnnull!=t&&""!==t&&!isNaN(t)&&t>=0&&t<=7},e.from=function(t){returne.isValid(t)?parseInt(t,10):void0},e.getPenaltyN1=function(t){for(vare=t.size,n=0,o=0,i=0,a=null,u=null,s=0;s<e;s++){o=i=0,a=u=null;for(varf=0;f<e;f++){varh=t.get(s,f);h===a?o++:(o>=5&&(n+=r+(o-5)),a=h,o=1),(h=t.get(f,s))===u?i++:(i>=5&&(n+=r+(i-5)),u=h,i=1)}o>=5&&(n+=r+(o-5)),i>=5&&(n+=r+(i-5))}returnn},e.getPenaltyN2=function(t){for(vare=t.size,r=0,o=0;o<e-1;o++)for(vari=0;i<e-1;i++){vara=t.get(o,i)+t.get(o,i+1)+t.get(o+1,i)+t.get(o+1,i+1);4!==a&&0!==a||r++}returnr*n},e.getPenaltyN3=function(t){for(vare=t.size,r=0,n=0,i=0,a=0;a<e;a++){n=i=0;for(varu=0;u<e;u++)n=n<<1&2047|t.get(a,u),u>=10&&(1488===n||93===n)&&r++,i=i<<1&2047|t.get(u,a),u>=10&&(1488===i||93===i)&&r++}returnr*o},e.getPenaltyN4=function(t){for(vare=0,r=t.data.length,n=0;n<r;n++)e+=t.data[n];returnMath.abs(Math.ceil(100*e/r/5)-10)*i},e.applyMask=function(t,e){for(varr=e.size,n=0;n<r;n++)for(varo=0;o<r;o++)e.isReserved(o,n)||e.xor(o,n,a(t,o,n))},e.getBestMask=function(t,r){for(varn=Object.keys(e.Patterns).length,o=0,i=1/0,a=0;a<n;a++){r(a),e.applyMask(a,t);varu=e.getPenaltyN1(t)+e.getPenaltyN2(t)+e.getPenaltyN3(t)+e.getPenaltyN4(t);e.applyMask(a,t),u<i&&(i=u,o=a)}returno}},745:function(t,e,r){varn=r(498),o=r(746);functioni(t){this.genPoly=void0,this.degree=t,this.degree&&this.initialize(this.degree)}i.prototype.initialize=function(t){this.degree=t,this.genPoly=o.generateECPolynomial(this.degree)},i.prototype.encode=function(t){if(!this.genPoly)thrownewError("Encoder not initialized");vare=newn(this.degree);e.fill(0);varr=n.concat([t,e],t.length+this.degree),i=o.mod(r,this.genPoly),a=this.degree-i.length;if(a>0){varu=newn(this.degree);returnu.fill(0),i.copy(u,a),u}returni},t.exports=i},746:function(t,e,r){varn=r(498),o=r(747);e.mul=function(t,e){varr=newn(t.length+e.length-1);r.fill(0);for(vari=0;i<t.length;i++)for(vara=0;a<e.length;a++)r[i+a]^=o.mul(t[i],e[a]);returnr},e.mod=function(t,e){for(varr=newn(t);r.length-e.length>=0;){for(vari=r[0],a=0;a<e.length;a++)r[a]^=o.mul(e[a],i);for(varu=0;u<r.length&&0===r[u];)u++;r=r.slice(u)}returnr},e.generateECPolynomial=function(t){for(varr=newn([1]),i=0;i<t;i++)r=e.mul(r,[1,o.exp(i)]);returnr}},747:function(t,e,r){varn=r(498);if(n.alloc)varo=n.alloc(512),i=n.alloc(256);elseo=newn(512),i=newn(256);!function(){for(vart=1,e=0;e<255;e++)o[e]=t,i[t]=e,256&(t<<=1)&&(t^=285);for(e=255;e<512;e++)o[e]=o[e-255]}(),e.log=function(t){if(t<1)thrownewError("log("+t+")");returni[t]},e.exp=function(t){returno[t]},e.mul=function(t,e){return0===t||0===e?0:o[i[t]+i[e]]}},748:function(t,e,r){varn=r(479),o=r(631),i=r(551),a=r(480),u=r(632),s=r(550),f=n.getBCHDigit(7973);functionh(t,e){returna.getCharCountIndicator(t,e)+4}functionc(t,e){varr=0;returnt.forEach(function(t){varn=h(t.mode,e);r+=n+t.getBitsLength()}),r}e.from=function(t,e){returnu.isValid(t)?parseInt(t,10):e},e.getCapacity=function(t,e,r){if(!u.isValid(t))thrownewError("Invalid QR Code version");"undefined"===typeofr&&(r=a.BYTE);vari=8*(n.getSymbolTotalCodewords(t)-o.getTotalCodewordsCount(t,e));if(r===a.MIXED)returni;vars=i-h(r,t);switch(r){casea.NUMERIC:returnMath.floor(s/10*3);casea.ALPHANUMERIC:returnMath.floor(s/11*2);casea.KANJI:returnMath.floor(s/13);casea.BYTE:default:returnMath.floor(s/8)}},e.getBestVersionForData=function(t,r){varn,o=i.from(r,i.M);if(s(t)){if(t.length>1)returnfunction(t,r){for(varn=1;n<=40;n++)if(c(t,n)<=e.getCapacity(n,r,a.MIXED))returnn}(t,o);if(0===t.length)return1;n=t[0]}elsen=t;returnfunction(t,r,n){for(varo=1;o<=40;o++)if(r<=e.getCapacity(o,n,t))returno}(n.mode,n.getLength(),o)},e.getEncodedBits=function(t){if(!u.isValid(t)||t<7)thrownewError("Invalid QR Code version");for(vare=t<<12;n.getBCHDigit(e)-f>=0;)e^=7973<<n.getBCHDigit(e)-f;returnt<<12|e}},749:function(t,e,r){varn=r(479),o=n.getBCHDigit(1335);e.getEncodedBits=function(t,e){for(varr=t.bit<<3|e,i=r<<10;n.getBCHDigit(i)-o>=0;)i^=1335<<n.getBCHDigit(i)-o;return21522^(r<<10|i)}},750:function(t,e,r){varn=r(480),o=r(751),i=r(752),a=r(753),u=r(754),s=r(633),f=r(479),h=r(755);functionc(t){returnunescape(encodeURIComponent(t)).length}functionl(t,e,r){for(varn,o=[];null!==(n=t.exec(r));)o.push({data:n[0],index:n.index,mode:e,length:n[0].length});returno}functiong(t){vare,r,o=l(s.NUMERIC,n.NUMERIC,t),i=l(s.ALPHANUMERIC,n.ALPHANUMERIC,t);returnf.isKanjiModeEnabled()?(e=l(s.BYTE,n.BYTE,t),r=l(s.KANJI,n.KANJI,t)):(e=l(s.BYTE_KANJI,n.BYTE,t),r=[]),o.concat(i,e,r).sort(function(t,e){returnt.index-e.index}).map(function(t){return{data:t.data,mode:t.mode,length:t.length}})}functiond(t,e){switch(e){casen.NUMERIC:returno.getBitsLength(t);casen.ALPHANUMERIC:returni.getBitsLength(t);casen.KANJI:returnu.getBitsLength(t);casen.BYTE:returna.getBitsLength(t)}}functionp(t,e){varr,s=n.getBestModeForData(t);if((r=n.from(e,s))!==n.BYTE&&r.bit<s.bit)thrownewError('"'+t+'" cannot be encoded with mode '+n.toString(r)+".\n Suggested mode is: "+n.toString(s));switch(r!==n.KANJI||f.isKanjiModeEnabled()||(r=n.BYTE),r){casen.NUMERIC:returnnewo(t);casen.ALPHANUMERIC:returnnewi(t);casen.KANJI:returnnewu(t);casen.BYTE:returnnewa(t)}}e.fromArray=function(t){returnt.reduce(function(t,e){return"string"===typeofe?t.push(p(e,null)):e.data&&t.push(p(e.data,e.mode)),t},[])},e.fromString=function(t,r){for(varo=function(t,e){for(varr={},o={start:{}},i=["start"],a=0;a<t.length;a++){for(varu=t[a],s=[],f=0;f<u.length;f++){varh=u[f],c=""+a+f;s.push(c),r[c]={node:h,lastCount:0},o[c]={};for(varl=0;l<i.length;l++){varg=i[l];r[g]&&r[g].node.mode===h.mode?(o[g][c]=d(r[g].lastCount+h.length,h.mode)-d(r[g].lastCount,h.mode),r[g].lastCount+=h.length):(r[g]&&(r[g].lastCount=h.length),o[g][c]=d(h.length,h.mode)+4+n.getCharCountIndicator(h.mode,e))}}i=s}for(l=0;l<i.length;l++)o[i[l]].end=0;return{map:o,table:r}}(function(t){for(vare=[],r=0;r<t.length;r++){varo=t[r];switch(o.mode){casen.NUMERIC:e.push([o,{data:o.data,mode:n.ALPHANUMERIC,length:o.length},{data:o.data,mode:n.BYTE,length:o.length}]);break;casen.ALPHANUMERIC:e.push([o,{data:o.data,mode:n.BYTE,length:o.length}]);break;casen.KANJI:e.push([o,{data:o.data,mode:n.BYTE,length:c(o.data)}]);break;casen.BYTE:e.push([{data:o.data,mode:n.BYTE,length:c(o.data)}])}}returne}(g(t,f.isKanjiModeEnabled())),r),i=h.find_path(o.map,"start","end"),a=[],u=1;u<i.length-1;u++)a.push(o.table[i[u]].node);returne.fromArray(function(t){returnt.reduce(function(t,e){varr=t.length-1>=0?t[t.length-1]:null;returnr&&r.mode===e.mode?(t[t.length-1].data+=e.data,t):(t.push(e),t)},[])}(a))},e.rawSplit=function(t){returne.fromArray(g(t,f.isKanjiModeEnabled()))}},751:function(t,e,r){varn=r(480);functiono(t){this.mode=n.NUMERIC,this.data=t.toString()}o.getBitsLength=function(t){return10*Math.floor(t/3)+(t%3?t%3*3+1:0)},o.prototype.getLength=function(){returnthis.data.length},o.prototype.getBitsLength=function(){returno.getBitsLength(this.data.length)},o.prototype.write=function(t){vare,r,n;for(e=0;e+3<=this.data.length;e+=3)r=this.data.substr(e,3),n=parseInt(r,10),t.put(n,10);varo=this.data.length-e;o>0&&(r=this.data.substr(e),n=parseInt(r,10),t.put(n,3*o+1))},t.exports=o},752:function(t,e,r){varn=r(480),o=["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"," ","$","%","*","+","-",".","/",":"];functioni(t){this.mode=n.ALPHANUMERIC,this.data=t}i.getBitsLength=function(t){return11*Math.floor(t/2)+t%2*6},i.prototype.getLength=function(){returnthis.data.length},i.prototype.getBitsLength=function(){returni.getBitsLength(this.data.length)},i.prototype.write=function(t){vare;for(e=0;e+2<=this.data.length;e+=2){varr=45*o.indexOf(this.data[e]);r+=o.indexOf(this.data[e+1]),t.put(r,11)}this.data.length%2&&t.put(o.indexOf(this.data[e]),6)},t.exports=i},753:function(t,e,r){varn=r(498),o=r(480);functioni(t){this.mode=o.BYTE,this.data=newn(t)}i.getBitsLength=function(t){return8*t},i.prototype.getLength=function(){returnthis.data.length},i.prototype.getBitsLength=function(){returni.getBitsLength(this.data.length)},i.prototype.write=function(t){for(vare=0,r=this.data.length;e<r;e++)t.put(this.data[e],8)},t.exports=i},754:function(t,e,r){varn=r(480),o=r(479);functioni(t){this.mode=n.KANJI,this.data=t}i.getBitsLength=function(t){return13*t},i.prototype.getLength=function(){returnthis.data.length},i.prototype.getBitsLength=function(){returni.getBitsLength(this.data.length)},i.prototype.write=function(t){vare;for(e=0;e<this.data.length;e++){varr=o.toSJIS(this.data[e]);if(r>=33088&&r<=40956)r-=33088;else{if(!(r>=57408&&r<=60351))thrownewError("Invalid SJIS character: "+this.data[e]+"\nMake sure your charset is UTF-8");r-=49472}r=192*(r>>>8&255)+(255&r),t.put(r,13)}},t.exports=i},755:function(t,e,r){"use strict";varn={single_source_shortest_paths:function(t,e,r){varo={},i={};i[e]=0;vara,u,s,f,h,c,l,g=n.PriorityQueue.make();for(g.push(e,0);!g.empty();)for(sinu=(a=g.pop()).value,f=a.cost,h=t[u]||{})h.hasOwnProperty(s)&&(c=f+h[s],l=i[s],("undefined"===typeofi[s]||l>c)&&(i[s]=c,g.push(s,c),o[s]=u));if("undefined"!==typeofr&&"undefined"===typeofi[r]){vard=["Could not find a path from ",e," to ",r,"."].join("");thrownewError(d)}returno},extract_shortest_path_from_predecessor_list:function(t,e){for(varr=[],n=e;n;)r.push(n),t[n],n=t[n];returnr.reverse(),r},find_path:function(t,e,r){varo=n.single_source_shortest_paths(t,e,r);returnn.extract_shortest_path_from_predecessor_list(o,r)},PriorityQueue:{make:function(t){vare,r=n.PriorityQueue,o={};for(eint=t||{},r)r.hasOwnProperty(e)&&(o[e]=r[e]);returno.queue=[],o.sorter=t.sorter||r.default_sorter,o},default_sorter:function(t,e){returnt.cost-e.cost},push:function(t,e){varr={value:t,cost:e};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){returnthis.queue.shift()},empty:function(){return0===this.queue.length}}};t.exports=n},756:function(t,e,r){varn=r(634);e.render=function(t,e,r){varo=r,i=e;"undefined"!==typeofo||e&&e.getContext||(o=e,e=void0),e||(i=function(){try{returndocument.createElement("canvas")}catch(t){thrownewError("You need to specify a canvas element")}}()),o=n.getOptions(o);vara=n.getImageWidth(t.modules.size,o),u=i.getContext("2d"),s=u.createImageData(a,a);returnn.qrToImageData(s.data,t,o),function(t,e,r){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=r,e.width=r,e.style.height=r+"px",e.style.width=r+"px"}(u,i,a),u.putImageData(s,0,0),i},e.renderToDataURL=function(t,r,n){varo=n;"undefined"!==typeofo||r&&r.getContext||(o=r,r=void0),o||(o={});vari=e.render(t,r,o),a=o.type||"image/png",u=o.rendererOpts||{};returni.toDataURL(a,u.quality)}},757:function(t,e,r){varn=r(634);functiono(t,e){varr=t.a/255,n=e+'="'+t.hex+'"';returnr<1?n+" "+e+'-opacity="'+r.toFixed(2).slice(1)+'"':n}functioni(t,e,r){varn=t+e;return"undefined"!==typeofr&&(n+=" "+r),n}e.render=function(t,e,r){vara=n.getOptions(e),u=t.modules.size,s=t.modules.data,f=u+2*a.margin,h=a.color.light.a?"<path "+o(a.color.light,"fill")+' d="M0 0h'+f+"v"+f+'H0z"/>':"",c="<path "+o(a.color.dark,"stroke")+' d="'+function(t,e,r){for(varn="",o=0,a=!1,u=0,s=0;s<t.length;s++){varf=Math.floor(s%e),h=Math.floor(s/e);f||a||(a=!0),t[s]?(u++,s>0&&f>0&&t[s-1]||(n+=a?i("M",f+r,.5+h+r):i("m",o,0),o=0,a=!1),f+1<e&&t[s+1]||(n+=i("h",u),u=0)):o++}returnn}(s,u,a.margin)+'"/>',l='viewBox="0 0 '+f+" "+f+'"',g='<svg xmlns="http://www.w3.org/2000/svg" '+(a.width?'width="'+a.width+'" height="'+a.width+'" ':"")+l+' shape-rendering="crispEdges">'+h+c+"</svg>\n";return"function"===typeofr&&r(null,g),g}}}]);
//# sourceMappingURL=0.d70f16e5.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{435:function(t,e,r){varn=r(725),o=r(726),i=r(743),a=r(744);functionu(t,e,r,i,a){varu=[].slice.call(arguments,1),s=u.length,f="function"===typeofu[s-1];if(!f&&!n())thrownewError("Callback required as last argument");if(!f){if(s<1)thrownewError("Too few arguments provided");return1===s?(r=e,e=i=void0):2!==s||e.getContext||(i=r,r=e,e=void0),newPromise(function(n,a){try{varu=o.create(r,i);n(t(u,e,i))}catch(s){a(s)}})}if(s<2)thrownewError("Too few arguments provided");2===s?(a=r,r=e,e=i=void0):3===s&&(e.getContext&&"undefined"===typeofa?(a=i,i=void0):(a=i,i=r,r=e,e=void0));try{varh=o.create(r,i);a(null,t(h,e,i))}catch(c){a(c)}}e.create=o.create,e.toCanvas=u.bind(null,i.render),e.toDataURL=u.bind(null,i.renderToDataURL),e.toString=u.bind(null,function(t,e,r){returna.render(t,r)})},466:function(t,e){varr,n=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];e.getSymbolSize=function(t){if(!t)thrownewError('"version" cannot be null or undefined');if(t<1||t>40)thrownewError('"version" should be in range from 1 to 40');return4*t+17},e.getSymbolTotalCodewords=function(t){returnn[t]},e.getBCHDigit=function(t){for(vare=0;0!==t;)e++,t>>>=1;returne},e.setToSJISFunction=function(t){if("function"!==typeoft)thrownewError('"toSJISFunc" is not a valid function.');r=t},e.isKanjiModeEnabled=function(){return"undefined"!==typeofr},e.toSJIS=function(t){returnr(t)}},467:function(t,e,r){varn=r(619),o=r(620);e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(t,e){if(!t.ccBits)thrownewError("Invalid mode: "+t);if(!n.isValid(e))thrownewError("Invalid version: "+e);returne>=1&&e<10?t.ccBits[0]:e<27?t.ccBits[1]:t.ccBits[2]},e.getBestModeForData=function(t){returno.testNumeric(t)?e.NUMERIC:o.testAlphanumeric(t)?e.ALPHANUMERIC:o.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(t){if(t&&t.id)returnt.id;thrownewError("Invalid mode")},e.isValid=function(t){returnt&&t.bit&&t.ccBits},e.from=function(t,r){if(e.isValid(t))returnt;try{returnfunction(t){if("string"!==typeoft)thrownewError("Param is not a string");switch(t.toLowerCase()){case"numeric":returne.NUMERIC;case"alphanumeric":returne.ALPHANUMERIC;case"kanji":returne.KANJI;case"byte":returne.BYTE;default:thrownewError("Unknown mode: "+t)}}(t)}catch(n){returnr}}},485:function(t,e,r){"use strict";varn=r(537);i.TYPED_ARRAY_SUPPORT=function(){try{vart=newUint8Array(1);returnt.__proto__={__proto__:Uint8Array.prototype,foo:function(){return42}},42===t.foo()}catch(e){return!1}}();varo=i.TYPED_ARRAY_SUPPORT?2147483647:1073741823;functioni(t,e,r){returni.TYPED_ARRAY_SUPPORT||thisinstanceofi?"number"===typeoft?s(this,t):function(t,e,r,n){if("number"===typeofe)thrownewTypeError('"value" argument must not be a number');if("undefined"!==typeofArrayBuffer&&einstanceofArrayBuffer)returnfunction(t,e,r,n){if(r<0||e.byteLength<r)thrownewRangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))thrownewRangeError("'length' is out of bounds");varo;o=void0===r&&void0===n?newUint8Array(e):void0===n?newUint8Array(e,r):newUint8Array(e,r,n);i.TYPED_ARRAY_SUPPORT?o.__proto__=i.prototype:o=f(t,o);returno}(t,e,r,n);if("string"===typeofe)returnfunction(t,e){varr=0|c(e),n=u(t,r),o=n.write(e);o!==r&&(n=n.slice(0,o));returnn}(t,e);returnfunction(t,e){if(i.isBuffer(e)){varr=0|a(e.length),n=u(t,r);return0===n.length?n:(e.copy(n,0,0,r),n)}if(e){if("undefined"!==typeofArrayBuffer&&e.bufferinstanceofArrayBuffer||"length"ine)return"number"!==typeofe.length||(o=e.length)!==o?u(t,0):f(t,e);if("Buffer"===e.type&&Array.isArray(e.data))returnf(t,e.data)}varo;thrownewTypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}(this,t,e,r):newi(t,e,r)}functiona(t){if(t>=o)thrownewRangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return0|t}functionu(t,e){varr;returni.TYPED_ARRAY_SUPPORT?(r=newUint8Array(e)).__proto__=i.prototype:(null===(r=t)&&(r=newi(e)),r.length=e),r}functions(t,e){varr=u(t,e<0?0:0|a(e));if(!i.TYPED_ARRAY_SUPPORT)for(varn=0;n<e;++n)r[n]=0;returnr}functionf(t,e){for(varr=e.length<0?0:0|a(e.length),n=u(t,r),o=0;o<r;o+=1)n[o]=255&e[o];returnn}functionh(t,e){varr;e=e||1/0;for(varn=t.length,o=null,i=[],a=0;a<n;++a){if((r=t.charCodeAt(a))>55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}elseo&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}elseif(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}elseif(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))thrownewError("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}returni}functionc(t){returni.isBuffer(t)?t.length:"undefined"!==typeofArrayBuffer&&"function"===typeofArrayBuffer.isView&&(ArrayBuffer.isView(t)||tinstanceofArrayBuffer)?t.byteLength:("string"!==typeoft&&(t=""+t),0===t.length?0:h(t).length)}i.TYPED_ARRAY_SUPPORT&&(i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,"undefined"!==typeofSymbol&&Symbol.species&&i[Symbol.species]===i&&Object.defineProperty(i,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1})),i.prototype.write=function(t,e,r){void0===e?(r=this.length,e=0):void0===r&&"string"===typeofe?(r=this.length,e=0):isFinite(e)&&(e|=0,isFinite(r)?r|=0:r=void0);varn=this.length-e;if((void0===r||r>n)&&(r=n),t.length>0&&(r<0||e<0)||e>this.length)thrownewRangeError("Attempt to write outside buffer bounds");returnfunction(t,e,r,n){returnfunction(t,e,r,n){for(varo=0;o<n&&!(o+r>=e.length||o>=t.length);++o)e[o+r]=t[o];returno}(h(e,t.length-r),t,r,n)}(this,t,e,r)},i.prototype.slice=function(t,e){varr,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t),i.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=i.prototype;else{varo=e-t;r=newi(o,void0);for(vara=0;a<o;++a)r[a]=this[a+t]}returnr},i.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return0;if(0===t.length||0===this.length)return0;if(e<0)thrownewRangeError("targetStart out of bounds");if(r<0||r>=this.length)thrownewRangeError("sourceStart out of bounds");if(n<0)thrownewRangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);varo,a=n-r;if(this===t&&r<e&&e<n)for(o=a-1;o>=0;--o)t[o+e]=this[o+r];elseif(a<1e3||!i.TYPED_ARRAY_SUPPORT)for(o=0;o<a;++o)t[o+e]=this[o+r];elseUint8Array.prototype.set.call(t,this.subarray(r,r+a),e);returna},i.prototype.fill=function(t,e,r){if("string"===typeoft){if("string"===typeofe?(e=0,r=this.length):"string"===typeofr&&(r=this.length),1===t.length){varn=t.charCodeAt(0);n<256&&(t=n)}}else"number"===typeoft&&(t&=255);if(e<0||this.length<e||this.length<r)thrownewRangeError("Out of range index");if(r<=e)returnthis;varo;if(e>>>=0,r=void0===r?this.length:r>>>0,t||(t=0),"number"===typeoft)for(o=e;o<r;++o)this[o]=t;else{vara=i.isBuffer(t)?t:newi(t),u=a.length;for(o=0;o<r-e;++o)this[o+e]=a[o%u]}returnthis},i.concat=function(t,e){if(!n(t))thrownewTypeError('"list" argument must be an Array of Buffers');if(0===t.length)returnu(null,0);varr;if(void0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;varo=s(null,e),a=0;for(r=0;r<t.length;++r){varf=t[r];if(!i.isBuffer(f))thrownewTypeError('"list" argument must be an Array of Buffers');f.copy(o,a),a+=f.length}returno},i.byteLength=c,i.prototype._isBuffer=!0,i.isBuffer=function(t){return!(null==t||!t._isBuffer)},t.exports=i},537:function(t,e){varr={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},538:function(t,e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2},e.isValid=function(t){returnt&&"undefined"!==typeoft.bit&&t.bit>=0&&t.bit<4},e.from=function(t,r){if(e.isValid(t))returnt;try{returnfunction(t){if("string"!==typeoft)thrownewError("Param is not a string");switch(t.toLowerCase()){case"l":case"low":returne.L;case"m":case"medium":returne.M;case"q":case"quartile":returne.Q;case"h":case"high":returne.H;default:thrownewError("Unknown EC Level: "+t)}}(t)}catch(n){returnr}}},618:function(t,e,r){varn=r(538),o=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],i=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];e.getBlocksCount=function(t,e){switch(e){casen.L:returno[4*(t-1)+0];casen.M:returno[4*(t-1)+1];casen.Q:returno[4*(t-1)+2];casen.H:returno[4*(t-1)+3];default:return}},e.getTotalCodewordsCount=function(t,e){switch(e){casen.L:returni[4*(t-1)+0];casen.M:returni[4*(t-1)+1];casen.Q:returni[4*(t-1)+2];casen.H:returni[4*(t-1)+3];default:return}}},619:function(t,e){e.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}},620:function(t,e){varr="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",n="(?:(?![A-Z0-9 $%*+\\-./:]|"+(r=r.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+";e.KANJI=newRegExp(r,"g"),e.BYTE_KANJI=newRegExp("[^A-Z0-9 $%*+\\-./:]+","g"),e.BYTE=newRegExp(n,"g"),e.NUMERIC=newRegExp("[0-9]+","g"),e.ALPHANUMERIC=newRegExp("[A-Z $%*+\\-./:]+","g");varo=newRegExp("^"+r+"$"),i=newRegExp("^[0-9]+$"),a=newRegExp("^[A-Z0-9 $%*+\\-./:]+$");e.testKanji=function(t){returno.test(t)},e.testNumeric=function(t){returni.test(t)},e.testAlphanumeric=function(t){returna.test(t)}},621:function(t,e){functionr(t){if("string"!==typeoft)thrownewError("Color should be defined as hex string");vare=t.slice().replace("#","").split("");if(e.length<3||5===e.length||e.length>8)thrownewError("Invalid hex color: "+t);3!==e.length&&4!==e.length||(e=Array.prototype.concat.apply([],e.map(function(t){return[t,t]}))),6===e.length&&e.push("F","F");varr=parseInt(e.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:255&r,hex:"#"+e.slice(0,6).join("")}}e.getOptions=function(t){t||(t={}),t.color||(t.color={});vare="undefined"===typeoft.margin||null===t.margin||t.margin<0?4:t.margin,n=t.width&&t.width>=21?t.width:void0,o=t.scale||4;return{width:n,scale:n?4:o,margin:e,color:{dark:r(t.color.dark||"#000000ff"),light:r(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},e.getScale=function(t,e){returne.width&&e.width>=t+2*e.margin?e.width/(t+2*e.margin):e.scale},e.getImageWidth=function(t,r){varn=e.getScale(t,r);returnMath.floor((t+2*r.margin)*n)},e.qrToImageData=function(t,r,n){for(varo=r.modules.size,i=r.modules.data,a=e.getScale(o,n),u=Math.floor((o+2*n.margin)*a),s=n.margin*a,f=[n.color.light,n.color.dark],h=0;h<u;h++)for(varc=0;c<u;c++){varl=4*(h*u+c),g=n.color.light;if(h>=s&&c>=s&&h<u-s&&c<u-s)g=f[i[Math.floor((h-s)/a)*o+Math.floor((c-s)/a)]?1:0];t[l++]=g.r,t[l++]=g.g,t[l++]=g.b,t[l]=g.a}}},725:function(t,e){t.exports=function(){return"function"===typeofPromise&&Promise.prototype&&Promise.prototype.then}},726:function(t,e,r){varn=r(485),o=r(466),i=r(538),a=r(727),u=r(728),s=r(729),f=r(730),h=r(731),c=r(618),l=r(732),g=r(735),d=r(736),p=r(467),v=r(737),w=r(537);functiony(t,e,r){varn,o,i=t.size,a=d.getEncodedBits(e,r);for(n=0;n<15;n++)o=1===(a>>n&1),n<6?t.set(n,8,o,!0):n<8?t.set(n+1,8,o,!0):t.set(i-15+n,8,o,!0),n<8?t.set(8,i-n-1,o,!0):n<9?t.set(8,15-n-1+1,o,!0):t.set(8,15-n-1,o,!0);t.set(i-8,8,1,!0)}functionm(t,e,r){vari=newa;r.forEach(function(e){i.put(e.mode.bit,4),i.put(e.getLength(),p.getCharCountIndicator(e.mode,t)),e.write(i)});varu=8*(o.getSymbolTotalCodewords(t)-c.getTotalCodewordsCount(t,e));for(i.getLengthInBits()+4<=u&&i.put(0,4);i.getLengthInBits()%8!==0;)i.putBit(0);for(vars=(u-i.getLengthInBits())/8,f=0;f<s;f++)i.put(f%2?17:236,8);returnfunction(t,e,r){for(vari=o.getSymbolTotalCodewords(e),a=c.getTotalCodewordsCount(e,r),u=i-a,s=c.getBlocksCount(e,r),f=s-i%s,h=Math.floor(i/s),g=Math.floor(u/s),d=g+1,p=h-g,v=newl(p),w=0,y=newArray(s),m=newArray(s),E=0,A=newn(t.buffer),B=0;B<s;B++){varb=B<f?g:d;y[B]=A.slice(w,w+b),m[B]=v.encode(y[B]),w+=b,E=Math.max(E,b)}varP,R,T=newn(i),C=0;for(P=0;P<E;P++)for(R=0;R<s;R++)P<y[R].length&&(T[C++]=y[R][P]);for(P=0;P<p;P++)for(R=0;R<s;R++)T[C++]=m[R][P];returnT}(i,t,e)}functionE(t,e,r,n){vari;if(w(t))i=v.fromArray(t);else{if("string"!==typeoft)thrownewError("Invalid data");vara=e;if(!a){varc=v.rawSplit(t);a=g.getBestVersionForData(c,r)}i=v.fromString(t,a||40)}varl=g.getBestVersionForData(i,r);if(!l)thrownewError("The amount of data is too big to be stored in a QR Code");if(e){if(e<l)thrownewError("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+l+".\n")}elsee=l;vard=m(e,r,i),p=o.getSymbolSize(e),E=newu(p);returnfunction(t,e){for(varr=t.size,n=f.getPositions(e),o=0;o<n.length;o++)for(vari=n[o][0],a=n[o][1],u=-1;u<=7;u++)if(!(i+u<=-1||r<=i+u))for(vars=-1;s<=7;s++)a+s<=-1||r<=a+s||(u>=0&&u<=6&&(0===s||6===s)||s>=0&&s<=6&&(0===u||6===u)||u>=2&&u<=4&&s>=2&&s<=4?t.set(i+u,a+s,!0,!0):t.set(i+u,a+s,!1,!0))}(E,e),function(t){for(vare=t.size,r=8;r<e-8;r++){varn=r%2===0;t.set(r,6,n,!0),t.set(6,r,n,!0)}}(E),function(t,e){for(varr=s.getPositions(e),n=0;n<r.length;n++)for(varo=r[n][0],i=r[n][1],a=-2;a<=2;a++)for(varu=-2;u<=2;u++)-2===a||2===a||-2===u||2===u||0===a&&0===u?t.set(o+a,i+u,!0,!0):t.set(o+a,i+u,!1,!0)}(E,e),y(E,r,0),e>=7&&function(t,e){for(varr,n,o,i=t.size,a=g.getEncodedBits(e),u=0;u<18;u++)r=Math.floor(u/3),n=u%3+i-8-3,o=1===(a>>u&1),t.set(r,n,o,!0),t.set(n,r,o,!0)}(E,e),function(t,e){for(varr=t.size,n=-1,o=r-1,i=7,a=0,u=r-1;u>0;u-=2)for(6===u&&u--;;){for(vars=0;s<2;s++)if(!t.isReserved(o,u-s)){varf=!1;a<e.length&&(f=1===(e[a]>>>i&1)),t.set(o,u-s,f),-1===--i&&(a++,i=7)}if((o+=n)<0||r<=o){o-=n,n=-n;break}}}(E,d),isNaN(n)&&(n=h.getBestMask(E,y.bind(null,E,r))),h.applyMask(n,E),y(E,r,n),{modules:E,version:e,errorCorrectionLevel:r,maskPattern:n,segments:i}}e.create=function(t,e){if("undefined"===typeoft||""===t)thrownewError("No input text");varr,n,a=i.M;return"undefined"!==typeofe&&(a=i.from(e.errorCorrectionLevel,i.M),r=g.from(e.version),n=h.from(e.maskPattern),e.toSJISFunc&&o.setToSJISFunction(e.toSJISFunc)),E(t,r,a,n)}},727:function(t,e){functionr(){this.buffer=[],this.length=0}r.prototype={get:function(t){vare=Math.floor(t/8);return1===(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(varr=0;r<e;r++)this.putBit(1===(t>>>e-r-1&1))},getLengthInBits:function(){returnthis.length},putBit:function(t){vare=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},728:function(t,e,r){varn=r(485);functiono(t){if(!t||t<1)thrownewError("BitMatrix size must be defined and greater than 0");this.size=t,this.data=newn(t*t),this.data.fill(0),this.reservedBit=newn(t*t),this.reservedBit.fill(0)}o.prototype.set=function(t,e,r,n){varo=t*this.size+e;this.data[o]=r,n&&(this.reservedBit[o]=!0)},o.prototype.get=function(t,e){returnthis.data[t*this.size+e]},o.prototype.xor=function(t,e,r){this.data[t*this.size+e]^=r},o.prototype.isReserved=function(t,e){returnthis.reservedBit[t*this.size+e]},t.exports=o},729:function(t,e,r){varn=r(466).getSymbolSize;e.getRowColCoords=function(t){if(1===t)return[];for(vare=Math.floor(t/7)+2,r=n(t),o=145===r?26:2*Math.ceil((r-13)/(2*e-2)),i=[r-7],a=1;a<e-1;a++)i[a]=i[a-1]-o;returni.push(6),i.reverse()},e.getPositions=function(t){for(varr=[],n=e.getRowColCoords(t),o=n.length,i=0;i<o;i++)for(vara=0;a<o;a++)0===i&&0===a||0===i&&a===o-1||i===o-1&&0===a||r.push([n[i],n[a]]);returnr}},730:function(t,e,r){varn=r(466).getSymbolSize;e.getPositions=function(t){vare=n(t);return[[0,0],[e-7,0],[0,e-7]]}},731:function(t,e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};varr=3,n=3,o=40,i=10;functiona(t,r,n){switch(t){casee.Patterns.PATTERN000:return(r+n)%2===0;casee.Patterns.PATTERN001:returnr%2===0;casee.Patterns.PATTERN010:returnn%3===0;casee.Patterns.PATTERN011:return(r+n)%3===0;casee.Patterns.PATTERN100:return(Math.floor(r/2)+Math.floor(n/3))%2===0;casee.Patterns.PATTERN101:returnr*n%2+r*n%3===0;casee.Patterns.PATTERN110:return(r*n%2+r*n%3)%2===0;casee.Patterns.PATTERN111:return(r*n%3+(r+n)%2)%2===0;default:thrownewError("bad maskPattern:"+t)}}e.isValid=function(t){returnnull!=t&&""!==t&&!isNaN(t)&&t>=0&&t<=7},e.from=function(t){returne.isValid(t)?parseInt(t,10):void0},e.getPenaltyN1=function(t){for(vare=t.size,n=0,o=0,i=0,a=null,u=null,s=0;s<e;s++){o=i=0,a=u=null;for(varf=0;f<e;f++){varh=t.get(s,f);h===a?o++:(o>=5&&(n+=r+(o-5)),a=h,o=1),(h=t.get(f,s))===u?i++:(i>=5&&(n+=r+(i-5)),u=h,i=1)}o>=5&&(n+=r+(o-5)),i>=5&&(n+=r+(i-5))}returnn},e.getPenaltyN2=function(t){for(vare=t.size,r=0,o=0;o<e-1;o++)for(vari=0;i<e-1;i++){vara=t.get(o,i)+t.get(o,i+1)+t.get(o+1,i)+t.get(o+1,i+1);4!==a&&0!==a||r++}returnr*n},e.getPenaltyN3=function(t){for(vare=t.size,r=0,n=0,i=0,a=0;a<e;a++){n=i=0;for(varu=0;u<e;u++)n=n<<1&2047|t.get(a,u),u>=10&&(1488===n||93===n)&&r++,i=i<<1&2047|t.get(u,a),u>=10&&(1488===i||93===i)&&r++}returnr*o},e.getPenaltyN4=function(t){for(vare=0,r=t.data.length,n=0;n<r;n++)e+=t.data[n];returnMath.abs(Math.ceil(100*e/r/5)-10)*i},e.applyMask=function(t,e){for(varr=e.size,n=0;n<r;n++)for(varo=0;o<r;o++)e.isReserved(o,n)||e.xor(o,n,a(t,o,n))},e.getBestMask=function(t,r){for(varn=Object.keys(e.Patterns).length,o=0,i=1/0,a=0;a<n;a++){r(a),e.applyMask(a,t);varu=e.getPenaltyN1(t)+e.getPenaltyN2(t)+e.getPenaltyN3(t)+e.getPenaltyN4(t);e.applyMask(a,t),u<i&&(i=u,o=a)}returno}},732:function(t,e,r){varn=r(485),o=r(733);functioni(t){this.genPoly=void0,this.degree=t,this.degree&&this.initialize(this.degree)}i.prototype.initialize=function(t){this.degree=t,this.genPoly=o.generateECPolynomial(this.degree)},i.prototype.encode=function(t){if(!this.genPoly)thrownewError("Encoder not initialized");vare=newn(this.degree);e.fill(0);varr=n.concat([t,e],t.length+this.degree),i=o.mod(r,this.genPoly),a=this.degree-i.length;if(a>0){varu=newn(this.degree);returnu.fill(0),i.copy(u,a),u}returni},t.exports=i},733:function(t,e,r){varn=r(485),o=r(734);e.mul=function(t,e){varr=newn(t.length+e.length-1);r.fill(0);for(vari=0;i<t.length;i++)for(vara=0;a<e.length;a++)r[i+a]^=o.mul(t[i],e[a]);returnr},e.mod=function(t,e){for(varr=newn(t);r.length-e.length>=0;){for(vari=r[0],a=0;a<e.length;a++)r[a]^=o.mul(e[a],i);for(varu=0;u<r.length&&0===r[u];)u++;r=r.slice(u)}returnr},e.generateECPolynomial=function(t){for(varr=newn([1]),i=0;i<t;i++)r=e.mul(r,[1,o.exp(i)]);returnr}},734:function(t,e,r){varn=r(485);if(n.alloc)varo=n.alloc(512),i=n.alloc(256);elseo=newn(512),i=newn(256);!function(){for(vart=1,e=0;e<255;e++)o[e]=t,i[t]=e,256&(t<<=1)&&(t^=285);for(e=255;e<512;e++)o[e]=o[e-255]}(),e.log=function(t){if(t<1)thrownewError("log("+t+")");returni[t]},e.exp=function(t){returno[t]},e.mul=function(t,e){return0===t||0===e?0:o[i[t]+i[e]]}},735:function(t,e,r){varn=r(466),o=r(618),i=r(538),a=r(467),u=r(619),s=r(537),f=n.getBCHDigit(7973);functionh(t,e){returna.getCharCountIndicator(t,e)+4}functionc(t,e){varr=0;returnt.forEach(function(t){varn=h(t.mode,e);r+=n+t.getBitsLength()}),r}e.from=function(t,e){returnu.isValid(t)?parseInt(t,10):e},e.getCapacity=function(t,e,r){if(!u.isValid(t))thrownewError("Invalid QR Code version");"undefined"===typeofr&&(r=a.BYTE);vari=8*(n.getSymbolTotalCodewords(t)-o.getTotalCodewordsCount(t,e));if(r===a.MIXED)returni;vars=i-h(r,t);switch(r){casea.NUMERIC:returnMath.floor(s/10*3);casea.ALPHANUMERIC:returnMath.floor(s/11*2);casea.KANJI:returnMath.floor(s/13);casea.BYTE:default:returnMath.floor(s/8)}},e.getBestVersionForData=function(t,r){varn,o=i.from(r,i.M);if(s(t)){if(t.length>1)returnfunction(t,r){for(varn=1;n<=40;n++)if(c(t,n)<=e.getCapacity(n,r,a.MIXED))returnn}(t,o);if(0===t.length)return1;n=t[0]}elsen=t;returnfunction(t,r,n){for(varo=1;o<=40;o++)if(r<=e.getCapacity(o,n,t))returno}(n.mode,n.getLength(),o)},e.getEncodedBits=function(t){if(!u.isValid(t)||t<7)thrownewError("Invalid QR Code version");for(vare=t<<12;n.getBCHDigit(e)-f>=0;)e^=7973<<n.getBCHDigit(e)-f;returnt<<12|e}},736:function(t,e,r){varn=r(466),o=n.getBCHDigit(1335);e.getEncodedBits=function(t,e){for(varr=t.bit<<3|e,i=r<<10;n.getBCHDigit(i)-o>=0;)i^=1335<<n.getBCHDigit(i)-o;return21522^(r<<10|i)}},737:function(t,e,r){varn=r(467),o=r(738),i=r(739),a=r(740),u=r(741),s=r(620),f=r(466),h=r(742);functionc(t){returnunescape(encodeURIComponent(t)).length}functionl(t,e,r){for(varn,o=[];null!==(n=t.exec(r));)o.push({data:n[0],index:n.index,mode:e,length:n[0].length});returno}functiong(t){vare,r,o=l(s.NUMERIC,n.NUMERIC,t),i=l(s.ALPHANUMERIC,n.ALPHANUMERIC,t);returnf.isKanjiModeEnabled()?(e=l(s.BYTE,n.BYTE,t),r=l(s.KANJI,n.KANJI,t)):(e=l(s.BYTE_KANJI,n.BYTE,t),r=[]),o.concat(i,e,r).sort(function(t,e){returnt.index-e.index}).map(function(t){return{data:t.data,mode:t.mode,length:t.length}})}functiond(t,e){switch(e){casen.NUMERIC:returno.getBitsLength(t);casen.ALPHANUMERIC:returni.getBitsLength(t);casen.KANJI:returnu.getBitsLength(t);casen.BYTE:returna.getBitsLength(t)}}functionp(t,e){varr,s=n.getBestModeForData(t);if((r=n.from(e,s))!==n.BYTE&&r.bit<s.bit)thrownewError('"'+t+'" cannot be encoded with mode '+n.toString(r)+".\n Suggested mode is: "+n.toString(s));switch(r!==n.KANJI||f.isKanjiModeEnabled()||(r=n.BYTE),r){casen.NUMERIC:returnnewo(t);casen.ALPHANUMERIC:returnnewi(t);casen.KANJI:returnnewu(t);casen.BYTE:returnnewa(t)}}e.fromArray=function(t){returnt.reduce(function(t,e){return"string"===typeofe?t.push(p(e,null)):e.data&&t.push(p(e.data,e.mode)),t},[])},e.fromString=function(t,r){for(varo=function(t,e){for(varr={},o={start:{}},i=["start"],a=0;a<t.length;a++){for(varu=t[a],s=[],f=0;f<u.length;f++){varh=u[f],c=""+a+f;s.push(c),r[c]={node:h,lastCount:0},o[c]={};for(varl=0;l<i.length;l++){varg=i[l];r[g]&&r[g].node.mode===h.mode?(o[g][c]=d(r[g].lastCount+h.length,h.mode)-d(r[g].lastCount,h.mode),r[g].lastCount+=h.length):(r[g]&&(r[g].lastCount=h.length),o[g][c]=d(h.length,h.mode)+4+n.getCharCountIndicator(h.mode,e))}}i=s}for(l=0;l<i.length;l++)o[i[l]].end=0;return{map:o,table:r}}(function(t){for(vare=[],r=0;r<t.length;r++){varo=t[r];switch(o.mode){casen.NUMERIC:e.push([o,{data:o.data,mode:n.ALPHANUMERIC,length:o.length},{data:o.data,mode:n.BYTE,length:o.length}]);break;casen.ALPHANUMERIC:e.push([o,{data:o.data,mode:n.BYTE,length:o.length}]);break;casen.KANJI:e.push([o,{data:o.data,mode:n.BYTE,length:c(o.data)}]);break;casen.BYTE:e.push([{data:o.data,mode:n.BYTE,length:c(o.data)}])}}returne}(g(t,f.isKanjiModeEnabled())),r),i=h.find_path(o.map,"start","end"),a=[],u=1;u<i.length-1;u++)a.push(o.table[i[u]].node);returne.fromArray(function(t){returnt.reduce(function(t,e){varr=t.length-1>=0?t[t.length-1]:null;returnr&&r.mode===e.mode?(t[t.length-1].data+=e.data,t):(t.push(e),t)},[])}(a))},e.rawSplit=function(t){returne.fromArray(g(t,f.isKanjiModeEnabled()))}},738:function(t,e,r){varn=r(467);functiono(t){this.mode=n.NUMERIC,this.data=t.toString()}o.getBitsLength=function(t){return10*Math.floor(t/3)+(t%3?t%3*3+1:0)},o.prototype.getLength=function(){returnthis.data.length},o.prototype.getBitsLength=function(){returno.getBitsLength(this.data.length)},o.prototype.write=function(t){vare,r,n;for(e=0;e+3<=this.data.length;e+=3)r=this.data.substr(e,3),n=parseInt(r,10),t.put(n,10);varo=this.data.length-e;o>0&&(r=this.data.substr(e),n=parseInt(r,10),t.put(n,3*o+1))},t.exports=o},739:function(t,e,r){varn=r(467),o=["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"," ","$","%","*","+","-",".","/",":"];functioni(t){this.mode=n.ALPHANUMERIC,this.data=t}i.getBitsLength=function(t){return11*Math.floor(t/2)+t%2*6},i.prototype.getLength=function(){returnthis.data.length},i.prototype.getBitsLength=function(){returni.getBitsLength(this.data.length)},i.prototype.write=function(t){vare;for(e=0;e+2<=this.data.length;e+=2){varr=45*o.indexOf(this.data[e]);r+=o.indexOf(this.data[e+1]),t.put(r,11)}this.data.length%2&&t.put(o.indexOf(this.data[e]),6)},t.exports=i},740:function(t,e,r){varn=r(485),o=r(467);functioni(t){this.mode=o.BYTE,this.data=newn(t)}i.getBitsLength=function(t){return8*t},i.prototype.getLength=function(){returnthis.data.length},i.prototype.getBitsLength=function(){returni.getBitsLength(this.data.length)},i.prototype.write=function(t){for(vare=0,r=this.data.length;e<r;e++)t.put(this.data[e],8)},t.exports=i},741:function(t,e,r){varn=r(467),o=r(466);functioni(t){this.mode=n.KANJI,this.data=t}i.getBitsLength=function(t){return13*t},i.prototype.getLength=function(){returnthis.data.length},i.prototype.getBitsLength=function(){returni.getBitsLength(this.data.length)},i.prototype.write=function(t){vare;for(e=0;e<this.data.length;e++){varr=o.toSJIS(this.data[e]);if(r>=33088&&r<=40956)r-=33088;else{if(!(r>=57408&&r<=60351))thrownewError("Invalid SJIS character: "+this.data[e]+"\nMake sure your charset is UTF-8");r-=49472}r=192*(r>>>8&255)+(255&r),t.put(r,13)}},t.exports=i},742:function(t,e,r){"use strict";varn={single_source_shortest_paths:function(t,e,r){varo={},i={};i[e]=0;vara,u,s,f,h,c,l,g=n.PriorityQueue.make();for(g.push(e,0);!g.empty();)for(sinu=(a=g.pop()).value,f=a.cost,h=t[u]||{})h.hasOwnProperty(s)&&(c=f+h[s],l=i[s],("undefined"===typeofi[s]||l>c)&&(i[s]=c,g.push(s,c),o[s]=u));if("undefined"!==typeofr&&"undefined"===typeofi[r]){vard=["Could not find a path from ",e," to ",r,"."].join("");thrownewError(d)}returno},extract_shortest_path_from_predecessor_list:function(t,e){for(varr=[],n=e;n;)r.push(n),t[n],n=t[n];returnr.reverse(),r},find_path:function(t,e,r){varo=n.single_source_shortest_paths(t,e,r);returnn.extract_shortest_path_from_predecessor_list(o,r)},PriorityQueue:{make:function(t){vare,r=n.PriorityQueue,o={};for(eint=t||{},r)r.hasOwnProperty(e)&&(o[e]=r[e]);returno.queue=[],o.sorter=t.sorter||r.default_sorter,o},default_sorter:function(t,e){returnt.cost-e.cost},push:function(t,e){varr={value:t,cost:e};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){returnthis.queue.shift()},empty:function(){return0===this.queue.length}}};t.exports=n},743:function(t,e,r){varn=r(621);e.render=function(t,e,r){varo=r,i=e;"undefined"!==typeofo||e&&e.getContext||(o=e,e=void0),e||(i=function(){try{returndocument.createElement("canvas")}catch(t){thrownewError("You need to specify a canvas element")}}()),o=n.getOptions(o);vara=n.getImageWidth(t.modules.size,o),u=i.getContext("2d"),s=u.createImageData(a,a);returnn.qrToImageData(s.data,t,o),function(t,e,r){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=r,e.width=r,e.style.height=r+"px",e.style.width=r+"px"}(u,i,a),u.putImageData(s,0,0),i},e.renderToDataURL=function(t,r,n){varo=n;"undefined"!==typeofo||r&&r.getContext||(o=r,r=void0),o||(o={});vari=e.render(t,r,o),a=o.type||"image/png",u=o.rendererOpts||{};returni.toDataURL(a,u.quality)}},744:function(t,e,r){varn=r(621);functiono(t,e){varr=t.a/255,n=e+'="'+t.hex+'"';returnr<1?n+" "+e+'-opacity="'+r.toFixed(2).slice(1)+'"':n}functioni(t,e,r){varn=t+e;return"undefined"!==typeofr&&(n+=" "+r),n}e.render=function(t,e,r){vara=n.getOptions(e),u=t.modules.size,s=t.modules.data,f=u+2*a.margin,h=a.color.light.a?"<path "+o(a.color.light,"fill")+' d="M0 0h'+f+"v"+f+'H0z"/>':"",c="<path "+o(a.color.dark,"stroke")+' d="'+function(t,e,r){for(varn="",o=0,a=!1,u=0,s=0;s<t.length;s++){varf=Math.floor(s%e),h=Math.floor(s/e);f||a||(a=!0),t[s]?(u++,s>0&&f>0&&t[s-1]||(n+=a?i("M",f+r,.5+h+r):i("m",o,0),o=0,a=!1),f+1<e&&t[s+1]||(n+=i("h",u),u=0)):o++}returnn}(s,u,a.margin)+'"/>',l='viewBox="0 0 '+f+" "+f+'"',g='<svg xmlns="http://www.w3.org/2000/svg" '+(a.width?'width="'+a.width+'" height="'+a.width+'" ':"")+l+' shape-rendering="crispEdges">'+h+c+"</svg>\n";return"function"===typeofr&&r(null,g),g}}}]);