chunk-438269fc.5a4c088c.js 28 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-438269fc"],{c31d:function(t,r,e){"use strict";function n(){return n=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t},n.apply(this,arguments)}e.d(r,"a",(function(){return n}))},e0d33:function(t,r,e){var n,o,i,a=function(){var t=function(t,r){var n=236,i=17,h=t,v=e[r],d=null,w=0,y=null,C=[],A={},m=function(t,r){w=4*h+17,d=function(t){for(var r=new Array(t),e=0;e<t;e+=1){r[e]=new Array(t);for(var n=0;n<t;n+=1)r[e][n]=null}return r}(w),B(0,0),B(w-7,0),B(0,w-7),T(),b(),x(t,r),h>=7&&k(t),null==y&&(y=E(h,v,C)),D(y,r)},B=function(t,r){for(var e=-1;e<=7;e+=1)if(!(t+e<=-1||w<=t+e))for(var n=-1;n<=7;n+=1)r+n<=-1||w<=r+n||(d[t+e][r+n]=0<=e&&e<=6&&(0==n||6==n)||0<=n&&n<=6&&(0==e||6==e)||2<=e&&e<=4&&2<=n&&n<=4)},M=function(){for(var t=0,r=0,e=0;e<8;e+=1){m(!0,e);var n=o.getLostPoint(A);(0==e||t>n)&&(t=n,r=e)}return r},b=function(){for(var t=8;t<w-8;t+=1)null==d[t][6]&&(d[t][6]=t%2==0);for(var r=8;r<w-8;r+=1)null==d[6][r]&&(d[6][r]=r%2==0)},T=function(){for(var t=o.getPatternPosition(h),r=0;r<t.length;r+=1)for(var e=0;e<t.length;e+=1){var n=t[r],i=t[e];if(null==d[n][i])for(var a=-2;a<=2;a+=1)for(var u=-2;u<=2;u+=1)d[n+a][i+u]=-2==a||2==a||-2==u||2==u||0==a&&0==u}},k=function(t){for(var r=o.getBCHTypeNumber(h),e=0;e<18;e+=1){var n=!t&&1==(r>>e&1);d[Math.floor(e/3)][e%3+w-8-3]=n}for(e=0;e<18;e+=1){n=!t&&1==(r>>e&1);d[e%3+w-8-3][Math.floor(e/3)]=n}},x=function(t,r){for(var e=v<<3|r,n=o.getBCHTypeInfo(e),i=0;i<15;i+=1){var a=!t&&1==(n>>i&1);i<6?d[i][8]=a:i<8?d[i+1][8]=a:d[w-15+i][8]=a}for(i=0;i<15;i+=1){a=!t&&1==(n>>i&1);i<8?d[8][w-i-1]=a:i<9?d[8][15-i-1+1]=a:d[8][15-i-1]=a}d[w-8][8]=!t},D=function(t,r){for(var e=-1,n=w-1,i=7,a=0,u=o.getMaskFunction(r),f=w-1;f>0;f-=2){6==f&&(f-=1);while(1){for(var c=0;c<2;c+=1)if(null==d[n][f-c]){var l=!1;a<t.length&&(l=1==(t[a]>>>i&1));var s=u(n,f-c);s&&(l=!l),d[n][f-c]=l,i-=1,-1==i&&(a+=1,i=7)}if(n+=e,n<0||w<=n){n-=e,e=-e;break}}}},S=function(t,r){for(var e=0,n=0,i=0,u=new Array(r.length),f=new Array(r.length),c=0;c<r.length;c+=1){var l=r[c].dataCount,s=r[c].totalCount-l;n=Math.max(n,l),i=Math.max(i,s),u[c]=new Array(l);for(var g=0;g<u[c].length;g+=1)u[c][g]=255&t.getBuffer()[g+e];e+=l;var h=o.getErrorCorrectPolynomial(s),v=a(u[c],h.getLength()-1),d=v.mod(h);f[c]=new Array(h.getLength()-1);for(g=0;g<f[c].length;g+=1){var w=g+d.getLength()-f[c].length;f[c][g]=w>=0?d.getAt(w):0}}var p=0;for(g=0;g<r.length;g+=1)p+=r[g].totalCount;var y=new Array(p),C=0;for(g=0;g<n;g+=1)for(c=0;c<r.length;c+=1)g<u[c].length&&(y[C]=u[c][g],C+=1);for(g=0;g<i;g+=1)for(c=0;c<r.length;c+=1)g<f[c].length&&(y[C]=f[c][g],C+=1);return y},E=function(t,r,e){for(var a=u.getRSBlocks(t,r),c=f(),l=0;l<e.length;l+=1){var s=e[l];c.put(s.getMode(),4),c.put(s.getLength(),o.getLengthInBits(s.getMode(),t)),s.write(c)}var g=0;for(l=0;l<a.length;l+=1)g+=a[l].dataCount;if(c.getLengthInBits()>8*g)throw"code length overflow. ("+c.getLengthInBits()+">"+8*g+")";c.getLengthInBits()+4<=8*g&&c.put(0,4);while(c.getLengthInBits()%8!=0)c.putBit(!1);while(1){if(c.getLengthInBits()>=8*g)break;if(c.put(n,8),c.getLengthInBits()>=8*g)break;c.put(i,8)}return S(c,a)};A.addData=function(t,r){r=r||"Byte";var e=null;switch(r){case"Numeric":e=c(t);break;case"Alphanumeric":e=l(t);break;case"Byte":e=s(t);break;case"Kanji":e=g(t);break;default:throw"mode:"+r}C.push(e),y=null},A.isDark=function(t,r){if(t<0||w<=t||r<0||w<=r)throw t+","+r;return d[t][r]},A.getModuleCount=function(){return w},A.make=function(){if(h<1){for(var t=1;t<40;t++){for(var r=u.getRSBlocks(t,v),e=f(),n=0;n<C.length;n++){var i=C[n];e.put(i.getMode(),4),e.put(i.getLength(),o.getLengthInBits(i.getMode(),t)),i.write(e)}var a=0;for(n=0;n<r.length;n++)a+=r[n].dataCount;if(e.getLengthInBits()<=8*a)break}h=t}m(!1,M())},A.createTableTag=function(t,r){t=t||2,r="undefined"==typeof r?4*t:r;var e="";e+='<table style="',e+=" border-width: 0px; border-style: none;",e+=" border-collapse: collapse;",e+=" padding: 0px; margin: "+r+"px;",e+='">',e+="<tbody>";for(var n=0;n<A.getModuleCount();n+=1){e+="<tr>";for(var o=0;o<A.getModuleCount();o+=1)e+='<td style="',e+=" border-width: 0px; border-style: none;",e+=" border-collapse: collapse;",e+=" padding: 0px; margin: 0px;",e+=" width: "+t+"px;",e+=" height: "+t+"px;",e+=" background-color: ",e+=A.isDark(n,o)?"#000000":"#ffffff",e+=";",e+='"/>';e+="</tr>"}return e+="</tbody>",e+="</table>",e},A.createSvgTag=function(t,r,e,n){var o={};"object"==typeof arguments[0]&&(o=arguments[0],t=o.cellSize,r=o.margin,e=o.alt,n=o.title),t=t||2,r="undefined"==typeof r?4*t:r,e="string"===typeof e?{text:e}:e||{},e.text=e.text||null,e.id=e.text?e.id||"qrcode-description":null,n="string"===typeof n?{text:n}:n||{},n.text=n.text||null,n.id=n.text?n.id||"qrcode-title":null;var i,a,u,f,c,l=A.getModuleCount()*t+2*r,s="";for(c="l"+t+",0 0,"+t+" -"+t+",0 0,-"+t+"z ",s+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',s+=o.scalable?"":' width="'+l+'px" height="'+l+'px"',s+=' viewBox="0 0 '+l+" "+l+'" ',s+=' preserveAspectRatio="xMinYMin meet"',s+=n.text||e.text?' role="img" aria-labelledby="'+L([n.id,e.id].join(" ").trim())+'"':"",s+=">",s+=n.text?'<title id="'+L(n.id)+'">'+L(n.text)+"</title>":"",s+=e.text?'<description id="'+L(e.id)+'">'+L(e.text)+"</description>":"",s+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',s+='<path d="',u=0;u<A.getModuleCount();u+=1)for(f=u*t+r,i=0;i<A.getModuleCount();i+=1)A.isDark(u,i)&&(a=i*t+r,s+="M"+a+","+f+c);return s+='" stroke="transparent" fill="black"/>',s+="</svg>",s},A.createDataURL=function(t,r){t=t||2,r="undefined"==typeof r?4*t:r;var e=A.getModuleCount()*t+2*r,n=r,o=e-r;return p(e,e,(function(r,e){if(n<=r&&r<o&&n<=e&&e<o){var i=Math.floor((r-n)/t),a=Math.floor((e-n)/t);return A.isDark(a,i)?0:1}return 1}))},A.createImgTag=function(t,r,e){t=t||2,r="undefined"==typeof r?4*t:r;var n=A.getModuleCount()*t+2*r,o="";return o+="<img",o+=' src="',o+=A.createDataURL(t,r),o+='"',o+=' width="',o+=n,o+='"',o+=' height="',o+=n,o+='"',e&&(o+=' alt="',o+=L(e),o+='"'),o+="/>",o};var L=function(t){for(var r="",e=0;e<t.length;e+=1){var n=t.charAt(e);switch(n){case"<":r+="&lt;";break;case">":r+="&gt;";break;case"&":r+="&amp;";break;case'"':r+="&quot;";break;default:r+=n;break}}return r},O=function(t){var r=1;t="undefined"==typeof t?2*r:t;var e,n,o,i,a,u=A.getModuleCount()*r+2*t,f=t,c=u-t,l={"██":"█","█ ":"▀"," █":"▄"," ":" "},s={"██":"▀","█ ":"▀"," █":" "," ":" "},g="";for(e=0;e<u;e+=2){for(o=Math.floor((e-f)/r),i=Math.floor((e+1-f)/r),n=0;n<u;n+=1)a="█",f<=n&&n<c&&f<=e&&e<c&&A.isDark(o,Math.floor((n-f)/r))&&(a=" "),f<=n&&n<c&&f<=e+1&&e+1<c&&A.isDark(i,Math.floor((n-f)/r))?a+=" ":a+="█",g+=t<1&&e+1>=c?s[a]:l[a];g+="\n"}return u%2&&t>0?g.substring(0,g.length-u-1)+Array(u+1).join("▀"):g.substring(0,g.length-1)};return A.createASCII=function(t,r){if(t=t||1,t<2)return O(r);t-=1,r="undefined"==typeof r?2*t:r;var e,n,o,i,a=A.getModuleCount()*t+2*r,u=r,f=a-r,c=Array(t+1).join("██"),l=Array(t+1).join(" "),s="",g="";for(e=0;e<a;e+=1){for(o=Math.floor((e-u)/t),g="",n=0;n<a;n+=1)i=1,u<=n&&n<f&&u<=e&&e<f&&A.isDark(o,Math.floor((n-u)/t))&&(i=0),g+=i?c:l;for(o=0;o<t;o+=1)s+=g+"\n"}return s.substring(0,s.length-1)},A.renderTo2dContext=function(t,r){r=r||2;for(var e=A.getModuleCount(),n=0;n<e;n++)for(var o=0;o<e;o++)t.fillStyle=A.isDark(n,o)?"black":"white",t.fillRect(n*r,o*r,r,r)},A};t.stringToBytesFuncs={default:function(t){for(var r=[],e=0;e<t.length;e+=1){var n=t.charCodeAt(e);r.push(255&n)}return r}},t.stringToBytes=t.stringToBytesFuncs["default"],t.createStringToBytes=function(t,r){var e=function(){var e=d(t),n=function(){var t=e.read();if(-1==t)throw"eof";return t},o=0,i={};while(1){var a=e.read();if(-1==a)break;var u=n(),f=n(),c=n(),l=String.fromCharCode(a<<8|u),s=f<<8|c;i[l]=s,o+=1}if(o!=r)throw o+" != "+r;return i}(),n="?".charCodeAt(0);return function(t){for(var r=[],o=0;o<t.length;o+=1){var i=t.charCodeAt(o);if(i<128)r.push(i);else{var a=e[t.charAt(o)];"number"==typeof a?(255&a)==a?r.push(a):(r.push(a>>>8),r.push(255&a)):r.push(n)}}return r}};var r={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},e={L:1,M:0,Q:3,H:2},n={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},o=function(){var t=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],e=1335,o=7973,u=21522,f={},c=function(t){var r=0;while(0!=t)r+=1,t>>>=1;return r};return f.getBCHTypeInfo=function(t){var r=t<<10;while(c(r)-c(e)>=0)r^=e<<c(r)-c(e);return(t<<10|r)^u},f.getBCHTypeNumber=function(t){var r=t<<12;while(c(r)-c(o)>=0)r^=o<<c(r)-c(o);return t<<12|r},f.getPatternPosition=function(r){return t[r-1]},f.getMaskFunction=function(t){switch(t){case n.PATTERN000:return function(t,r){return(t+r)%2==0};case n.PATTERN001:return function(t,r){return t%2==0};case n.PATTERN010:return function(t,r){return r%3==0};case n.PATTERN011:return function(t,r){return(t+r)%3==0};case n.PATTERN100:return function(t,r){return(Math.floor(t/2)+Math.floor(r/3))%2==0};case n.PATTERN101:return function(t,r){return t*r%2+t*r%3==0};case n.PATTERN110:return function(t,r){return(t*r%2+t*r%3)%2==0};case n.PATTERN111:return function(t,r){return(t*r%3+(t+r)%2)%2==0};default:throw"bad maskPattern:"+t}},f.getErrorCorrectPolynomial=function(t){for(var r=a([1],0),e=0;e<t;e+=1)r=r.multiply(a([1,i.gexp(e)],0));return r},f.getLengthInBits=function(t,e){if(1<=e&&e<10)switch(t){case r.MODE_NUMBER:return 10;case r.MODE_ALPHA_NUM:return 9;case r.MODE_8BIT_BYTE:return 8;case r.MODE_KANJI:return 8;default:throw"mode:"+t}else if(e<27)switch(t){case r.MODE_NUMBER:return 12;case r.MODE_ALPHA_NUM:return 11;case r.MODE_8BIT_BYTE:return 16;case r.MODE_KANJI:return 10;default:throw"mode:"+t}else{if(!(e<41))throw"type:"+e;switch(t){case r.MODE_NUMBER:return 14;case r.MODE_ALPHA_NUM:return 13;case r.MODE_8BIT_BYTE:return 16;case r.MODE_KANJI:return 12;default:throw"mode:"+t}}},f.getLostPoint=function(t){for(var r=t.getModuleCount(),e=0,n=0;n<r;n+=1)for(var o=0;o<r;o+=1){for(var i=0,a=t.isDark(n,o),u=-1;u<=1;u+=1)if(!(n+u<0||r<=n+u))for(var f=-1;f<=1;f+=1)o+f<0||r<=o+f||0==u&&0==f||a==t.isDark(n+u,o+f)&&(i+=1);i>5&&(e+=3+i-5)}for(n=0;n<r-1;n+=1)for(o=0;o<r-1;o+=1){var c=0;t.isDark(n,o)&&(c+=1),t.isDark(n+1,o)&&(c+=1),t.isDark(n,o+1)&&(c+=1),t.isDark(n+1,o+1)&&(c+=1),0!=c&&4!=c||(e+=3)}for(n=0;n<r;n+=1)for(o=0;o<r-6;o+=1)t.isDark(n,o)&&!t.isDark(n,o+1)&&t.isDark(n,o+2)&&t.isDark(n,o+3)&&t.isDark(n,o+4)&&!t.isDark(n,o+5)&&t.isDark(n,o+6)&&(e+=40);for(o=0;o<r;o+=1)for(n=0;n<r-6;n+=1)t.isDark(n,o)&&!t.isDark(n+1,o)&&t.isDark(n+2,o)&&t.isDark(n+3,o)&&t.isDark(n+4,o)&&!t.isDark(n+5,o)&&t.isDark(n+6,o)&&(e+=40);var l=0;for(o=0;o<r;o+=1)for(n=0;n<r;n+=1)t.isDark(n,o)&&(l+=1);var s=Math.abs(100*l/r/r-50)/5;return e+=10*s,e},f}(),i=function(){for(var t=new Array(256),r=new Array(256),e=0;e<8;e+=1)t[e]=1<<e;for(e=8;e<256;e+=1)t[e]=t[e-4]^t[e-5]^t[e-6]^t[e-8];for(e=0;e<255;e+=1)r[t[e]]=e;var n={glog:function(t){if(t<1)throw"glog("+t+")";return r[t]},gexp:function(r){while(r<0)r+=255;while(r>=256)r-=255;return t[r]}};return n}();function a(t,r){if("undefined"==typeof t.length)throw t.length+"/"+r;var e=function(){var e=0;while(e<t.length&&0==t[e])e+=1;for(var n=new Array(t.length-e+r),o=0;o<t.length-e;o+=1)n[o]=t[o+e];return n}(),n={getAt:function(t){return e[t]},getLength:function(){return e.length},multiply:function(t){for(var r=new Array(n.getLength()+t.getLength()-1),e=0;e<n.getLength();e+=1)for(var o=0;o<t.getLength();o+=1)r[e+o]^=i.gexp(i.glog(n.getAt(e))+i.glog(t.getAt(o)));return a(r,0)},mod:function(t){if(n.getLength()-t.getLength()<0)return n;for(var r=i.glog(n.getAt(0))-i.glog(t.getAt(0)),e=new Array(n.getLength()),o=0;o<n.getLength();o+=1)e[o]=n.getAt(o);for(o=0;o<t.getLength();o+=1)e[o]^=i.gexp(i.glog(t.getAt(o))+r);return a(e,0).mod(t)}};return n}var u=function(){var t=[[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,7,37,13],[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]],r=function(t,r){var e={};return e.totalCount=t,e.dataCount=r,e},n={},o=function(r,n){switch(n){case e.L:return t[4*(r-1)+0];case e.M:return t[4*(r-1)+1];case e.Q:return t[4*(r-1)+2];case e.H:return t[4*(r-1)+3];default:return}};return n.getRSBlocks=function(t,e){var n=o(t,e);if("undefined"==typeof n)throw"bad rs block @ typeNumber:"+t+"/errorCorrectionLevel:"+e;for(var i=n.length/3,a=[],u=0;u<i;u+=1)for(var f=n[3*u+0],c=n[3*u+1],l=n[3*u+2],s=0;s<f;s+=1)a.push(r(c,l));return a},n}(),f=function(){var t=[],r=0,e={getBuffer:function(){return t},getAt:function(r){var e=Math.floor(r/8);return 1==(t[e]>>>7-r%8&1)},put:function(t,r){for(var n=0;n<r;n+=1)e.putBit(1==(t>>>r-n-1&1))},getLengthInBits:function(){return r},putBit:function(e){var n=Math.floor(r/8);t.length<=n&&t.push(0),e&&(t[n]|=128>>>r%8),r+=1}};return e},c=function(t){var e=r.MODE_NUMBER,n=t,o={getMode:function(){return e},getLength:function(t){return n.length},write:function(t){var r=n,e=0;while(e+2<r.length)t.put(i(r.substring(e,e+3)),10),e+=3;e<r.length&&(r.length-e==1?t.put(i(r.substring(e,e+1)),4):r.length-e==2&&t.put(i(r.substring(e,e+2)),7))}},i=function(t){for(var r=0,e=0;e<t.length;e+=1)r=10*r+a(t.charAt(e));return r},a=function(t){if("0"<=t&&t<="9")return t.charCodeAt(0)-"0".charCodeAt(0);throw"illegal char :"+t};return o},l=function(t){var e=r.MODE_ALPHA_NUM,n=t,o={getMode:function(){return e},getLength:function(t){return n.length},write:function(t){var r=n,e=0;while(e+1<r.length)t.put(45*i(r.charAt(e))+i(r.charAt(e+1)),11),e+=2;e<r.length&&t.put(i(r.charAt(e)),6)}},i=function(t){if("0"<=t&&t<="9")return t.charCodeAt(0)-"0".charCodeAt(0);if("A"<=t&&t<="Z")return t.charCodeAt(0)-"A".charCodeAt(0)+10;switch(t){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+t}};return o},s=function(e){var n=r.MODE_8BIT_BYTE,o=t.stringToBytes(e),i={getMode:function(){return n},getLength:function(t){return o.length},write:function(t){for(var r=0;r<o.length;r+=1)t.put(o[r],8)}};return i},g=function(e){var n=r.MODE_KANJI,o=t.stringToBytesFuncs["SJIS"];if(!o)throw"sjis not supported.";!function(t,r){var e=o(t);if(2!=e.length||(e[0]<<8|e[1])!=r)throw"sjis not supported."}("友",38726);var i=o(e),a={getMode:function(){return n},getLength:function(t){return~~(i.length/2)},write:function(t){var r=i,e=0;while(e+1<r.length){var n=(255&r[e])<<8|255&r[e+1];if(33088<=n&&n<=40956)n-=33088;else{if(!(57408<=n&&n<=60351))throw"illegal char at "+(e+1)+"/"+n;n-=49472}n=192*(n>>>8&255)+(255&n),t.put(n,13),e+=2}if(e<r.length)throw"illegal char at "+(e+1)}};return a},h=function(){var t=[],r={writeByte:function(r){t.push(255&r)},writeShort:function(t){r.writeByte(t),r.writeByte(t>>>8)},writeBytes:function(t,e,n){e=e||0,n=n||t.length;for(var o=0;o<n;o+=1)r.writeByte(t[o+e])},writeString:function(t){for(var e=0;e<t.length;e+=1)r.writeByte(t.charCodeAt(e))},toByteArray:function(){return t},toString:function(){var r="";r+="[";for(var e=0;e<t.length;e+=1)e>0&&(r+=","),r+=t[e];return r+="]",r}};return r},v=function(){var t=0,r=0,e=0,n="",o={},i=function(t){n+=String.fromCharCode(a(63&t))},a=function(t){if(t<0);else{if(t<26)return 65+t;if(t<52)return t-26+97;if(t<62)return t-52+48;if(62==t)return 43;if(63==t)return 47}throw"n:"+t};return o.writeByte=function(n){t=t<<8|255&n,r+=8,e+=1;while(r>=6)i(t>>>r-6),r-=6},o.flush=function(){if(r>0&&(i(t<<6-r),t=0,r=0),e%3!=0)for(var o=3-e%3,a=0;a<o;a+=1)n+="="},o.toString=function(){return n},o},d=function(t){var r=t,e=0,n=0,o=0,i={read:function(){while(o<8){if(e>=r.length){if(0==o)return-1;throw"unexpected end of file./"+o}var t=r.charAt(e);if(e+=1,"="==t)return o=0,-1;t.match(/^\s$/)||(n=n<<6|a(t.charCodeAt(0)),o+=6)}var i=n>>>o-8&255;return o-=8,i}},a=function(t){if(65<=t&&t<=90)return t-65;if(97<=t&&t<=122)return t-97+26;if(48<=t&&t<=57)return t-48+52;if(43==t)return 62;if(47==t)return 63;throw"c:"+t};return i},w=function(t,r){var e=t,n=r,o=new Array(t*r),i={setPixel:function(t,r,n){o[r*e+t]=n},write:function(t){t.writeString("GIF87a"),t.writeShort(e),t.writeShort(n),t.writeByte(128),t.writeByte(0),t.writeByte(0),t.writeByte(0),t.writeByte(0),t.writeByte(0),t.writeByte(255),t.writeByte(255),t.writeByte(255),t.writeString(","),t.writeShort(0),t.writeShort(0),t.writeShort(e),t.writeShort(n),t.writeByte(0);var r=2,o=u(r);t.writeByte(r);var i=0;while(o.length-i>255)t.writeByte(255),t.writeBytes(o,i,255),i+=255;t.writeByte(o.length-i),t.writeBytes(o,i,o.length-i),t.writeByte(0),t.writeString(";")}},a=function(t){var r=t,e=0,n=0,o={write:function(t,o){if(t>>>o!=0)throw"length over";while(e+o>=8)r.writeByte(255&(t<<e|n)),o-=8-e,t>>>=8-e,n=0,e=0;n|=t<<e,e+=o},flush:function(){e>0&&r.writeByte(n)}};return o},u=function(t){for(var r=1<<t,e=1+(1<<t),n=t+1,i=f(),u=0;u<r;u+=1)i.add(String.fromCharCode(u));i.add(String.fromCharCode(r)),i.add(String.fromCharCode(e));var c=h(),l=a(c);l.write(r,n);var s=0,g=String.fromCharCode(o[s]);s+=1;while(s<o.length){var v=String.fromCharCode(o[s]);s+=1,i.contains(g+v)?g+=v:(l.write(i.indexOf(g),n),i.size()<4095&&(i.size()==1<<n&&(n+=1),i.add(g+v)),g=v)}return l.write(i.indexOf(g),n),l.write(e,n),l.flush(),c.toByteArray()},f=function(){var t={},r=0,e={add:function(n){if(e.contains(n))throw"dup key:"+n;t[n]=r,r+=1},size:function(){return r},indexOf:function(r){return t[r]},contains:function(r){return"undefined"!=typeof t[r]}};return e};return i},p=function(t,r,e){for(var n=w(t,r),o=0;o<r;o+=1)for(var i=0;i<t;i+=1)n.setPixel(i,o,e(i,o));var a=h();n.write(a);for(var u=v(),f=a.toByteArray(),c=0;c<f.length;c+=1)u.writeByte(f[c]);return u.flush(),"data:image/gif;base64,"+u};return t}();!function(){a.stringToBytesFuncs["UTF-8"]=function(t){function r(t){for(var r=[],e=0;e<t.length;e++){var n=t.charCodeAt(e);n<128?r.push(n):n<2048?r.push(192|n>>6,128|63&n):n<55296||n>=57344?r.push(224|n>>12,128|n>>6&63,128|63&n):(e++,n=65536+((1023&n)<<10|1023&t.charCodeAt(e)),r.push(240|n>>18,128|n>>12&63,128|n>>6&63,128|63&n))}return r}return r(t)}}(),function(e){o=[],n=e,i="function"===typeof n?n.apply(r,o):n,void 0===i||(t.exports=i)}((function(){return a}))},f2e5:function(t,r,e){"use strict";e.d(r,"a",(function(){return x}));var n=e("ccb5"),o=e("c31d"),i=e("e0d33"),a=e.n(i),u="#000",f="#fff",c={createCanvas:l,isCanvas:s,isDrawable:g,getCanvas:h,updateCanvas:v,drawCanvas:d,drawText:w};function l(t,r){var e=document.createElement("canvas");return e.width=t,e.height=r,e}function s(t){return t instanceof HTMLCanvasElement}function g(t){return s(t)||t instanceof HTMLImageElement}function h(t,r){return c.createCanvas(t,null==r?t:r)}function v(t,r,e){return t?(t.width=r,t.height=null==e?r:e,t):h(r,e)}function d(t,r,e){void 0===e&&(e={});var n=e,o=n.cellSize,i=n.context,a=n.clear,u=void 0===a||a,f=t.width,l=t.height,s=[r],g=i||t.getContext("2d");u&&g.clearRect(0,0,f,l),g.globalCompositeOperation="source-over";while(s.length){var h=s.shift();if(Array.isArray(h))s=h.concat(s);else if(h){var v=void 0;v=c.isDrawable(h)?{image:h}:"string"===typeof h?{style:h}:h;var d=(null==v.col?v.x:v.col*o)||0,w=(null==v.row?v.y:v.row*o)||0;d<0&&(d+=f),w<0&&(w+=f);var p=("cols"in v?v.cols*o:v.w)||f,y=("rows"in v?v.rows*o:v.h)||f;v.image?g.drawImage(v.image,d,w,p,y):(g.fillStyle=v.style||"black",g.fillRect(d,w,p,y))}}return t}function w(t,r){var e,n=r||{},o=n.fontSize,i=void 0===o?64:o,a=n.fontStyle,c=void 0===a?"":a,l=n.fontFamily,s=void 0===l?"Cursive":l,g=n.color,v=void 0===g?null:g,d=n.pad,w=void 0===d?8:d,p=n.padColor,y=void 0===p?f:p,C=n.mode,A=void 0===C?1:C,m=h(1),B=m.getContext("2d");if(y){B.fillStyle=y,B.fillRect(0,0,1,1);var M=B.getImageData(0,0,1,1);e=M.data,e[3]||(e=null)}var b=i+2*w,T=[c,i+"px",s].filter(Boolean).join(" "),k=function(){B.textAlign="center",B.textBaseline="middle",B.font=T};k();var x=Math.ceil(B.measureText(t).width)+2*w;m.width=x,m.height=b,k();var D=function(){B.fillStyle=v||u,B.fillText(t,x/2,b/2)};return 1===A?(B.fillStyle=y,B.fillRect(0,0,x,b),D()):(D(),e&&function(){for(var t=B.getImageData(0,0,x,b),r=t.data,n=x*b,o=[],i=0,a=function(t){var a=[],u={};o[i]=a,i=1-i;var f=o[i];if(!f){f=[];for(var c=0;c<n;c+=1)f.push(c)}f.forEach((function(t){r[4*t+3]&&[t%x?t-1:-1,(t+1)%x?t+1:-1,t-x,t+x].forEach((function(t){var e=4*t;e>=0&&e<=r.length&&!u[t]&&(u[t]=1,a.push(t))}))})),a.forEach((function(t){var n=4*t;if(!r[n+3])for(var o=0;o<4;o+=1)r[n+o]=e[o]}))},u=0;u<w;u+=1)a();B.putImageData(t,0,0)}()),m}var p={default:y,round:C,fusion:A,spot:m};function y(t){var r=t.foreground,e=t.cellSize,n=t.isDark,o=t.count,i=c.getCanvas,a=c.drawCanvas,f=e*o,l=i(f),s=l.getContext("2d");s.fillStyle=u,B({cellSize:e,count:o},(function(t){var r=t.i,o=t.j,i=t.x,a=t.y;n(r,o)&&s.fillRect(i,a,e,e)}));var g=i(f);a(g,r,{cellSize:e});var h=g.getContext("2d");return h.globalCompositeOperation="destination-in",h.drawImage(l,0,0),g}function C(t,r){var e=t.foreground,n=t.cellSize,o=t.isDark,i=t.count,a=c.getCanvas,f=c.drawCanvas,l=n*i,s=a(l),g=r.value,h=void 0===g?1:g,v=h*n/2,d=s.getContext("2d");d.fillStyle=u,B({cellSize:n,count:i},(function(t){var r=t.i,e=t.j,i=t.x,a=t.y;o(r,e)&&(d.beginPath(),d.moveTo(i+.5*n,a),M(d,i+n,a,i+n,a+.5*n,v),M(d,i+n,a+n,i+.5*n,a+n,v),M(d,i,a+n,i,a+.5*n,v),M(d,i,a,i+.5*n,a,v),d.fill())}));var w=a(l);f(w,e,{cellSize:n});var p=w.getContext("2d");return p.globalCompositeOperation="destination-in",p.drawImage(s,0,0),w}function A(t,r){var e=t.foreground,n=t.cellSize,o=t.isDark,i=t.count,a=c.getCanvas,f=c.drawCanvas,l=n*i,s=a(l),g=s.getContext("2d");g.fillStyle=u;var h=r.value,v=void 0===h?1:h,d=v*n/2;B({cellSize:n,count:i},(function(t){var r=t.i,e=t.j,i=t.x,a=t.y,u=[0,0,0,0];o(r-1,e)&&(u[0]+=1,u[1]+=1),o(r+1,e)&&(u[2]+=1,u[3]+=1),o(r,e-1)&&(u[0]+=1,u[3]+=1),o(r,e+1)&&(u[1]+=1,u[2]+=1),o(r,e)?(o(r-1,e-1)&&(u[0]+=1),o(r-1,e+1)&&(u[1]+=1),o(r+1,e+1)&&(u[2]+=1),o(r+1,e-1)&&(u[3]+=1),g.beginPath(),g.moveTo(i+.5*n,a),M(g,i+n,a,i+n,a+.5*n,u[1]?0:d),M(g,i+n,a+n,i+.5*n,a+n,u[2]?0:d),M(g,i,a+n,i,a+.5*n,u[3]?0:d),M(g,i,a,i+.5*n,a,u[0]?0:d),g.fill()):(2===u[0]&&b(g,i,a+.5*n,i,a,i+.5*n,a,d),2===u[1]&&b(g,i+.5*n,a,i+n,a,i+n,a+.5*n,d),2===u[2]&&b(g,i+n,a+.5*n,i+n,a+n,i+.5*n,a+n,d),2===u[3]&&b(g,i+.5*n,a+n,i,a+n,i,a+.5*n,d))}));var w=a(l);f(w,e,{cellSize:n});var p=w.getContext("2d");return p.globalCompositeOperation="destination-in",p.drawImage(s,0,0),w}function m(t,r){var e=t.foreground,n=t.cellSize,o=t.isDark,i=t.count,a=c.getCanvas,l=c.drawCanvas,s=n*i,g=a(s),h=r.value,v=r.foregroundLight,d=void 0===v?f:v,w=g.getContext("2d"),p=a(s),y=a(s),C=p.getContext("2d");return[{dark:!0,foreground:e},{dark:!1,foreground:d}].forEach((function(t){w.fillStyle=u,w.clearRect(0,0,s,s),B({cellSize:n,count:i},(function(r){var e=r.i,a=r.j,u=r.x,f=r.y;if(o(e,a)^+!t.dark){var c;c=e<=7&&a<=7||e<=7&&i-a-1<=7||i-e-1<=7&&a<=7||e+5<=i&&e+9>=i&&a+5<=i&&a+9>=i||7===e||7===a?1-.1*h:.25;var l=(1-c)/2;w.fillRect(u+l*n,f+l*n,c*n,c*n)}})),l(p,t.foreground,{cellSize:n,context:C}),C.globalCompositeOperation="destination-in",C.drawImage(g,0,0),l(y,p,{cellSize:n,clear:!1})})),y}function B(t,r){for(var e=t.cellSize,n=t.count,o=0;o<n;o+=1)for(var i=0;i<n;i+=1){var a=i*e,u=o*e;r({i:o,j:i,x:a,y:u})}}function M(t,r,e,n,o,i){i?t.arcTo(r,e,n,o,i):(t.lineTo(r,e),t.lineTo(n,o))}function b(t,r,e,n,o,i,a,u){t.beginPath(),t.moveTo(r,e),M(t,n,o,i,a,u),t.lineTo(n,o),t.lineTo(r,e),t.fill()}a.a.stringToBytes=a.a.stringToBytesFuncs["UTF-8"];var T={background:"white",foreground:"black",typeNumber:0,correctLevel:"L",data:"",padding:0,resize:!0},k=function(){function t(t){var r=this;this.options=Object(o["a"])({},T),this.cache={},this.isDark=function(t,e){var n=r.cache,o=n.qr,i=n.count;return!(t<0||t>=i||e<0||e>=i)&&o.isDark(t,e)},this.setOptions(t)}var r=t.prototype;return r.render=function(t,r){void 0===r&&(r={});var e,n,i,a=this.options,u=a.background,f=a.foreground,l=a.padding,s=a.effect,g=a.logo,h=a.resize,v=p[s.type]||p["default"],d=this.cache.count,w=c.drawCanvas,y=r,C=y.size,A=r,m=A.cellSize;t||m||C||(m=6),m&&(C=d*m+l+l),C?e=h||!t?c.updateCanvas(t,C):t:(C=t.width,e=t);var B=C-l-l,M=Math.ceil(B/d),b=M*d;if(n=c.getCanvas(M*d),w(n,u,{cellSize:M}),i=v(Object(o["a"])({foreground:f,cellSize:M,isDark:this.isDark},this.cache),this.options.effect),g){var T=Object(o["a"])({},g);if(!g.w&&!g.h&&!g.cols&&!g.rows){var k=g.image,x=k.width,D=k.height,S=x/D,E=Math.min((d-18)/d,.38),L=Math.min(D,b*E,b*E/S),O=L*S,z=(b-O)/2,I=(b-L)/2;T.w=O,T.h=L,T.x=z,T.y=I}w(i,T,{clear:!1})}return w(e,[{image:n},{image:i,x:l,y:l,w:B,h:B}]),e},r.setOptions=function(t){this.options=Object(o["a"])({},this.options,t),this.normalizeEffect(),this.normalizeLogo();var r=this.options,e=r.typeNumber,n=r.data,i=r.logo,u=this.options.correctLevel;i&&["Q","H"].indexOf(u)<0&&(u="H");var f=a()(e,u);f.addData(n||""),f.make();var c=f.getModuleCount();this.cache={qr:f,count:c}},r.normalizeEffect=function(){var t=this.options.effect;"string"===typeof t&&(t={type:t}),this.options.effect=t||{}},r.normalizeLogo=function(){var t=c.isDrawable,r=c.drawText,e=this.options.logo;e&&(t(e)?e={image:e}:t(e.image)||("string"===typeof e&&(e={text:e}),e="string"===typeof e.text?{image:r(e.text,e.options)}:null)),this.options.logo=e},t}();function x(t){var r=t.canvas,e=t.size,o=t.cellSize,i=Object(n["a"])(t,["canvas","size","cellSize"]),a=new k(i);return a.render(r,{size:e,cellSize:o})}}}]);