| 1234567891011121314151617181920 |
- /* empty css */import{F as ee,a as ne}from"./index-DJdrcsn1.js";import{I as re,a as ie}from"./index-MBd3sYCs.js";import{g as se,u as oe,B as ae}from"./index-DnTunbJs.js";import{V as he,r as It,f as ue,m as Ht,o as at,a as xt,e as F,G as J,b as le,B as Z,y as G,p as Ot,q as pt,F as Et,W as fe,N as ce}from"./vue-vendor-B2yM2jt_.js";import{u as pe}from"./use-current-user-Cs-IbK0_.js";import{r as ge,a as de}from"./login-nLVJInxy.js";import{M as Dt}from"./index-CBqvezdJ.js";import"./index-DpAIyTtw.js";import{_ as kt}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./index-CVqxzIG_.js";const me="/assets/logo-B-RMh_L1.png",ye="/assets/login_group-Cpfobb93.png";var Ut={exports:{}};/*! For license information please see jsencrypt.min.js.LICENSE.txt */(function(C,Q){(function(k,ht){C.exports=ht()})(window,()=>(()=>{var k={155:B=>{var v,b,E=B.exports={};function tt(){throw new Error("setTimeout has not been defined")}function it(){throw new Error("clearTimeout has not been defined")}function st(I){if(v===setTimeout)return setTimeout(I,0);if((v===tt||!v)&&setTimeout)return v=setTimeout,setTimeout(I,0);try{return v(I,0)}catch{try{return v.call(null,I,0)}catch{return v.call(this,I,0)}}}(function(){try{v=typeof setTimeout=="function"?setTimeout:tt}catch{v=tt}try{b=typeof clearTimeout=="function"?clearTimeout:it}catch{b=it}})();var d,y=[],_=!1,Y=-1;function L(){_&&d&&(_=!1,d.length?y=d.concat(y):Y=-1,y.length&&et())}function et(){if(!_){var I=st(L);_=!0;for(var A=y.length;A;){for(d=y,y=[];++Y<A;)d&&d[Y].run();Y=-1,A=y.length}d=null,_=!1,function(N){if(b===clearTimeout)return clearTimeout(N);if((b===it||!b)&&clearTimeout)return b=clearTimeout,clearTimeout(N);try{b(N)}catch{try{return b.call(null,N)}catch{return b.call(this,N)}}}(I)}}function K(I,A){this.fun=I,this.array=A}function O(){}E.nextTick=function(I){var A=new Array(arguments.length-1);if(arguments.length>1)for(var N=1;N<arguments.length;N++)A[N-1]=arguments[N];y.push(new K(I,A)),y.length!==1||_||st(et)},K.prototype.run=function(){this.fun.apply(null,this.array)},E.title="browser",E.browser=!0,E.env={},E.argv=[],E.version="",E.versions={},E.on=O,E.addListener=O,E.once=O,E.off=O,E.removeListener=O,E.removeAllListeners=O,E.emit=O,E.prependListener=O,E.prependOnceListener=O,E.listeners=function(I){return[]},E.binding=function(I){throw new Error("process.binding is not supported")},E.cwd=function(){return"/"},E.chdir=function(I){throw new Error("process.chdir is not supported")},E.umask=function(){return 0}}},ht={};function U(B){var v=ht[B];if(v!==void 0)return v.exports;var b=ht[B]={exports:{}};return k[B](b,b.exports,U),b.exports}U.d=(B,v)=>{for(var b in v)U.o(v,b)&&!U.o(B,b)&&Object.defineProperty(B,b,{enumerable:!0,get:v[b]})},U.o=(B,v)=>Object.prototype.hasOwnProperty.call(B,v);var q={};return(()=>{function B(r){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(r)}function v(r,t){return r&t}function b(r,t){return r|t}function E(r,t){return r^t}function tt(r,t){return r&~t}function it(r){if(r==0)return-1;var t=0;return!(65535&r)&&(r>>=16,t+=16),!(255&r)&&(r>>=8,t+=8),!(15&r)&&(r>>=4,t+=4),!(3&r)&&(r>>=2,t+=2),!(1&r)&&++t,t}function st(r){for(var t=0;r!=0;)r&=r-1,++t;return t}U.d(q,{default:()=>Wt});var d,y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function _(r){var t,e,n="";for(t=0;t+3<=r.length;t+=3)e=parseInt(r.substring(t,t+3),16),n+=y.charAt(e>>6)+y.charAt(63&e);for(t+1==r.length?(e=parseInt(r.substring(t,t+1),16),n+=y.charAt(e<<2)):t+2==r.length&&(e=parseInt(r.substring(t,t+2),16),n+=y.charAt(e>>2)+y.charAt((3&e)<<4));(3&n.length)>0;)n+="=";return n}function Y(r){var t,e="",n=0,i=0;for(t=0;t<r.length&&r.charAt(t)!="=";++t){var s=y.indexOf(r.charAt(t));s<0||(n==0?(e+=B(s>>2),i=3&s,n=1):n==1?(e+=B(i<<2|s>>4),i=15&s,n=2):n==2?(e+=B(i),e+=B(s>>2),i=3&s,n=3):(e+=B(i<<2|s>>4),e+=B(15&s),n=0))}return n==1&&(e+=B(i<<2)),e}var L,et={decode:function(r){var t;if(L===void 0){var e=`= \f
- \r \u2028\u2029`;for(L=Object.create(null),t=0;t<64;++t)L["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t)]=t;for(L["-"]=62,L._=63,t=0;t<e.length;++t)L[e.charAt(t)]=-1}var n=[],i=0,s=0;for(t=0;t<r.length;++t){var o=r.charAt(t);if(o=="=")break;if((o=L[o])!=-1){if(o===void 0)throw new Error("Illegal character at offset "+t);i|=o,++s>=4?(n[n.length]=i>>16,n[n.length]=i>>8&255,n[n.length]=255&i,i=0,s=0):i<<=6}}switch(s){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:n[n.length]=i>>10;break;case 3:n[n.length]=i>>16,n[n.length]=i>>8&255}return n},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(r){var t=et.re.exec(r);if(t)if(t[1])r=t[1];else{if(!t[2])throw new Error("RegExp out of sync");r=t[2]}return et.decode(r)}},K=1e13,O=function(){function r(t){this.buf=[+t||0]}return r.prototype.mulAdd=function(t,e){var n,i,s=this.buf,o=s.length;for(n=0;n<o;++n)(i=s[n]*t+e)<K?e=0:i-=(e=0|i/K)*K,s[n]=i;e>0&&(s[n]=e)},r.prototype.sub=function(t){var e,n,i=this.buf,s=i.length;for(e=0;e<s;++e)(n=i[e]-t)<0?(n+=K,t=1):t=0,i[e]=n;for(;i[i.length-1]===0;)i.pop()},r.prototype.toString=function(t){if((t||10)!=10)throw new Error("only base 10 is supported");for(var e=this.buf,n=e[e.length-1].toString(),i=e.length-2;i>=0;--i)n+=(K+e[i]).toString().substring(1);return n},r.prototype.valueOf=function(){for(var t=this.buf,e=0,n=t.length-1;n>=0;--n)e=e*K+t[n];return e},r.prototype.simplify=function(){var t=this.buf;return t.length==1?t[0]:this},r}(),I=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,A=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function N(r,t){return r.length>t&&(r=r.substring(0,t)+"…"),r}var X,gt=function(){function r(t,e){this.hexDigits="0123456789ABCDEF",t instanceof r?(this.enc=t.enc,this.pos=t.pos):(this.enc=t,this.pos=e)}return r.prototype.get=function(t){if(t===void 0&&(t=this.pos++),t>=this.enc.length)throw new Error("Requesting byte offset ".concat(t," on a stream of length ").concat(this.enc.length));return typeof this.enc=="string"?this.enc.charCodeAt(t):this.enc[t]},r.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(15&t)},r.prototype.hexDump=function(t,e,n){for(var i="",s=t;s<e;++s)if(i+=this.hexByte(this.get(s)),n!==!0)switch(15&s){case 7:i+=" ";break;case 15:i+=`
- `;break;default:i+=" "}return i},r.prototype.isASCII=function(t,e){for(var n=t;n<e;++n){var i=this.get(n);if(i<32||i>176)return!1}return!0},r.prototype.parseStringISO=function(t,e){for(var n="",i=t;i<e;++i)n+=String.fromCharCode(this.get(i));return n},r.prototype.parseStringUTF=function(t,e){for(var n="",i=t;i<e;){var s=this.get(i++);n+=s<128?String.fromCharCode(s):s>191&&s<224?String.fromCharCode((31&s)<<6|63&this.get(i++)):String.fromCharCode((15&s)<<12|(63&this.get(i++))<<6|63&this.get(i++))}return n},r.prototype.parseStringBMP=function(t,e){for(var n,i,s="",o=t;o<e;)n=this.get(o++),i=this.get(o++),s+=String.fromCharCode(n<<8|i);return s},r.prototype.parseTime=function(t,e,n){var i=this.parseStringISO(t,e),s=(n?I:A).exec(i);return s?(n&&(s[1]=+s[1],s[1]+=+s[1]<70?2e3:1900),i=s[1]+"-"+s[2]+"-"+s[3]+" "+s[4],s[5]&&(i+=":"+s[5],s[6]&&(i+=":"+s[6],s[7]&&(i+="."+s[7]))),s[8]&&(i+=" UTC",s[8]!="Z"&&(i+=s[8],s[9]&&(i+=":"+s[9]))),i):"Unrecognized time: "+i},r.prototype.parseInteger=function(t,e){for(var n,i=this.get(t),s=i>127,o=s?255:0,a="";i==o&&++t<e;)i=this.get(t);if((n=e-t)==0)return s?-1:0;if(n>4){for(a=i,n<<=3;!(128&(+a^o));)a=+a<<1,--n;a="("+n+` bit)
- `}s&&(i-=256);for(var h=new O(i),l=t+1;l<e;++l)h.mulAdd(256,this.get(l));return a+h.toString()},r.prototype.parseBitString=function(t,e,n){for(var i=this.get(t),s="("+((e-t-1<<3)-i)+` bit)
- `,o="",a=t+1;a<e;++a){for(var h=this.get(a),l=a==e-1?i:0,f=7;f>=l;--f)o+=h>>f&1?"1":"0";if(o.length>n)return s+N(o,n)}return s+o},r.prototype.parseOctetString=function(t,e,n){if(this.isASCII(t,e))return N(this.parseStringISO(t,e),n);var i=e-t,s="("+i+` byte)
- `;i>(n/=2)&&(e=t+n);for(var o=t;o<e;++o)s+=this.hexByte(this.get(o));return i>n&&(s+="…"),s},r.prototype.parseOID=function(t,e,n){for(var i="",s=new O,o=0,a=t;a<e;++a){var h=this.get(a);if(s.mulAdd(128,127&h),o+=7,!(128&h)){if(i==="")if((s=s.simplify())instanceof O)s.sub(80),i="2."+s.toString();else{var l=s<80?s<40?0:1:2;i=l+"."+(s-40*l)}else i+="."+s.toString();if(i.length>n)return N(i,n);s=new O,o=0}}return o>0&&(i+=".incomplete"),i},r}(),Kt=function(){function r(t,e,n,i,s){if(!(i instanceof Nt))throw new Error("Invalid tag value.");this.stream=t,this.header=e,this.length=n,this.tag=i,this.sub=s}return r.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},r.prototype.content=function(t){if(this.tag===void 0)return null;t===void 0&&(t=1/0);var e=this.posContent(),n=Math.abs(this.length);if(!this.tag.isUniversal())return this.sub!==null?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+n,t);switch(this.tag.tagNumber){case 1:return this.stream.get(e)===0?"false":"true";case 2:return this.stream.parseInteger(e,e+n);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(e,e+n,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+n,t);case 6:return this.stream.parseOID(e,e+n,t);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return N(this.stream.parseStringUTF(e,e+n),t);case 18:case 19:case 20:case 21:case 22:case 26:return N(this.stream.parseStringISO(e,e+n),t);case 30:return N(this.stream.parseStringBMP(e,e+n),t);case 23:case 24:return this.stream.parseTime(e,e+n,this.tag.tagNumber==23)}return null},r.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(this.sub===null?"null":this.sub.length)+"]"},r.prototype.toPrettyString=function(t){t===void 0&&(t="");var e=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(e+="+"),e+=this.length,this.tag.tagConstructed?e+=" (constructed)":!this.tag.isUniversal()||this.tag.tagNumber!=3&&this.tag.tagNumber!=4||this.sub===null||(e+=" (encapsulates)"),e+=`
- `,this.sub!==null){t+=" ";for(var n=0,i=this.sub.length;n<i;++n)e+=this.sub[n].toPrettyString(t)}return e},r.prototype.posStart=function(){return this.stream.pos},r.prototype.posContent=function(){return this.stream.pos+this.header},r.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},r.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},r.decodeLength=function(t){var e=t.get(),n=127&e;if(n==e)return n;if(n>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(n===0)return null;e=0;for(var i=0;i<n;++i)e=256*e+t.get();return e},r.prototype.getHexStringValue=function(){var t=this.toHexString(),e=2*this.header,n=2*this.length;return t.substr(e,n)},r.decode=function(t){var e;e=t instanceof gt?t:new gt(t,0);var n=new gt(e),i=new Nt(e),s=r.decodeLength(e),o=e.pos,a=o-n.pos,h=null,l=function(){var T=[];if(s!==null){for(var g=o+s;e.pos<g;)T[T.length]=r.decode(e);if(e.pos!=g)throw new Error("Content size is not correct for container starting at offset "+o)}else try{for(;;){var D=r.decode(e);if(D.tag.isEOC())break;T[T.length]=D}s=o-e.pos}catch(w){throw new Error("Exception while decoding undefined length content: "+w)}return T};if(i.tagConstructed)h=l();else if(i.isUniversal()&&(i.tagNumber==3||i.tagNumber==4))try{if(i.tagNumber==3&&e.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");h=l();for(var f=0;f<h.length;++f)if(h[f].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch{h=null}if(h===null){if(s===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+o);e.pos=o+Math.abs(s)}return new r(n,a,s,i,h)},r}(),Nt=function(){function r(t){var e=t.get();if(this.tagClass=e>>6,this.tagConstructed=(32&e)!=0,this.tagNumber=31&e,this.tagNumber==31){var n=new O;do e=t.get(),n.mulAdd(128,127&e);while(128&e);this.tagNumber=n.simplify()}}return r.prototype.isUniversal=function(){return this.tagClass===0},r.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},r}(),P=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],$t=(1<<26)/P[P.length-1],p=function(){function r(t,e,n){t!=null&&(typeof t=="number"?this.fromNumber(t,e,n):e==null&&typeof t!="string"?this.fromString(t,256):this.fromString(t,e))}return r.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(t==16)e=4;else if(t==8)e=3;else if(t==2)e=1;else if(t==32)e=5;else{if(t!=4)return this.toRadix(t);e=2}var n,i=(1<<e)-1,s=!1,o="",a=this.t,h=this.DB-a*this.DB%e;if(a-- >0)for(h<this.DB&&(n=this[a]>>h)>0&&(s=!0,o=B(n));a>=0;)h<e?(n=(this[a]&(1<<h)-1)<<e-h,n|=this[--a]>>(h+=this.DB-e)):(n=this[a]>>(h-=e)&i,h<=0&&(h+=this.DB,--a)),n>0&&(s=!0),s&&(o+=B(n));return s?o:"0"},r.prototype.negate=function(){var t=m();return r.ZERO.subTo(this,t),t},r.prototype.abs=function(){return this.s<0?this.negate():this},r.prototype.compareTo=function(t){var e=this.s-t.s;if(e!=0)return e;var n=this.t;if((e=n-t.t)!=0)return this.s<0?-e:e;for(;--n>=0;)if((e=this[n]-t[n])!=0)return e;return 0},r.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+mt(this[this.t-1]^this.s&this.DM)},r.prototype.mod=function(t){var e=m();return this.abs().divRemTo(t,null,e),this.s<0&&e.compareTo(r.ZERO)>0&&t.subTo(e,e),e},r.prototype.modPowInt=function(t,e){var n;return n=t<256||e.isEven()?new Pt(e):new Mt(e),this.exp(t,n)},r.prototype.clone=function(){var t=m();return this.copyTo(t),t},r.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},r.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},r.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},r.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},r.prototype.toByteArray=function(){var t=this.t,e=[];e[0]=this.s;var n,i=this.DB-t*this.DB%8,s=0;if(t-- >0)for(i<this.DB&&(n=this[t]>>i)!=(this.s&this.DM)>>i&&(e[s++]=n|this.s<<this.DB-i);t>=0;)i<8?(n=(this[t]&(1<<i)-1)<<8-i,n|=this[--t]>>(i+=this.DB-8)):(n=this[t]>>(i-=8)&255,i<=0&&(i+=this.DB,--t)),128&n&&(n|=-256),s==0&&(128&this.s)!=(128&n)&&++s,(s>0||n!=this.s)&&(e[s++]=n);return e},r.prototype.equals=function(t){return this.compareTo(t)==0},r.prototype.min=function(t){return this.compareTo(t)<0?this:t},r.prototype.max=function(t){return this.compareTo(t)>0?this:t},r.prototype.and=function(t){var e=m();return this.bitwiseTo(t,v,e),e},r.prototype.or=function(t){var e=m();return this.bitwiseTo(t,b,e),e},r.prototype.xor=function(t){var e=m();return this.bitwiseTo(t,E,e),e},r.prototype.andNot=function(t){var e=m();return this.bitwiseTo(t,tt,e),e},r.prototype.not=function(){for(var t=m(),e=0;e<this.t;++e)t[e]=this.DM&~this[e];return t.t=this.t,t.s=~this.s,t},r.prototype.shiftLeft=function(t){var e=m();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},r.prototype.shiftRight=function(t){var e=m();return t<0?this.lShiftTo(-t,e):this.rShiftTo(t,e),e},r.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(this[t]!=0)return t*this.DB+it(this[t]);return this.s<0?this.t*this.DB:-1},r.prototype.bitCount=function(){for(var t=0,e=this.s&this.DM,n=0;n<this.t;++n)t+=st(this[n]^e);return t},r.prototype.testBit=function(t){var e=Math.floor(t/this.DB);return e>=this.t?this.s!=0:(this[e]&1<<t%this.DB)!=0},r.prototype.setBit=function(t){return this.changeBit(t,b)},r.prototype.clearBit=function(t){return this.changeBit(t,tt)},r.prototype.flipBit=function(t){return this.changeBit(t,E)},r.prototype.add=function(t){var e=m();return this.addTo(t,e),e},r.prototype.subtract=function(t){var e=m();return this.subTo(t,e),e},r.prototype.multiply=function(t){var e=m();return this.multiplyTo(t,e),e},r.prototype.divide=function(t){var e=m();return this.divRemTo(t,e,null),e},r.prototype.remainder=function(t){var e=m();return this.divRemTo(t,null,e),e},r.prototype.divideAndRemainder=function(t){var e=m(),n=m();return this.divRemTo(t,e,n),[e,n]},r.prototype.modPow=function(t,e){var n,i,s=t.bitLength(),o=nt(1);if(s<=0)return o;n=s<18?1:s<48?3:s<144?4:s<768?5:6,i=s<8?new Pt(e):e.isEven()?new Zt(e):new Mt(e);var a=[],h=3,l=n-1,f=(1<<n)-1;if(a[1]=i.convert(this),n>1){var T=m();for(i.sqrTo(a[1],T);h<=f;)a[h]=m(),i.mulTo(T,a[h-2],a[h]),h+=2}var g,D,w=t.t-1,S=!0,x=m();for(s=mt(t[w])-1;w>=0;){for(s>=l?g=t[w]>>s-l&f:(g=(t[w]&(1<<s+1)-1)<<l-s,w>0&&(g|=t[w-1]>>this.DB+s-l)),h=n;!(1&g);)g>>=1,--h;if((s-=h)<0&&(s+=this.DB,--w),S)a[g].copyTo(o),S=!1;else{for(;h>1;)i.sqrTo(o,x),i.sqrTo(x,o),h-=2;h>0?i.sqrTo(o,x):(D=o,o=x,x=D),i.mulTo(x,a[g],o)}for(;w>=0&&!(t[w]&1<<s);)i.sqrTo(o,x),D=o,o=x,x=D,--s<0&&(s=this.DB-1,--w)}return i.revert(o)},r.prototype.modInverse=function(t){var e=t.isEven();if(this.isEven()&&e||t.signum()==0)return r.ZERO;for(var n=t.clone(),i=this.clone(),s=nt(1),o=nt(0),a=nt(0),h=nt(1);n.signum()!=0;){for(;n.isEven();)n.rShiftTo(1,n),e?(s.isEven()&&o.isEven()||(s.addTo(this,s),o.subTo(t,o)),s.rShiftTo(1,s)):o.isEven()||o.subTo(t,o),o.rShiftTo(1,o);for(;i.isEven();)i.rShiftTo(1,i),e?(a.isEven()&&h.isEven()||(a.addTo(this,a),h.subTo(t,h)),a.rShiftTo(1,a)):h.isEven()||h.subTo(t,h),h.rShiftTo(1,h);n.compareTo(i)>=0?(n.subTo(i,n),e&&s.subTo(a,s),o.subTo(h,o)):(i.subTo(n,i),e&&a.subTo(s,a),h.subTo(o,h))}return i.compareTo(r.ONE)!=0?r.ZERO:h.compareTo(t)>=0?h.subtract(t):h.signum()<0?(h.addTo(t,h),h.signum()<0?h.add(t):h):h},r.prototype.pow=function(t){return this.exp(t,new zt)},r.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),n=t.s<0?t.negate():t.clone();if(e.compareTo(n)<0){var i=e;e=n,n=i}var s=e.getLowestSetBit(),o=n.getLowestSetBit();if(o<0)return e;for(s<o&&(o=s),o>0&&(e.rShiftTo(o,e),n.rShiftTo(o,n));e.signum()>0;)(s=e.getLowestSetBit())>0&&e.rShiftTo(s,e),(s=n.getLowestSetBit())>0&&n.rShiftTo(s,n),e.compareTo(n)>=0?(e.subTo(n,e),e.rShiftTo(1,e)):(n.subTo(e,n),n.rShiftTo(1,n));return o>0&&n.lShiftTo(o,n),n},r.prototype.isProbablePrime=function(t){var e,n=this.abs();if(n.t==1&&n[0]<=P[P.length-1]){for(e=0;e<P.length;++e)if(n[0]==P[e])return!0;return!1}if(n.isEven())return!1;for(e=1;e<P.length;){for(var i=P[e],s=e+1;s<P.length&&i<$t;)i*=P[s++];for(i=n.modInt(i);e<s;)if(i%P[e++]==0)return!1}return n.millerRabin(t)},r.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},r.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},r.prototype.fromString=function(t,e){var n;if(e==16)n=4;else if(e==8)n=3;else if(e==256)n=8;else if(e==2)n=1;else if(e==32)n=5;else{if(e!=4)return void this.fromRadix(t,e);n=2}this.t=0,this.s=0;for(var i=t.length,s=!1,o=0;--i>=0;){var a=n==8?255&+t[i]:Lt(t,i);a<0?t.charAt(i)=="-"&&(s=!0):(s=!1,o==0?this[this.t++]=a:o+n>this.DB?(this[this.t-1]|=(a&(1<<this.DB-o)-1)<<o,this[this.t++]=a>>this.DB-o):this[this.t-1]|=a<<o,(o+=n)>=this.DB&&(o-=this.DB))}n==8&&128&+t[0]&&(this.s=-1,o>0&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),this.clamp(),s&&r.ZERO.subTo(this,this)},r.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},r.prototype.dlShiftTo=function(t,e){var n;for(n=this.t-1;n>=0;--n)e[n+t]=this[n];for(n=t-1;n>=0;--n)e[n]=0;e.t=this.t+t,e.s=this.s},r.prototype.drShiftTo=function(t,e){for(var n=t;n<this.t;++n)e[n-t]=this[n];e.t=Math.max(this.t-t,0),e.s=this.s},r.prototype.lShiftTo=function(t,e){for(var n=t%this.DB,i=this.DB-n,s=(1<<i)-1,o=Math.floor(t/this.DB),a=this.s<<n&this.DM,h=this.t-1;h>=0;--h)e[h+o+1]=this[h]>>i|a,a=(this[h]&s)<<n;for(h=o-1;h>=0;--h)e[h]=0;e[o]=a,e.t=this.t+o+1,e.s=this.s,e.clamp()},r.prototype.rShiftTo=function(t,e){e.s=this.s;var n=Math.floor(t/this.DB);if(n>=this.t)e.t=0;else{var i=t%this.DB,s=this.DB-i,o=(1<<i)-1;e[0]=this[n]>>i;for(var a=n+1;a<this.t;++a)e[a-n-1]|=(this[a]&o)<<s,e[a-n]=this[a]>>i;i>0&&(e[this.t-n-1]|=(this.s&o)<<s),e.t=this.t-n,e.clamp()}},r.prototype.subTo=function(t,e){for(var n=0,i=0,s=Math.min(t.t,this.t);n<s;)i+=this[n]-t[n],e[n++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i-=t.s;n<this.t;)i+=this[n],e[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;n<t.t;)i-=t[n],e[n++]=i&this.DM,i>>=this.DB;i-=t.s}e.s=i<0?-1:0,i<-1?e[n++]=this.DV+i:i>0&&(e[n++]=i),e.t=n,e.clamp()},r.prototype.multiplyTo=function(t,e){var n=this.abs(),i=t.abs(),s=n.t;for(e.t=s+i.t;--s>=0;)e[s]=0;for(s=0;s<i.t;++s)e[s+n.t]=n.am(0,i[s],e,s,0,n.t);e.s=0,e.clamp(),this.s!=t.s&&r.ZERO.subTo(e,e)},r.prototype.squareTo=function(t){for(var e=this.abs(),n=t.t=2*e.t;--n>=0;)t[n]=0;for(n=0;n<e.t-1;++n){var i=e.am(n,e[n],t,2*n,0,1);(t[n+e.t]+=e.am(n+1,2*e[n],t,2*n+1,i,e.t-n-1))>=e.DV&&(t[n+e.t]-=e.DV,t[n+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(n,e[n],t,2*n,0,1)),t.s=0,t.clamp()},r.prototype.divRemTo=function(t,e,n){var i=t.abs();if(!(i.t<=0)){var s=this.abs();if(s.t<i.t)return e!=null&&e.fromInt(0),void(n!=null&&this.copyTo(n));n==null&&(n=m());var o=m(),a=this.s,h=t.s,l=this.DB-mt(i[i.t-1]);l>0?(i.lShiftTo(l,o),s.lShiftTo(l,n)):(i.copyTo(o),s.copyTo(n));var f=o.t,T=o[f-1];if(T!=0){var g=T*(1<<this.F1)+(f>1?o[f-2]>>this.F2:0),D=this.FV/g,w=(1<<this.F1)/g,S=1<<this.F2,x=n.t,W=x-f,M=e??m();for(o.dlShiftTo(W,M),n.compareTo(M)>=0&&(n[n.t++]=1,n.subTo(M,n)),r.ONE.dlShiftTo(f,M),M.subTo(o,o);o.t<f;)o[o.t++]=0;for(;--W>=0;){var j=n[--x]==T?this.DM:Math.floor(n[x]*D+(n[x-1]+S)*w);if((n[x]+=o.am(0,j,n,W,0,f))<j)for(o.dlShiftTo(W,M),n.subTo(M,n);n[x]<--j;)n.subTo(M,n)}e!=null&&(n.drShiftTo(f,e),a!=h&&r.ZERO.subTo(e,e)),n.t=f,n.clamp(),l>0&&n.rShiftTo(l,n),a<0&&r.ZERO.subTo(n,n)}}},r.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(!(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},r.prototype.isEven=function(){return(this.t>0?1&this[0]:this.s)==0},r.prototype.exp=function(t,e){if(t>4294967295||t<1)return r.ONE;var n=m(),i=m(),s=e.convert(this),o=mt(t)-1;for(s.copyTo(n);--o>=0;)if(e.sqrTo(n,i),(t&1<<o)>0)e.mulTo(i,s,n);else{var a=n;n=i,i=a}return e.revert(n)},r.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},r.prototype.toRadix=function(t){if(t==null&&(t=10),this.signum()==0||t<2||t>36)return"0";var e=this.chunkSize(t),n=Math.pow(t,e),i=nt(n),s=m(),o=m(),a="";for(this.divRemTo(i,s,o);s.signum()>0;)a=(n+o.intValue()).toString(t).substr(1)+a,s.divRemTo(i,s,o);return o.intValue().toString(t)+a},r.prototype.fromRadix=function(t,e){this.fromInt(0),e==null&&(e=10);for(var n=this.chunkSize(e),i=Math.pow(e,n),s=!1,o=0,a=0,h=0;h<t.length;++h){var l=Lt(t,h);l<0?t.charAt(h)=="-"&&this.signum()==0&&(s=!0):(a=e*a+l,++o>=n&&(this.dMultiply(i),this.dAddOffset(a,0),o=0,a=0))}o>0&&(this.dMultiply(Math.pow(e,o)),this.dAddOffset(a,0)),s&&r.ZERO.subTo(this,this)},r.prototype.fromNumber=function(t,e,n){if(typeof e=="number")if(t<2)this.fromInt(1);else for(this.fromNumber(t,n),this.testBit(t-1)||this.bitwiseTo(r.ONE.shiftLeft(t-1),b,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(e);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(r.ONE.shiftLeft(t-1),this);else{var i=[],s=7&t;i.length=1+(t>>3),e.nextBytes(i),s>0?i[0]&=(1<<s)-1:i[0]=0,this.fromString(i,256)}},r.prototype.bitwiseTo=function(t,e,n){var i,s,o=Math.min(t.t,this.t);for(i=0;i<o;++i)n[i]=e(this[i],t[i]);if(t.t<this.t){for(s=t.s&this.DM,i=o;i<this.t;++i)n[i]=e(this[i],s);n.t=this.t}else{for(s=this.s&this.DM,i=o;i<t.t;++i)n[i]=e(s,t[i]);n.t=t.t}n.s=e(this.s,t.s),n.clamp()},r.prototype.changeBit=function(t,e){var n=r.ONE.shiftLeft(t);return this.bitwiseTo(n,e,n),n},r.prototype.addTo=function(t,e){for(var n=0,i=0,s=Math.min(t.t,this.t);n<s;)i+=this[n]+t[n],e[n++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i+=t.s;n<this.t;)i+=this[n],e[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;n<t.t;)i+=t[n],e[n++]=i&this.DM,i>>=this.DB;i+=t.s}e.s=i<0?-1:0,i>0?e[n++]=i:i<-1&&(e[n++]=this.DV+i),e.t=n,e.clamp()},r.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},r.prototype.dAddOffset=function(t,e){if(t!=0){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},r.prototype.multiplyLowerTo=function(t,e,n){var i=Math.min(this.t+t.t,e);for(n.s=0,n.t=i;i>0;)n[--i]=0;for(var s=n.t-this.t;i<s;++i)n[i+this.t]=this.am(0,t[i],n,i,0,this.t);for(s=Math.min(t.t,e);i<s;++i)this.am(0,t[i],n,i,0,e-i);n.clamp()},r.prototype.multiplyUpperTo=function(t,e,n){--e;var i=n.t=this.t+t.t-e;for(n.s=0;--i>=0;)n[i]=0;for(i=Math.max(e-this.t,0);i<t.t;++i)n[this.t+i-e]=this.am(e-i,t[i],n,0,0,this.t+i-e);n.clamp(),n.drShiftTo(1,n)},r.prototype.modInt=function(t){if(t<=0)return 0;var e=this.DV%t,n=this.s<0?t-1:0;if(this.t>0)if(e==0)n=this[0]%t;else for(var i=this.t-1;i>=0;--i)n=(e*n+this[i])%t;return n},r.prototype.millerRabin=function(t){var e=this.subtract(r.ONE),n=e.getLowestSetBit();if(n<=0)return!1;var i=e.shiftRight(n);(t=t+1>>1)>P.length&&(t=P.length);for(var s=m(),o=0;o<t;++o){s.fromInt(P[Math.floor(Math.random()*P.length)]);var a=s.modPow(i,this);if(a.compareTo(r.ONE)!=0&&a.compareTo(e)!=0){for(var h=1;h++<n&&a.compareTo(e)!=0;)if((a=a.modPowInt(2,this)).compareTo(r.ONE)==0)return!1;if(a.compareTo(e)!=0)return!1}}return!0},r.prototype.square=function(){var t=m();return this.squareTo(t),t},r.prototype.gcda=function(t,e){var n=this.s<0?this.negate():this.clone(),i=t.s<0?t.negate():t.clone();if(n.compareTo(i)<0){var s=n;n=i,i=s}var o=n.getLowestSetBit(),a=i.getLowestSetBit();if(a<0)e(n);else{o<a&&(a=o),a>0&&(n.rShiftTo(a,n),i.rShiftTo(a,i));var h=function(){(o=n.getLowestSetBit())>0&&n.rShiftTo(o,n),(o=i.getLowestSetBit())>0&&i.rShiftTo(o,i),n.compareTo(i)>=0?(n.subTo(i,n),n.rShiftTo(1,n)):(i.subTo(n,i),i.rShiftTo(1,i)),n.signum()>0?setTimeout(h,0):(a>0&&i.lShiftTo(a,i),setTimeout(function(){e(i)},0))};setTimeout(h,10)}},r.prototype.fromNumberAsync=function(t,e,n,i){if(typeof e=="number")if(t<2)this.fromInt(1);else{this.fromNumber(t,n),this.testBit(t-1)||this.bitwiseTo(r.ONE.shiftLeft(t-1),b,this),this.isEven()&&this.dAddOffset(1,0);var s=this,o=function(){s.dAddOffset(2,0),s.bitLength()>t&&s.subTo(r.ONE.shiftLeft(t-1),s),s.isProbablePrime(e)?setTimeout(function(){i()},0):setTimeout(o,0)};setTimeout(o,0)}else{var a=[],h=7&t;a.length=1+(t>>3),e.nextBytes(a),h>0?a[0]&=(1<<h)-1:a[0]=0,this.fromString(a,256)}},r}(),zt=function(){function r(){}return r.prototype.convert=function(t){return t},r.prototype.revert=function(t){return t},r.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n)},r.prototype.sqrTo=function(t,e){t.squareTo(e)},r}(),Pt=function(){function r(t){this.m=t}return r.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},r.prototype.revert=function(t){return t},r.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},r.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},r.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},r}(),Mt=function(){function r(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}return r.prototype.convert=function(t){var e=m();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(p.ZERO)>0&&this.m.subTo(e,e),e},r.prototype.revert=function(t){var e=m();return t.copyTo(e),this.reduce(e),e},r.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var n=32767&t[e],i=n*this.mpl+((n*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(t[n=e+this.m.t]+=this.m.am(0,i,t,e,0,this.m.t);t[n]>=t.DV;)t[n]-=t.DV,t[++n]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},r.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},r.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},r}(),Zt=function(){function r(t){this.m=t,this.r2=m(),this.q3=m(),p.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t)}return r.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=m();return t.copyTo(e),this.reduce(e),e},r.prototype.revert=function(t){return t},r.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},r.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},r.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},r}();function m(){return new p(null)}function R(r,t){return new p(r,t)}var _t=typeof navigator<"u";_t&&navigator.appName=="Microsoft Internet Explorer"?(p.prototype.am=function(r,t,e,n,i,s){for(var o=32767&t,a=t>>15;--s>=0;){var h=32767&this[r],l=this[r++]>>15,f=a*h+l*o;i=((h=o*h+((32767&f)<<15)+e[n]+(1073741823&i))>>>30)+(f>>>15)+a*l+(i>>>30),e[n++]=1073741823&h}return i},X=30):_t&&navigator.appName!="Netscape"?(p.prototype.am=function(r,t,e,n,i,s){for(;--s>=0;){var o=t*this[r++]+e[n]+i;i=Math.floor(o/67108864),e[n++]=67108863&o}return i},X=26):(p.prototype.am=function(r,t,e,n,i,s){for(var o=16383&t,a=t>>14;--s>=0;){var h=16383&this[r],l=this[r++]>>14,f=a*h+l*o;i=((h=o*h+((16383&f)<<14)+e[n]+i)>>28)+(f>>14)+a*l,e[n++]=268435455&h}return i},X=28),p.prototype.DB=X,p.prototype.DM=(1<<X)-1,p.prototype.DV=1<<X,p.prototype.FV=Math.pow(2,52),p.prototype.F1=52-X,p.prototype.F2=2*X-52;var ut,H,dt=[];for(ut=48,H=0;H<=9;++H)dt[ut++]=H;for(ut=97,H=10;H<36;++H)dt[ut++]=H;for(ut=65,H=10;H<36;++H)dt[ut++]=H;function Lt(r,t){var e=dt[r.charCodeAt(t)];return e??-1}function nt(r){var t=m();return t.fromInt(r),t}function mt(r){var t,e=1;return(t=r>>>16)!=0&&(r=t,e+=16),(t=r>>8)!=0&&(r=t,e+=8),(t=r>>4)!=0&&(r=t,e+=4),(t=r>>2)!=0&&(r=t,e+=2),(t=r>>1)!=0&&(r=t,e+=1),e}p.ZERO=nt(0),p.ONE=nt(1);var yt,$,Yt=function(){function r(){this.i=0,this.j=0,this.S=[]}return r.prototype.init=function(t){var e,n,i;for(e=0;e<256;++e)this.S[e]=e;for(n=0,e=0;e<256;++e)n=n+this.S[e]+t[e%t.length]&255,i=this.S[e],this.S[e]=this.S[n],this.S[n]=i;this.i=0,this.j=0},r.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]},r}(),rt=null;if(rt==null){rt=[],$=0;var vt=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var Bt=new Uint32Array(256);for(window.crypto.getRandomValues(Bt),vt=0;vt<Bt.length;++vt)rt[$++]=255&Bt[vt]}var Rt=0,bt=function(r){if((Rt=Rt||0)>=256||$>=256)window.removeEventListener?window.removeEventListener("mousemove",bt,!1):window.detachEvent&&window.detachEvent("onmousemove",bt);else try{var t=r.x+r.y;rt[$++]=255&t,Rt+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",bt,!1):window.attachEvent&&window.attachEvent("onmousemove",bt))}function Gt(){if(yt==null){for(yt=new Yt;$<256;){var r=Math.floor(65536*Math.random());rt[$++]=255&r}for(yt.init(rt),$=0;$<rt.length;++$)rt[$]=0;$=0}return yt.next()}var At=function(){function r(){}return r.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=Gt()},r}(),Jt=function(){function r(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return r.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},r.prototype.doPrivate=function(t){if(this.p==null||this.q==null)return t.modPow(this.d,this.n);for(var e=t.mod(this.p).modPow(this.dmp1,this.p),n=t.mod(this.q).modPow(this.dmq1,this.q);e.compareTo(n)<0;)e=e.add(this.p);return e.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},r.prototype.setPublic=function(t,e){t!=null&&e!=null&&t.length>0&&e.length>0?(this.n=R(t,16),this.e=parseInt(e,16)):console.error("Invalid RSA public key")},r.prototype.encrypt=function(t){var e=this.n.bitLength()+7>>3,n=function(h,l){if(l<h.length+11)return console.error("Message too long for RSA"),null;for(var f=[],T=h.length-1;T>=0&&l>0;){var g=h.charCodeAt(T--);g<128?f[--l]=g:g>127&&g<2048?(f[--l]=63&g|128,f[--l]=g>>6|192):(f[--l]=63&g|128,f[--l]=g>>6&63|128,f[--l]=g>>12|224)}f[--l]=0;for(var D=new At,w=[];l>2;){for(w[0]=0;w[0]==0;)D.nextBytes(w);f[--l]=w[0]}return f[--l]=2,f[--l]=0,new p(f)}(t,e);if(n==null)return null;var i=this.doPublic(n);if(i==null)return null;for(var s=i.toString(16),o=s.length,a=0;a<2*e-o;a++)s="0"+s;return s},r.prototype.setPrivate=function(t,e,n){t!=null&&e!=null&&t.length>0&&e.length>0?(this.n=R(t,16),this.e=parseInt(e,16),this.d=R(n,16)):console.error("Invalid RSA private key")},r.prototype.setPrivateEx=function(t,e,n,i,s,o,a,h){t!=null&&e!=null&&t.length>0&&e.length>0?(this.n=R(t,16),this.e=parseInt(e,16),this.d=R(n,16),this.p=R(i,16),this.q=R(s,16),this.dmp1=R(o,16),this.dmq1=R(a,16),this.coeff=R(h,16)):console.error("Invalid RSA private key")},r.prototype.generate=function(t,e){var n=new At,i=t>>1;this.e=parseInt(e,16);for(var s=new p(e,16);;){for(;this.p=new p(t-i,1,n),this.p.subtract(p.ONE).gcd(s).compareTo(p.ONE)!=0||!this.p.isProbablePrime(10););for(;this.q=new p(i,1,n),this.q.subtract(p.ONE).gcd(s).compareTo(p.ONE)!=0||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var o=this.p;this.p=this.q,this.q=o}var a=this.p.subtract(p.ONE),h=this.q.subtract(p.ONE),l=a.multiply(h);if(l.gcd(s).compareTo(p.ONE)==0){this.n=this.p.multiply(this.q),this.d=s.modInverse(l),this.dmp1=this.d.mod(a),this.dmq1=this.d.mod(h),this.coeff=this.q.modInverse(this.p);break}}},r.prototype.decrypt=function(t){var e=R(t,16),n=this.doPrivate(e);return n==null?null:function(i,s){for(var o=i.toByteArray(),a=0;a<o.length&&o[a]==0;)++a;if(o.length-a!=s-1||o[a]!=2)return null;for(++a;o[a]!=0;)if(++a>=o.length)return null;for(var h="";++a<o.length;){var l=255&o[a];l<128?h+=String.fromCharCode(l):l>191&&l<224?(h+=String.fromCharCode((31&l)<<6|63&o[a+1]),++a):(h+=String.fromCharCode((15&l)<<12|(63&o[a+1])<<6|63&o[a+2]),a+=2)}return h}(n,this.n.bitLength()+7>>3)},r.prototype.generateAsync=function(t,e,n){var i=new At,s=t>>1;this.e=parseInt(e,16);var o=new p(e,16),a=this,h=function(){var l=function(){if(a.p.compareTo(a.q)<=0){var g=a.p;a.p=a.q,a.q=g}var D=a.p.subtract(p.ONE),w=a.q.subtract(p.ONE),S=D.multiply(w);S.gcd(o).compareTo(p.ONE)==0?(a.n=a.p.multiply(a.q),a.d=o.modInverse(S),a.dmp1=a.d.mod(D),a.dmq1=a.d.mod(w),a.coeff=a.q.modInverse(a.p),setTimeout(function(){n()},0)):setTimeout(h,0)},f=function(){a.q=m(),a.q.fromNumberAsync(s,1,i,function(){a.q.subtract(p.ONE).gcda(o,function(g){g.compareTo(p.ONE)==0&&a.q.isProbablePrime(10)?setTimeout(l,0):setTimeout(f,0)})})},T=function(){a.p=m(),a.p.fromNumberAsync(t-s,1,i,function(){a.p.subtract(p.ONE).gcda(o,function(g){g.compareTo(p.ONE)==0&&a.p.isProbablePrime(10)?setTimeout(f,0):setTimeout(T,0)})})};setTimeout(T,0)};setTimeout(h,0)},r.prototype.sign=function(t,e,n){var i=function(a,h){if(h<a.length+22)return console.error("Message too long for RSA"),null;for(var l=h-a.length-6,f="",T=0;T<l;T+=2)f+="ff";return R("0001"+f+"00"+a,16)}((Tt[n]||"")+e(t).toString(),this.n.bitLength()/4);if(i==null)return null;var s=this.doPrivate(i);if(s==null)return null;var o=s.toString(16);return 1&o.length?"0"+o:o},r.prototype.verify=function(t,e,n){var i=R(e,16),s=this.doPublic(i);return s==null?null:function(o){for(var a in Tt)if(Tt.hasOwnProperty(a)){var h=Tt[a],l=h.length;if(o.substr(0,l)==h)return o.substr(l)}return o}(s.toString(16).replace(/^1f+00/,""))==n(t).toString()},r}(),Tt={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"},V={};V.lang={extend:function(r,t,e){if(!t||!r)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var n=function(){};if(n.prototype=t.prototype,r.prototype=new n,r.prototype.constructor=r,r.superclass=t.prototype,t.prototype.constructor==Object.prototype.constructor&&(t.prototype.constructor=t),e){var i;for(i in e)r.prototype[i]=e[i];var s=function(){},o=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(s=function(a,h){for(i=0;i<o.length;i+=1){var l=o[i],f=h[l];typeof f=="function"&&f!=Object.prototype[l]&&(a[l]=f)}})}catch{}s(r.prototype,e)}}};var u={};u.asn1!==void 0&&u.asn1||(u.asn1={}),u.asn1.ASN1Util=new function(){this.integerToByteHex=function(r){var t=r.toString(16);return t.length%2==1&&(t="0"+t),t},this.bigIntToMinTwosComplementsHex=function(r){var t=r.toString(16);if(t.substr(0,1)!="-")t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{var e=t.substr(1).length;e%2==1?e+=1:t.match(/^[0-7]/)||(e+=2);for(var n="",i=0;i<e;i++)n+="f";t=new p(n,16).xor(r).add(p.ONE).toString(16).replace(/^-/,"")}return t},this.getPEMStringFromHex=function(r,t){return hextopem(r,t)},this.newObject=function(r){var t=u.asn1,e=t.DERBoolean,n=t.DERInteger,i=t.DERBitString,s=t.DEROctetString,o=t.DERNull,a=t.DERObjectIdentifier,h=t.DEREnumerated,l=t.DERUTF8String,f=t.DERNumericString,T=t.DERPrintableString,g=t.DERTeletexString,D=t.DERIA5String,w=t.DERUTCTime,S=t.DERGeneralizedTime,x=t.DERSequence,W=t.DERSet,M=t.DERTaggedObject,j=t.ASN1Util.newObject,lt=Object.keys(r);if(lt.length!=1)throw"key of param shall be only one.";var c=lt[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+c+":")==-1)throw"undefined key: "+c;if(c=="bool")return new e(r[c]);if(c=="int")return new n(r[c]);if(c=="bitstr")return new i(r[c]);if(c=="octstr")return new s(r[c]);if(c=="null")return new o(r[c]);if(c=="oid")return new a(r[c]);if(c=="enum")return new h(r[c]);if(c=="utf8str")return new l(r[c]);if(c=="numstr")return new f(r[c]);if(c=="prnstr")return new T(r[c]);if(c=="telstr")return new g(r[c]);if(c=="ia5str")return new D(r[c]);if(c=="utctime")return new w(r[c]);if(c=="gentime")return new S(r[c]);if(c=="seq"){for(var ft=r[c],ct=[],ot=0;ot<ft.length;ot++){var Vt=j(ft[ot]);ct.push(Vt)}return new x({array:ct})}if(c=="set"){for(ft=r[c],ct=[],ot=0;ot<ft.length;ot++)Vt=j(ft[ot]),ct.push(Vt);return new W({array:ct})}if(c=="tag"){var z=r[c];if(Object.prototype.toString.call(z)==="[object Array]"&&z.length==3){var te=j(z[2]);return new M({tag:z[0],explicit:z[1],obj:te})}var wt={};if(z.explicit!==void 0&&(wt.explicit=z.explicit),z.tag!==void 0&&(wt.tag=z.tag),z.obj===void 0)throw"obj shall be specified for 'tag'.";return wt.obj=j(z.obj),new M(wt)}},this.jsonToASN1HEX=function(r){return this.newObject(r).getEncodedHex()}},u.asn1.ASN1Util.oidHexToInt=function(r){for(var t="",e=parseInt(r.substr(0,2),16),n=(t=Math.floor(e/40)+"."+e%40,""),i=2;i<r.length;i+=2){var s=("00000000"+parseInt(r.substr(i,2),16).toString(2)).slice(-8);n+=s.substr(1,7),s.substr(0,1)=="0"&&(t=t+"."+new p(n,2).toString(10),n="")}return t},u.asn1.ASN1Util.oidIntToHex=function(r){var t=function(a){var h=a.toString(16);return h.length==1&&(h="0"+h),h},e=function(a){var h="",l=new p(a,10).toString(2),f=7-l.length%7;f==7&&(f=0);for(var T="",g=0;g<f;g++)T+="0";for(l=T+l,g=0;g<l.length-1;g+=7){var D=l.substr(g,7);g!=l.length-7&&(D="1"+D),h+=t(parseInt(D,2))}return h};if(!r.match(/^[0-9.]+$/))throw"malformed oid string: "+r;var n="",i=r.split("."),s=40*parseInt(i[0])+parseInt(i[1]);n+=t(s),i.splice(0,2);for(var o=0;o<i.length;o++)n+=e(i[o]);return n},u.asn1.ASN1Object=function(){this.getLengthHexFromValue=function(){if(this.hV===void 0||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n=0,v="+this.hV;var r=this.hV.length/2,t=r.toString(16);if(t.length%2==1&&(t="0"+t),r<128)return t;var e=t.length/2;if(e>15)throw"ASN.1 length too long to represent by 8x: n = "+r.toString(16);return(128+e).toString(16)+t},this.getEncodedHex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},u.asn1.DERAbstractString=function(r){u.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(this.s)},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},r!==void 0&&(typeof r=="string"?this.setString(r):r.str!==void 0?this.setString(r.str):r.hex!==void 0&&this.setStringHex(r.hex))},V.lang.extend(u.asn1.DERAbstractString,u.asn1.ASN1Object),u.asn1.DERAbstractTime=function(r){u.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){return utc=t.getTime()+6e4*t.getTimezoneOffset(),new Date(utc)},this.formatDate=function(t,e,n){var i=this.zeroPadding,s=this.localDateToUTC(t),o=String(s.getFullYear());e=="utc"&&(o=o.substr(2,2));var a=o+i(String(s.getMonth()+1),2)+i(String(s.getDate()),2)+i(String(s.getHours()),2)+i(String(s.getMinutes()),2)+i(String(s.getSeconds()),2);if(n===!0){var h=s.getMilliseconds();if(h!=0){var l=i(String(h),3);a=a+"."+(l=l.replace(/[0]+$/,""))}}return a+"Z"},this.zeroPadding=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(t)},this.setByDateValue=function(t,e,n,i,s,o){var a=new Date(Date.UTC(t,e-1,n,i,s,o,0));this.setByDate(a)},this.getFreshValueHex=function(){return this.hV}},V.lang.extend(u.asn1.DERAbstractTime,u.asn1.ASN1Object),u.asn1.DERAbstractStructured=function(r){u.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,r!==void 0&&r.array!==void 0&&(this.asn1Array=r.array)},V.lang.extend(u.asn1.DERAbstractStructured,u.asn1.ASN1Object),u.asn1.DERBoolean=function(){u.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},V.lang.extend(u.asn1.DERBoolean,u.asn1.ASN1Object),u.asn1.DERInteger=function(r){u.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=u.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new p(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},r!==void 0&&(r.bigint!==void 0?this.setByBigInteger(r.bigint):r.int!==void 0?this.setByInteger(r.int):typeof r=="number"?this.setByInteger(r):r.hex!==void 0&&this.setValueHex(r.hex))},V.lang.extend(u.asn1.DERInteger,u.asn1.ASN1Object),u.asn1.DERBitString=function(r){if(r!==void 0&&r.obj!==void 0){var t=u.asn1.ASN1Util.newObject(r.obj);r.hex="00"+t.getEncodedHex()}u.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(e){this.hTLV=null,this.isModified=!0,this.hV=e},this.setUnusedBitsAndHexValue=function(e,n){if(e<0||7<e)throw"unused bits shall be from 0 to 7: u = "+e;var i="0"+e;this.hTLV=null,this.isModified=!0,this.hV=i+n},this.setByBinaryString=function(e){var n=8-(e=e.replace(/0+$/,"")).length%8;n==8&&(n=0);for(var i=0;i<=n;i++)e+="0";var s="";for(i=0;i<e.length-1;i+=8){var o=e.substr(i,8),a=parseInt(o,2).toString(16);a.length==1&&(a="0"+a),s+=a}this.hTLV=null,this.isModified=!0,this.hV="0"+n+s},this.setByBooleanArray=function(e){for(var n="",i=0;i<e.length;i++)e[i]==1?n+="1":n+="0";this.setByBinaryString(n)},this.newFalseArray=function(e){for(var n=new Array(e),i=0;i<e;i++)n[i]=!1;return n},this.getFreshValueHex=function(){return this.hV},r!==void 0&&(typeof r=="string"&&r.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(r):r.hex!==void 0?this.setHexValueIncludingUnusedBits(r.hex):r.bin!==void 0?this.setByBinaryString(r.bin):r.array!==void 0&&this.setByBooleanArray(r.array))},V.lang.extend(u.asn1.DERBitString,u.asn1.ASN1Object),u.asn1.DEROctetString=function(r){if(r!==void 0&&r.obj!==void 0){var t=u.asn1.ASN1Util.newObject(r.obj);r.hex=t.getEncodedHex()}u.asn1.DEROctetString.superclass.constructor.call(this,r),this.hT="04"},V.lang.extend(u.asn1.DEROctetString,u.asn1.DERAbstractString),u.asn1.DERNull=function(){u.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},V.lang.extend(u.asn1.DERNull,u.asn1.ASN1Object),u.asn1.DERObjectIdentifier=function(r){var t=function(n){var i=n.toString(16);return i.length==1&&(i="0"+i),i},e=function(n){var i="",s=new p(n,10).toString(2),o=7-s.length%7;o==7&&(o=0);for(var a="",h=0;h<o;h++)a+="0";for(s=a+s,h=0;h<s.length-1;h+=7){var l=s.substr(h,7);h!=s.length-7&&(l="1"+l),i+=t(parseInt(l,2))}return i};u.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(n){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=n},this.setValueOidString=function(n){if(!n.match(/^[0-9.]+$/))throw"malformed oid string: "+n;var i="",s=n.split("."),o=40*parseInt(s[0])+parseInt(s[1]);i+=t(o),s.splice(0,2);for(var a=0;a<s.length;a++)i+=e(s[a]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=i},this.setValueName=function(n){var i=u.asn1.x509.OID.name2oid(n);if(i==="")throw"DERObjectIdentifier oidName undefined: "+n;this.setValueOidString(i)},this.getFreshValueHex=function(){return this.hV},r!==void 0&&(typeof r=="string"?r.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(r):this.setValueName(r):r.oid!==void 0?this.setValueOidString(r.oid):r.hex!==void 0?this.setValueHex(r.hex):r.name!==void 0&&this.setValueName(r.name))},V.lang.extend(u.asn1.DERObjectIdentifier,u.asn1.ASN1Object),u.asn1.DEREnumerated=function(r){u.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=u.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new p(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},r!==void 0&&(r.int!==void 0?this.setByInteger(r.int):typeof r=="number"?this.setByInteger(r):r.hex!==void 0&&this.setValueHex(r.hex))},V.lang.extend(u.asn1.DEREnumerated,u.asn1.ASN1Object),u.asn1.DERUTF8String=function(r){u.asn1.DERUTF8String.superclass.constructor.call(this,r),this.hT="0c"},V.lang.extend(u.asn1.DERUTF8String,u.asn1.DERAbstractString),u.asn1.DERNumericString=function(r){u.asn1.DERNumericString.superclass.constructor.call(this,r),this.hT="12"},V.lang.extend(u.asn1.DERNumericString,u.asn1.DERAbstractString),u.asn1.DERPrintableString=function(r){u.asn1.DERPrintableString.superclass.constructor.call(this,r),this.hT="13"},V.lang.extend(u.asn1.DERPrintableString,u.asn1.DERAbstractString),u.asn1.DERTeletexString=function(r){u.asn1.DERTeletexString.superclass.constructor.call(this,r),this.hT="14"},V.lang.extend(u.asn1.DERTeletexString,u.asn1.DERAbstractString),u.asn1.DERIA5String=function(r){u.asn1.DERIA5String.superclass.constructor.call(this,r),this.hT="16"},V.lang.extend(u.asn1.DERIA5String,u.asn1.DERAbstractString),u.asn1.DERUTCTime=function(r){u.asn1.DERUTCTime.superclass.constructor.call(this,r),this.hT="17",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return this.date===void 0&&this.s===void 0&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},r!==void 0&&(r.str!==void 0?this.setString(r.str):typeof r=="string"&&r.match(/^[0-9]{12}Z$/)?this.setString(r):r.hex!==void 0?this.setStringHex(r.hex):r.date!==void 0&&this.setByDate(r.date))},V.lang.extend(u.asn1.DERUTCTime,u.asn1.DERAbstractTime),u.asn1.DERGeneralizedTime=function(r){u.asn1.DERGeneralizedTime.superclass.constructor.call(this,r),this.hT="18",this.withMillis=!1,this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return this.date===void 0&&this.s===void 0&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},r!==void 0&&(r.str!==void 0?this.setString(r.str):typeof r=="string"&&r.match(/^[0-9]{14}Z$/)?this.setString(r):r.hex!==void 0?this.setStringHex(r.hex):r.date!==void 0&&this.setByDate(r.date),r.millis===!0&&(this.withMillis=!0))},V.lang.extend(u.asn1.DERGeneralizedTime,u.asn1.DERAbstractTime),u.asn1.DERSequence=function(r){u.asn1.DERSequence.superclass.constructor.call(this,r),this.hT="30",this.getFreshValueHex=function(){for(var t="",e=0;e<this.asn1Array.length;e++)t+=this.asn1Array[e].getEncodedHex();return this.hV=t,this.hV}},V.lang.extend(u.asn1.DERSequence,u.asn1.DERAbstractStructured),u.asn1.DERSet=function(r){u.asn1.DERSet.superclass.constructor.call(this,r),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,e=0;e<this.asn1Array.length;e++){var n=this.asn1Array[e];t.push(n.getEncodedHex())}return this.sortFlag==1&&t.sort(),this.hV=t.join(""),this.hV},r!==void 0&&r.sortflag!==void 0&&r.sortflag==0&&(this.sortFlag=!1)},V.lang.extend(u.asn1.DERSet,u.asn1.DERAbstractStructured),u.asn1.DERTaggedObject=function(r){u.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,e,n){this.hT=e,this.isExplicit=t,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,e),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},r!==void 0&&(r.tag!==void 0&&(this.hT=r.tag),r.explicit!==void 0&&(this.isExplicit=r.explicit),r.obj!==void 0&&(this.asn1Object=r.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},V.lang.extend(u.asn1.DERTaggedObject,u.asn1.ASN1Object);var St,qt,Qt=(St=function(r,t){return St=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},St(r,t)},function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}St(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}),jt=function(r){function t(e){var n=r.call(this)||this;return e&&(typeof e=="string"?n.parseKey(e):(t.hasPrivateKeyProperty(e)||t.hasPublicKeyProperty(e))&&n.parsePropertiesFrom(e)),n}return Qt(t,r),t.prototype.parseKey=function(e){try{var n=0,i=0,s=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/.test(e)?function(w){var S;if(d===void 0){var x="0123456789ABCDEF",W=` \f
- \r \u2028\u2029`;for(d={},S=0;S<16;++S)d[x.charAt(S)]=S;for(x=x.toLowerCase(),S=10;S<16;++S)d[x.charAt(S)]=S;for(S=0;S<W.length;++S)d[W.charAt(S)]=-1}var M=[],j=0,lt=0;for(S=0;S<w.length;++S){var c=w.charAt(S);if(c=="=")break;if((c=d[c])!=-1){if(c===void 0)throw new Error("Illegal character at offset "+S);j|=c,++lt>=2?(M[M.length]=j,j=0,lt=0):j<<=4}}if(lt)throw new Error("Hex encoding incomplete: 4 bits missing");return M}(e):et.unarmor(e),o=Kt.decode(s);if(o.sub.length===3&&(o=o.sub[2].sub[0]),o.sub.length===9){n=o.sub[1].getHexStringValue(),this.n=R(n,16),i=o.sub[2].getHexStringValue(),this.e=parseInt(i,16);var a=o.sub[3].getHexStringValue();this.d=R(a,16);var h=o.sub[4].getHexStringValue();this.p=R(h,16);var l=o.sub[5].getHexStringValue();this.q=R(l,16);var f=o.sub[6].getHexStringValue();this.dmp1=R(f,16);var T=o.sub[7].getHexStringValue();this.dmq1=R(T,16);var g=o.sub[8].getHexStringValue();this.coeff=R(g,16)}else{if(o.sub.length!==2)return!1;if(o.sub[0].sub){var D=o.sub[1].sub[0];n=D.sub[0].getHexStringValue(),this.n=R(n,16),i=D.sub[1].getHexStringValue(),this.e=parseInt(i,16)}else n=o.sub[0].getHexStringValue(),this.n=R(n,16),i=o.sub[1].getHexStringValue(),this.e=parseInt(i,16)}return!0}catch{return!1}},t.prototype.getPrivateBaseKey=function(){var e={array:[new u.asn1.DERInteger({int:0}),new u.asn1.DERInteger({bigint:this.n}),new u.asn1.DERInteger({int:this.e}),new u.asn1.DERInteger({bigint:this.d}),new u.asn1.DERInteger({bigint:this.p}),new u.asn1.DERInteger({bigint:this.q}),new u.asn1.DERInteger({bigint:this.dmp1}),new u.asn1.DERInteger({bigint:this.dmq1}),new u.asn1.DERInteger({bigint:this.coeff})]};return new u.asn1.DERSequence(e).getEncodedHex()},t.prototype.getPrivateBaseKeyB64=function(){return _(this.getPrivateBaseKey())},t.prototype.getPublicBaseKey=function(){var e=new u.asn1.DERSequence({array:[new u.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new u.asn1.DERNull]}),n=new u.asn1.DERSequence({array:[new u.asn1.DERInteger({bigint:this.n}),new u.asn1.DERInteger({int:this.e})]}),i=new u.asn1.DERBitString({hex:"00"+n.getEncodedHex()});return new u.asn1.DERSequence({array:[e,i]}).getEncodedHex()},t.prototype.getPublicBaseKeyB64=function(){return _(this.getPublicBaseKey())},t.wordwrap=function(e,n){if(!e)return e;var i="(.{1,"+(n=n||64)+`})( +|$
- ?)|(.{1,`+n+"})";return e.match(RegExp(i,"g")).join(`
- `)},t.prototype.getPrivateKey=function(){var e=`-----BEGIN RSA PRIVATE KEY-----
- `;return(e+=t.wordwrap(this.getPrivateBaseKeyB64())+`
- `)+"-----END RSA PRIVATE KEY-----"},t.prototype.getPublicKey=function(){var e=`-----BEGIN PUBLIC KEY-----
- `;return(e+=t.wordwrap(this.getPublicBaseKeyB64())+`
- `)+"-----END PUBLIC KEY-----"},t.hasPublicKeyProperty=function(e){return(e=e||{}).hasOwnProperty("n")&&e.hasOwnProperty("e")},t.hasPrivateKeyProperty=function(e){return(e=e||{}).hasOwnProperty("n")&&e.hasOwnProperty("e")&&e.hasOwnProperty("d")&&e.hasOwnProperty("p")&&e.hasOwnProperty("q")&&e.hasOwnProperty("dmp1")&&e.hasOwnProperty("dmq1")&&e.hasOwnProperty("coeff")},t.prototype.parsePropertiesFrom=function(e){this.n=e.n,this.e=e.e,e.hasOwnProperty("d")&&(this.d=e.d,this.p=e.p,this.q=e.q,this.dmp1=e.dmp1,this.dmq1=e.dmq1,this.coeff=e.coeff)},t}(Jt),Ct=U(155),Xt=Ct!==void 0?(qt=Ct.env)===null||qt===void 0?void 0:"3.3.1":void 0;const Wt=function(){function r(t){t===void 0&&(t={}),t=t||{},this.default_key_size=t.default_key_size?parseInt(t.default_key_size,10):1024,this.default_public_exponent=t.default_public_exponent||"010001",this.log=t.log||!1,this.key=null}return r.prototype.setKey=function(t){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new jt(t)},r.prototype.setPrivateKey=function(t){this.setKey(t)},r.prototype.setPublicKey=function(t){this.setKey(t)},r.prototype.decrypt=function(t){try{return this.getKey().decrypt(Y(t))}catch{return!1}},r.prototype.encrypt=function(t){try{return _(this.getKey().encrypt(t))}catch{return!1}},r.prototype.sign=function(t,e,n){try{return _(this.getKey().sign(t,e,n))}catch{return!1}},r.prototype.verify=function(t,e,n){try{return this.getKey().verify(t,Y(e),n)}catch{return!1}},r.prototype.getKey=function(t){if(!this.key){if(this.key=new jt,t&&{}.toString.call(t)==="[object Function]")return void this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},r.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},r.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},r.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},r.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},r.version=Xt,r}()})(),q.default})())})(Ut);var ve=Ut.exports;const be=se(ve),Te=`MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAw
- J0feodpQYfSPeeBRlyqlqfs5dtP38LL19kKO3wwdP+vdcktxXR9Inje9Jcq+nIUJ
- +Comh3bEh1nsWUDBgtlz4vEqecho9KFaDqkFp3tR/emWJYT0KLEcBidKUImkumJk0cVBKleww/4R1HDorwE
- 9J2a1Rp9z0DUEU7YuudoaUy5Es1vORjDplIZv9bzip7/LANv6GmdtXwk5IpdbfNr
- koJgGXlE063uIMkqRyiOo04ofeYpSjZbP4bvnboxYi23wpIe81uLIsM+4JcFoU6u
- N0cYs03oYkfjXQdlKTpBpM6lcm+7xhEz9Y/OR7YorRWB1Qdt7nr3cRmx0uIs/h/T
- 9QIDAQAB`;function Ft(C){const Q=new be;return Q.setPublicKey(Te),Q.encrypt(C)}function Se(C){return{username:[{required:!0,message:C("login.usernameTips"),trigger:"blur"},{min:3,max:20,message:C("login.usernameLength"),trigger:"blur"}],email:[{required:!0,message:C("login.emailTips"),trigger:"blur"},{type:"email",message:C("login.emailFormat"),trigger:"blur"}],password:[{required:!0,message:C("login.passwordTips"),trigger:"blur"},{min:8,max:20,message:C("login.passwordLength"),trigger:"blur"}]}}const we={key:0,class:"tips-register"},Ee={key:1,class:"tips-login"},De={__name:"FormItem",setup(C){const Q=he(),k=pe(),{t:ht}=oe(),U=It(),q=ue({username:"",email:"",password:""}),B=Se(ht),v=It(0),b=It(!1),E=d=>{b.value=!0,v.value?tt():k.toLogin({username:d.username,password:Ft(d.password)}).then(async y=>{Dt.success(y),await k.getRoutesList(),await k.getUserInfo(),Q.replace({path:"/"})}).catch(y=>{Dt.error(y)}).finally(()=>{b.value=!1})},tt=()=>{ge({username:q.username,email:q.email,password:Ft(q.password)}).then(d=>{d.code==200?(Dt.success(d.msg),v.value=0,U.value.resetFields(),it(d.data.userFlag)):Dt.error(d.msg)}).finally(()=>{b.value=!1})},it=async d=>{await de(d)},st=(d,y)=>{console.log(d,y),d.preventDefault(),U.value.resetFields(),v.value=y};return(d,y)=>{const _=Ht("icon-user"),Y=re,L=ee,et=Ht("icon-email"),K=ie,O=ae,I=ne;return at(),xt(ce,null,[F("div",{class:"form-title",style:le({top:v.value?"50px":"70px"})},J(v.value?d.$t("login.registerModel"):d.$t("login.loginModel")),5),Z(I,{ref_key:"ref_form",ref:U,model:q,rules:fe(B),style:{width:"calc(100% - 40px)"},layout:"validate",onSubmitSuccess:E},{default:G(()=>[Z(L,{field:"username"},{default:G(()=>[Z(Y,{modelValue:q.username,"onUpdate:modelValue":y[0]||(y[0]=A=>q.username=A),placeholder:d.$t("login.usernameTips")},{prefix:G(()=>[Z(_)]),_:1},8,["modelValue","placeholder"])]),_:1}),v.value?(at(),Ot(L,{key:0,field:"email"},{default:G(()=>[Z(Y,{modelValue:q.email,"onUpdate:modelValue":y[1]||(y[1]=A=>q.email=A),placeholder:d.$t("login.emailTips")},{prefix:G(()=>[Z(et)]),_:1},8,["modelValue","placeholder"])]),_:1})):pt("",!0),Z(L,{field:"password"},{default:G(()=>[Z(K,{modelValue:q.password,"onUpdate:modelValue":y[2]||(y[2]=A=>q.password=A),placeholder:d.$t("login.passwordTips"),defaultVisibility:!0,"allow-clear":""},{prefix:G(()=>[Z(_)]),_:1},8,["modelValue","placeholder"])]),_:1}),Z(L,{style:{"margin-top":"30px"}},{default:G(()=>[v.value?pt("",!0):(at(),Ot(O,{key:0,class:"submit-btn",type:"primary","html-type":"submit",loading:b.value},{default:G(()=>[Et(J(d.$t("login.loginBtn")),1)]),_:1},8,["loading"])),v.value?(at(),Ot(O,{key:1,class:"submit-btn",type:"primary","html-type":"submit",loading:b.value},{default:G(()=>[Et(J(d.$t("login.registerBtn")),1)]),_:1},8,["loading"])):pt("",!0)]),_:1})]),_:1},8,["model","rules"]),v.value?pt("",!0):(at(),xt("div",we,[Et(J(d.$t("login.noAccount"))+" ",1),F("a",{class:"reg-link",href:"#",onClick:y[3]||(y[3]=A=>st(A,1))},J(d.$t("login.registerBtn")),1)])),v.value?(at(),xt("div",Ee,[Et(J(d.$t("login.hasAccount"))+" ",1),F("a",{class:"reg-link",href:"#",onClick:y[4]||(y[4]=A=>st(A,0))},J(d.$t("login.loginBtn")),1)])):pt("",!0)],64)}}},xe=kt(De,[["__scopeId","data-v-6b24cdd1"]]),Be={class:"login"},Re={class:"login-logo"},Ae={class:"logo-title"},Ve={class:"login-section"},Ie={class:"intro"},Oe={class:"intro-title"},Ne={class:"intro-title"},Pe={class:"login-form"},Me={__name:"Login",setup(C){return(Q,k)=>(at(),xt("div",Be,[F("div",Re,[k[0]||(k[0]=F("img",{class:"logo-img",src:me,alt:"logo"},null,-1)),F("div",Ae,J(Q.$t("login.logoTitle")),1)]),F("div",Ve,[F("div",Ie,[F("div",Oe,J(Q.$t("login.logoTitle")),1),F("div",Ne,J(Q.$t("login.titleTips")),1),k[1]||(k[1]=F("img",{src:ye,alt:""},null,-1))]),F("div",Pe,[Z(xe)])])]))}},ze=kt(Me,[["__scopeId","data-v-f67f6e06"]]);export{ze as default};
|