dootask/public/js/build/login.8fcab4fa.js
2023-06-14 17:22:03 +08:00

17 lines
69 KiB
JavaScript
Vendored

import{l as wr,a as yr,d as Ar,m as xr,s as Cr,n as _r}from"./app.4b352c60.js";/*!
* vue-qrcode v1.0.2
* https://fengyuanchen.github.io/vue-qrcode
*
* Copyright 2018-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2020-01-18T06:04:33.222Z
*/function hr(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function Tr(u,V){return V={exports:{}},u(V,V.exports),V.exports}var pr=Tr(function(u,V){(function(c){u.exports=c()})(function(){return function(){function c(_,g,p){function d(a,f){if(!g[a]){if(!_[a]){var n=typeof hr=="function"&&hr;if(!f&&n)return n(a,!0);if(s)return s(a,!0);var m=new Error("Cannot find module '"+a+"'");throw m.code="MODULE_NOT_FOUND",m}var E=g[a]={exports:{}};_[a][0].call(E.exports,function(T){var L=_[a][1][T];return d(L||T)},E,E.exports,c,_,g,p)}return g[a].exports}for(var s=typeof hr=="function"&&hr,i=0;i<p.length;i++)d(p[i]);return d}return c}()({1:[function(c,_,g){_.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}},{}],2:[function(c,_,g){var p=c("./utils").getSymbolSize;g.getRowColCoords=function(s){if(s===1)return[];for(var i=Math.floor(s/7)+2,a=p(s),f=a===145?26:Math.ceil((a-13)/(2*i-2))*2,n=[a-7],m=1;m<i-1;m++)n[m]=n[m-1]-f;return n.push(6),n.reverse()},g.getPositions=function(s){for(var i=[],a=g.getRowColCoords(s),f=a.length,n=0;n<f;n++)for(var m=0;m<f;m++)n===0&&m===0||n===0&&m===f-1||n===f-1&&m===0||i.push([a[n],a[m]]);return i}},{"./utils":21}],3:[function(c,_,g){var p=c("./mode"),d=["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"," ","$","%","*","+","-",".","/",":"];function s(i){this.mode=p.ALPHANUMERIC,this.data=i}s.getBitsLength=function(a){return 11*Math.floor(a/2)+6*(a%2)},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(a){var f;for(f=0;f+2<=this.data.length;f+=2){var n=d.indexOf(this.data[f])*45;n+=d.indexOf(this.data[f+1]),a.put(n,11)}this.data.length%2&&a.put(d.indexOf(this.data[f]),6)},_.exports=s},{"./mode":14}],4:[function(c,_,g){function p(){this.buffer=[],this.length=0}p.prototype={get:function(d){var s=Math.floor(d/8);return(this.buffer[s]>>>7-d%8&1)===1},put:function(d,s){for(var i=0;i<s;i++)this.putBit((d>>>s-i-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(d){var s=Math.floor(this.length/8);this.buffer.length<=s&&this.buffer.push(0),d&&(this.buffer[s]|=128>>>this.length%8),this.length++}},_.exports=p},{}],5:[function(c,_,g){var p=c("../utils/buffer");function d(s){if(!s||s<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=s,this.data=p.alloc(s*s),this.reservedBit=p.alloc(s*s)}d.prototype.set=function(s,i,a,f){var n=s*this.size+i;this.data[n]=a,f&&(this.reservedBit[n]=!0)},d.prototype.get=function(s,i){return this.data[s*this.size+i]},d.prototype.xor=function(s,i,a){this.data[s*this.size+i]^=a},d.prototype.isReserved=function(s,i){return this.reservedBit[s*this.size+i]},_.exports=d},{"../utils/buffer":28}],6:[function(c,_,g){var p=c("../utils/buffer"),d=c("./mode");function s(i){this.mode=d.BYTE,this.data=p.from(i)}s.getBitsLength=function(a){return a*8},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(i){for(var a=0,f=this.data.length;a<f;a++)i.put(this.data[a],8)},_.exports=s},{"../utils/buffer":28,"./mode":14}],7:[function(c,_,g){var p=c("./error-correction-level"),d=[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],s=[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];g.getBlocksCount=function(a,f){switch(f){case p.L:return d[(a-1)*4+0];case p.M:return d[(a-1)*4+1];case p.Q:return d[(a-1)*4+2];case p.H:return d[(a-1)*4+3];default:return}},g.getTotalCodewordsCount=function(a,f){switch(f){case p.L:return s[(a-1)*4+0];case p.M:return s[(a-1)*4+1];case p.Q:return s[(a-1)*4+2];case p.H:return s[(a-1)*4+3];default:return}}},{"./error-correction-level":8}],8:[function(c,_,g){g.L={bit:1},g.M={bit:0},g.Q={bit:3},g.H={bit:2};function p(d){if(typeof d!="string")throw new Error("Param is not a string");var s=d.toLowerCase();switch(s){case"l":case"low":return g.L;case"m":case"medium":return g.M;case"q":case"quartile":return g.Q;case"h":case"high":return g.H;default:throw new Error("Unknown EC Level: "+d)}}g.isValid=function(s){return s&&typeof s.bit!="undefined"&&s.bit>=0&&s.bit<4},g.from=function(s,i){if(g.isValid(s))return s;try{return p(s)}catch{return i}}},{}],9:[function(c,_,g){var p=c("./utils").getSymbolSize,d=7;g.getPositions=function(i){var a=p(i);return[[0,0],[a-d,0],[0,a-d]]}},{"./utils":21}],10:[function(c,_,g){var p=c("./utils"),d=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,s=1<<14|1<<12|1<<10|1<<4|1<<1,i=p.getBCHDigit(d);g.getEncodedBits=function(f,n){for(var m=f.bit<<3|n,E=m<<10;p.getBCHDigit(E)-i>=0;)E^=d<<p.getBCHDigit(E)-i;return(m<<10|E)^s}},{"./utils":21}],11:[function(c,_,g){var p=c("../utils/buffer"),d=p.alloc(512),s=p.alloc(256);(function(){for(var a=1,f=0;f<255;f++)d[f]=a,s[a]=f,a<<=1,a&256&&(a^=285);for(f=255;f<512;f++)d[f]=d[f-255]})(),g.log=function(a){if(a<1)throw new Error("log("+a+")");return s[a]},g.exp=function(a){return d[a]},g.mul=function(a,f){return a===0||f===0?0:d[s[a]+s[f]]}},{"../utils/buffer":28}],12:[function(c,_,g){var p=c("./mode"),d=c("./utils");function s(i){this.mode=p.KANJI,this.data=i}s.getBitsLength=function(a){return a*13},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(i){var a;for(a=0;a<this.data.length;a++){var f=d.toSJIS(this.data[a]);if(f>=33088&&f<=40956)f-=33088;else if(f>=57408&&f<=60351)f-=49472;else throw new Error("Invalid SJIS character: "+this.data[a]+`
Make sure your charset is UTF-8`);f=(f>>>8&255)*192+(f&255),i.put(f,13)}},_.exports=s},{"./mode":14,"./utils":21}],13:[function(c,_,g){g.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var p={N1:3,N2:3,N3:40,N4:10};g.isValid=function(i){return i!=null&&i!==""&&!isNaN(i)&&i>=0&&i<=7},g.from=function(i){return g.isValid(i)?parseInt(i,10):void 0},g.getPenaltyN1=function(i){for(var a=i.size,f=0,n=0,m=0,E=null,T=null,L=0;L<a;L++){n=m=0,E=T=null;for(var b=0;b<a;b++){var U=i.get(L,b);U===E?n++:(n>=5&&(f+=p.N1+(n-5)),E=U,n=1),U=i.get(b,L),U===T?m++:(m>=5&&(f+=p.N1+(m-5)),T=U,m=1)}n>=5&&(f+=p.N1+(n-5)),m>=5&&(f+=p.N1+(m-5))}return f},g.getPenaltyN2=function(i){for(var a=i.size,f=0,n=0;n<a-1;n++)for(var m=0;m<a-1;m++){var E=i.get(n,m)+i.get(n,m+1)+i.get(n+1,m)+i.get(n+1,m+1);(E===4||E===0)&&f++}return f*p.N2},g.getPenaltyN3=function(i){for(var a=i.size,f=0,n=0,m=0,E=0;E<a;E++){n=m=0;for(var T=0;T<a;T++)n=n<<1&2047|i.get(E,T),T>=10&&(n===1488||n===93)&&f++,m=m<<1&2047|i.get(T,E),T>=10&&(m===1488||m===93)&&f++}return f*p.N3},g.getPenaltyN4=function(i){for(var a=0,f=i.data.length,n=0;n<f;n++)a+=i.data[n];var m=Math.abs(Math.ceil(a*100/f/5)-10);return m*p.N4};function d(s,i,a){switch(s){case g.Patterns.PATTERN000:return(i+a)%2===0;case g.Patterns.PATTERN001:return i%2===0;case g.Patterns.PATTERN010:return a%3===0;case g.Patterns.PATTERN011:return(i+a)%3===0;case g.Patterns.PATTERN100:return(Math.floor(i/2)+Math.floor(a/3))%2===0;case g.Patterns.PATTERN101:return i*a%2+i*a%3===0;case g.Patterns.PATTERN110:return(i*a%2+i*a%3)%2===0;case g.Patterns.PATTERN111:return(i*a%3+(i+a)%2)%2===0;default:throw new Error("bad maskPattern:"+s)}}g.applyMask=function(i,a){for(var f=a.size,n=0;n<f;n++)for(var m=0;m<f;m++)a.isReserved(m,n)||a.xor(m,n,d(i,m,n))},g.getBestMask=function(i,a){for(var f=Object.keys(g.Patterns).length,n=0,m=1/0,E=0;E<f;E++){a(E),g.applyMask(E,i);var T=g.getPenaltyN1(i)+g.getPenaltyN2(i)+g.getPenaltyN3(i)+g.getPenaltyN4(i);g.applyMask(E,i),T<m&&(m=T,n=E)}return n}},{}],14:[function(c,_,g){var p=c("./version-check"),d=c("./regex");g.NUMERIC={id:"Numeric",bit:1<<0,ccBits:[10,12,14]},g.ALPHANUMERIC={id:"Alphanumeric",bit:1<<1,ccBits:[9,11,13]},g.BYTE={id:"Byte",bit:1<<2,ccBits:[8,16,16]},g.KANJI={id:"Kanji",bit:1<<3,ccBits:[8,10,12]},g.MIXED={bit:-1},g.getCharCountIndicator=function(a,f){if(!a.ccBits)throw new Error("Invalid mode: "+a);if(!p.isValid(f))throw new Error("Invalid version: "+f);return f>=1&&f<10?a.ccBits[0]:f<27?a.ccBits[1]:a.ccBits[2]},g.getBestModeForData=function(a){return d.testNumeric(a)?g.NUMERIC:d.testAlphanumeric(a)?g.ALPHANUMERIC:d.testKanji(a)?g.KANJI:g.BYTE},g.toString=function(a){if(a&&a.id)return a.id;throw new Error("Invalid mode")},g.isValid=function(a){return a&&a.bit&&a.ccBits};function s(i){if(typeof i!="string")throw new Error("Param is not a string");var a=i.toLowerCase();switch(a){case"numeric":return g.NUMERIC;case"alphanumeric":return g.ALPHANUMERIC;case"kanji":return g.KANJI;case"byte":return g.BYTE;default:throw new Error("Unknown mode: "+i)}}g.from=function(a,f){if(g.isValid(a))return a;try{return s(a)}catch{return f}}},{"./regex":19,"./version-check":22}],15:[function(c,_,g){var p=c("./mode");function d(s){this.mode=p.NUMERIC,this.data=s.toString()}d.getBitsLength=function(i){return 10*Math.floor(i/3)+(i%3?i%3*3+1:0)},d.prototype.getLength=function(){return this.data.length},d.prototype.getBitsLength=function(){return d.getBitsLength(this.data.length)},d.prototype.write=function(i){var a,f,n;for(a=0;a+3<=this.data.length;a+=3)f=this.data.substr(a,3),n=parseInt(f,10),i.put(n,10);var m=this.data.length-a;m>0&&(f=this.data.substr(a),n=parseInt(f,10),i.put(n,m*3+1))},_.exports=d},{"./mode":14}],16:[function(c,_,g){var p=c("../utils/buffer"),d=c("./galois-field");g.mul=function(i,a){for(var f=p.alloc(i.length+a.length-1),n=0;n<i.length;n++)for(var m=0;m<a.length;m++)f[n+m]^=d.mul(i[n],a[m]);return f},g.mod=function(i,a){for(var f=p.from(i);f.length-a.length>=0;){for(var n=f[0],m=0;m<a.length;m++)f[m]^=d.mul(a[m],n);for(var E=0;E<f.length&&f[E]===0;)E++;f=f.slice(E)}return f},g.generateECPolynomial=function(i){for(var a=p.from([1]),f=0;f<i;f++)a=g.mul(a,[1,d.exp(f)]);return a}},{"../utils/buffer":28,"./galois-field":11}],17:[function(c,_,g){var p=c("../utils/buffer"),d=c("./utils"),s=c("./error-correction-level"),i=c("./bit-buffer"),a=c("./bit-matrix"),f=c("./alignment-pattern"),n=c("./finder-pattern"),m=c("./mask-pattern"),E=c("./error-correction-code"),T=c("./reed-solomon-encoder"),L=c("./version"),b=c("./format-info"),U=c("./mode"),B=c("./segments"),I=c("isarray");function F(R,N){for(var k=R.size,M=n.getPositions(N),$=0;$<M.length;$++)for(var H=M[$][0],D=M[$][1],Y=-1;Y<=7;Y++)if(!(H+Y<=-1||k<=H+Y))for(var J=-1;J<=7;J++)D+J<=-1||k<=D+J||(Y>=0&&Y<=6&&(J===0||J===6)||J>=0&&J<=6&&(Y===0||Y===6)||Y>=2&&Y<=4&&J>=2&&J<=4?R.set(H+Y,D+J,!0,!0):R.set(H+Y,D+J,!1,!0))}function S(R){for(var N=R.size,k=8;k<N-8;k++){var M=k%2===0;R.set(k,6,M,!0),R.set(6,k,M,!0)}}function w(R,N){for(var k=f.getPositions(N),M=0;M<k.length;M++)for(var $=k[M][0],H=k[M][1],D=-2;D<=2;D++)for(var Y=-2;Y<=2;Y++)D===-2||D===2||Y===-2||Y===2||D===0&&Y===0?R.set($+D,H+Y,!0,!0):R.set($+D,H+Y,!1,!0)}function h(R,N){for(var k=R.size,M=L.getEncodedBits(N),$,H,D,Y=0;Y<18;Y++)$=Math.floor(Y/3),H=Y%3+k-8-3,D=(M>>Y&1)===1,R.set($,H,D,!0),R.set(H,$,D,!0)}function l(R,N,k){var M=R.size,$=b.getEncodedBits(N,k),H,D;for(H=0;H<15;H++)D=($>>H&1)===1,H<6?R.set(H,8,D,!0):H<8?R.set(H+1,8,D,!0):R.set(M-15+H,8,D,!0),H<8?R.set(8,M-H-1,D,!0):H<9?R.set(8,15-H-1+1,D,!0):R.set(8,15-H-1,D,!0);R.set(M-8,8,1,!0)}function y(R,N){for(var k=R.size,M=-1,$=k-1,H=7,D=0,Y=k-1;Y>0;Y-=2)for(Y===6&&Y--;;){for(var J=0;J<2;J++)if(!R.isReserved($,Y-J)){var er=!1;D<N.length&&(er=(N[D]>>>H&1)===1),R.set($,Y-J,er),H--,H===-1&&(D++,H=7)}if($+=M,$<0||k<=$){$-=M,M=-M;break}}}function C(R,N,k){var M=new i;k.forEach(function(er){M.put(er.mode.bit,4),M.put(er.getLength(),U.getCharCountIndicator(er.mode,R)),er.write(M)});var $=d.getSymbolTotalCodewords(R),H=E.getTotalCodewordsCount(R,N),D=($-H)*8;for(M.getLengthInBits()+4<=D&&M.put(0,4);M.getLengthInBits()%8!==0;)M.putBit(0);for(var Y=(D-M.getLengthInBits())/8,J=0;J<Y;J++)M.put(J%2?17:236,8);return P(M,R,N)}function P(R,N,k){for(var M=d.getSymbolTotalCodewords(N),$=E.getTotalCodewordsCount(N,k),H=M-$,D=E.getBlocksCount(N,k),Y=M%D,J=D-Y,er=Math.floor(M/D),G=Math.floor(H/D),cr=G+1,W=er-G,X=new T(W),ir=0,nr=new Array(D),or=new Array(D),ar=0,dr=p.from(R.buffer),tr=0;tr<D;tr++){var ur=tr<J?G:cr;nr[tr]=dr.slice(ir,ir+ur),or[tr]=X.encode(nr[tr]),ir+=ur,ar=Math.max(ar,ur)}var sr=p.alloc(M),fr=0,rr,Q;for(rr=0;rr<ar;rr++)for(Q=0;Q<D;Q++)rr<nr[Q].length&&(sr[fr++]=nr[Q][rr]);for(rr=0;rr<W;rr++)for(Q=0;Q<D;Q++)sr[fr++]=or[Q][rr];return sr}function O(R,N,k,M){var $;if(I(R))$=B.fromArray(R);else if(typeof R=="string"){var H=N;if(!H){var D=B.rawSplit(R);H=L.getBestVersionForData(D,k)}$=B.fromString(R,H||40)}else throw new Error("Invalid data");var Y=L.getBestVersionForData($,k);if(!Y)throw new Error("The amount of data is too big to be stored in a QR Code");if(!N)N=Y;else if(N<Y)throw new Error(`
The chosen QR Code version cannot contain this amount of data.
Minimum version required to store current data is: `+Y+`.
`);var J=C(N,k,$),er=d.getSymbolSize(N),G=new a(er);return F(G,N),S(G),w(G,N),l(G,k,0),N>=7&&h(G,N),y(G,J),isNaN(M)&&(M=m.getBestMask(G,l.bind(null,G,k))),m.applyMask(M,G),l(G,k,M),{modules:G,version:N,errorCorrectionLevel:k,maskPattern:M,segments:$}}g.create=function(N,k){if(typeof N=="undefined"||N==="")throw new Error("No input text");var M=s.M,$,H;return typeof k!="undefined"&&(M=s.from(k.errorCorrectionLevel,s.M),$=L.from(k.version),H=m.from(k.maskPattern),k.toSJISFunc&&d.setToSJISFunction(k.toSJISFunc)),O(N,$,M,H)}},{"../utils/buffer":28,"./alignment-pattern":2,"./bit-buffer":4,"./bit-matrix":5,"./error-correction-code":7,"./error-correction-level":8,"./finder-pattern":9,"./format-info":10,"./mask-pattern":13,"./mode":14,"./reed-solomon-encoder":18,"./segments":20,"./utils":21,"./version":23,isarray:33}],18:[function(c,_,g){var p=c("../utils/buffer"),d=c("./polynomial"),s=c("buffer").Buffer;function i(a){this.genPoly=void 0,this.degree=a,this.degree&&this.initialize(this.degree)}i.prototype.initialize=function(f){this.degree=f,this.genPoly=d.generateECPolynomial(this.degree)},i.prototype.encode=function(f){if(!this.genPoly)throw new Error("Encoder not initialized");var n=p.alloc(this.degree),m=s.concat([f,n],f.length+this.degree),E=d.mod(m,this.genPoly),T=this.degree-E.length;if(T>0){var L=p.alloc(this.degree);return E.copy(L,T),L}return E},_.exports=i},{"../utils/buffer":28,"./polynomial":16,buffer:30}],19:[function(c,_,g){var p="[0-9]+",d="[A-Z $%*+\\-./:]+",s="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";s=s.replace(/u/g,"\\u");var i="(?:(?![A-Z0-9 $%*+\\-./:]|"+s+`)(?:.|[\r
]))+`;g.KANJI=new RegExp(s,"g"),g.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),g.BYTE=new RegExp(i,"g"),g.NUMERIC=new RegExp(p,"g"),g.ALPHANUMERIC=new RegExp(d,"g");var a=new RegExp("^"+s+"$"),f=new RegExp("^"+p+"$"),n=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");g.testKanji=function(E){return a.test(E)},g.testNumeric=function(E){return f.test(E)},g.testAlphanumeric=function(E){return n.test(E)}},{}],20:[function(c,_,g){var p=c("./mode"),d=c("./numeric-data"),s=c("./alphanumeric-data"),i=c("./byte-data"),a=c("./kanji-data"),f=c("./regex"),n=c("./utils"),m=c("dijkstrajs");function E(S){return unescape(encodeURIComponent(S)).length}function T(S,w,h){for(var l=[],y;(y=S.exec(h))!==null;)l.push({data:y[0],index:y.index,mode:w,length:y[0].length});return l}function L(S){var w=T(f.NUMERIC,p.NUMERIC,S),h=T(f.ALPHANUMERIC,p.ALPHANUMERIC,S),l,y;n.isKanjiModeEnabled()?(l=T(f.BYTE,p.BYTE,S),y=T(f.KANJI,p.KANJI,S)):(l=T(f.BYTE_KANJI,p.BYTE,S),y=[]);var C=w.concat(h,l,y);return C.sort(function(P,O){return P.index-O.index}).map(function(P){return{data:P.data,mode:P.mode,length:P.length}})}function b(S,w){switch(w){case p.NUMERIC:return d.getBitsLength(S);case p.ALPHANUMERIC:return s.getBitsLength(S);case p.KANJI:return a.getBitsLength(S);case p.BYTE:return i.getBitsLength(S)}}function U(S){return S.reduce(function(w,h){var l=w.length-1>=0?w[w.length-1]:null;return l&&l.mode===h.mode?(w[w.length-1].data+=h.data,w):(w.push(h),w)},[])}function B(S){for(var w=[],h=0;h<S.length;h++){var l=S[h];switch(l.mode){case p.NUMERIC:w.push([l,{data:l.data,mode:p.ALPHANUMERIC,length:l.length},{data:l.data,mode:p.BYTE,length:l.length}]);break;case p.ALPHANUMERIC:w.push([l,{data:l.data,mode:p.BYTE,length:l.length}]);break;case p.KANJI:w.push([l,{data:l.data,mode:p.BYTE,length:E(l.data)}]);break;case p.BYTE:w.push([{data:l.data,mode:p.BYTE,length:E(l.data)}])}}return w}function I(S,w){for(var h={},l={start:{}},y=["start"],C=0;C<S.length;C++){for(var P=S[C],O=[],R=0;R<P.length;R++){var N=P[R],k=""+C+R;O.push(k),h[k]={node:N,lastCount:0},l[k]={};for(var M=0;M<y.length;M++){var $=y[M];h[$]&&h[$].node.mode===N.mode?(l[$][k]=b(h[$].lastCount+N.length,N.mode)-b(h[$].lastCount,N.mode),h[$].lastCount+=N.length):(h[$]&&(h[$].lastCount=N.length),l[$][k]=b(N.length,N.mode)+4+p.getCharCountIndicator(N.mode,w))}}y=O}for(M=0;M<y.length;M++)l[y[M]].end=0;return{map:l,table:h}}function F(S,w){var h,l=p.getBestModeForData(S);if(h=p.from(w,l),h!==p.BYTE&&h.bit<l.bit)throw new Error('"'+S+'" cannot be encoded with mode '+p.toString(h)+`.
Suggested mode is: `+p.toString(l));switch(h===p.KANJI&&!n.isKanjiModeEnabled()&&(h=p.BYTE),h){case p.NUMERIC:return new d(S);case p.ALPHANUMERIC:return new s(S);case p.KANJI:return new a(S);case p.BYTE:return new i(S)}}g.fromArray=function(w){return w.reduce(function(h,l){return typeof l=="string"?h.push(F(l,null)):l.data&&h.push(F(l.data,l.mode)),h},[])},g.fromString=function(w,h){for(var l=L(w,n.isKanjiModeEnabled()),y=B(l),C=I(y,h),P=m.find_path(C.map,"start","end"),O=[],R=1;R<P.length-1;R++)O.push(C.table[P[R]].node);return g.fromArray(U(O))},g.rawSplit=function(w){return g.fromArray(L(w,n.isKanjiModeEnabled()))}},{"./alphanumeric-data":3,"./byte-data":6,"./kanji-data":12,"./mode":14,"./numeric-data":15,"./regex":19,"./utils":21,dijkstrajs:31}],21:[function(c,_,g){var p,d=[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];g.getSymbolSize=function(i){if(!i)throw new Error('"version" cannot be null or undefined');if(i<1||i>40)throw new Error('"version" should be in range from 1 to 40');return i*4+17},g.getSymbolTotalCodewords=function(i){return d[i]},g.getBCHDigit=function(s){for(var i=0;s!==0;)i++,s>>>=1;return i},g.setToSJISFunction=function(i){if(typeof i!="function")throw new Error('"toSJISFunc" is not a valid function.');p=i},g.isKanjiModeEnabled=function(){return typeof p!="undefined"},g.toSJIS=function(i){return p(i)}},{}],22:[function(c,_,g){g.isValid=function(d){return!isNaN(d)&&d>=1&&d<=40}},{}],23:[function(c,_,g){var p=c("./utils"),d=c("./error-correction-code"),s=c("./error-correction-level"),i=c("./mode"),a=c("./version-check"),f=c("isarray"),n=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,m=p.getBCHDigit(n);function E(U,B,I){for(var F=1;F<=40;F++)if(B<=g.getCapacity(F,I,U))return F}function T(U,B){return i.getCharCountIndicator(U,B)+4}function L(U,B){var I=0;return U.forEach(function(F){var S=T(F.mode,B);I+=S+F.getBitsLength()}),I}function b(U,B){for(var I=1;I<=40;I++){var F=L(U,I);if(F<=g.getCapacity(I,B,i.MIXED))return I}}g.from=function(B,I){return a.isValid(B)?parseInt(B,10):I},g.getCapacity=function(B,I,F){if(!a.isValid(B))throw new Error("Invalid QR Code version");typeof F=="undefined"&&(F=i.BYTE);var S=p.getSymbolTotalCodewords(B),w=d.getTotalCodewordsCount(B,I),h=(S-w)*8;if(F===i.MIXED)return h;var l=h-T(F,B);switch(F){case i.NUMERIC:return Math.floor(l/10*3);case i.ALPHANUMERIC:return Math.floor(l/11*2);case i.KANJI:return Math.floor(l/13);case i.BYTE:default:return Math.floor(l/8)}},g.getBestVersionForData=function(B,I){var F,S=s.from(I,s.M);if(f(B)){if(B.length>1)return b(B,S);if(B.length===0)return 1;F=B[0]}else F=B;return E(F.mode,F.getLength(),S)},g.getEncodedBits=function(B){if(!a.isValid(B)||B<7)throw new Error("Invalid QR Code version");for(var I=B<<12;p.getBCHDigit(I)-m>=0;)I^=n<<p.getBCHDigit(I)-m;return B<<12|I}},{"./error-correction-code":7,"./error-correction-level":8,"./mode":14,"./utils":21,"./version-check":22,isarray:33}],24:[function(c,_,g){var p=c("./can-promise"),d=c("./core/qrcode"),s=c("./renderer/canvas"),i=c("./renderer/svg-tag.js");function a(f,n,m,E,T){var L=[].slice.call(arguments,1),b=L.length,U=typeof L[b-1]=="function";if(!U&&!p())throw new Error("Callback required as last argument");if(U){if(b<2)throw new Error("Too few arguments provided");b===2?(T=m,m=n,n=E=void 0):b===3&&(n.getContext&&typeof T=="undefined"?(T=E,E=void 0):(T=E,E=m,m=n,n=void 0))}else{if(b<1)throw new Error("Too few arguments provided");return b===1?(m=n,n=E=void 0):b===2&&!n.getContext&&(E=m,m=n,n=void 0),new Promise(function(I,F){try{var S=d.create(m,E);I(f(S,n,E))}catch(w){F(w)}})}try{var B=d.create(m,E);T(null,f(B,n,E))}catch(I){T(I)}}g.create=d.create,g.toCanvas=a.bind(null,s.render),g.toDataURL=a.bind(null,s.renderToDataURL),g.toString=a.bind(null,function(f,n,m){return i.render(f,m)})},{"./can-promise":1,"./core/qrcode":17,"./renderer/canvas":25,"./renderer/svg-tag.js":26}],25:[function(c,_,g){var p=c("./utils");function d(i,a,f){i.clearRect(0,0,a.width,a.height),a.style||(a.style={}),a.height=f,a.width=f,a.style.height=f+"px",a.style.width=f+"px"}function s(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}g.render=function(a,f,n){var m=n,E=f;typeof m=="undefined"&&(!f||!f.getContext)&&(m=f,f=void 0),f||(E=s()),m=p.getOptions(m);var T=p.getImageWidth(a.modules.size,m),L=E.getContext("2d"),b=L.createImageData(T,T);return p.qrToImageData(b.data,a,m),d(L,E,T),L.putImageData(b,0,0),E},g.renderToDataURL=function(a,f,n){var m=n;typeof m=="undefined"&&(!f||!f.getContext)&&(m=f,f=void 0),m||(m={});var E=g.render(a,f,m),T=m.type||"image/png",L=m.rendererOpts||{};return E.toDataURL(T,L.quality)}},{"./utils":27}],26:[function(c,_,g){var p=c("./utils");function d(a,f){var n=a.a/255,m=f+'="'+a.hex+'"';return n<1?m+" "+f+'-opacity="'+n.toFixed(2).slice(1)+'"':m}function s(a,f,n){var m=a+f;return typeof n!="undefined"&&(m+=" "+n),m}function i(a,f,n){for(var m="",E=0,T=!1,L=0,b=0;b<a.length;b++){var U=Math.floor(b%f),B=Math.floor(b/f);!U&&!T&&(T=!0),a[b]?(L++,b>0&&U>0&&a[b-1]||(m+=T?s("M",U+n,.5+B+n):s("m",E,0),E=0,T=!1),U+1<f&&a[b+1]||(m+=s("h",L),L=0)):E++}return m}g.render=function(f,n,m){var E=p.getOptions(n),T=f.modules.size,L=f.modules.data,b=T+E.margin*2,U=E.color.light.a?"<path "+d(E.color.light,"fill")+' d="M0 0h'+b+"v"+b+'H0z"/>':"",B="<path "+d(E.color.dark,"stroke")+' d="'+i(L,T,E.margin)+'"/>',I='viewBox="0 0 '+b+" "+b+'"',F=E.width?'width="'+E.width+'" height="'+E.width+'" ':"",S='<svg xmlns="http://www.w3.org/2000/svg" '+F+I+' shape-rendering="crispEdges">'+U+B+`</svg>
`;return typeof m=="function"&&m(null,S),S}},{"./utils":27}],27:[function(c,_,g){function p(d){if(typeof d=="number"&&(d=d.toString()),typeof d!="string")throw new Error("Color should be defined as hex string");var s=d.slice().replace("#","").split("");if(s.length<3||s.length===5||s.length>8)throw new Error("Invalid hex color: "+d);(s.length===3||s.length===4)&&(s=Array.prototype.concat.apply([],s.map(function(a){return[a,a]}))),s.length===6&&s.push("F","F");var i=parseInt(s.join(""),16);return{r:i>>24&255,g:i>>16&255,b:i>>8&255,a:i&255,hex:"#"+s.slice(0,6).join("")}}g.getOptions=function(s){s||(s={}),s.color||(s.color={});var i=typeof s.margin=="undefined"||s.margin===null||s.margin<0?4:s.margin,a=s.width&&s.width>=21?s.width:void 0,f=s.scale||4;return{width:a,scale:a?4:f,margin:i,color:{dark:p(s.color.dark||"#000000ff"),light:p(s.color.light||"#ffffffff")},type:s.type,rendererOpts:s.rendererOpts||{}}},g.getScale=function(s,i){return i.width&&i.width>=s+i.margin*2?i.width/(s+i.margin*2):i.scale},g.getImageWidth=function(s,i){var a=g.getScale(s,i);return Math.floor((s+i.margin*2)*a)},g.qrToImageData=function(s,i,a){for(var f=i.modules.size,n=i.modules.data,m=g.getScale(f,a),E=Math.floor((f+a.margin*2)*m),T=a.margin*m,L=[a.color.light,a.color.dark],b=0;b<E;b++)for(var U=0;U<E;U++){var B=(b*E+U)*4,I=a.color.light;if(b>=T&&U>=T&&b<E-T&&U<E-T){var F=Math.floor((b-T)/m),S=Math.floor((U-T)/m);I=L[n[F*f+S]?1:0]}s[B++]=I.r,s[B++]=I.g,s[B++]=I.b,s[B]=I.a}}},{}],28:[function(c,_,g){var p=c("isarray");function d(){try{var w=new Uint8Array(1);return w.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},w.foo()===42}catch{return!1}}i.TYPED_ARRAY_SUPPORT=d();var s=i.TYPED_ARRAY_SUPPORT?2147483647:1073741823;function i(w,h,l){return!i.TYPED_ARRAY_SUPPORT&&!(this instanceof i)?new i(w,h,l):typeof w=="number"?m(this,w):S(this,w,h,l)}i.TYPED_ARRAY_SUPPORT&&(i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&i[Symbol.species]===i&&Object.defineProperty(i,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}));function a(w){if(w>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return w|0}function f(w){return w!==w}function n(w,h){var l;return i.TYPED_ARRAY_SUPPORT?(l=new Uint8Array(h),l.__proto__=i.prototype):(l=w,l===null&&(l=new i(h)),l.length=h),l}function m(w,h){var l=n(w,h<0?0:a(h)|0);if(!i.TYPED_ARRAY_SUPPORT)for(var y=0;y<h;++y)l[y]=0;return l}function E(w,h){var l=B(h)|0,y=n(w,l),C=y.write(h);return C!==l&&(y=y.slice(0,C)),y}function T(w,h){for(var l=h.length<0?0:a(h.length)|0,y=n(w,l),C=0;C<l;C+=1)y[C]=h[C]&255;return y}function L(w,h,l,y){if(l<0||h.byteLength<l)throw new RangeError("'offset' is out of bounds");if(h.byteLength<l+(y||0))throw new RangeError("'length' is out of bounds");var C;return l===void 0&&y===void 0?C=new Uint8Array(h):y===void 0?C=new Uint8Array(h,l):C=new Uint8Array(h,l,y),i.TYPED_ARRAY_SUPPORT?C.__proto__=i.prototype:C=T(w,C),C}function b(w,h){if(i.isBuffer(h)){var l=a(h.length)|0,y=n(w,l);return y.length===0||h.copy(y,0,0,l),y}if(h){if(typeof ArrayBuffer!="undefined"&&h.buffer instanceof ArrayBuffer||"length"in h)return typeof h.length!="number"||f(h.length)?n(w,0):T(w,h);if(h.type==="Buffer"&&Array.isArray(h.data))return T(w,h.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function U(w,h){h=h||1/0;for(var l,y=w.length,C=null,P=[],O=0;O<y;++O){if(l=w.charCodeAt(O),l>55295&&l<57344){if(!C){if(l>56319){(h-=3)>-1&&P.push(239,191,189);continue}else if(O+1===y){(h-=3)>-1&&P.push(239,191,189);continue}C=l;continue}if(l<56320){(h-=3)>-1&&P.push(239,191,189),C=l;continue}l=(C-55296<<10|l-56320)+65536}else C&&(h-=3)>-1&&P.push(239,191,189);if(C=null,l<128){if((h-=1)<0)break;P.push(l)}else if(l<2048){if((h-=2)<0)break;P.push(l>>6|192,l&63|128)}else if(l<65536){if((h-=3)<0)break;P.push(l>>12|224,l>>6&63|128,l&63|128)}else if(l<1114112){if((h-=4)<0)break;P.push(l>>18|240,l>>12&63|128,l>>6&63|128,l&63|128)}else throw new Error("Invalid code point")}return P}function B(w){if(i.isBuffer(w))return w.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(w)||w instanceof ArrayBuffer))return w.byteLength;typeof w!="string"&&(w=""+w);var h=w.length;return h===0?0:U(w).length}function I(w,h,l,y){for(var C=0;C<y&&!(C+l>=h.length||C>=w.length);++C)h[C+l]=w[C];return C}function F(w,h,l,y){return I(U(h,w.length-l),w,l,y)}function S(w,h,l,y){if(typeof h=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&h instanceof ArrayBuffer?L(w,h,l,y):typeof h=="string"?E(w,h):b(w,h)}i.prototype.write=function(h,l,y){l===void 0?(y=this.length,l=0):y===void 0&&typeof l=="string"?(y=this.length,l=0):isFinite(l)&&(l=l|0,isFinite(y)?y=y|0:y=void 0);var C=this.length-l;if((y===void 0||y>C)&&(y=C),h.length>0&&(y<0||l<0)||l>this.length)throw new RangeError("Attempt to write outside buffer bounds");return F(this,h,l,y)},i.prototype.slice=function(h,l){var y=this.length;h=~~h,l=l===void 0?y:~~l,h<0?(h+=y,h<0&&(h=0)):h>y&&(h=y),l<0?(l+=y,l<0&&(l=0)):l>y&&(l=y),l<h&&(l=h);var C;if(i.TYPED_ARRAY_SUPPORT)C=this.subarray(h,l),C.__proto__=i.prototype;else{var P=l-h;C=new i(P,void 0);for(var O=0;O<P;++O)C[O]=this[O+h]}return C},i.prototype.copy=function(h,l,y,C){if(y||(y=0),!C&&C!==0&&(C=this.length),l>=h.length&&(l=h.length),l||(l=0),C>0&&C<y&&(C=y),C===y||h.length===0||this.length===0)return 0;if(l<0)throw new RangeError("targetStart out of bounds");if(y<0||y>=this.length)throw new RangeError("sourceStart out of bounds");if(C<0)throw new RangeError("sourceEnd out of bounds");C>this.length&&(C=this.length),h.length-l<C-y&&(C=h.length-l+y);var P=C-y,O;if(this===h&&y<l&&l<C)for(O=P-1;O>=0;--O)h[O+l]=this[O+y];else if(P<1e3||!i.TYPED_ARRAY_SUPPORT)for(O=0;O<P;++O)h[O+l]=this[O+y];else Uint8Array.prototype.set.call(h,this.subarray(y,y+P),l);return P},i.prototype.fill=function(h,l,y){if(typeof h=="string"){if(typeof l=="string"?(l=0,y=this.length):typeof y=="string"&&(y=this.length),h.length===1){var C=h.charCodeAt(0);C<256&&(h=C)}}else typeof h=="number"&&(h=h&255);if(l<0||this.length<l||this.length<y)throw new RangeError("Out of range index");if(y<=l)return this;l=l>>>0,y=y===void 0?this.length:y>>>0,h||(h=0);var P;if(typeof h=="number")for(P=l;P<y;++P)this[P]=h;else{var O=i.isBuffer(h)?h:new i(h),R=O.length;for(P=0;P<y-l;++P)this[P+l]=O[P%R]}return this},i.concat=function(h,l){if(!p(h))throw new TypeError('"list" argument must be an Array of Buffers');if(h.length===0)return n(null,0);var y;if(l===void 0)for(l=0,y=0;y<h.length;++y)l+=h[y].length;var C=m(null,l),P=0;for(y=0;y<h.length;++y){var O=h[y];if(!i.isBuffer(O))throw new TypeError('"list" argument must be an Array of Buffers');O.copy(C,P),P+=O.length}return C},i.byteLength=B,i.prototype._isBuffer=!0,i.isBuffer=function(h){return!!(h!=null&&h._isBuffer)},_.exports.alloc=function(w){var h=new i(w);return h.fill(0),h},_.exports.from=function(w){return new i(w)}},{isarray:33}],29:[function(c,_,g){g.byteLength=m,g.toByteArray=T,g.fromByteArray=U;for(var p=[],d=[],s=typeof Uint8Array!="undefined"?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,f=i.length;a<f;++a)p[a]=i[a],d[i.charCodeAt(a)]=a;d["-".charCodeAt(0)]=62,d["_".charCodeAt(0)]=63;function n(B){var I=B.length;if(I%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var F=B.indexOf("=");F===-1&&(F=I);var S=F===I?0:4-F%4;return[F,S]}function m(B){var I=n(B),F=I[0],S=I[1];return(F+S)*3/4-S}function E(B,I,F){return(I+F)*3/4-F}function T(B){var I,F=n(B),S=F[0],w=F[1],h=new s(E(B,S,w)),l=0,y=w>0?S-4:S,C;for(C=0;C<y;C+=4)I=d[B.charCodeAt(C)]<<18|d[B.charCodeAt(C+1)]<<12|d[B.charCodeAt(C+2)]<<6|d[B.charCodeAt(C+3)],h[l++]=I>>16&255,h[l++]=I>>8&255,h[l++]=I&255;return w===2&&(I=d[B.charCodeAt(C)]<<2|d[B.charCodeAt(C+1)]>>4,h[l++]=I&255),w===1&&(I=d[B.charCodeAt(C)]<<10|d[B.charCodeAt(C+1)]<<4|d[B.charCodeAt(C+2)]>>2,h[l++]=I>>8&255,h[l++]=I&255),h}function L(B){return p[B>>18&63]+p[B>>12&63]+p[B>>6&63]+p[B&63]}function b(B,I,F){for(var S,w=[],h=I;h<F;h+=3)S=(B[h]<<16&16711680)+(B[h+1]<<8&65280)+(B[h+2]&255),w.push(L(S));return w.join("")}function U(B){for(var I,F=B.length,S=F%3,w=[],h=16383,l=0,y=F-S;l<y;l+=h)w.push(b(B,l,l+h>y?y:l+h));return S===1?(I=B[F-1],w.push(p[I>>2]+p[I<<4&63]+"==")):S===2&&(I=(B[F-2]<<8)+B[F-1],w.push(p[I>>10]+p[I>>4&63]+p[I<<2&63]+"=")),w.join("")}},{}],30:[function(c,_,g){var p=c("base64-js"),d=c("ieee754"),s=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;g.Buffer=n,g.SlowBuffer=S,g.INSPECT_MAX_BYTES=50;var i=2147483647;g.kMaxLength=i,n.TYPED_ARRAY_SUPPORT=a(),!n.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{var t=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(t,r),t.foo()===42}catch{return!1}}Object.defineProperty(n.prototype,"parent",{enumerable:!0,get:function(){if(!!n.isBuffer(this))return this.buffer}}),Object.defineProperty(n.prototype,"offset",{enumerable:!0,get:function(){if(!!n.isBuffer(this))return this.byteOffset}});function f(t){if(t>i)throw new RangeError('The value "'+t+'" is invalid for option "size"');var r=new Uint8Array(t);return Object.setPrototypeOf(r,n.prototype),r}function n(t,r,e){if(typeof t=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return L(t)}return m(t,r,e)}typeof Symbol!="undefined"&&Symbol.species!=null&&n[Symbol.species]===n&&Object.defineProperty(n,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),n.poolSize=8192;function m(t,r,e){if(typeof t=="string")return b(t,r);if(ArrayBuffer.isView(t))return U(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(Q(t,ArrayBuffer)||t&&Q(t.buffer,ArrayBuffer))return B(t,r,e);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var o=t.valueOf&&t.valueOf();if(o!=null&&o!==t)return n.from(o,r,e);var v=I(t);if(v)return v;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return n.from(t[Symbol.toPrimitive]("string"),r,e);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}n.from=function(t,r,e){return m(t,r,e)},Object.setPrototypeOf(n.prototype,Uint8Array.prototype),Object.setPrototypeOf(n,Uint8Array);function E(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function T(t,r,e){return E(t),t<=0?f(t):r!==void 0?typeof e=="string"?f(t).fill(r,e):f(t).fill(r):f(t)}n.alloc=function(t,r,e){return T(t,r,e)};function L(t){return E(t),f(t<0?0:F(t)|0)}n.allocUnsafe=function(t){return L(t)},n.allocUnsafeSlow=function(t){return L(t)};function b(t,r){if((typeof r!="string"||r==="")&&(r="utf8"),!n.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var e=w(t,r)|0,o=f(e),v=o.write(t,r);return v!==e&&(o=o.slice(0,v)),o}function U(t){for(var r=t.length<0?0:F(t.length)|0,e=f(r),o=0;o<r;o+=1)e[o]=t[o]&255;return e}function B(t,r,e){if(r<0||t.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<r+(e||0))throw new RangeError('"length" is outside of buffer bounds');var o;return r===void 0&&e===void 0?o=new Uint8Array(t):e===void 0?o=new Uint8Array(t,r):o=new Uint8Array(t,r,e),Object.setPrototypeOf(o,n.prototype),o}function I(t){if(n.isBuffer(t)){var r=F(t.length)|0,e=f(r);return e.length===0||t.copy(e,0,0,r),e}if(t.length!==void 0)return typeof t.length!="number"||gr(t.length)?f(0):U(t);if(t.type==="Buffer"&&Array.isArray(t.data))return U(t.data)}function F(t){if(t>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return t|0}function S(t){return+t!=t&&(t=0),n.alloc(+t)}n.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==n.prototype},n.compare=function(r,e){if(Q(r,Uint8Array)&&(r=n.from(r,r.offset,r.byteLength)),Q(e,Uint8Array)&&(e=n.from(e,e.offset,e.byteLength)),!n.isBuffer(r)||!n.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===e)return 0;for(var o=r.length,v=e.length,A=0,x=Math.min(o,v);A<x;++A)if(r[A]!==e[A]){o=r[A],v=e[A];break}return o<v?-1:v<o?1:0},n.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},n.concat=function(r,e){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return n.alloc(0);var o;if(e===void 0)for(e=0,o=0;o<r.length;++o)e+=r[o].length;var v=n.allocUnsafe(e),A=0;for(o=0;o<r.length;++o){var x=r[o];if(Q(x,Uint8Array)&&(x=n.from(x)),!n.isBuffer(x))throw new TypeError('"list" argument must be an Array of Buffers');x.copy(v,A),A+=x.length}return v};function w(t,r){if(n.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||Q(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var e=t.length,o=arguments.length>2&&arguments[2]===!0;if(!o&&e===0)return 0;for(var v=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":return tr(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return fr(t).length;default:if(v)return o?-1:tr(t).length;r=(""+r).toLowerCase(),v=!0}}n.byteLength=w;function h(t,r,e){var o=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((e===void 0||e>this.length)&&(e=this.length),e<=0)||(e>>>=0,r>>>=0,e<=r))return"";for(t||(t="utf8");;)switch(t){case"hex":return G(this,r,e);case"utf8":case"utf-8":return H(this,r,e);case"ascii":return J(this,r,e);case"latin1":case"binary":return er(this,r,e);case"base64":return $(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return cr(this,r,e);default:if(o)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),o=!0}}n.prototype._isBuffer=!0;function l(t,r,e){var o=t[r];t[r]=t[e],t[e]=o}n.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<r;e+=2)l(this,e,e+1);return this},n.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<r;e+=4)l(this,e,e+3),l(this,e+1,e+2);return this},n.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<r;e+=8)l(this,e,e+7),l(this,e+1,e+6),l(this,e+2,e+5),l(this,e+3,e+4);return this},n.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?H(this,0,r):h.apply(this,arguments)},n.prototype.toLocaleString=n.prototype.toString,n.prototype.equals=function(r){if(!n.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:n.compare(this,r)===0},n.prototype.inspect=function(){var r="",e=g.INSPECT_MAX_BYTES;return r=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(r+=" ... "),"<Buffer "+r+">"},s&&(n.prototype[s]=n.prototype.inspect),n.prototype.compare=function(r,e,o,v,A){if(Q(r,Uint8Array)&&(r=n.from(r,r.offset,r.byteLength)),!n.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(e===void 0&&(e=0),o===void 0&&(o=r?r.length:0),v===void 0&&(v=0),A===void 0&&(A=this.length),e<0||o>r.length||v<0||A>this.length)throw new RangeError("out of range index");if(v>=A&&e>=o)return 0;if(v>=A)return-1;if(e>=o)return 1;if(e>>>=0,o>>>=0,v>>>=0,A>>>=0,this===r)return 0;for(var x=A-v,z=o-e,K=Math.min(x,z),q=this.slice(v,A),j=r.slice(e,o),Z=0;Z<K;++Z)if(q[Z]!==j[Z]){x=q[Z],z=j[Z];break}return x<z?-1:z<x?1:0};function y(t,r,e,o,v){if(t.length===0)return-1;if(typeof e=="string"?(o=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,gr(e)&&(e=v?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(v)return-1;e=t.length-1}else if(e<0)if(v)e=0;else return-1;if(typeof r=="string"&&(r=n.from(r,o)),n.isBuffer(r))return r.length===0?-1:C(t,r,e,o,v);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?v?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):C(t,[r],e,o,v);throw new TypeError("val must be string, number or Buffer")}function C(t,r,e,o,v){var A=1,x=t.length,z=r.length;if(o!==void 0&&(o=String(o).toLowerCase(),o==="ucs2"||o==="ucs-2"||o==="utf16le"||o==="utf-16le")){if(t.length<2||r.length<2)return-1;A=2,x/=2,z/=2,e/=2}function K(vr,mr){return A===1?vr[mr]:vr.readUInt16BE(mr*A)}var q;if(v){var j=-1;for(q=e;q<x;q++)if(K(t,q)===K(r,j===-1?0:q-j)){if(j===-1&&(j=q),q-j+1===z)return j*A}else j!==-1&&(q-=q-j),j=-1}else for(e+z>x&&(e=x-z),q=e;q>=0;q--){for(var Z=!0,lr=0;lr<z;lr++)if(K(t,q+lr)!==K(r,lr)){Z=!1;break}if(Z)return q}return-1}n.prototype.includes=function(r,e,o){return this.indexOf(r,e,o)!==-1},n.prototype.indexOf=function(r,e,o){return y(this,r,e,o,!0)},n.prototype.lastIndexOf=function(r,e,o){return y(this,r,e,o,!1)};function P(t,r,e,o){e=Number(e)||0;var v=t.length-e;o?(o=Number(o),o>v&&(o=v)):o=v;var A=r.length;o>A/2&&(o=A/2);for(var x=0;x<o;++x){var z=parseInt(r.substr(x*2,2),16);if(gr(z))return x;t[e+x]=z}return x}function O(t,r,e,o){return rr(tr(r,t.length-e),t,e,o)}function R(t,r,e,o){return rr(ur(r),t,e,o)}function N(t,r,e,o){return R(t,r,e,o)}function k(t,r,e,o){return rr(fr(r),t,e,o)}function M(t,r,e,o){return rr(sr(r,t.length-e),t,e,o)}n.prototype.write=function(r,e,o,v){if(e===void 0)v="utf8",o=this.length,e=0;else if(o===void 0&&typeof e=="string")v=e,o=this.length,e=0;else if(isFinite(e))e=e>>>0,isFinite(o)?(o=o>>>0,v===void 0&&(v="utf8")):(v=o,o=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var A=this.length-e;if((o===void 0||o>A)&&(o=A),r.length>0&&(o<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");v||(v="utf8");for(var x=!1;;)switch(v){case"hex":return P(this,r,e,o);case"utf8":case"utf-8":return O(this,r,e,o);case"ascii":return R(this,r,e,o);case"latin1":case"binary":return N(this,r,e,o);case"base64":return k(this,r,e,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,r,e,o);default:if(x)throw new TypeError("Unknown encoding: "+v);v=(""+v).toLowerCase(),x=!0}},n.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function $(t,r,e){return r===0&&e===t.length?p.fromByteArray(t):p.fromByteArray(t.slice(r,e))}function H(t,r,e){e=Math.min(t.length,e);for(var o=[],v=r;v<e;){var A=t[v],x=null,z=A>239?4:A>223?3:A>191?2:1;if(v+z<=e){var K,q,j,Z;switch(z){case 1:A<128&&(x=A);break;case 2:K=t[v+1],(K&192)===128&&(Z=(A&31)<<6|K&63,Z>127&&(x=Z));break;case 3:K=t[v+1],q=t[v+2],(K&192)===128&&(q&192)===128&&(Z=(A&15)<<12|(K&63)<<6|q&63,Z>2047&&(Z<55296||Z>57343)&&(x=Z));break;case 4:K=t[v+1],q=t[v+2],j=t[v+3],(K&192)===128&&(q&192)===128&&(j&192)===128&&(Z=(A&15)<<18|(K&63)<<12|(q&63)<<6|j&63,Z>65535&&Z<1114112&&(x=Z))}}x===null?(x=65533,z=1):x>65535&&(x-=65536,o.push(x>>>10&1023|55296),x=56320|x&1023),o.push(x),v+=z}return Y(o)}var D=4096;function Y(t){var r=t.length;if(r<=D)return String.fromCharCode.apply(String,t);for(var e="",o=0;o<r;)e+=String.fromCharCode.apply(String,t.slice(o,o+=D));return e}function J(t,r,e){var o="";e=Math.min(t.length,e);for(var v=r;v<e;++v)o+=String.fromCharCode(t[v]&127);return o}function er(t,r,e){var o="";e=Math.min(t.length,e);for(var v=r;v<e;++v)o+=String.fromCharCode(t[v]);return o}function G(t,r,e){var o=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>o)&&(e=o);for(var v="",A=r;A<e;++A)v+=Br[t[A]];return v}function cr(t,r,e){for(var o=t.slice(r,e),v="",A=0;A<o.length;A+=2)v+=String.fromCharCode(o[A]+o[A+1]*256);return v}n.prototype.slice=function(r,e){var o=this.length;r=~~r,e=e===void 0?o:~~e,r<0?(r+=o,r<0&&(r=0)):r>o&&(r=o),e<0?(e+=o,e<0&&(e=0)):e>o&&(e=o),e<r&&(e=r);var v=this.subarray(r,e);return Object.setPrototypeOf(v,n.prototype),v};function W(t,r,e){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+r>e)throw new RangeError("Trying to access beyond buffer length")}n.prototype.readUIntLE=function(r,e,o){r=r>>>0,e=e>>>0,o||W(r,e,this.length);for(var v=this[r],A=1,x=0;++x<e&&(A*=256);)v+=this[r+x]*A;return v},n.prototype.readUIntBE=function(r,e,o){r=r>>>0,e=e>>>0,o||W(r,e,this.length);for(var v=this[r+--e],A=1;e>0&&(A*=256);)v+=this[r+--e]*A;return v},n.prototype.readUInt8=function(r,e){return r=r>>>0,e||W(r,1,this.length),this[r]},n.prototype.readUInt16LE=function(r,e){return r=r>>>0,e||W(r,2,this.length),this[r]|this[r+1]<<8},n.prototype.readUInt16BE=function(r,e){return r=r>>>0,e||W(r,2,this.length),this[r]<<8|this[r+1]},n.prototype.readUInt32LE=function(r,e){return r=r>>>0,e||W(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216},n.prototype.readUInt32BE=function(r,e){return r=r>>>0,e||W(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])},n.prototype.readIntLE=function(r,e,o){r=r>>>0,e=e>>>0,o||W(r,e,this.length);for(var v=this[r],A=1,x=0;++x<e&&(A*=256);)v+=this[r+x]*A;return A*=128,v>=A&&(v-=Math.pow(2,8*e)),v},n.prototype.readIntBE=function(r,e,o){r=r>>>0,e=e>>>0,o||W(r,e,this.length);for(var v=e,A=1,x=this[r+--v];v>0&&(A*=256);)x+=this[r+--v]*A;return A*=128,x>=A&&(x-=Math.pow(2,8*e)),x},n.prototype.readInt8=function(r,e){return r=r>>>0,e||W(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]},n.prototype.readInt16LE=function(r,e){r=r>>>0,e||W(r,2,this.length);var o=this[r]|this[r+1]<<8;return o&32768?o|4294901760:o},n.prototype.readInt16BE=function(r,e){r=r>>>0,e||W(r,2,this.length);var o=this[r+1]|this[r]<<8;return o&32768?o|4294901760:o},n.prototype.readInt32LE=function(r,e){return r=r>>>0,e||W(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24},n.prototype.readInt32BE=function(r,e){return r=r>>>0,e||W(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]},n.prototype.readFloatLE=function(r,e){return r=r>>>0,e||W(r,4,this.length),d.read(this,r,!0,23,4)},n.prototype.readFloatBE=function(r,e){return r=r>>>0,e||W(r,4,this.length),d.read(this,r,!1,23,4)},n.prototype.readDoubleLE=function(r,e){return r=r>>>0,e||W(r,8,this.length),d.read(this,r,!0,52,8)},n.prototype.readDoubleBE=function(r,e){return r=r>>>0,e||W(r,8,this.length),d.read(this,r,!1,52,8)};function X(t,r,e,o,v,A){if(!n.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>v||r<A)throw new RangeError('"value" argument is out of bounds');if(e+o>t.length)throw new RangeError("Index out of range")}n.prototype.writeUIntLE=function(r,e,o,v){if(r=+r,e=e>>>0,o=o>>>0,!v){var A=Math.pow(2,8*o)-1;X(this,r,e,o,A,0)}var x=1,z=0;for(this[e]=r&255;++z<o&&(x*=256);)this[e+z]=r/x&255;return e+o},n.prototype.writeUIntBE=function(r,e,o,v){if(r=+r,e=e>>>0,o=o>>>0,!v){var A=Math.pow(2,8*o)-1;X(this,r,e,o,A,0)}var x=o-1,z=1;for(this[e+x]=r&255;--x>=0&&(z*=256);)this[e+x]=r/z&255;return e+o},n.prototype.writeUInt8=function(r,e,o){return r=+r,e=e>>>0,o||X(this,r,e,1,255,0),this[e]=r&255,e+1},n.prototype.writeUInt16LE=function(r,e,o){return r=+r,e=e>>>0,o||X(this,r,e,2,65535,0),this[e]=r&255,this[e+1]=r>>>8,e+2},n.prototype.writeUInt16BE=function(r,e,o){return r=+r,e=e>>>0,o||X(this,r,e,2,65535,0),this[e]=r>>>8,this[e+1]=r&255,e+2},n.prototype.writeUInt32LE=function(r,e,o){return r=+r,e=e>>>0,o||X(this,r,e,4,4294967295,0),this[e+3]=r>>>24,this[e+2]=r>>>16,this[e+1]=r>>>8,this[e]=r&255,e+4},n.prototype.writeUInt32BE=function(r,e,o){return r=+r,e=e>>>0,o||X(this,r,e,4,4294967295,0),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255,e+4},n.prototype.writeIntLE=function(r,e,o,v){if(r=+r,e=e>>>0,!v){var A=Math.pow(2,8*o-1);X(this,r,e,o,A-1,-A)}var x=0,z=1,K=0;for(this[e]=r&255;++x<o&&(z*=256);)r<0&&K===0&&this[e+x-1]!==0&&(K=1),this[e+x]=(r/z>>0)-K&255;return e+o},n.prototype.writeIntBE=function(r,e,o,v){if(r=+r,e=e>>>0,!v){var A=Math.pow(2,8*o-1);X(this,r,e,o,A-1,-A)}var x=o-1,z=1,K=0;for(this[e+x]=r&255;--x>=0&&(z*=256);)r<0&&K===0&&this[e+x+1]!==0&&(K=1),this[e+x]=(r/z>>0)-K&255;return e+o},n.prototype.writeInt8=function(r,e,o){return r=+r,e=e>>>0,o||X(this,r,e,1,127,-128),r<0&&(r=255+r+1),this[e]=r&255,e+1},n.prototype.writeInt16LE=function(r,e,o){return r=+r,e=e>>>0,o||X(this,r,e,2,32767,-32768),this[e]=r&255,this[e+1]=r>>>8,e+2},n.prototype.writeInt16BE=function(r,e,o){return r=+r,e=e>>>0,o||X(this,r,e,2,32767,-32768),this[e]=r>>>8,this[e+1]=r&255,e+2},n.prototype.writeInt32LE=function(r,e,o){return r=+r,e=e>>>0,o||X(this,r,e,4,2147483647,-2147483648),this[e]=r&255,this[e+1]=r>>>8,this[e+2]=r>>>16,this[e+3]=r>>>24,e+4},n.prototype.writeInt32BE=function(r,e,o){return r=+r,e=e>>>0,o||X(this,r,e,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255,e+4};function ir(t,r,e,o,v,A){if(e+o>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function nr(t,r,e,o,v){return r=+r,e=e>>>0,v||ir(t,r,e,4),d.write(t,r,e,o,23,4),e+4}n.prototype.writeFloatLE=function(r,e,o){return nr(this,r,e,!0,o)},n.prototype.writeFloatBE=function(r,e,o){return nr(this,r,e,!1,o)};function or(t,r,e,o,v){return r=+r,e=e>>>0,v||ir(t,r,e,8),d.write(t,r,e,o,52,8),e+8}n.prototype.writeDoubleLE=function(r,e,o){return or(this,r,e,!0,o)},n.prototype.writeDoubleBE=function(r,e,o){return or(this,r,e,!1,o)},n.prototype.copy=function(r,e,o,v){if(!n.isBuffer(r))throw new TypeError("argument should be a Buffer");if(o||(o=0),!v&&v!==0&&(v=this.length),e>=r.length&&(e=r.length),e||(e=0),v>0&&v<o&&(v=o),v===o||r.length===0||this.length===0)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(o<0||o>=this.length)throw new RangeError("Index out of range");if(v<0)throw new RangeError("sourceEnd out of bounds");v>this.length&&(v=this.length),r.length-e<v-o&&(v=r.length-e+o);var A=v-o;if(this===r&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(e,o,v);else if(this===r&&o<e&&e<v)for(var x=A-1;x>=0;--x)r[x+e]=this[x+o];else Uint8Array.prototype.set.call(r,this.subarray(o,v),e);return A},n.prototype.fill=function(r,e,o,v){if(typeof r=="string"){if(typeof e=="string"?(v=e,e=0,o=this.length):typeof o=="string"&&(v=o,o=this.length),v!==void 0&&typeof v!="string")throw new TypeError("encoding must be a string");if(typeof v=="string"&&!n.isEncoding(v))throw new TypeError("Unknown encoding: "+v);if(r.length===1){var A=r.charCodeAt(0);(v==="utf8"&&A<128||v==="latin1")&&(r=A)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(e<0||this.length<e||this.length<o)throw new RangeError("Out of range index");if(o<=e)return this;e=e>>>0,o=o===void 0?this.length:o>>>0,r||(r=0);var x;if(typeof r=="number")for(x=e;x<o;++x)this[x]=r;else{var z=n.isBuffer(r)?r:n.from(r,v),K=z.length;if(K===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(x=0;x<o-e;++x)this[x+e]=z[x%K]}return this};var ar=/[^+/0-9A-Za-z-_]/g;function dr(t){if(t=t.split("=")[0],t=t.trim().replace(ar,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function tr(t,r){r=r||1/0;for(var e,o=t.length,v=null,A=[],x=0;x<o;++x){if(e=t.charCodeAt(x),e>55295&&e<57344){if(!v){if(e>56319){(r-=3)>-1&&A.push(239,191,189);continue}else if(x+1===o){(r-=3)>-1&&A.push(239,191,189);continue}v=e;continue}if(e<56320){(r-=3)>-1&&A.push(239,191,189),v=e;continue}e=(v-55296<<10|e-56320)+65536}else v&&(r-=3)>-1&&A.push(239,191,189);if(v=null,e<128){if((r-=1)<0)break;A.push(e)}else if(e<2048){if((r-=2)<0)break;A.push(e>>6|192,e&63|128)}else if(e<65536){if((r-=3)<0)break;A.push(e>>12|224,e>>6&63|128,e&63|128)}else if(e<1114112){if((r-=4)<0)break;A.push(e>>18|240,e>>12&63|128,e>>6&63|128,e&63|128)}else throw new Error("Invalid code point")}return A}function ur(t){for(var r=[],e=0;e<t.length;++e)r.push(t.charCodeAt(e)&255);return r}function sr(t,r){for(var e,o,v,A=[],x=0;x<t.length&&!((r-=2)<0);++x)e=t.charCodeAt(x),o=e>>8,v=e%256,A.push(v),A.push(o);return A}function fr(t){return p.toByteArray(dr(t))}function rr(t,r,e,o){for(var v=0;v<o&&!(v+e>=r.length||v>=t.length);++v)r[v+e]=t[v];return v}function Q(t,r){return t instanceof r||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===r.name}function gr(t){return t!==t}var Br=function(){for(var t="0123456789abcdef",r=new Array(256),e=0;e<16;++e)for(var o=e*16,v=0;v<16;++v)r[o+v]=t[e]+t[v];return r}()},{"base64-js":29,ieee754:32}],31:[function(c,_,g){var p={single_source_shortest_paths:function(d,s,i){var a={},f={};f[s]=0;var n=p.PriorityQueue.make();n.push(s,0);for(var m,E,T,L,b,U,B,I,F;!n.empty();){m=n.pop(),E=m.value,L=m.cost,b=d[E]||{};for(T in b)b.hasOwnProperty(T)&&(U=b[T],B=L+U,I=f[T],F=typeof f[T]=="undefined",(F||I>B)&&(f[T]=B,n.push(T,B),a[T]=E))}if(typeof i!="undefined"&&typeof f[i]=="undefined"){var S=["Could not find a path from ",s," to ",i,"."].join("");throw new Error(S)}return a},extract_shortest_path_from_predecessor_list:function(d,s){for(var i=[],a=s;a;)i.push(a),d[a],a=d[a];return i.reverse(),i},find_path:function(d,s,i){var a=p.single_source_shortest_paths(d,s,i);return p.extract_shortest_path_from_predecessor_list(a,i)},PriorityQueue:{make:function(d){var s=p.PriorityQueue,i={},a;d=d||{};for(a in s)s.hasOwnProperty(a)&&(i[a]=s[a]);return i.queue=[],i.sorter=d.sorter||s.default_sorter,i},default_sorter:function(d,s){return d.cost-s.cost},push:function(d,s){var i={value:d,cost:s};this.queue.push(i),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};typeof _!="undefined"&&(_.exports=p)},{}],32:[function(c,_,g){g.read=function(p,d,s,i,a){var f,n,m=a*8-i-1,E=(1<<m)-1,T=E>>1,L=-7,b=s?a-1:0,U=s?-1:1,B=p[d+b];for(b+=U,f=B&(1<<-L)-1,B>>=-L,L+=m;L>0;f=f*256+p[d+b],b+=U,L-=8);for(n=f&(1<<-L)-1,f>>=-L,L+=i;L>0;n=n*256+p[d+b],b+=U,L-=8);if(f===0)f=1-T;else{if(f===E)return n?NaN:(B?-1:1)*(1/0);n=n+Math.pow(2,i),f=f-T}return(B?-1:1)*n*Math.pow(2,f-i)},g.write=function(p,d,s,i,a,f){var n,m,E,T=f*8-a-1,L=(1<<T)-1,b=L>>1,U=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,B=i?0:f-1,I=i?1:-1,F=d<0||d===0&&1/d<0?1:0;for(d=Math.abs(d),isNaN(d)||d===1/0?(m=isNaN(d)?1:0,n=L):(n=Math.floor(Math.log(d)/Math.LN2),d*(E=Math.pow(2,-n))<1&&(n--,E*=2),n+b>=1?d+=U/E:d+=U*Math.pow(2,1-b),d*E>=2&&(n++,E/=2),n+b>=L?(m=0,n=L):n+b>=1?(m=(d*E-1)*Math.pow(2,a),n=n+b):(m=d*Math.pow(2,b-1)*Math.pow(2,a),n=0));a>=8;p[s+B]=m&255,B+=I,m/=256,a-=8);for(n=n<<a|m,T+=a;T>0;p[s+B]=n&255,B+=I,n/=256,T-=8);p[s+B-I]|=F*128}},{}],33:[function(c,_,g){var p={}.toString;_.exports=Array.isArray||function(d){return p.call(d)=="[object Array]"}},{}]},{},[24])(24)})}),Ir={name:"qrcode",props:{value:null,options:Object,tag:{type:String,default:"canvas"}},render:function(V){return V(this.tag,this.$slots.default)},watch:{$props:{deep:!0,immediate:!0,handler:function(){this.$el&&this.generate()}}},methods:{generate:function(){var V=this,c=this.options,_=this.tag,g=String(this.value);_==="canvas"?pr.toCanvas(this.$el,g,c,function(p){if(p)throw p}):_==="img"?pr.toDataURL(g,c,function(p,d){if(p)throw p;V.$el.src=d}):pr.toString(g,c,function(p,d){if(p)throw p;V.$el.innerHTML=d})}},mounted:function(){this.generate()}},Sr=function(){var u=this,V=u.$createElement,c=u._self._c||V;return c("div",{staticClass:"page-login"},[c("PageTitle",{attrs:{title:u.$L("\u767B\u5F55")}}),c("div",{staticClass:"login-body"},[c("div",{staticClass:"login-logo no-dark-content",class:{"can-click":u.needStartHome},on:{click:u.goHome}}),c("div",{staticClass:"login-box"},[c("div",{staticClass:"login-mode-switch"},[c("div",{staticClass:"login-mode-switch-box"},[c("ETooltip",{attrs:{disabled:u.$isEEUiApp||u.windowTouch,content:u.$L(u.loginMode=="qrcode"?"\u5E10\u53F7\u767B\u5F55":"\u626B\u7801\u767B\u5F55"),placement:"left"}},[c("span",{staticClass:"login-mode-switch-icon",on:{click:u.switchLoginMode}},[u.loginMode=="qrcode"?c("svg",{attrs:{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-icon":"PcOutlined"}},[c("path",{attrs:{d:"M23 16a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h18a2 2 0 0 1 2 2v12ZM21 4H3v9h18V4ZM3 15v1h18v-1H3Zm3 6a1 1 0 0 1 1-1h10a1 1 0 1 1 0 2H7a1 1 0 0 1-1-1Z",fill:"currentColor"}})]):c("svg",{attrs:{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-icon":"QrOutlined"}},[c("path",{attrs:{d:"M6.5 7.5a1 1 0 0 1 1-1h1a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1v-1Z",fill:"currentColor"}}),c("path",{attrs:{d:"M4.5 2.5c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-7c0-1.1-.9-2-2-2h-7Zm0 2h7v7h-7v-7ZM11 16a1 1 0 1 1 2 0 1 1 0 0 1-2 0Zm0 3.5a1 1 0 1 1 2 0v1a1 1 0 1 1-2 0v-1Zm4-7.5a1 1 0 1 1 2 0 1 1 0 0 1-2 0Zm3.5 0a1 1 0 0 1 1-1h1a1 1 0 1 1 0 2h-1a1 1 0 0 1-1-1ZM15 17c0-1.1.9-2 2-2h2.5c1.1 0 2 .9 2 2v2.5c0 1.1-.9 2-2 2H17c-1.1 0-2-.9-2-2V17Zm4.5 0H17v2.5h2.5V17Zm-15-2c-1.1 0-2 .9-2 2v2.5c0 1.1.9 2 2 2H7c1.1 0 2-.9 2-2V17c0-1.1-.9-2-2-2H4.5Zm0 2H7v2.5H4.5V17ZM15 4.5c0-1.1.9-2 2-2h2.5c1.1 0 2 .9 2 2V7c0 1.1-.9 2-2 2H17c-1.1 0-2-.9-2-2V4.5Zm4.5 0H17V7h2.5V4.5Z",fill:"currentColor"}})])])])],1)]),c("div",{staticClass:"login-title"},[u._v(u._s(u.welcomeTitle))]),c("div",{staticClass:"login-subtitle"},[u._v(u._s(u.$L(u.subTitle)))]),c("transition",{attrs:{name:"login-mode"}},[u.loginMode=="qrcode"?c("div",{staticClass:"login-qrcode",on:{click:u.qrcodeRefresh}},[c("VueQrcode",{attrs:{value:u.qrcodeUrl,options:{width:200,margin:0}}})],1):u._e()]),c("transition",{attrs:{name:"login-mode"}},[u.loginMode=="access"?c("div",{staticClass:"login-access"},[u.isSoftware&&u.cacheServerUrl?c("Input",{attrs:{value:u.$A.getDomain(u.cacheServerUrl),prefix:"ios-globe-outline",size:"large",readonly:"",clearable:""},on:{"on-clear":function(_){return u.setServerUrl("")}}}):u._e(),c("Input",{ref:"email",attrs:{prefix:"ios-mail-outline",placeholder:u.$L("\u8F93\u5165\u60A8\u7684\u7535\u5B50\u90AE\u4EF6"),type:"email",size:"large",clearable:""},on:{"on-enter":u.onLogin,"on-blur":u.onBlur},model:{value:u.email,callback:function(_){u.email=_},expression:"email"}}),c("Input",{ref:"password",attrs:{prefix:"ios-lock-outline",placeholder:u.$L("\u8F93\u5165\u60A8\u7684\u5BC6\u7801"),type:"password",size:"large",clearable:""},on:{"on-enter":u.onLogin},model:{value:u.password,callback:function(_){u.password=_},expression:"password"}}),u.loginType=="reg"?c("Input",{ref:"password2",attrs:{prefix:"ios-lock-outline",placeholder:u.$L("\u8F93\u5165\u786E\u8BA4\u5BC6\u7801"),type:"password",size:"large",clearable:""},on:{"on-enter":u.onLogin},model:{value:u.password2,callback:function(_){u.password2=_},expression:"password2"}}):u._e(),u.loginType=="reg"&&u.needInvite?c("Input",{ref:"invite",staticClass:"login-code",attrs:{placeholder:u.$L("\u8BF7\u8F93\u5165\u6CE8\u518C\u9080\u8BF7\u7801"),type:"text",size:"large",clearable:""},on:{"on-enter":u.onLogin},model:{value:u.invite,callback:function(_){u.invite=_},expression:"invite"}},[c("span",{attrs:{slot:"prepend"},slot:"prepend"},[u._v("\xA0"+u._s(u.$L("\u9080\u8BF7\u7801"))+"\xA0")])]):u._e(),u.loginType=="login"&&u.codeNeed?c("Input",{ref:"code",staticClass:"login-code",attrs:{placeholder:u.$L("\u8F93\u5165\u56FE\u5F62\u9A8C\u8BC1\u7801"),type:"text",size:"large",clearable:""},on:{"on-enter":u.onLogin},model:{value:u.code,callback:function(_){u.code=_},expression:"code"}},[c("Icon",{staticClass:"login-icon",attrs:{slot:"prepend",type:"ios-checkmark-circle-outline"},slot:"prepend"}),c("div",{staticClass:"login-code-end",attrs:{slot:"append"},on:{click:u.refreshCode},slot:"append"},[u.codeLoad>0?c("div",{staticClass:"code-load"},[c("Loading")],1):u.codeUrl==="error"?c("span",{staticClass:"code-error"},[u._v(u._s(u.$L("\u52A0\u8F7D\u5931\u8D25")))]):c("img",{attrs:{src:u.codeUrl}})])],1):u._e(),c("Button",{attrs:{type:"primary",loading:u.loadIng>0||u.loginJump,size:"large",long:""},on:{click:u.onLogin}},[u._v(u._s(u.$L(u.loginText)))]),u.loginType=="reg"?c("div",{staticClass:"login-switch"},[u._v(u._s(u.$L("\u5DF2\u7ECF\u6709\u5E10\u53F7\uFF1F"))),c("a",{attrs:{href:"javascript:void(0)"},on:{click:function(_){u.loginType="login"}}},[u._v(u._s(u.$L("\u767B\u5F55\u5E10\u53F7")))])]):c("div",{staticClass:"login-switch"},[u._v(u._s(u.$L("\u8FD8\u6CA1\u6709\u5E10\u53F7\uFF1F"))),c("a",{attrs:{href:"javascript:void(0)"},on:{click:function(_){u.loginType="reg"}}},[u._v(u._s(u.$L("\u6CE8\u518C\u5E10\u53F7")))])])],1):u._e()])],1),c("div",{staticClass:"login-bottom"},[c("Dropdown",{attrs:{trigger:"click",placement:"bottom-start"}},[c("div",{staticClass:"login-setting"},[u._v(" "+u._s(u.$L("\u8BBE\u7F6E"))+" "),c("i",{staticClass:"taskfont"},[u._v("\uE689")])]),c("DropdownMenu",{staticClass:"login-setting-menu",attrs:{slot:"list"},slot:"list"},[c("Dropdown",{attrs:{placement:"right-start",transfer:""},on:{"on-click":u.setTheme}},[c("DropdownItem",[c("div",{staticClass:"login-setting-item"},[u._v(" "+u._s(u.$L("\u4E3B\u9898\u76AE\u80A4"))+" "),c("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]),c("DropdownMenu",{attrs:{slot:"list"},slot:"list"},u._l(u.themeList,function(_,g){return c("DropdownItem",{key:g,attrs:{name:_.value,selected:u.themeMode===_.value}},[u._v(u._s(u.$L(_.name)))])}),1)],1),c("Dropdown",{attrs:{placement:"right-start",transfer:""},on:{"on-click":u.onLanguage}},[c("DropdownItem",{attrs:{divided:""}},[c("div",{staticClass:"login-setting-item"},[u._v(" "+u._s(u.currentLanguage)+" "),c("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]),c("DropdownMenu",{attrs:{slot:"list"},slot:"list"},u._l(u.languageList,function(_,g){return c("DropdownItem",{key:g,attrs:{name:g,selected:u.languageType===g}},[u._v(u._s(_))])}),1)],1)],1)],1),c("div",{staticClass:"login-forgot"},[u._v(u._s(u.$L("\u5FD8\u8BB0\u5BC6\u7801\u4E86\uFF1F"))),c("a",{attrs:{href:"javascript:void(0)"},on:{click:u.forgotPassword}},[u._v(u._s(u.$L("\u91CD\u7F6E\u5BC6\u7801")))])])],1)]),c("Modal",{attrs:{title:u.$L("\u9690\u79C1\u534F\u8BAE"),"mask-closable":!1},model:{value:u.privacyShow,callback:function(_){u.privacyShow=_},expression:"privacyShow"}},[c("div",{staticClass:"privacy-content"},[c("div",[u._v("\u6B22\u8FCE\u4F7F\u7528\u672C\u8F6F\u4EF6\uFF01")]),c("p",[u._v("\u5728\u60A8\u4F7F\u7528\u672C\u8F6F\u4EF6\u524D\uFF0C\u8BF7\u60A8\u8BA4\u771F\u9605\u8BFB\u5E76\u4E86\u89E3\u76F8\u5E94\u7684"),c("a",{attrs:{target:"_blank",href:u.$A.apiUrl("privacy")}},[u._v("\u300A"+u._s(u.$L("\u9690\u79C1\u653F\u7B56"))+"\u300B")]),u._v("\uFF0C\u4EE5\u4E86\u89E3\u6211\u4EEC\u7684\u670D\u52A1\u5185\u5BB9\u548C\u60A8\u76F8\u5173\u4E2A\u4EBA\u4FE1\u606F\u7684\u5904\u7406\u89C4\u5219\u3002\u6211\u4EEC\u5C06\u4E25\u683C\u7684\u6309\u7167\u9690\u79C1\u670D\u52A1\u534F\u8BAE\u4E3A\u60A8\u63D0\u4F9B\u670D\u52A1\uFF0C\u4FDD\u62A4\u60A8\u7684\u4E2A\u4EBA\u4FE1\u606F\u3002")])]),c("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[c("Button",{attrs:{type:"default"},on:{click:function(_){return u.onPrivacy(!1)}}},[u._v(u._s(u.$L("\u4E0D\u540C\u610F")))]),c("Button",{attrs:{type:"primary"},on:{click:function(_){return u.onPrivacy(!0)}}},[u._v(u._s(u.$L("\u540C\u610F")))])],1)])],1)},br=[];const Fr={components:{VueQrcode:Ir},data(){return{loadIng:0,languageList:wr,languageType:yr,qrcodeVal:"",qrcodeTimer:null,qrcodeLoad:!1,codeNeed:!1,codeLoad:0,codeKey:"",codeUrl:"",loginMode:"access",loginType:"login",loginJump:!1,email:"",password:"",password2:"",code:"",invite:"",needStartHome:!1,needInvite:!1,subscribe:null,privacyShow:!1}},async mounted(){this.privacyShow=!!this.$isEEUiApp&&await $A.IDBString("cachePrivacyShow")!=="no",this.email=await $A.IDBString("cacheLoginEmail")||"",this.isSoftware?this.chackServerUrl().catch(u=>{}):this.setServerUrl("").catch(u=>{}),this.qrcodeTimer=setInterval(this.qrcodeStatus,2e3),this.subscribe=Ar.Store.subscribe("useSSOLogin",()=>{this.inputServerUrl()})},beforeDestroy(){clearInterval(this.qrcodeTimer),this.subscribe&&(this.subscribe.unsubscribe(),this.subscribe=null)},activated(){this.loginType=this.$route.query.type==="reg"?"reg":"login",this.getDemoAccount(),this.getNeedStartHome(),this.$Electron&&this.$Electron.sendMessage("subWindowDestroyAll")},deactivated(){this.loginJump=!1,this.password="",this.password2="",this.code="",this.invite=""},computed:{...xr(["cacheServerUrl","themeMode","themeList"]),isSoftware(){return this.$Electron||this.$isEEUiApp},currentLanguage(){return wr[yr]||"Language"},welcomeTitle(){if(this.loginMode=="qrcode")return this.$L("\u626B\u7801\u767B\u5F55");const u=window.systemInfo.title||"DooTask";return"Welcome "+u},subTitle(){const u=window.systemInfo.title||"DooTask";return this.loginMode=="qrcode"?this.$L(`\u8BF7\u4F7F\u7528${u}\u79FB\u52A8\u7AEF\u626B\u63CF\u4E8C\u7EF4\u7801\u3002`):this.loginType=="reg"?this.$L("\u8F93\u5165\u60A8\u7684\u4FE1\u606F\u4EE5\u521B\u5EFA\u5E10\u6237\u3002"):this.$L("\u8F93\u5165\u60A8\u7684\u51ED\u8BC1\u4EE5\u8BBF\u95EE\u60A8\u7684\u5E10\u6237\u3002")},loginText(){let u=this.loginType=="login"?"\u767B\u5F55":"\u6CE8\u518C";return this.loginJump&&(u+="\u6210\u529F..."),u},qrcodeUrl(){return $A.apiUrl("../login?qrcode="+this.qrcodeVal)}},watch:{$route({query:u}){u.type=="reg"&&this.$nextTick(()=>{this.loginType="reg"})},loginMode(){this.qrcodeRefresh()},loginType(u){u=="reg"&&this.getNeedInvite()}},methods:{goHome(){this.needStartHome&&this.goForward("index")},setTheme(u){this.$store.dispatch("setTheme",u)},getDemoAccount(){this.isNotServer()||this.$store.dispatch("call",{url:"system/demo"}).then(({data:u})=>{u.account&&(this.email=u.account,this.password=u.password)}).catch(u=>{})},getNeedStartHome(){this.isNotServer()||this.$store.dispatch("needHome").then(u=>{this.needStartHome=!0}).catch(u=>{this.needStartHome=!1})},getNeedInvite(){this.$store.dispatch("call",{url:"users/reg/needinvite"}).then(({data:u})=>{this.needInvite=!!u.need}).catch(u=>{this.needInvite=!1})},switchLoginMode(){this.chackServerUrl(!0).then(()=>{this.loginMode==="qrcode"?this.loginMode="access":this.loginMode="qrcode"})},qrcodeRefresh(){this.loginMode=="qrcode"&&(this.qrcodeVal=$A.randomString(32))},qrcodeStatus(){this.$route.name!=="login"||this.loginMode!="qrcode"||this.qrcodeLoad||(this.qrcodeLoad=!0,this.$store.dispatch("call",{url:"users/login/qrcode?code="+this.qrcodeVal}).then(({data:u})=>{this.$store.dispatch("handleClearCache",u).then(this.goNext)}).catch(u=>{}).finally(u=>{this.qrcodeLoad=!1}))},forgotPassword(){$A.modalWarning("\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\uFF01")},refreshCode(){this.codeLoad>0||(setTimeout(u=>{this.codeLoad++},600),this.$store.dispatch("call",{url:"users/login/codejson"}).then(({data:u})=>{this.codeKey=u.key,this.codeUrl=u.img}).catch(u=>{this.codeUrl="error"}).finally(u=>{this.codeLoad--}))},inputServerUrl(){if(this.privacyShow)return;let u=$A.rightDelete(this.cacheServerUrl,"/api/");u=$A.leftDelete(u,"http://"),$A.modalInput({title:"\u4F7F\u7528 SSO \u767B\u5F55",value:u,placeholder:"\u8BF7\u8F93\u5165\u670D\u52A1\u5668\u5730\u5740",onOk:V=>V?this.inputServerChack($A.trim(V)):"\u8BF7\u8F93\u5165\u670D\u52A1\u5668\u5730\u5740"})},inputServerChack(u){return new Promise((V,c)=>{let _=u;/\/api\/$/.test(_)||(_=_+($A.rightExists(_,"/")?"api/":"/api/")),/^https*:\/\//i.test(_)||(_=`https://${_}`),this.$store.dispatch("call",{url:`${_}system/setting`,checkNetwork:!1}).then(async()=>{await this.setServerUrl(_),V()}).catch(({ret:g,msg:p})=>{if(g===-1001){if(!/^https*:\/\//i.test(u)){this.inputServerChack(`http://${u}`).then(V).catch(c);return}p="\u670D\u52A1\u5668\u5730\u5740\u65E0\u6548"}c(p)})})},chackServerUrl(u){return new Promise((V,c)=>{this.isNotServer()?(this.inputServerUrl(),u===!0&&this.$nextTick(_=>$A.messageWarning("\u8BF7\u8BBE\u7F6E\u670D\u52A1\u5668")),c()):V()})},async setServerUrl(u){await $A.IDBSet("cachePrivacyShow",u?"no":"yes"),u!=this.cacheServerUrl&&(await $A.IDBSet("cacheServerUrl",u),$A.reloadUrl())},isNotServer(){let u=$A.getDomain(window.systemInfo.apiUrl);return this.isSoftware&&(u==""||u=="public")},onBlur(){if(this.loginType!="login"||!this.email){this.codeNeed=!1;return}this.loadIng++,this.$store.dispatch("call",{url:"users/login/needcode",data:{email:this.email}}).then(()=>{this.refreshCode(),this.codeNeed=!0}).catch(u=>{this.codeNeed=!1}).finally(u=>{this.loadIng--})},onPrivacy(u){u?(this.privacyShow=!1,this.chackServerUrl().catch(V=>{})):$A.eeuiAppGoDesktop()},onLogin(){this.chackServerUrl(!0).then(()=>{if(this.email=$A.trim(this.email),this.password=$A.trim(this.password),this.password2=$A.trim(this.password2),this.code=$A.trim(this.code),this.invite=$A.trim(this.invite),!$A.isEmail(this.email)){$A.messageWarning("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u90AE\u7BB1\u5730\u5740"),this.$refs.email.focus();return}if(!this.password){$A.messageWarning("\u8BF7\u8F93\u5165\u5BC6\u7801"),this.$refs.password.focus();return}if(this.loginType=="reg"&&this.password!=this.password2){$A.messageWarning("\u786E\u8BA4\u5BC6\u7801\u8F93\u5165\u4E0D\u4E00\u81F4"),this.$refs.password2.focus();return}this.loadIng++,this.$store.dispatch("call",{url:"users/login",data:{type:this.loginType,email:this.email,password:this.password,code:this.code,code_key:this.codeKey,invite:this.invite}}).then(({data:u})=>{$A.IDBSave("cacheLoginEmail",this.email),this.codeNeed=!1,this.$store.dispatch("handleClearCache",u).then(this.goNext)}).catch(({data:u,msg:V})=>{u.code==="email"?(this.loginType="login",$A.modalWarning(V)):$A.modalError({content:V,onOk:c=>{this.$refs.code.focus()}}),u.code==="need"&&(this.refreshCode(),this.codeNeed=!0)}).finally(u=>{this.loadIng--})})},goNext(){this.loginJump=!0;const u=decodeURIComponent($A.getObject(this.$route.query,"from"));u?$A.IDBSet("clearCache","login").then(V=>{window.location.replace(u)}):this.goForward({name:"manage-dashboard"},!0)},onLanguage(u){Cr(u)}}},Er={};var Lr=_r(Fr,Sr,br,!1,Ur,null,null,null);function Ur(u){for(let V in Er)this[V]=Er[V]}var Rr=function(){return Lr.exports}();export{Rr as default};