PageSourceSearch

https://www.tkww.hk/user-center/js/595.8e64161e.js

js tkww.hk collected 2026-09-24 09:05:42 UTC 83,301 bytes, 18 lines download raw bytes

1"use strict";(self["webpackChunkusercenter"]=self["webpackChunkusercenter"]||[]).push([[595],{1218:(t,e,i)=>{i.d(e,{A:()=>r});const r={getMoreOfScroll(t,e){let i=document.documentElement.scrollTop||document.body.scrollTop,r=document.documentElement.clientHeight||document.body.clientHeight,s=document.documentElement.scrollHeight||document.body.scrollHeight;i+r>=s-15&&t(e)},pullDownRefresh(){window.location.reload()}}},9279:(t,e,i)=>{i.d(e,{A:()=>g});var r=i(641),s=i(33),n=i(953);const o={class:"weui-pull-refreshing-box"},a={key:0},h={key:1},l={class:"weui-pull-present-box"},u={__name:"index",emits:["refresh"],setup(t,{emit:e}){const i=(0,n.Kh)({startY:"",moveDistance:0,moveState:0,duration:0});let u=(0,n.KR)((0,r.EW)((()=>({transition:`${i.duration}ms`,transform:`translate3d(0,${i.moveDistance}px, 0)`}))));const c=t=>{i.duration=0,i.moveDistance=0,i.startY=t.targetTouches[0].clientY},f=t=>{let e=$(".center-content .scroll-page")[0]?.scrollTop;e="undefined"===typeof e?0:e;let r=$(".center.scroll-page")[0]?.scrollTop;r="undefined"===typeof r?0:r;let s=document.documentElement.scrollTop||document.body.scrollTop||e||r;if(s>0)return;let n=t.targetTouches[0].clientY-i.startY;if(n>0)if(t.preventDefault(),i.moveDistance=Math.pow(n,.8),i.moveDistance>50){if(1===i.moveState)return;i.moveState=1}else{if(0===i.moveState)return;i.moveState=0}},g=e,d=t=>{i.duration=300,i.moveDistance>50?(i.moveState=2,i.moveDistance=50,g("refresh",(()=>{i.moveState=0}))):i.moveDistance=0};return(t,e)=>((0,r.uX)(),(0,r.CE)("div",{class:"pull-refresh",ref:"scrollBox",style:(0,s.Tr)((0,n.R1)(u)),onTouchstart:c,onTouchmove:f,onTouchend:d},[(0,r.Lk)("div",o,[i.moveState<2?((0,r.uX)(),(0,r.CE)("div",a,(0,s.v_)(0===i.moveState?"下拉刷新頁面":"释放以刷新頁面"),1)):((0,r.uX)(),(0,r.CE)("div",h,"正在重載..."))]),(0,r.Lk)("div",l,[(0,r.RG)(t.$slots,"default")])],36))}};var c=i(6262);const f=(0,c.A)(u,[["__scopeId","data-v-c89b329a"]]),g=f},8595:(t,e,i)=>{i.r(e),i.d(e,{default:()=>li});var r=i(641),s=i(953),n=i(33),o=i(3751),a=i(8600);const h={LOGIN_URL:"/ucs/api/v1/oauth/token"},l=h;var u="0123456789abcdefghijklmnopqrstuvwxyz";function c(t){return u.charAt(t)}function f(t,e){return t&e}function g(t,e){return t|e}function d(t,e){return t^e}function p(t,e){return t&~e}function m(t){if(0==t)return-1;var e=0;return 0==(65535&t)&&(t>>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function v(t){var e=0;while(0!=t)t&=t-1,++e;return e}var y,w="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",T="=";function b(t){var e,i,r="";for(e=0;e+3<=t.length;e+=3)i=parseInt(t.substring(e,e+3),16),r+=w.charAt(i>>6)+w.charAt(63&i);e+1==t.length?(i=parseInt(t.substring(e,e+1),16),r+=w.charAt(i<<2)):e+2==t.length&&(i=parseInt(t.substring(e,e+2),16),r+=w.charAt(i>>2)+w.charAt((3&i)<<4));while((3&r.length)>0)r+=T;return r}function S(t){var e,i="",r=0,s=0;for(e=0;e<t.length;++e){if(t.charAt(e)==T)break;var n=w.indexOf(t.charAt(e));n<0||(0==r?(i+=c(n>>2),s=3&n,r=1):1==r?(i+=c(s<<2|n>>4),s=15&n,r=2):2==r?(i+=c(s),i+=c(n>>2),s=3&n,r=3):(i+=c(s<<2|n>>4),i+=c(15&n),r=0))}return 1==r&&(i+=c(s<<2)),i}var E,R={decode:function(t){var e;if(void 0===y){var i="0123456789ABCDEF",r=" \f\n\r\t \u2028\u2029";for(y={},e=0;e<16;++e)y[i.charAt(e)]=e;for(i=i.toLowerCase(),e=10;e<16;++e)y[i.charAt(e)]=e;for(e=0;e<r.length;++e)y[r.charAt(e)]=-1}var s=[],n=0,o=0;for(e=0;e<t.length;++e){var a=t.charAt(e);if("="==a)break;if(a=y[a],-1!=a){if(void 0===a)throw new Error("Illegal character at offset "+e);n|=a,++o>=2?(s[s.length]=n,n=0,o=0):n<<=4}}if(o)throw new Error("Hex encoding incomplete: 4 bits missing");return s}},D={decode:function(t){var e;if(void 0===E){var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r="= \f\n\r\t \u2028\u2029";for(E=Object.create(null),e=0;e<64;++e)E[i.charAt(e)]=e;for(E["-"]=62,E["_"]=63,e=0;e<r.length;++e)E[r.charAt(e)]=-1}var s=[],n=0,o=0;for(e=0;e<t.length;++e){var a=t.charAt(e);if("="==a)break;if(a=E[a],-1!=a){if(void 0===a)throw new Error("Illegal character at offset "+e);n|=a,++o>=4?(s[s.length]=n>>16,s[s.length]=n>>8&255,s[s.length]=255&n,n=0,o=0):n<<=6}}switch(o){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:s[s.length]=n>>10;break;case 3:s[s.length]=n>>16,s[s.length]=n>>8&255;break}return s},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(t){var e=D.re.exec(t);if(e)if(e[1])t=e[1];else{if(!e[2])throw new Error("RegExp out of sync");t=e[2]}return D.decode(t)}},x=1e13,A=function(){function t(t){this.buf=[+t||0]}return t.prototype.mulAdd=function(t,e){var i,r,s=this.buf,n=s.length;for(i=0;i<n;++i)r=s[i]*t+e,r<x?e=0:(e=0|r/x,r-=e*x),s[i]=r;e>0&&(s[i]=e)},t.prototype.sub=function(t){var e,i,r=this.buf,s=r.length;for(e=0;e<s;++e)i=r[e]-t,i<0?(i+=x,t=1):t=0,r[e]=i;while(0===r[r.length-1])r.pop()},t.prototype.toString=function(t){if(10!=(t||10))throw new Error("only base 10 is supported");for(var e=this.buf,i=e[e.length-1].toString(),r=e.length-2;r>=0;--r)i+=(x+e[r]).toString().substring(1);return i},t.prototype.valueOf=function(){for(var t=this.buf,e=0,i=t.length-1;i>=0;--i)e=e*x+t[i];return e},t.prototype.simplify=function(){var t=this.buf;return 1==t.length?t[0]:this},t}(),L="…",B=/^(\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)?)?$/,k=/^(\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 I(t,e){return t.length>e&&(t=t.substring(0,e)+L),t}var C,V=function(){function t(e,i){this.hexDigits="0123456789ABCDEF",e instanceof t?(this.enc=e.enc,this.pos=e.pos):(this.enc=e,this.pos=i)}return t.prototype.get=function(t){if(void 0===t&&(t=this.pos++),t>=this.enc.length)throw new Error("Requesting byte offset ".concat(t," on a stream of length ").concat(this.enc.length));
vendor: 8,464 bytes, line 1
1return"string"===typeof this.enc?this.enc.charCodeAt(t):this.enc[t]},t.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(15&t)},t.prototype.hexDump=function(t,e,i){for(var r="",s=t;s<e;++s)if(r+=this.hexByte(this.get(s)),!0!==i)switch(15&s){case 7:r+="  ";break;case 15:r+="\n";break;default:r+=" "}return r},t.prototype.isASCII=function(t,e){for(var i=t;i<e;++i){var r=this.get(i);if(r<32||r>176)return!1}return!0},t.prototype.parseStringISO=function(t,e){for(var i="",r=t;r<e;++r)i+=String.fromCharCode(this.get(r));return i},t.prototype.parseStringUTF=function(t,e){for(var i="",r=t;r<e;){var s=this.get(r++);i+=s<128?String.fromCharCode(s):s>191&&s<224?String.fromCharCode((31&s)<<6|63&this.get(r++)):String.fromCharCode((15&s)<<12|(63&this.get(r++))<<6|63&this.get(r++))}return i},t.prototype.parseStringBMP=function(t,e){for(var i,r,s="",n=t;n<e;)i=this.get(n++),r=this.get(n++),s+=String.fromCharCode(i<<8|r);return s},t.prototype.parseTime=function(t,e,i){var r=this.parseStringISO(t,e),s=(i?B:k).exec(r);return s?(i&&(s[1]=+s[1],s[1]+=+s[1]<70?2e3:1900),r=s[1]+"-"+s[2]+"-"+s[3]+" "+s[4],s[5]&&(r+=":"+s[5],s[6]&&(r+=":"+s[6],s[7]&&(r+="."+s[7]))),s[8]&&(r+=" UTC","Z"!=s[8]&&(r+=s[8],s[9]&&(r+=":"+s[9]))),r):"Unrecognized time: "+r},t.prototype.parseInteger=function(t,e){var i,r=this.get(t),s=r>127,n=s?255:0,o="";while(r==n&&++t<e)r=this.get(t);if(i=e-t,0===i)return s?-1:0;if(i>4){o=r,i<<=3;while(0==(128&(+o^n)))o=+o<<1,--i;o="("+i+" bit)\n"}s&&(r-=256);for(var a=new A(r),h=t+1;h<e;++h)a.mulAdd(256,this.get(h));return o+a.toString()},t.prototype.parseBitString=function(t,e,i){for(var r=this.get(t),s=(e-t-1<<3)-r,n="("+s+" bit)\n",o="",a=t+1;a<e;++a){for(var h=this.get(a),l=a==e-1?r:0,u=7;u>=l;--u)o+=h>>u&1?"1":"0";if(o.length>i)return n+I(o,i)}return n+o},t.prototype.parseOctetString=function(t,e,i){if(this.isASCII(t,e))return I(this.parseStringISO(t,e),i);var r=e-t,s="("+r+" byte)\n";i/=2,r>i&&(e=t+i);for(var n=t;n<e;++n)s+=this.hexByte(this.get(n));return r>i&&(s+=L),s},t.prototype.parseOID=function(t,e,i){for(var r="",s=new A,n=0,o=t;o<e;++o){var a=this.get(o);if(s.mulAdd(128,127&a),n+=7,!(128&a)){if(""===r)if(s=s.simplify(),s instanceof A)s.sub(80),r="2."+s.toString();else{var h=s<80?s<40?0:1:2;r=h+"."+(s-40*h)}else r+="."+s.toString();if(r.length>i)return I(r,i);s=new A,n=0}}return n>0&&(r+=".incomplete"),r},t}(),O=function(){function t(t,e,i,r,s){if(!(r instanceof N))throw new Error("Invalid tag value.");this.stream=t,this.header=e,this.length=i,this.tag=r,this.sub=s}return t.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()}},t.prototype.content=function(t){if(void 0===this.tag)return null;void 0===t&&(t=1/0);var e=this.posContent(),i=Math.abs(this.length);if(!this.tag.isUniversal())return null!==this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+i,t);switch(this.tag.tagNumber){case 1:return 0===this.stream.get(e)?"false":"true";case 2:return this.stream.parseInteger(e,e+i);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(e,e+i,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+i,t);case 6:return this.stream.parseOID(e,e+i,t);case 16:case 17:return null!==this.sub?"("+this.sub.length+" elem)":"(no elem)";case 12:return I(this.stream.parseStringUTF(e,e+i),t);case 18:case 19:case 20:case 21:case 22:case 26:return I(this.stream.parseStringISO(e,e+i),t);case 30:return I(this.stream.parseStringBMP(e,e+i),t);case 23:case 24:return this.stream.parseTime(e,e+i,23==this.tag.tagNumber)}return null},t.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"},t.prototype.toPrettyString=function(t){void 0===t&&(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()||3!=this.tag.tagNumber&&4!=this.tag.tagNumber||null===this.sub||(e+=" (encapsulates)"),e+="\n",null!==this.sub){t+="  ";for(var i=0,r=this.sub.length;i<r;++i)e+=this.sub[i].toPrettyString(t)}return e},t.prototype.posStart=function(){return this.stream.pos},t.prototype.posContent=function(){return this.stream.pos+this.header},t.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},t.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},t.decodeLength=function(t){var e=t.get(),i=127&e;if(i==e)return i;if(i>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(0===i)return null;e=0;for(var r=0;r<i;++r)e=256*e+t.get();return e},t.prototype.getHexStringValue=function(){var t=this.toHexString(),e=2*this.header,i=2*this.length;return t.substr(e,i)},t.decode=function(e){var i;i=e instanceof V?e:new V(e,0);var r=new V(i),s=new N(i),n=t.decodeLength(i),o=i.pos,a=o-r.pos,h=null,l=function(){var e=[];if(null!==n){var r=o+n;while(i.pos<r)e[e.length]=t.decode(i);if(i.pos!=r)throw new Error("Content size is not correct for container starting at offset "+o)}else try{for(;;){var s=t.decode(i);if(s.tag.isEOC())break;e[e.length]=s}n=o-i.pos}catch(a){throw new Error("Exception while decoding undefined length content: "+a)}return e};if(s.tagConstructed)h=l();else if(s.isUniversal()&&(3==s.tagNumber||4==s.tagNumber))try{if(3==s.tagNumber&&0!=i.get())throw new Error("BIT STRINGs with unused bits cannot encapsulate.");h=l();for(var u=0;u<h.length;++u)if(h[u].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(c){h=null}if(null===h){if(null===n)throw new Error("We can't skip over an invalid tag with undefined length at offset "+o);i.pos=o+Math.abs(n)}return new t(r,a,n,s,h)},t}(),N=function(){function t(t){var e=t.get();if(this.tagClass=e>>6,this.tagConstructed=0!==(32&e),this.tagNumber=31&e,31==this.tagNumber){var i=new A;do{e=t.get(),i.mulAdd(128,127&e)}while(128&e);this.tagNumber=i.simplify()}}return t.prototype.isUniversal=function(){return 0===this.tagClass},t.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber},t}(),_=0xdeadbeefcafe,M=15715070==(16777215&_),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],U=(1<<26)/P[P.length-1],q=function(){function t(t,e,i){null!=t&&("number"==typeof t?this.fromNumber(t,e,i):null==e&&"string"!=typeof t?this.fromString(t,256):this.fromString(t,e))}return t.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var i,r=(1<<e)-1,s=!1,n="",o=this.t,a=this.DB-o*this.DB%e;if(o-- >0){a<this.DB&&(i=this[o]>>a)>0&&(s=!0,n=c(i));while(o>=0)a<e?(i=(this[o]&(1<<a)-1)<<e-a,i|=this[--o]>>(a+=this.DB-e)):(i=this[o]>>(a-=e)&r,a<=0&&(a+=this.DB,--o)),i>0&&(s=!0),s&&(n+=c(i))}return s?n:"0"}
1,t.prototype.negate=function(){var e=$();return t.ZERO.subTo(this,e),e},t.prototype.abs=function(){return this.s<0?this.negate():this},t.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var i=this.t;if(e=i-t.t,0!=e)return this.s<0?-e:e;while(--i>=0)if(0!=(e=this[i]-t[i]))return e;return 0},t.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+tt(this[this.t-1]^this.s&this.DM)},t.prototype.mod=function(e){var i=$();return this.abs().divRemTo(e,null,i),this.s<0&&i.compareTo(t.ZERO)>0&&e.subTo(i,i),i},t.prototype.modPowInt=function(t,e){var i;return i=t<256||e.isEven()?new j(e):new H(e),this.exp(t,i)},t.prototype.clone=function(){var t=$();return this.copyTo(t),t},t.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},t.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},t.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},t.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},t.prototype.toByteArray=function(){var t=this.t,e=[];e[0]=this.s;var i,r=this.DB-t*this.DB%8,s=0;if(t-- >0){r<this.DB&&(i=this[t]>>r)!=(this.s&this.DM)>>r&&(e[s++]=i|this.s<<this.DB-r);while(t>=0)r<8?(i=(this[t]&(1<<r)-1)<<8-r,i|=this[--t]>>(r+=this.DB-8)):(i=this[t]>>(r-=8)&255,r<=0&&(r+=this.DB,--t)),0!=(128&i)&&(i|=-256),0==s&&(128&this.s)!=(128&i)&&++s,(s>0||i!=this.s)&&(e[s++]=i)}return e},t.prototype.equals=function(t){return 0==this.compareTo(t)},t.prototype.min=function(t){return this.compareTo(t)<0?this:t},t.prototype.max=function(t){return this.compareTo(t)>0?this:t},t.prototype.and=function(t){var e=$();return this.bitwiseTo(t,f,e),e},t.prototype.or=function(t){var e=$();return this.bitwiseTo(t,g,e),e},t.prototype.xor=function(t){var e=$();return this.bitwiseTo(t,d,e),e},t.prototype.andNot=function(t){var e=$();return this.bitwiseTo(t,p,e),e},t.prototype.not=function(){for(var t=$(),e=0;e<this.t;++e)t[e]=this.DM&~this[e];return t.t=this.t,t.s=~this.s,t},t.prototype.shiftLeft=function(t){var e=$();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},t.prototype.shiftRight=function(t){var e=$();return t<0?this.lShiftTo(-t,e):this.rShiftTo(t,e),e},t.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(0!=this[t])return t*this.DB+m(this[t]);return this.s<0?this.t*this.DB:-1},t.prototype.bitCount=function(){for(var t=0,e=this.s&this.DM,i=0;i<this.t;++i)t+=v(this[i]^e);return t},t.prototype.testBit=function(t){var e=Math.floor(t/this.DB);return e>=this.t?0!=this.s:0!=(this[e]&1<<t%this.DB)},t.prototype.setBit=function(t){return this.changeBit(t,g)},t.prototype.clearBit=function(t){return this.changeBit(t,p)},t.prototype.flipBit=function(t){return this.changeBit(t,d)},t.prototype.add=function(t){var e=$();return this.addTo(t,e),e},t.prototype.subtract=function(t){var e=$();return this.subTo(t,e),e},t.prototype.multiply=function(t){var e=$();return this.multiplyTo(t,e),e},t.prototype.divide=function(t){var e=$();return this.divRemTo(t,e,null),e},t.prototype.remainder=function(t){var e=$();return this.divRemTo(t,null,e),e},t.prototype.divideAndRemainder=function(t){var e=$(),i=$();return this.divRemTo(t,e,i),[e,i]},t.prototype.modPow=function(t,e){var i,r,s=t.bitLength(),n=Q(1);if(s<=0)return n;i=s<18?1:s<48?3:s<144?4:s<768?5:6,r=s<8?new j(e):e.isEven()?new K(e):new H(e);var o=[],a=3,h=i-1,l=(1<<i)-1;if(o[1]=r.convert(this),i>1){var u=$();r.sqrTo(o[1],u);while(a<=l)o[a]=$(),r.mulTo(u,o[a-2],o[a]),a+=2}var c,f,g=t.t-1,d=!0,p=$();s=tt(t[g])-1;while(g>=0){s>=h?c=t[g]>>s-h&l:(c=(t[g]&(1<<s+1)-1)<<h-s,g>0&&(c|=t[g-1]>>this.DB+s-h)),a=i;while(0==(1&c))c>>=1,--a;if((s-=a)<0&&(s+=this.DB,--g),d)o[c].copyTo(n),d=!1;else{while(a>1)r.sqrTo(n,p),r.sqrTo(p,n),a-=2;a>0?r.sqrTo(n,p):(f=n,n=p,p=f),r.mulTo(p,o[c],n)}while(g>=0&&0==(t[g]&1<<s))r.sqrTo(n,p),f=n,n=p,p=f,--s<0&&(s=this.DB-1,--g)}return r.revert(n)},t.prototype.modInverse=function(e){var i=e.isEven();if(this.isEven()&&i||0==e.signum())return t.ZERO;var r=e.clone(),s=this.clone(),n=Q(1),o=Q(0),a=Q(0),h=Q(1);while(0!=r.signum()){while(r.isEven())r.rShiftTo(1,r),i?(n.isEven()&&o.isEven()||(n.addTo(this,n),o.subTo(e,o)),n.rShiftTo(1,n)):o.isEven()||o.subTo(e,o),o.rShiftTo(1,o);while(s.isEven())s.rShiftTo(1,s),i?(a.isEven()&&h.isEven()||(a.addTo(this,a),h.subTo(e,h)),a.rShiftTo(1,a)):h.isEven()||h.subTo(e,h),h.rShiftTo(1,h);r.compareTo(s)>=0?(r.subTo(s,r),i&&n.subTo(a,n),o.subTo(h,o)):(s.subTo(r,s),i&&a.subTo(n,a),h.subTo(o,h))}return 0!=s.compareTo(t.ONE)?t.ZERO:h.compareTo(e)>=0?h.subtract(e):h.signum()<0?(h.addTo(e,h),h.signum()<0?h.add(e):h):h},t.prototype.pow=function(t){return this.exp(t,new F)},t.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),i=t.s<0?t.negate():t.clone();if(e.compareTo(i)<0){var r=e;e=i,i=r}var s=e.getLowestSetBit(),n=i.getLowestSetBit();if(n<0)return e;s<n&&(n=s),n>0&&(e.rShiftTo(n,e),i.rShiftTo(n,i));while(e.signum()>0)(s=e.getLowestSetBit())>0&&e.rShiftTo(s,e),(s=i.getLowestSetBit())>0&&i.rShiftTo(s,i),e.compareTo(i)>=0?(e.subTo(i,e),e.rShiftTo(1,e)):(i.subTo(e,i),i.rShiftTo(1,i));return n>0&&i.lShiftTo(n,i),i},t.prototype.isProbablePrime=function(t){var e,i=this.abs();if(1==i.t&&i[0]<=P[P.length-1]){for(e=0;e<P.length;++e)if(i[0]==P[e])return!0;return!1}if(i.isEven())return!1;e=1;while(e<P.length){var r=P[e],s=e+1;while(s<P.length&&r<U)r*=P[s++];r=i.modInt(r);
1while(e<s)if(r%P[e++]==0)return!1}return i.millerRabin(t)},t.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},t.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},t.prototype.fromString=function(e,i){var r;if(16==i)r=4;else if(8==i)r=3;else if(256==i)r=8;else if(2==i)r=1;else if(32==i)r=5;else{if(4!=i)return void this.fromRadix(e,i);r=2}this.t=0,this.s=0;var s=e.length,n=!1,o=0;while(--s>=0){var a=8==r?255&+e[s]:J(e,s);a<0?"-"==e.charAt(s)&&(n=!0):(n=!1,0==o?this[this.t++]=a:o+r>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+=r,o>=this.DB&&(o-=this.DB))}8==r&&0!=(128&+e[0])&&(this.s=-1,o>0&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),this.clamp(),n&&t.ZERO.subTo(this,this)},t.prototype.clamp=function(){var t=this.s&this.DM;while(this.t>0&&this[this.t-1]==t)--this.t},t.prototype.dlShiftTo=function(t,e){var i;for(i=this.t-1;i>=0;--i)e[i+t]=this[i];for(i=t-1;i>=0;--i)e[i]=0;e.t=this.t+t,e.s=this.s},t.prototype.drShiftTo=function(t,e){for(var i=t;i<this.t;++i)e[i-t]=this[i];e.t=Math.max(this.t-t,0),e.s=this.s},t.prototype.lShiftTo=function(t,e){for(var i=t%this.DB,r=this.DB-i,s=(1<<r)-1,n=Math.floor(t/this.DB),o=this.s<<i&this.DM,a=this.t-1;a>=0;--a)e[a+n+1]=this[a]>>r|o,o=(this[a]&s)<<i;for(a=n-1;a>=0;--a)e[a]=0;e[n]=o,e.t=this.t+n+1,e.s=this.s,e.clamp()},t.prototype.rShiftTo=function(t,e){e.s=this.s;var i=Math.floor(t/this.DB);if(i>=this.t)e.t=0;else{var r=t%this.DB,s=this.DB-r,n=(1<<r)-1;e[0]=this[i]>>r;for(var o=i+1;o<this.t;++o)e[o-i-1]|=(this[o]&n)<<s,e[o-i]=this[o]>>r;r>0&&(e[this.t-i-1]|=(this.s&n)<<s),e.t=this.t-i,e.clamp()}},t.prototype.subTo=function(t,e){var i=0,r=0,s=Math.min(t.t,this.t);while(i<s)r+=this[i]-t[i],e[i++]=r&this.DM,r>>=this.DB;if(t.t<this.t){r-=t.s;while(i<this.t)r+=this[i],e[i++]=r&this.DM,r>>=this.DB;r+=this.s}else{r+=this.s;while(i<t.t)r-=t[i],e[i++]=r&this.DM,r>>=this.DB;r-=t.s}e.s=r<0?-1:0,r<-1?e[i++]=this.DV+r:r>0&&(e[i++]=r),e.t=i,e.clamp()},t.prototype.multiplyTo=function(e,i){var r=this.abs(),s=e.abs(),n=r.t;i.t=n+s.t;while(--n>=0)i[n]=0;for(n=0;n<s.t;++n)i[n+r.t]=r.am(0,s[n],i,n,0,r.t);i.s=0,i.clamp(),this.s!=e.s&&t.ZERO.subTo(i,i)},t.prototype.squareTo=function(t){var e=this.abs(),i=t.t=2*e.t;while(--i>=0)t[i]=0;for(i=0;i<e.t-1;++i){var r=e.am(i,e[i],t,2*i,0,1);(t[i+e.t]+=e.am(i+1,2*e[i],t,2*i+1,r,e.t-i-1))>=e.DV&&(t[i+e.t]-=e.DV,t[i+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(i,e[i],t,2*i,0,1)),t.s=0,t.clamp()},t.prototype.divRemTo=function(e,i,r){var s=e.abs();if(!(s.t<=0)){var n=this.abs();if(n.t<s.t)return null!=i&&i.fromInt(0),void(null!=r&&this.copyTo(r));null==r&&(r=$());var o=$(),a=this.s,h=e.s,l=this.DB-tt(s[s.t-1]);l>0?(s.lShiftTo(l,o),n.lShiftTo(l,r)):(s.copyTo(o),n.copyTo(r));var u=o.t,c=o[u-1];if(0!=c){var f=c*(1<<this.F1)+(u>1?o[u-2]>>this.F2:0),g=this.FV/f,d=(1<<this.F1)/f,p=1<<this.F2,m=r.t,v=m-u,y=null==i?$():i;o.dlShiftTo(v,y),r.compareTo(y)>=0&&(r[r.t++]=1,r.subTo(y,r)),t.ONE.dlShiftTo(u,y),y.subTo(o,o);while(o.t<u)o[o.t++]=0;while(--v>=0){var w=r[--m]==c?this.DM:Math.floor(r[m]*g+(r[m-1]+p)*d);if((r[m]+=o.am(0,w,r,v,0,u))<w){o.dlShiftTo(v,y),r.subTo(y,r);while(r[m]<--w)r.subTo(y,r)}}null!=i&&(r.drShiftTo(u,i),a!=h&&t.ZERO.subTo(i,i)),r.t=u,r.clamp(),l>0&&r.rShiftTo(l,r),a<0&&t.ZERO.subTo(r,r)}}},t.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return e=e*(2-(15&t)*e)&15,e=e*(2-(255&t)*e)&255,e=e*(2-((65535&t)*e&65535))&65535,e=e*(2-t*e%this.DV)%this.DV,e>0?this.DV-e:-e},t.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},t.prototype.exp=function(e,i){if(e>4294967295||e<1)return t.ONE;var r=$(),s=$(),n=i.convert(this),o=tt(e)-1;n.copyTo(r);while(--o>=0)if(i.sqrTo(r,s),(e&1<<o)>0)i.mulTo(s,n,r);else{var a=r;r=s,s=a}return i.revert(r)},t.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},t.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),i=Math.pow(t,e),r=Q(i),s=$(),n=$(),o="";this.divRemTo(r,s,n);while(s.signum()>0)o=(i+n.intValue()).toString(t).substr(1)+o,s.divRemTo(r,s,n);return n.intValue().toString(t)+o},t.prototype.fromRadix=function(e,i){this.fromInt(0),null==i&&(i=10);for(var r=this.chunkSize(i),s=Math.pow(i,r),n=!1,o=0,a=0,h=0;h<e.length;++h){var l=J(e,h);
1l<0?"-"==e.charAt(h)&&0==this.signum()&&(n=!0):(a=i*a+l,++o>=r&&(this.dMultiply(s),this.dAddOffset(a,0),o=0,a=0))}o>0&&(this.dMultiply(Math.pow(i,o)),this.dAddOffset(a,0)),n&&t.ZERO.subTo(this,this)},t.prototype.fromNumber=function(e,i,r){if("number"==typeof i)if(e<2)this.fromInt(1);else{this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(t.ONE.shiftLeft(e-1),g,this),this.isEven()&&this.dAddOffset(1,0);while(!this.isProbablePrime(i))this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(t.ONE.shiftLeft(e-1),this)}else{var s=[],n=7&e;s.length=1+(e>>3),i.nextBytes(s),n>0?s[0]&=(1<<n)-1:s[0]=0,this.fromString(s,256)}},t.prototype.bitwiseTo=function(t,e,i){var r,s,n=Math.min(t.t,this.t);for(r=0;r<n;++r)i[r]=e(this[r],t[r]);if(t.t<this.t){for(s=t.s&this.DM,r=n;r<this.t;++r)i[r]=e(this[r],s);i.t=this.t}else{for(s=this.s&this.DM,r=n;r<t.t;++r)i[r]=e(s,t[r]);i.t=t.t}i.s=e(this.s,t.s),i.clamp()},t.prototype.changeBit=function(e,i){var r=t.ONE.shiftLeft(e);return this.bitwiseTo(r,i,r),r},t.prototype.addTo=function(t,e){var i=0,r=0,s=Math.min(t.t,this.t);while(i<s)r+=this[i]+t[i],e[i++]=r&this.DM,r>>=this.DB;if(t.t<this.t){r+=t.s;while(i<this.t)r+=this[i],e[i++]=r&this.DM,r>>=this.DB;r+=this.s}else{r+=this.s;while(i<t.t)r+=t[i],e[i++]=r&this.DM,r>>=this.DB;r+=t.s}e.s=r<0?-1:0,r>0?e[i++]=r:r<-1&&(e[i++]=this.DV+r),e.t=i,e.clamp()},t.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},t.prototype.dAddOffset=function(t,e){if(0!=t){while(this.t<=e)this[this.t++]=0;this[e]+=t;while(this[e]>=this.DV)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},t.prototype.multiplyLowerTo=function(t,e,i){var r=Math.min(this.t+t.t,e);i.s=0,i.t=r;while(r>0)i[--r]=0;for(var s=i.t-this.t;r<s;++r)i[r+this.t]=this.am(0,t[r],i,r,0,this.t);for(s=Math.min(t.t,e);r<s;++r)this.am(0,t[r],i,r,0,e-r);i.clamp()},t.prototype.multiplyUpperTo=function(t,e,i){--e;var r=i.t=this.t+t.t-e;i.s=0;while(--r>=0)i[r]=0;for(r=Math.max(e-this.t,0);r<t.t;++r)i[this.t+r-e]=this.am(e-r,t[r],i,0,0,this.t+r-e);i.clamp(),i.drShiftTo(1,i)},t.prototype.modInt=function(t){if(t<=0)return 0;var e=this.DV%t,i=this.s<0?t-1:0;if(this.t>0)if(0==e)i=this[0]%t;else for(var r=this.t-1;r>=0;--r)i=(e*i+this[r])%t;return i},t.prototype.millerRabin=function(e){var i=this.subtract(t.ONE),r=i.getLowestSetBit();if(r<=0)return!1;var s=i.shiftRight(r);e=e+1>>1,e>P.length&&(e=P.length);for(var n=$(),o=0;o<e;++o){n.fromInt(P[Math.floor(Math.random()*P.length)]);var a=n.modPow(s,this);if(0!=a.compareTo(t.ONE)&&0!=a.compareTo(i)){var h=1;while(h++<r&&0!=a.compareTo(i))if(a=a.modPowInt(2,this),0==a.compareTo(t.ONE))return!1;if(0!=a.compareTo(i))return!1}}return!0},t.prototype.square=function(){var t=$();return this.squareTo(t),t},t.prototype.gcda=function(t,e){var i=this.s<0?this.negate():this.clone(),r=t.s<0?t.negate():t.clone();if(i.compareTo(r)<0){var s=i;i=r,r=s}var n=i.getLowestSetBit(),o=r.getLowestSetBit();if(o<0)e(i);else{n<o&&(o=n),o>0&&(i.rShiftTo(o,i),r.rShiftTo(o,r));var a=function(){(n=i.getLowestSetBit())>0&&i.rShiftTo(n,i),(n=r.getLowestSetBit())>0&&r.rShiftTo(n,r),i.compareTo(r)>=0?(i.subTo(r,i),i.rShiftTo(1,i)):(r.subTo(i,r),r.rShiftTo(1,r)),i.signum()>0?setTimeout(a,0):(o>0&&r.lShiftTo(o,r),setTimeout((function(){e(r)}),0))};setTimeout(a,10)}},t.prototype.fromNumberAsync=function(e,i,r,s){if("number"==typeof i)if(e<2)this.fromInt(1);else{this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(t.ONE.shiftLeft(e-1),g,this),this.isEven()&&this.dAddOffset(1,0);var n=this,o=function(){n.dAddOffset(2,0),n.bitLength()>e&&n.subTo(t.ONE.shiftLeft(e-1),n),n.isProbablePrime(i)?setTimeout((function(){s()}),0):setTimeout(o,0)};setTimeout(o,0)}else{var a=[],h=7&e;a.length=1+(e>>3),i.nextBytes(a),h>0?a[0]&=(1<<h)-1:a[0]=0,this.fromString(a,256)}},t}(),F=function(){function t(){}return t.prototype.convert=function(t){return t},t.prototype.revert=function(t){return t},t.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i)},t.prototype.sqrTo=function(t,e){t.squareTo(e)},t}(),j=function(){function t(t){this.m=t}return t.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},t.prototype.revert=function(t){return t},t.prototype.reduce=function(t){t.divRemTo(this.m,null,t)}
1,t.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}(),H=function(){function t(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 t.prototype.convert=function(t){var e=$();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(q.ZERO)>0&&this.m.subTo(e,e),e},t.prototype.revert=function(t){var e=$();return t.copyTo(e),this.reduce(e),e},t.prototype.reduce=function(t){while(t.t<=this.mt2)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var i=32767&t[e],r=i*this.mpl+((i*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;i=e+this.m.t,t[i]+=this.m.am(0,r,t,e,0,this.m.t);while(t[i]>=t.DV)t[i]-=t.DV,t[++i]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},t.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}(),K=function(){function t(t){this.m=t,this.r2=$(),this.q3=$(),q.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t)}return t.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=$();return t.copyTo(e),this.reduce(e),e},t.prototype.revert=function(t){return t},t.prototype.reduce=function(t){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);while(t.compareTo(this.r2)<0)t.dAddOffset(1,this.m.t+1);t.subTo(this.r2,t);while(t.compareTo(this.m)>=0)t.subTo(this.m,t)},t.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}();function $(){return new q(null)}function G(t,e){return new q(t,e)}var z="undefined"!==typeof navigator;z&&M&&"Microsoft Internet Explorer"==navigator.appName?(q.prototype.am=function(t,e,i,r,s,n){var o=32767&e,a=e>>15;while(--n>=0){var h=32767&this[t],l=this[t++]>>15,u=a*h+l*o;h=o*h+((32767&u)<<15)+i[r]+(1073741823&s),s=(h>>>30)+(u>>>15)+a*l+(s>>>30),i[r++]=1073741823&h}return s},C=30):z&&M&&"Netscape"!=navigator.appName?(q.prototype.am=function(t,e,i,r,s,n){while(--n>=0){var o=e*this[t++]+i[r]+s;s=Math.floor(o/67108864),i[r++]=67108863&o}return s},C=26):(q.prototype.am=function(t,e,i,r,s,n){var o=16383&e,a=e>>14;while(--n>=0){var h=16383&this[t],l=this[t++]>>14,u=a*h+l*o;h=o*h+((16383&u)<<14)+i[r]+s,s=(h>>28)+(u>>14)+a*l,i[r++]=268435455&h}return s},C=28),q.prototype.DB=C,q.prototype.DM=(1<<C)-1,q.prototype.DV=1<<C;var Y=52;q.prototype.FV=Math.pow(2,Y),q.prototype.F1=Y-C,q.prototype.F2=2*C-Y;var Z,X,W=[];for(Z="0".charCodeAt(0),X=0;X<=9;++X)W[Z++]=X;for(Z="a".charCodeAt(0),X=10;X<36;++X)W[Z++]=X;for(Z="A".charCodeAt(0),X=10;X<36;++X)W[Z++]=X;function J(t,e){var i=W[t.charCodeAt(e)];return null==i?-1:i}function Q(t){var e=$();return e.fromInt(t),e}function tt(t){var e,i=1;return 0!=(e=t>>>16)&&(t=e,i+=16),0!=(e=t>>8)&&(t=e,i+=8),0!=(e=t>>4)&&(t=e,i+=4),0!=(e=t>>2)&&(t=e,i+=2),0!=(e=t>>1)&&(t=e,i+=1),i}q.ZERO=Q(0),q.ONE=Q(1);var et=function(){function t(){this.i=0,this.j=0,this.S=[]}return t.prototype.init=function(t){var e,i,r;for(e=0;e<256;++e)this.S[e]=e;for(i=0,e=0;e<256;++e)i=i+this.S[e]+t[e%t.length]&255,r=this.S[e],this.S[e]=this.S[i],this.S[i]=r;this.i=0,this.j=0},t.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]},t}();function it(){return new et}var rt,st,nt=256,ot=null;if(null==ot){ot=[],st=0;var at=void 0;if("undefined"!==typeof window&&window.crypto&&window.crypto.getRandomValues){var ht=new Uint32Array(256);for(window.crypto.getRandomValues(ht),at=0;at<ht.length;++at)ot[st++]=255&ht[at]}var lt=0,ut=function(t){if(lt=lt||0,lt>=256||st>=nt)window.removeEventListener?window.removeEventListener("mousemove",ut,!1):window.detachEvent&&window.detachEvent("onmousemove",ut);else try{var e=t.x+t.y;ot[st++]=255&e,lt+=1}catch(i){}};"undefined"!==typeof window&&(window.addEventListener?window.addEventListener("mousemove",ut,!1):window.attachEvent&&window.attachEvent("onmousemove",ut))}function ct(){if(null==rt){rt=it();while(st<nt){var t=Math.floor(65536*Math.random());ot[st++]=255&t}for(rt.init(ot),st=0;st<ot.length;++st)ot[st]=0;st=0}return rt.next()}var ft=function(){function t(){}return t.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=ct()},t}();function gt(t,e){if(e<t.length+22)return console.error("Message too long for RSA"),null;for(var i=e-t.length-6,r="",s=0;s<i;s+=2)r+="ff";var n="0001"+r+"00"+t;return G(n,16)}function dt(t,e){if(e<t.length+11)return console.error("Message too long for RSA"),null;var i=[],r=t.length-1;while(r>=0&&e>0){var s=t.charCodeAt(r--);s<128?i[--e]=s:s>127&&s<2048?(i[--e]=63&s|128,i[--e]=s>>6|192):(i[--e]=63&s|128,i[--e]=s>>6&63|128,i[--e]=s>>12|224)}i[--e]=0;var n=new ft,o=[];while(e>2){o[0]=0;while(0==o[0])n.nextBytes(o);i[--e]=o[0]}return i[--e]=2,i[--e]=0,new q(i)}var pt=function(){function t(){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 t.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},t.prototype.doPrivate=function(t){if(null==this.p||null==this.q)return t.modPow(this.d,this.n);var e=t.mod(this.p).modPow(this.dmp1,this.p),i=t.mod(this.q).modPow(this.dmq1,this.q);while(e.compareTo(i)<0)e=e.add(this.p);return e.subtract(i).multiply(this.coeff).mod(this.p).multiply(this.q).add(i)},t.prototype.setPublic=function(t,e){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=G(t,16),this.e=parseInt(e,16)):console.error("Invalid RSA public key")},t.prototype.encrypt=function(t){var e=this.n.bitLength()+7>>3,i=dt(t,e);if(null==i)return null;var r=this.doPublic(i);if(null==r)return null;for(var s=r.toString(16),n=s.length,o=0;o<2*e-n;o++)s="0"+s;return s}
1,t.prototype.setPrivate=function(t,e,i){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=G(t,16),this.e=parseInt(e,16),this.d=G(i,16)):console.error("Invalid RSA private key")},t.prototype.setPrivateEx=function(t,e,i,r,s,n,o,a){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=G(t,16),this.e=parseInt(e,16),this.d=G(i,16),this.p=G(r,16),this.q=G(s,16),this.dmp1=G(n,16),this.dmq1=G(o,16),this.coeff=G(a,16)):console.error("Invalid RSA private key")},t.prototype.generate=function(t,e){var i=new ft,r=t>>1;this.e=parseInt(e,16);for(var s=new q(e,16);;){for(;;)if(this.p=new q(t-r,1,i),0==this.p.subtract(q.ONE).gcd(s).compareTo(q.ONE)&&this.p.isProbablePrime(10))break;for(;;)if(this.q=new q(r,1,i),0==this.q.subtract(q.ONE).gcd(s).compareTo(q.ONE)&&this.q.isProbablePrime(10))break;if(this.p.compareTo(this.q)<=0){var n=this.p;this.p=this.q,this.q=n}var o=this.p.subtract(q.ONE),a=this.q.subtract(q.ONE),h=o.multiply(a);if(0==h.gcd(s).compareTo(q.ONE)){this.n=this.p.multiply(this.q),this.d=s.modInverse(h),this.dmp1=this.d.mod(o),this.dmq1=this.d.mod(a),this.coeff=this.q.modInverse(this.p);break}}},t.prototype.decrypt=function(t){var e=G(t,16),i=this.doPrivate(e);return null==i?null:mt(i,this.n.bitLength()+7>>3)},t.prototype.generateAsync=function(t,e,i){var r=new ft,s=t>>1;this.e=parseInt(e,16);var n=new q(e,16),o=this,a=function(){var e=function(){if(o.p.compareTo(o.q)<=0){var t=o.p;o.p=o.q,o.q=t}var e=o.p.subtract(q.ONE),r=o.q.subtract(q.ONE),s=e.multiply(r);0==s.gcd(n).compareTo(q.ONE)?(o.n=o.p.multiply(o.q),o.d=n.modInverse(s),o.dmp1=o.d.mod(e),o.dmq1=o.d.mod(r),o.coeff=o.q.modInverse(o.p),setTimeout((function(){i()}),0)):setTimeout(a,0)},h=function(){o.q=$(),o.q.fromNumberAsync(s,1,r,(function(){o.q.subtract(q.ONE).gcda(n,(function(t){0==t.compareTo(q.ONE)&&o.q.isProbablePrime(10)?setTimeout(e,0):setTimeout(h,0)}))}))},l=function(){o.p=$(),o.p.fromNumberAsync(t-s,1,r,(function(){o.p.subtract(q.ONE).gcda(n,(function(t){0==t.compareTo(q.ONE)&&o.p.isProbablePrime(10)?setTimeout(h,0):setTimeout(l,0)}))}))};setTimeout(l,0)};setTimeout(a,0)},t.prototype.sign=function(t,e,i){var r=yt(i),s=r+e(t).toString(),n=gt(s,this.n.bitLength()/4);if(null==n)return null;var o=this.doPrivate(n);if(null==o)return null;var a=o.toString(16);return 0==(1&a.length)?a:"0"+a},t.prototype.verify=function(t,e,i){var r=G(e,16),s=this.doPublic(r);if(null==s)return null;var n=s.toString(16).replace(/^1f+00/,""),o=wt(n);return o==i(t).toString()},t}();function mt(t,e){var i=t.toByteArray(),r=0;while(r<i.length&&0==i[r])++r;if(i.length-r!=e-1||2!=i[r])return null;++r;while(0!=i[r])if(++r>=i.length)return null;var s="";while(++r<i.length){var n=255&i[r];n<128?s+=String.fromCharCode(n):n>191&&n<224?(s+=String.fromCharCode((31&n)<<6|63&i[r+1]),++r):(s+=String.fromCharCode((15&n)<<12|(63&i[r+1])<<6|63&i[r+2]),r+=2)}return s}var vt={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function yt(t){return vt[t]||""}function wt(t){for(var e in vt)if(vt.hasOwnProperty(e)){var i=vt[e],r=i.length;if(t.substr(0,r)==i)return t.substr(r)}return t}
2/*!
3Copyright (c) 2011, Yahoo! Inc. All rights reserved.
4Code licensed under the BSD License:
5http://developer.yahoo.com/yui/license.html
6version: 2.9.0
7*/
8var Tt={};Tt.lang={extend:function(t,e,i){if(!e||!t)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var r=function(){};if(r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t,t.superclass=e.prototype,e.prototype.constructor==Object.prototype.constructor&&(e.prototype.constructor=e),i){var s;for(s in i)t.prototype[s]=i[s];var n=function(){},o=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(n=function(t,e){for(s=0;s<o.length;s+=1){var i=o[s],r=e[i];"function"===typeof r&&r!=Object.prototype[i]&&(t[i]=r)}})}catch(a){}
8n(t.prototype,i)}}};
9/**
10 * @fileOverview
11 * @name asn1-1.0.js
12 * @author Kenji Urushima [email protected]
13 * @version asn1 1.0.13 (2017-Jun-02)
14 * @since jsrsasign 2.1
15 * @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
16 */
17var bt={};"undefined"!=typeof bt.asn1&&bt.asn1||(bt.asn1={}),bt.asn1.ASN1Util=new function(){this.integerToByteHex=function(t){var e=t.toString(16);return e.length%2==1&&(e="0"+e),e},this.bigIntToMinTwosComplementsHex=function(t){var e=t.toString(16);if("-"!=e.substr(0,1))e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{var i=e.substr(1),r=i.length;r%2==1?r+=1:e.match(/^[0-7]/)||(r+=2);for(var s="",n=0;n<r;n++)s+="f";var o=new q(s,16),a=o.xor(t).add(q.ONE);e=a.toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(t,e){return hextopem(t,e)},this.newObject=function(t){var e=bt,i=e.asn1,r=i.DERBoolean,s=i.DERInteger,n=i.DERBitString,o=i.DEROctetString,a=i.DERNull,h=i.DERObjectIdentifier,l=i.DEREnumerated,u=i.DERUTF8String,c=i.DERNumericString,f=i.DERPrintableString,g=i.DERTeletexString,d=i.DERIA5String,p=i.DERUTCTime,m=i.DERGeneralizedTime,v=i.DERSequence,y=i.DERSet,w=i.DERTaggedObject,T=i.ASN1Util.newObject,b=Object.keys(t);if(1!=b.length)throw"key of param shall be only one.";var S=b[0];if(-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+S+":"))throw"undefined key: "+S;if("bool"==S)return new r(t[S]);if("int"==S)return new s(t[S]);if("bitstr"==S)return new n(t[S]);if("octstr"==S)return new o(t[S]);if("null"==S)return new a(t[S]);if("oid"==S)return new h(t[S]);if("enum"==S)return new l(t[S]);if("utf8str"==S)return new u(t[S]);if("numstr"==S)return new c(t[S]);if("prnstr"==S)return new f(t[S]);if("telstr"==S)return new g(t[S]);if("ia5str"==S)return new d(t[S]);if("utctime"==S)return new p(t[S]);if("gentime"==S)return new m(t[S]);if("seq"==S){for(var E=t[S],R=[],D=0;D<E.length;D++){var x=T(E[D]);R.push(x)}return new v({array:R})}if("set"==S){for(E=t[S],R=[],D=0;D<E.length;D++){x=T(E[D]);R.push(x)}return new y({array:R})}if("tag"==S){var A=t[S];if("[object Array]"===Object.prototype.toString.call(A)&&3==A.length){var L=T(A[2]);return new w({tag:A[0],explicit:A[1],obj:L})}var B={};if(void 0!==A.explicit&&(B.explicit=A.explicit),void 0!==A.tag&&(B.tag=A.tag),void 0===A.obj)throw"obj shall be specified for 'tag'.";return B.obj=T(A.obj),new w(B)}},this.jsonToASN1HEX=function(t){var e=this.newObject(t);return e.getEncodedHex()}},bt.asn1.ASN1Util.oidHexToInt=function(t){for(var e="",i=parseInt(t.substr(0,2),16),r=Math.floor(i/40),s=i%40,n=(e=r+"."+s,""),o=2;o<t.length;o+=2){var a=parseInt(t.substr(o,2),16),h=("00000000"+a.toString(2)).slice(-8);if(n+=h.substr(1,7),"0"==h.substr(0,1)){var l=new q(n,2);e=e+"."+l.toString(10),n=""}}return e},bt.asn1.ASN1Util.oidIntToHex=function(t){var e=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},i=function(t){var i="",r=new q(t,10),s=r.toString(2),n=7-s.length%7;7==n&&(n=0);for(var o="",a=0;a<n;a++)o+="0";s=o+s;for(a=0;a<s.length-1;a+=7){var h=s.substr(a,7);a!=s.length-7&&(h="1"+h),i+=e(parseInt(h,2))}return i};if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var r="",s=t.split("."),n=40*parseInt(s[0])+parseInt(s[1]);r+=e(n),s.splice(0,2);for(var o=0;o<s.length;o++)r+=i(s[o]);return r},bt.asn1.ASN1Object=function(){var t="";this.getLengthHexFromValue=function(){if("undefined"==typeof this.hV||null==this.hV)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+t.length+",v="+this.hV;var e=this.hV.length/2,i=e.toString(16);if(i.length%2==1&&(i="0"+i),e<128)return i;var r=i.length/2;if(r>15)throw"ASN.1 length too long to represent by 8x: n = "+e.toString(16);var s=128+r;return s.toString(16)+i},this.getEncodedHex=function(){return(null==this.hTLV||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""}},bt.asn1.DERAbstractString=function(t){bt.asn1.DERAbstractString.superclass.constructor.call(this);
17this.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},"undefined"!=typeof t&&("string"==typeof t?this.setString(t):"undefined"!=typeof t["str"]?this.setString(t["str"]):"undefined"!=typeof t["hex"]&&this.setStringHex(t["hex"]))},Tt.lang.extend(bt.asn1.DERAbstractString,bt.asn1.ASN1Object),bt.asn1.DERAbstractTime=function(t){bt.asn1.DERAbstractTime.superclass.constructor.call(this);this.localDateToUTC=function(t){utc=t.getTime()+6e4*t.getTimezoneOffset();var e=new Date(utc);return e},this.formatDate=function(t,e,i){var r=this.zeroPadding,s=this.localDateToUTC(t),n=String(s.getFullYear());"utc"==e&&(n=n.substr(2,2));var o=r(String(s.getMonth()+1),2),a=r(String(s.getDate()),2),h=r(String(s.getHours()),2),l=r(String(s.getMinutes()),2),u=r(String(s.getSeconds()),2),c=n+o+a+h+l+u;if(!0===i){var f=s.getMilliseconds();if(0!=f){var g=r(String(f),3);g=g.replace(/[0]+$/,""),c=c+"."+g}}return c+"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,i,r,s,n){var o=new Date(Date.UTC(t,e-1,i,r,s,n,0));this.setByDate(o)},this.getFreshValueHex=function(){return this.hV}},Tt.lang.extend(bt.asn1.DERAbstractTime,bt.asn1.ASN1Object),bt.asn1.DERAbstractStructured=function(t){bt.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,"undefined"!=typeof t&&"undefined"!=typeof t["array"]&&(this.asn1Array=t["array"])},Tt.lang.extend(bt.asn1.DERAbstractStructured,bt.asn1.ASN1Object),bt.asn1.DERBoolean=function(){bt.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},Tt.lang.extend(bt.asn1.DERBoolean,bt.asn1.ASN1Object),bt.asn1.DERInteger=function(t){bt.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=bt.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new q(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof t&&("undefined"!=typeof t["bigint"]?this.setByBigInteger(t["bigint"]):"undefined"!=typeof t["int"]?this.setByInteger(t["int"]):"number"==typeof t?this.setByInteger(t):"undefined"!=typeof t["hex"]&&this.setValueHex(t["hex"]))},Tt.lang.extend(bt.asn1.DERInteger,bt.asn1.ASN1Object),bt.asn1.DERBitString=function(t){if(void 0!==t&&"undefined"!==typeof t.obj){var e=bt.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}bt.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,e){if(t<0||7<t)throw"unused bits shall be from 0 to 7: u = "+t;var i="0"+t;this.hTLV=null,this.isModified=!0,this.hV=i+e},this.setByBinaryString=function(t){t=t.replace(/0+$/,"");var e=8-t.length%8;8==e&&(e=0);for(var i=0;i<=e;i++)t+="0";var r="";for(i=0;i<t.length-1;i+=8){var s=t.substr(i,8),n=parseInt(s,2).toString(16);1==n.length&&(n="0"+n),r+=n}this.hTLV=null,this.isModified=!0,this.hV="0"+e+r},this.setByBooleanArray=function(t){for(var e="",i=0;i<t.length;i++)1==t[i]?e+="1":e+="0";this.setByBinaryString(e)},this.newFalseArray=function(t){for(var e=new Array(t),i=0;i<t;i++)e[i]=!1;return e},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof t&&("string"==typeof t&&t.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(t):"undefined"!=typeof t["hex"]?this.setHexValueIncludingUnusedBits(t["hex"]):"undefined"!=typeof t["bin"]?this.setByBinaryString(t["bin"]):"undefined"!=typeof t["array"]&&this.setByBo
17oleanArray(t["array"]))},Tt.lang.extend(bt.asn1.DERBitString,bt.asn1.ASN1Object),bt.asn1.DEROctetString=function(t){if(void 0!==t&&"undefined"!==typeof t.obj){var e=bt.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex()}bt.asn1.DEROctetString.superclass.constructor.call(this,t),this.hT="04"},Tt.lang.extend(bt.asn1.DEROctetString,bt.asn1.DERAbstractString),bt.asn1.DERNull=function(){bt.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},Tt.lang.extend(bt.asn1.DERNull,bt.asn1.ASN1Object),bt.asn1.DERObjectIdentifier=function(t){var e=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},i=function(t){var i="",r=new q(t,10),s=r.toString(2),n=7-s.length%7;7==n&&(n=0);for(var o="",a=0;a<n;a++)o+="0";s=o+s;for(a=0;a<s.length-1;a+=7){var h=s.substr(a,7);a!=s.length-7&&(h="1"+h),i+=e(parseInt(h,2))}return i};bt.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.setValueOidString=function(t){if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var r="",s=t.split("."),n=40*parseInt(s[0])+parseInt(s[1]);r+=e(n),s.splice(0,2);for(var o=0;o<s.length;o++)r+=i(s[o]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueName=function(t){var e=bt.asn1.x509.OID.name2oid(t);if(""===e)throw"DERObjectIdentifier oidName undefined: "+t;this.setValueOidString(e)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"===typeof t?t.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(t):this.setValueName(t):void 0!==t.oid?this.setValueOidString(t.oid):void 0!==t.hex?this.setValueHex(t.hex):void 0!==t.name&&this.setValueName(t.name))},Tt.lang.extend(bt.asn1.DERObjectIdentifier,bt.asn1.ASN1Object),bt.asn1.DEREnumerated=function(t){bt.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=bt.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new q(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof t&&("undefined"!=typeof t["int"]?this.setByInteger(t["int"]):"number"==typeof t?this.setByInteger(t):"undefined"!=typeof t["hex"]&&this.setValueHex(t["hex"]))},Tt.lang.extend(bt.asn1.DEREnumerated,bt.asn1.ASN1Object),bt.asn1.DERUTF8String=function(t){bt.asn1.DERUTF8String.superclass.constructor.call(this,t),this.hT="0c"},Tt.lang.extend(bt.asn1.DERUTF8String,bt.asn1.DERAbstractString),bt.asn1.DERNumericString=function(t){bt.asn1.DERNumericString.superclass.constructor.call(this,t),this.hT="12"},Tt.lang.extend(bt.asn1.DERNumericString,bt.asn1.DERAbstractString),bt.asn1.DERPrintableString=function(t){bt.asn1.DERPrintableString.superclass.constructor.call(this,t),this.hT="13"},Tt.lang.extend(bt.asn1.DERPrintableString,bt.asn1.DERAbstractString),bt.asn1.DERTeletexString=function(t){bt.asn1.DERTeletexString.superclass.constructor.call(this,t),this.hT="14"},Tt.lang.extend(bt.asn1.DERTeletexString,bt.asn1.DERAbstractString),bt.asn1.DERIA5String=function(t){bt.asn1.DERIA5String.superclass.constructor.call(this,t),this.hT="16"},Tt.lang.extend(bt.asn1.DERIA5String,bt.asn1.DERAbstractString),bt.asn1.DERUTCTime=function(t){bt.asn1.DERUTCTime.superclass.constructor.call(this,t),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"undefined"==typeof this.date&&"undefined"==typeof this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{12}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date))},Tt.lang.extend(bt.asn1.DERUTCTime,bt.asn1.DERAbstractTime),bt.asn1.DERGeneralizedTime=function(t){bt.asn1.DERGeneralizedTime.superclass.constructor.call(this,t),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 void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{14}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date),!0===t.millis&&(this.withMillis=!0))},Tt.lang.extend(bt.asn1.DERGeneralizedTime,bt.asn1.DERAbstractTime),bt.asn1.DERSequence=function(t){bt.asn1.DERSequence.superclass.constructor.call(this,t),this.hT="30",this.getFreshValueHex=function(){for(var t="",e=0;e<this.asn1Array.length;e++){var i=this.asn1Array[e];t+=i.getEncodedHex()}return this.hV=t,this.hV}},Tt.lang.extend(bt.asn1.DERSequence,bt.asn1.DERAbstractStructured),bt.asn1.DERSet=function(t){bt.asn1.DERSet.superclass.constructor.call(this,t),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,e=0;e<this.asn1Array.length;e++){var i=this.asn1Array[e];t.push(i.getEncodedHex())}return 1==this.sortFlag&&t.sort(),this.hV=t.join(""),this.hV},"undefined"!=typeof t&&"undefined"!=typeof t.sortflag&&0==t.sortflag&&(this.sortFlag=!1)},Tt.lang.extend(bt.asn1.DERSet,bt.asn1.DERAbstractStructured),bt.asn1.DERTaggedObject=function(t){bt.asn1.DERTaggedObject.
17superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,e,i){this.hT=e,this.isExplicit=t,this.asn1Object=i,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=i.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,e),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof t&&("undefined"!=typeof t["tag"]&&(this.hT=t["tag"]),"undefined"!=typeof t["explicit"]&&(this.isExplicit=t["explicit"]),"undefined"!=typeof t["obj"]&&(this.asn1Object=t["obj"],this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},Tt.lang.extend(bt.asn1.DERTaggedObject,bt.asn1.ASN1Object);var St,Et=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!==typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Rt=function(t){function e(i){var r=t.call(this)||this;return i&&("string"===typeof i?r.parseKey(i):(e.hasPrivateKeyProperty(i)||e.hasPublicKeyProperty(i))&&r.parsePropertiesFrom(i)),r}return Et(e,t),e.prototype.parseKey=function(t){try{var e=0,i=0,r=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,s=r.test(t)?R.decode(t):D.unarmor(t),n=O.decode(s);if(3===n.sub.length&&(n=n.sub[2].sub[0]),9===n.sub.length){e=n.sub[1].getHexStringValue(),this.n=G(e,16),i=n.sub[2].getHexStringValue(),this.e=parseInt(i,16);var o=n.sub[3].getHexStringValue();this.d=G(o,16);var a=n.sub[4].getHexStringValue();this.p=G(a,16);var h=n.sub[5].getHexStringValue();this.q=G(h,16);var l=n.sub[6].getHexStringValue();this.dmp1=G(l,16);var u=n.sub[7].getHexStringValue();this.dmq1=G(u,16);var c=n.sub[8].getHexStringValue();this.coeff=G(c,16)}else{if(2!==n.sub.length)return!1;if(n.sub[0].sub){var f=n.sub[1],g=f.sub[0];e=g.sub[0].getHexStringValue(),this.n=G(e,16),i=g.sub[1].getHexStringValue(),this.e=parseInt(i,16)}else e=n.sub[0].getHexStringValue(),this.n=G(e,16),i=n.sub[1].getHexStringValue(),this.e=parseInt(i,16)}return!0}catch(d){return!1}},e.prototype.getPrivateBaseKey=function(){var t={array:[new bt.asn1.DERInteger({int:0}),new bt.asn1.DERInteger({bigint:this.n}),new bt.asn1.DERInteger({int:this.e}),new bt.asn1.DERInteger({bigint:this.d}),new bt.asn1.DERInteger({bigint:this.p}),new bt.asn1.DERInteger({bigint:this.q}),new bt.asn1.DERInteger({bigint:this.dmp1}),new bt.asn1.DERInteger({bigint:this.dmq1}),new bt.asn1.DERInteger({bigint:this.coeff})]},e=new bt.asn1.DERSequence(t);return e.getEncodedHex()},e.prototype.getPrivateBaseKeyB64=function(){return b(this.getPrivateBaseKey())},e.prototype.getPublicBaseKey=function(){var t=new bt.asn1.DERSequence({array:[new bt.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new bt.asn1.DERNull]}),e=new bt.asn1.DERSequence({array:[new bt.asn1.DERInteger({bigint:this.n}),new bt.asn1.DERInteger({int:this.e})]}),i=new bt.asn1.DERBitString({hex:"00"+e.getEncodedHex()}),r=new bt.asn1.DERSequence({array:[t,i]});return r.getEncodedHex()},e.prototype.getPublicBaseKeyB64=function(){return b(this.getPublicBaseKey())},e.wordwrap=function(t,e){if(e=e||64,!t)return t;var i="(.{1,"+e+"})( +|$\n?)|(.{1,"+e+"})";return t.match(RegExp(i,"g")).join("\n")},e.prototype.getPrivateKey=function(){var t="-----BEGIN RSA PRIVATE KEY-----\n";return t+=e.wordwrap(this.getPrivateBaseKeyB64())+"\n",t+="-----END RSA PRIVATE KEY-----",t},e.prototype.getPublicKey=function(){var t="-----BEGIN PUBLIC KEY-----\n";return t+=e.wordwrap(this.getPublicBaseKeyB64())+"\n",t+="-----END PUBLIC KEY-----",t},e.hasPublicKeyProperty=function(t){return t=t||{},t.hasOwnProperty("n")&&t.hasOwnProperty("e")},e.hasPrivateKeyProperty=function(t){return t=t||{},t.hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")},e.prototype.parsePropertiesFrom=function(t){this.n=t.n,this.e=t.e,t.hasOwnProperty("d")&&(this.d=t.d,this.p=t.p,this.q=t.q,this.dmp1=t.dmp1,this.dmq1=t.dmq1,this.coeff=t.coeff)},e}(pt),Dt="undefined"!==typeof process?null===(St={NODE_ENV:"production",BASE_URL:"/user-center/"})||void 0===St?void 0:St.npm_package_version:void 0;(function(){function t(t){void 0===t&&(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}t.prototype.setKey=function(t){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new Rt(t)},t.prototype.setPrivateKey=function(t){this.setKey(t)},t.prototype.setPublicKey=function(t){this.setKey(t)},t.prototype.decrypt=function(t){try{return this.getKey().decrypt(S(t))}catch(e){return!1}},t.prototype.encrypt=function(t){try{return b(this.getKey().encrypt
17(t))}catch(e){return!1}},t.prototype.sign=function(t,e,i){try{return b(this.getKey().sign(t,e,i))}catch(r){return!1}},t.prototype.verify=function(t,e,i){try{return this.getKey().verify(t,S(e),i)}catch(r){return!1}},t.prototype.getKey=function(t){if(!this.key){if(this.key=new Rt,t&&"[object Function]"==={}.toString.call(t))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},t.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},t.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},t.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},t.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},t.version=Dt})();var xt=i(8336);class At{static loginIn({data:t}){let e=xt.A.deepCopy({obj:t});return a.A.post({url:l.LOGIN_URL,data:e,config:{common:{showFailMessage:!0,useToken:!1}}})}}const Lt=At;var Bt=i(603);const kt={EMAIL_CODE:"ucs/api/v1/user-token/register-email",EMAIL:"ucs/api/v1/register/email",GENERATE_SLIDER_TOKEN:"ucs/sl
17iderCaptcha/generate-token",VERIFY_SLIDER_TRACK:"ucs/sliderCaptcha/isVerify",VERIFY_SLIDER_SUCCESS:"ucs/sliderCaptcha/verify-slider"},It=kt;class Ct{static sendEmailCode({email:t,sliderToken:e}){var i=(new Date).getTime(),r=CryptoJS.MD5(t+i).toString();return a.A.post({url:It.EMAIL_CODE,data:{email:t,timestamp:i,sign:r,sliderToken:e},config:{common:{useToken:!1}}})}static email({username:t,password:e,vcode:i}){let r=t;return a.A.post({url:It.EMAIL,data:{email:r,username:t,password:e,vcode:i},config:{common:{useToken:!1}}})}static generateSliderToken(){return a.A.post({url:It.GENERATE_SLIDER_TOKEN+"?t="+(new Date).getTime(),data:{},config:{common:{useToken:!1}}})}static verifySliderTrack({datas:t}){return a.A.post({url:It.VERIFY_SLIDER_TRACK,data:{datas:t},config:{common:{useToken:!1}}})}static verifySliderSuccess({token:t}){return a.A.post({url:It.VERIFY_SLIDER_SUCCESS,data:{token:t,success:!0},config:{common:{useToken:!1}}})}}const Vt=Ct;var Ot=i(1013),Nt=i(9279),_t=i(1218);const Mt=Math.PI;function Pt(t,e){return t+e}function Ut(t){return t*t}function qt(t,e,i,r,s,n){t.beginPath(),t.moveTo(e,i),t.arc(e+r/2,i-s+2,s,.72*Mt,2.26*Mt),t.lineTo(e+r,i),t.arc(e+r+s-2,i+r/2,s,1.21*Mt,2.78*Mt),t.lineTo(e+r,i+r),t.lineTo(e,i+r),t.arc(e+s-2,i+r/2,s+.4,2.76*Mt,1.24*Mt,!0),t.lineTo(e,i),t.lineWidth=2,t.fillStyle="rgba(255, 255, 255, 0.7)",t.strokeStyle="rgba(255, 255, 255, 0.7)",t.stroke(),t[n](),t.globalCompositeOperation="destination-over"}function Ft(t,e){const i=document.createElement("img");return i.crossOrigin="Anonymous",i.onload=e,i.onerror=()=>{i.src=Ht(t)},i.src=Ht(t),i}function jt(t,e){return Math.round(Math.random()*(e-t)+t)}function Ht(t){const e=t.length;return e>0?t[jt(0,e-1)]:"https://picsum.photos/300/150?image="+jt(0,1084)}function Kt(t,e,i={leading:!0,trailing:!0}){const{leading:r,trailing:s,resultCallback:n}=i;let o=0,a=null;const h=function(...i){return new Promise(((h,l)=>{const u=(new Date).getTime();o||r||(o=u);const c=e-(u-o);if(c<=0){a&&(clearTimeout(a),a=null);const e=t.apply(this,i);return n&&n(e),h(e),void(o=u)}s&&!a&&(a=setTimeout((()=>{a=null,o=r?(new Date).getTime():0;const e=t.apply(this,i);n&&n(e),h(e)}),c))}))};return h.cancel=function(){a&&clearTimeout(a),a=null,o=0},h}function $t(){const t=(0,s.Kh)({x:0,y:0}),e=(0,s.KR)(!1),i=(0,s.KR)(!1),r=(0,s.KR)(0),n=(0,s.KR)([]),o=s=>{e.value||(s instanceof MouseEvent?(t.x=s.clientX,t.y=s.clientY):(t.x=s.changedTouches[0].pageX,t.y=s.changedTouches[0].pageY),i.value=!0,r.value=Date.now())},a=(e,r,s)=>{if(!i.value)return!1;let o=0,a=0;if(r instanceof MouseEvent?(o=r.clientX-t.x,a=r.clientY-t.y):(o=r.changedTouches[0].pageX-t.x,a=r.changedTouches[0].pageY-t.y),o<0||o+38>=e)return!1;s(o),n.value.push(a)},h=(t,e,i)=>{const r=n.value,s=r.reduce(Pt)/r.length,o=r.map((t=>t-s)),a=Math.sqrt(o.map(Ut).reduce(Pt)/r.length),h=parseInt(t);return i=i<=1?1:i>10?10:i,{spliced:Math.abs(h-e)<=i,TuringTest:s!==a}},l=(e,s)=>{if(!i.value)return!1;i.value=!1;const n=e instanceof MouseEvent?e.clientX:e.changedTouches[0].pageX;if(n===t.x)return!1;r.value=Date.now()-r.value,s(r.value)};return{origin:t,success:e,isMouseDown:i,timestamp:r,trail:n,start:o,move:a,end:l,verify:h}}var Gt=(t,e)=>{const i=t.__vccOpts||t;for(const[r,s]of e)i[r]=s;return i};const zt=(0,r.pM)({name:"SlideVerify",props:{l:{type:Number,default:42},r:{type:Number,default:10},w:{type:Number,default:310},h:{type:Number,default:155},sliderText:{type:String,default:"Slide filled right"},accuracy:{type:Number,default:5},show:{type:Boolean,default:!0},imgs:{type:Array,default:()=>[]},interval:{type:Number,default:50},offset:{type:Number,default:0}},emits:["success","again","fail","refresh"],setup(t,{emit:e}){const{imgs:i,l:n,r:o,w:a,h,accuracy:l,interval:u,offset:c}=t,f=(0,s.KR)(!0),g=(0,s.KR)(0),d=(0,s.KR)(0),p=(0,s.Kh)({containerActive:!1,containerSuccess:!1,containerFail:!1}),m=(0,s.Kh)({iconCls:"arrow-right",width:"0",left:"0"}),v=(0,s.KR)(),y=(0,s.KR)(),w=(0,s.KR)(),T=(0,s.KR)();let b;const{success:S,start:E,move:R,end:D,verify:x}=$t(),A=()=>{var t,e;S.value=!1,p.containerActive=!1,p.containerSuccess=!1,p.containerFail=!1,m.iconCls="arrow-right",m.left="0",m.width="0",v.value.style.left="0",null==(t=T.value)||t.clearRect(0,0,a,h),null==(e=y.value)||e.clearRect(0,0,a,h),v.value.width=a,b.src=Ht(i)},L=()=>{A(),e("refresh")};function B(t){m.left=t+"px";let e=(a-40-20)/(a-40)*t;v.value.style.left=e+"px",p.containerActive=!0,m.width=t+"px"}function k(t){const i=v.value.style.left,{spliced:r,TuringTest:s}=x(i,g.value,l);if(r){if(-1===l)return p.containerSuccess=!0,m.iconCls="success",S.value=!0,void e("success",{timestamp:t,left:parseFloat(i)});s?(p.containerSuccess=!0,m.iconCls="success",S.value=!0,e("success",{timestamp:t,left:parseFloat(i)})):(p.containerFail=!0,m.iconCls="fail",e("again"))}else p.containerFail=!0,m.iconCls="fail",e("fail"),setTimeout((()=>{A()}),1e3)}const I=Kt((t=>{R(a,t,B)}),u),C=t=>{D(t,k)};return(0,r.sV)((()=>{var t,e;const r=null==(t=w.value)?void 0:t.getContext("2d"),s=null==(e=v.value)?void 0:e.getContext("2d",{willReadFrequently:!0});T.value=r,y.value=s,b=Ft(i,(()=>{f.value=!1;const t=n+2*o+3;if(c>0){if(!(c>=t+10&&c<=a-(t+10)))throw new Error(`offset must be greater than ${t+10} and less than ${a-(t+10)}`);g.value=c}else g.value=jt(t+10,a-(t+10));
17if(d.value=jt(10+2*o,h-(t+10)),r&&s){qt(r,g.value,d.value,n,o,"fill"),qt(s,g.value,d.value,n,o,"clip"),r.drawImage(b,0,0,a,h),s.drawImage(b,0,0,a,h);const e=d.value-2*o-1,i=s.getImageData(g.value,e,t,t);v.value.width=t,s.putImageData(i,0,e)}})),document.addEventListener("mousemove",I),document.addEventListener("mouseup",C)})),(0,r.xo)((()=>{document.removeEventListener("mousemove",I),document.removeEventListener("mouseup",C)})),{block:v,canvas:w,loadBlock:f,containerCls:p,sliderBox:m,refresh:L,sliderDown:E,touchStartEvent:E,touchMoveEvent:I,touchEndEvent:C}}}),Yt=["width","height"],Zt=["width","height"],Xt={class:"slide-verify-slider-text"};function Wt(t,e,i,s,o,a){return(0,r.uX)(),(0,r.CE)("div",{id:"slideVerify",class:"slide-verify",style:(0,n.Tr)({width:t.w+"px"}),onselectstart:"return false;"},[(0,r.Lk)("div",{class:(0,n.C4)({"slider-verify-loading":t.loadBlock})},null,2),(0,r.Lk)("canvas",{ref:"canvas",width:t.w,height:t.h},null,8,Yt),t.show?((0,r.uX)(),(0,r.CE)("div",{key:0,class:"slide-verify-refresh-icon",onClick:e[0]||(e[0]=(...e)=>t.refresh&&t.refresh(...e))},e[5]||(e[5]=[(0,r.Lk)("i",{class:"iconfont icon-refresh"},null,-1)]))):(0,r.Q3)("",!0),(0,r.Lk)("canvas",{ref:"block",width:t.w,height:t.h,class:"slide-verify-block"},null,8,Zt),(0,r.Lk)("div",{class:(0,n.C4)(["slide-verify-slider",{"container-active":t.containerCls.containerActive,"container-success":t.containerCls.containerSuccess,"container-fail":t.containerCls.containerFail}])},[(0,r.Lk)("div",{class:"slide-verify-slider-mask",style:(0,n.Tr)({width:t.sliderBox.width})},[(0,r.Lk)("div",{class:"slide-verify-slider-mask-item",style:(0,n.Tr)({left:t.sliderBox.left}),onMousedown:e[1]||(e[1]=(...e)=>t.sliderDown&&t.sliderDown(...e)),onTouchstart:e[2]||(e[2]=(...e)=>t.touchStartEvent&&t.touchStartEvent(...e)),onTouchmove:e[3]||(e[3]=(...e)=>t.touchMoveEvent&&t.touchMoveEvent(...e)),onTouchend:e[4]||(e[4]=(...e)=>t.touchEndEvent&&t.touchEndEvent(...e))},[(0,r.Lk)("i",{class:(0,n.C4)(["slide-verify-slider-mask-item-icon","iconfont",`icon-${t.sliderBox.iconCls}`])},null,2)],36)],4),(0,r.Lk)("span",Xt,(0,n.v_)(t.sliderText),1)],2)],4)}var Jt=Gt(zt,[["render",Wt],["__scopeId","data-v-617ae856"]]);const Qt={class:"login-inner"},te=["src"],ee=["src"],ie=["href"],re=["src"],se={class:"login-form"},ne={class:"login-form-item"},oe={class:"login-form-left"},ae=["src"],he=["placeholder"],le=["src"],ue={class:"login-form-item"},ce={class:"login-form-left"},fe=["src"],ge=["type","placeholder"],de=["src"],pe={class:"login-form-item"},me={class:"login-form-left"},ve=["src"],ye=["placeholder"],we=["src"],Te=["src"],be={class:"register-box login-form"},Se={class:"login-bottom"},Ee={class:"f3-box"},Re=["href"],De=["src"],xe=["href"],Ae=["src"],Le=["href"],Be=["src"],ke={class:"instruction"},Ie=["href"],Ce=["href"],Ve={class:"login-inner"},Oe=["src"],Ne=["src"],_e=["href"],Me=["src"],Pe={class:"login-form"},Ue={class:"login-form-item"},qe={class:"login-form-left"},Fe=["src"],je=["placeholder"],He=["src"],Ke={class:"login-form-item"},$e={class:"login-form-left"},Ge=["src"],ze=["type","placeholder"],Ye=["src"],Ze={class:"login-form-item"},Xe={class:"login-form-left"},We=["src"],Je=["type","placeholder"],Qe=["src"],ti={class:"login-form-item"},ei={class:"login-form-left"},ii=["src"],ri=["placeholder"],si=["src"],ni={class:"register-box"},oi={__name:"index",setup(t){const{proxy:e}=(0,r.nI)(),i=e.$Util,a=e.$Storage,h=e.$Element,l=e.$Router,u=e.$CONFIG,c=(0,s.KR)(null),f=(0,s.Kh)({form:{username:"",password:"",captcha:""},label:{username:{rules:[{name:"request",text:msg["jsLang.emailNotBlank"]}],name:"電郵"},password:{rules:[{name:"request",text:msg["jsLang.passwordNotBlank"]}],name:"密碼",showPassword:!1},captcha:{rules:[{name:"request",text:msg["jsLang.codeNotBlank"]}],name:"驗證碼"}},registerForm:{username:"",password:"",vcode:""},registerLabel:{username:{name:"請輸入電郵",rules:[{name:"email",text:msg["jsLang.EmailFail"]}]},password:{name:"請輸入密碼",rules:[{name:"lenLimit",min:6,max:18,text:msg["jsLang.passwordLength"]}],showPassword:!1},passwords:{name:"再次輸入密碼",rules:[{name:"sameValue",key:"password",text:msg["jsLang.passwordInconsistency"]}],showPassword:!1},vcode:{name:"請輸入驗證碼",rules:[{name:"request",text:msg["jsLang.codeNotBlank"]}]}},codeUrl:`${e.$CONFIG.BASE_URL}ucs/api/v1/captchas?${Math.random()}`,lType:"0",documentTitleList:[],isRequest:!1,isRegisterRequest:!1,isVcodeRequest:!1,vcodeText:"獲取",pageHeight:"",sliderToken:"",isCaptchaInited:!1,isSendingCode:!1,isVerifying:!1,sliderText:"向右滑動驗證",sliderAttemptCount:0,sliderKey:Date.now(),slideBgImages:["user/login/slide-bg-1.jpg","user/login/slide-bg-2.jpg","user/login/slide-bg-3.jpg","user/login/slide-bg-4.jpg","user/login/slide-bg-5.jpg"],currentBgImage:""}),g=()=>{const t=Math.floor(Math.random()*f.slideBgImages.length),e=f.slideBgImages[t],i=`${u.BASE_STATIC_URL}${e}?t=${Date.now()}`;return f.currentBgImage="",setTimeout((()=>{f.currentBgImage=i}),0),i},d=async()=>{try{f.isVcodeRequest=!0,g(),await(0,r.dY)();const t=await Vt.generateSliderToken();if(!(t&&0===t.code&&t.data&&t.data.data))throw new Error(t?.message||"獲取token失敗");f.sliderToken=t.data.data,f.sliderKey=Date.now(),f.isCaptchaInited=!0,f.sliderText="向右滑動驗證"}catch(t){console.error("获取验证token失败",t),h.message({message:"獲取驗證token失敗:"+(t.message||"接口返回異常"),type:"error"}),v()}},p=()=>{h.message({message:"滑動位置不准確,請對準缺口滑動",type:"warning",duration:2e3}),setTimeout((()=>{f.sliderText="向右滑動驗證"}),1e3)},m=async t=>{try{f.isVerifying=!0,f.sliderText="驗證中...";let i=[];if(i=Array.isArray(t)?t.map((t=>{const e="object"===typeof t?t.left:t;return Math.round(Number(e)||0)})):"object"===typeof t&&t.left?[Math.round(Number(t.left)||0)]:[],i=i.filter((t=>!isNaN(t)&&t>0)),i.length<5)while(i.length<5)i.push(Math.floor(100*Math.random())+1);let r=!1;try{const t=await Vt.verifySliderTrack({datas:JSON.stringify(i)});r=t&&0===t.code}catch(e){console.error("軌跡驗證接口調用失敗",e),r=!1}let s=!1;if(r)try{const t=await Vt.verifySliderSuccess({token:f.sliderToken});s=t&&0===t.code}catch(e){console.error("verify-slider接口調用失敗",e),s=!1}const n=r&&s;if(n)f.sliderAttemptCount=0,f.sliderText="驗證成功",h.message({message:"驗證成功,正在發送驗證碼...",type:"success"}),setTimeout((()=>{y()}),100);else{f.sliderAttemptCount++,f.sliderText="驗證失敗:軌跡不合法";let t="";t=r?s?"驗證失敗,請重新滑動(請勿快速拖動)":"驗證token失效,請重新驗證":"滑動軌跡驗證失敗,請勻速平穩滑動",h.message({message:t,type:"error",duration:3e3}),f.sliderAttemptCount>=3?(h.message({message:"驗證失敗次數過多,正在重新獲取驗證圖片...",type:"warning"}),await d(),f.sliderAttemptCount=0):(g(),f.sliderKey=Date.now(),setTimeout((()=>{f.sliderText="向右滑動驗證"}),2e3))}}catch(e){console.error("驗證過程出錯",e),h.message({message:"驗證出錯:"+e.message+",請重新滑動",type:"error",duration:3e3}),f.sliderAttemptCount++,f.sliderAttemptCount>=3?(await d(),f.sliderAttemptCount=0):(g(),f.sliderKey=Date.now(),setTimeout((()=>{f.sliderText="向右滑動驗證"}),2e3))}finally{f.isVerifying=!1}},v=async()=>
17{f.isSendingCode=!1,f.isVcodeRequest=!1,f.isVerifying=!1,f.sliderAttemptCount=0,g(),await(0,r.dY)(),f.sliderKey=Date.now();try{const t=await Vt.generateSliderToken();if(!(t&&0===t.code&&t.data&&t.data.data))throw new Error(t?.message||"獲取token失敗");f.sliderToken=t.data.data}catch(t){return console.error("重新生成token失敗",t),void h.message({message:"重新生成驗證token失敗",type:"error"})}f.isCaptchaInited=!0,f.sliderText="向右滑動驗證"},y=async()=>{if(f.sliderToken){if(!f.isSendingCode){f.isSendingCode=!0,f.isVcodeRequest=!0;try{const t=f.registerForm.username,e=await Vt.sendEmailCode({email:t,sliderToken:f.sliderToken});if(e&&0==e.code){h.message({message:"驗證碼已發送至您的郵箱"}),f.isCaptchaInited=!1;let t=60;const e=setInterval((()=>{0==t?(clearInterval(e),f.isVcodeRequest=!1,f.vcodeText="獲取驗證碼",f.isSendingCode=!1,g(),f.sliderKey=Date.now()):(f.vcodeText=t+" 秒",t--)}),1e3)}else{const t=e?e.message||"發送失敗":"請求失敗";h.message({message:t,type:"error"}),v()}}catch(t){console.error("發送驗證碼失敗",t),h.message({message:"驗證碼發送失敗,請重試",type:"error"}),v()}}}else h.message({message:"驗證Token為空,無法發送驗證碼,刷新頁面後重新請求!",type:"error"})},w=async()=>{if(f.isSendingCode||f.isVerifying)return;let t=i.deepCopy({obj:f.registerLabel});delete t.vcode,S({form:f.registerForm,label:t})&&(f.registerForm.username?f.registerForm.password?f.registerForm.password.length<6||f.registerForm.password.length>18?h.message({message:"設置的密碼要求大於等於6位,小於等於18位",type:"error"}):f.registerForm.passwords===f.registerForm.password?(f.isVcodeRequest=!0,await d()):h.message({message:"兩次輸入密碼不一致",type:"error"}):h.message({message:"請輸入密碼",type:"error"}):h.message({message:"不是一個合法的電子郵件地址",type:"error"}))},T=()=>{Bt.A.isLogin()&&(window.location.href=u.BASE_URL)};T();const b=()=>{f.codeUrl=`${e.$CONFIG.BASE_URL}ucs/api/v1/captchas?${Math.random()}`},S=i.verifyForm,E=async()=>{if(S({form:f.form,label:f.label})){if(!f.isRequest){f.isRequest=!0;var t=await Lt.loginIn({data:f.form});if(f.isRequest=!1,i.isNull(t))return h.message({message:t.message,type:"error"}),void b();if(0!=t.code)return h.message({message:msg["jsLang.passwordFail"],type:"error"}),void b();var e=t.data.access_token;if(a.setCookie({key:"access_token",value:e,domain:u.DOMAIN}),!f.isRequest){f.isRequest=!0;t=await Ot.A.getUserProfile();if(f.isRequest=!1,!i.isNull(t)){var r=t.data.username,s=t.data.uuid,n=t.data.deleted;"1"==n?(h.message({message:msg["jsLang.passwordFail"],type:"error"}),b()):(a.setCookie({key:"uuid",value:s,domain:u.DOMAIN}),a.setCookie({key:"username",value:r,domain:u.DOMAIN}),window.location.href=u.BASE_URL)}}}}else b()},R=()=>{let{lType:t}=l.getQuery();"undefined"!==typeof t&&(f.lType=t)};R();const D=async()=>{if(!S({form:f.registerForm,label:f.registerLabel}))return;if(f.isRegisterRequest)return;f.isRegisterRequest=!0;let t=await Vt.email({username:f.registerForm.username,password:f.registerForm.password,vcode:f.registerForm.vcode});f.isRegisterRequest=!1,i.isNull(t)?h.message({message:msg["jsLang.registerFail"],type:"error"}):0==t.code?(h.message({message:msg["jsLang.registerSuccess"]}),f.lType="0"):h.message({message:t.message,type:"error"})},x=()=>{window.innerWidth>767||(f.pageHeight=window.innerHeight+"px")};x();const A=()=>{let t=l.info();f.documentTitleList.push(t.currentRoute.value.meta.title),f.documentTitleList.push("註冊")};A();const L=()=>{(i.isWeixin()||i.isIos()||i.isAndroid())&&document.querySelector(".google-login")?.style.setProperty("display","none")};return(0,r.sV)((()=>{L()})),(0,r.wB)((()=>f.lType),((t,e)=>{document.title=f.documentTitleList[t]}),{immediate:!0}),(t,e)=>((0,r.uX)(),(0,r.Wv)(Nt.A,{onRefresh:(0,s.R1)(_t.A).pullDownRefresh},{default:(0,r.k6)((()=>[(0,r.Lk)("div",{class:"login",style:(0,n.Tr)(""!==f.pageHeight?"height:"+f.pageHeight:"")},[(0,r.bo)((0,r.Lk)("div",Qt,[(0,r.Lk)("img",{class:"login-inner-bg1",src:(0,s.R1)(u).BASE_STATIC_URL+"user/login/login-inner-bg1.png"},null,8,te),(0,r.Lk)("img",{class:"login-inner-bg2",src:(0,s.R1)(u).BASE_STATIC_URL+"user/login/login-inner-bg2.png"},null,8,ee),(0,r.Lk)("a",{class:"logo-link",href:(0,s.R1)(u).BASE_URL},[(0,r.Lk)("img",{class:"logo",src:(0,s.R1)(u).BASE_STATIC_URL+"user/login/logo.png"},null,8,re)],8,ie),(0,r.Lk)("div",se,[(0,r.Lk)("div",ne,[(0,r.Lk)("div",oe,[(0,r.Lk)("img",{class:"login-form-left-icon1 wap-reload-img",src:(0,s.R1)(u).BASE_STATIC_URL+"user/login/icon-email.png"},null,8,ae),(0,r.bo)((0,r.Lk)("input",{class:"login-form-left-input",type:"text","onUpdate:modelValue":e[0]||(e[0]=t=>f.form.username=t),placeholder:f.label.username.name},null,8,he),[[o.Jo,f.form.username]]),(0,r.Lk)("img",{class:"login-form-left-icon2 wap-reload-img",src:(0,s.R1)(u).BASE_STATIC_URL+"user/login/icon-delete.png",onClick:e[1]||(e[1]=t=>f.form.username="")},null,8,le)])]),(0,r.Lk)("div",ue,[(0,r.Lk)("div",ce,[(0,r.Lk)("img",{class:"login-form-left-icon1 wap-reload-img",src:(0,s.R1)(u).BASE_STATIC_URL+"user/login/icon-password.png"},null,8,fe),(0,r.bo)((0,r.Lk)("input",{class:"login-form-left-input",type:f.label.password.showPassword?"text":"password","onUpdate:modelValue":e[2]||(e[2]=t=>f.form.password=t),placeholder:f.label.password.name},null,8,ge),[[o.hp,f.form.password]]),(0,r.Lk)("img",{class:"login-form-left-icon2 login-form-left-icon3 wap-reload-img",src:(0,s.R1)(u).BASE_STATIC_URL+"user/login/icon-password-"+(f.label.password.showPassword?"hide":"show")+".png",onClick:e[3]||(e[3]=t=>f.label.password.showPassword=!f.label.password.showPassword)},null,8,de)])]),(0,r.Lk)("div",pe,[(0,r.Lk)("div",me,[(0,r.Lk)("img",{class:"login-form-left-icon1 wap-reload-img",src:(0,s.R1)(u).BASE_STATIC_URL+"user/login/icon-code.png"},null,8,ve),(0,r.bo)((0,r.Lk)("input",{class:"login-form-left-input",type:"text","onUpdate:modelValue":e[4]||(e[4]=t=>f.form.captcha=t),placeholder:f.label.captcha.name},null,8,ye),[[o.Jo,f.form.captcha]]),(0,r.Lk)("img",{class:"login-form-left-icon2 wap-reload-img",src:(0,s.R1)(u).BASE_STATIC_URL+"user/login/icon-delete.png",onClick:e[5]||(e[5]=t=>f.form.captcha="")},null,8,we)]),(0,r.bo)((0,r.Lk)("img",{class:"login-form-right",src:f.codeUrl,onClick:e[6]||(e[6]=t=>b())},null,8,Te),[[o.aG,f.codeUrl]])])]),(0,r.Lk)("div",{class:"login-button",onClick:e[7]||(e[7]=t=>E())},"登入"),(0,r.Lk)("div",be,[(0,r.Lk)("div",{class:"register",onClick:e[8]||(e[8]=t=>f.lType="1")},"立即註冊"),(0,r.Lk)("div",{class:"register",onClick:e[9]||(e[9]=t=>(0,s.R1)(l).push({path:"/resetPassword"}))},"忘記密碼")]),(0,r.Lk)("div",Se,[(0,r.Lk)("div",Ee,[(0,r.Lk)("a",{class:"f3-box-unit google-login",href:(0,s.R1)(u).BASE_URL+"ucs/third/render/google"},[(0,r.Lk)("img",{src:(0,s.R1)(u).BASE_STATIC_URL+"user/login/google.png"},null,8,De)],8,Re),(0,r.Lk)("a",{class:"f3-box-unit",href:(0,s.R1)(u).BASE_URL+"ucs/third/render/facebook"},[(0,r.Lk)("img",{src:(0,s.R1)(u).BASE_STATIC_URL+"user/login/facebook.png"},null,8,Ae)],8,xe),(0,r.Lk)("a",{class:"f3-box-unit wx-login",href:(0,s.R1)(u).BASE_URL+"ucs/third/render/wechat_open"},[(0,r.Lk)("img",{src:(0,s.R1)(u).BASE_STATIC_URL+"user/login/weixin.png"},null,8,Be)],8,Le)]),(0,r.Lk)("div",ke,[(0,r.eW)(" 登入即代表您已同意我們的"),(0,r.Lk)("a",{class:"instruction-link",href:(0,s.R1)(u).BASE_URL+"agreement/privacy_statement-dgwh_tkww.html"},"服務協議",8,Ie),(0,r.eW)("和"),(0,r.Lk)("a",{class:"instruction-link",href:(0,s.R1)(u).BASE_URL+"agreement/privacy_statement-dgwh_tkww.html"},"隱私政策",8,Ce)])])],512),[[o.aG,"0"===f.lType]]),(0,r.bo)((0,r.Lk)("div",Ve,[(0,r.Lk)("img",{class:"login-inner-bg1",src:(0,s.R1)(u).BASE_STATIC_URL+"user/login/login-inner-bg1.png"},null,8,Oe),(0,r.Lk)("img",{class:"login-inner-bg2",src:(0,s.R1)(u).BASE_STATIC_URL+"user/login/login-inner-bg2.png"},null,8,Ne),(0,r.Lk)("a",{class:"logo-link",href:(0,s.R1)(u).BASE_URL},[(0,r.Lk)("img",{class:"logo",src:(0,s.R1)(u).BASE_STATIC_URL+"user/login/logo.png"},null,8,Me)],8,_e),(0,r.Lk)("div",Pe,[(0,r.Lk)("div",Ue,[(0,r.Lk)("div",qe,[(0,r.Lk)("img",{class:"login-form-left-icon1 wap-reload-img",src:(0,s.R1)(u).BASE_STATIC_URL+"user/login/icon-email.png"},null,8,Fe),(0,r.bo)((0,r.Lk)("input",{class:"login-form-left-input",type:"text","onUpdate:modelValue":e[10]||(e[10]=t=>f.registerForm.username=t),placeholder:f.registerLabel.username.name},null,8,je),[[o.Jo,f.registerForm.username]]),(0,r.Lk)("img",{class:"login-form-left-icon2 wap-reload-img",src:(0,s.R1)(u).BASE_STATIC_URL+"user/login/icon-delete.png",onClick:e[11]||(e[11]=t=>f.registerForm.username="")},null,8,He)])]),(0,r.Lk)("div",Ke,[(0,r.Lk)("div",$e,[(0,r.Lk)("img",{class:"login-form-left-icon1 wap-reload-img",src:(0,s.R1)(u).BASE_STATIC_URL+"user/login/icon-password.png"},null,8,Ge),(0,r.bo)((0,r.Lk)("input",{class:"login-form-left-input",type:f.registerLabel.password.showPassword?"text":"password","onUpdate:modelValue":e[12]||(e[12]=t=>f.registerForm.password=t),placeholder:f.registerLabel.password.name},null,8,ze),[[o.hp,f.registerForm.password]]),(0,r.Lk)("img",{class:"login-form-left-icon2 login-form-left-icon3 wap-reload-img",src:(0,s.R1)(u).BASE_STATIC_URL+"user/login/icon-password-"+(f.registerLabel.password.showPassword?"hide":"show")+".png",onClick:e[13]||(e[13]=t=>f.registerLabel.password.showPassword=!f.registerLabel.password.showPassword)},null,8,Ye)])]),(0,r.Lk)("div",Ze,[(0,r.Lk)("div",Xe,[(0,r.Lk)("img",{class:"login-form-left-icon1 wap-reload-img",src:(0,s.R1)(u).BASE_STATIC_URL+"user/login/icon-password.png"},null,8,We),(0,r.bo)((0,r.Lk)("input",{class:"login-form-left-input",type:f.registerLabel.passwords.showPassword?"text":"password","onUpdate:modelValue":e[14]||(e[14]=t=>f.registerForm.passwords=t),placeholder:f.registerLabel.passwords.name},null,8,Je),[[o.hp,f.registerForm.passwords]]),(0,r.Lk)("img",{class:"login-form-left-icon2 login-form-left-icon3 wap-reload-img",src:(0,s.R1)(u).BASE_STATIC_URL+"user/login/icon-password-"+(f.registerLabel.passwords.showPassword?"hide":"show")+".png",onClick:e[15]||(e[15]=t=>f.registerLabel.passwords.showPassword=!f.registerLabel.passwords.showPassword)},null,8,Qe)])]),(0,r.Lk)("div",ti,[(0,r.Lk)("div",ei,[(0,r.Lk)("img",{class:"login-form-left-icon1 wap-reload-img",src:(0,s.R1)(u).BASE_STATIC_URL+"user/login/icon-code.png"},null,8,ii),(0,r.bo)((0,r.Lk)("input",{class:"login-form-left-input",type:"text","onUpdate:modelValue":e[16]||(e[16]=t=>f.registerForm.vcode=t),placeholder:f.registerLabel.vcode.name},null,8,ri),[[o.Jo,f.registerForm.vcode]]),(0,r.Lk)("img",{class:"login-form-left-icon2 wap-reload-img",src:(0,s.R1)(u).BASE_STATIC_URL+"user/login/icon-delete.png",onClick:e[17]||(e[17]=t=>f.registerForm.vcode="")},null,8,si)]),(0,r.Lk)("div",{class:(0,n.C4)("login-form-right login-form-vcode "+(f.
17isVcodeRequest?"login-form-vcode-defaule":"")),onClick:e[18]||(e[18]=t=>w())},(0,n.v_)(f.vcodeText),3)]),(0,r.bo)(((0,r.uX)(),(0,r.Wv)((0,s.R1)(Jt),{ref_key:"sliderRef",ref:c,key:f.sliderKey,width:260,height:36,sliderText:f.sliderText,captchaType:"blockPuzzle",imgSize:{width:"300px",height:"150px"},imgUrl:f.currentBgImage+"?_="+Date.now(),imgs:f.slideBgImages.map((t=>(0,s.R1)(u).BASE_STATIC_URL+t+"?_="+Date.now())),onSuccess:m,onFail:p,style:{"margin-top":"15px"}},null,8,["sliderText","imgUrl","imgs"])),[[o.aG,f.isCaptchaInited]])]),(0,r.Lk)("div",{class:"login-button",onClick:e[19]||(e[19]=t=>D())},"註冊"),(0,r.Lk)("div",ni,[(0,r.Lk)("div",{class:"register",onClick:e[20]||(e[20]=t=>f.lType="0")},"直接登入")])],512),[[o.aG,"1"===f.lType]])],4)])),_:1},8,["onRefresh"]))}};var ai=i(6262);const hi=(0,ai.A)(oi,[["__scopeId","data-v-621ae25c"]]),li=hi}}]);
18//# sourceMappingURL=595.8e64161e.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.