@fast-china/utils 1.0.21 → 1.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -34,5 +34,5 @@ return t.mode.CTRGladman=function(){var e=t.lib.BlockCipherMode.extend();functio
34
34
 
35
35
  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.
36
36
  */
37
- return function(){var e=t,r=e.lib,n=r.WordArray,i=r.Hasher,o=e.algo,a=n.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]),u=n.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=n.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]),s=n.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]),f=n.create([0,1518500249,1859775393,2400959708,2840853838]),l=n.create([1352829926,1548603684,1836072691,2053994217,0]),h=o.RIPEMD160=i.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var r=0;r<16;r++){var n=e+r,i=t[n];t[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,h,m,b,x,w,S,j,A,B,k,O=this._hash.words,I=f.words,E=l.words,D=a.words,C=u.words,M=c.words,z=s.words;for(w=o=O[0],S=h=O[1],j=m=O[2],A=b=O[3],B=x=O[4],r=0;r<80;r+=1)k=o+t[e+D[r]]|0,k+=r<16?p(h,m,b)+I[0]:r<32?d(h,m,b)+I[1]:r<48?v(h,m,b)+I[2]:r<64?g(h,m,b)+I[3]:y(h,m,b)+I[4],k=(k=_(k|=0,M[r]))+x|0,o=x,x=b,b=_(m,10),m=h,h=k,k=w+t[e+C[r]]|0,k+=r<16?y(S,j,A)+E[0]:r<32?g(S,j,A)+E[1]:r<48?v(S,j,A)+E[2]:r<64?d(S,j,A)+E[3]:p(S,j,A)+E[4],k=(k=_(k|=0,z[r]))+B|0,w=B,B=A,A=_(j,10),j=S,S=k;k=O[1]+m+A|0,O[1]=O[2]+b+B|0,O[2]=O[3]+x+w|0,O[3]=O[4]+o+S|0,O[4]=O[0]+h+j|0,O[0]=k},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,n=8*t.sigBytes;e[n>>>5]|=128<<24-n%32,e[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),t.sigBytes=4*(e.length+1),this._process();for(var i=this._hash,o=i.words,a=0;a<5;a++){var u=o[a];o[a]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return i},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t}});function p(t,e,r){return t^e^r}function d(t,e,r){return t&e|~t&r}function v(t,e,r){return(t|~e)^r}function g(t,e,r){return t&r|e&~r}function y(t,e,r){return t^(e|~r)}function _(t,e){return t<<e|t>>>32-e}e.RIPEMD160=i._createHelper(h),e.HmacRIPEMD160=i._createHmacHelper(h)}(Math),t.RIPEMD160}(hl())),Jl(),Xl||(Xl=1,Zl.exports=function(t){var e,r,n,i,o,a,u,c;return n=(r=(e=t).lib).Base,i=r.WordArray,a=(o=e.algo).SHA256,u=o.HMAC,c=o.PBKDF2=n.extend({cfg:n.extend({keySize:4,hasher:a,iterations:25e4}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var r=this.cfg,n=u.create(r.hasher,t),o=i.create(),a=i.create([1]),c=o.words,s=a.words,f=r.keySize,l=r.iterations;c.length<f;){var h=n.update(e).finalize(a);n.reset();for(var p=h.words,d=p.length,v=h,g=1;g<l;g++){v=n.finalize(v),n.reset();for(var y=v.words,_=0;_<d;_++)p[_]^=y[_]}o.concat(h),s[0]++}return o.sigBytes=4*f,o}}),e.PBKDF2=function(t,e,r){return c.create(r).compute(t,e)},t.PBKDF2}(hl(),zl(),Jl())),Ql(),rh(),nh||(nh=1,ih.exports=function(t){return t.mode.CFB=function(){var e=t.lib.BlockCipherMode.extend();function r(t,e,r,n){var i,o=this._iv;o?(i=o.slice(0),this._iv=void 0):i=this._prevBlock,n.encryptBlock(i,0);for(var a=0;a<r;a++)t[e+a]^=i[a]}return e.Encryptor=e.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize;r.call(this,t,e,i,n),this._prevBlock=t.slice(e,e+i)}}),e.Decryptor=e.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize,o=t.slice(e,e+i);r.call(this,t,e,i,n),this._prevBlock=o}}),e}(),t.mode.CFB}(hl(),rh())),oh||(oh=1,ah.exports=function(t){var e,r;return t.mode.CTR=(r=(e=t.lib.BlockCipherMode.extend()).Encryptor=e.extend({processBlock:function(t,e){var r=this._cipher,n=r.blockSize,i=this._iv,o=this._counter;i&&(o=this._counter=i.slice(0),this._iv=void 0);var a=o.slice(0);r.encryptBlock(a,0),o[n-1]=o[n-1]+1|0;for(var u=0;u<n;u++)t[e+u]^=a[u]}}),e.Decryptor=r,e),t.mode.CTR}(hl(),rh())),sh(),fh||(fh=1,lh.exports=function(t){var e,r;return t.mode.OFB=(r=(e=t.lib.BlockCipherMode.extend()).Encryptor=e.extend({processBlock:function(t,e){var r=this._cipher,n=r.blockSize,i=this._iv,o=this._keystream;i&&(o=this._keystream=i.slice(0),this._iv=void 0),r.encryptBlock(o,0);for(var a=0;a<n;a++)t[e+a]^=o[a]}}),e.Decryptor=r,e),t.mode.OFB}(hl(),rh())),hh||(hh=1,ph.exports=function(t){var e;return t.mode.ECB=((e=t.lib.BlockCipherMode.extend()).Encryptor=e.extend({processBlock:function(t,e){this._cipher.encryptBlock(t,e)}}),e.Decryptor=e.extend({processBlock:function(t,e){this._cipher.decryptBlock(t,e)}}),e),t.mode.ECB}(hl(),rh())),dh||(dh=1,vh.exports=function(t){return t.pad.AnsiX923={pad:function(t,e){var r=t.sigBytes,n=4*e,i=n-r%n,o=r+i-1;t.clamp(),t.words[o>>>2]|=i<<24-o%4*8,t.sigBytes+=i},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},t.pad.Ansix923}(hl(),rh())),gh||(gh=1,yh.exports=function(t){return t.pad.Iso10126={pad:function(e,r){var n=4*r,i=n-e.sigBytes%n;e.concat(t.lib.WordArray.random(i-1)).concat(t.lib.WordArray.create([i<<24],1))},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},t.pad.Iso10126}(hl(),rh())),_h||(_h=1,mh.exports=function(t){return t.pad.Iso97971={pad:function(e,r){e.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(e,r)},unpad:function(e){t.pad.ZeroPadding.unpad(e),e.sigBytes--}},t.pad.Iso97971}(hl(),rh())),bh||(bh=1,xh.exports=function(t){return t.pad.ZeroPadding={pad:function(t,e){var r=4*e;t.clamp(),t.sigBytes+=r-(t.sigBytes%r||r)},unpad:function(t){var e=t.words,r=t.sigBytes-1;for(r=t.sigBytes-1;r>=0;r--)if(e[r>>>2]>>>24-r%4*8&255){t.sigBytes=r+1;break}}},t.pad.ZeroPadding}(hl(),rh())),wh||(wh=1,Sh.exports=function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding}(hl(),rh())),jh||(jh=1,Ah.exports=function(t){var e,r,n;return r=(e=t).lib.CipherParams,n=e.enc.Hex,e.format.Hex={stringify:function(t){return t.ciphertext.toString(n)},parse:function(t){var e=n.parse(t);return r.create({ciphertext:e})}},t.format.Hex}(hl(),rh())),Bh||(Bh=1,kh.exports=function(t){return function(){var e=t,r=e.lib.BlockCipher,n=e.algo,i=[],o=[],a=[],u=[],c=[],s=[],f=[],l=[],h=[],p=[];!function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var r=0,n=0;for(e=0;e<256;e++){var d=n^n<<1^n<<2^n<<3^n<<4;d=d>>>8^255&d^99,i[r]=d,o[d]=r;var v=t[r],g=t[v],y=t[g],_=257*t[d]^16843008*d;a[r]=_<<24|_>>>8,u[r]=_<<16|_>>>16,c[r]=_<<8|_>>>24,s[r]=_,_=16843009*y^65537*g^257*v^16843008*r,f[d]=_<<24|_>>>8,l[d]=_<<16|_>>>16,h[d]=_<<8|_>>>24,p[d]=_,r?(r=v^t[t[t[y^v]]],n^=t[t[n]]):r=n=1}}();var d=[0,1,2,4,8,16,32,64,128,27,54],v=n.AES=r.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,r=t.sigBytes/4,n=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],a=0;a<n;a++)a<r?o[a]=e[a]:(s=o[a-1],a%r?r>6&&a%r==4&&(s=i[s>>>24]<<24|i[s>>>16&255]<<16|i[s>>>8&255]<<8|i[255&s]):(s=i[(s=s<<8|s>>>24)>>>24]<<24|i[s>>>16&255]<<16|i[s>>>8&255]<<8|i[255&s],s^=d[a/r|0]<<24),o[a]=o[a-r]^s);for(var u=this._invKeySchedule=[],c=0;c<n;c++){if(a=n-c,c%4)var s=o[a];else s=o[a-4];u[c]=c<4||a<=4?s:f[i[s>>>24]]^l[i[s>>>16&255]]^h[i[s>>>8&255]]^p[i[255&s]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,a,u,c,s,i)},decryptBlock:function(t,e){var r=t[e+1];t[e+1]=t[e+3],t[e+3]=r,this._doCryptBlock(t,e,this._invKeySchedule,f,l,h,p,o),r=t[e+1],t[e+1]=t[e+3],t[e+3]=r},_doCryptBlock:function(t,e,r,n,i,o,a,u){for(var c=this._nRounds,s=t[e]^r[0],f=t[e+1]^r[1],l=t[e+2]^r[2],h=t[e+3]^r[3],p=4,d=1;d<c;d++){var v=n[s>>>24]^i[f>>>16&255]^o[l>>>8&255]^a[255&h]^r[p++],g=n[f>>>24]^i[l>>>16&255]^o[h>>>8&255]^a[255&s]^r[p++],y=n[l>>>24]^i[h>>>16&255]^o[s>>>8&255]^a[255&f]^r[p++],_=n[h>>>24]^i[s>>>16&255]^o[f>>>8&255]^a[255&l]^r[p++];s=v,f=g,l=y,h=_}v=(u[s>>>24]<<24|u[f>>>16&255]<<16|u[l>>>8&255]<<8|u[255&h])^r[p++],g=(u[f>>>24]<<24|u[l>>>16&255]<<16|u[h>>>8&255]<<8|u[255&s])^r[p++],y=(u[l>>>24]<<24|u[h>>>16&255]<<16|u[s>>>8&255]<<8|u[255&f])^r[p++],_=(u[h>>>24]<<24|u[s>>>16&255]<<16|u[f>>>8&255]<<8|u[255&l])^r[p++],t[e]=v,t[e+1]=g,t[e+2]=y,t[e+3]=_},keySize:8});e.AES=r._createHelper(v)}(),t.AES}(hl(),wl(),Ol(),Ql(),rh())),Oh||(Oh=1,Ih.exports=function(t){return function(){var e=t,r=e.lib,n=r.WordArray,i=r.BlockCipher,o=e.algo,a=[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],u=[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],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],s=[{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}],f=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],l=o.DES=i.extend({_doReset:function(){for(var t=this._key.words,e=[],r=0;r<56;r++){var n=a[r]-1;e[r]=t[n>>>5]>>>31-n%32&1}for(var i=this._subKeys=[],o=0;o<16;o++){var s=i[o]=[],f=c[o];for(r=0;r<24;r++)s[r/6|0]|=e[(u[r]-1+f)%28]<<31-r%6,s[4+(r/6|0)]|=e[28+(u[r+24]-1+f)%28]<<31-r%6;for(s[0]=s[0]<<1|s[0]>>>31,r=1;r<7;r++)s[r]=s[r]>>>4*(r-1)+3;s[7]=s[7]<<5|s[7]>>>27}var l=this._invSubKeys=[];for(r=0;r<16;r++)l[r]=i[15-r]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys)},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys)},_doCryptBlock:function(t,e,r){this._lBlock=t[e],this._rBlock=t[e+1],h.call(this,4,252645135),h.call(this,16,65535),p.call(this,2,858993459),p.call(this,8,16711935),h.call(this,1,1431655765);for(var n=0;n<16;n++){for(var i=r[n],o=this._lBlock,a=this._rBlock,u=0,c=0;c<8;c++)u|=s[c][((a^i[c])&f[c])>>>0];this._lBlock=a,this._rBlock=o^u}var l=this._lBlock;this._lBlock=this._rBlock,this._rBlock=l,h.call(this,1,1431655765),p.call(this,8,16711935),p.call(this,2,858993459),h.call(this,16,65535),h.call(this,4,252645135),t[e]=this._lBlock,t[e+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function h(t,e){var r=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=r,this._lBlock^=r<<t}function p(t,e){var r=(this._rBlock>>>t^this._lBlock)&e;this._lBlock^=r,this._rBlock^=r<<t}e.DES=i._createHelper(l);var d=o.TripleDES=i.extend({_doReset:function(){var t=this._key.words;if(2!==t.length&&4!==t.length&&t.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var e=t.slice(0,2),r=t.length<4?t.slice(0,2):t.slice(2,4),i=t.length<6?t.slice(0,2):t.slice(4,6);this._des1=l.createEncryptor(n.create(e)),this._des2=l.createEncryptor(n.create(r)),this._des3=l.createEncryptor(n.create(i))},encryptBlock:function(t,e){this._des1.encryptBlock(t,e),this._des2.decryptBlock(t,e),this._des3.encryptBlock(t,e)},decryptBlock:function(t,e){this._des3.decryptBlock(t,e),this._des2.encryptBlock(t,e),this._des1.decryptBlock(t,e)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=i._createHelper(d)}(),t.TripleDES}(hl(),wl(),Ol(),Ql(),rh())),Eh||(Eh=1,Dh.exports=function(t){return function(){var e=t,r=e.lib.StreamCipher,n=e.algo,i=n.RC4=r.extend({_doReset:function(){for(var t=this._key,e=t.words,r=t.sigBytes,n=this._S=[],i=0;i<256;i++)n[i]=i;i=0;for(var o=0;i<256;i++){var a=i%r,u=e[a>>>2]>>>24-a%4*8&255;o=(o+n[i]+u)%256;var c=n[i];n[i]=n[o],n[o]=c}this._i=this._j=0},_doProcessBlock:function(t,e){t[e]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var t=this._S,e=this._i,r=this._j,n=0,i=0;i<4;i++){r=(r+t[e=(e+1)%256])%256;var o=t[e];t[e]=t[r],t[r]=o,n|=t[(t[e]+t[r])%256]<<24-8*i}return this._i=e,this._j=r,n}e.RC4=r._createHelper(i);var a=n.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)o.call(this)}});e.RC4Drop=r._createHelper(a)}(),t.RC4}(hl(),wl(),Ol(),Ql(),rh())),Ch||(Ch=1,Mh.exports=function(t){return function(){var e=t,r=e.lib.StreamCipher,n=e.algo,i=[],o=[],a=[],u=n.Rabbit=r.extend({_doReset:function(){for(var t=this._key.words,e=this.cfg.iv,r=0;r<4;r++)t[r]=16711935&(t[r]<<8|t[r]>>>24)|4278255360&(t[r]<<24|t[r]>>>8);var n=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],i=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];for(this._b=0,r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)i[r]^=n[r+4&7];if(e){var o=e.words,a=o[0],u=o[1],s=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),f=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8),l=s>>>16|4294901760&f,h=f<<16|65535&s;for(i[0]^=s,i[1]^=l,i[2]^=f,i[3]^=h,i[4]^=s,i[5]^=l,i[6]^=f,i[7]^=h,r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(t,e){var r=this._X;c.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),t[e+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var t=this._X,e=this._C,r=0;r<8;r++)o[r]=e[r];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<o[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<o[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<o[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<o[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<o[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<o[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<o[6]>>>0?1:0)|0,this._b=e[7]>>>0<o[7]>>>0?1:0,r=0;r<8;r++){var n=t[r]+e[r],i=65535&n,u=n>>>16,c=((i*i>>>17)+i*u>>>15)+u*u,s=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=c^s}t[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,t[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,t[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,t[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,t[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,t[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,t[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,t[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.Rabbit=r._createHelper(u)}(),t.Rabbit}(hl(),wl(),Ol(),Ql(),rh())),zh||(zh=1,Rh.exports=function(t){return function(){var e=t,r=e.lib.StreamCipher,n=e.algo,i=[],o=[],a=[],u=n.RabbitLegacy=r.extend({_doReset:function(){var t=this._key.words,e=this.cfg.iv,r=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],n=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var i=0;i<4;i++)c.call(this);for(i=0;i<8;i++)n[i]^=r[i+4&7];if(e){var o=e.words,a=o[0],u=o[1],s=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),f=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8),l=s>>>16|4294901760&f,h=f<<16|65535&s;for(n[0]^=s,n[1]^=l,n[2]^=f,n[3]^=h,n[4]^=s,n[5]^=l,n[6]^=f,n[7]^=h,i=0;i<4;i++)c.call(this)}},_doProcessBlock:function(t,e){var r=this._X;c.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),t[e+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var t=this._X,e=this._C,r=0;r<8;r++)o[r]=e[r];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<o[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<o[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<o[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<o[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<o[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<o[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<o[6]>>>0?1:0)|0,this._b=e[7]>>>0<o[7]>>>0?1:0,r=0;r<8;r++){var n=t[r]+e[r],i=65535&n,u=n>>>16,c=((i*i>>>17)+i*u>>>15)+u*u,s=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=c^s}t[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,t[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,t[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,t[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,t[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,t[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,t[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,t[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.RabbitLegacy=r._createHelper(u)}(),t.RabbitLegacy}(hl(),wl(),Ol(),Ql(),rh())),Fh())),cl.exports);const Uh={aes:{encrypt:(t,e,r,n=Th.mode.CBC)=>t?(e.length<32&&(e=e.padEnd(32,"f")),e.length>32&&(e=e.substring(0,32)),r.length<16&&(r=r.padEnd(16,"f")),r.length>16&&(r=r.substring(0,16)),Th.AES.encrypt(t,Th.enc.Utf8.parse(e),{iv:Th.enc.Utf8.parse(r),mode:n}).toString()):t,decrypt(t,e,r,n=Th.mode.CBC){if(!t)return null;e.length<32&&(e=e.padEnd(32,"f")),e.length>32&&(e=e.substring(0,32)),r.length<16&&(r=r.padEnd(16,"f")),r.length>16&&(r=r.substring(0,16));const i=Th.AES.decrypt(t,Th.enc.Utf8.parse(e),{iv:Th.enc.Utf8.parse(r),mode:n});try{const t=i.toString(Th.enc.Utf8);return JSON.parse(t)}catch(t){return ol("AESCrypto",t),null}}},sha1:{encrypt:t=>t?Th.SHA1(t).toString(Th.enc.Hex).toUpperCase():t},MD5:{encrypt:t=>t?Th.MD5(t).toString(Th.enc.Hex).toUpperCase():t}},Nh={getGreet(){const t=(new Date).getHours();let e="";return e=t<5?"夜深了,注意身体哦!":t<9?"早上好!欢迎回来!":t<12?"上午好!欢迎回来!":t<14?"中午好!欢迎回来!":t<18?"下午好!欢迎回来!":t<24?"晚上好!欢迎回来!":"您好!欢迎回来!",e},dateTimeFix(t){if(null!=t&&t){"string"==typeof t&&(t=new Date(t));let e=t.getTime();if(e.toString().length<13){const t=e.toString().split("");for(let e=0;e<13;e++)t[e]||(t[e]="0");e=parseInt(t.join(""))}const r=6e4,n=60*r,i=24*n,o=30*i,a=(new Date).getTime()-e,u=a/o,c=a/(7*i),s=a/i,f=a/n,l=a/r;if(a<0){const t=Math.abs(u),e=Math.abs(c),r=Math.abs(s),n=Math.abs(f),i=Math.abs(l);return t>12?`${parseInt(""+t/12)}年后`:t>=6?"半年后":t>=1?`${parseInt(`${t}`)}月后`:e>2?"半月后":e>=1?`${parseInt(`${e}`)}周后`:r>=1?`${parseInt(`${r}`)}天后`:n>=1?`${parseInt(`${n}`)}小时后`:i>=1?`${parseInt(`${i}`)}分钟后`:"刚刚"}return u>12?`${parseInt(""+u/12)}年前`:u>=6?"半年前":u>=1?`${parseInt(`${u}`)}月前`:c>2?"半月前":c>=1?`${parseInt(`${c}`)}周前`:s>=1?`${parseInt(`${s}`)}天前`:f>=1?`${parseInt(`${f}`)}小时前`:l>=1?`${parseInt(`${l}`)}分钟前`:"刚刚"}return""},getDefaultTime(){const t=new Date,e=new Date;return e.setMonth(e.getMonth()-1),e.setHours(0,0,0),t.setHours(23,59,59),[e,t]},getSimpleTime(){const t=new Date;return t.setHours(0,0,0),t},getSimpleShortcuts:()=>[{text:"今天",value:()=>{const t=new Date;return t.setHours(0,0,0),t}},{text:"昨天",value:()=>{const t=new Date;return t.setDate(t.getDate()-1),t.setHours(0,0,0),t}},{text:"一周前",value:()=>{const t=new Date;return t.setDate(t.getDate()-7),t.setHours(0,0,0),t}},{text:"一月前",value:()=>{const t=new Date;return t.setMonth(t.getMonth()-1),t.setHours(0,0,0),t}},{text:"一年前",value:()=>{const t=new Date;return t.setFullYear(t.getFullYear()-1),t.setHours(0,0,0),t}}],getShortcuts:()=>[{text:"近1天",value:()=>{const t=new Date,e=new Date;return e.setDate(e.getDate()-1),e.setHours(0,0,0),t.setHours(23,59,59),[e,t]}},{text:"近3天",value:()=>{const t=new Date,e=new Date;return e.setDate(e.getDate()-3),e.setHours(0,0,0),t.setHours(23,59,59),[e,t]}},{text:"近1周",value:()=>{const t=new Date,e=new Date;return e.setDate(e.getDate()-7),e.setHours(0,0,0),t.setHours(23,59,59),[e,t]}},{text:"近1月",value:()=>{const t=new Date,e=new Date;return e.setMonth(e.getMonth()-1),e.setHours(0,0,0),t.setHours(23,59,59),[e,t]}},{text:"近3月",value:()=>{const t=new Date,e=new Date;return e.setMonth(e.getMonth()-3),e.setHours(0,0,0),t.setHours(23,59,59),[e,t]}},{text:"近6月",value:()=>{const t=new Date,e=new Date;return e.setMonth(e.getMonth()-6),e.setHours(0,0,0),t.setHours(23,59,59),[e,t]}},{text:"近1年",value:()=>{const t=new Date,e=new Date;return e.setFullYear(e.getFullYear()-1),e.setHours(0,0,0),t.setHours(23,59,59),[e,t]}}],getDisabledDate:t=>t.getTime()>Date.now()},Kh={isUni:()=>"undefined"!=typeof uni,isWeb:()=>"undefined"!=typeof window&&void 0!==window.document,isMobile(){if(!this.isWeb())return!1;const t=navigator.userAgent||"";return/Mobile|iPhone|Android.*Mobile|Windows Phone/i.test(t)},isIpad(){if(!this.isWeb())return!1;const t=navigator.userAgent||"";return/iPad|Android(?!.*Mobile)|Tablet/i.test(t)}},qh=e.reactive({prefix:"fast__",expireSuffix:"__Expire",crypto:!1}),Gh=e.computed((()=>qh.prefix)),Jh=e.computed((()=>qh.expireSuffix)),Xh={set(t,e){"undefined"!=typeof uni?uni.setStorageSync(t,e):window.localStorage.setItem(t,e)},get:t=>"undefined"!=typeof uni?uni.getStorageSync(t):window.localStorage.getItem(t),remove(t){"undefined"!=typeof uni?uni.removeStorageSync(t):window.localStorage.removeItem(t)},clear(){"undefined"!=typeof uni?uni.clearStorageSync():window.localStorage.clear()},keys:()=>"undefined"!=typeof uni?uni.getStorageInfoSync().keys:window.localStorage},Zh={set(t,e,r,n){try{if(n??(n=qh.crypto),r){if(isNaN(r)||r<1)throw new f("有效期应为一个有效数值");const e={time:Date.now(),expire:r},n=JSON.stringify(e);Xh.set(`${qh.prefix}${t}${qh.expireSuffix}`,n)}let i=JSON.stringify(e);n&&(i=a.toBase64(i)),Xh.set(`${qh.prefix}${t}`,i)}catch(t){ol("Local",t)}},get(t,e){try{e??(e=qh.crypto);let r=Xh.get(`${qh.prefix}${t}`);if(r){e&&(r=a.base64ToStr(r));const n=Xh.get(`${qh.prefix}${t}${qh.expireSuffix}`);if(n){const e=JSON.parse(n);if(Date.now()>e.time+60*e.expire*1e3)return Xh.remove(`${qh.prefix}${t}`),Xh.remove(`${qh.prefix}${t}${qh.expireSuffix}`),null}try{return JSON.parse(r)}catch{return r}}return null}catch(t){ol("Local",t)}},remove(t){try{Xh.remove(`${qh.prefix}${t}`),Xh.remove(`${qh.prefix}${t}${qh.expireSuffix}`)}catch(t){ol("Local",t)}},removeByPrefix(t){try{for(const e in Xh.keys)-1!==e.indexOf(`${qh.prefix}${t}`)&&Xh.remove(e)}catch(t){ol("Local",t)}},clear(){try{Xh.clear()}catch(t){ol("Local",t)}}},Vh={set(t,e,r,n){if("undefined"==typeof uni)try{if(n??(n=qh.crypto),r){if(isNaN(r)||r<1)throw new f("有效期应为一个有效数值");const e={time:Date.now(),expire:r},n=JSON.stringify(e);window.sessionStorage.setItem(`${qh.prefix}${t}${qh.expireSuffix}`,n)}let i=JSON.stringify(e);n&&(i=a.toBase64(i)),window.sessionStorage.setItem(`${qh.prefix}${t}`,i)}catch(t){ol("Session",t)}else ol("Session","UniApp 环境下 [Session] 不可用。")},get(t,e){if("undefined"==typeof uni)try{e??(e=qh.crypto);let r=window.sessionStorage.getItem(`${qh.prefix}${t}`);if(r){e&&(r=a.base64ToStr(r));const n=window.sessionStorage.getItem(`${qh.prefix}${t}${qh.expireSuffix}`);if(n){const e=JSON.parse(n);if(Date.now()>e.time+60*e.expire*1e3)return window.sessionStorage.removeItem(`${qh.prefix}${t}`),window.sessionStorage.removeItem(`${qh.prefix}${t}${qh.expireSuffix}`),null}try{return JSON.parse(r)}catch{return r}}return null}catch(t){ol("Session",t)}else ol("Session","UniApp 环境下 [Session] 不可用。")},remove(t){if("undefined"==typeof uni)try{window.sessionStorage.removeItem(`${qh.prefix}${t}`),window.sessionStorage.removeItem(`${qh.prefix}${t}${qh.expireSuffix}`)}catch(t){ol("Session",t)}else ol("Session","UniApp 环境下 [Session] 不可用。")},removeByPrefix(t){if("undefined"==typeof uni)try{for(const e in window.sessionStorage)-1!==e.indexOf(`${qh.prefix}${t}`)&&window.sessionStorage.removeItem(e)}catch(t){ol("Session",t)}else ol("Session","UniApp 环境下 [Session] 不可用。")},clear(){if("undefined"==typeof uni)try{window.sessionStorage.clear()}catch(t){ol("Session",t)}else ol("Session","UniApp 环境下 [Session] 不可用。")}};let Yh;const Qh={zh:"zh-CN",en:"en-US",zh_CN:"zh-CN",zh_TW:"zh-TW"},tp={getUrlParams(t){const e=/[?&][^=?&]+=[^?&]+/g,r={};let n;for(;null!==(n=e.exec(t));){const[t,e]=n[0].substring(1).split("=");r[t]=decodeURIComponent(e)}return r},isJson:t=>!!au(t)&&(t=t.replace(/\s/g,"").replace(/\n|\r/,""),/^\{.*?\}$/.test(t)?/".*?":/.test(t):!!/^\[.*?\]$/.test(t)&&t.replace(/^\[/,"").replace(/\]$/,"").replace(/\},\{/g,"}\n{").split(/\n/).map((t=>tp.isJson(t))).reduce(((t,e)=>!!e))),splitCamelCase:t=>t?1===t.length?[t]:t.split(new RegExp("(?=\\p{Lu}\\p{Ll})|(?<=\\p{Ll})(?=\\p{Lu})","u")).filter((t=>t.length>0)):[],toCamelCase:t=>t?t.replace(/[-_](\w)/g,((t,e)=>e?e.toUpperCase():"")):"",firstCharToUpper:t=>t?t.charAt(0).toUpperCase()+t.slice(1):"",firstCharToLower:t=>t?t.charAt(0).toLowerCase()+t.slice(1):"",subStringWithEllipsis:(t,e,r="...")=>t?t.length>e?t.substring(0,e)+r:t:"",generateRandomString(t){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let r="";for(let n=0;n<t;n++){const t=Math.floor(62*Math.random());r+=e.charAt(t)}return r},generateUUID(){let t="";for(let e=0;e<32;e++){const r=16*Math.random()|0;8!==e&&12!==e&&16!==e&&20!==e||(t+="-"),t+=(12===e?4:16===e?3&r|8:r).toString(16)}return t},async copy(t){if("undefined"!=typeof uni)return new Promise(((e,r)=>{uni.setClipboardData({data:t,success:()=>{e()},fail:()=>{r()}})}));if((null==navigator?void 0:navigator.clipboard)&&window.isSecureContext)await navigator.clipboard.writeText(t);else{const e=document.createElement("textarea");e.value=t,e.style.position="absolute",e.style.opacity="0",e.style.left="-999999px",e.style.top="-999999px",document.body.appendChild(e),e.focus(),e.select(),document.execCommand("copy"),e.remove()}},toLocaleString:(t,e)=>t&&Ru(t)?"undefined"!=typeof uni?(Yh||(Yh=uni.getAppBaseInfo().language),t.toLocaleString(Qh[Yh]||"zh-CN",e)):t.toLocaleString(navigator.language||"zh-CN",e):t,toLocaleString_i2x2(t,e){return e=tc(e||{},{minimumFractionDigits:2,maximumFractionDigits:2,useGrouping:!1}),this.toLocaleString(t,e)},toLocaleString_i2x2g(t,e){return e=tc(e||{},{minimumFractionDigits:2,maximumFractionDigits:2,useGrouping:!0}),this.toLocaleString(t,e)},toLocaleString_i2x4(t,e){return e=tc(e||{},{minimumFractionDigits:2,maximumFractionDigits:4,useGrouping:!1}),this.toLocaleString(t,e)},toLocaleString_i2x4g(t,e){return e=tc(e||{},{minimumFractionDigits:2,maximumFractionDigits:4,useGrouping:!0}),this.toLocaleString(t,e)},toLocaleString_i2x6(t,e){return e=tc(e||{},{minimumFractionDigits:2,maximumFractionDigits:6,useGrouping:!1}),this.toLocaleString(t,e)},toLocaleString_i2x6g(t,e){return e=tc(e||{},{minimumFractionDigits:2,maximumFractionDigits:6,useGrouping:!0}),this.toLocaleString(t,e)},toLocaleString_i4x4(t,e){return e=tc(e||{},{minimumFractionDigits:4,maximumFractionDigits:4,useGrouping:!1}),this.toLocaleString(t,e)},toLocaleString_i4x4g(t,e){return e=tc(e||{},{minimumFractionDigits:4,maximumFractionDigits:4,useGrouping:!0}),this.toLocaleString(t,e)},toLocaleString_i4x6(t,e){return e=tc(e||{},{minimumFractionDigits:4,maximumFractionDigits:6,useGrouping:!1}),this.toLocaleString(t,e)},toLocaleString_i4x6g(t,e){return e=tc(e||{},{minimumFractionDigits:4,maximumFractionDigits:6,useGrouping:!0}),this.toLocaleString(t,e)},toLocaleString_i6x6(t,e){return e=tc(e||{},{minimumFractionDigits:6,maximumFractionDigits:6,useGrouping:!1}),this.toLocaleString(t,e)},toLocaleString_i6x6g(t,e){return e=tc(e||{},{minimumFractionDigits:6,maximumFractionDigits:6,useGrouping:!0}),this.toLocaleString(t,e)}},ep=e.reactive({cacheKey:"__DEVICE_ID",deviceId:""}),rp=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,np=t=>(t??(t=ep.deviceId),t&&rp.test(t)?(Zh.set(ep.cacheKey,t),ep.deviceId=t,ep.deviceId):(t=Zh.get(ep.cacheKey))&&rp.test(t)?(ep.deviceId=t,t):(t=tp.generateUUID(),Zh.set(ep.cacheKey,t),ep.deviceId=t,t)),ip={objectToQueryString(t){let e="";for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(""!==e&&(e+="&"),e+=`${encodeURIComponent(r)}=${encodeURIComponent(t[r])}`);return e},objectToStyle:t=>k(t)?t.filter((function(t){return null!=t&&""!==t})).map((function(t){return ip.objectToStyle(t)})).join(";"):au(t)?t:W(t)?Object.keys(t).filter((function(e){return null!=t[e]&&""!==t[e]})).map((function(e){return[tp.toCamelCase(e),t[e]].join(":")})).join(";"):""},op=()=>{};return t.CACHE_EXPIRE_SUFFIX=Jh,t.CACHE_PREFIX=Gh,t.FastError=f,t.Local=Zh,t.Session=Vh,t.addUnit=(t,e="px")=>{return t?Ru(t)||au(r=t)&&!Number.isNaN(Number(r))?`${t}${e}`:au(t)?t:void il("document","binding value must be a string or number"):"";var r},t.arrayUtil=r,t.base64Util=a,t.clickUtil=s,t.colorUtil=l,t.consoleDebug=(t,e,r)=>{r?console.debug(`[Fast-Log-${t}]${e?` ${e}`:""}`,r):console.debug(`[Fast-Log-${t}]${e?` ${e}`:""}`)},t.consoleError=ol,t.consoleLog=(t,e,r)=>{r?console.log(`[Fast-Log-${t}]${e?` ${e}`:""}`,r):console.log(`[Fast-Log-${t}]${e?` ${e}`:""}`)},t.consoleWarn=il,t.cryptoUtil=Uh,t.dateUtil=Nh,t.definePropType=t=>t,t.envUtil=Kh,t.execFunction=async(t,...e)=>{if(!t)return Promise.resolve(void 0);if("AsyncFunction"!==t.constructor.name)return new Promise(((r,n)=>{try{return r(t(...e))}catch(t){return ol("execFunction",t),n(t)}}));try{return await t(...e)}catch(t){return ol("execFunction",t),Promise.reject(t)}},t.makeSlots=()=>Object,t.objectUtil=ip,t.stringUtil=tp,t.styleToString=t=>t?Object.entries(t).map((([t,e])=>`${t.replace(/([A-Z])/g,"-$1").toLowerCase()}: ${e};`)).join(" "):"",t.throwError=(t,e)=>{throw new f(`[Fast-${t}] ${e}`)},t.useExpose=(t,e)=>(t(e),e),t.useIdentity=()=>({...ep,makeIdentity:np}),t.useProps=(t,r,n)=>t?e.computed((()=>{const e=r?lc(r,n??[]):{};return Xc(t,Object.keys(e))})):e.computed((()=>({}))),t.useRender=t=>{const r=e.getCurrentInstance();if(!r)throw new f("useRender must be called from inside a setup function");r.render=t},t.useStorage=()=>({setPrefix(t){qh.prefix=t},setExpireSuffix(t){qh.expireSuffix=t},setCrypto(t){qh.crypto=t}}),t.withDefineType=(t=void 0)=>t,t.withInstall=(t,e)=>{if(t.install=r=>{for(const n of[t,...Object.values(e??{})])r.component(n.name,n)},e)for(const[r,n]of Object.entries(e))t[r]=n;return t},t.withInstallDirective=(t,e)=>(t.install=r=>{r.directive(e,t)},t),t.withNoopInstall=t=>(t.install=op,t),Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t}({},Vue);
37
+ return function(){var e=t,r=e.lib,n=r.WordArray,i=r.Hasher,o=e.algo,a=n.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]),u=n.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=n.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]),s=n.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]),f=n.create([0,1518500249,1859775393,2400959708,2840853838]),l=n.create([1352829926,1548603684,1836072691,2053994217,0]),h=o.RIPEMD160=i.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var r=0;r<16;r++){var n=e+r,i=t[n];t[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,h,m,b,x,w,S,j,A,B,k,O=this._hash.words,I=f.words,E=l.words,D=a.words,C=u.words,M=c.words,z=s.words;for(w=o=O[0],S=h=O[1],j=m=O[2],A=b=O[3],B=x=O[4],r=0;r<80;r+=1)k=o+t[e+D[r]]|0,k+=r<16?p(h,m,b)+I[0]:r<32?d(h,m,b)+I[1]:r<48?v(h,m,b)+I[2]:r<64?g(h,m,b)+I[3]:y(h,m,b)+I[4],k=(k=_(k|=0,M[r]))+x|0,o=x,x=b,b=_(m,10),m=h,h=k,k=w+t[e+C[r]]|0,k+=r<16?y(S,j,A)+E[0]:r<32?g(S,j,A)+E[1]:r<48?v(S,j,A)+E[2]:r<64?d(S,j,A)+E[3]:p(S,j,A)+E[4],k=(k=_(k|=0,z[r]))+B|0,w=B,B=A,A=_(j,10),j=S,S=k;k=O[1]+m+A|0,O[1]=O[2]+b+B|0,O[2]=O[3]+x+w|0,O[3]=O[4]+o+S|0,O[4]=O[0]+h+j|0,O[0]=k},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,n=8*t.sigBytes;e[n>>>5]|=128<<24-n%32,e[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),t.sigBytes=4*(e.length+1),this._process();for(var i=this._hash,o=i.words,a=0;a<5;a++){var u=o[a];o[a]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return i},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t}});function p(t,e,r){return t^e^r}function d(t,e,r){return t&e|~t&r}function v(t,e,r){return(t|~e)^r}function g(t,e,r){return t&r|e&~r}function y(t,e,r){return t^(e|~r)}function _(t,e){return t<<e|t>>>32-e}e.RIPEMD160=i._createHelper(h),e.HmacRIPEMD160=i._createHmacHelper(h)}(Math),t.RIPEMD160}(hl())),Jl(),Xl||(Xl=1,Zl.exports=function(t){var e,r,n,i,o,a,u,c;return n=(r=(e=t).lib).Base,i=r.WordArray,a=(o=e.algo).SHA256,u=o.HMAC,c=o.PBKDF2=n.extend({cfg:n.extend({keySize:4,hasher:a,iterations:25e4}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var r=this.cfg,n=u.create(r.hasher,t),o=i.create(),a=i.create([1]),c=o.words,s=a.words,f=r.keySize,l=r.iterations;c.length<f;){var h=n.update(e).finalize(a);n.reset();for(var p=h.words,d=p.length,v=h,g=1;g<l;g++){v=n.finalize(v),n.reset();for(var y=v.words,_=0;_<d;_++)p[_]^=y[_]}o.concat(h),s[0]++}return o.sigBytes=4*f,o}}),e.PBKDF2=function(t,e,r){return c.create(r).compute(t,e)},t.PBKDF2}(hl(),zl(),Jl())),Ql(),rh(),nh||(nh=1,ih.exports=function(t){return t.mode.CFB=function(){var e=t.lib.BlockCipherMode.extend();function r(t,e,r,n){var i,o=this._iv;o?(i=o.slice(0),this._iv=void 0):i=this._prevBlock,n.encryptBlock(i,0);for(var a=0;a<r;a++)t[e+a]^=i[a]}return e.Encryptor=e.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize;r.call(this,t,e,i,n),this._prevBlock=t.slice(e,e+i)}}),e.Decryptor=e.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize,o=t.slice(e,e+i);r.call(this,t,e,i,n),this._prevBlock=o}}),e}(),t.mode.CFB}(hl(),rh())),oh||(oh=1,ah.exports=function(t){var e,r;return t.mode.CTR=(r=(e=t.lib.BlockCipherMode.extend()).Encryptor=e.extend({processBlock:function(t,e){var r=this._cipher,n=r.blockSize,i=this._iv,o=this._counter;i&&(o=this._counter=i.slice(0),this._iv=void 0);var a=o.slice(0);r.encryptBlock(a,0),o[n-1]=o[n-1]+1|0;for(var u=0;u<n;u++)t[e+u]^=a[u]}}),e.Decryptor=r,e),t.mode.CTR}(hl(),rh())),sh(),fh||(fh=1,lh.exports=function(t){var e,r;return t.mode.OFB=(r=(e=t.lib.BlockCipherMode.extend()).Encryptor=e.extend({processBlock:function(t,e){var r=this._cipher,n=r.blockSize,i=this._iv,o=this._keystream;i&&(o=this._keystream=i.slice(0),this._iv=void 0),r.encryptBlock(o,0);for(var a=0;a<n;a++)t[e+a]^=o[a]}}),e.Decryptor=r,e),t.mode.OFB}(hl(),rh())),hh||(hh=1,ph.exports=function(t){var e;return t.mode.ECB=((e=t.lib.BlockCipherMode.extend()).Encryptor=e.extend({processBlock:function(t,e){this._cipher.encryptBlock(t,e)}}),e.Decryptor=e.extend({processBlock:function(t,e){this._cipher.decryptBlock(t,e)}}),e),t.mode.ECB}(hl(),rh())),dh||(dh=1,vh.exports=function(t){return t.pad.AnsiX923={pad:function(t,e){var r=t.sigBytes,n=4*e,i=n-r%n,o=r+i-1;t.clamp(),t.words[o>>>2]|=i<<24-o%4*8,t.sigBytes+=i},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},t.pad.Ansix923}(hl(),rh())),gh||(gh=1,yh.exports=function(t){return t.pad.Iso10126={pad:function(e,r){var n=4*r,i=n-e.sigBytes%n;e.concat(t.lib.WordArray.random(i-1)).concat(t.lib.WordArray.create([i<<24],1))},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},t.pad.Iso10126}(hl(),rh())),_h||(_h=1,mh.exports=function(t){return t.pad.Iso97971={pad:function(e,r){e.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(e,r)},unpad:function(e){t.pad.ZeroPadding.unpad(e),e.sigBytes--}},t.pad.Iso97971}(hl(),rh())),bh||(bh=1,xh.exports=function(t){return t.pad.ZeroPadding={pad:function(t,e){var r=4*e;t.clamp(),t.sigBytes+=r-(t.sigBytes%r||r)},unpad:function(t){var e=t.words,r=t.sigBytes-1;for(r=t.sigBytes-1;r>=0;r--)if(e[r>>>2]>>>24-r%4*8&255){t.sigBytes=r+1;break}}},t.pad.ZeroPadding}(hl(),rh())),wh||(wh=1,Sh.exports=function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding}(hl(),rh())),jh||(jh=1,Ah.exports=function(t){var e,r,n;return r=(e=t).lib.CipherParams,n=e.enc.Hex,e.format.Hex={stringify:function(t){return t.ciphertext.toString(n)},parse:function(t){var e=n.parse(t);return r.create({ciphertext:e})}},t.format.Hex}(hl(),rh())),Bh||(Bh=1,kh.exports=function(t){return function(){var e=t,r=e.lib.BlockCipher,n=e.algo,i=[],o=[],a=[],u=[],c=[],s=[],f=[],l=[],h=[],p=[];!function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var r=0,n=0;for(e=0;e<256;e++){var d=n^n<<1^n<<2^n<<3^n<<4;d=d>>>8^255&d^99,i[r]=d,o[d]=r;var v=t[r],g=t[v],y=t[g],_=257*t[d]^16843008*d;a[r]=_<<24|_>>>8,u[r]=_<<16|_>>>16,c[r]=_<<8|_>>>24,s[r]=_,_=16843009*y^65537*g^257*v^16843008*r,f[d]=_<<24|_>>>8,l[d]=_<<16|_>>>16,h[d]=_<<8|_>>>24,p[d]=_,r?(r=v^t[t[t[y^v]]],n^=t[t[n]]):r=n=1}}();var d=[0,1,2,4,8,16,32,64,128,27,54],v=n.AES=r.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,r=t.sigBytes/4,n=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],a=0;a<n;a++)a<r?o[a]=e[a]:(s=o[a-1],a%r?r>6&&a%r==4&&(s=i[s>>>24]<<24|i[s>>>16&255]<<16|i[s>>>8&255]<<8|i[255&s]):(s=i[(s=s<<8|s>>>24)>>>24]<<24|i[s>>>16&255]<<16|i[s>>>8&255]<<8|i[255&s],s^=d[a/r|0]<<24),o[a]=o[a-r]^s);for(var u=this._invKeySchedule=[],c=0;c<n;c++){if(a=n-c,c%4)var s=o[a];else s=o[a-4];u[c]=c<4||a<=4?s:f[i[s>>>24]]^l[i[s>>>16&255]]^h[i[s>>>8&255]]^p[i[255&s]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,a,u,c,s,i)},decryptBlock:function(t,e){var r=t[e+1];t[e+1]=t[e+3],t[e+3]=r,this._doCryptBlock(t,e,this._invKeySchedule,f,l,h,p,o),r=t[e+1],t[e+1]=t[e+3],t[e+3]=r},_doCryptBlock:function(t,e,r,n,i,o,a,u){for(var c=this._nRounds,s=t[e]^r[0],f=t[e+1]^r[1],l=t[e+2]^r[2],h=t[e+3]^r[3],p=4,d=1;d<c;d++){var v=n[s>>>24]^i[f>>>16&255]^o[l>>>8&255]^a[255&h]^r[p++],g=n[f>>>24]^i[l>>>16&255]^o[h>>>8&255]^a[255&s]^r[p++],y=n[l>>>24]^i[h>>>16&255]^o[s>>>8&255]^a[255&f]^r[p++],_=n[h>>>24]^i[s>>>16&255]^o[f>>>8&255]^a[255&l]^r[p++];s=v,f=g,l=y,h=_}v=(u[s>>>24]<<24|u[f>>>16&255]<<16|u[l>>>8&255]<<8|u[255&h])^r[p++],g=(u[f>>>24]<<24|u[l>>>16&255]<<16|u[h>>>8&255]<<8|u[255&s])^r[p++],y=(u[l>>>24]<<24|u[h>>>16&255]<<16|u[s>>>8&255]<<8|u[255&f])^r[p++],_=(u[h>>>24]<<24|u[s>>>16&255]<<16|u[f>>>8&255]<<8|u[255&l])^r[p++],t[e]=v,t[e+1]=g,t[e+2]=y,t[e+3]=_},keySize:8});e.AES=r._createHelper(v)}(),t.AES}(hl(),wl(),Ol(),Ql(),rh())),Oh||(Oh=1,Ih.exports=function(t){return function(){var e=t,r=e.lib,n=r.WordArray,i=r.BlockCipher,o=e.algo,a=[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],u=[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],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],s=[{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}],f=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],l=o.DES=i.extend({_doReset:function(){for(var t=this._key.words,e=[],r=0;r<56;r++){var n=a[r]-1;e[r]=t[n>>>5]>>>31-n%32&1}for(var i=this._subKeys=[],o=0;o<16;o++){var s=i[o]=[],f=c[o];for(r=0;r<24;r++)s[r/6|0]|=e[(u[r]-1+f)%28]<<31-r%6,s[4+(r/6|0)]|=e[28+(u[r+24]-1+f)%28]<<31-r%6;for(s[0]=s[0]<<1|s[0]>>>31,r=1;r<7;r++)s[r]=s[r]>>>4*(r-1)+3;s[7]=s[7]<<5|s[7]>>>27}var l=this._invSubKeys=[];for(r=0;r<16;r++)l[r]=i[15-r]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys)},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys)},_doCryptBlock:function(t,e,r){this._lBlock=t[e],this._rBlock=t[e+1],h.call(this,4,252645135),h.call(this,16,65535),p.call(this,2,858993459),p.call(this,8,16711935),h.call(this,1,1431655765);for(var n=0;n<16;n++){for(var i=r[n],o=this._lBlock,a=this._rBlock,u=0,c=0;c<8;c++)u|=s[c][((a^i[c])&f[c])>>>0];this._lBlock=a,this._rBlock=o^u}var l=this._lBlock;this._lBlock=this._rBlock,this._rBlock=l,h.call(this,1,1431655765),p.call(this,8,16711935),p.call(this,2,858993459),h.call(this,16,65535),h.call(this,4,252645135),t[e]=this._lBlock,t[e+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function h(t,e){var r=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=r,this._lBlock^=r<<t}function p(t,e){var r=(this._rBlock>>>t^this._lBlock)&e;this._lBlock^=r,this._rBlock^=r<<t}e.DES=i._createHelper(l);var d=o.TripleDES=i.extend({_doReset:function(){var t=this._key.words;if(2!==t.length&&4!==t.length&&t.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var e=t.slice(0,2),r=t.length<4?t.slice(0,2):t.slice(2,4),i=t.length<6?t.slice(0,2):t.slice(4,6);this._des1=l.createEncryptor(n.create(e)),this._des2=l.createEncryptor(n.create(r)),this._des3=l.createEncryptor(n.create(i))},encryptBlock:function(t,e){this._des1.encryptBlock(t,e),this._des2.decryptBlock(t,e),this._des3.encryptBlock(t,e)},decryptBlock:function(t,e){this._des3.decryptBlock(t,e),this._des2.encryptBlock(t,e),this._des1.decryptBlock(t,e)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=i._createHelper(d)}(),t.TripleDES}(hl(),wl(),Ol(),Ql(),rh())),Eh||(Eh=1,Dh.exports=function(t){return function(){var e=t,r=e.lib.StreamCipher,n=e.algo,i=n.RC4=r.extend({_doReset:function(){for(var t=this._key,e=t.words,r=t.sigBytes,n=this._S=[],i=0;i<256;i++)n[i]=i;i=0;for(var o=0;i<256;i++){var a=i%r,u=e[a>>>2]>>>24-a%4*8&255;o=(o+n[i]+u)%256;var c=n[i];n[i]=n[o],n[o]=c}this._i=this._j=0},_doProcessBlock:function(t,e){t[e]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var t=this._S,e=this._i,r=this._j,n=0,i=0;i<4;i++){r=(r+t[e=(e+1)%256])%256;var o=t[e];t[e]=t[r],t[r]=o,n|=t[(t[e]+t[r])%256]<<24-8*i}return this._i=e,this._j=r,n}e.RC4=r._createHelper(i);var a=n.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)o.call(this)}});e.RC4Drop=r._createHelper(a)}(),t.RC4}(hl(),wl(),Ol(),Ql(),rh())),Ch||(Ch=1,Mh.exports=function(t){return function(){var e=t,r=e.lib.StreamCipher,n=e.algo,i=[],o=[],a=[],u=n.Rabbit=r.extend({_doReset:function(){for(var t=this._key.words,e=this.cfg.iv,r=0;r<4;r++)t[r]=16711935&(t[r]<<8|t[r]>>>24)|4278255360&(t[r]<<24|t[r]>>>8);var n=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],i=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];for(this._b=0,r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)i[r]^=n[r+4&7];if(e){var o=e.words,a=o[0],u=o[1],s=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),f=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8),l=s>>>16|4294901760&f,h=f<<16|65535&s;for(i[0]^=s,i[1]^=l,i[2]^=f,i[3]^=h,i[4]^=s,i[5]^=l,i[6]^=f,i[7]^=h,r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(t,e){var r=this._X;c.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),t[e+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var t=this._X,e=this._C,r=0;r<8;r++)o[r]=e[r];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<o[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<o[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<o[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<o[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<o[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<o[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<o[6]>>>0?1:0)|0,this._b=e[7]>>>0<o[7]>>>0?1:0,r=0;r<8;r++){var n=t[r]+e[r],i=65535&n,u=n>>>16,c=((i*i>>>17)+i*u>>>15)+u*u,s=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=c^s}t[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,t[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,t[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,t[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,t[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,t[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,t[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,t[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.Rabbit=r._createHelper(u)}(),t.Rabbit}(hl(),wl(),Ol(),Ql(),rh())),zh||(zh=1,Rh.exports=function(t){return function(){var e=t,r=e.lib.StreamCipher,n=e.algo,i=[],o=[],a=[],u=n.RabbitLegacy=r.extend({_doReset:function(){var t=this._key.words,e=this.cfg.iv,r=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],n=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var i=0;i<4;i++)c.call(this);for(i=0;i<8;i++)n[i]^=r[i+4&7];if(e){var o=e.words,a=o[0],u=o[1],s=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),f=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8),l=s>>>16|4294901760&f,h=f<<16|65535&s;for(n[0]^=s,n[1]^=l,n[2]^=f,n[3]^=h,n[4]^=s,n[5]^=l,n[6]^=f,n[7]^=h,i=0;i<4;i++)c.call(this)}},_doProcessBlock:function(t,e){var r=this._X;c.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),t[e+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var t=this._X,e=this._C,r=0;r<8;r++)o[r]=e[r];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<o[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<o[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<o[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<o[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<o[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<o[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<o[6]>>>0?1:0)|0,this._b=e[7]>>>0<o[7]>>>0?1:0,r=0;r<8;r++){var n=t[r]+e[r],i=65535&n,u=n>>>16,c=((i*i>>>17)+i*u>>>15)+u*u,s=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=c^s}t[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,t[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,t[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,t[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,t[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,t[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,t[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,t[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.RabbitLegacy=r._createHelper(u)}(),t.RabbitLegacy}(hl(),wl(),Ol(),Ql(),rh())),Fh())),cl.exports);const Uh={aes:{encrypt:(t,e,r,n=Th.mode.CBC)=>t?(e.length<32&&(e=e.padEnd(32,"f")),e.length>32&&(e=e.substring(0,32)),r.length<16&&(r=r.padEnd(16,"f")),r.length>16&&(r=r.substring(0,16)),Th.AES.encrypt(t,Th.enc.Utf8.parse(e),{iv:Th.enc.Utf8.parse(r),mode:n}).toString()):t,decrypt(t,e,r,n=Th.mode.CBC){if(!t)return null;e.length<32&&(e=e.padEnd(32,"f")),e.length>32&&(e=e.substring(0,32)),r.length<16&&(r=r.padEnd(16,"f")),r.length>16&&(r=r.substring(0,16));const i=Th.AES.decrypt(t,Th.enc.Utf8.parse(e),{iv:Th.enc.Utf8.parse(r),mode:n});try{const t=i.toString(Th.enc.Utf8);return JSON.parse(t)}catch(t){return ol("AESCrypto",t),null}}},sha1:{encrypt:t=>t?Th.SHA1(t).toString(Th.enc.Hex).toUpperCase():t},MD5:{encrypt:t=>t?Th.MD5(t).toString(Th.enc.Hex).toUpperCase():t}},Nh={getGreet(){const t=(new Date).getHours();let e="";return e=t<5?"夜深了,注意身体哦!":t<9?"早上好!欢迎回来!":t<12?"上午好!欢迎回来!":t<14?"中午好!欢迎回来!":t<18?"下午好!欢迎回来!":t<24?"晚上好!欢迎回来!":"您好!欢迎回来!",e},dateTimeFix(t){if(null!=t&&t){"string"==typeof t&&(t=new Date(t));let e=t.getTime();if(e.toString().length<13){const t=e.toString().split("");for(let e=0;e<13;e++)t[e]||(t[e]="0");e=parseInt(t.join(""))}const r=6e4,n=60*r,i=24*n,o=30*i,a=(new Date).getTime()-e,u=a/o,c=a/(7*i),s=a/i,f=a/n,l=a/r;if(a<0){const t=Math.abs(u),e=Math.abs(c),r=Math.abs(s),n=Math.abs(f),i=Math.abs(l);return t>12?`${parseInt(""+t/12)}年后`:t>=6?"半年后":t>=1?`${parseInt(`${t}`)}月后`:e>2?"半月后":e>=1?`${parseInt(`${e}`)}周后`:r>=1?`${parseInt(`${r}`)}天后`:n>=1?`${parseInt(`${n}`)}小时后`:i>=1?`${parseInt(`${i}`)}分钟后`:"刚刚"}return u>12?`${parseInt(""+u/12)}年前`:u>=6?"半年前":u>=1?`${parseInt(`${u}`)}月前`:c>2?"半月前":c>=1?`${parseInt(`${c}`)}周前`:s>=1?`${parseInt(`${s}`)}天前`:f>=1?`${parseInt(`${f}`)}小时前`:l>=1?`${parseInt(`${l}`)}分钟前`:"刚刚"}return""},getDefaultTime(){const t=new Date,e=new Date;return e.setMonth(e.getMonth()-1),e.setHours(0,0,0),t.setHours(23,59,59),[e,t]},getSimpleTime(){const t=new Date;return t.setHours(0,0,0),t},getSimpleShortcuts:()=>[{text:"今天",value:()=>{const t=new Date;return t.setHours(0,0,0),t}},{text:"昨天",value:()=>{const t=new Date;return t.setDate(t.getDate()-1),t.setHours(0,0,0),t}},{text:"一周前",value:()=>{const t=new Date;return t.setDate(t.getDate()-7),t.setHours(0,0,0),t}},{text:"一月前",value:()=>{const t=new Date;return t.setMonth(t.getMonth()-1),t.setHours(0,0,0),t}},{text:"一年前",value:()=>{const t=new Date;return t.setFullYear(t.getFullYear()-1),t.setHours(0,0,0),t}}],getShortcuts:()=>[{text:"近1天",value:()=>{const t=new Date,e=new Date;return e.setDate(e.getDate()-1),e.setHours(0,0,0),t.setHours(23,59,59),[e,t]}},{text:"近3天",value:()=>{const t=new Date,e=new Date;return e.setDate(e.getDate()-3),e.setHours(0,0,0),t.setHours(23,59,59),[e,t]}},{text:"近1周",value:()=>{const t=new Date,e=new Date;return e.setDate(e.getDate()-7),e.setHours(0,0,0),t.setHours(23,59,59),[e,t]}},{text:"近1月",value:()=>{const t=new Date,e=new Date;return e.setMonth(e.getMonth()-1),e.setHours(0,0,0),t.setHours(23,59,59),[e,t]}},{text:"近3月",value:()=>{const t=new Date,e=new Date;return e.setMonth(e.getMonth()-3),e.setHours(0,0,0),t.setHours(23,59,59),[e,t]}},{text:"近6月",value:()=>{const t=new Date,e=new Date;return e.setMonth(e.getMonth()-6),e.setHours(0,0,0),t.setHours(23,59,59),[e,t]}},{text:"近1年",value:()=>{const t=new Date,e=new Date;return e.setFullYear(e.getFullYear()-1),e.setHours(0,0,0),t.setHours(23,59,59),[e,t]}}],getDisabledDate:t=>t.getTime()>Date.now()},Kh=t=>t?k(t)?t.filter((t=>t&&(null==t?void 0:t.length)>0)).map((t=>Kh(t))).join(" "):au(t)?t.trimEnd().endsWith(";")?t.trimEnd():`${t.trimEnd()};`:Object.entries(t).filter((([t,e])=>null!==e&&""!==e)).map((([t,e])=>`${t.replace(/([A-Z])/g,"-$1").toLowerCase()}:${e};`)).join(" "):"",qh={isUni:()=>"undefined"!=typeof uni,isWeb:()=>"undefined"!=typeof window&&void 0!==window.document,isMobile(){if(!this.isWeb())return!1;const t=navigator.userAgent||"";return/Mobile|iPhone|Android.*Mobile|Windows Phone/i.test(t)},isIpad(){if(!this.isWeb())return!1;const t=navigator.userAgent||"";return/iPad|Android(?!.*Mobile)|Tablet/i.test(t)}},Gh=e.reactive({prefix:"fast__",expireSuffix:"__Expire",crypto:!1}),Jh=e.computed((()=>Gh.prefix)),Xh=e.computed((()=>Gh.expireSuffix)),Zh={set(t,e){"undefined"!=typeof uni?uni.setStorageSync(t,e):window.localStorage.setItem(t,e)},get:t=>"undefined"!=typeof uni?uni.getStorageSync(t):window.localStorage.getItem(t),remove(t){"undefined"!=typeof uni?uni.removeStorageSync(t):window.localStorage.removeItem(t)},clear(){"undefined"!=typeof uni?uni.clearStorageSync():window.localStorage.clear()},keys:()=>"undefined"!=typeof uni?uni.getStorageInfoSync().keys:window.localStorage},Vh={set(t,e,r,n){try{if(n??(n=Gh.crypto),r){if(isNaN(r)||r<1)throw new f("有效期应为一个有效数值");const e={time:Date.now(),expire:r},n=JSON.stringify(e);Zh.set(`${Gh.prefix}${t}${Gh.expireSuffix}`,n)}let i=JSON.stringify(e);n&&(i=a.toBase64(i)),Zh.set(`${Gh.prefix}${t}`,i)}catch(t){ol("Local",t)}},get(t,e){try{e??(e=Gh.crypto);let r=Zh.get(`${Gh.prefix}${t}`);if(r){e&&(r=a.base64ToStr(r));const n=Zh.get(`${Gh.prefix}${t}${Gh.expireSuffix}`);if(n){const e=JSON.parse(n);if(Date.now()>e.time+60*e.expire*1e3)return Zh.remove(`${Gh.prefix}${t}`),Zh.remove(`${Gh.prefix}${t}${Gh.expireSuffix}`),null}try{return JSON.parse(r)}catch{return r}}return null}catch(t){ol("Local",t)}},remove(t){try{Zh.remove(`${Gh.prefix}${t}`),Zh.remove(`${Gh.prefix}${t}${Gh.expireSuffix}`)}catch(t){ol("Local",t)}},removeByPrefix(t){try{for(const e in Zh.keys)-1!==e.indexOf(`${Gh.prefix}${t}`)&&Zh.remove(e)}catch(t){ol("Local",t)}},clear(){try{Zh.clear()}catch(t){ol("Local",t)}}},Yh={set(t,e,r,n){if("undefined"==typeof uni)try{if(n??(n=Gh.crypto),r){if(isNaN(r)||r<1)throw new f("有效期应为一个有效数值");const e={time:Date.now(),expire:r},n=JSON.stringify(e);window.sessionStorage.setItem(`${Gh.prefix}${t}${Gh.expireSuffix}`,n)}let i=JSON.stringify(e);n&&(i=a.toBase64(i)),window.sessionStorage.setItem(`${Gh.prefix}${t}`,i)}catch(t){ol("Session",t)}else ol("Session","UniApp 环境下 [Session] 不可用。")},get(t,e){if("undefined"==typeof uni)try{e??(e=Gh.crypto);let r=window.sessionStorage.getItem(`${Gh.prefix}${t}`);if(r){e&&(r=a.base64ToStr(r));const n=window.sessionStorage.getItem(`${Gh.prefix}${t}${Gh.expireSuffix}`);if(n){const e=JSON.parse(n);if(Date.now()>e.time+60*e.expire*1e3)return window.sessionStorage.removeItem(`${Gh.prefix}${t}`),window.sessionStorage.removeItem(`${Gh.prefix}${t}${Gh.expireSuffix}`),null}try{return JSON.parse(r)}catch{return r}}return null}catch(t){ol("Session",t)}else ol("Session","UniApp 环境下 [Session] 不可用。")},remove(t){if("undefined"==typeof uni)try{window.sessionStorage.removeItem(`${Gh.prefix}${t}`),window.sessionStorage.removeItem(`${Gh.prefix}${t}${Gh.expireSuffix}`)}catch(t){ol("Session",t)}else ol("Session","UniApp 环境下 [Session] 不可用。")},removeByPrefix(t){if("undefined"==typeof uni)try{for(const e in window.sessionStorage)-1!==e.indexOf(`${Gh.prefix}${t}`)&&window.sessionStorage.removeItem(e)}catch(t){ol("Session",t)}else ol("Session","UniApp 环境下 [Session] 不可用。")},clear(){if("undefined"==typeof uni)try{window.sessionStorage.clear()}catch(t){ol("Session",t)}else ol("Session","UniApp 环境下 [Session] 不可用。")}};let Qh;const tp={zh:"zh-CN",en:"en-US",zh_CN:"zh-CN",zh_TW:"zh-TW"},ep={getUrlParams(t){const e=/[?&][^=?&]+=[^?&]+/g,r={};let n;for(;null!==(n=e.exec(t));){const[t,e]=n[0].substring(1).split("=");r[t]=decodeURIComponent(e)}return r},isJson:t=>!!au(t)&&(t=t.replace(/\s/g,"").replace(/\n|\r/,""),/^\{.*?\}$/.test(t)?/".*?":/.test(t):!!/^\[.*?\]$/.test(t)&&t.replace(/^\[/,"").replace(/\]$/,"").replace(/\},\{/g,"}\n{").split(/\n/).map((t=>ep.isJson(t))).reduce(((t,e)=>!!e))),splitCamelCase:t=>t?1===t.length?[t]:t.split(new RegExp("(?=\\p{Lu}\\p{Ll})|(?<=\\p{Ll})(?=\\p{Lu})","u")).filter((t=>t.length>0)):[],toCamelCase:t=>t?t.replace(/[-_](\w)/g,((t,e)=>e?e.toUpperCase():"")):"",firstCharToUpper:t=>t?t.charAt(0).toUpperCase()+t.slice(1):"",firstCharToLower:t=>t?t.charAt(0).toLowerCase()+t.slice(1):"",subStringWithEllipsis:(t,e,r="...")=>t?t.length>e?t.substring(0,e)+r:t:"",generateRandomString(t){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let r="";for(let n=0;n<t;n++){const t=Math.floor(62*Math.random());r+=e.charAt(t)}return r},generateUUID(){let t="";for(let e=0;e<32;e++){const r=16*Math.random()|0;8!==e&&12!==e&&16!==e&&20!==e||(t+="-"),t+=(12===e?4:16===e?3&r|8:r).toString(16)}return t},async copy(t){if("undefined"!=typeof uni)return new Promise(((e,r)=>{uni.setClipboardData({data:t,success:()=>{e()},fail:()=>{r()}})}));if((null==navigator?void 0:navigator.clipboard)&&window.isSecureContext)await navigator.clipboard.writeText(t);else{const e=document.createElement("textarea");e.value=t,e.style.position="absolute",e.style.opacity="0",e.style.left="-999999px",e.style.top="-999999px",document.body.appendChild(e),e.focus(),e.select(),document.execCommand("copy"),e.remove()}},toLocaleString:(t,e)=>t&&Ru(t)?"undefined"!=typeof uni?(Qh||(Qh=uni.getAppBaseInfo().language),t.toLocaleString(tp[Qh]||"zh-CN",e)):t.toLocaleString(navigator.language||"zh-CN",e):t,toLocaleString_i2x2(t,e){return e=tc(e||{},{minimumFractionDigits:2,maximumFractionDigits:2,useGrouping:!1}),this.toLocaleString(t,e)},toLocaleString_i2x2g(t,e){return e=tc(e||{},{minimumFractionDigits:2,maximumFractionDigits:2,useGrouping:!0}),this.toLocaleString(t,e)},toLocaleString_i2x4(t,e){return e=tc(e||{},{minimumFractionDigits:2,maximumFractionDigits:4,useGrouping:!1}),this.toLocaleString(t,e)},toLocaleString_i2x4g(t,e){return e=tc(e||{},{minimumFractionDigits:2,maximumFractionDigits:4,useGrouping:!0}),this.toLocaleString(t,e)},toLocaleString_i2x6(t,e){return e=tc(e||{},{minimumFractionDigits:2,maximumFractionDigits:6,useGrouping:!1}),this.toLocaleString(t,e)},toLocaleString_i2x6g(t,e){return e=tc(e||{},{minimumFractionDigits:2,maximumFractionDigits:6,useGrouping:!0}),this.toLocaleString(t,e)},toLocaleString_i4x4(t,e){return e=tc(e||{},{minimumFractionDigits:4,maximumFractionDigits:4,useGrouping:!1}),this.toLocaleString(t,e)},toLocaleString_i4x4g(t,e){return e=tc(e||{},{minimumFractionDigits:4,maximumFractionDigits:4,useGrouping:!0}),this.toLocaleString(t,e)},toLocaleString_i4x6(t,e){return e=tc(e||{},{minimumFractionDigits:4,maximumFractionDigits:6,useGrouping:!1}),this.toLocaleString(t,e)},toLocaleString_i4x6g(t,e){return e=tc(e||{},{minimumFractionDigits:4,maximumFractionDigits:6,useGrouping:!0}),this.toLocaleString(t,e)},toLocaleString_i6x6(t,e){return e=tc(e||{},{minimumFractionDigits:6,maximumFractionDigits:6,useGrouping:!1}),this.toLocaleString(t,e)},toLocaleString_i6x6g(t,e){return e=tc(e||{},{minimumFractionDigits:6,maximumFractionDigits:6,useGrouping:!0}),this.toLocaleString(t,e)}},rp=e.reactive({cacheKey:"__DEVICE_ID",deviceId:""}),np=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,ip=t=>(t??(t=rp.deviceId),t&&np.test(t)?(Vh.set(rp.cacheKey,t),rp.deviceId=t,rp.deviceId):(t=Vh.get(rp.cacheKey))&&np.test(t)?(rp.deviceId=t,t):(t=ep.generateUUID(),Vh.set(rp.cacheKey,t),rp.deviceId=t,t)),op={objectToQueryString(t){let e="";for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(""!==e&&(e+="&"),e+=`${encodeURIComponent(r)}=${encodeURIComponent(t[r])}`);return e},objectToStyle:t=>k(t)?t.filter((function(t){return null!=t&&""!==t})).map((function(t){return op.objectToStyle(t)})).join(";"):au(t)?t:W(t)?Object.keys(t).filter((function(e){return null!=t[e]&&""!==t[e]})).map((function(e){return[ep.toCamelCase(e),t[e]].join(":")})).join(";"):""},ap=()=>{};return t.CACHE_EXPIRE_SUFFIX=Xh,t.CACHE_PREFIX=Jh,t.FastError=f,t.Local=Vh,t.Session=Yh,t.addUnit=(t,e="px")=>{return t?Ru(t)||au(r=t)&&!Number.isNaN(Number(r))?`${t}${e}`:au(t)?t:void il("document","binding value must be a string or number"):"";var r},t.arrayUtil=r,t.base64Util=a,t.clickUtil=s,t.colorUtil=l,t.consoleDebug=(t,e,r)=>{r?console.debug(`[Fast-Log-${t}]${e?` ${e}`:""}`,r):console.debug(`[Fast-Log-${t}]${e?` ${e}`:""}`)},t.consoleError=ol,t.consoleLog=(t,e,r)=>{r?console.log(`[Fast-Log-${t}]${e?` ${e}`:""}`,r):console.log(`[Fast-Log-${t}]${e?` ${e}`:""}`)},t.consoleWarn=il,t.cryptoUtil=Uh,t.dateUtil=Nh,t.definePropType=t=>t,t.envUtil=qh,t.execFunction=async(t,...e)=>{if(!t)return Promise.resolve(void 0);if("AsyncFunction"!==t.constructor.name)return new Promise(((r,n)=>{try{return r(t(...e))}catch(t){return ol("execFunction",t),n(t)}}));try{return await t(...e)}catch(t){return ol("execFunction",t),Promise.reject(t)}},t.makeSlots=()=>Object,t.objectUtil=op,t.stringUtil=ep,t.styleToString=Kh,t.throwError=(t,e)=>{throw new f(`[Fast-${t}] ${e}`)},t.useExpose=(t,e)=>(t(e),e),t.useIdentity=()=>({...rp,makeIdentity:ip}),t.useProps=(t,r,n)=>t?e.computed((()=>{const e=r?lc(r,n??[]):{};return Xc(t,Object.keys(e))})):e.computed((()=>({}))),t.useRender=t=>{const r=e.getCurrentInstance();if(!r)throw new f("useRender must be called from inside a setup function");r.render=t},t.useStorage=()=>({setPrefix(t){Gh.prefix=t},setExpireSuffix(t){Gh.expireSuffix=t},setCrypto(t){Gh.crypto=t}}),t.withDefineType=(t=void 0)=>t,t.withInstall=(t,e)=>{if(t.install=r=>{for(const n of[t,...Object.values(e??{})])r.component(n.name,n)},e)for(const[r,n]of Object.entries(e))t[r]=n;return t},t.withInstallDirective=(t,e)=>(t.install=r=>{r.directive(e,t)},t),t.withNoopInstall=t=>(t.install=ap,t),Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t}({},Vue);
38
38
  //# sourceMappingURL=index.global.min.js.map