15 lines
75 KiB
JavaScript
15 lines
75 KiB
JavaScript
import{j as Kr,k as N,l as yr,_ as ye,m as me,r as L,n as d0,q as mr,s as Xr,v as Br,h as $,c as x0,x as s0,a as V,y as Be,z as we,e as Z,w as Y,A as E0,t as v0,B as _0,T as Vr,C as wr,D as kr,F as Gr,G as Mr,H as jr,i as _e,I as H0,J as Zr,d as Yr,K as Qr,L as $r,M as Le,N as e0,O as Jr,P as et,Q as rt,u as n0,R as Ie,S as P0,f as tt,U as at,V as nt,W as it,X as ot,E as st,Y as xt,Z as ct}from"./index-4dcc0234.js";/* empty css *//* empty css */import"./el-form-item-4ed993c7.js";/* empty css */import{_ as ft}from"./index.vue_vue_type_script_setup_true_lang-9285296e.js";/* empty css *//* empty css */import{g as vt}from"./sys-8ead7f22.js";/* empty css */var be={},lt={get exports(){return be},set exports(u){be=u}};function ut(u){throw new Error('Could not dynamically require "'+u+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var q0={},dt={get exports(){return q0},set exports(u){q0=u}};const ht={},pt=Object.freeze(Object.defineProperty({__proto__:null,default:ht},Symbol.toStringTag,{value:"Module"})),gt=Kr(pt);var Ne;function X(){return Ne||(Ne=1,function(u,q){(function(f,e){u.exports=e()})(N,function(){var f=f||function(e,_){var m;if(typeof window<"u"&&window.crypto&&(m=window.crypto),typeof self<"u"&&self.crypto&&(m=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(m=globalThis.crypto),!m&&typeof window<"u"&&window.msCrypto&&(m=window.msCrypto),!m&&typeof N<"u"&&N.crypto&&(m=N.crypto),!m&&typeof ut=="function")try{m=gt}catch{}var S=function(){if(m){if(typeof m.getRandomValues=="function")try{return m.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof m.randomBytes=="function")try{return m.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},p=Object.create||function(){function i(){}return function(n){var v;return i.prototype=n,v=new i,i.prototype=null,v}}(),d={},r=d.lib={},a=r.Base=function(){return{extend:function(i){var n=p(this);return i&&n.mixIn(i),(!n.hasOwnProperty("init")||this.init===n.init)&&(n.init=function(){n.$super.init.apply(this,arguments)}),n.init.prototype=n,n.$super=this,n},create:function(){var i=this.extend();return i.init.apply(i,arguments),i},init:function(){},mixIn:function(i){for(var n in i)i.hasOwnProperty(n)&&(this[n]=i[n]);i.hasOwnProperty("toString")&&(this.toString=i.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),c=r.WordArray=a.extend({init:function(i,n){i=this.words=i||[],n!=_?this.sigBytes=n:this.sigBytes=i.length*4},toString:function(i){return(i||s).stringify(this)},concat:function(i){var n=this.words,v=i.words,B=this.sigBytes,y=i.sigBytes;if(this.clamp(),B%4)for(var w=0;w<y;w++){var C=v[w>>>2]>>>24-w%4*8&255;n[B+w>>>2]|=C<<24-(B+w)%4*8}else for(var R=0;R<y;R+=4)n[B+R>>>2]=v[R>>>2];return this.sigBytes+=y,this},clamp:function(){var i=this.words,n=this.sigBytes;i[n>>>2]&=4294967295<<32-n%4*8,i.length=e.ceil(n/4)},clone:function(){var i=a.clone.call(this);return i.words=this.words.slice(0),i},random:function(i){for(var n=[],v=0;v<i;v+=4)n.push(S());return new c.init(n,i)}}),t=d.enc={},s=t.Hex={stringify:function(i){for(var n=i.words,v=i.sigBytes,B=[],y=0;y<v;y++){var w=n[y>>>2]>>>24-y%4*8&255;B.push((w>>>4).toString(16)),B.push((w&15).toString(16))}return B.join("")},parse:function(i){for(var n=i.length,v=[],B=0;B<n;B+=2)v[B>>>3]|=parseInt(i.substr(B,2),16)<<24-B%8*4;return new c.init(v,n/2)}},o=t.Latin1={stringify:function(i){for(var n=i.words,v=i.sigBytes,B=[],y=0;y<v;y++){var w=n[y>>>2]>>>24-y%4*8&255;B.push(String.fromCharCode(w))}return B.join("")},parse:function(i){for(var n=i.length,v=[],B=0;B<n;B++)v[B>>>2]|=(i.charCodeAt(B)&255)<<24-B%4*8;return new c.init(v,n)}},x=t.Utf8={stringify:function(i){try{return decodeURIComponent(escape(o.stringify(i)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(i){return o.parse(unescape(encodeURIComponent(i)))}},l=r.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(i){typeof i=="string"&&(i=x.parse(i)),this._data.concat(i),this._nDataBytes+=i.sigBytes},_process:function(i){var n,v=this._data,B=v.words,y=v.sigBytes,w=this.blockSize,C=w*4,R=y/C;i?R=e.ceil(R):R=e.max((R|0)-this._minBufferSize,0);var h=R*w,g=e.min(h*4,y);if(h){for(var H=0;H<h;H+=w)this._doProcessBlock(B,H);n=B.splice(0,h),v.sigBytes-=g}return new c.init(n,g)},clone:function(){var i=a.clone.call(this);return i._data=this._data.clone(),i},_minBufferSize:0});r.Hasher=l.extend({cfg:a.extend(),init:function(i){this.cfg=this.cfg.extend(i),this.reset()},reset:function(){l.reset.call(this),this._doReset()},update:function(i){return this._append(i),this._process(),this},finalize:function(i){i&&this._append(i);var n=this._doFinalize();return n},blockSize:16,_createHelper:function(i){return function(n,v){return new i.init(v).finalize(n)}},_createHmacHelper:function(i){return function(n,v){return new b.HMAC.init(i,v).finalize(n)}}});var b=d.algo={};return d}(Math);return f})}(dt)),q0}var F0={},_t={get exports(){return F0},set exports(u){F0=u}},Oe;function he(){return Oe||(Oe=1,function(u,q){(function(f,e){u.exports=e(X())})(N,function(f){return function(e){var _=f,m=_.lib,S=m.Base,p=m.WordArray,d=_.x64={};d.Word=S.extend({init:function(r,a){this.high=r,this.low=a}}),d.WordArray=S.extend({init:function(r,a){r=this.words=r||[],a!=e?this.sigBytes=a:this.sigBytes=r.length*8},toX32:function(){for(var r=this.words,a=r.length,c=[],t=0;t<a;t++){var s=r[t];c.push(s.high),c.push(s.low)}return p.create(c,this.sigBytes)},clone:function(){for(var r=S.clone.call(this),a=r.words=this.words.slice(0),c=a.length,t=0;t<c;t++)a[t]=a[t].clone();return r}})}(),f})}(_t)),F0}var D0={},bt={get exports(){return D0},set exports(u){D0=u}},Ue;function yt(){return Ue||(Ue=1,function(u,q){(function(f,e){u.exports=e(X())})(N,function(f){return function(){if(typeof ArrayBuffer=="function"){var e=f,_=e.lib,m=_.WordArray,S=m.init,p=m.init=function(d){if(d instanceof ArrayBuffer&&(d=new Uint8Array(d)),(d instanceof Int8Array||typeof Uint8ClampedArray<"u"&&d instanceof Uint8ClampedArray||d instanceof Int16Array||d instanceof Uint16Array||d instanceof Int32Array||d instanceof Uint32Array||d instanceof Float32Array||d instanceof Float64Array)&&(d=new Uint8Array(d.buffer,d.byteOffset,d.byteLength)),d instanceof Uint8Array){for(var r=d.byteLength,a=[],c=0;c<r;c++)a[c>>>2]|=d[c]<<24-c%4*8;S.call(this,a,r)}else S.apply(this,arguments)};p.prototype=m}}(),f.lib.WordArray})}(bt)),D0}var T0={},mt={get exports(){return T0},set exports(u){T0=u}},Ke;function Bt(){return Ke||(Ke=1,function(u,q){(function(f,e){u.exports=e(X())})(N,function(f){return function(){var e=f,_=e.lib,m=_.WordArray,S=e.enc;S.Utf16=S.Utf16BE={stringify:function(d){for(var r=d.words,a=d.sigBytes,c=[],t=0;t<a;t+=2){var s=r[t>>>2]>>>16-t%4*8&65535;c.push(String.fromCharCode(s))}return c.join("")},parse:function(d){for(var r=d.length,a=[],c=0;c<r;c++)a[c>>>1]|=d.charCodeAt(c)<<16-c%2*16;return m.create(a,r*2)}},S.Utf16LE={stringify:function(d){for(var r=d.words,a=d.sigBytes,c=[],t=0;t<a;t+=2){var s=p(r[t>>>2]>>>16-t%4*8&65535);c.push(String.fromCharCode(s))}return c.join("")},parse:function(d){for(var r=d.length,a=[],c=0;c<r;c++)a[c>>>1]|=p(d.charCodeAt(c)<<16-c%2*16);return m.create(a,r*2)}};function p(d){return d<<8&4278255360|d>>>8&16711935}}(),f.enc.Utf16})}(mt)),T0}var L0={},wt={get exports(){return L0},set exports(u){L0=u}},Xe;function b0(){return Xe||(Xe=1,function(u,q){(function(f,e){u.exports=e(X())})(N,function(f){return function(){var e=f,_=e.lib,m=_.WordArray,S=e.enc;S.Base64={stringify:function(d){var r=d.words,a=d.sigBytes,c=this._map;d.clamp();for(var t=[],s=0;s<a;s+=3)for(var o=r[s>>>2]>>>24-s%4*8&255,x=r[s+1>>>2]>>>24-(s+1)%4*8&255,l=r[s+2>>>2]>>>24-(s+2)%4*8&255,b=o<<16|x<<8|l,i=0;i<4&&s+i*.75<a;i++)t.push(c.charAt(b>>>6*(3-i)&63));var n=c.charAt(64);if(n)for(;t.length%4;)t.push(n);return t.join("")},parse:function(d){var r=d.length,a=this._map,c=this._reverseMap;if(!c){c=this._reverseMap=[];for(var t=0;t<a.length;t++)c[a.charCodeAt(t)]=t}var s=a.charAt(64);if(s){var o=d.indexOf(s);o!==-1&&(r=o)}return p(d,r,c)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function p(d,r,a){for(var c=[],t=0,s=0;s<r;s++)if(s%4){var o=a[d.charCodeAt(s-1)]<<s%4*2,x=a[d.charCodeAt(s)]>>>6-s%4*2,l=o|x;c[t>>>2]|=l<<24-t%4*8,t++}return m.create(c,t)}}(),f.enc.Base64})}(wt)),L0}var I0={},kt={get exports(){return I0},set exports(u){I0=u}},Ve;function Ct(){return Ve||(Ve=1,function(u,q){(function(f,e){u.exports=e(X())})(N,function(f){return function(){var e=f,_=e.lib,m=_.WordArray,S=e.enc;S.Base64url={stringify:function(d,r=!0){var a=d.words,c=d.sigBytes,t=r?this._safe_map:this._map;d.clamp();for(var s=[],o=0;o<c;o+=3)for(var x=a[o>>>2]>>>24-o%4*8&255,l=a[o+1>>>2]>>>24-(o+1)%4*8&255,b=a[o+2>>>2]>>>24-(o+2)%4*8&255,i=x<<16|l<<8|b,n=0;n<4&&o+n*.75<c;n++)s.push(t.charAt(i>>>6*(3-n)&63));var v=t.charAt(64);if(v)for(;s.length%4;)s.push(v);return s.join("")},parse:function(d,r=!0){var a=d.length,c=r?this._safe_map:this._map,t=this._reverseMap;if(!t){t=this._reverseMap=[];for(var s=0;s<c.length;s++)t[c.charCodeAt(s)]=s}var o=c.charAt(64);if(o){var x=d.indexOf(o);x!==-1&&(a=x)}return p(d,a,t)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function p(d,r,a){for(var c=[],t=0,s=0;s<r;s++)if(s%4){var o=a[d.charCodeAt(s-1)]<<s%4*2,x=a[d.charCodeAt(s)]>>>6-s%4*2,l=o|x;c[t>>>2]|=l<<24-t%4*8,t++}return m.create(c,t)}}(),f.enc.Base64url})}(kt)),I0}var N0={},St={get exports(){return N0},set exports(u){N0=u}},Ge;function y0(){return Ge||(Ge=1,function(u,q){(function(f,e){u.exports=e(X())})(N,function(f){return function(e){var _=f,m=_.lib,S=m.WordArray,p=m.Hasher,d=_.algo,r=[];(function(){for(var x=0;x<64;x++)r[x]=e.abs(e.sin(x+1))*4294967296|0})();var a=d.MD5=p.extend({_doReset:function(){this._hash=new S.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(x,l){for(var b=0;b<16;b++){var i=l+b,n=x[i];x[i]=(n<<8|n>>>24)&16711935|(n<<24|n>>>8)&4278255360}var v=this._hash.words,B=x[l+0],y=x[l+1],w=x[l+2],C=x[l+3],R=x[l+4],h=x[l+5],g=x[l+6],H=x[l+7],k=x[l+8],D=x[l+9],F=x[l+10],T=x[l+11],O=x[l+12],I=x[l+13],U=x[l+14],K=x[l+15],z=v[0],A=v[1],W=v[2],E=v[3];z=c(z,A,W,E,B,7,r[0]),E=c(E,z,A,W,y,12,r[1]),W=c(W,E,z,A,w,17,r[2]),A=c(A,W,E,z,C,22,r[3]),z=c(z,A,W,E,R,7,r[4]),E=c(E,z,A,W,h,12,r[5]),W=c(W,E,z,A,g,17,r[6]),A=c(A,W,E,z,H,22,r[7]),z=c(z,A,W,E,k,7,r[8]),E=c(E,z,A,W,D,12,r[9]),W=c(W,E,z,A,F,17,r[10]),A=c(A,W,E,z,T,22,r[11]),z=c(z,A,W,E,O,7,r[12]),E=c(E,z,A,W,I,12,r[13]),W=c(W,E,z,A,U,17,r[14]),A=c(A,W,E,z,K,22,r[15]),z=t(z,A,W,E,y,5,r[16]),E=t(E,z,A,W,g,9,r[17]),W=t(W,E,z,A,T,14,r[18]),A=t(A,W,E,z,B,20,r[19]),z=t(z,A,W,E,h,5,r[20]),E=t(E,z,A,W,F,9,r[21]),W=t(W,E,z,A,K,14,r[22]),A=t(A,W,E,z,R,20,r[23]),z=t(z,A,W,E,D,5,r[24]),E=t(E,z,A,W,U,9,r[25]),W=t(W,E,z,A,C,14,r[26]),A=t(A,W,E,z,k,20,r[27]),z=t(z,A,W,E,I,5,r[28]),E=t(E,z,A,W,w,9,r[29]),W=t(W,E,z,A,H,14,r[30]),A=t(A,W,E,z,O,20,r[31]),z=s(z,A,W,E,h,4,r[32]),E=s(E,z,A,W,k,11,r[33]),W=s(W,E,z,A,T,16,r[34]),A=s(A,W,E,z,U,23,r[35]),z=s(z,A,W,E,y,4,r[36]),E=s(E,z,A,W,R,11,r[37]),W=s(W,E,z,A,H,16,r[38]),A=s(A,W,E,z,F,23,r[39]),z=s(z,A,W,E,I,4,r[40]),E=s(E,z,A,W,B,11,r[41]),W=s(W,E,z,A,C,16,r[42]),A=s(A,W,E,z,g,23,r[43]),z=s(z,A,W,E,D,4,r[44]),E=s(E,z,A,W,O,11,r[45]),W=s(W,E,z,A,K,16,r[46]),A=s(A,W,E,z,w,23,r[47]),z=o(z,A,W,E,B,6,r[48]),E=o(E,z,A,W,H,10,r[49]),W=o(W,E,z,A,U,15,r[50]),A=o(A,W,E,z,h,21,r[51]),z=o(z,A,W,E,O,6,r[52]),E=o(E,z,A,W,C,10,r[53]),W=o(W,E,z,A,F,15,r[54]),A=o(A,W,E,z,y,21,r[55]),z=o(z,A,W,E,k,6,r[56]),E=o(E,z,A,W,K,10,r[57]),W=o(W,E,z,A,g,15,r[58]),A=o(A,W,E,z,I,21,r[59]),z=o(z,A,W,E,R,6,r[60]),E=o(E,z,A,W,T,10,r[61]),W=o(W,E,z,A,w,15,r[62]),A=o(A,W,E,z,D,21,r[63]),v[0]=v[0]+z|0,v[1]=v[1]+A|0,v[2]=v[2]+W|0,v[3]=v[3]+E|0},_doFinalize:function(){var x=this._data,l=x.words,b=this._nDataBytes*8,i=x.sigBytes*8;l[i>>>5]|=128<<24-i%32;var n=e.floor(b/4294967296),v=b;l[(i+64>>>9<<4)+15]=(n<<8|n>>>24)&16711935|(n<<24|n>>>8)&4278255360,l[(i+64>>>9<<4)+14]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,x.sigBytes=(l.length+1)*4,this._process();for(var B=this._hash,y=B.words,w=0;w<4;w++){var C=y[w];y[w]=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360}return B},clone:function(){var x=p.clone.call(this);return x._hash=this._hash.clone(),x}});function c(x,l,b,i,n,v,B){var y=x+(l&b|~l&i)+n+B;return(y<<v|y>>>32-v)+l}function t(x,l,b,i,n,v,B){var y=x+(l&i|b&~i)+n+B;return(y<<v|y>>>32-v)+l}function s(x,l,b,i,n,v,B){var y=x+(l^b^i)+n+B;return(y<<v|y>>>32-v)+l}function o(x,l,b,i,n,v,B){var y=x+(b^(l|~i))+n+B;return(y<<v|y>>>32-v)+l}_.MD5=p._createHelper(a),_.HmacMD5=p._createHmacHelper(a)}(Math),f.MD5})}(St)),N0}var O0={},zt={get exports(){return O0},set exports(u){O0=u}},Me;function ke(){return Me||(Me=1,function(u,q){(function(f,e){u.exports=e(X())})(N,function(f){return function(){var e=f,_=e.lib,m=_.WordArray,S=_.Hasher,p=e.algo,d=[],r=p.SHA1=S.extend({_doReset:function(){this._hash=new m.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(a,c){for(var t=this._hash.words,s=t[0],o=t[1],x=t[2],l=t[3],b=t[4],i=0;i<80;i++){if(i<16)d[i]=a[c+i]|0;else{var n=d[i-3]^d[i-8]^d[i-14]^d[i-16];d[i]=n<<1|n>>>31}var v=(s<<5|s>>>27)+b+d[i];i<20?v+=(o&x|~o&l)+1518500249:i<40?v+=(o^x^l)+1859775393:i<60?v+=(o&x|o&l|x&l)-1894007588:v+=(o^x^l)-899497514,b=l,l=x,x=o<<30|o>>>2,o=s,s=v}t[0]=t[0]+s|0,t[1]=t[1]+o|0,t[2]=t[2]+x|0,t[3]=t[3]+l|0,t[4]=t[4]+b|0},_doFinalize:function(){var a=this._data,c=a.words,t=this._nDataBytes*8,s=a.sigBytes*8;return c[s>>>5]|=128<<24-s%32,c[(s+64>>>9<<4)+14]=Math.floor(t/4294967296),c[(s+64>>>9<<4)+15]=t,a.sigBytes=c.length*4,this._process(),this._hash},clone:function(){var a=S.clone.call(this);return a._hash=this._hash.clone(),a}});e.SHA1=S._createHelper(r),e.HmacSHA1=S._createHmacHelper(r)}(),f.SHA1})}(zt)),O0}var U0={},Ht={get exports(){return U0},set exports(u){U0=u}},je;function Cr(){return je||(je=1,function(u,q){(function(f,e){u.exports=e(X())})(N,function(f){return function(e){var _=f,m=_.lib,S=m.WordArray,p=m.Hasher,d=_.algo,r=[],a=[];(function(){function s(b){for(var i=e.sqrt(b),n=2;n<=i;n++)if(!(b%n))return!1;return!0}function o(b){return(b-(b|0))*4294967296|0}for(var x=2,l=0;l<64;)s(x)&&(l<8&&(r[l]=o(e.pow(x,1/2))),a[l]=o(e.pow(x,1/3)),l++),x++})();var c=[],t=d.SHA256=p.extend({_doReset:function(){this._hash=new S.init(r.slice(0))},_doProcessBlock:function(s,o){for(var x=this._hash.words,l=x[0],b=x[1],i=x[2],n=x[3],v=x[4],B=x[5],y=x[6],w=x[7],C=0;C<64;C++){if(C<16)c[C]=s[o+C]|0;else{var R=c[C-15],h=(R<<25|R>>>7)^(R<<14|R>>>18)^R>>>3,g=c[C-2],H=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;c[C]=h+c[C-7]+H+c[C-16]}var k=v&B^~v&y,D=l&b^l&i^b&i,F=(l<<30|l>>>2)^(l<<19|l>>>13)^(l<<10|l>>>22),T=(v<<26|v>>>6)^(v<<21|v>>>11)^(v<<7|v>>>25),O=w+T+k+a[C]+c[C],I=F+D;w=y,y=B,B=v,v=n+O|0,n=i,i=b,b=l,l=O+I|0}x[0]=x[0]+l|0,x[1]=x[1]+b|0,x[2]=x[2]+i|0,x[3]=x[3]+n|0,x[4]=x[4]+v|0,x[5]=x[5]+B|0,x[6]=x[6]+y|0,x[7]=x[7]+w|0},_doFinalize:function(){var s=this._data,o=s.words,x=this._nDataBytes*8,l=s.sigBytes*8;return o[l>>>5]|=128<<24-l%32,o[(l+64>>>9<<4)+14]=e.floor(x/4294967296),o[(l+64>>>9<<4)+15]=x,s.sigBytes=o.length*4,this._process(),this._hash},clone:function(){var s=p.clone.call(this);return s._hash=this._hash.clone(),s}});_.SHA256=p._createHelper(t),_.HmacSHA256=p._createHmacHelper(t)}(Math),f.SHA256})}(Ht)),U0}var K0={},Et={get exports(){return K0},set exports(u){K0=u}},Ze;function At(){return Ze||(Ze=1,function(u,q){(function(f,e,_){u.exports=e(X(),Cr())})(N,function(f){return function(){var e=f,_=e.lib,m=_.WordArray,S=e.algo,p=S.SHA256,d=S.SHA224=p.extend({_doReset:function(){this._hash=new m.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var r=p._doFinalize.call(this);return r.sigBytes-=4,r}});e.SHA224=p._createHelper(d),e.HmacSHA224=p._createHmacHelper(d)}(),f.SHA224})}(Et)),K0}var X0={},Rt={get exports(){return X0},set exports(u){X0=u}},Ye;function Sr(){return Ye||(Ye=1,function(u,q){(function(f,e,_){u.exports=e(X(),he())})(N,function(f){return function(){var e=f,_=e.lib,m=_.Hasher,S=e.x64,p=S.Word,d=S.WordArray,r=e.algo;function a(){return p.create.apply(p,arguments)}var c=[a(1116352408,3609767458),a(1899447441,602891725),a(3049323471,3964484399),a(3921009573,2173295548),a(961987163,4081628472),a(1508970993,3053834265),a(2453635748,2937671579),a(2870763221,3664609560),a(3624381080,2734883394),a(310598401,1164996542),a(607225278,1323610764),a(1426881987,3590304994),a(1925078388,4068182383),a(2162078206,991336113),a(2614888103,633803317),a(3248222580,3479774868),a(3835390401,2666613458),a(4022224774,944711139),a(264347078,2341262773),a(604807628,2007800933),a(770255983,1495990901),a(1249150122,1856431235),a(1555081692,3175218132),a(1996064986,2198950837),a(2554220882,3999719339),a(2821834349,766784016),a(2952996808,2566594879),a(3210313671,3203337956),a(3336571891,1034457026),a(3584528711,2466948901),a(113926993,3758326383),a(338241895,168717936),a(666307205,1188179964),a(773529912,1546045734),a(1294757372,1522805485),a(1396182291,2643833823),a(1695183700,2343527390),a(1986661051,1014477480),a(2177026350,1206759142),a(2456956037,344077627),a(2730485921,1290863460),a(2820302411,3158454273),a(3259730800,3505952657),a(3345764771,106217008),a(3516065817,3606008344),a(3600352804,1432725776),a(4094571909,1467031594),a(275423344,851169720),a(430227734,3100823752),a(506948616,1363258195),a(659060556,3750685593),a(883997877,3785050280),a(958139571,3318307427),a(1322822218,3812723403),a(1537002063,2003034995),a(1747873779,3602036899),a(1955562222,1575990012),a(2024104815,1125592928),a(2227730452,2716904306),a(2361852424,442776044),a(2428436474,593698344),a(2756734187,3733110249),a(3204031479,2999351573),a(3329325298,3815920427),a(3391569614,3928383900),a(3515267271,566280711),a(3940187606,3454069534),a(4118630271,4000239992),a(116418474,1914138554),a(174292421,2731055270),a(289380356,3203993006),a(460393269,320620315),a(685471733,587496836),a(852142971,1086792851),a(1017036298,365543100),a(1126000580,2618297676),a(1288033470,3409855158),a(1501505948,4234509866),a(1607167915,987167468),a(1816402316,1246189591)],t=[];(function(){for(var o=0;o<80;o++)t[o]=a()})();var s=r.SHA512=m.extend({_doReset:function(){this._hash=new d.init([new p.init(1779033703,4089235720),new p.init(3144134277,2227873595),new p.init(1013904242,4271175723),new p.init(2773480762,1595750129),new p.init(1359893119,2917565137),new p.init(2600822924,725511199),new p.init(528734635,4215389547),new p.init(1541459225,327033209)])},_doProcessBlock:function(o,x){for(var l=this._hash.words,b=l[0],i=l[1],n=l[2],v=l[3],B=l[4],y=l[5],w=l[6],C=l[7],R=b.high,h=b.low,g=i.high,H=i.low,k=n.high,D=n.low,F=v.high,T=v.low,O=B.high,I=B.low,U=y.high,K=y.low,z=w.high,A=w.low,W=C.high,E=C.low,M=R,G=h,Q=g,P=H,j=k,i0=D,r0=F,m0=T,c0=O,t0=I,A0=U,B0=K,R0=z,w0=A,ge=W,k0=E,f0=0;f0<80;f0++){var o0,l0,W0=t[f0];if(f0<16)l0=W0.high=o[x+f0*2]|0,o0=W0.low=o[x+f0*2+1]|0;else{var Se=t[f0-15],p0=Se.high,C0=Se.low,Ar=(p0>>>1|C0<<31)^(p0>>>8|C0<<24)^p0>>>7,ze=(C0>>>1|p0<<31)^(C0>>>8|p0<<24)^(C0>>>7|p0<<25),He=t[f0-2],g0=He.high,S0=He.low,Rr=(g0>>>19|S0<<13)^(g0<<3|S0>>>29)^g0>>>6,Ee=(S0>>>19|g0<<13)^(S0<<3|g0>>>29)^(S0>>>6|g0<<26),Ae=t[f0-7],Wr=Ae.high,Pr=Ae.low,Re=t[f0-16],qr=Re.high,We=Re.low;o0=ze+Pr,l0=Ar+Wr+(o0>>>0<ze>>>0?1:0),o0=o0+Ee,l0=l0+Rr+(o0>>>0<Ee>>>0?1:0),o0=o0+We,l0=l0+qr+(o0>>>0<We>>>0?1:0),W0.high=l0,W0.low=o0}var Fr=c0&A0^~c0&R0,Pe=t0&B0^~t0&w0,Dr=M&Q^M&j^Q&j,Tr=G&P^G&i0^P&i0,Lr=(M>>>28|G<<4)^(M<<30|G>>>2)^(M<<25|G>>>7),qe=(G>>>28|M<<4)^(G<<30|M>>>2)^(G<<25|M>>>7),Ir=(c0>>>14|t0<<18)^(c0>>>18|t0<<14)^(c0<<23|t0>>>9),Nr=(t0>>>14|c0<<18)^(t0>>>18|c0<<14)^(t0<<23|c0>>>9),Fe=c[f0],Or=Fe.high,De=Fe.low,a0=k0+Nr,u0=ge+Ir+(a0>>>0<k0>>>0?1:0),a0=a0+Pe,u0=u0+Fr+(a0>>>0<Pe>>>0?1:0),a0=a0+De,u0=u0+Or+(a0>>>0<De>>>0?1:0),a0=a0+o0,u0=u0+l0+(a0>>>0<o0>>>0?1:0),Te=qe+Tr,Ur=Lr+Dr+(Te>>>0<qe>>>0?1:0);ge=R0,k0=w0,R0=A0,w0=B0,A0=c0,B0=t0,t0=m0+a0|0,c0=r0+u0+(t0>>>0<m0>>>0?1:0)|0,r0=j,m0=i0,j=Q,i0=P,Q=M,P=G,G=a0+Te|0,M=u0+Ur+(G>>>0<a0>>>0?1:0)|0}h=b.low=h+G,b.high=R+M+(h>>>0<G>>>0?1:0),H=i.low=H+P,i.high=g+Q+(H>>>0<P>>>0?1:0),D=n.low=D+i0,n.high=k+j+(D>>>0<i0>>>0?1:0),T=v.low=T+m0,v.high=F+r0+(T>>>0<m0>>>0?1:0),I=B.low=I+t0,B.high=O+c0+(I>>>0<t0>>>0?1:0),K=y.low=K+B0,y.high=U+A0+(K>>>0<B0>>>0?1:0),A=w.low=A+w0,w.high=z+R0+(A>>>0<w0>>>0?1:0),E=C.low=E+k0,C.high=W+ge+(E>>>0<k0>>>0?1:0)},_doFinalize:function(){var o=this._data,x=o.words,l=this._nDataBytes*8,b=o.sigBytes*8;x[b>>>5]|=128<<24-b%32,x[(b+128>>>10<<5)+30]=Math.floor(l/4294967296),x[(b+128>>>10<<5)+31]=l,o.sigBytes=x.length*4,this._process();var i=this._hash.toX32();return i},clone:function(){var o=m.clone.call(this);return o._hash=this._hash.clone(),o},blockSize:1024/32});e.SHA512=m._createHelper(s),e.HmacSHA512=m._createHmacHelper(s)}(),f.SHA512})}(Rt)),X0}var V0={},Wt={get exports(){return V0},set exports(u){V0=u}},Qe;function Pt(){return Qe||(Qe=1,function(u,q){(function(f,e,_){u.exports=e(X(),he(),Sr())})(N,function(f){return function(){var e=f,_=e.x64,m=_.Word,S=_.WordArray,p=e.algo,d=p.SHA512,r=p.SHA384=d.extend({_doReset:function(){this._hash=new S.init([new m.init(3418070365,3238371032),new m.init(1654270250,914150663),new m.init(2438529370,812702999),new m.init(355462360,4144912697),new m.init(1731405415,4290775857),new m.init(2394180231,1750603025),new m.init(3675008525,1694076839),new m.init(1203062813,3204075428)])},_doFinalize:function(){var a=d._doFinalize.call(this);return a.sigBytes-=16,a}});e.SHA384=d._createHelper(r),e.HmacSHA384=d._createHmacHelper(r)}(),f.SHA384})}(Wt)),V0}var G0={},qt={get exports(){return G0},set exports(u){G0=u}},$e;function Ft(){return $e||($e=1,function(u,q){(function(f,e,_){u.exports=e(X(),he())})(N,function(f){return function(e){var _=f,m=_.lib,S=m.WordArray,p=m.Hasher,d=_.x64,r=d.Word,a=_.algo,c=[],t=[],s=[];(function(){for(var l=1,b=0,i=0;i<24;i++){c[l+5*b]=(i+1)*(i+2)/2%64;var n=b%5,v=(2*l+3*b)%5;l=n,b=v}for(var l=0;l<5;l++)for(var b=0;b<5;b++)t[l+5*b]=b+(2*l+3*b)%5*5;for(var B=1,y=0;y<24;y++){for(var w=0,C=0,R=0;R<7;R++){if(B&1){var h=(1<<R)-1;h<32?C^=1<<h:w^=1<<h-32}B&128?B=B<<1^113:B<<=1}s[y]=r.create(w,C)}})();var o=[];(function(){for(var l=0;l<25;l++)o[l]=r.create()})();var x=a.SHA3=p.extend({cfg:p.cfg.extend({outputLength:512}),_doReset:function(){for(var l=this._state=[],b=0;b<25;b++)l[b]=new r.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(l,b){for(var i=this._state,n=this.blockSize/2,v=0;v<n;v++){var B=l[b+2*v],y=l[b+2*v+1];B=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,y=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360;var w=i[v];w.high^=y,w.low^=B}for(var C=0;C<24;C++){for(var R=0;R<5;R++){for(var h=0,g=0,H=0;H<5;H++){var w=i[R+5*H];h^=w.high,g^=w.low}var k=o[R];k.high=h,k.low=g}for(var R=0;R<5;R++)for(var D=o[(R+4)%5],F=o[(R+1)%5],T=F.high,O=F.low,h=D.high^(T<<1|O>>>31),g=D.low^(O<<1|T>>>31),H=0;H<5;H++){var w=i[R+5*H];w.high^=h,w.low^=g}for(var I=1;I<25;I++){var h,g,w=i[I],U=w.high,K=w.low,z=c[I];z<32?(h=U<<z|K>>>32-z,g=K<<z|U>>>32-z):(h=K<<z-32|U>>>64-z,g=U<<z-32|K>>>64-z);var A=o[t[I]];A.high=h,A.low=g}var W=o[0],E=i[0];W.high=E.high,W.low=E.low;for(var R=0;R<5;R++)for(var H=0;H<5;H++){var I=R+5*H,w=i[I],M=o[I],G=o[(R+1)%5+5*H],Q=o[(R+2)%5+5*H];w.high=M.high^~G.high&Q.high,w.low=M.low^~G.low&Q.low}var w=i[0],P=s[C];w.high^=P.high,w.low^=P.low}},_doFinalize:function(){var l=this._data,b=l.words;this._nDataBytes*8;var i=l.sigBytes*8,n=this.blockSize*32;b[i>>>5]|=1<<24-i%32,b[(e.ceil((i+1)/n)*n>>>5)-1]|=128,l.sigBytes=b.length*4,this._process();for(var v=this._state,B=this.cfg.outputLength/8,y=B/8,w=[],C=0;C<y;C++){var R=v[C],h=R.high,g=R.low;h=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,g=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,w.push(g),w.push(h)}return new S.init(w,B)},clone:function(){for(var l=p.clone.call(this),b=l._state=this._state.slice(0),i=0;i<25;i++)b[i]=b[i].clone();return l}});_.SHA3=p._createHelper(x),_.HmacSHA3=p._createHmacHelper(x)}(Math),f.SHA3})}(qt)),G0}var M0={},Dt={get exports(){return M0},set exports(u){M0=u}},Je;function Tt(){return Je||(Je=1,function(u,q){(function(f,e){u.exports=e(X())})(N,function(f){/** @preserve
|
|
(c) 2012 by Cédric Mesnil. All rights reserved.
|
|
|
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
|
|
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
|
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
*/return function(e){var _=f,m=_.lib,S=m.WordArray,p=m.Hasher,d=_.algo,r=S.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),a=S.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=S.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),t=S.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),s=S.create([0,1518500249,1859775393,2400959708,2840853838]),o=S.create([1352829926,1548603684,1836072691,2053994217,0]),x=d.RIPEMD160=p.extend({_doReset:function(){this._hash=S.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(y,w){for(var C=0;C<16;C++){var R=w+C,h=y[R];y[R]=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360}var g=this._hash.words,H=s.words,k=o.words,D=r.words,F=a.words,T=c.words,O=t.words,I,U,K,z,A,W,E,M,G,Q;W=I=g[0],E=U=g[1],M=K=g[2],G=z=g[3],Q=A=g[4];for(var P,C=0;C<80;C+=1)P=I+y[w+D[C]]|0,C<16?P+=l(U,K,z)+H[0]:C<32?P+=b(U,K,z)+H[1]:C<48?P+=i(U,K,z)+H[2]:C<64?P+=n(U,K,z)+H[3]:P+=v(U,K,z)+H[4],P=P|0,P=B(P,T[C]),P=P+A|0,I=A,A=z,z=B(K,10),K=U,U=P,P=W+y[w+F[C]]|0,C<16?P+=v(E,M,G)+k[0]:C<32?P+=n(E,M,G)+k[1]:C<48?P+=i(E,M,G)+k[2]:C<64?P+=b(E,M,G)+k[3]:P+=l(E,M,G)+k[4],P=P|0,P=B(P,O[C]),P=P+Q|0,W=Q,Q=G,G=B(M,10),M=E,E=P;P=g[1]+K+G|0,g[1]=g[2]+z+Q|0,g[2]=g[3]+A+W|0,g[3]=g[4]+I+E|0,g[4]=g[0]+U+M|0,g[0]=P},_doFinalize:function(){var y=this._data,w=y.words,C=this._nDataBytes*8,R=y.sigBytes*8;w[R>>>5]|=128<<24-R%32,w[(R+64>>>9<<4)+14]=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,y.sigBytes=(w.length+1)*4,this._process();for(var h=this._hash,g=h.words,H=0;H<5;H++){var k=g[H];g[H]=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360}return h},clone:function(){var y=p.clone.call(this);return y._hash=this._hash.clone(),y}});function l(y,w,C){return y^w^C}function b(y,w,C){return y&w|~y&C}function i(y,w,C){return(y|~w)^C}function n(y,w,C){return y&C|w&~C}function v(y,w,C){return y^(w|~C)}function B(y,w){return y<<w|y>>>32-w}_.RIPEMD160=p._createHelper(x),_.HmacRIPEMD160=p._createHmacHelper(x)}(),f.RIPEMD160})}(Dt)),M0}var j0={},Lt={get exports(){return j0},set exports(u){j0=u}},er;function Ce(){return er||(er=1,function(u,q){(function(f,e){u.exports=e(X())})(N,function(f){(function(){var e=f,_=e.lib,m=_.Base,S=e.enc,p=S.Utf8,d=e.algo;d.HMAC=m.extend({init:function(r,a){r=this._hasher=new r.init,typeof a=="string"&&(a=p.parse(a));var c=r.blockSize,t=c*4;a.sigBytes>t&&(a=r.finalize(a)),a.clamp();for(var s=this._oKey=a.clone(),o=this._iKey=a.clone(),x=s.words,l=o.words,b=0;b<c;b++)x[b]^=1549556828,l[b]^=909522486;s.sigBytes=o.sigBytes=t,this.reset()},reset:function(){var r=this._hasher;r.reset(),r.update(this._iKey)},update:function(r){return this._hasher.update(r),this},finalize:function(r){var a=this._hasher,c=a.finalize(r);a.reset();var t=a.finalize(this._oKey.clone().concat(c));return t}})})()})}(Lt)),j0}var Z0={},It={get exports(){return Z0},set exports(u){Z0=u}},rr;function Nt(){return rr||(rr=1,function(u,q){(function(f,e,_){u.exports=e(X(),ke(),Ce())})(N,function(f){return function(){var e=f,_=e.lib,m=_.Base,S=_.WordArray,p=e.algo,d=p.SHA1,r=p.HMAC,a=p.PBKDF2=m.extend({cfg:m.extend({keySize:128/32,hasher:d,iterations:1}),init:function(c){this.cfg=this.cfg.extend(c)},compute:function(c,t){for(var s=this.cfg,o=r.create(s.hasher,c),x=S.create(),l=S.create([1]),b=x.words,i=l.words,n=s.keySize,v=s.iterations;b.length<n;){var B=o.update(t).finalize(l);o.reset();for(var y=B.words,w=y.length,C=B,R=1;R<v;R++){C=o.finalize(C),o.reset();for(var h=C.words,g=0;g<w;g++)y[g]^=h[g]}x.concat(B),i[0]++}return x.sigBytes=n*4,x}});e.PBKDF2=function(c,t,s){return a.create(s).compute(c,t)}}(),f.PBKDF2})}(It)),Z0}var Y0={},Ot={get exports(){return Y0},set exports(u){Y0=u}},tr;function h0(){return tr||(tr=1,function(u,q){(function(f,e,_){u.exports=e(X(),ke(),Ce())})(N,function(f){return function(){var e=f,_=e.lib,m=_.Base,S=_.WordArray,p=e.algo,d=p.MD5,r=p.EvpKDF=m.extend({cfg:m.extend({keySize:128/32,hasher:d,iterations:1}),init:function(a){this.cfg=this.cfg.extend(a)},compute:function(a,c){for(var t,s=this.cfg,o=s.hasher.create(),x=S.create(),l=x.words,b=s.keySize,i=s.iterations;l.length<b;){t&&o.update(t),t=o.update(a).finalize(c),o.reset();for(var n=1;n<i;n++)t=o.finalize(t),o.reset();x.concat(t)}return x.sigBytes=b*4,x}});e.EvpKDF=function(a,c,t){return r.create(t).compute(a,c)}}(),f.EvpKDF})}(Ot)),Y0}var Q0={},Ut={get exports(){return Q0},set exports(u){Q0=u}},ar;function J(){return ar||(ar=1,function(u,q){(function(f,e,_){u.exports=e(X(),h0())})(N,function(f){f.lib.Cipher||function(e){var _=f,m=_.lib,S=m.Base,p=m.WordArray,d=m.BufferedBlockAlgorithm,r=_.enc;r.Utf8;var a=r.Base64,c=_.algo,t=c.EvpKDF,s=m.Cipher=d.extend({cfg:S.extend(),createEncryptor:function(h,g){return this.create(this._ENC_XFORM_MODE,h,g)},createDecryptor:function(h,g){return this.create(this._DEC_XFORM_MODE,h,g)},init:function(h,g,H){this.cfg=this.cfg.extend(H),this._xformMode=h,this._key=g,this.reset()},reset:function(){d.reset.call(this),this._doReset()},process:function(h){return this._append(h),this._process()},finalize:function(h){h&&this._append(h);var g=this._doFinalize();return g},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function h(g){return typeof g=="string"?R:y}return function(g){return{encrypt:function(H,k,D){return h(k).encrypt(g,H,k,D)},decrypt:function(H,k,D){return h(k).decrypt(g,H,k,D)}}}}()});m.StreamCipher=s.extend({_doFinalize:function(){var h=this._process(!0);return h},blockSize:1});var o=_.mode={},x=m.BlockCipherMode=S.extend({createEncryptor:function(h,g){return this.Encryptor.create(h,g)},createDecryptor:function(h,g){return this.Decryptor.create(h,g)},init:function(h,g){this._cipher=h,this._iv=g}}),l=o.CBC=function(){var h=x.extend();h.Encryptor=h.extend({processBlock:function(H,k){var D=this._cipher,F=D.blockSize;g.call(this,H,k,F),D.encryptBlock(H,k),this._prevBlock=H.slice(k,k+F)}}),h.Decryptor=h.extend({processBlock:function(H,k){var D=this._cipher,F=D.blockSize,T=H.slice(k,k+F);D.decryptBlock(H,k),g.call(this,H,k,F),this._prevBlock=T}});function g(H,k,D){var F,T=this._iv;T?(F=T,this._iv=e):F=this._prevBlock;for(var O=0;O<D;O++)H[k+O]^=F[O]}return h}(),b=_.pad={},i=b.Pkcs7={pad:function(h,g){for(var H=g*4,k=H-h.sigBytes%H,D=k<<24|k<<16|k<<8|k,F=[],T=0;T<k;T+=4)F.push(D);var O=p.create(F,k);h.concat(O)},unpad:function(h){var g=h.words[h.sigBytes-1>>>2]&255;h.sigBytes-=g}};m.BlockCipher=s.extend({cfg:s.cfg.extend({mode:l,padding:i}),reset:function(){var h;s.reset.call(this);var g=this.cfg,H=g.iv,k=g.mode;this._xformMode==this._ENC_XFORM_MODE?h=k.createEncryptor:(h=k.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==h?this._mode.init(this,H&&H.words):(this._mode=h.call(k,this,H&&H.words),this._mode.__creator=h)},_doProcessBlock:function(h,g){this._mode.processBlock(h,g)},_doFinalize:function(){var h,g=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(g.pad(this._data,this.blockSize),h=this._process(!0)):(h=this._process(!0),g.unpad(h)),h},blockSize:128/32});var n=m.CipherParams=S.extend({init:function(h){this.mixIn(h)},toString:function(h){return(h||this.formatter).stringify(this)}}),v=_.format={},B=v.OpenSSL={stringify:function(h){var g,H=h.ciphertext,k=h.salt;return k?g=p.create([1398893684,1701076831]).concat(k).concat(H):g=H,g.toString(a)},parse:function(h){var g,H=a.parse(h),k=H.words;return k[0]==1398893684&&k[1]==1701076831&&(g=p.create(k.slice(2,4)),k.splice(0,4),H.sigBytes-=16),n.create({ciphertext:H,salt:g})}},y=m.SerializableCipher=S.extend({cfg:S.extend({format:B}),encrypt:function(h,g,H,k){k=this.cfg.extend(k);var D=h.createEncryptor(H,k),F=D.finalize(g),T=D.cfg;return n.create({ciphertext:F,key:H,iv:T.iv,algorithm:h,mode:T.mode,padding:T.padding,blockSize:h.blockSize,formatter:k.format})},decrypt:function(h,g,H,k){k=this.cfg.extend(k),g=this._parse(g,k.format);var D=h.createDecryptor(H,k).finalize(g.ciphertext);return D},_parse:function(h,g){return typeof h=="string"?g.parse(h,this):h}}),w=_.kdf={},C=w.OpenSSL={execute:function(h,g,H,k){k||(k=p.random(64/8));var D=t.create({keySize:g+H}).compute(h,k),F=p.create(D.words.slice(g),H*4);return D.sigBytes=g*4,n.create({key:D,iv:F,salt:k})}},R=m.PasswordBasedCipher=y.extend({cfg:y.cfg.extend({kdf:C}),encrypt:function(h,g,H,k){k=this.cfg.extend(k);var D=k.kdf.execute(H,h.keySize,h.ivSize);k.iv=D.iv;var F=y.encrypt.call(this,h,g,D.key,k);return F.mixIn(D),F},decrypt:function(h,g,H,k){k=this.cfg.extend(k),g=this._parse(g,k.format);var D=k.kdf.execute(H,h.keySize,h.ivSize,g.salt);k.iv=D.iv;var F=y.decrypt.call(this,h,g,D.key,k);return F}})}()})}(Ut)),Q0}var $0={},Kt={get exports(){return $0},set exports(u){$0=u}},nr;function Xt(){return nr||(nr=1,function(u,q){(function(f,e,_){u.exports=e(X(),J())})(N,function(f){return f.mode.CFB=function(){var e=f.lib.BlockCipherMode.extend();e.Encryptor=e.extend({processBlock:function(m,S){var p=this._cipher,d=p.blockSize;_.call(this,m,S,d,p),this._prevBlock=m.slice(S,S+d)}}),e.Decryptor=e.extend({processBlock:function(m,S){var p=this._cipher,d=p.blockSize,r=m.slice(S,S+d);_.call(this,m,S,d,p),this._prevBlock=r}});function _(m,S,p,d){var r,a=this._iv;a?(r=a.slice(0),this._iv=void 0):r=this._prevBlock,d.encryptBlock(r,0);for(var c=0;c<p;c++)m[S+c]^=r[c]}return e}(),f.mode.CFB})}(Kt)),$0}var J0={},Vt={get exports(){return J0},set exports(u){J0=u}},ir;function Gt(){return ir||(ir=1,function(u,q){(function(f,e,_){u.exports=e(X(),J())})(N,function(f){return f.mode.CTR=function(){var e=f.lib.BlockCipherMode.extend(),_=e.Encryptor=e.extend({processBlock:function(m,S){var p=this._cipher,d=p.blockSize,r=this._iv,a=this._counter;r&&(a=this._counter=r.slice(0),this._iv=void 0);var c=a.slice(0);p.encryptBlock(c,0),a[d-1]=a[d-1]+1|0;for(var t=0;t<d;t++)m[S+t]^=c[t]}});return e.Decryptor=_,e}(),f.mode.CTR})}(Vt)),J0}var ee={},Mt={get exports(){return ee},set exports(u){ee=u}},or;function jt(){return or||(or=1,function(u,q){(function(f,e,_){u.exports=e(X(),J())})(N,function(f){/** @preserve
|
|
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|
* derived from CryptoJS.mode.CTR
|
|
* Jan Hruby jhruby.web@gmail.com
|
|
*/return f.mode.CTRGladman=function(){var e=f.lib.BlockCipherMode.extend();function _(p){if((p>>24&255)===255){var d=p>>16&255,r=p>>8&255,a=p&255;d===255?(d=0,r===255?(r=0,a===255?a=0:++a):++r):++d,p=0,p+=d<<16,p+=r<<8,p+=a}else p+=1<<24;return p}function m(p){return(p[0]=_(p[0]))===0&&(p[1]=_(p[1])),p}var S=e.Encryptor=e.extend({processBlock:function(p,d){var r=this._cipher,a=r.blockSize,c=this._iv,t=this._counter;c&&(t=this._counter=c.slice(0),this._iv=void 0),m(t);var s=t.slice(0);r.encryptBlock(s,0);for(var o=0;o<a;o++)p[d+o]^=s[o]}});return e.Decryptor=S,e}(),f.mode.CTRGladman})}(Mt)),ee}var re={},Zt={get exports(){return re},set exports(u){re=u}},sr;function Yt(){return sr||(sr=1,function(u,q){(function(f,e,_){u.exports=e(X(),J())})(N,function(f){return f.mode.OFB=function(){var e=f.lib.BlockCipherMode.extend(),_=e.Encryptor=e.extend({processBlock:function(m,S){var p=this._cipher,d=p.blockSize,r=this._iv,a=this._keystream;r&&(a=this._keystream=r.slice(0),this._iv=void 0),p.encryptBlock(a,0);for(var c=0;c<d;c++)m[S+c]^=a[c]}});return e.Decryptor=_,e}(),f.mode.OFB})}(Zt)),re}var te={},Qt={get exports(){return te},set exports(u){te=u}},xr;function $t(){return xr||(xr=1,function(u,q){(function(f,e,_){u.exports=e(X(),J())})(N,function(f){return f.mode.ECB=function(){var e=f.lib.BlockCipherMode.extend();return e.Encryptor=e.extend({processBlock:function(_,m){this._cipher.encryptBlock(_,m)}}),e.Decryptor=e.extend({processBlock:function(_,m){this._cipher.decryptBlock(_,m)}}),e}(),f.mode.ECB})}(Qt)),te}var ae={},Jt={get exports(){return ae},set exports(u){ae=u}},cr;function ea(){return cr||(cr=1,function(u,q){(function(f,e,_){u.exports=e(X(),J())})(N,function(f){return f.pad.AnsiX923={pad:function(e,_){var m=e.sigBytes,S=_*4,p=S-m%S,d=m+p-1;e.clamp(),e.words[d>>>2]|=p<<24-d%4*8,e.sigBytes+=p},unpad:function(e){var _=e.words[e.sigBytes-1>>>2]&255;e.sigBytes-=_}},f.pad.Ansix923})}(Jt)),ae}var ne={},ra={get exports(){return ne},set exports(u){ne=u}},fr;function ta(){return fr||(fr=1,function(u,q){(function(f,e,_){u.exports=e(X(),J())})(N,function(f){return f.pad.Iso10126={pad:function(e,_){var m=_*4,S=m-e.sigBytes%m;e.concat(f.lib.WordArray.random(S-1)).concat(f.lib.WordArray.create([S<<24],1))},unpad:function(e){var _=e.words[e.sigBytes-1>>>2]&255;e.sigBytes-=_}},f.pad.Iso10126})}(ra)),ne}var ie={},aa={get exports(){return ie},set exports(u){ie=u}},vr;function na(){return vr||(vr=1,function(u,q){(function(f,e,_){u.exports=e(X(),J())})(N,function(f){return f.pad.Iso97971={pad:function(e,_){e.concat(f.lib.WordArray.create([2147483648],1)),f.pad.ZeroPadding.pad(e,_)},unpad:function(e){f.pad.ZeroPadding.unpad(e),e.sigBytes--}},f.pad.Iso97971})}(aa)),ie}var oe={},ia={get exports(){return oe},set exports(u){oe=u}},lr;function oa(){return lr||(lr=1,function(u,q){(function(f,e,_){u.exports=e(X(),J())})(N,function(f){return f.pad.ZeroPadding={pad:function(e,_){var m=_*4;e.clamp(),e.sigBytes+=m-(e.sigBytes%m||m)},unpad:function(e){for(var _=e.words,m=e.sigBytes-1,m=e.sigBytes-1;m>=0;m--)if(_[m>>>2]>>>24-m%4*8&255){e.sigBytes=m+1;break}}},f.pad.ZeroPadding})}(ia)),oe}var se={},sa={get exports(){return se},set exports(u){se=u}},ur;function xa(){return ur||(ur=1,function(u,q){(function(f,e,_){u.exports=e(X(),J())})(N,function(f){return f.pad.NoPadding={pad:function(){},unpad:function(){}},f.pad.NoPadding})}(sa)),se}var xe={},ca={get exports(){return xe},set exports(u){xe=u}},dr;function fa(){return dr||(dr=1,function(u,q){(function(f,e,_){u.exports=e(X(),J())})(N,function(f){return function(e){var _=f,m=_.lib,S=m.CipherParams,p=_.enc,d=p.Hex,r=_.format;r.Hex={stringify:function(a){return a.ciphertext.toString(d)},parse:function(a){var c=d.parse(a);return S.create({ciphertext:c})}}}(),f.format.Hex})}(ca)),xe}var ce={},va={get exports(){return ce},set exports(u){ce=u}},hr;function la(){return hr||(hr=1,function(u,q){(function(f,e,_){u.exports=e(X(),b0(),y0(),h0(),J())})(N,function(f){return function(){var e=f,_=e.lib,m=_.BlockCipher,S=e.algo,p=[],d=[],r=[],a=[],c=[],t=[],s=[],o=[],x=[],l=[];(function(){for(var n=[],v=0;v<256;v++)v<128?n[v]=v<<1:n[v]=v<<1^283;for(var B=0,y=0,v=0;v<256;v++){var w=y^y<<1^y<<2^y<<3^y<<4;w=w>>>8^w&255^99,p[B]=w,d[w]=B;var C=n[B],R=n[C],h=n[R],g=n[w]*257^w*16843008;r[B]=g<<24|g>>>8,a[B]=g<<16|g>>>16,c[B]=g<<8|g>>>24,t[B]=g;var g=h*16843009^R*65537^C*257^B*16843008;s[w]=g<<24|g>>>8,o[w]=g<<16|g>>>16,x[w]=g<<8|g>>>24,l[w]=g,B?(B=C^n[n[n[h^C]]],y^=n[n[y]]):B=y=1}})();var b=[0,1,2,4,8,16,32,64,128,27,54],i=S.AES=m.extend({_doReset:function(){var n;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var v=this._keyPriorReset=this._key,B=v.words,y=v.sigBytes/4,w=this._nRounds=y+6,C=(w+1)*4,R=this._keySchedule=[],h=0;h<C;h++)h<y?R[h]=B[h]:(n=R[h-1],h%y?y>6&&h%y==4&&(n=p[n>>>24]<<24|p[n>>>16&255]<<16|p[n>>>8&255]<<8|p[n&255]):(n=n<<8|n>>>24,n=p[n>>>24]<<24|p[n>>>16&255]<<16|p[n>>>8&255]<<8|p[n&255],n^=b[h/y|0]<<24),R[h]=R[h-y]^n);for(var g=this._invKeySchedule=[],H=0;H<C;H++){var h=C-H;if(H%4)var n=R[h];else var n=R[h-4];H<4||h<=4?g[H]=n:g[H]=s[p[n>>>24]]^o[p[n>>>16&255]]^x[p[n>>>8&255]]^l[p[n&255]]}}},encryptBlock:function(n,v){this._doCryptBlock(n,v,this._keySchedule,r,a,c,t,p)},decryptBlock:function(n,v){var B=n[v+1];n[v+1]=n[v+3],n[v+3]=B,this._doCryptBlock(n,v,this._invKeySchedule,s,o,x,l,d);var B=n[v+1];n[v+1]=n[v+3],n[v+3]=B},_doCryptBlock:function(n,v,B,y,w,C,R,h){for(var g=this._nRounds,H=n[v]^B[0],k=n[v+1]^B[1],D=n[v+2]^B[2],F=n[v+3]^B[3],T=4,O=1;O<g;O++){var I=y[H>>>24]^w[k>>>16&255]^C[D>>>8&255]^R[F&255]^B[T++],U=y[k>>>24]^w[D>>>16&255]^C[F>>>8&255]^R[H&255]^B[T++],K=y[D>>>24]^w[F>>>16&255]^C[H>>>8&255]^R[k&255]^B[T++],z=y[F>>>24]^w[H>>>16&255]^C[k>>>8&255]^R[D&255]^B[T++];H=I,k=U,D=K,F=z}var I=(h[H>>>24]<<24|h[k>>>16&255]<<16|h[D>>>8&255]<<8|h[F&255])^B[T++],U=(h[k>>>24]<<24|h[D>>>16&255]<<16|h[F>>>8&255]<<8|h[H&255])^B[T++],K=(h[D>>>24]<<24|h[F>>>16&255]<<16|h[H>>>8&255]<<8|h[k&255])^B[T++],z=(h[F>>>24]<<24|h[H>>>16&255]<<16|h[k>>>8&255]<<8|h[D&255])^B[T++];n[v]=I,n[v+1]=U,n[v+2]=K,n[v+3]=z},keySize:256/32});e.AES=m._createHelper(i)}(),f.AES})}(va)),ce}var fe={},ua={get exports(){return fe},set exports(u){fe=u}},pr;function da(){return pr||(pr=1,function(u,q){(function(f,e,_){u.exports=e(X(),b0(),y0(),h0(),J())})(N,function(f){return function(){var e=f,_=e.lib,m=_.WordArray,S=_.BlockCipher,p=e.algo,d=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],r=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],a=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],c=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],t=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],s=p.DES=S.extend({_doReset:function(){for(var b=this._key,i=b.words,n=[],v=0;v<56;v++){var B=d[v]-1;n[v]=i[B>>>5]>>>31-B%32&1}for(var y=this._subKeys=[],w=0;w<16;w++){for(var C=y[w]=[],R=a[w],v=0;v<24;v++)C[v/6|0]|=n[(r[v]-1+R)%28]<<31-v%6,C[4+(v/6|0)]|=n[28+(r[v+24]-1+R)%28]<<31-v%6;C[0]=C[0]<<1|C[0]>>>31;for(var v=1;v<7;v++)C[v]=C[v]>>>(v-1)*4+3;C[7]=C[7]<<5|C[7]>>>27}for(var h=this._invSubKeys=[],v=0;v<16;v++)h[v]=y[15-v]},encryptBlock:function(b,i){this._doCryptBlock(b,i,this._subKeys)},decryptBlock:function(b,i){this._doCryptBlock(b,i,this._invSubKeys)},_doCryptBlock:function(b,i,n){this._lBlock=b[i],this._rBlock=b[i+1],o.call(this,4,252645135),o.call(this,16,65535),x.call(this,2,858993459),x.call(this,8,16711935),o.call(this,1,1431655765);for(var v=0;v<16;v++){for(var B=n[v],y=this._lBlock,w=this._rBlock,C=0,R=0;R<8;R++)C|=c[R][((w^B[R])&t[R])>>>0];this._lBlock=w,this._rBlock=y^C}var h=this._lBlock;this._lBlock=this._rBlock,this._rBlock=h,o.call(this,1,1431655765),x.call(this,8,16711935),x.call(this,2,858993459),o.call(this,16,65535),o.call(this,4,252645135),b[i]=this._lBlock,b[i+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function o(b,i){var n=(this._lBlock>>>b^this._rBlock)&i;this._rBlock^=n,this._lBlock^=n<<b}function x(b,i){var n=(this._rBlock>>>b^this._lBlock)&i;this._lBlock^=n,this._rBlock^=n<<b}e.DES=S._createHelper(s);var l=p.TripleDES=S.extend({_doReset:function(){var b=this._key,i=b.words;if(i.length!==2&&i.length!==4&&i.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var n=i.slice(0,2),v=i.length<4?i.slice(0,2):i.slice(2,4),B=i.length<6?i.slice(0,2):i.slice(4,6);this._des1=s.createEncryptor(m.create(n)),this._des2=s.createEncryptor(m.create(v)),this._des3=s.createEncryptor(m.create(B))},encryptBlock:function(b,i){this._des1.encryptBlock(b,i),this._des2.decryptBlock(b,i),this._des3.encryptBlock(b,i)},decryptBlock:function(b,i){this._des3.decryptBlock(b,i),this._des2.encryptBlock(b,i),this._des1.decryptBlock(b,i)},keySize:192/32,ivSize:64/32,blockSize:64/32});e.TripleDES=S._createHelper(l)}(),f.TripleDES})}(ua)),fe}var ve={},ha={get exports(){return ve},set exports(u){ve=u}},gr;function pa(){return gr||(gr=1,function(u,q){(function(f,e,_){u.exports=e(X(),b0(),y0(),h0(),J())})(N,function(f){return function(){var e=f,_=e.lib,m=_.StreamCipher,S=e.algo,p=S.RC4=m.extend({_doReset:function(){for(var a=this._key,c=a.words,t=a.sigBytes,s=this._S=[],o=0;o<256;o++)s[o]=o;for(var o=0,x=0;o<256;o++){var l=o%t,b=c[l>>>2]>>>24-l%4*8&255;x=(x+s[o]+b)%256;var i=s[o];s[o]=s[x],s[x]=i}this._i=this._j=0},_doProcessBlock:function(a,c){a[c]^=d.call(this)},keySize:256/32,ivSize:0});function d(){for(var a=this._S,c=this._i,t=this._j,s=0,o=0;o<4;o++){c=(c+1)%256,t=(t+a[c])%256;var x=a[c];a[c]=a[t],a[t]=x,s|=a[(a[c]+a[t])%256]<<24-o*8}return this._i=c,this._j=t,s}e.RC4=m._createHelper(p);var r=S.RC4Drop=p.extend({cfg:p.cfg.extend({drop:192}),_doReset:function(){p._doReset.call(this);for(var a=this.cfg.drop;a>0;a--)d.call(this)}});e.RC4Drop=m._createHelper(r)}(),f.RC4})}(ha)),ve}var le={},ga={get exports(){return le},set exports(u){le=u}},_r;function _a(){return _r||(_r=1,function(u,q){(function(f,e,_){u.exports=e(X(),b0(),y0(),h0(),J())})(N,function(f){return function(){var e=f,_=e.lib,m=_.StreamCipher,S=e.algo,p=[],d=[],r=[],a=S.Rabbit=m.extend({_doReset:function(){for(var t=this._key.words,s=this.cfg.iv,o=0;o<4;o++)t[o]=(t[o]<<8|t[o]>>>24)&16711935|(t[o]<<24|t[o]>>>8)&4278255360;var x=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],l=this._C=[t[2]<<16|t[2]>>>16,t[0]&4294901760|t[1]&65535,t[3]<<16|t[3]>>>16,t[1]&4294901760|t[2]&65535,t[0]<<16|t[0]>>>16,t[2]&4294901760|t[3]&65535,t[1]<<16|t[1]>>>16,t[3]&4294901760|t[0]&65535];this._b=0;for(var o=0;o<4;o++)c.call(this);for(var o=0;o<8;o++)l[o]^=x[o+4&7];if(s){var b=s.words,i=b[0],n=b[1],v=(i<<8|i>>>24)&16711935|(i<<24|i>>>8)&4278255360,B=(n<<8|n>>>24)&16711935|(n<<24|n>>>8)&4278255360,y=v>>>16|B&4294901760,w=B<<16|v&65535;l[0]^=v,l[1]^=y,l[2]^=B,l[3]^=w,l[4]^=v,l[5]^=y,l[6]^=B,l[7]^=w;for(var o=0;o<4;o++)c.call(this)}},_doProcessBlock:function(t,s){var o=this._X;c.call(this),p[0]=o[0]^o[5]>>>16^o[3]<<16,p[1]=o[2]^o[7]>>>16^o[5]<<16,p[2]=o[4]^o[1]>>>16^o[7]<<16,p[3]=o[6]^o[3]>>>16^o[1]<<16;for(var x=0;x<4;x++)p[x]=(p[x]<<8|p[x]>>>24)&16711935|(p[x]<<24|p[x]>>>8)&4278255360,t[s+x]^=p[x]},blockSize:128/32,ivSize:64/32});function c(){for(var t=this._X,s=this._C,o=0;o<8;o++)d[o]=s[o];s[0]=s[0]+1295307597+this._b|0,s[1]=s[1]+3545052371+(s[0]>>>0<d[0]>>>0?1:0)|0,s[2]=s[2]+886263092+(s[1]>>>0<d[1]>>>0?1:0)|0,s[3]=s[3]+1295307597+(s[2]>>>0<d[2]>>>0?1:0)|0,s[4]=s[4]+3545052371+(s[3]>>>0<d[3]>>>0?1:0)|0,s[5]=s[5]+886263092+(s[4]>>>0<d[4]>>>0?1:0)|0,s[6]=s[6]+1295307597+(s[5]>>>0<d[5]>>>0?1:0)|0,s[7]=s[7]+3545052371+(s[6]>>>0<d[6]>>>0?1:0)|0,this._b=s[7]>>>0<d[7]>>>0?1:0;for(var o=0;o<8;o++){var x=t[o]+s[o],l=x&65535,b=x>>>16,i=((l*l>>>17)+l*b>>>15)+b*b,n=((x&4294901760)*x|0)+((x&65535)*x|0);r[o]=i^n}t[0]=r[0]+(r[7]<<16|r[7]>>>16)+(r[6]<<16|r[6]>>>16)|0,t[1]=r[1]+(r[0]<<8|r[0]>>>24)+r[7]|0,t[2]=r[2]+(r[1]<<16|r[1]>>>16)+(r[0]<<16|r[0]>>>16)|0,t[3]=r[3]+(r[2]<<8|r[2]>>>24)+r[1]|0,t[4]=r[4]+(r[3]<<16|r[3]>>>16)+(r[2]<<16|r[2]>>>16)|0,t[5]=r[5]+(r[4]<<8|r[4]>>>24)+r[3]|0,t[6]=r[6]+(r[5]<<16|r[5]>>>16)+(r[4]<<16|r[4]>>>16)|0,t[7]=r[7]+(r[6]<<8|r[6]>>>24)+r[5]|0}e.Rabbit=m._createHelper(a)}(),f.Rabbit})}(ga)),le}var ue={},ba={get exports(){return ue},set exports(u){ue=u}},br;function ya(){return br||(br=1,function(u,q){(function(f,e,_){u.exports=e(X(),b0(),y0(),h0(),J())})(N,function(f){return function(){var e=f,_=e.lib,m=_.StreamCipher,S=e.algo,p=[],d=[],r=[],a=S.RabbitLegacy=m.extend({_doReset:function(){var t=this._key.words,s=this.cfg.iv,o=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],x=this._C=[t[2]<<16|t[2]>>>16,t[0]&4294901760|t[1]&65535,t[3]<<16|t[3]>>>16,t[1]&4294901760|t[2]&65535,t[0]<<16|t[0]>>>16,t[2]&4294901760|t[3]&65535,t[1]<<16|t[1]>>>16,t[3]&4294901760|t[0]&65535];this._b=0;for(var l=0;l<4;l++)c.call(this);for(var l=0;l<8;l++)x[l]^=o[l+4&7];if(s){var b=s.words,i=b[0],n=b[1],v=(i<<8|i>>>24)&16711935|(i<<24|i>>>8)&4278255360,B=(n<<8|n>>>24)&16711935|(n<<24|n>>>8)&4278255360,y=v>>>16|B&4294901760,w=B<<16|v&65535;x[0]^=v,x[1]^=y,x[2]^=B,x[3]^=w,x[4]^=v,x[5]^=y,x[6]^=B,x[7]^=w;for(var l=0;l<4;l++)c.call(this)}},_doProcessBlock:function(t,s){var o=this._X;c.call(this),p[0]=o[0]^o[5]>>>16^o[3]<<16,p[1]=o[2]^o[7]>>>16^o[5]<<16,p[2]=o[4]^o[1]>>>16^o[7]<<16,p[3]=o[6]^o[3]>>>16^o[1]<<16;for(var x=0;x<4;x++)p[x]=(p[x]<<8|p[x]>>>24)&16711935|(p[x]<<24|p[x]>>>8)&4278255360,t[s+x]^=p[x]},blockSize:128/32,ivSize:64/32});function c(){for(var t=this._X,s=this._C,o=0;o<8;o++)d[o]=s[o];s[0]=s[0]+1295307597+this._b|0,s[1]=s[1]+3545052371+(s[0]>>>0<d[0]>>>0?1:0)|0,s[2]=s[2]+886263092+(s[1]>>>0<d[1]>>>0?1:0)|0,s[3]=s[3]+1295307597+(s[2]>>>0<d[2]>>>0?1:0)|0,s[4]=s[4]+3545052371+(s[3]>>>0<d[3]>>>0?1:0)|0,s[5]=s[5]+886263092+(s[4]>>>0<d[4]>>>0?1:0)|0,s[6]=s[6]+1295307597+(s[5]>>>0<d[5]>>>0?1:0)|0,s[7]=s[7]+3545052371+(s[6]>>>0<d[6]>>>0?1:0)|0,this._b=s[7]>>>0<d[7]>>>0?1:0;for(var o=0;o<8;o++){var x=t[o]+s[o],l=x&65535,b=x>>>16,i=((l*l>>>17)+l*b>>>15)+b*b,n=((x&4294901760)*x|0)+((x&65535)*x|0);r[o]=i^n}t[0]=r[0]+(r[7]<<16|r[7]>>>16)+(r[6]<<16|r[6]>>>16)|0,t[1]=r[1]+(r[0]<<8|r[0]>>>24)+r[7]|0,t[2]=r[2]+(r[1]<<16|r[1]>>>16)+(r[0]<<16|r[0]>>>16)|0,t[3]=r[3]+(r[2]<<8|r[2]>>>24)+r[1]|0,t[4]=r[4]+(r[3]<<16|r[3]>>>16)+(r[2]<<16|r[2]>>>16)|0,t[5]=r[5]+(r[4]<<8|r[4]>>>24)+r[3]|0,t[6]=r[6]+(r[5]<<16|r[5]>>>16)+(r[4]<<16|r[4]>>>16)|0,t[7]=r[7]+(r[6]<<8|r[6]>>>24)+r[5]|0}e.RabbitLegacy=m._createHelper(a)}(),f.RabbitLegacy})}(ba)),ue}(function(u,q){(function(f,e,_){u.exports=e(X(),he(),yt(),Bt(),b0(),Ct(),y0(),ke(),Cr(),At(),Sr(),Pt(),Ft(),Tt(),Ce(),Nt(),h0(),J(),Xt(),Gt(),jt(),Yt(),$t(),ea(),ta(),na(),oa(),xa(),fa(),la(),da(),pa(),_a(),ya())})(N,function(f){return f})})(lt);const z0=be;function de(u,q="XwKsGlMcdPMEhR1B"){var f=z0.enc.Utf8.parse(q),e=z0.enc.Utf8.parse(u),_=z0.AES.encrypt(e,f,{mode:z0.mode.ECB,padding:z0.pad.Pkcs7});return _.toString()}function zr(u){var q,f,e,_,m=u.$el.parentNode.offsetWidth||window.offsetWidth,S=u.$el.parentNode.offsetHeight||window.offsetHeight;return u.imgSize.width.indexOf("%")!=-1?q=parseInt(u.imgSize.width)/100*m+"px":q=u.imgSize.width,u.imgSize.height.indexOf("%")!=-1?f=parseInt(u.imgSize.height)/100*S+"px":f=u.imgSize.height,u.barSize.width.indexOf("%")!=-1?e=parseInt(u.barSize.width)/100*m+"px":e=u.barSize.width,u.barSize.height.indexOf("%")!=-1?_=parseInt(u.barSize.height)/100*S+"px":_=u.barSize.height,{imgWidth:q,imgHeight:f,barWidth:e,barHeight:_}}yr.defaults.baseURL="/adminapi/";const pe=yr.create({timeout:4e4,headers:{"X-Requested-With":"XMLHttpRequest","Content-Type":"application/json; charset=UTF-8"}});pe.interceptors.request.use(u=>u,u=>{Promise.reject(u)});pe.interceptors.response.use(u=>u.data,u=>{});function Hr(u){return pe.get("/captcha/create",{params:{...u}})}function Er(u){return pe.get("/captcha/check",{params:{...u}})}const ma={name:"VerifySlide",props:{captchaType:{type:String},type:{type:String,default:"1"},mode:{type:String,default:"fixed"},vSpace:{type:Number,default:5},explain:{type:String,default:"向右滑动完成验证"},imgSize:{type:Object,default(){return{width:"310px",height:"155px"}}},blockSize:{type:Object,default(){return{width:"50px",height:"50px"}}},barSize:{type:Object,default(){return{width:"310px",height:"40px"}}}},setup(u,q){const{mode:f,captchaType:e,vSpace:_,imgSize:m,barSize:S,type:p,blockSize:d,explain:r}=me(u),{proxy:a}=wr();let c=L(""),t=L(""),s=L(""),o=L(""),x=L(""),l=L(""),b=L(""),i=L(""),n=L(""),v=L(""),B=L(""),y=d0({imgHeight:0,imgWidth:0,barHeight:0,barWidth:0}),w=L(0),C=L(0),R=L(void 0),h=L(void 0),g=L(void 0),H=L("#ddd"),k=L(void 0),D=L("icon-right"),F=L(!1),T=L(!1),O=L(!0),I=L(""),U=L(""),K=L(0);const z=mr(()=>a.$el.querySelector(".verify-bar-area"));function A(){v.value=r.value,Q(),kr(()=>{let{imgHeight:P,imgWidth:j,barHeight:i0,barWidth:r0}=zr(a);y.imgHeight=P,y.imgWidth=j,y.barHeight=i0,y.barWidth=r0,a.$parent.$emit("ready",a)}),window.removeEventListener("touchmove",function(P){E(P)}),window.removeEventListener("mousemove",function(P){E(P)}),window.removeEventListener("touchend",function(){M()}),window.removeEventListener("mouseup",function(){M()}),window.addEventListener("touchmove",function(P){E(P)}),window.addEventListener("mousemove",function(P){E(P)}),window.addEventListener("touchend",function(){M()}),window.addEventListener("mouseup",function(){M()})}Xr(p,()=>{A()}),Br(()=>{A(),a.$el.onselectstart=function(){return!1}});function W(P){if(P=P||window.event,P.touches)var j=P.touches[0].pageX;else var j=P.clientX;K.value=Math.floor(j-z.value.getBoundingClientRect().left),l.value=+new Date,T.value==!1&&(v.value="",g.value="#337ab7",H.value="#337AB7",k.value="#fff",P.stopPropagation(),F.value=!0)}function E(P){if(P=P||window.event,F.value&&T.value==!1){if(P.touches)var j=P.touches[0].pageX;else var j=P.clientX;var i0=z.value.getBoundingClientRect().left,r0=j-i0;r0>=z.value.offsetWidth-parseInt(parseInt(d.value.width)/2)-2&&(r0=z.value.offsetWidth-parseInt(parseInt(d.value.width)/2)-2),r0<=0&&(r0=parseInt(parseInt(d.value.width)/2)),R.value=r0-K.value+"px",h.value=r0-K.value+"px"}}function M(){if(b.value=+new Date,F.value&&T.value==!1){var P=parseInt((R.value||"").replace("px",""));P=P*310/parseInt(y.imgWidth);const j={captchaType:e.value,captcha_code:c.value?de(JSON.stringify({x:P,y:5}),c.value):JSON.stringify({x:P,y:5}),captcha_key:x.value};Er(j).then(i0=>{if(i0.code==1){g.value="#5cb85c",H.value="#5cb85c",k.value="#fff",D.value="icon-check",O.value=!1,T.value=!0,f.value=="pop"&&setTimeout(()=>{a.$parent.clickShow=!1,G()},1500),t.value=!0,n.value=`${((b.value-l.value)/1e3).toFixed(2)}s验证成功`;var r0=c.value?de(x.value+"---"+JSON.stringify({x:P,y:5}),c.value):x.value+"---"+JSON.stringify({x:P,y:5});setTimeout(()=>{n.value="",a.$parent.closeBox(),a.$parent.$emit("success",{captchaVerification:r0})},1e3)}else g.value="#d9534f",H.value="#d9534f",k.value="#fff",D.value="icon-close",t.value=!1,setTimeout(function(){G()},1e3),a.$parent.$emit("error",a),n.value="验证失败",setTimeout(()=>{n.value=""},1e3)}),F.value=!1}}const G=()=>{O.value=!0,B.value="",I.value="left .3s",R.value=0,h.value=void 0,U.value="width .3s",H.value="#ddd",g.value="#fff",k.value="#000",D.value="icon-right",T.value=!1,Q(),setTimeout(()=>{U.value="",I.value="",v.value=r.value},300)};function Q(){const P={captchaType:e.value};Hr(P).then(j=>{j.code==1?(s.value=j.data.originalImageBase64,o.value=j.data.jigsawImageBase64,x.value=j.data.token,c.value=j.data.secretKey):n.value=j.msg})}return{secretKey:c,passFlag:t,backImgBase:s,blockBackImgBase:o,backToken:x,startMoveTime:l,endMovetime:b,tipsBackColor:i,tipWords:n,text:v,finishText:B,setSize:y,top:w,left:C,moveBlockLeft:R,leftBarWidth:h,moveBlockBackgroundColor:g,leftBarBorderColor:H,iconColor:k,iconClass:D,status:F,isEnd:T,showRefresh:O,transitionLeft:I,transitionWidth:U,barArea:z,refresh:G,start:W}}},Ba={style:{position:"relative"}},wa=["src"],ka=V("i",{class:"iconfont icon-refresh"},null,-1),Ca=[ka],Sa=["textContent"],za=["textContent"],Ha=["src"];function Ea(u,q,f,e,_,m){return $(),x0("div",Ba,[f.type==="2"?($(),x0("div",{key:0,class:"verify-img-out",style:s0({height:parseInt(e.setSize.imgHeight)+f.vSpace+"px"})},[V("div",{class:"verify-img-panel",style:s0({width:e.setSize.imgWidth,height:e.setSize.imgHeight})},[V("img",{src:"data:image/png;base64,"+e.backImgBase,alt:"",style:{width:"100%",height:"100%",display:"block"}},null,8,wa),Be(V("div",{class:"verify-refresh",onClick:q[0]||(q[0]=(...S)=>e.refresh&&e.refresh(...S))},Ca,512),[[we,e.showRefresh]]),Z(Vr,{name:"tips"},{default:Y(()=>[e.tipWords?($(),x0("span",{key:0,class:E0(["verify-tips",e.passFlag?"suc-bg":"err-bg"])},v0(e.tipWords),3)):_0("",!0)]),_:1})],4)],4)):_0("",!0),V("div",{class:"verify-bar-area",style:s0({width:e.setSize.imgWidth,height:f.barSize.height,"line-height":f.barSize.height})},[V("span",{class:"verify-msg",textContent:v0(e.text)},null,8,Sa),V("div",{class:"verify-left-bar",style:s0({width:e.leftBarWidth!==void 0?e.leftBarWidth:f.barSize.height,height:f.barSize.height,"border-color":e.leftBarBorderColor,transaction:e.transitionWidth})},[V("span",{class:"verify-msg",textContent:v0(e.finishText)},null,8,za),V("div",{class:"verify-move-block",onTouchstart:q[1]||(q[1]=(...S)=>e.start&&e.start(...S)),onMousedown:q[2]||(q[2]=(...S)=>e.start&&e.start(...S)),style:s0({width:f.barSize.height,height:f.barSize.height,"background-color":e.moveBlockBackgroundColor,left:e.moveBlockLeft,transition:e.transitionLeft})},[V("i",{class:E0(["verify-icon iconfont",e.iconClass]),style:s0({color:e.iconColor})},null,6),f.type==="2"?($(),x0("div",{key:0,class:"verify-sub-block",style:s0({width:Math.floor(parseInt(e.setSize.imgWidth)*47/310)+"px",height:e.setSize.imgHeight,top:"-"+(parseInt(e.setSize.imgHeight)+f.vSpace)+"px","background-size":e.setSize.imgWidth+" "+e.setSize.imgHeight})},[V("img",{src:"data:image/png;base64,"+e.blockBackImgBase,alt:"",style:{width:"100%",height:"100%",display:"block","-webkit-user-drag":"none"}},null,8,Ha)],4)):_0("",!0)],36)],4)],4)])}const Aa=ye(ma,[["render",Ea]]),Ra={name:"VerifyPoints",props:{mode:{type:String,default:"fixed"},captchaType:{type:String},vSpace:{type:Number,default:5},imgSize:{type:Object,default(){return{width:"310px",height:"155px"}}},barSize:{type:Object,default(){return{width:"310px",height:"40px"}}}},setup(u,q){const{mode:f,captchaType:e,vSpace:_,imgSize:m,barSize:S}=me(u),{proxy:p}=wr(),d=L(""),r=L(3),a=d0([]),c=d0([]),t=L(1),s=L(""),o=d0([]),x=L(""),l=d0({imgHeight:0,imgWidth:0,barHeight:0,barWidth:0}),b=d0([]),i=L(""),n=L(void 0),v=L(void 0),B=L(!0),y=L(!0),w=()=>{a.splice(0,a.length),c.splice(0,c.length),t.value=1,k(),kr(()=>{const{imgHeight:F,imgWidth:T,barHeight:O,barWidth:I}=zr(p);l.imgHeight=F,l.imgWidth=T,l.barHeight=O,l.barWidth=I,p.$parent.$emit("ready",p)})};Br(()=>{w(),p.$el.onselectstart=function(){return!1}});const C=L(null),R=F=>{if(c.push(h(C,F)),t.value==r.value){t.value=g(h(C,F));const T=D(c,l);c.length=0,c.push(...T),setTimeout(()=>{const O=d.value?de(x.value+"---"+JSON.stringify(c),d.value):x.value+"---"+JSON.stringify(c),I={captchaType:e.value,captcha_code:d.value?de(JSON.stringify(c),d.value):JSON.stringify(c),captcha_key:x.value};Er(I).then(U=>{U.code==1?(n.value="#4cae4c",v.value="#5cb85c",i.value="验证成功",y.value=!1,f.value=="pop"&&setTimeout(()=>{p.$parent.clickShow=!1,H()},1500),p.$parent.$emit("success",{captchaVerification:O})):(p.$parent.$emit("error",p),n.value="#d9534f",v.value="#d9534f",i.value="验证失败",setTimeout(()=>{H()},700))})},400)}t.value<r.value&&(t.value=g(h(C,F)))},h=function(F,T){const O=T.offsetX,I=T.offsetY;return{x:O,y:I}},g=function(F){return b.push(Object.assign({},F)),t.value+1},H=function(){b.splice(0,b.length),n.value="#000",v.value="#ddd",y.value=!0,a.splice(0,a.length),c.splice(0,c.length),t.value=1,k(),i.value="验证失败",B.value=!0};function k(){const F={captchaType:e.value};Hr(F).then(T=>{T.code==1?(s.value=T.data.originalImageBase64,x.value=T.data.token,d.value=T.data.secretKey,o.value=T.data.wordList,i.value="请依次点击【"+o.value.join(",")+"】"):i.value=T.msg})}const D=function(F,T){return F.map(I=>{const U=Math.round(310*I.x/parseInt(T.imgWidth)),K=Math.round(155*I.y/parseInt(T.imgHeight));return{x:U,y:K}})};return{secretKey:d,checkNum:r,fontPos:a,checkPosArr:c,num:t,pointBackImgBase:s,poinTextList:o,backToken:x,setSize:l,tempPoints:b,text:i,barAreaColor:n,barAreaBorderColor:v,showRefresh:B,bindingClick:y,init:w,canvas:C,canvasClick:R,getMousePos:h,createPoint:g,refresh:H,getPictrue:k,pointTransfrom:D}}},Wa={style:{position:"relative"}},Pa={class:"verify-img-out"},qa=V("i",{class:"iconfont icon-refresh"},null,-1),Fa=[qa],Da=["src"],Ta={class:"verify-msg"};function La(u,q,f,e,_,m){return $(),x0("div",Wa,[V("div",Pa,[V("div",{class:"verify-img-panel",style:s0({width:e.setSize.imgWidth,height:e.setSize.imgHeight,"background-size":e.setSize.imgWidth+" "+e.setSize.imgHeight,"margin-bottom":f.vSpace+"px"})},[Be(V("div",{class:"verify-refresh",style:{"z-index":"3"},onClick:q[0]||(q[0]=(...S)=>e.refresh&&e.refresh(...S))},Fa,512),[[we,e.showRefresh]]),V("img",{src:"data:image/png;base64,"+e.pointBackImgBase,ref:"canvas",alt:"",style:{width:"100%",height:"100%",display:"block"},onClick:q[1]||(q[1]=S=>e.bindingClick?e.canvasClick(S):void 0)},null,8,Da),($(!0),x0(Gr,null,Mr(e.tempPoints,(S,p)=>($(),x0("div",{key:p,class:"point-area",style:s0({"background-color":"#1abd6c",color:"#fff","z-index":9999,width:"20px",height:"20px","text-align":"center","line-height":"20px","border-radius":"50%",position:"absolute",top:parseInt(S.y-10)+"px",left:parseInt(S.x-10)+"px"})},v0(p+1),5))),128))],4)]),V("div",{class:"verify-bar-area",style:s0({width:e.setSize.imgWidth,color:this.barAreaColor,"border-color":this.barAreaBorderColor,"line-height":this.barSize.height})},[V("span",Ta,v0(e.text),1)],4)])}const Ia=ye(Ra,[["render",La]]);const Na={name:"Vue2Verify",components:{VerifySlide:Aa,VerifyPoints:Ia},props:{captchaType:{type:String,required:!0},figure:{type:Number},arith:{type:Number},mode:{type:String,default:"pop"},vSpace:{type:Number},explain:{type:String},imgSize:{type:Object,default(){return{width:"310px",height:"155px"}}},blockSize:{type:Object},barSize:{type:Object}},setup(u){const{captchaType:q,figure:f,arith:e,mode:_,vSpace:m,explain:S,imgSize:p,blockSize:d,barSize:r}=me(u),a=L(!1),c=L(void 0),t=L(void 0),s=L({}),o=mr(()=>_.value=="pop"?a.value:!0),x=()=>{s.value.refresh&&s.value.refresh()},l=()=>{a.value=!1,x()},b=()=>{_.value=="pop"&&(a.value=!0)};return jr(()=>{switch(q.value){case"blockPuzzle":c.value="2",t.value="VerifySlide";break;case"clickWord":c.value="",t.value="VerifyPoints";break}}),{clickShow:a,verifyType:c,componentType:t,instance:s,showBox:o,closeBox:l,show:b}}},Oa={key:0,class:"verifybox-top"},Ua=V("i",{class:"iconfont icon-close"},null,-1),Ka=[Ua];function Xa(u,q,f,e,_,m){return Be(($(),x0("div",{class:E0(f.mode=="pop"?"mask":"")},[V("div",{class:E0(f.mode=="pop"?"verifybox":""),style:s0({"max-width":parseInt(f.imgSize.width)+30+"px"})},[f.mode=="pop"?($(),x0("div",Oa,[_e(" 请完成安全验证 "),V("span",{class:"verifybox-close",onClick:q[0]||(q[0]=(...S)=>e.closeBox&&e.closeBox(...S))},Ka)])):_0("",!0),V("div",{class:"verifybox-bottom",style:s0({padding:f.mode=="pop"?"15px":"0"})},[e.componentType?($(),H0(Zr(e.componentType),{key:0,captchaType:f.captchaType,type:e.verifyType,figure:f.figure,arith:f.arith,mode:f.mode,vSpace:f.vSpace,explain:f.explain,imgSize:f.imgSize,blockSize:f.blockSize,barSize:f.barSize,ref:"instance"},null,8,["captchaType","type","figure","arith","mode","vSpace","explain","imgSize","blockSize","barSize"])):_0("",!0)],4)],6)],2)),[[we,e.showBox]])}const Va=ye(Na,[["render",Xa]]),Ga=""+new URL("login_index_left-1a48499b.png",import.meta.url).href,Ma=""+new URL("site_login_bg-bf5500bb.png",import.meta.url).href,ja={class:"flex rounded-2xl overflow-hidden"},Za={class:"login-main-left w-[450px] flex flex-wrap justify-center"},Ya={key:1,src:Ga,alt:""},Qa={class:"login flex flex-col w-[400px] h-[400px] p-[40px]"},$a={class:"text-center text-lg font-bold mb-[10px]"},Ja={class:"text-center text-2xl font-bold mb-[26px]"},en={class:"flex rounded-2xl overflow-hidden h-screen w-full relative"},rn=["src"],tn={key:1,class:"hidden h-[100%] lg:block",src:Ma},an={class:"w-[100%] bg-[#F8FAFF] flex justify-center items-center absolute right-0 top-0 h-screen lg:w-[60%]"},nn={class:"site-login-item w-[45%] py-[30px] relative rounded-[13px] max-w-[350px] bg-[#fff]"},on={class:"w-[80%] mx-auto"},sn={class:"text-3xl mb-[30px]"},_n=Yr({__name:"index",setup(u){const q=L(!1),f=L(!1),e=Qr(),_=Jr(),m=tt();_.redirectedFrom&&(_.query.redirect=_.redirectedFrom.path);const S=L([]);(async(i=0)=>{S.value=await(await vt()).data})();const d=L($r());d.value=="site"?Le(e0("siteLogin")):Le(e0("adminLogin"));const r=L(null),a=i=>{b({captcha_code:i.captchaVerification})},c=d0({username:"",password:""}),t=L({});(async(i=0)=>{f.value=!0;const n=await(await et()).data;t.value=n,f.value=!1})();const o=L(),x=d0({username:[{required:!0,message:e0("userPlaceholder"),trigger:"blur"}],password:[{required:!0,message:e0("passwordPlaceholder"),trigger:"blur"}]}),l=async i=>{q.value||!i||await i.validate((n,v)=>{n&&(parseInt(t.value.is_captcha)&&d.value=="admin"||parseInt(t.value.is_site_captcha)&&d.value=="site"?r.value.show():b())})},b=(i={})=>{q.value=!0,e.login({username:c.username,password:c.password,...i},d.value).then(n=>{at.set({key:"app_type",data:d.value});const{query:{redirect:v}}=_,B=typeof v=="string"?v:"/";m.push(B)}).catch(()=>{q.value=!1})};return(i,n)=>{const v=nt,B=ft,y=it,w=ot,C=st,R=xt,h=ct,g=Va,H=rt;return $(),H0(H,{class:E0(["w-full h-screen bg-page",{"login-wrap":d.value=="admin"},{"site-login-wrap":d.value=="site"}])},{default:Y(()=>[!f.value&&d.value=="admin"?($(),H0(h,{key:0,class:"login-main items-center justify-center"},{default:Y(()=>[V("div",ja,[V("div",Za,[t.value.bg?($(),H0(v,{key:0,class:"w-[450px] h-[400px]",src:n0(Ie)(t.value.bg),fit:"cover"},null,8,["src"])):($(),x0("img",Ya))]),V("div",Qa,[V("h3",$a,v0(n0(e0)("siteTitle")),1),V("h3",Ja,v0(n0(e0)("platform")),1),Z(R,{model:c,ref_key:"formRef",ref:o,rules:x},{default:Y(()=>[Z(w,{prop:"username"},{default:Y(()=>[Z(y,{modelValue:c.username,"onUpdate:modelValue":n[0]||(n[0]=k=>c.username=k),placeholder:n0(e0)("userPlaceholder"),onKeyup:n[1]||(n[1]=P0(k=>l(o.value),["enter"])),class:"h-[40px] input-with-select"},{prepend:Y(()=>[Z(B,{name:"element-User"})]),_:1},8,["modelValue","placeholder"])]),_:1}),Z(w,{prop:"password"},{default:Y(()=>[Z(y,{modelValue:c.password,"onUpdate:modelValue":n[2]||(n[2]=k=>c.password=k),placeholder:n0(e0)("passwordPlaceholder"),type:"password",onKeyup:n[3]||(n[3]=P0(k=>l(o.value),["enter"])),"show-password":!0,class:"h-[40px] input-with-select"},{prepend:Y(()=>[Z(B,{name:"element-Lock"})]),_:1},8,["modelValue","placeholder"])]),_:1}),Z(w,null,{default:Y(()=>[Z(C,{type:"primary",class:"mt-[30px] h-[40px] w-full",onClick:n[4]||(n[4]=k=>l(o.value)),loading:q.value},{default:Y(()=>[_e(v0(q.value?n0(e0)("logging"):n0(e0)("login")),1)]),_:1},8,["loading"])]),_:1})]),_:1},8,["model","rules"])])])]),_:1})):!f.value&&d.value=="site"?($(),H0(h,{key:1,class:"login-main w-full login-site-main items-center h-screen justify-evenly bg-[#F8FAFF]"},{default:Y(()=>[V("div",en,[t.value.site_bg?($(),x0("img",{key:0,class:"hidden h-[100%] lg:block",src:n0(Ie)(t.value.site_bg)},null,8,rn)):($(),x0("img",tn)),V("div",an,[V("div",nn,[V("div",on,[V("h3",sn,v0(n0(e0)("siteLogin")),1),Z(R,{model:c,ref_key:"formRef",ref:o,rules:x},{default:Y(()=>[Z(w,{prop:"username"},{default:Y(()=>[Z(y,{modelValue:c.username,"onUpdate:modelValue":n[5]||(n[5]=k=>c.username=k),onKeyup:n[6]||(n[6]=P0(k=>l(o.value),["enter"])),class:"w-50 m-1 h-[40px]",placeholder:n0(e0)("userPlaceholder")},{prefix:Y(()=>[Z(B,{name:"element-User"})]),_:1},8,["modelValue","placeholder"])]),_:1}),Z(w,{prop:"password"},{default:Y(()=>[Z(y,{type:"password",modelValue:c.password,"onUpdate:modelValue":n[7]||(n[7]=k=>c.password=k),onKeyup:n[8]||(n[8]=P0(k=>l(o.value),["enter"])),"show-password":!0,class:"w-50 m-1 h-[40px]",placeholder:n0(e0)("passwordPlaceholder")},{prefix:Y(()=>[Z(B,{name:"element-Lock"})]),_:1},8,["modelValue","placeholder"])]),_:1}),Z(w,null,{default:Y(()=>[Z(C,{type:"primary",class:"mt-[30px] h-[40px] w-full",onClick:n[9]||(n[9]=k=>l(o.value)),loading:q.value},{default:Y(()=>[_e(v0(q.value?n0(e0)("logging"):n0(e0)("login")),1)]),_:1},8,["loading"])]),_:1})]),_:1},8,["model","rules"])])])])])]),_:1})):_0("",!0),Z(g,{onSuccess:a,mode:i.pop,captchaType:"blockPuzzle",imgSize:{width:"330px",height:"155px"},ref_key:"verifyRef",ref:r},null,8,["mode"])]),_:1},8,["class"])}}});export{_n as default};
|