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