1 |
- "use strict";(self["webpackChunkclassroom"]=self["webpackChunkclassroom"]||[]).push([[679],{5740:function(t,e,r){r.r(e),r.d(e,{default:function(){return Z}});r(7658);var n,i=r(3396),a=r(9242),o=r(7139),s=r.p+"img/xiaoren.2a64c2db.png",u="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAABKCAMAAADDjodoAAAAnFBMVEUAAAD4tgD4tgD3tQD4tgD5tgD6swD4tgD4tgD4tQD8uAD3tQD4tQD3tQD4tgD4tQD5twD5tgD5tgD4twD2tAD8tgD4tQD4tQD4tQD4tgD4tgD5tgD2tgD/wwD3tQD3tgD3tQD4tQD3tgD3tgD4tgD5twD3tgD4tgD4tgD3tQD3tQD4tgD4tQD4tQD4tQD4tQD4tQD4tgD2tAD3tQA0rRmlAAAAM3RSTlMA9QjudSkZwbiUH+uhg31jV1E/JRAM8dzRzFwwFAT56OO7tKiXTuHFsa2NiWtIRkPX1ToqOS2NAAABlUlEQVRIx53X6XKCMBSG4URc2EFRQaDuW63Wtt/931vTYeogEpKT5/87mmNCkMkNmIG+STQyaFzLIBqjR48CuPTIxoQerRDR5wB8GMwBW4M54EiONgCm1GgO4JPYDCCExCiCYBMjHwInbqQ1/tzoSwIc2gGsohXtAEIgDn24RGVH/3bAcqgfZfgXaDcTPFja+++MB+1DVaCGu7R5A/obMMazSOc3shrRXP1Qf9ugKVVOcI9XG8URCdHG7qwCtLNn8vU4kPlOZHMbQc4atzaHFTq9D18/ZgcVq/+8sl7fggavnkVHaOL+vfqUawoCHosm+QKF7Va/zngLXV5eu/Yuc+jwS1Y3DdXjS++sqXSW6OS07tpi0bWam2zDBpA5dTw1D5KB7DoPVOGhxV51M3nkRvjhaDgztbzRZDO9S7qOD5iO2Ro1V8bID+YF+coVJga32tbgdie9kh6IK6qsZXeT+iLgU1KUVA9VRrOAEBOjPoTS4H00Y1QpcCFHDhCb/AVIyFEJzuiyk0Hk+AZRHhpESc4MFEziF2lPwlhLsd09AAAAAElFTkSuQmCC",A="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHoAAAByCAMAAACr1DW7AAAAn1BMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8Kd3m4AAAANHRSTlMA/NUF+Kbsd/GQVEEb5ttJFQ8J9LOUax/Qy8K+e2Q8MSPgt09gNikMxp6XimgurquEc4Zci79tpwAAAxhJREFUaN7N2+eS2jAUBeDjiik2xhTTe1uWZDfZ8/7PlklxEgeDLZAu+f4zGmt8dSRfgYc4eJJz6HoxnuGFJKMU8t75g32AtKbFn14gLFkx04asKX+LHEhKu/xjCkmf+ZduC3LazPEgxrGZN4eUGv8xhJBWwH+dIcPjBb8DCXMW6EPCkAWsTzBvwEITGBf7LNaAaSdesUpg1sJijuBSfmSO4FL+wRzBpfwQMkdwKX/lTSMYs3d52xamrFki7MCMDUu9wggnYil3CRNqrKAHA1pdVtGEfh4rsR3oNmdFA+g2ZEV+DL1mrKwPrTo+K7P20KfVfqOC4ybF45zFtj7xqSwY12e75P5HrXm2xQdYtldrt6Ai2c2yR9XAn9S3Cwellpvpm21RO/fWBHTmg9MxoDnZBCT5Yc/eilIs+7RBphZQmN3MckGe28jOUPKCFMCKT/EOtPgck+cNPX7ehL9muz1x7h6Ac+QT1PBdHFHcS5YZIYWtHfyyCChqdMBvTZeCotyetWFRTLhEzoxSgk+XHQUZbhMX6pRgNYpbZgLO1xoaxk1RzJnQsDquOYxolIfrYpsG9Rzc0IpozDhBMeNRMuygxN6nEVGMUruABoQpKmh2qZ2/RyVtl5oFO5QwFaFuE5VttY5tbaBgoHPkD+3fYo19PnzXF1bK6roOOOocixr4uMOSWhygrk0tPiEjXl8bPO01+wJ1PWrRhzqbWqyhzqUWEZSl1MOFsiY1Sc31WfT33L5SkxlUvVGTr1A1oiYeVPnUZARFHWbEY3PBjHhsNpgRj80vzIjHZp8Z8dhcU5u+QGRqujnRZbngdbBiORtKYpYKax3A2dos04WSHUtEMycrwyFLxD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2DwTp90eKePXLzTZz/e6kMo//Py+QFATk+w+J/WLwAAAABJRU5ErkJggg==",g="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEIAAAAkCAMAAAAKJxydAAAAk1BMVEUAAAD5vg/6vg3/vAD6vg75vg36vg76vw76vg76vw36vw7+wA37wAz/xQ/6vw76vg75vg36vw75vg76vw76vw37vw/7wA37wA39vw/6wQr5vw76vw76vw75vg75vg77vw37wA78wA37vw/6vw76vg74uwvyvA34vg75vg76vw76vw/6vw75vw/5vg75vQ76vw35vg4Z1sJGAAAAMHRSTlMAneoH/PjebvDPxSUeDfr05NSkmHhWPzkhGLixrZWJYFlKRDQtFhMR18m+u4uBgGQwV+J7AAABA0lEQVRIx7XVyXLCMBREUWJjA8bGE9hmhjBlTv//16UqLEhXF/QqZ3tV2khP6l21oz5+TcptjzxoJB3ipn7Y7pnir2Vomt8Cydk11UUgL6lr6nkIUhxdU8cYZNi4pk4JSDRzTYUVSH9gm/oC+7BN7SKQKnRNtQHIe+aa6kqQ0dw1lS1A4rFtag0StLapQZ/W5Xvb1A5k8m2amo/AiottbByDlalt7BCAJRfXdOrZKrSNzSKwtW16nmxqmvgEm2xNEzVYvreNhSuw4GAby94gQ2Sau5KvJ9tYF4MtMttYWoBVoWliCbZxTQXyxJumEvloTFNNflsVNKbdMd48XdWDs2n/4QckcMMPeLRnqAAAAABJRU5ErkJggg==",l="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEIAAAAkCAMAAAAKJxydAAAAkFBMVEUAAAD5vg76vg38wQT5vg76vg76vg33vg35vg36vg76vg77vw3/yAD6vg35vg36vg75vg77vw36vw37vw77vw75vxH6vg38wgv7vwz5vg75vg/5vg75vw75vw76vw76vw76vg/6vw76vw36wQ/8wQ74vg75vg36vw75vg76vg/6vw75vw/8wA38vg77wA35vg5sflPtAAAAL3RSTlMAnfwK7NmXDvnwyTsF9eanhnVkXEMsIBcU4b+5tKqRjnpqTTEl4NDCoZ5vV1FLPY+dDHIAAAD1SURBVEjHrdW3cgJREERRsd6yBpYFSVghb/r//04BAWr1VnXCSe/LXs3MnRpnES7yJDRt2rDB1ZtvqozwRxC6pr5q8DPT1DEAaUxTLdhDapp4B0tME+EjSPBhmlgXIPm3aWIVg2wG08TTHKQYTRPLHGQbmiYWGUhrmupAsoVpagcS/Zgmqi1IfDZNpPcgcWqa6vHPwTXVB2A719SpBmsq23RRyRybps7PYMXaNDW+gMUr0/zXYj6YpqoGLCpdU3uw+uSa6gKQrHfNjzw61/ziwd41v/6QuOaXMJau+VNwcM0fpE/TpiW4erVtWtnOLpJjZdqN/AKPF79N4uuL0AAAAABJRU5ErkJggg==",d=r(3332),m=r(3420),w=r(4870),p=function(){return p=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},p.apply(this,arguments)};"function"===typeof SuppressedError&&SuppressedError,function(t){var e=function(){function e(t,r,n,a){if(this.version=t,this.errorCorrectionLevel=r,this.modules=[],this.isFunction=[],t<e.MIN_VERSION||t>e.MAX_VERSION)throw new RangeError("Version value out of range");if(a<-1||a>7)throw new RangeError("Mask value out of range");this.size=4*t+17;for(var o=[],s=0;s<this.size;s++)o.push(!1);for(s=0;s<this.size;s++)this.modules.push(o.slice()),this.isFunction.push(o.slice());this.drawFunctionPatterns();var u=this.addEccAndInterleave(n);if(this.drawCodewords(u),-1==a){var A=1e9;for(s=0;s<8;s++){this.applyMask(s),this.drawFormatBits(s);var v=this.getPenaltyScore();v<A&&(a=s,A=v),this.applyMask(s)}}i(0<=a&&a<=7),this.mask=a,this.applyMask(a),this.drawFormatBits(a),this.isFunction=[]}return e.encodeText=function(r,n){var i=t.QrSegment.makeSegments(r);return e.encodeSegments(i,n)},e.encodeBinary=function(r,n){var i=t.QrSegment.makeBytes(r);return e.encodeSegments([i],n)},e.encodeSegments=function(t,n,o,s,u,A){if(void 0===o&&(o=1),void 0===s&&(s=40),void 0===u&&(u=-1),void 0===A&&(A=!0),!(e.MIN_VERSION<=o&&o<=s&&s<=e.MAX_VERSION)||u<-1||u>7)throw new RangeError("Invalid value");var v,f;for(v=o;;v++){var c=8*e.getNumDataCodewords(v,n),h=a.getTotalBits(t,v);if(h<=c){f=h;break}if(v>=s)throw new RangeError("Data too long")}for(var g=0,l=[e.Ecc.MEDIUM,e.Ecc.QUARTILE,e.Ecc.HIGH];g<l.length;g++){var d=l[g];A&&f<=8*e.getNumDataCodewords(v,d)&&(n=d)}for(var m=[],w=0,p=t;w<p.length;w++){var E=p[w];r(E.mode.modeBits,4,m),r(E.numChars,E.mode.numCharCountBits(v),m);for(var P=0,M=E.getData();P<M.length;P++){var C=M[P];m.push(C)}}i(m.length==f);var R=8*e.getNumDataCodewords(v,n);i(m.length<=R),r(0,Math.min(4,R-m.length),m),r(0,(8-m.length%8)%8,m),i(m.length%8==0);for(var D=236;m.length<R;D^=253)r(D,8,m);var N=[];while(8*N.length<m.length)N.push(0);return m.forEach((function(t,e){return N[e>>>3]|=t<<7-(7&e)})),new e(v,n,N,u)},e.prototype.getModule=function(t,e){return 0<=t&&t<this.size&&0<=e&&e<this.size&&this.modules[e][t]},e.prototype.getModules=function(){return this.modules},e.prototype.drawFunctionPatterns=function(){for(var t=0;t<this.size;t++)this.setFunctionModule(6,t,t%2==0),this.setFunctionModule(t,6,t%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);var e=this.getAlignmentPatternPositions(),r=e.length;for(t=0;t<r;t++)for(var n=0;n<r;n++)0==t&&0==n||0==t&&n==r-1||t==r-1&&0==n||this.drawAlignmentPattern(e[t],e[n]);this.drawFormatBits(0),this.drawVersion()},e.prototype.drawFormatBits=function(t){for(var e=this.errorCorrectionLevel.formatBits<<3|t,r=e,a=0;a<10;a++)r=r<<1^1335*(r>>>9);var o=21522^(e<<10|r);i(o>>>15==0);for(a=0;a<=5;a++)this.setFunctionModule(8,a,n(o,a));this.setFunctionModule(8,7,n(o,6)),this.setFunctionModule(8,8,n(o,7)),this.setFunctionModule(7,8,n(o,8));for(a=9;a<15;a++)this.setFunctionModule(14-a,8,n(o,a));for(a=0;a<8;a++)this.setFunctionModule(this.size-1-a,8,n(o,a));for(a=8;a<15;a++)this.setFunctionModule(8,this.size-15+a,n(o,a));this.setFunctionModule(8,this.size-8,!0)},e.prototype.drawVersion=function(){if(!(this.version<7)){for(var t=this.version,e=0;e<12;e++)t=t<<1^7973*(t>>>11);var r=this.version<<12|t;i(r>>>18==0);for(e=0;e<18;e++){var a=n(r,e),o=this.size-11+e%3,s=Math.floor(e/3);this.setFunctionModule(o,s,a),this.setFunctionModule(s,o,a)}}},e.prototype.drawFinderPattern=function(t,e){for(var r=-4;r<=4;r++)for(var n=-4;n<=4;n++){var i=Math.max(Math.abs(n),Math.abs(r)),a=t+n,o=e+r;0<=a&&a<this.size&&0<=o&&o<this.size&&this.setFunctionModule(a,o,2!=i&&4!=i)}},e.prototype.drawAlignmentPattern=function(t,e){for(var r=-2;r<=2;r++)for(var n=-2;n<=2;n++)this.setFunctionModule(t+n,e+r,1!=Math.max(Math.abs(n),Math.abs(r)))},e.prototype.setFunctionModule=function(t,e,r){this.modules[e][t]=r,this.isFunction[e][t]=!0},e.prototype.addEccAndInterleave=function(t){var r=this.version,n=this.errorCorrectionLevel;if(t.length!=e.getNumDataCodewords(r,n))throw new RangeError("Invalid argument");for(var a=e.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][r],o=e.ECC_CODEWORDS_PER_BLOCK[n.ordinal][r],s=Math.floor(e.getNumRawDataModules(r)/8),u=a-s%a,A=Math.floor(s/a),v=[],f=e.reedSolomonComputeDivisor(o),c=0,h=0;c<a;c++){var g=t.slice(h,h+A-o+(c<u?0:1));h+=g.length;var l=e.reedSolomonComputeRemainder(g,f);c<u&&g.push(0),v.push(g.concat(l))}var d=[],m=function(t){v.forEach((function(e,r){(t!=A-o||r>=u)&&d.push(e[t])}))};for(c=0;c<v[0].length;c++)m(c);return i(d.length==s),d},e.prototype.drawCodewords=function(t){if(t.length!=Math.floor(e.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");for(var r=0,a=this.size-1;a>=1;a-=2){6==a&&(a=5);for(var o=0;o<this.size;o++)for(var s=0;s<2;s++){var u=a-s,A=0==(a+1&2),v=A?this.size-1-o:o;!this.isFunction[v][u]&&r<8*t.length&&(this.modules[v][u]=n(t[r>>>3],7-(7&r)),r++)}}i(r==8*t.length)},e.prototype.applyMask=function(t){if(t<0||t>7)throw new RangeError("Mask value out of range");for(var e=0;e<this.size;e++)for(var r=0;r<this.size;r++){var n=void 0;switch(t){case 0:n=(r+e)%2==0;break;case 1:n=e%2==0;break;case 2:n=r%3==0;break;case 3:n=(r+e)%3==0;break;case 4:n=(Math.floor(r/3)+Math.floor(e/2))%2==0;break;case 5:n=r*e%2+r*e%3==0;break;case 6:n=(r*e%2+r*e%3)%2==0;break;case 7:n=((r+e)%2+r*e%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[e][r]&&n&&(this.modules[e][r]=!this.modules[e][r])}},e.prototype.getPenaltyScore=function(){for(var t=0,r=0;r<this.size;r++){for(var n=!1,a=0,o=[0,0,0,0,0,0,0],s=0;s<this.size;s++)this.modules[r][s]==n?(a++,5==a?t+=e.PENALTY_N1:a>5&&t++):(this.finderPenaltyAddHistory(a,o),n||(t+=this.finderPenaltyCountPatterns(o)*e.PENALTY_N3),n=this.modules[r][s],a=1);t+=this.finderPenaltyTerminateAndCount(n,a,o)*e.PENALTY_N3}for(s=0;s<this.size;s++){n=!1;var u=0;for(o=[0,0,0,0,0,0,0],r=0;r<this.size;r++)this.modules[r][s]==n?(u++,5==u?t+=e.PENALTY_N1:u>5&&t++):(this.finderPenaltyAddHistory(u,o),n||(t+=this.finderPenaltyCountPatterns(o)*e.PENALTY_N3),n=this.modules[r][s],u=1);t+=this.finderPenaltyTerminateAndCount(n,u,o)*e.PENALTY_N3}for(r=0;r<this.size-1;r++)for(s=0;s<this.size-1;s++){var A=this.modules[r][s];A==this.modules[r][s+1]&&A==this.modules[r+1][s]&&A==this.modules[r+1][s+1]&&(t+=e.PENALTY_N2)}for(var v=0,f=0,c=this.modules;f<c.length;f++){var h=c[f];v=h.reduce((function(t,e){return t+(e?1:0)}),v)}var g=this.size*this.size,l=Math.ceil(Math.abs(20*v-10*g)/g)-1;return i(0<=l&&l<=9),t+=l*e.PENALTY_N4,i(0<=t&&t<=2568888),t},e.prototype.getAlignmentPatternPositions=function(){if(1==this.version)return[];for(var t=Math.floor(this.version/7)+2,e=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*t-2)),r=[6],n=this.size-7;r.length<t;n-=e)r.splice(1,0,n);return r},e.getNumRawDataModules=function(t){if(t<e.MIN_VERSION||t>e.MAX_VERSION)throw new RangeError("Version number out of range");var r=(16*t+128)*t+64;if(t>=2){var n=Math.floor(t/7)+2;r-=(25*n-10)*n-55,t>=7&&(r-=36)}return i(208<=r&&r<=29648),r},e.getNumDataCodewords=function(t,r){return Math.floor(e.getNumRawDataModules(t)/8)-e.ECC_CODEWORDS_PER_BLOCK[r.ordinal][t]*e.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][t]},e.reedSolomonComputeDivisor=function(t){if(t<1||t>255)throw new RangeError("Degree out of range");for(var r=[],n=0;n<t-1;n++)r.push(0);r.push(1);var i=1;for(n=0;n<t;n++){for(var a=0;a<r.length;a++)r[a]=e.reedSolomonMultiply(r[a],i),a+1<r.length&&(r[a]^=r[a+1]);i=e.reedSolomonMultiply(i,2)}return r},e.reedSolomonComputeRemainder=function(t,r){for(var n=r.map((function(t){return 0})),i=function(t){var i=t^n.shift();n.push(0),r.forEach((function(t,r){return n[r]^=e.reedSolomonMultiply(t,i)}))},a=0,o=t;a<o.length;a++){var s=o[a];i(s)}return n},e.reedSolomonMultiply=function(t,e){if(t>>>8!=0||e>>>8!=0)throw new RangeError("Byte out of range");for(var r=0,n=7;n>=0;n--)r=r<<1^285*(r>>>7),r^=(e>>>n&1)*t;return i(r>>>8==0),r},e.prototype.finderPenaltyCountPatterns=function(t){var e=t[1];i(e<=3*this.size);var r=e>0&&t[2]==e&&t[3]==3*e&&t[4]==e&&t[5]==e;return(r&&t[0]>=4*e&&t[6]>=e?1:0)+(r&&t[6]>=4*e&&t[0]>=e?1:0)},e.prototype.finderPenaltyTerminateAndCount=function(t,e,r){return t&&(this.finderPenaltyAddHistory(e,r),e=0),e+=this.size,this.finderPenaltyAddHistory(e,r),this.finderPenaltyCountPatterns(r)},e.prototype.finderPenaltyAddHistory=function(t,e){0==e[0]&&(t+=this.size),e.pop(),e.unshift(t)},e.MIN_VERSION=1,e.MAX_VERSION=40,e.PENALTY_N1=3,e.PENALTY_N2=3,e.PENALTY_N3=40,e.PENALTY_N4=10,e.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],e.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e}();function r(t,e,r){if(e<0||e>31||t>>>e!=0)throw new RangeError("Value out of range");for(var n=e-1;n>=0;n--)r.push(t>>>n&1)}function n(t,e){return 0!=(t>>>e&1)}function i(t){if(!t)throw new Error("Assertion error")}t.QrCode=e;var a=function(){function t(t,e,r){if(this.mode=t,this.numChars=e,this.bitData=r,e<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}return t.makeBytes=function(e){for(var n=[],i=0,a=e;i<a.length;i++){var o=a[i];r(o,8,n)}return new t(t.Mode.BYTE,e.length,n)},t.makeNumeric=function(e){if(!t.isNumeric(e))throw new RangeError("String contains non-numeric characters");for(var n=[],i=0;i<e.length;){var a=Math.min(e.length-i,3);r(parseInt(e.substring(i,i+a),10),3*a+1,n),i+=a}return new t(t.Mode.NUMERIC,e.length,n)},t.makeAlphanumeric=function(e){if(!t.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");var n,i=[];for(n=0;n+2<=e.length;n+=2){var a=45*t.ALPHANUMERIC_CHARSET.indexOf(e.charAt(n));a+=t.ALPHANUMERIC_CHARSET.indexOf(e.charAt(n+1)),r(a,11,i)}return n<e.length&&r(t.ALPHANUMERIC_CHARSET.indexOf(e.charAt(n)),6,i),new t(t.Mode.ALPHANUMERIC,e.length,i)},t.makeSegments=function(e){return""==e?[]:t.isNumeric(e)?[t.makeNumeric(e)]:t.isAlphanumeric(e)?[t.makeAlphanumeric(e)]:[t.makeBytes(t.toUtf8ByteArray(e))]},t.makeEci=function(e){var n=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)r(e,8,n);else if(e<16384)r(2,2,n),r(e,14,n);else{if(!(e<1e6))throw new RangeError("ECI assignment value out of range");r(6,3,n),r(e,21,n)}return new t(t.Mode.ECI,0,n)},t.isNumeric=function(e){return t.NUMERIC_REGEX.test(e)},t.isAlphanumeric=function(e){return t.ALPHANUMERIC_REGEX.test(e)},t.prototype.getData=function(){return this.bitData.slice()},t.getTotalBits=function(t,e){for(var r=0,n=0,i=t;n<i.length;n++){var a=i[n],o=a.mode.numCharCountBits(e);if(a.numChars>=1<<o)return 1/0;r+=4+o+a.bitData.length}return r},t.toUtf8ByteArray=function(t){t=encodeURI(t);for(var e=[],r=0;r<t.length;r++)"%"!=t.charAt(r)?e.push(t.charCodeAt(r)):(e.push(parseInt(t.substring(r+1,r+3),16)),r+=2);return e},t.NUMERIC_REGEX=/^[0-9]*$/,t.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,t.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",t}();t.QrSegment=a}(n||(n={})),function(t){(function(t){var e=function(){function t(t,e){this.ordinal=t,this.formatBits=e}return t.LOW=new t(0,1),t.MEDIUM=new t(1,0),t.QUARTILE=new t(2,3),t.HIGH=new t(3,2),t}();t.Ecc=e})(t.QrCode||(t.QrCode={}))}(n||(n={})),function(t){(function(t){var e=function(){function t(t,e){this.modeBits=t,this.numBitsCharCount=e}return t.prototype.numCharCountBits=function(t){return this.numBitsCharCount[Math.floor((t+7)/17)]},t.NUMERIC=new t(1,[10,12,14]),t.ALPHANUMERIC=new t(2,[9,11,13]),t.BYTE=new t(4,[8,16,16]),t.KANJI=new t(8,[8,10,12]),t.ECI=new t(7,[0,0,0]),t}();t.Mode=e})(t.QrSegment||(t.QrSegment={}))}(n||(n={}));var E=n,P="H",M={L:E.QrCode.Ecc.LOW,M:E.QrCode.Ecc.MEDIUM,Q:E.QrCode.Ecc.QUARTILE,H:E.QrCode.Ecc.HIGH},C=function(){try{(new Path2D).addPath(new Path2D)}catch(t){return!1}return!0}();function R(t){return t in M}function D(t,e){void 0===e&&(e=0);var r=[];return t.forEach((function(t,n){var i=null;t.forEach((function(a,o){if(!a&&null!==i)return r.push("M".concat(i+e," ").concat(n+e,"h").concat(o-i,"v1H").concat(i+e,"z")),void(i=null);if(o!==t.length-1)a&&null===i&&(i=o);else{if(!a)return;null===i?r.push("M".concat(o+e,",").concat(n+e," h1v1H").concat(o+e,"z")):r.push("M".concat(i+e,",").concat(n+e," h").concat(o+1-i,"v1H").concat(i+e,"z"))}}))})),r.join("")}var N={value:{type:String,required:!0,default:""},size:{type:Number,default:100},level:{type:String,default:P,validator:function(t){return R(t)}},background:{type:String,default:"#fff"},foreground:{type:String,default:"#000"},margin:{type:Number,required:!1,default:0}},B=p(p({},N),{renderAs:{type:String,required:!1,default:"canvas",validator:function(t){return["canvas","svg"].indexOf(t)>-1}}}),y=(0,i.aZ)({name:"QRCodeSvg",props:N,setup:function(t){var e=(0,w.iH)(0),r=(0,w.iH)(""),n=function(){var n=t.value,i=t.level,a=t.margin,o=E.QrCode.encodeText(n,M[i]).getModules();e.value=o.length+2*a,r.value=D(o,a)};return n(),(0,i.ic)(n),function(){return(0,i.h)("svg",{width:t.size,height:t.size,"shape-rendering":"crispEdges",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(e.value," ").concat(e.value)},[(0,i.h)("path",{fill:t.background,d:"M0,0 h".concat(e.value,"v").concat(e.value,"H0z")}),(0,i.h)("path",{fill:t.foreground,d:r.value})])}}}),S=(0,i.aZ)({name:"QRCodeCanvas",props:N,setup:function(t){var e=(0,w.iH)(null),r=function(){var r=t.value,n=t.level,i=t.size,a=t.margin,o=t.background,s=t.foreground,u=e.value;if(u){var A=u.getContext("2d");if(A){var v=E.QrCode.encodeText(r,M[n]).getModules(),f=v.length+2*a,c=window.devicePixelRatio||1,h=i/f*c;u.height=u.width=i*c,A.scale(h,h),A.fillStyle=o,A.fillRect(0,0,f,f),A.fillStyle=s,C?A.fill(new Path2D(D(v,a))):v.forEach((function(t,e){t.forEach((function(t,r){t&&A.fillRect(r+a,e+a,1,1)}))}))}}};return(0,i.bv)(r),(0,i.ic)(r),function(){return(0,i.h)("canvas",{ref:e,style:{width:"".concat(t.size,"px"),height:"".concat(t.size,"px")}})}}}),Q=(0,i.aZ)({name:"Qrcode",render:function(){var t=this.$props,e=t.renderAs,r=t.value,n=t.size,a=t.margin,o=t.level,s=t.background,u=t.foreground,A=n>>>0,v=a>>>0,f=R(o)?o:P;return(0,i.h)("svg"===e?y:S,{value:r,size:A,margin:v,level:f,background:s,foreground:u})},props:B}),x=r(2529),F=r(2483),k=r(4673);const I=t=>((0,i.dD)("data-v-92fb9f6a"),t=t(),(0,i.Cn)(),t),U={class:"login"},b={class:"loginCon"},z=(0,i.uE)('<div class="decoration" data-v-92fb9f6a><img class="xiaoren" src="'+s+'" data-v-92fb9f6a><img class="star" src="'+u+'" data-v-92fb9f6a><img class="bStar" src="'+A+'" data-v-92fb9f6a><img class="music" src="'+v+'" data-v-92fb9f6a><img class="yun" src="'+f+'" data-v-92fb9f6a></div>',1),O={class:"loginBox"},H={class:"scanned",src:c},L={class:"qrcodeBox"},Y={class:"dsc"},T=I((()=>(0,i._)("img",{src:g},null,-1))),V=I((()=>(0,i._)("img",{src:l},null,-1)));var K=(0,i.aZ)({__name:"login",setup(t){const e=(0,x.Z)(),r=(0,F.tv)(),n=(0,w.iH)(""),s=(0,i.Fl)((()=>JSON.stringify({action:"login",uuid:n.value}))),u=(0,w.iH)(1);let A;function v(){(0,m.hk)(d.M$,n.value).then((t=>{200===t.code&&(n.value=t.data.uuid,f())}))}function f(){(0,m.hk)(d.VB,n.value).then((t=>{if(200===t.code){const{status:n}=t.data;if("FINISH"===n)return void e.login(t.data).then((()=>{const e=t.data.appKey,n={GYT:d.uq,GYM:d.Rm,KLX:d.nP};(0,m.gx)(n[e]).then((t=>{511===t.code?(0,k.Z)({onCancel(){r.push({path:"/"})}}):r.push({path:"/"})}))}));if("SCANNED"===n)u.value=2;else if("VERIFIED"===n)u.value=2;else{if("EXPIRED"===n)return void(u.value=3);"NOT_SCAN"===n&&(u.value=1)}A=setTimeout((()=>{clearTimeout(A),f()}),3e3)}else 5440===t.code&&(u.value=3)}))}function c(){A&&clearTimeout(A),v()}return v(),(t,e)=>{const r=(0,i.Q2)("loading");return(0,i.wg)(),(0,i.iD)("div",U,[(0,i._)("div",b,[z,(0,i._)("div",O,[(0,i.wy)((0,i._)("img",H,null,512),[[a.F8,2===u.value]]),(0,i.wy)(((0,i.wg)(),(0,i.iD)("div",L,[(0,i._)("div",{class:(0,o.C_)(["qrCodeCon",{refresh:3===u.value}])},[n.value?((0,i.wg)(),(0,i.j4)(Q,{key:0,class:"qrCode",value:s.value},null,8,["value"])):(0,i.kq)("",!0),(0,i._)("img",{onClick:c,src:h})],2)])),[[a.F8,2!==u.value],[r,!n.value]]),(0,i._)("div",Y,[T,(0,i._)("div",null,(0,o.zw)(2===u.value?"扫码完成,请在手机上操作":"使用客户端扫描二维码登录乐教通"),1),V]),(0,i._)("div",{class:"refreshBtn",onClick:c},(0,o.zw)(2===u.value?"重新扫码":"刷新二维码"),1)])])])}}}),J=r(89);const q=(0,J.Z)(K,[["__scopeId","data-v-92fb9f6a"]]);var j=q,Z=j}}]);
|