@gsc-basic/utils 1.0.12 → 1.0.13
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.
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var Br=Object.create;var re=Object.defineProperty,Sr=Object.defineProperties,Er=Object.getOwnPropertyDescriptor,kr=Object.getOwnPropertyDescriptors,Ar=Object.getOwnPropertyNames,ce=Object.getOwnPropertySymbols,Lr=Object.getPrototypeOf,Ie=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable;var Xe=(e,t,r)=>t in e?re(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,j=(e,t)=>{for(var r in t||(t={}))Ie.call(t,r)&&Xe(e,r,t[r]);if(ce)for(var r of ce(t))et.call(t,r)&&Xe(e,r,t[r]);return e},V=(e,t)=>Sr(e,kr(t));var tt=(e,t)=>{var r={};for(var n in e)Ie.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ce)for(var n of ce(e))t.indexOf(n)<0&&et.call(e,n)&&(r[n]=e[n]);return r};var Dr=(e,t)=>()=>(e&&(t=e(e=0)),t);var q=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),zr=(e,t)=>{for(var r in t)re(e,r,{get:t[r],enumerable:!0})},rt=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Ar(t))!Ie.call(e,o)&&o!==r&&re(e,o,{get:()=>t[o],enumerable:!(n=Er(t,o))||n.enumerable});return e};var Y=(e,t,r)=>(r=e!=null?Br(Lr(e)):{},rt(t||!e||!e.__esModule?re(r,"default",{value:e,enumerable:!0}):r,e)),$r=e=>rt(re({},"__esModule",{value:!0}),e);var k=Dr(()=>{});var K=q((me,yt)=>{k();(function(e,t){typeof me=="object"?yt.exports=me=t():typeof define=="function"&&define.amd?define([],t):e.CryptoJS=t()})(me,function(){var e=e||function(t,r){var n;if(typeof window!="undefined"&&window.crypto&&(n=window.crypto),typeof self!="undefined"&&self.crypto&&(n=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(n=globalThis.crypto),!n&&typeof window!="undefined"&&window.msCrypto&&(n=window.msCrypto),!n&&typeof global!="undefined"&&global.crypto&&(n=global.crypto),!n&&typeof require=="function")try{n=require("crypto")}catch(i){}var o=function(){if(n){if(typeof n.getRandomValues=="function")try{return n.getRandomValues(new Uint32Array(1))[0]}catch(i){}if(typeof n.randomBytes=="function")try{return n.randomBytes(4).readInt32LE()}catch(i){}}throw new Error("Native crypto module could not be used to get secure random number.")},c=Object.create||function(){function i(){}return function(a){var x;return i.prototype=a,x=new i,i.prototype=null,x}}(),f={},s=f.lib={},y=s.Base=function(){return{extend:function(i){var a=c(this);return i&&a.mixIn(i),(!a.hasOwnProperty("init")||this.init===a.init)&&(a.init=function(){a.$super.init.apply(this,arguments)}),a.init.prototype=a,a.$super=this,a},create:function(){var i=this.extend();return i.init.apply(i,arguments),i},init:function(){},mixIn:function(i){for(var a in i)i.hasOwnProperty(a)&&(this[a]=i[a]);i.hasOwnProperty("toString")&&(this.toString=i.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),u=s.WordArray=y.extend({init:function(i,a){i=this.words=i||[],a!=r?this.sigBytes=a:this.sigBytes=i.length*4},toString:function(i){return(i||B).stringify(this)},concat:function(i){var a=this.words,x=i.words,_=this.sigBytes,D=i.sigBytes;if(this.clamp(),_%4)for(var z=0;z<D;z++){var R=x[z>>>2]>>>24-z%4*8&255;a[_+z>>>2]|=R<<24-(_+z)%4*8}else for(var A=0;A<D;A+=4)a[_+A>>>2]=x[A>>>2];return this.sigBytes+=D,this},clamp:function(){var i=this.words,a=this.sigBytes;i[a>>>2]&=4294967295<<32-a%4*8,i.length=t.ceil(a/4)},clone:function(){var i=y.clone.call(this);return i.words=this.words.slice(0),i},random:function(i){for(var a=[],x=0;x<i;x+=4)a.push(o());return new u.init(a,i)}}),l=f.enc={},B=l.Hex={stringify:function(i){for(var a=i.words,x=i.sigBytes,_=[],D=0;D<x;D++){var z=a[D>>>2]>>>24-D%4*8&255;_.push((z>>>4).toString(16)),_.push((z&15).toString(16))}return _.join("")},parse:function(i){for(var a=i.length,x=[],_=0;_<a;_+=2)x[_>>>3]|=parseInt(i.substr(_,2),16)<<24-_%8*4;return new u.init(x,a/2)}},b=l.Latin1={stringify:function(i){for(var a=i.words,x=i.sigBytes,_=[],D=0;D<x;D++){var z=a[D>>>2]>>>24-D%4*8&255;_.push(String.fromCharCode(z))}return _.join("")},parse:function(i){for(var a=i.length,x=[],_=0;_<a;_++)x[_>>>2]|=(i.charCodeAt(_)&255)<<24-_%4*8;return new u.init(x,a)}},C=l.Utf8={stringify:function(i){try{return decodeURIComponent(escape(b.stringify(i)))}catch(a){throw new Error("Malformed UTF-8 data")}},parse:function(i){return b.parse(unescape(encodeURIComponent(i)))}},S=s.BufferedBlockAlgorithm=y.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(i){typeof i=="string"&&(i=C.parse(i)),this._data.concat(i),this._nDataBytes+=i.sigBytes},_process:function(i){var a,x=this._data,_=x.words,D=x.sigBytes,z=this.blockSize,R=z*4,A=D/R;i?A=t.ceil(A):A=t.max((A|0)-this._minBufferSize,0);var F=A*z,H=t.min(F*4,D);if(F){for(var d=0;d<F;d+=z)this._doProcessBlock(_,d);a=_.splice(0,F),x.sigBytes-=H}return new u.init(a,H)},clone:function(){var i=y.clone.call(this);return i._data=this._data.clone(),i},_minBufferSize:0}),T=s.Hasher=S.extend({cfg:y.extend(),init:function(i){this.cfg=this.cfg.extend(i),this.reset()},reset:function(){S.reset.call(this),this._doReset()},update:function(i){return this._append(i),this._process(),this},finalize:function(i){i&&this._append(i);var a=this._doFinalize();return a},blockSize:512/32,_createHelper:function(i){return function(a,x){return new i.init(x).finalize(a)}},_createHmacHelper:function(i){return function(a,x){return new L.HMAC.init(i,x).finalize(a)}}}),L=f.algo={};return f}(Math);return e})});var Oe=q((ge,xt)=>{k();(function(e,t){typeof ge=="object"?xt.exports=ge=t(K()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(ge,function(e){return function(){var t=e,r=t.lib,n=r.WordArray,o=t.enc,c=o.Base64={stringify:function(s){var y=s.words,u=s.sigBytes,l=this._map;s.clamp();for(var B=[],b=0;b<u;b+=3)for(var C=y[b>>>2]>>>24-b%4*8&255,S=y[b+1>>>2]>>>24-(b+1)%4*8&255,T=y[b+2>>>2]>>>24-(b+2)%4*8&255,L=C<<16|S<<8|T,i=0;i<4&&b+i*.75<u;i++)B.push(l.charAt(L>>>6*(3-i)&63));var a=l.charAt(64);if(a)for(;B.length%4;)B.push(a);return B.join("")},parse:function(s){var y=s.length,u=this._map,l=this._reverseMap;if(!l){l=this._reverseMap=[];for(var B=0;B<u.length;B++)l[u.charCodeAt(B)]=B}var b=u.charAt(64);if(b){var C=s.indexOf(b);C!==-1&&(y=C)}return f(s,y,l)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function f(s,y,u){for(var l=[],B=0,b=0;b<y;b++)if(b%4){var C=u[s.charCodeAt(b-1)]<<b%4*2,S=u[s.charCodeAt(b)]>>>6-b%4*2,T=C|S;l[B>>>2]|=T<<24-B%4*8,B++}return n.create(l,B)}}(),e.enc.Base64})});var Pe=q((ye,_t)=>{k();(function(e,t){typeof ye=="object"?_t.exports=ye=t(K()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(ye,function(e){return function(t){var r=e,n=r.lib,o=n.WordArray,c=n.Hasher,f=r.algo,s=[];(function(){for(var C=0;C<64;C++)s[C]=t.abs(t.sin(C+1))*4294967296|0})();var y=f.MD5=c.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(C,S){for(var T=0;T<16;T++){var L=S+T,i=C[L];C[L]=(i<<8|i>>>24)&16711935|(i<<24|i>>>8)&4278255360}var a=this._hash.words,x=C[S+0],_=C[S+1],D=C[S+2],z=C[S+3],R=C[S+4],A=C[S+5],F=C[S+6],H=C[S+7],d=C[S+8],w=C[S+9],E=C[S+10],p=C[S+11],$=C[S+12],I=C[S+13],P=C[S+14],N=C[S+15],h=a[0],v=a[1],m=a[2],g=a[3];h=u(h,v,m,g,x,7,s[0]),g=u(g,h,v,m,_,12,s[1]),m=u(m,g,h,v,D,17,s[2]),v=u(v,m,g,h,z,22,s[3]),h=u(h,v,m,g,R,7,s[4]),g=u(g,h,v,m,A,12,s[5]),m=u(m,g,h,v,F,17,s[6]),v=u(v,m,g,h,H,22,s[7]),h=u(h,v,m,g,d,7,s[8]),g=u(g,h,v,m,w,12,s[9]),m=u(m,g,h,v,E,17,s[10]),v=u(v,m,g,h,p,22,s[11]),h=u(h,v,m,g,$,7,s[12]),g=u(g,h,v,m,I,12,s[13]),m=u(m,g,h,v,P,17,s[14]),v=u(v,m,g,h,N,22,s[15]),h=l(h,v,m,g,_,5,s[16]),g=l(g,h,v,m,F,9,s[17]),m=l(m,g,h,v,p,14,s[18]),v=l(v,m,g,h,x,20,s[19]),h=l(h,v,m,g,A,5,s[20]),g=l(g,h,v,m,E,9,s[21]),m=l(m,g,h,v,N,14,s[22]),v=l(v,m,g,h,R,20,s[23]),h=l(h,v,m,g,w,5,s[24]),g=l(g,h,v,m,P,9,s[25]),m=l(m,g,h,v,z,14,s[26]),v=l(v,m,g,h,d,20,s[27]),h=l(h,v,m,g,I,5,s[28]),g=l(g,h,v,m,D,9,s[29]),m=l(m,g,h,v,H,14,s[30]),v=l(v,m,g,h,$,20,s[31]),h=B(h,v,m,g,A,4,s[32]),g=B(g,h,v,m,d,11,s[33]),m=B(m,g,h,v,p,16,s[34]),v=B(v,m,g,h,P,23,s[35]),h=B(h,v,m,g,_,4,s[36]),g=B(g,h,v,m,R,11,s[37]),m=B(m,g,h,v,H,16,s[38]),v=B(v,m,g,h,E,23,s[39]),h=B(h,v,m,g,I,4,s[40]),g=B(g,h,v,m,x,11,s[41]),m=B(m,g,h,v,z,16,s[42]),v=B(v,m,g,h,F,23,s[43]),h=B(h,v,m,g,w,4,s[44]),g=B(g,h,v,m,$,11,s[45]),m=B(m,g,h,v,N,16,s[46]),v=B(v,m,g,h,D,23,s[47]),h=b(h,v,m,g,x,6,s[48]),g=b(g,h,v,m,H,10,s[49]),m=b(m,g,h,v,P,15,s[50]),v=b(v,m,g,h,A,21,s[51]),h=b(h,v,m,g,$,6,s[52]),g=b(g,h,v,m,z,10,s[53]),m=b(m,g,h,v,E,15,s[54]),v=b(v,m,g,h,_,21,s[55]),h=b(h,v,m,g,d,6,s[56]),g=b(g,h,v,m,N,10,s[57]),m=b(m,g,h,v,F,15,s[58]),v=b(v,m,g,h,I,21,s[59]),h=b(h,v,m,g,R,6,s[60]),g=b(g,h,v,m,p,10,s[61]),m=b(m,g,h,v,D,15,s[62]),v=b(v,m,g,h,w,21,s[63]),a[0]=a[0]+h|0,a[1]=a[1]+v|0,a[2]=a[2]+m|0,a[3]=a[3]+g|0},_doFinalize:function(){var C=this._data,S=C.words,T=this._nDataBytes*8,L=C.sigBytes*8;S[L>>>5]|=128<<24-L%32;var i=t.floor(T/4294967296),a=T;S[(L+64>>>9<<4)+15]=(i<<8|i>>>24)&16711935|(i<<24|i>>>8)&4278255360,S[(L+64>>>9<<4)+14]=(a<<8|a>>>24)&16711935|(a<<24|a>>>8)&4278255360,C.sigBytes=(S.length+1)*4,this._process();for(var x=this._hash,_=x.words,D=0;D<4;D++){var z=_[D];_[D]=(z<<8|z>>>24)&16711935|(z<<24|z>>>8)&4278255360}return x},clone:function(){var C=c.clone.call(this);return C._hash=this._hash.clone(),C}});function u(C,S,T,L,i,a,x){var _=C+(S&T|~S&L)+i+x;return(_<<a|_>>>32-a)+S}function l(C,S,T,L,i,a,x){var _=C+(S&L|T&~L)+i+x;return(_<<a|_>>>32-a)+S}function B(C,S,T,L,i,a,x){var _=C+(S^T^L)+i+x;return(_<<a|_>>>32-a)+S}function b(C,S,T,L,i,a,x){var _=C+(T^(S|~L))+i+x;return(_<<a|_>>>32-a)+S}r.MD5=c._createHelper(y),r.HmacMD5=c._createHmacHelper(y)}(Math),e.MD5})});var bt=q((xe,wt)=>{k();(function(e,t){typeof xe=="object"?wt.exports=xe=t(K()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(xe,function(e){return function(){var t=e,r=t.lib,n=r.WordArray,o=r.Hasher,c=t.algo,f=[],s=c.SHA1=o.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(y,u){for(var l=this._hash.words,B=l[0],b=l[1],C=l[2],S=l[3],T=l[4],L=0;L<80;L++){if(L<16)f[L]=y[u+L]|0;else{var i=f[L-3]^f[L-8]^f[L-14]^f[L-16];f[L]=i<<1|i>>>31}var a=(B<<5|B>>>27)+T+f[L];L<20?a+=(b&C|~b&S)+1518500249:L<40?a+=(b^C^S)+1859775393:L<60?a+=(b&C|b&S|C&S)-1894007588:a+=(b^C^S)-899497514,T=S,S=C,C=b<<30|b>>>2,b=B,B=a}l[0]=l[0]+B|0,l[1]=l[1]+b|0,l[2]=l[2]+C|0,l[3]=l[3]+S|0,l[4]=l[4]+T|0},_doFinalize:function(){var y=this._data,u=y.words,l=this._nDataBytes*8,B=y.sigBytes*8;return u[B>>>5]|=128<<24-B%32,u[(B+64>>>9<<4)+14]=Math.floor(l/4294967296),u[(B+64>>>9<<4)+15]=l,y.sigBytes=u.length*4,this._process(),this._hash},clone:function(){var y=o.clone.call(this);return y._hash=this._hash.clone(),y}});t.SHA1=o._createHelper(s),t.HmacSHA1=o._createHmacHelper(s)}(),e.SHA1})});var Bt=q((_e,Ct)=>{k();(function(e,t){typeof _e=="object"?Ct.exports=_e=t(K()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(_e,function(e){(function(){var t=e,r=t.lib,n=r.Base,o=t.enc,c=o.Utf8,f=t.algo,s=f.HMAC=n.extend({init:function(y,u){y=this._hasher=new y.init,typeof u=="string"&&(u=c.parse(u));var l=y.blockSize,B=l*4;u.sigBytes>B&&(u=y.finalize(u)),u.clamp();for(var b=this._oKey=u.clone(),C=this._iKey=u.clone(),S=b.words,T=C.words,L=0;L<l;L++)S[L]^=1549556828,T[L]^=909522486;b.sigBytes=C.sigBytes=B,this.reset()},reset:function(){var y=this._hasher;y.reset(),y.update(this._iKey)},update:function(y){return this._hasher.update(y),this},finalize:function(y){var u=this._hasher,l=u.finalize(y);u.reset();var B=u.finalize(this._oKey.clone().concat(l));return B}})})()})});var Ue=q((we,St)=>{k();(function(e,t,r){typeof we=="object"?St.exports=we=t(K(),bt(),Bt()):typeof define=="function"&&define.amd?define(["./core","./sha1","./hmac"],t):t(e.CryptoJS)})(we,function(e){return function(){var t=e,r=t.lib,n=r.Base,o=r.WordArray,c=t.algo,f=c.MD5,s=c.EvpKDF=n.extend({cfg:n.extend({keySize:128/32,hasher:f,iterations:1}),init:function(y){this.cfg=this.cfg.extend(y)},compute:function(y,u){for(var l,B=this.cfg,b=B.hasher.create(),C=o.create(),S=C.words,T=B.keySize,L=B.iterations;S.length<T;){l&&b.update(l),l=b.update(y).finalize(u),b.reset();for(var i=1;i<L;i++)l=b.finalize(l),b.reset();C.concat(l)}return C.sigBytes=T*4,C}});t.EvpKDF=function(y,u,l){return s.create(l).compute(y,u)}}(),e.EvpKDF})});var Ce=q((be,Et)=>{k();(function(e,t,r){typeof be=="object"?Et.exports=be=t(K(),Ue()):typeof define=="function"&&define.amd?define(["./core","./evpkdf"],t):t(e.CryptoJS)})(be,function(e){e.lib.Cipher||function(t){var r=e,n=r.lib,o=n.Base,c=n.WordArray,f=n.BufferedBlockAlgorithm,s=r.enc,y=s.Utf8,u=s.Base64,l=r.algo,B=l.EvpKDF,b=n.Cipher=f.extend({cfg:o.extend(),createEncryptor:function(d,w){return this.create(this._ENC_XFORM_MODE,d,w)},createDecryptor:function(d,w){return this.create(this._DEC_XFORM_MODE,d,w)},init:function(d,w,E){this.cfg=this.cfg.extend(E),this._xformMode=d,this._key=w,this.reset()},reset:function(){f.reset.call(this),this._doReset()},process:function(d){return this._append(d),this._process()},finalize:function(d){d&&this._append(d);var w=this._doFinalize();return w},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function d(w){return typeof w=="string"?H:R}return function(w){return{encrypt:function(E,p,$){return d(p).encrypt(w,E,p,$)},decrypt:function(E,p,$){return d(p).decrypt(w,E,p,$)}}}}()}),C=n.StreamCipher=b.extend({_doFinalize:function(){var d=this._process(!0);return d},blockSize:1}),S=r.mode={},T=n.BlockCipherMode=o.extend({createEncryptor:function(d,w){return this.Encryptor.create(d,w)},createDecryptor:function(d,w){return this.Decryptor.create(d,w)},init:function(d,w){this._cipher=d,this._iv=w}}),L=S.CBC=function(){var d=T.extend();d.Encryptor=d.extend({processBlock:function(E,p){var $=this._cipher,I=$.blockSize;w.call(this,E,p,I),$.encryptBlock(E,p),this._prevBlock=E.slice(p,p+I)}}),d.Decryptor=d.extend({processBlock:function(E,p){var $=this._cipher,I=$.blockSize,P=E.slice(p,p+I);$.decryptBlock(E,p),w.call(this,E,p,I),this._prevBlock=P}});function w(E,p,$){var I,P=this._iv;P?(I=P,this._iv=t):I=this._prevBlock;for(var N=0;N<$;N++)E[p+N]^=I[N]}return d}(),i=r.pad={},a=i.Pkcs7={pad:function(d,w){for(var E=w*4,p=E-d.sigBytes%E,$=p<<24|p<<16|p<<8|p,I=[],P=0;P<p;P+=4)I.push($);var N=c.create(I,p);d.concat(N)},unpad:function(d){var w=d.words[d.sigBytes-1>>>2]&255;d.sigBytes-=w}},x=n.BlockCipher=b.extend({cfg:b.cfg.extend({mode:L,padding:a}),reset:function(){var d;b.reset.call(this);var w=this.cfg,E=w.iv,p=w.mode;this._xformMode==this._ENC_XFORM_MODE?d=p.createEncryptor:(d=p.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==d?this._mode.init(this,E&&E.words):(this._mode=d.call(p,this,E&&E.words),this._mode.__creator=d)},_doProcessBlock:function(d,w){this._mode.processBlock(d,w)},_doFinalize:function(){var d,w=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(w.pad(this._data,this.blockSize),d=this._process(!0)):(d=this._process(!0),w.unpad(d)),d},blockSize:128/32}),_=n.CipherParams=o.extend({init:function(d){this.mixIn(d)},toString:function(d){return(d||this.formatter).stringify(this)}}),D=r.format={},z=D.OpenSSL={stringify:function(d){var w,E=d.ciphertext,p=d.salt;return p?w=c.create([1398893684,1701076831]).concat(p).concat(E):w=E,w.toString(u)},parse:function(d){var w,E=u.parse(d),p=E.words;return p[0]==1398893684&&p[1]==1701076831&&(w=c.create(p.slice(2,4)),p.splice(0,4),E.sigBytes-=16),_.create({ciphertext:E,salt:w})}},R=n.SerializableCipher=o.extend({cfg:o.extend({format:z}),encrypt:function(d,w,E,p){p=this.cfg.extend(p);var $=d.createEncryptor(E,p),I=$.finalize(w),P=$.cfg;return _.create({ciphertext:I,key:E,iv:P.iv,algorithm:d,mode:P.mode,padding:P.padding,blockSize:d.blockSize,formatter:p.format})},decrypt:function(d,w,E,p){p=this.cfg.extend(p),w=this._parse(w,p.format);var $=d.createDecryptor(E,p).finalize(w.ciphertext);return $},_parse:function(d,w){return typeof d=="string"?w.parse(d,this):d}}),A=r.kdf={},F=A.OpenSSL={execute:function(d,w,E,p,$){if(p||(p=c.random(64/8)),$)var I=B.create({keySize:w+E,hasher:$}).compute(d,p);else var I=B.create({keySize:w+E}).compute(d,p);var P=c.create(I.words.slice(w),E*4);return I.sigBytes=w*4,_.create({key:I,iv:P,salt:p})}},H=n.PasswordBasedCipher=R.extend({cfg:R.cfg.extend({kdf:F}),encrypt:function(d,w,E,p){p=this.cfg.extend(p);var $=p.kdf.execute(E,d.keySize,d.ivSize,p.salt,p.hasher);p.iv=$.iv;var I=R.encrypt.call(this,d,w,$.key,p);return I.mixIn($),I},decrypt:function(d,w,E,p){p=this.cfg.extend(p),w=this._parse(w,p.format);var $=p.kdf.execute(E,d.keySize,d.ivSize,w.salt,p.hasher);p.iv=$.iv;var I=R.decrypt.call(this,d,w,$.key,p);return I}})}()})});var At=q((Be,kt)=>{k();(function(e,t,r){typeof Be=="object"?kt.exports=Be=t(K(),Oe(),Pe(),Ue(),Ce()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],t):t(e.CryptoJS)})(Be,function(e){return function(){var t=e,r=t.lib,n=r.BlockCipher,o=t.algo,c=[],f=[],s=[],y=[],u=[],l=[],B=[],b=[],C=[],S=[];(function(){for(var i=[],a=0;a<256;a++)a<128?i[a]=a<<1:i[a]=a<<1^283;for(var x=0,_=0,a=0;a<256;a++){var D=_^_<<1^_<<2^_<<3^_<<4;D=D>>>8^D&255^99,c[x]=D,f[D]=x;var z=i[x],R=i[z],A=i[R],F=i[D]*257^D*16843008;s[x]=F<<24|F>>>8,y[x]=F<<16|F>>>16,u[x]=F<<8|F>>>24,l[x]=F;var F=A*16843009^R*65537^z*257^x*16843008;B[D]=F<<24|F>>>8,b[D]=F<<16|F>>>16,C[D]=F<<8|F>>>24,S[D]=F,x?(x=z^i[i[i[A^z]]],_^=i[i[_]]):x=_=1}})();var T=[0,1,2,4,8,16,32,64,128,27,54],L=o.AES=n.extend({_doReset:function(){var i;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var a=this._keyPriorReset=this._key,x=a.words,_=a.sigBytes/4,D=this._nRounds=_+6,z=(D+1)*4,R=this._keySchedule=[],A=0;A<z;A++)A<_?R[A]=x[A]:(i=R[A-1],A%_?_>6&&A%_==4&&(i=c[i>>>24]<<24|c[i>>>16&255]<<16|c[i>>>8&255]<<8|c[i&255]):(i=i<<8|i>>>24,i=c[i>>>24]<<24|c[i>>>16&255]<<16|c[i>>>8&255]<<8|c[i&255],i^=T[A/_|0]<<24),R[A]=R[A-_]^i);for(var F=this._invKeySchedule=[],H=0;H<z;H++){var A=z-H;if(H%4)var i=R[A];else var i=R[A-4];H<4||A<=4?F[H]=i:F[H]=B[c[i>>>24]]^b[c[i>>>16&255]]^C[c[i>>>8&255]]^S[c[i&255]]}}},encryptBlock:function(i,a){this._doCryptBlock(i,a,this._keySchedule,s,y,u,l,c)},decryptBlock:function(i,a){var x=i[a+1];i[a+1]=i[a+3],i[a+3]=x,this._doCryptBlock(i,a,this._invKeySchedule,B,b,C,S,f);var x=i[a+1];i[a+1]=i[a+3],i[a+3]=x},_doCryptBlock:function(i,a,x,_,D,z,R,A){for(var F=this._nRounds,H=i[a]^x[0],d=i[a+1]^x[1],w=i[a+2]^x[2],E=i[a+3]^x[3],p=4,$=1;$<F;$++){var I=_[H>>>24]^D[d>>>16&255]^z[w>>>8&255]^R[E&255]^x[p++],P=_[d>>>24]^D[w>>>16&255]^z[E>>>8&255]^R[H&255]^x[p++],N=_[w>>>24]^D[E>>>16&255]^z[H>>>8&255]^R[d&255]^x[p++],h=_[E>>>24]^D[H>>>16&255]^z[d>>>8&255]^R[w&255]^x[p++];H=I,d=P,w=N,E=h}var I=(A[H>>>24]<<24|A[d>>>16&255]<<16|A[w>>>8&255]<<8|A[E&255])^x[p++],P=(A[d>>>24]<<24|A[w>>>16&255]<<16|A[E>>>8&255]<<8|A[H&255])^x[p++],N=(A[w>>>24]<<24|A[E>>>16&255]<<16|A[H>>>8&255]<<8|A[d&255])^x[p++],h=(A[E>>>24]<<24|A[H>>>16&255]<<16|A[d>>>8&255]<<8|A[w&255])^x[p++];i[a]=I,i[a+1]=P,i[a+2]=N,i[a+3]=h},keySize:256/32});t.AES=n._createHelper(L)}(),e.AES})});var Dt=q((Se,Lt)=>{k();(function(e,t){typeof Se=="object"?Lt.exports=Se=t(K()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(Se,function(e){return e.enc.Utf8})});var $t=q((Ee,zt)=>{k();(function(e,t,r){typeof Ee=="object"?zt.exports=Ee=t(K(),Ce()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],t):t(e.CryptoJS)})(Ee,function(e){return e.pad.Pkcs7})});var It=q((ke,Tt)=>{k();(function(e,t,r){typeof ke=="object"?Tt.exports=ke=t(K(),Ce()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],t):t(e.CryptoJS)})(ke,function(e){return e.mode.ECB=function(){var t=e.lib.BlockCipherMode.extend();return t.Encryptor=t.extend({processBlock:function(r,n){this._cipher.encryptBlock(r,n)}}),t.Decryptor=t.extend({processBlock:function(r,n){this._cipher.decryptBlock(r,n)}}),t}(),e.mode.ECB})});var Kr={};zr(Kr,{AesEncryption:()=>Ae,IfActivity:()=>ae,ResizeObserver:()=>ze.default,addClass:()=>Mt,addLocationListener:()=>Xt,addResizeListener:()=>Yt,buildBEM:()=>ve,buildShortUUID:()=>br,buildUUID:()=>wr,clearWorkerInterval:()=>W.clearInterval,clearWorkerTimeout:()=>W.clearTimeout,createBEM:()=>mt,createNamespace:()=>gt,createSearchReg:()=>pt,dataURLtoBlob:()=>Me,decodeByBase64:()=>Pt,deepMerge:()=>Re,domOffEvent:()=>Vt,domOnEvent:()=>Jt,downloadByBase64:()=>qe,downloadByData:()=>Ke,downloadByOnlineUrl:()=>tr,downloadByUrl:()=>rr,downloadPercent:()=>er,enableTransitions:()=>ft,encryptByBase64:()=>Ot,encryptByMd5:()=>Ut,escapeStringRegexp:()=>Ge,extendSlots:()=>or,filterTree:()=>gr,findNode:()=>hr,findNodeAll:()=>pr,findPath:()=>vr,findPathAll:()=>mr,forEachTree:()=>yr,getActualWidthOfChars:()=>vt,getBoundingClientRect:()=>Ne,getRawRoute:()=>dt,getSlot:()=>Ze,getViewportOffset:()=>qt,hackCss:()=>Kt,hasClass:()=>De,highlightHtml:()=>nr,is:()=>Fe,isBrowser:()=>he,isChineseText:()=>ct,isChrome:()=>de,isClient:()=>ue,isIterableArray:()=>fe,isMatch:()=>dr,isNumeric:()=>st,isObject:()=>ne,isPositiveInteger:()=>it,isSafari:()=>le,isServer:()=>ie,isSupportNativeEllipsis:()=>ot,isSupportResizeObserver:()=>at,isUrl:()=>nt,loadScript:()=>ar,matcher:()=>ur,openWindow:()=>pe,pathToRegexp:()=>X.pathToRegexp,regexpMap:()=>Q,regexpToPath:()=>X.compile,removeClass:()=>jt,removeResizeListener:()=>Gt,setCssVar:()=>Nt,setObjToUrlParams:()=>lt,setWorkerInterval:()=>W.setInterval,setWorkerTimeout:()=>W.setTimeout,titleCase:()=>Cr.titleCase,treeMap:()=>xr,treeMapEach:()=>Te,triggerWindowResize:()=>Qt,unloadScript:()=>cr,unsetAllProperty:()=>ht,urlToBase64:()=>je,useRafThrottle:()=>Zt,withInstall:()=>ut});module.exports=$r(Kr);k();var Cr=require("title-case");k();var M=require("lodash-es");k();k();var X=require("path-to-regexp"),Q={mobile:/^(?:(?:\+|00)86)?1[3-9]\d{9}$/,tel:/^(?:(?:\d{3}-)?\d{8}|(?:\d{4}-)?\d{7,8})(?:-\d+)?$/,numAndLetter:/^[A-Z0-9]+$/i,password:/^\S*(?=\S{6,})(?=\S*\d)(?=\S*[A-Z])(?=\S*[a-z])(?=\S*[!@#$%^&*? ])\S+$/,email:/^[A-Z0-9\u4E00-\u9FA5]+@[\w-]+(?:\.[\w-]+)+$/i,postalCode:/^(0[1-7]|1[0-356]|2[0-7]|3[0-6]|4[0-7]|5[1-7]|6[1-7]|7[0-5]|8[013-6])\d{4}$/,identityCard:/^[1-9]\d{5}(?:18|19|20)\d{2}(?:0[1-9]|10|11|12)(?:0[1-9]|[12]\d|30|31)\d{3}[\dX]$/i,ip:/^((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.){3}(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(?::(?:\d|[1-9]\d{1,3}|[1-5]\d{4}|6[0-4]\d{3}|65[0-4]\d{2}|655[0-2]\d|6553[0-5]))?$/,url:/^(((ht|f)tps?):\/\/)?([^!@#$%^&*?.\s-][^!@#$%^&*?.\s]{0,64}\.)+[a-z]{2,6}\/?/,httpsUrl:/^https:\/\//,domain:/^([0-9a-z-]+\.)+([a-z]{2,})$/i,plateNumber:/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z][A-HJ-NP-Z0-9]{4,5}[A-HJ-NP-Z0-9挂学警港澳]$/,md5:/^[a-f0-9]{32}$/i,base64:/^\s*data:(?:[a-z]+\/[a-z0-9-+.]+(?:;[a-z-]+=[a-z0-9-]+)?)?(?:;base64)?,([\w!$&',()*+;=\-.~:@/?%\s]*?)\s*$/i,uuid:/^[a-f\d]{4}(?:[a-f\d]{4}-){4}[a-f\d]{12}$/i,version:/^\d+(?:\.\d+){2}$/,videoUrl:/^https?:\/\/(.+\/)+.+(\.(swf|avi|flv|mpg|rm|mov|wav|asf|3gp|mkv|rmvb|mp4))$/i,imageUrl:/^https?:\/\/(.+\/)+.+(\.(gif|png|jpg|jpeg|webp|svg|psd|bmp|tif))$/i,chinese:/^(?:[\u3400-\u4DB5\u4E00-\u9FEA\uFA0E\uFA0F\uFA11\uFA13\uFA14\uFA1F\uFA21\uFA23\uFA24\uFA27-\uFA29]|[\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0])+$/,itcode:/^[a-z]+\d*$/i,numeric:/^\d+$/};var Tr=Object.prototype.toString;function Fe(e,t){return Tr.call(e)===`[object ${t}]`}function ne(e){return e!==null&&Fe(e,"Object")}function nt(e){return Q.url.test(e)}function fe(e){return Array.isArray(e)&&e.length>0}function it(e){return Number.isInteger(e)&&e>=0}function st(e){return Q.numeric.test(e)}var ie=typeof window=="undefined",ue=!ie,de=ue&&window.navigator.userAgent.toLowerCase().includes("chrome"),le=ue&&window.navigator.userAgent.toLowerCase().includes("safari"),he=typeof window!="undefined"&&typeof document!="undefined",ot=he&&typeof document.body.style.lineClamp!="undefined",at=he&&typeof ResizeObserver!="undefined",ct=e=>Q.chinese.test(e),ft=()=>"startViewTransition"in document&&window.matchMedia("(prefers-reduced-motion: no-preference)").matches;var ut=(e,t)=>{let r=e;return r.install=n=>{n.component(r.name||r.displayName,e),t&&(n.config.globalProperties[t]=e)},e};function dt(e){if(!e)return e;let n=e,{matched:t}=n,r=tt(n,["matched"]);return V(j({},r),{matched:t?t.map(o=>({meta:o.meta,name:o.name,path:o.path})):void 0})}function pe(e,t){let{target:r="__blank",noopener:n=!0,noreferrer:o=!0}=t||{},c=[];n&&c.push("noopener=yes"),o&&c.push("noreferrer=yes"),window.open(e,r,c.join(","))}function Re(e,t,r="replace"){return t?e?(0,M.mergeWith)(e,t,(n,o)=>{if((0,M.isArray)(o)&&(0,M.isArray)(n))switch(r){case"union":return(0,M.unionWith)(n,o,M.isEqual);case"intersection":return(0,M.intersectionWith)(n,o,M.isEqual);case"concat":return n.concat(o);case"replace":return o;default:throw new Error(`Unknown merge array strategy: ${r}`)}if(ne(o)&&ne(n))return Re(n,o,r)}):t:e}function lt(e,t){if(!fe(Object.keys(t)))return e;let r="";for(let n in t)r+=`${n}=${encodeURIComponent(t[n])}&`;return r=r.replace(/&$/,""),/\?$/.test(e)?e+r:e.replace(/\/?$/,"?")+r}function ht(e){(0,M.isPlainObject)(e)&&Object.keys(e).forEach(t=>{Reflect.deleteProperty(e,t)})}function Ir(e){return["$","(",")","*","+",".","[","]","?","\\","^","{","}","|"].includes(e)?`\\${e}`:e}function pt(e){let r=["",...[...e].map(n=>Ir(n)),""].join(".*");return new RegExp(r,"i")}function vt(e="",t={}){let{size:r=14,family:n=getComputedStyle(document.documentElement).getPropertyValue("--vxe-font-family")||"sans-serif"}=t,c=document.createElement("canvas").getContext("2d");c.font=`${r}px ${n}`;let f=c.measureText(e),s=Math.abs(f.actualBoundingBoxLeft)+Math.abs(f.actualBoundingBoxRight);return Math.ceil(Math.max(f.width,s))}k();function He(e,t){return t?typeof t=="string"?` ${e}--${t}`:Array.isArray(t)?t.reduce((r,n)=>r+He(e,n),""):Object.keys(t).reduce((r,n)=>r+(t[n]?He(e,n):""),""):""}function ve(e){return(t,r)=>(t&&typeof t!="string"&&(r=t,t=""),t=t?`${e}__${t}`:e,`${t}${He(t,r)}`)}function mt(e,t=""){return[ve(`${t}-${e}`)]}function gt(e,t=""){let r=`${t}-${e}`;return[r,ve(r)]}k();var Le=Y(At(),1),G=Y(Dt(),1),Ft=Y($t(),1),Rt=Y(It(),1),Ht=Y(Pe(),1),We=Y(Oe(),1),Ae=class{constructor(t){let{key:r,iv:n}=t;r&&(this.key=(0,G.parse)(r)),n&&(this.iv=(0,G.parse)(n))}get getOptions(){return{mode:Rt.default,padding:Ft.default,iv:this.iv}}encryptByAES(t){return(0,Le.encrypt)(t,this.key,this.getOptions).toString()}decryptByAES(t){return(0,Le.decrypt)(t,this.key,this.getOptions).toString(G.default)}};function Ot(e){return G.default.parse(e).toString(We.default)}function Pt(e){return We.default.parse(e).toString(G.default)}function Ut(e){return(0,Ht.default)(e).toString()}k();var Wt=require("lodash-es");var Fr=()=>document.documentElement;function Ne(e){return!e||!e.getBoundingClientRect?0:e.getBoundingClientRect()}function Rr(e){return(e||"").replace(/^\s+|\s+$/g,"")}function De(e,t){if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList?e.classList.contains(t):` ${e.className} `.includes(` ${t} `)}function Nt(e,t,r){return r||(r=Fr()),r.style.setProperty(e,t),{prop:t}}function Mt(e,t){if(!e)return;let r=e.className,n=(t||"").split(" ");for(let o=0,c=n.length;o<c;o++){let f=n[o];f&&(e.classList?e.classList.add(f):De(e,f)||(r+=` ${f}`))}e.classList||(e.className=r)}function jt(e,t){if(!e||!t)return;let r=t.split(" "),n=` ${e.className} `;for(let o=0,c=r.length;o<c;o++){let f=r[o];f&&(e.classList?e.classList.remove(f):De(e,f)&&(n=n.replace(` ${f} `," ")))}e.classList||(e.className=Rr(n))}function qt(e){let t=document.documentElement,r=t.scrollLeft,n=t.scrollTop,o=t.clientLeft,c=t.clientTop,f=window.scrollX,s=window.scrollY,y=Ne(e);if(!y)return{};let{left:u,top:l,width:B,height:b}=y,C=(f||r)-(o||0),S=(s||n)-(c||0),T=u+f,L=l+s,i=T-C,a=L-S,x=window.document.documentElement.clientWidth,_=window.document.documentElement.clientHeight;return{left:i,top:a,right:x-B-i,bottom:_-b-a,rightIncludeBody:x-i,bottomIncludeBody:_-a}}function Kt(e,t){let r=["webkit","Moz","ms","OT"],n={};return r.forEach(o=>{n[`${o}${(0,Wt.upperFirst)(e)}`]=t}),V(j({},n),{[e]:t})}function Jt(e,t,r){e&&t&&r&&e.addEventListener(t,r,!1)}function Vt(e,t,r){e&&t&&r&&e.removeEventListener(t,r,!1)}function Zt(e){let t=!1;return function(...r){t||(t=!0,window.requestAnimationFrame(()=>{e.apply(this,r),t=!1}))}}k();var ze=Y(require("resize-observer-polyfill"),1);function Hr(e){for(let t of e){let r=t.target.__resizeListeners__||[];r.length&&r.forEach(n=>{n()})}}function Yt(e,t){ie||(e.__resizeListeners__||(e.__resizeListeners__=[],e.__ro__=new ze.default(Hr),e.__ro__.observe(e)),e.__resizeListeners__.push(t))}function Gt(e,t){!e||!e.__resizeListeners__||(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),e.__resizeListeners__.length||(e.__ro__.disconnect(),e.__ro__=null,e.__resizeListeners__=null))}function Qt(){let e=new Event("resize",{bubbles:!0,cancelable:!0});window.dispatchEvent(e)}function Xt(e,t={}){function r(n){let o=window.history[n];return function(...c){let f=new Event(n);return f.arguments=c,window.dispatchEvent(f),o.apply(this,c)}}return window.history.pushState=r("pushState"),window.history.replaceState=r("replaceState"),window.addEventListener("popstate",e,t),window.addEventListener("hashchange",e,t),window.addEventListener("replaceState",e,t),window.addEventListener("pushState",e,t),{removeListener:()=>{window.removeEventListener("popstate",e,t),window.removeEventListener("hashchange",e,t),window.removeEventListener("replaceState",e,t),window.removeEventListener("pushState",e,t)}}}k();var $e=require("lodash-es");function Me(e){let t=e.split(","),n=t[0].match(/:(.*?);/)[1],o=window.atob(t[1]),c=o.length,f=new Uint8Array(c);for(;c--;)f[c]=o.charCodeAt(c);return new Blob([f],{type:n})}function je(e,t){return new Promise((r,n)=>{let o=document.createElement("CANVAS"),c=o.getContext("2d"),f=new Image;f.crossOrigin="",f.onload=function(){if(!o||!c)return n();o.height=f.height,o.width=f.width,c.drawImage(f,0,0);let s=o.toDataURL(t||"image/png");o=null,r(s)},f.src=e})}function er(e){let{loaded:t,total:r}=e;if(r<=0||(0,$e.isNil)(r))return 0;let n=t/r;return(0,$e.round)((n>1?1:n)*100)}function tr(e,t,r,n){je(e).then(o=>{qe(o,t,r,n)})}function qe(e,t,r,n){let o=Me(e);Ke(o,t,r,n)}function Ke(e,t,r,n){let o=typeof n!="undefined"?[n,e]:[e],c=new Blob(o,{type:r||"application/octet-stream"});if(typeof window.navigator.msSaveBlob!="undefined")window.navigator.msSaveBlob(c,t);else{let f=window.URL.createObjectURL(c),s=document.createElement("a");s.style.display="none",s.href=f,s.setAttribute("download",t),typeof s.download=="undefined"&&s.setAttribute("target","_blank"),document.body.appendChild(s),s.click(),document.body.removeChild(s),window.URL.revokeObjectURL(f)}}function rr({url:e,target:t="_blank",fileName:r}){if(/iP/.test(window.navigator.userAgent))return!1;if(de||le){let n=document.createElement("a");return n.href=e,n.download=r||e.substring(e.lastIndexOf("/")+1,e.length),n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n),!0}return e.includes("?")||(e+="?download"),pe(e,{target:t}),!0}k();var Or=(e,t,r="ig")=>{let n=new RegExp(t,r);return[...e.matchAll(n)].map(s=>({index:s.index,subString:s[0]}))};function Pr(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}var Ur=(e,t)=>{let r=e;if(!t)return r;let{tagName:n="mark",bgColor:o,color:c,style:f={},renderHighlightKeyword:s}=t;if(typeof s=="function")return s(e);f.backgroundColor=o,f.color=c;let u=`style="${Object.keys(f).map(l=>`${Pr(l)}:${f[l]}`).join(";")}"`;return`<${n} ${u}>${r}</${n}>`},Wr=(e,t)=>{let r="";return t.forEach(n=>{let{start:o,end:c,option:f}=n,s=e.slice(o,c),y=Ur(s,f);r+=y,n.subString=y}),r},Nr=(e,t)=>{let r=[];return t.forEach(n=>{let o={keyword:""};typeof n=="string"?o={keyword:n}:o=n;let{keyword:c,caseSensitive:f=!0}=o,s=Or(e,c,f?"g":"gi"),y={keyword:c,indexList:s,option:o};r.push(y)}),r},Mr=(e,t)=>{let r=Nr(e,t),n=[],o=(f,s)=>{for(let y=0;y<n.length;y++){let u=n[y];if(f>u.start&&f<u.end||f+s>u.start&&f+s<u.end||u.start>f&&u.start<f+s||u.end>f&&u.end<f+s||f===u.start&&f+s===u.end)return-1;if(f+s<=u.start)return y}return n.length};r.forEach(({indexList:f,option:s})=>{f.forEach(y=>{let{index:u,subString:l}=y,B={start:u,end:u+l.length,option:s},b=o(u,l.length);b!==-1&&n.splice(b,0,B)})});let c=[];return n.forEach((f,s)=>{let{start:y,end:u}=f,l=n[s+1];s===0&&y>0&&c.push({start:0,end:y,subString:e.slice(0,y)}),c.push(V(j({},f),{subString:e.slice(y,u)})),(l==null?void 0:l.start)>u&&c.push({start:u,end:l.start,subString:e.slice(u,l.start)}),s===n.length-1&&u<e.length-1&&c.push({start:u,end:e.length-1,subString:e.slice(u,e.length)})}),c},nr=(e,t)=>{let r=Mr(e,t);return{highText:Wr(e,r),highList:r}};k();var W=require("worker-timers"),Z="active",Je="idle",ir="hidden",ee,se,oe,J={},U={attach(e,t){J[e]||(J[e]=[]),J[e].push(t)},fire(e,t=[]){J[e]&&J[e].forEach(r=>{r(...t)})},remove(e,t){t||Reflect.deleteProperty(J,e),J[e]&&(J[e]=J[e].filter(r=>t!==r))},dom(e,t,r){return oe||(e.addEventListener?oe=(n,o,c)=>n.addEventListener(o,c,!1):typeof e.attachEvent=="function"?oe=(n,o,c)=>n.attachEvent(`on${o}`,c,!1):oe=(n,o,c)=>n[`on${o}`]=c),oe(e,t,r)}},Ve=class{constructor(t,r,n){this.activity=t,this.seconds=r,this.callback=n,this.stopped=!1,this.start(),this.activity.on("statusChanged",o=>{this.stopped===!1&&(o.status===Z?this.start():this.pause())})}start(){this.stopped=!1,(0,W.clearInterval)(this.token),this.token=(0,W.setInterval)(this.callback,this.seconds*1e3)}stop(){this.stopped=!0,(0,W.clearInterval)(this.token)}resume(){this.start()}pause(){this.stop()}},ae=class{constructor(){if(this.status=Z,this.timers=[],this.idleTime=3e4,this.isLegacyModeOn=!1,document.hidden!==void 0?(ee="hidden",se="visibilitychange"):document.mozHidden!==void 0?(ee="mozHidden",se="mozvisibilitychange"):document.msHidden!==void 0?(ee="msHidden",se="msvisibilitychange"):document.webkitHidden!==void 0&&(ee="webkitHidden",se="webkitvisibilitychange"),ee===void 0)this.legacyMode();else{let t=()=>{document[ee]?this.blur():this.focus()};t(),U.dom(document,se,t)}this.startIdleTimer(),this.trackIdleStatus()}legacyMode(){this.isLegacyModeOn||(U.dom(window,"blur",()=>this.blur()),U.dom(window,"focus",()=>this.focus()),this.isLegacyModeOn=!0)}startIdleTimer(t){t instanceof MouseEvent&&t.movementX===0&&t.movementY===0||(this.timers.map(W.clearTimeout),this.timers.length=0,this.status===Je&&this.wakeUp(),this.idleStartedTime=+new Date,this.timers.push((0,W.setTimeout)(()=>{if(this.status===Z||this.status===ir)return this.idle()},this.idleTime)))}trackIdleStatus(){U.dom(document,"mousemove",this.startIdleTimer.bind(this)),U.dom(document,"mousedown",this.startIdleTimer.bind(this)),U.dom(document,"keyup",this.startIdleTimer.bind(this)),U.dom(document,"touchstart",this.startIdleTimer.bind(this)),U.dom(window,"scroll",this.startIdleTimer.bind(this)),this.focus(this.startIdleTimer.bind(this))}on(t,r){return U.attach(t,r),this}off(t,r){return U.remove(t,r),this}setIdleDuration(t){return this.idleTime=t*1e3,this.startIdleTimer(),this}getIdleDuration(){return this.idleTime}getIdleInfo(){let t=+new Date,r;if(this.status===Je)r={isIdle:!0,idleFor:t-this.idleStartedTime,timeLeft:0,timeLeftPer:100};else{let n=this.idleStartedTime+this.idleTime-t;r={isIdle:!1,idleFor:t-this.idleStartedTime,timeLeft:n,timeLeftPer:Number.parseFloat((100-n*100/this.idleTime).toFixed(2))}}return r}idle(t){return t?this.on("idle",t):(this.status=Je,U.fire("idle"),U.fire("statusChanged",[{status:this.status}])),this}blur(t){return t?this.on("blur",t):(this.status=ir,U.fire("blur"),U.fire("statusChanged",[{status:this.status}])),this}focus(t){return t?this.on("focus",t):this.status!==Z&&(this.status=Z,U.fire("focus"),U.fire("wakeUp"),U.fire("statusChanged",[{status:this.status}])),this}wakeUp(t){return t?this.on("wakeUp",t):this.status!==Z&&(this.status=Z,U.fire("wakeUp"),U.fire("statusChanged",[{status:this.status}])),this}onEvery(t,r){return new Ve(this,t,r)}now(t){return t!==void 0?this.status===t:this.status===Z}};k();var sr=require("lodash-es");function Ze(e,t="default",r){if(!e||!Reflect.has(e,t)||!(0,sr.isFunction)(e[t]))return null;let n=e[t];return n?n(r):null}function or(e,t=[]){let r=Object.keys(e),n={};return r.forEach(o=>{if(t.includes(o))return null;n[o]=c=>Ze(e,o,c)}),n}k();function ar(e,{type:t="text/javascript"}={}){return new Promise((r,n)=>{let o=!1,c=document.querySelector(`script[src="${e}"]`);if(!c)c=document.createElement("script"),c.type=t,c.async=!0,c.src=e,o=!0;else if(c.hasAttribute("data-loaded")){r({el:c});return}c.addEventListener("error",n),c.addEventListener("abort",n),c.addEventListener("load",()=>{c.setAttribute("data-loaded",!0),r({el:c})}),o&&document.head.appendChild(c)})}function cr(e){return new Promise((t,r)=>{let n=document.querySelector(`script[src="${e}"]`);if(!n){r();return}document.head.removeChild(n),t()})}k();function ur(e,t,r){return lr(e,t,r,!1)}function dr(e,t,r){return lr(e,t,r,!0).length>0}function Ge(e){return typeof e!="string"?e:e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Ye=new Map;function fr(e,t){if(!Array.isArray(e))switch(typeof e){case"string":e=[e];break;case"undefined":e=[];break;default:throw new TypeError(`Expected '${t}' to be a string or an array, but got a type of '${typeof e}'`)}return e.filter(r=>{if(typeof r!="string"){if(typeof r=="undefined")return!1;throw new TypeError(`Expected '${t}' to be an array of strings, but found a type of '${typeof r}' in the array`)}return!0})}function jr(e,t){t=j({caseSensitive:!1},t);let r=e+JSON.stringify(t);if(Ye.has(r))return Ye.get(r);let n=e[0]==="!";n&&(e=e.slice(1)),e=Ge(e).replace(/\\\*/g,"[\\s\\S]*");let o=new RegExp(`^${e}$`,t.caseSensitive?"":"i");return o.negated=n,Ye.set(r,o),o}function lr(e,t,r,n){if(e=fr(e,"inputs"),t=fr(t,"patterns"),t.length===0)return[];t=t.map(f=>jr(f,r));let{allPatterns:o}=r||{},c=[];for(let f of e){let s,y=[...t].fill(!1);for(let[u,l]of t.entries())if(l.test(f)&&(y[u]=!0,s=!l.negated,!s))break;if(!(s===!1||s===void 0&&t.some(u=>!u.negated)||o&&y.some((u,l)=>!u&&!t[l].negated))&&(c.push(f),n))break}return c}k();var qr={id:"id",children:"children",pid:"pid"},te=e=>Object.assign({},qr,e);function hr(e,t,r={}){r=te(r);let{children:n}=r,o=[...e];for(let c of o){if(t(c))return c;c[n]&&o.push(...c[n])}return null}function pr(e,t,r={}){r=te(r);let{children:n}=r,o=[...e],c=[];for(let f of o)t(f)&&c.push(f),f[n]&&o.push(...f[n]);return c}function vr(e,t,r={}){r=te(r);let n=[],o=[...e],c=new Set,{children:f}=r;for(;o.length;){let s=o[0];if(c.has(s))n.pop(),o.shift();else if(c.add(s),s[f]&&o.unshift(...s[f]),n.push(s),t(s))return n}return null}function mr(e,t,r={}){r=te(r);let n=[],o=[...e],c=[],f=new Set,{children:s}=r;for(;o.length;){let y=o[0];f.has(y)?(n.pop(),o.shift()):(f.add(y),y[s]&&o.unshift(...y[s]),n.push(y),t(y)&&c.push([...n]))}return c}function gr(e,t,r={}){r=te(r);let n=r.children;function o(c){return c.map(f=>j({},f)).filter(f=>(f[n]=f[n]&&o(f[n]),t(f)||f[n]&&f[n].length))}return o(e)}function yr(e,t,r={}){r=te(r);let n=[...e],{children:o}=r;for(let c=0;c<n.length;c++){if(t(n[c]))return;o&&n[c][o]&&n.splice(c+1,0,...n[c][o])}}function xr(e,t){return e.map(r=>Te(r,t))}function Te(e,{children:t="children",conversion:r}){let n=Array.isArray(e[t])&&e[t].length>0,o=r(e)||{};return n?V(j({},o),{[t]:e[t].map(c=>Te(c,{children:t,conversion:r}))}):j({},o)}k();var Qe=require("uuid");function wr({native:e=!0}={}){var t,r,n;return e?(n=(r=(t=window.crypto)==null?void 0:t.randomUUID)==null?void 0:r.call(t))!=null?n:(0,Qe.v4)():(0,Qe.v4)()}var _r=0;function br(e=""){let t=Date.now(),r=Math.floor(Math.random()*1e9);return _r++,`${e}_${r}${_r}${String(t)}`}0&&(module.exports={AesEncryption,IfActivity,ResizeObserver,addClass,addLocationListener,addResizeListener,buildBEM,buildShortUUID,buildUUID,clearWorkerInterval,clearWorkerTimeout,createBEM,createNamespace,createSearchReg,dataURLtoBlob,decodeByBase64,deepMerge,domOffEvent,domOnEvent,downloadByBase64,downloadByData,downloadByOnlineUrl,downloadByUrl,downloadPercent,enableTransitions,encryptByBase64,encryptByMd5,escapeStringRegexp,extendSlots,filterTree,findNode,findNodeAll,findPath,findPathAll,forEachTree,getActualWidthOfChars,getBoundingClientRect,getRawRoute,getSlot,getViewportOffset,hackCss,hasClass,highlightHtml,is,isBrowser,isChineseText,isChrome,isClient,isIterableArray,isMatch,isNumeric,isObject,isPositiveInteger,isSafari,isServer,isSupportNativeEllipsis,isSupportResizeObserver,isUrl,loadScript,matcher,openWindow,pathToRegexp,regexpMap,regexpToPath,removeClass,removeResizeListener,setCssVar,setObjToUrlParams,setWorkerInterval,setWorkerTimeout,titleCase,treeMap,treeMapEach,triggerWindowResize,unloadScript,unsetAllProperty,urlToBase64,useRafThrottle,withInstall});
|
|
1
|
+
var Br=Object.create;var re=Object.defineProperty,Sr=Object.defineProperties,Er=Object.getOwnPropertyDescriptor,kr=Object.getOwnPropertyDescriptors,Ar=Object.getOwnPropertyNames,ce=Object.getOwnPropertySymbols,Lr=Object.getPrototypeOf,Ie=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable;var Xe=(e,t,r)=>t in e?re(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,j=(e,t)=>{for(var r in t||(t={}))Ie.call(t,r)&&Xe(e,r,t[r]);if(ce)for(var r of ce(t))et.call(t,r)&&Xe(e,r,t[r]);return e},V=(e,t)=>Sr(e,kr(t));var tt=(e,t)=>{var r={};for(var n in e)Ie.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ce)for(var n of ce(e))t.indexOf(n)<0&&et.call(e,n)&&(r[n]=e[n]);return r};var Dr=(e,t)=>()=>(e&&(t=e(e=0)),t);var q=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),zr=(e,t)=>{for(var r in t)re(e,r,{get:t[r],enumerable:!0})},rt=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Ar(t))!Ie.call(e,o)&&o!==r&&re(e,o,{get:()=>t[o],enumerable:!(n=Er(t,o))||n.enumerable});return e};var Y=(e,t,r)=>(r=e!=null?Br(Lr(e)):{},rt(t||!e||!e.__esModule?re(r,"default",{value:e,enumerable:!0}):r,e)),$r=e=>rt(re({},"__esModule",{value:!0}),e);var k=Dr(()=>{});var K=q((me,yt)=>{k();(function(e,t){typeof me=="object"?yt.exports=me=t():typeof define=="function"&&define.amd?define([],t):e.CryptoJS=t()})(me,function(){var e=e||function(t,r){var n;if(typeof window!="undefined"&&window.crypto&&(n=window.crypto),typeof self!="undefined"&&self.crypto&&(n=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(n=globalThis.crypto),!n&&typeof window!="undefined"&&window.msCrypto&&(n=window.msCrypto),!n&&typeof global!="undefined"&&global.crypto&&(n=global.crypto),!n&&typeof require=="function")try{n=require("crypto")}catch(i){}var o=function(){if(n){if(typeof n.getRandomValues=="function")try{return n.getRandomValues(new Uint32Array(1))[0]}catch(i){}if(typeof n.randomBytes=="function")try{return n.randomBytes(4).readInt32LE()}catch(i){}}throw new Error("Native crypto module could not be used to get secure random number.")},c=Object.create||function(){function i(){}return function(a){var x;return i.prototype=a,x=new i,i.prototype=null,x}}(),f={},s=f.lib={},y=s.Base=function(){return{extend:function(i){var a=c(this);return i&&a.mixIn(i),(!a.hasOwnProperty("init")||this.init===a.init)&&(a.init=function(){a.$super.init.apply(this,arguments)}),a.init.prototype=a,a.$super=this,a},create:function(){var i=this.extend();return i.init.apply(i,arguments),i},init:function(){},mixIn:function(i){for(var a in i)i.hasOwnProperty(a)&&(this[a]=i[a]);i.hasOwnProperty("toString")&&(this.toString=i.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),u=s.WordArray=y.extend({init:function(i,a){i=this.words=i||[],a!=r?this.sigBytes=a:this.sigBytes=i.length*4},toString:function(i){return(i||B).stringify(this)},concat:function(i){var a=this.words,x=i.words,_=this.sigBytes,D=i.sigBytes;if(this.clamp(),_%4)for(var z=0;z<D;z++){var R=x[z>>>2]>>>24-z%4*8&255;a[_+z>>>2]|=R<<24-(_+z)%4*8}else for(var A=0;A<D;A+=4)a[_+A>>>2]=x[A>>>2];return this.sigBytes+=D,this},clamp:function(){var i=this.words,a=this.sigBytes;i[a>>>2]&=4294967295<<32-a%4*8,i.length=t.ceil(a/4)},clone:function(){var i=y.clone.call(this);return i.words=this.words.slice(0),i},random:function(i){for(var a=[],x=0;x<i;x+=4)a.push(o());return new u.init(a,i)}}),l=f.enc={},B=l.Hex={stringify:function(i){for(var a=i.words,x=i.sigBytes,_=[],D=0;D<x;D++){var z=a[D>>>2]>>>24-D%4*8&255;_.push((z>>>4).toString(16)),_.push((z&15).toString(16))}return _.join("")},parse:function(i){for(var a=i.length,x=[],_=0;_<a;_+=2)x[_>>>3]|=parseInt(i.substr(_,2),16)<<24-_%8*4;return new u.init(x,a/2)}},b=l.Latin1={stringify:function(i){for(var a=i.words,x=i.sigBytes,_=[],D=0;D<x;D++){var z=a[D>>>2]>>>24-D%4*8&255;_.push(String.fromCharCode(z))}return _.join("")},parse:function(i){for(var a=i.length,x=[],_=0;_<a;_++)x[_>>>2]|=(i.charCodeAt(_)&255)<<24-_%4*8;return new u.init(x,a)}},C=l.Utf8={stringify:function(i){try{return decodeURIComponent(escape(b.stringify(i)))}catch(a){throw new Error("Malformed UTF-8 data")}},parse:function(i){return b.parse(unescape(encodeURIComponent(i)))}},S=s.BufferedBlockAlgorithm=y.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(i){typeof i=="string"&&(i=C.parse(i)),this._data.concat(i),this._nDataBytes+=i.sigBytes},_process:function(i){var a,x=this._data,_=x.words,D=x.sigBytes,z=this.blockSize,R=z*4,A=D/R;i?A=t.ceil(A):A=t.max((A|0)-this._minBufferSize,0);var F=A*z,H=t.min(F*4,D);if(F){for(var d=0;d<F;d+=z)this._doProcessBlock(_,d);a=_.splice(0,F),x.sigBytes-=H}return new u.init(a,H)},clone:function(){var i=y.clone.call(this);return i._data=this._data.clone(),i},_minBufferSize:0}),T=s.Hasher=S.extend({cfg:y.extend(),init:function(i){this.cfg=this.cfg.extend(i),this.reset()},reset:function(){S.reset.call(this),this._doReset()},update:function(i){return this._append(i),this._process(),this},finalize:function(i){i&&this._append(i);var a=this._doFinalize();return a},blockSize:512/32,_createHelper:function(i){return function(a,x){return new i.init(x).finalize(a)}},_createHmacHelper:function(i){return function(a,x){return new L.HMAC.init(i,x).finalize(a)}}}),L=f.algo={};return f}(Math);return e})});var Oe=q((ge,xt)=>{k();(function(e,t){typeof ge=="object"?xt.exports=ge=t(K()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(ge,function(e){return function(){var t=e,r=t.lib,n=r.WordArray,o=t.enc,c=o.Base64={stringify:function(s){var y=s.words,u=s.sigBytes,l=this._map;s.clamp();for(var B=[],b=0;b<u;b+=3)for(var C=y[b>>>2]>>>24-b%4*8&255,S=y[b+1>>>2]>>>24-(b+1)%4*8&255,T=y[b+2>>>2]>>>24-(b+2)%4*8&255,L=C<<16|S<<8|T,i=0;i<4&&b+i*.75<u;i++)B.push(l.charAt(L>>>6*(3-i)&63));var a=l.charAt(64);if(a)for(;B.length%4;)B.push(a);return B.join("")},parse:function(s){var y=s.length,u=this._map,l=this._reverseMap;if(!l){l=this._reverseMap=[];for(var B=0;B<u.length;B++)l[u.charCodeAt(B)]=B}var b=u.charAt(64);if(b){var C=s.indexOf(b);C!==-1&&(y=C)}return f(s,y,l)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function f(s,y,u){for(var l=[],B=0,b=0;b<y;b++)if(b%4){var C=u[s.charCodeAt(b-1)]<<b%4*2,S=u[s.charCodeAt(b)]>>>6-b%4*2,T=C|S;l[B>>>2]|=T<<24-B%4*8,B++}return n.create(l,B)}}(),e.enc.Base64})});var Pe=q((ye,_t)=>{k();(function(e,t){typeof ye=="object"?_t.exports=ye=t(K()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(ye,function(e){return function(t){var r=e,n=r.lib,o=n.WordArray,c=n.Hasher,f=r.algo,s=[];(function(){for(var C=0;C<64;C++)s[C]=t.abs(t.sin(C+1))*4294967296|0})();var y=f.MD5=c.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(C,S){for(var T=0;T<16;T++){var L=S+T,i=C[L];C[L]=(i<<8|i>>>24)&16711935|(i<<24|i>>>8)&4278255360}var a=this._hash.words,x=C[S+0],_=C[S+1],D=C[S+2],z=C[S+3],R=C[S+4],A=C[S+5],F=C[S+6],H=C[S+7],d=C[S+8],w=C[S+9],E=C[S+10],p=C[S+11],$=C[S+12],I=C[S+13],P=C[S+14],N=C[S+15],h=a[0],v=a[1],m=a[2],g=a[3];h=u(h,v,m,g,x,7,s[0]),g=u(g,h,v,m,_,12,s[1]),m=u(m,g,h,v,D,17,s[2]),v=u(v,m,g,h,z,22,s[3]),h=u(h,v,m,g,R,7,s[4]),g=u(g,h,v,m,A,12,s[5]),m=u(m,g,h,v,F,17,s[6]),v=u(v,m,g,h,H,22,s[7]),h=u(h,v,m,g,d,7,s[8]),g=u(g,h,v,m,w,12,s[9]),m=u(m,g,h,v,E,17,s[10]),v=u(v,m,g,h,p,22,s[11]),h=u(h,v,m,g,$,7,s[12]),g=u(g,h,v,m,I,12,s[13]),m=u(m,g,h,v,P,17,s[14]),v=u(v,m,g,h,N,22,s[15]),h=l(h,v,m,g,_,5,s[16]),g=l(g,h,v,m,F,9,s[17]),m=l(m,g,h,v,p,14,s[18]),v=l(v,m,g,h,x,20,s[19]),h=l(h,v,m,g,A,5,s[20]),g=l(g,h,v,m,E,9,s[21]),m=l(m,g,h,v,N,14,s[22]),v=l(v,m,g,h,R,20,s[23]),h=l(h,v,m,g,w,5,s[24]),g=l(g,h,v,m,P,9,s[25]),m=l(m,g,h,v,z,14,s[26]),v=l(v,m,g,h,d,20,s[27]),h=l(h,v,m,g,I,5,s[28]),g=l(g,h,v,m,D,9,s[29]),m=l(m,g,h,v,H,14,s[30]),v=l(v,m,g,h,$,20,s[31]),h=B(h,v,m,g,A,4,s[32]),g=B(g,h,v,m,d,11,s[33]),m=B(m,g,h,v,p,16,s[34]),v=B(v,m,g,h,P,23,s[35]),h=B(h,v,m,g,_,4,s[36]),g=B(g,h,v,m,R,11,s[37]),m=B(m,g,h,v,H,16,s[38]),v=B(v,m,g,h,E,23,s[39]),h=B(h,v,m,g,I,4,s[40]),g=B(g,h,v,m,x,11,s[41]),m=B(m,g,h,v,z,16,s[42]),v=B(v,m,g,h,F,23,s[43]),h=B(h,v,m,g,w,4,s[44]),g=B(g,h,v,m,$,11,s[45]),m=B(m,g,h,v,N,16,s[46]),v=B(v,m,g,h,D,23,s[47]),h=b(h,v,m,g,x,6,s[48]),g=b(g,h,v,m,H,10,s[49]),m=b(m,g,h,v,P,15,s[50]),v=b(v,m,g,h,A,21,s[51]),h=b(h,v,m,g,$,6,s[52]),g=b(g,h,v,m,z,10,s[53]),m=b(m,g,h,v,E,15,s[54]),v=b(v,m,g,h,_,21,s[55]),h=b(h,v,m,g,d,6,s[56]),g=b(g,h,v,m,N,10,s[57]),m=b(m,g,h,v,F,15,s[58]),v=b(v,m,g,h,I,21,s[59]),h=b(h,v,m,g,R,6,s[60]),g=b(g,h,v,m,p,10,s[61]),m=b(m,g,h,v,D,15,s[62]),v=b(v,m,g,h,w,21,s[63]),a[0]=a[0]+h|0,a[1]=a[1]+v|0,a[2]=a[2]+m|0,a[3]=a[3]+g|0},_doFinalize:function(){var C=this._data,S=C.words,T=this._nDataBytes*8,L=C.sigBytes*8;S[L>>>5]|=128<<24-L%32;var i=t.floor(T/4294967296),a=T;S[(L+64>>>9<<4)+15]=(i<<8|i>>>24)&16711935|(i<<24|i>>>8)&4278255360,S[(L+64>>>9<<4)+14]=(a<<8|a>>>24)&16711935|(a<<24|a>>>8)&4278255360,C.sigBytes=(S.length+1)*4,this._process();for(var x=this._hash,_=x.words,D=0;D<4;D++){var z=_[D];_[D]=(z<<8|z>>>24)&16711935|(z<<24|z>>>8)&4278255360}return x},clone:function(){var C=c.clone.call(this);return C._hash=this._hash.clone(),C}});function u(C,S,T,L,i,a,x){var _=C+(S&T|~S&L)+i+x;return(_<<a|_>>>32-a)+S}function l(C,S,T,L,i,a,x){var _=C+(S&L|T&~L)+i+x;return(_<<a|_>>>32-a)+S}function B(C,S,T,L,i,a,x){var _=C+(S^T^L)+i+x;return(_<<a|_>>>32-a)+S}function b(C,S,T,L,i,a,x){var _=C+(T^(S|~L))+i+x;return(_<<a|_>>>32-a)+S}r.MD5=c._createHelper(y),r.HmacMD5=c._createHmacHelper(y)}(Math),e.MD5})});var bt=q((xe,wt)=>{k();(function(e,t){typeof xe=="object"?wt.exports=xe=t(K()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(xe,function(e){return function(){var t=e,r=t.lib,n=r.WordArray,o=r.Hasher,c=t.algo,f=[],s=c.SHA1=o.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(y,u){for(var l=this._hash.words,B=l[0],b=l[1],C=l[2],S=l[3],T=l[4],L=0;L<80;L++){if(L<16)f[L]=y[u+L]|0;else{var i=f[L-3]^f[L-8]^f[L-14]^f[L-16];f[L]=i<<1|i>>>31}var a=(B<<5|B>>>27)+T+f[L];L<20?a+=(b&C|~b&S)+1518500249:L<40?a+=(b^C^S)+1859775393:L<60?a+=(b&C|b&S|C&S)-1894007588:a+=(b^C^S)-899497514,T=S,S=C,C=b<<30|b>>>2,b=B,B=a}l[0]=l[0]+B|0,l[1]=l[1]+b|0,l[2]=l[2]+C|0,l[3]=l[3]+S|0,l[4]=l[4]+T|0},_doFinalize:function(){var y=this._data,u=y.words,l=this._nDataBytes*8,B=y.sigBytes*8;return u[B>>>5]|=128<<24-B%32,u[(B+64>>>9<<4)+14]=Math.floor(l/4294967296),u[(B+64>>>9<<4)+15]=l,y.sigBytes=u.length*4,this._process(),this._hash},clone:function(){var y=o.clone.call(this);return y._hash=this._hash.clone(),y}});t.SHA1=o._createHelper(s),t.HmacSHA1=o._createHmacHelper(s)}(),e.SHA1})});var Bt=q((_e,Ct)=>{k();(function(e,t){typeof _e=="object"?Ct.exports=_e=t(K()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(_e,function(e){(function(){var t=e,r=t.lib,n=r.Base,o=t.enc,c=o.Utf8,f=t.algo,s=f.HMAC=n.extend({init:function(y,u){y=this._hasher=new y.init,typeof u=="string"&&(u=c.parse(u));var l=y.blockSize,B=l*4;u.sigBytes>B&&(u=y.finalize(u)),u.clamp();for(var b=this._oKey=u.clone(),C=this._iKey=u.clone(),S=b.words,T=C.words,L=0;L<l;L++)S[L]^=1549556828,T[L]^=909522486;b.sigBytes=C.sigBytes=B,this.reset()},reset:function(){var y=this._hasher;y.reset(),y.update(this._iKey)},update:function(y){return this._hasher.update(y),this},finalize:function(y){var u=this._hasher,l=u.finalize(y);u.reset();var B=u.finalize(this._oKey.clone().concat(l));return B}})})()})});var Ue=q((we,St)=>{k();(function(e,t,r){typeof we=="object"?St.exports=we=t(K(),bt(),Bt()):typeof define=="function"&&define.amd?define(["./core","./sha1","./hmac"],t):t(e.CryptoJS)})(we,function(e){return function(){var t=e,r=t.lib,n=r.Base,o=r.WordArray,c=t.algo,f=c.MD5,s=c.EvpKDF=n.extend({cfg:n.extend({keySize:128/32,hasher:f,iterations:1}),init:function(y){this.cfg=this.cfg.extend(y)},compute:function(y,u){for(var l,B=this.cfg,b=B.hasher.create(),C=o.create(),S=C.words,T=B.keySize,L=B.iterations;S.length<T;){l&&b.update(l),l=b.update(y).finalize(u),b.reset();for(var i=1;i<L;i++)l=b.finalize(l),b.reset();C.concat(l)}return C.sigBytes=T*4,C}});t.EvpKDF=function(y,u,l){return s.create(l).compute(y,u)}}(),e.EvpKDF})});var Ce=q((be,Et)=>{k();(function(e,t,r){typeof be=="object"?Et.exports=be=t(K(),Ue()):typeof define=="function"&&define.amd?define(["./core","./evpkdf"],t):t(e.CryptoJS)})(be,function(e){e.lib.Cipher||function(t){var r=e,n=r.lib,o=n.Base,c=n.WordArray,f=n.BufferedBlockAlgorithm,s=r.enc,y=s.Utf8,u=s.Base64,l=r.algo,B=l.EvpKDF,b=n.Cipher=f.extend({cfg:o.extend(),createEncryptor:function(d,w){return this.create(this._ENC_XFORM_MODE,d,w)},createDecryptor:function(d,w){return this.create(this._DEC_XFORM_MODE,d,w)},init:function(d,w,E){this.cfg=this.cfg.extend(E),this._xformMode=d,this._key=w,this.reset()},reset:function(){f.reset.call(this),this._doReset()},process:function(d){return this._append(d),this._process()},finalize:function(d){d&&this._append(d);var w=this._doFinalize();return w},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function d(w){return typeof w=="string"?H:R}return function(w){return{encrypt:function(E,p,$){return d(p).encrypt(w,E,p,$)},decrypt:function(E,p,$){return d(p).decrypt(w,E,p,$)}}}}()}),C=n.StreamCipher=b.extend({_doFinalize:function(){var d=this._process(!0);return d},blockSize:1}),S=r.mode={},T=n.BlockCipherMode=o.extend({createEncryptor:function(d,w){return this.Encryptor.create(d,w)},createDecryptor:function(d,w){return this.Decryptor.create(d,w)},init:function(d,w){this._cipher=d,this._iv=w}}),L=S.CBC=function(){var d=T.extend();d.Encryptor=d.extend({processBlock:function(E,p){var $=this._cipher,I=$.blockSize;w.call(this,E,p,I),$.encryptBlock(E,p),this._prevBlock=E.slice(p,p+I)}}),d.Decryptor=d.extend({processBlock:function(E,p){var $=this._cipher,I=$.blockSize,P=E.slice(p,p+I);$.decryptBlock(E,p),w.call(this,E,p,I),this._prevBlock=P}});function w(E,p,$){var I,P=this._iv;P?(I=P,this._iv=t):I=this._prevBlock;for(var N=0;N<$;N++)E[p+N]^=I[N]}return d}(),i=r.pad={},a=i.Pkcs7={pad:function(d,w){for(var E=w*4,p=E-d.sigBytes%E,$=p<<24|p<<16|p<<8|p,I=[],P=0;P<p;P+=4)I.push($);var N=c.create(I,p);d.concat(N)},unpad:function(d){var w=d.words[d.sigBytes-1>>>2]&255;d.sigBytes-=w}},x=n.BlockCipher=b.extend({cfg:b.cfg.extend({mode:L,padding:a}),reset:function(){var d;b.reset.call(this);var w=this.cfg,E=w.iv,p=w.mode;this._xformMode==this._ENC_XFORM_MODE?d=p.createEncryptor:(d=p.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==d?this._mode.init(this,E&&E.words):(this._mode=d.call(p,this,E&&E.words),this._mode.__creator=d)},_doProcessBlock:function(d,w){this._mode.processBlock(d,w)},_doFinalize:function(){var d,w=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(w.pad(this._data,this.blockSize),d=this._process(!0)):(d=this._process(!0),w.unpad(d)),d},blockSize:128/32}),_=n.CipherParams=o.extend({init:function(d){this.mixIn(d)},toString:function(d){return(d||this.formatter).stringify(this)}}),D=r.format={},z=D.OpenSSL={stringify:function(d){var w,E=d.ciphertext,p=d.salt;return p?w=c.create([1398893684,1701076831]).concat(p).concat(E):w=E,w.toString(u)},parse:function(d){var w,E=u.parse(d),p=E.words;return p[0]==1398893684&&p[1]==1701076831&&(w=c.create(p.slice(2,4)),p.splice(0,4),E.sigBytes-=16),_.create({ciphertext:E,salt:w})}},R=n.SerializableCipher=o.extend({cfg:o.extend({format:z}),encrypt:function(d,w,E,p){p=this.cfg.extend(p);var $=d.createEncryptor(E,p),I=$.finalize(w),P=$.cfg;return _.create({ciphertext:I,key:E,iv:P.iv,algorithm:d,mode:P.mode,padding:P.padding,blockSize:d.blockSize,formatter:p.format})},decrypt:function(d,w,E,p){p=this.cfg.extend(p),w=this._parse(w,p.format);var $=d.createDecryptor(E,p).finalize(w.ciphertext);return $},_parse:function(d,w){return typeof d=="string"?w.parse(d,this):d}}),A=r.kdf={},F=A.OpenSSL={execute:function(d,w,E,p,$){if(p||(p=c.random(64/8)),$)var I=B.create({keySize:w+E,hasher:$}).compute(d,p);else var I=B.create({keySize:w+E}).compute(d,p);var P=c.create(I.words.slice(w),E*4);return I.sigBytes=w*4,_.create({key:I,iv:P,salt:p})}},H=n.PasswordBasedCipher=R.extend({cfg:R.cfg.extend({kdf:F}),encrypt:function(d,w,E,p){p=this.cfg.extend(p);var $=p.kdf.execute(E,d.keySize,d.ivSize,p.salt,p.hasher);p.iv=$.iv;var I=R.encrypt.call(this,d,w,$.key,p);return I.mixIn($),I},decrypt:function(d,w,E,p){p=this.cfg.extend(p),w=this._parse(w,p.format);var $=p.kdf.execute(E,d.keySize,d.ivSize,w.salt,p.hasher);p.iv=$.iv;var I=R.decrypt.call(this,d,w,$.key,p);return I}})}()})});var At=q((Be,kt)=>{k();(function(e,t,r){typeof Be=="object"?kt.exports=Be=t(K(),Oe(),Pe(),Ue(),Ce()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],t):t(e.CryptoJS)})(Be,function(e){return function(){var t=e,r=t.lib,n=r.BlockCipher,o=t.algo,c=[],f=[],s=[],y=[],u=[],l=[],B=[],b=[],C=[],S=[];(function(){for(var i=[],a=0;a<256;a++)a<128?i[a]=a<<1:i[a]=a<<1^283;for(var x=0,_=0,a=0;a<256;a++){var D=_^_<<1^_<<2^_<<3^_<<4;D=D>>>8^D&255^99,c[x]=D,f[D]=x;var z=i[x],R=i[z],A=i[R],F=i[D]*257^D*16843008;s[x]=F<<24|F>>>8,y[x]=F<<16|F>>>16,u[x]=F<<8|F>>>24,l[x]=F;var F=A*16843009^R*65537^z*257^x*16843008;B[D]=F<<24|F>>>8,b[D]=F<<16|F>>>16,C[D]=F<<8|F>>>24,S[D]=F,x?(x=z^i[i[i[A^z]]],_^=i[i[_]]):x=_=1}})();var T=[0,1,2,4,8,16,32,64,128,27,54],L=o.AES=n.extend({_doReset:function(){var i;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var a=this._keyPriorReset=this._key,x=a.words,_=a.sigBytes/4,D=this._nRounds=_+6,z=(D+1)*4,R=this._keySchedule=[],A=0;A<z;A++)A<_?R[A]=x[A]:(i=R[A-1],A%_?_>6&&A%_==4&&(i=c[i>>>24]<<24|c[i>>>16&255]<<16|c[i>>>8&255]<<8|c[i&255]):(i=i<<8|i>>>24,i=c[i>>>24]<<24|c[i>>>16&255]<<16|c[i>>>8&255]<<8|c[i&255],i^=T[A/_|0]<<24),R[A]=R[A-_]^i);for(var F=this._invKeySchedule=[],H=0;H<z;H++){var A=z-H;if(H%4)var i=R[A];else var i=R[A-4];H<4||A<=4?F[H]=i:F[H]=B[c[i>>>24]]^b[c[i>>>16&255]]^C[c[i>>>8&255]]^S[c[i&255]]}}},encryptBlock:function(i,a){this._doCryptBlock(i,a,this._keySchedule,s,y,u,l,c)},decryptBlock:function(i,a){var x=i[a+1];i[a+1]=i[a+3],i[a+3]=x,this._doCryptBlock(i,a,this._invKeySchedule,B,b,C,S,f);var x=i[a+1];i[a+1]=i[a+3],i[a+3]=x},_doCryptBlock:function(i,a,x,_,D,z,R,A){for(var F=this._nRounds,H=i[a]^x[0],d=i[a+1]^x[1],w=i[a+2]^x[2],E=i[a+3]^x[3],p=4,$=1;$<F;$++){var I=_[H>>>24]^D[d>>>16&255]^z[w>>>8&255]^R[E&255]^x[p++],P=_[d>>>24]^D[w>>>16&255]^z[E>>>8&255]^R[H&255]^x[p++],N=_[w>>>24]^D[E>>>16&255]^z[H>>>8&255]^R[d&255]^x[p++],h=_[E>>>24]^D[H>>>16&255]^z[d>>>8&255]^R[w&255]^x[p++];H=I,d=P,w=N,E=h}var I=(A[H>>>24]<<24|A[d>>>16&255]<<16|A[w>>>8&255]<<8|A[E&255])^x[p++],P=(A[d>>>24]<<24|A[w>>>16&255]<<16|A[E>>>8&255]<<8|A[H&255])^x[p++],N=(A[w>>>24]<<24|A[E>>>16&255]<<16|A[H>>>8&255]<<8|A[d&255])^x[p++],h=(A[E>>>24]<<24|A[H>>>16&255]<<16|A[d>>>8&255]<<8|A[w&255])^x[p++];i[a]=I,i[a+1]=P,i[a+2]=N,i[a+3]=h},keySize:256/32});t.AES=n._createHelper(L)}(),e.AES})});var Dt=q((Se,Lt)=>{k();(function(e,t){typeof Se=="object"?Lt.exports=Se=t(K()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(Se,function(e){return e.enc.Utf8})});var $t=q((Ee,zt)=>{k();(function(e,t,r){typeof Ee=="object"?zt.exports=Ee=t(K(),Ce()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],t):t(e.CryptoJS)})(Ee,function(e){return e.pad.Pkcs7})});var It=q((ke,Tt)=>{k();(function(e,t,r){typeof ke=="object"?Tt.exports=ke=t(K(),Ce()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],t):t(e.CryptoJS)})(ke,function(e){return e.mode.ECB=function(){var t=e.lib.BlockCipherMode.extend();return t.Encryptor=t.extend({processBlock:function(r,n){this._cipher.encryptBlock(r,n)}}),t.Decryptor=t.extend({processBlock:function(r,n){this._cipher.decryptBlock(r,n)}}),t}(),e.mode.ECB})});var Kr={};zr(Kr,{AesEncryption:()=>Ae,IfActivity:()=>ae,ResizeObserver:()=>ze.default,addClass:()=>Mt,addLocationListener:()=>Xt,addResizeListener:()=>Yt,buildBEM:()=>ve,buildShortUUID:()=>br,buildUUID:()=>wr,clearWorkerInterval:()=>W.clearInterval,clearWorkerTimeout:()=>W.clearTimeout,createBEM:()=>mt,createNamespace:()=>gt,createSearchReg:()=>pt,dataURLtoBlob:()=>Me,decodeByBase64:()=>Pt,deepMerge:()=>Re,domOffEvent:()=>Vt,domOnEvent:()=>Jt,downloadByBase64:()=>qe,downloadByData:()=>Ke,downloadByOnlineUrl:()=>tr,downloadByUrl:()=>rr,downloadPercent:()=>er,enableTransitions:()=>ft,encryptByBase64:()=>Ot,encryptByMd5:()=>Ut,escapeStringRegexp:()=>Ge,extendSlots:()=>or,filterTree:()=>gr,findNode:()=>hr,findNodeAll:()=>pr,findPath:()=>vr,findPathAll:()=>mr,forEachTree:()=>yr,getActualWidthOfChars:()=>vt,getBoundingClientRect:()=>Ne,getRawRoute:()=>dt,getSlot:()=>Ze,getViewportOffset:()=>qt,hackCss:()=>Kt,hasClass:()=>De,highlightHtml:()=>nr,is:()=>Fe,isBrowser:()=>he,isChineseText:()=>ct,isChrome:()=>de,isClient:()=>ue,isIterableArray:()=>fe,isMatch:()=>dr,isNumeric:()=>st,isObject:()=>ne,isPositiveInteger:()=>it,isSafari:()=>le,isServer:()=>ie,isSupportNativeEllipsis:()=>ot,isSupportResizeObserver:()=>at,isUrl:()=>nt,loadScript:()=>ar,matcher:()=>ur,openWindow:()=>pe,pathToRegexp:()=>X.pathToRegexp,regexpMap:()=>Q,regexpToPath:()=>X.compile,removeClass:()=>jt,removeResizeListener:()=>Gt,setCssVar:()=>Nt,setObjToUrlParams:()=>lt,setWorkerInterval:()=>W.setInterval,setWorkerTimeout:()=>W.setTimeout,titleCase:()=>Cr.titleCase,treeMap:()=>xr,treeMapEach:()=>Te,triggerWindowResize:()=>Qt,unloadScript:()=>cr,unsetAllProperty:()=>ht,urlToBase64:()=>je,useRafThrottle:()=>Zt,withInstall:()=>ut});module.exports=$r(Kr);k();var Cr=require("title-case");k();var M=require("lodash-es");k();k();var X=require("path-to-regexp"),Q={mobile:/^(?:(?:\+|00)86)?1[3-9]\d{9}$/,tel:/^(?:(?:\d{3}-)?\d{8}|(?:\d{4}-)?\d{7,8})(?:-\d+)?$/,numAndLetter:/^[A-Z0-9]+$/i,password:/^\S*(?=\S{6,})(?=\S*\d)(?=\S*[A-Z])(?=\S*[a-z])(?=\S*[!@#$%^&*? ])\S+$/,email:/^[A-Z0-9\u4E00-\u9FA5]+@[\w-]+(?:\.[\w-]+)+$/i,postalCode:/^(0[1-7]|1[0-356]|2[0-7]|3[0-6]|4[0-7]|5[1-7]|6[1-7]|7[0-5]|8[013-6])\d{4}$/,identityCard:/^[1-9]\d{5}(?:18|19|20)\d{2}(?:0[1-9]|10|11|12)(?:0[1-9]|[12]\d|30|31)\d{3}[\dX]$/i,ip:/^((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.){3}(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(?::(?:\d|[1-9]\d{1,3}|[1-5]\d{4}|6[0-4]\d{3}|65[0-4]\d{2}|655[0-2]\d|6553[0-5]))?$/,url:/^(((ht|f)tps?):\/\/)?([^!@#$%^&*?.\s-][^!@#$%^&*?.\s]{0,64}\.)+[a-z]{2,6}\/?/,httpsUrl:/^https:\/\//,domain:/^([0-9a-z-]+\.)+([a-z]{2,})$/i,plateNumber:/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z][A-HJ-NP-Z0-9]{4,5}[A-HJ-NP-Z0-9挂学警港澳]$/,md5:/^[a-f0-9]{32}$/i,base64:/^\s*data:(?:[a-z]+\/[a-z0-9-+.]+(?:;[a-z-]+=[a-z0-9-]+)?)?(?:;base64)?,([\w!$&',()*+;=\-.~:@/?%\s]*?)\s*$/i,uuid:/^[a-f\d]{4}(?:[a-f\d]{4}-){4}[a-f\d]{12}$/i,version:/^\d+(?:\.\d+){2}$/,videoUrl:/^https?:\/\/(.+\/)+.+(\.(swf|avi|flv|mpg|rm|mov|wav|asf|3gp|mkv|rmvb|mp4))$/i,imageUrl:/^https?:\/\/(.+\/)+.+(\.(gif|png|jpg|jpeg|webp|svg|psd|bmp|tif))$/i,chinese:/^(?:[\u3400-\u4DB5\u4E00-\u9FEA\uFA0E\uFA0F\uFA11\uFA13\uFA14\uFA1F\uFA21\uFA23\uFA24\uFA27-\uFA29]|[\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0])+$/,itcode:/^[a-z]+\d*$/i,numeric:/^\d+$/};var Tr=Object.prototype.toString;function Fe(e,t){return Tr.call(e)===`[object ${t}]`}function ne(e){return e!==null&&Fe(e,"Object")}function nt(e){return Q.url.test(e)}function fe(e){return Array.isArray(e)&&e.length>0}function it(e){return Number.isInteger(e)&&e>=0}function st(e){return Q.numeric.test(e)}var ie=typeof window=="undefined",ue=!ie,de=ue&&window.navigator.userAgent.toLowerCase().includes("chrome"),le=ue&&window.navigator.userAgent.toLowerCase().includes("safari"),he=typeof window!="undefined"&&typeof document!="undefined",ot=he&&typeof document.body.style.lineClamp!="undefined",at=he&&typeof ResizeObserver!="undefined",ct=e=>Q.chinese.test(e),ft=()=>"startViewTransition"in document&&window.matchMedia("(prefers-reduced-motion: no-preference)").matches;var ut=(e,t)=>{let r=e;return r.install=n=>{n.component(r.name||r.displayName,e),t&&(n.config.globalProperties[t]=e)},e};function dt(e){if(!e)return e;let n=e,{matched:t}=n,r=tt(n,["matched"]);return V(j({},r),{matched:t?t.map(o=>({meta:o.meta,name:o.name,path:o.path})):void 0})}function pe(e,t){let{target:r="__blank",noopener:n=!0,noreferrer:o=!0}=t||{},c=[];n&&c.push("noopener=yes"),o&&c.push("noreferrer=yes"),window.open(e,r,c.join(","))}function Re(e,t,r="replace"){return t?e?(0,M.mergeWith)(e,t,(n,o)=>{if((0,M.isArray)(o)&&(0,M.isArray)(n))switch(r){case"union":return(0,M.unionWith)(n,o,M.isEqual);case"intersection":return(0,M.intersectionWith)(n,o,M.isEqual);case"concat":return n.concat(o);case"replace":return o;default:throw new Error(`Unknown merge array strategy: ${r}`)}if(ne(o)&&ne(n))return Re(n,o,r)}):t:e}function lt(e,t){if(!fe(Object.keys(t)))return e;let r="";for(let n in t){let o=t[n];Array.isArray(o)?r+=`${n}=${encodeURIComponent(o.join(","))}&`:r+=`${n}=${encodeURIComponent(o)}&`}return r=r.replace(/&$/,""),/\?$/.test(e)?e+r:e.replace(/\/?$/,"?")+r}function ht(e){(0,M.isPlainObject)(e)&&Object.keys(e).forEach(t=>{Reflect.deleteProperty(e,t)})}function Ir(e){return["$","(",")","*","+",".","[","]","?","\\","^","{","}","|"].includes(e)?`\\${e}`:e}function pt(e){let r=["",...[...e].map(n=>Ir(n)),""].join(".*");return new RegExp(r,"i")}function vt(e="",t={}){let{size:r=14,family:n=getComputedStyle(document.documentElement).getPropertyValue("--vxe-font-family")||"sans-serif"}=t,c=document.createElement("canvas").getContext("2d");c.font=`${r}px ${n}`;let f=c.measureText(e),s=Math.abs(f.actualBoundingBoxLeft)+Math.abs(f.actualBoundingBoxRight);return Math.ceil(Math.max(f.width,s))}k();function He(e,t){return t?typeof t=="string"?` ${e}--${t}`:Array.isArray(t)?t.reduce((r,n)=>r+He(e,n),""):Object.keys(t).reduce((r,n)=>r+(t[n]?He(e,n):""),""):""}function ve(e){return(t,r)=>(t&&typeof t!="string"&&(r=t,t=""),t=t?`${e}__${t}`:e,`${t}${He(t,r)}`)}function mt(e,t=""){return[ve(`${t}-${e}`)]}function gt(e,t=""){let r=`${t}-${e}`;return[r,ve(r)]}k();var Le=Y(At(),1),G=Y(Dt(),1),Ft=Y($t(),1),Rt=Y(It(),1),Ht=Y(Pe(),1),We=Y(Oe(),1),Ae=class{constructor(t){let{key:r,iv:n}=t;r&&(this.key=(0,G.parse)(r)),n&&(this.iv=(0,G.parse)(n))}get getOptions(){return{mode:Rt.default,padding:Ft.default,iv:this.iv}}encryptByAES(t){return(0,Le.encrypt)(t,this.key,this.getOptions).toString()}decryptByAES(t){return(0,Le.decrypt)(t,this.key,this.getOptions).toString(G.default)}};function Ot(e){return G.default.parse(e).toString(We.default)}function Pt(e){return We.default.parse(e).toString(G.default)}function Ut(e){return(0,Ht.default)(e).toString()}k();var Wt=require("lodash-es");var Fr=()=>document.documentElement;function Ne(e){return!e||!e.getBoundingClientRect?0:e.getBoundingClientRect()}function Rr(e){return(e||"").replace(/^\s+|\s+$/g,"")}function De(e,t){if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList?e.classList.contains(t):` ${e.className} `.includes(` ${t} `)}function Nt(e,t,r){return r||(r=Fr()),r.style.setProperty(e,t),{prop:t}}function Mt(e,t){if(!e)return;let r=e.className,n=(t||"").split(" ");for(let o=0,c=n.length;o<c;o++){let f=n[o];f&&(e.classList?e.classList.add(f):De(e,f)||(r+=` ${f}`))}e.classList||(e.className=r)}function jt(e,t){if(!e||!t)return;let r=t.split(" "),n=` ${e.className} `;for(let o=0,c=r.length;o<c;o++){let f=r[o];f&&(e.classList?e.classList.remove(f):De(e,f)&&(n=n.replace(` ${f} `," ")))}e.classList||(e.className=Rr(n))}function qt(e){let t=document.documentElement,r=t.scrollLeft,n=t.scrollTop,o=t.clientLeft,c=t.clientTop,f=window.scrollX,s=window.scrollY,y=Ne(e);if(!y)return{};let{left:u,top:l,width:B,height:b}=y,C=(f||r)-(o||0),S=(s||n)-(c||0),T=u+f,L=l+s,i=T-C,a=L-S,x=window.document.documentElement.clientWidth,_=window.document.documentElement.clientHeight;return{left:i,top:a,right:x-B-i,bottom:_-b-a,rightIncludeBody:x-i,bottomIncludeBody:_-a}}function Kt(e,t){let r=["webkit","Moz","ms","OT"],n={};return r.forEach(o=>{n[`${o}${(0,Wt.upperFirst)(e)}`]=t}),V(j({},n),{[e]:t})}function Jt(e,t,r){e&&t&&r&&e.addEventListener(t,r,!1)}function Vt(e,t,r){e&&t&&r&&e.removeEventListener(t,r,!1)}function Zt(e){let t=!1;return function(...r){t||(t=!0,window.requestAnimationFrame(()=>{e.apply(this,r),t=!1}))}}k();var ze=Y(require("resize-observer-polyfill"),1);function Hr(e){for(let t of e){let r=t.target.__resizeListeners__||[];r.length&&r.forEach(n=>{n()})}}function Yt(e,t){ie||(e.__resizeListeners__||(e.__resizeListeners__=[],e.__ro__=new ze.default(Hr),e.__ro__.observe(e)),e.__resizeListeners__.push(t))}function Gt(e,t){!e||!e.__resizeListeners__||(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),e.__resizeListeners__.length||(e.__ro__.disconnect(),e.__ro__=null,e.__resizeListeners__=null))}function Qt(){let e=new Event("resize",{bubbles:!0,cancelable:!0});window.dispatchEvent(e)}function Xt(e,t={}){function r(n){let o=window.history[n];return function(...c){let f=new Event(n);return f.arguments=c,window.dispatchEvent(f),o.apply(this,c)}}return window.history.pushState=r("pushState"),window.history.replaceState=r("replaceState"),window.addEventListener("popstate",e,t),window.addEventListener("hashchange",e,t),window.addEventListener("replaceState",e,t),window.addEventListener("pushState",e,t),{removeListener:()=>{window.removeEventListener("popstate",e,t),window.removeEventListener("hashchange",e,t),window.removeEventListener("replaceState",e,t),window.removeEventListener("pushState",e,t)}}}k();var $e=require("lodash-es");function Me(e){let t=e.split(","),n=t[0].match(/:(.*?);/)[1],o=window.atob(t[1]),c=o.length,f=new Uint8Array(c);for(;c--;)f[c]=o.charCodeAt(c);return new Blob([f],{type:n})}function je(e,t){return new Promise((r,n)=>{let o=document.createElement("CANVAS"),c=o.getContext("2d"),f=new Image;f.crossOrigin="",f.onload=function(){if(!o||!c)return n();o.height=f.height,o.width=f.width,c.drawImage(f,0,0);let s=o.toDataURL(t||"image/png");o=null,r(s)},f.src=e})}function er(e){let{loaded:t,total:r}=e;if(r<=0||(0,$e.isNil)(r))return 0;let n=t/r;return(0,$e.round)((n>1?1:n)*100)}function tr(e,t,r,n){je(e).then(o=>{qe(o,t,r,n)})}function qe(e,t,r,n){let o=Me(e);Ke(o,t,r,n)}function Ke(e,t,r,n){let o=typeof n!="undefined"?[n,e]:[e],c=new Blob(o,{type:r||"application/octet-stream"});if(typeof window.navigator.msSaveBlob!="undefined")window.navigator.msSaveBlob(c,t);else{let f=window.URL.createObjectURL(c),s=document.createElement("a");s.style.display="none",s.href=f,s.setAttribute("download",t),typeof s.download=="undefined"&&s.setAttribute("target","_blank"),document.body.appendChild(s),s.click(),document.body.removeChild(s),window.URL.revokeObjectURL(f)}}function rr({url:e,target:t="_blank",fileName:r}){if(/iP/.test(window.navigator.userAgent))return!1;if(de||le){let n=document.createElement("a");return n.href=e,n.download=r||e.substring(e.lastIndexOf("/")+1,e.length),n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n),!0}return e.includes("?")||(e+="?download"),pe(e,{target:t}),!0}k();var Or=(e,t,r="ig")=>{let n=new RegExp(t,r);return[...e.matchAll(n)].map(s=>({index:s.index,subString:s[0]}))};function Pr(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}var Ur=(e,t)=>{let r=e;if(!t)return r;let{tagName:n="mark",bgColor:o,color:c,style:f={},renderHighlightKeyword:s}=t;if(typeof s=="function")return s(e);f.backgroundColor=o,f.color=c;let u=`style="${Object.keys(f).map(l=>`${Pr(l)}:${f[l]}`).join(";")}"`;return`<${n} ${u}>${r}</${n}>`},Wr=(e,t)=>{let r="";return t.forEach(n=>{let{start:o,end:c,option:f}=n,s=e.slice(o,c),y=Ur(s,f);r+=y,n.subString=y}),r},Nr=(e,t)=>{let r=[];return t.forEach(n=>{let o={keyword:""};typeof n=="string"?o={keyword:n}:o=n;let{keyword:c,caseSensitive:f=!0}=o,s=Or(e,c,f?"g":"gi"),y={keyword:c,indexList:s,option:o};r.push(y)}),r},Mr=(e,t)=>{let r=Nr(e,t),n=[],o=(f,s)=>{for(let y=0;y<n.length;y++){let u=n[y];if(f>u.start&&f<u.end||f+s>u.start&&f+s<u.end||u.start>f&&u.start<f+s||u.end>f&&u.end<f+s||f===u.start&&f+s===u.end)return-1;if(f+s<=u.start)return y}return n.length};r.forEach(({indexList:f,option:s})=>{f.forEach(y=>{let{index:u,subString:l}=y,B={start:u,end:u+l.length,option:s},b=o(u,l.length);b!==-1&&n.splice(b,0,B)})});let c=[];return n.forEach((f,s)=>{let{start:y,end:u}=f,l=n[s+1];s===0&&y>0&&c.push({start:0,end:y,subString:e.slice(0,y)}),c.push(V(j({},f),{subString:e.slice(y,u)})),(l==null?void 0:l.start)>u&&c.push({start:u,end:l.start,subString:e.slice(u,l.start)}),s===n.length-1&&u<e.length-1&&c.push({start:u,end:e.length-1,subString:e.slice(u,e.length)})}),c},nr=(e,t)=>{let r=Mr(e,t);return{highText:Wr(e,r),highList:r}};k();var W=require("worker-timers"),Z="active",Je="idle",ir="hidden",ee,se,oe,J={},U={attach(e,t){J[e]||(J[e]=[]),J[e].push(t)},fire(e,t=[]){J[e]&&J[e].forEach(r=>{r(...t)})},remove(e,t){t||Reflect.deleteProperty(J,e),J[e]&&(J[e]=J[e].filter(r=>t!==r))},dom(e,t,r){return oe||(e.addEventListener?oe=(n,o,c)=>n.addEventListener(o,c,!1):typeof e.attachEvent=="function"?oe=(n,o,c)=>n.attachEvent(`on${o}`,c,!1):oe=(n,o,c)=>n[`on${o}`]=c),oe(e,t,r)}},Ve=class{constructor(t,r,n){this.activity=t,this.seconds=r,this.callback=n,this.stopped=!1,this.start(),this.activity.on("statusChanged",o=>{this.stopped===!1&&(o.status===Z?this.start():this.pause())})}start(){this.stopped=!1,(0,W.clearInterval)(this.token),this.token=(0,W.setInterval)(this.callback,this.seconds*1e3)}stop(){this.stopped=!0,(0,W.clearInterval)(this.token)}resume(){this.start()}pause(){this.stop()}},ae=class{constructor(){if(this.status=Z,this.timers=[],this.idleTime=3e4,this.isLegacyModeOn=!1,document.hidden!==void 0?(ee="hidden",se="visibilitychange"):document.mozHidden!==void 0?(ee="mozHidden",se="mozvisibilitychange"):document.msHidden!==void 0?(ee="msHidden",se="msvisibilitychange"):document.webkitHidden!==void 0&&(ee="webkitHidden",se="webkitvisibilitychange"),ee===void 0)this.legacyMode();else{let t=()=>{document[ee]?this.blur():this.focus()};t(),U.dom(document,se,t)}this.startIdleTimer(),this.trackIdleStatus()}legacyMode(){this.isLegacyModeOn||(U.dom(window,"blur",()=>this.blur()),U.dom(window,"focus",()=>this.focus()),this.isLegacyModeOn=!0)}startIdleTimer(t){t instanceof MouseEvent&&t.movementX===0&&t.movementY===0||(this.timers.map(W.clearTimeout),this.timers.length=0,this.status===Je&&this.wakeUp(),this.idleStartedTime=+new Date,this.timers.push((0,W.setTimeout)(()=>{if(this.status===Z||this.status===ir)return this.idle()},this.idleTime)))}trackIdleStatus(){U.dom(document,"mousemove",this.startIdleTimer.bind(this)),U.dom(document,"mousedown",this.startIdleTimer.bind(this)),U.dom(document,"keyup",this.startIdleTimer.bind(this)),U.dom(document,"touchstart",this.startIdleTimer.bind(this)),U.dom(window,"scroll",this.startIdleTimer.bind(this)),this.focus(this.startIdleTimer.bind(this))}on(t,r){return U.attach(t,r),this}off(t,r){return U.remove(t,r),this}setIdleDuration(t){return this.idleTime=t*1e3,this.startIdleTimer(),this}getIdleDuration(){return this.idleTime}getIdleInfo(){let t=+new Date,r;if(this.status===Je)r={isIdle:!0,idleFor:t-this.idleStartedTime,timeLeft:0,timeLeftPer:100};else{let n=this.idleStartedTime+this.idleTime-t;r={isIdle:!1,idleFor:t-this.idleStartedTime,timeLeft:n,timeLeftPer:Number.parseFloat((100-n*100/this.idleTime).toFixed(2))}}return r}idle(t){return t?this.on("idle",t):(this.status=Je,U.fire("idle"),U.fire("statusChanged",[{status:this.status}])),this}blur(t){return t?this.on("blur",t):(this.status=ir,U.fire("blur"),U.fire("statusChanged",[{status:this.status}])),this}focus(t){return t?this.on("focus",t):this.status!==Z&&(this.status=Z,U.fire("focus"),U.fire("wakeUp"),U.fire("statusChanged",[{status:this.status}])),this}wakeUp(t){return t?this.on("wakeUp",t):this.status!==Z&&(this.status=Z,U.fire("wakeUp"),U.fire("statusChanged",[{status:this.status}])),this}onEvery(t,r){return new Ve(this,t,r)}now(t){return t!==void 0?this.status===t:this.status===Z}};k();var sr=require("lodash-es");function Ze(e,t="default",r){if(!e||!Reflect.has(e,t)||!(0,sr.isFunction)(e[t]))return null;let n=e[t];return n?n(r):null}function or(e,t=[]){let r=Object.keys(e),n={};return r.forEach(o=>{if(t.includes(o))return null;n[o]=c=>Ze(e,o,c)}),n}k();function ar(e,{type:t="text/javascript"}={}){return new Promise((r,n)=>{let o=!1,c=document.querySelector(`script[src="${e}"]`);if(!c)c=document.createElement("script"),c.type=t,c.async=!0,c.src=e,o=!0;else if(c.hasAttribute("data-loaded")){r({el:c});return}c.addEventListener("error",n),c.addEventListener("abort",n),c.addEventListener("load",()=>{c.setAttribute("data-loaded",!0),r({el:c})}),o&&document.head.appendChild(c)})}function cr(e){return new Promise((t,r)=>{let n=document.querySelector(`script[src="${e}"]`);if(!n){r();return}document.head.removeChild(n),t()})}k();function ur(e,t,r){return lr(e,t,r,!1)}function dr(e,t,r){return lr(e,t,r,!0).length>0}function Ge(e){return typeof e!="string"?e:e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Ye=new Map;function fr(e,t){if(!Array.isArray(e))switch(typeof e){case"string":e=[e];break;case"undefined":e=[];break;default:throw new TypeError(`Expected '${t}' to be a string or an array, but got a type of '${typeof e}'`)}return e.filter(r=>{if(typeof r!="string"){if(typeof r=="undefined")return!1;throw new TypeError(`Expected '${t}' to be an array of strings, but found a type of '${typeof r}' in the array`)}return!0})}function jr(e,t){t=j({caseSensitive:!1},t);let r=e+JSON.stringify(t);if(Ye.has(r))return Ye.get(r);let n=e[0]==="!";n&&(e=e.slice(1)),e=Ge(e).replace(/\\\*/g,"[\\s\\S]*");let o=new RegExp(`^${e}$`,t.caseSensitive?"":"i");return o.negated=n,Ye.set(r,o),o}function lr(e,t,r,n){if(e=fr(e,"inputs"),t=fr(t,"patterns"),t.length===0)return[];t=t.map(f=>jr(f,r));let{allPatterns:o}=r||{},c=[];for(let f of e){let s,y=[...t].fill(!1);for(let[u,l]of t.entries())if(l.test(f)&&(y[u]=!0,s=!l.negated,!s))break;if(!(s===!1||s===void 0&&t.some(u=>!u.negated)||o&&y.some((u,l)=>!u&&!t[l].negated))&&(c.push(f),n))break}return c}k();var qr={id:"id",children:"children",pid:"pid"},te=e=>Object.assign({},qr,e);function hr(e,t,r={}){r=te(r);let{children:n}=r,o=[...e];for(let c of o){if(t(c))return c;c[n]&&o.push(...c[n])}return null}function pr(e,t,r={}){r=te(r);let{children:n}=r,o=[...e],c=[];for(let f of o)t(f)&&c.push(f),f[n]&&o.push(...f[n]);return c}function vr(e,t,r={}){r=te(r);let n=[],o=[...e],c=new Set,{children:f}=r;for(;o.length;){let s=o[0];if(c.has(s))n.pop(),o.shift();else if(c.add(s),s[f]&&o.unshift(...s[f]),n.push(s),t(s))return n}return null}function mr(e,t,r={}){r=te(r);let n=[],o=[...e],c=[],f=new Set,{children:s}=r;for(;o.length;){let y=o[0];f.has(y)?(n.pop(),o.shift()):(f.add(y),y[s]&&o.unshift(...y[s]),n.push(y),t(y)&&c.push([...n]))}return c}function gr(e,t,r={}){r=te(r);let n=r.children;function o(c){return c.map(f=>j({},f)).filter(f=>(f[n]=f[n]&&o(f[n]),t(f)||f[n]&&f[n].length))}return o(e)}function yr(e,t,r={}){r=te(r);let n=[...e],{children:o}=r;for(let c=0;c<n.length;c++){if(t(n[c]))return;o&&n[c][o]&&n.splice(c+1,0,...n[c][o])}}function xr(e,t){return e.map(r=>Te(r,t))}function Te(e,{children:t="children",conversion:r}){let n=Array.isArray(e[t])&&e[t].length>0,o=r(e)||{};return n?V(j({},o),{[t]:e[t].map(c=>Te(c,{children:t,conversion:r}))}):j({},o)}k();var Qe=require("uuid");function wr({native:e=!0}={}){var t,r,n;return e?(n=(r=(t=window.crypto)==null?void 0:t.randomUUID)==null?void 0:r.call(t))!=null?n:(0,Qe.v4)():(0,Qe.v4)()}var _r=0;function br(e=""){let t=Date.now(),r=Math.floor(Math.random()*1e9);return _r++,`${e}_${r}${_r}${String(t)}`}0&&(module.exports={AesEncryption,IfActivity,ResizeObserver,addClass,addLocationListener,addResizeListener,buildBEM,buildShortUUID,buildUUID,clearWorkerInterval,clearWorkerTimeout,createBEM,createNamespace,createSearchReg,dataURLtoBlob,decodeByBase64,deepMerge,domOffEvent,domOnEvent,downloadByBase64,downloadByData,downloadByOnlineUrl,downloadByUrl,downloadPercent,enableTransitions,encryptByBase64,encryptByMd5,escapeStringRegexp,extendSlots,filterTree,findNode,findNodeAll,findPath,findPathAll,forEachTree,getActualWidthOfChars,getBoundingClientRect,getRawRoute,getSlot,getViewportOffset,hackCss,hasClass,highlightHtml,is,isBrowser,isChineseText,isChrome,isClient,isIterableArray,isMatch,isNumeric,isObject,isPositiveInteger,isSafari,isServer,isSupportNativeEllipsis,isSupportResizeObserver,isUrl,loadScript,matcher,openWindow,pathToRegexp,regexpMap,regexpToPath,removeClass,removeResizeListener,setCssVar,setObjToUrlParams,setWorkerInterval,setWorkerTimeout,titleCase,treeMap,treeMapEach,triggerWindowResize,unloadScript,unsetAllProperty,urlToBase64,useRafThrottle,withInstall});
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var Dt=Object.create;var xe=Object.defineProperty,zt=Object.defineProperties,$t=Object.getOwnPropertyDescriptor,Tt=Object.getOwnPropertyDescriptors,Ft=Object.getOwnPropertyNames,re=Object.getOwnPropertySymbols,It=Object.getPrototypeOf,_e=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable;var Ue=(e,t,r)=>t in e?xe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,M=(e,t)=>{for(var r in t||(t={}))_e.call(t,r)&&Ue(e,r,t[r]);if(re)for(var r of re(t))Ne.call(t,r)&&Ue(e,r,t[r]);return e},J=(e,t)=>zt(e,Tt(t));var we=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(t,r)=>(typeof require!="undefined"?require:t)[r]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var Me=(e,t)=>{var r={};for(var n in e)_e.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&re)for(var n of re(e))t.indexOf(n)<0&&Ne.call(e,n)&&(r[n]=e[n]);return r};var Rt=(e,t)=>()=>(e&&(t=e(e=0)),t);var j=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Ht=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Ft(t))!_e.call(e,o)&&o!==r&&xe(e,o,{get:()=>t[o],enumerable:!(n=$t(t,o))||n.enumerable});return e};var Y=(e,t,r)=>(r=e!=null?Dt(It(e)):{},Ht(t||!e||!e.__esModule?xe(r,"default",{value:e,enumerable:!0}):r,e));var k=Rt(()=>{});var q=j((se,Ve)=>{k();(function(e,t){typeof se=="object"?Ve.exports=se=t():typeof define=="function"&&define.amd?define([],t):e.CryptoJS=t()})(se,function(){var e=e||function(t,r){var n;if(typeof window!="undefined"&&window.crypto&&(n=window.crypto),typeof self!="undefined"&&self.crypto&&(n=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(n=globalThis.crypto),!n&&typeof window!="undefined"&&window.msCrypto&&(n=window.msCrypto),!n&&typeof global!="undefined"&&global.crypto&&(n=global.crypto),!n&&typeof we=="function")try{n=we("crypto")}catch(i){}var o=function(){if(n){if(typeof n.getRandomValues=="function")try{return n.getRandomValues(new Uint32Array(1))[0]}catch(i){}if(typeof n.randomBytes=="function")try{return n.randomBytes(4).readInt32LE()}catch(i){}}throw new Error("Native crypto module could not be used to get secure random number.")},c=Object.create||function(){function i(){}return function(a){var x;return i.prototype=a,x=new i,i.prototype=null,x}}(),f={},s=f.lib={},y=s.Base=function(){return{extend:function(i){var a=c(this);return i&&a.mixIn(i),(!a.hasOwnProperty("init")||this.init===a.init)&&(a.init=function(){a.$super.init.apply(this,arguments)}),a.init.prototype=a,a.$super=this,a},create:function(){var i=this.extend();return i.init.apply(i,arguments),i},init:function(){},mixIn:function(i){for(var a in i)i.hasOwnProperty(a)&&(this[a]=i[a]);i.hasOwnProperty("toString")&&(this.toString=i.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),u=s.WordArray=y.extend({init:function(i,a){i=this.words=i||[],a!=r?this.sigBytes=a:this.sigBytes=i.length*4},toString:function(i){return(i||B).stringify(this)},concat:function(i){var a=this.words,x=i.words,_=this.sigBytes,D=i.sigBytes;if(this.clamp(),_%4)for(var z=0;z<D;z++){var R=x[z>>>2]>>>24-z%4*8&255;a[_+z>>>2]|=R<<24-(_+z)%4*8}else for(var A=0;A<D;A+=4)a[_+A>>>2]=x[A>>>2];return this.sigBytes+=D,this},clamp:function(){var i=this.words,a=this.sigBytes;i[a>>>2]&=4294967295<<32-a%4*8,i.length=t.ceil(a/4)},clone:function(){var i=y.clone.call(this);return i.words=this.words.slice(0),i},random:function(i){for(var a=[],x=0;x<i;x+=4)a.push(o());return new u.init(a,i)}}),l=f.enc={},B=l.Hex={stringify:function(i){for(var a=i.words,x=i.sigBytes,_=[],D=0;D<x;D++){var z=a[D>>>2]>>>24-D%4*8&255;_.push((z>>>4).toString(16)),_.push((z&15).toString(16))}return _.join("")},parse:function(i){for(var a=i.length,x=[],_=0;_<a;_+=2)x[_>>>3]|=parseInt(i.substr(_,2),16)<<24-_%8*4;return new u.init(x,a/2)}},b=l.Latin1={stringify:function(i){for(var a=i.words,x=i.sigBytes,_=[],D=0;D<x;D++){var z=a[D>>>2]>>>24-D%4*8&255;_.push(String.fromCharCode(z))}return _.join("")},parse:function(i){for(var a=i.length,x=[],_=0;_<a;_++)x[_>>>2]|=(i.charCodeAt(_)&255)<<24-_%4*8;return new u.init(x,a)}},C=l.Utf8={stringify:function(i){try{return decodeURIComponent(escape(b.stringify(i)))}catch(a){throw new Error("Malformed UTF-8 data")}},parse:function(i){return b.parse(unescape(encodeURIComponent(i)))}},S=s.BufferedBlockAlgorithm=y.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(i){typeof i=="string"&&(i=C.parse(i)),this._data.concat(i),this._nDataBytes+=i.sigBytes},_process:function(i){var a,x=this._data,_=x.words,D=x.sigBytes,z=this.blockSize,R=z*4,A=D/R;i?A=t.ceil(A):A=t.max((A|0)-this._minBufferSize,0);var I=A*z,H=t.min(I*4,D);if(I){for(var d=0;d<I;d+=z)this._doProcessBlock(_,d);a=_.splice(0,I),x.sigBytes-=H}return new u.init(a,H)},clone:function(){var i=y.clone.call(this);return i._data=this._data.clone(),i},_minBufferSize:0}),T=s.Hasher=S.extend({cfg:y.extend(),init:function(i){this.cfg=this.cfg.extend(i),this.reset()},reset:function(){S.reset.call(this),this._doReset()},update:function(i){return this._append(i),this._process(),this},finalize:function(i){i&&this._append(i);var a=this._doFinalize();return a},blockSize:512/32,_createHelper:function(i){return function(a,x){return new i.init(x).finalize(a)}},_createHmacHelper:function(i){return function(a,x){return new L.HMAC.init(i,x).finalize(a)}}}),L=f.algo={};return f}(Math);return e})});var De=j((oe,Ze)=>{k();(function(e,t){typeof oe=="object"?Ze.exports=oe=t(q()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(oe,function(e){return function(){var t=e,r=t.lib,n=r.WordArray,o=t.enc,c=o.Base64={stringify:function(s){var y=s.words,u=s.sigBytes,l=this._map;s.clamp();for(var B=[],b=0;b<u;b+=3)for(var C=y[b>>>2]>>>24-b%4*8&255,S=y[b+1>>>2]>>>24-(b+1)%4*8&255,T=y[b+2>>>2]>>>24-(b+2)%4*8&255,L=C<<16|S<<8|T,i=0;i<4&&b+i*.75<u;i++)B.push(l.charAt(L>>>6*(3-i)&63));var a=l.charAt(64);if(a)for(;B.length%4;)B.push(a);return B.join("")},parse:function(s){var y=s.length,u=this._map,l=this._reverseMap;if(!l){l=this._reverseMap=[];for(var B=0;B<u.length;B++)l[u.charCodeAt(B)]=B}var b=u.charAt(64);if(b){var C=s.indexOf(b);C!==-1&&(y=C)}return f(s,y,l)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function f(s,y,u){for(var l=[],B=0,b=0;b<y;b++)if(b%4){var C=u[s.charCodeAt(b-1)]<<b%4*2,S=u[s.charCodeAt(b)]>>>6-b%4*2,T=C|S;l[B>>>2]|=T<<24-B%4*8,B++}return n.create(l,B)}}(),e.enc.Base64})});var ze=j((ae,Ye)=>{k();(function(e,t){typeof ae=="object"?Ye.exports=ae=t(q()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(ae,function(e){return function(t){var r=e,n=r.lib,o=n.WordArray,c=n.Hasher,f=r.algo,s=[];(function(){for(var C=0;C<64;C++)s[C]=t.abs(t.sin(C+1))*4294967296|0})();var y=f.MD5=c.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(C,S){for(var T=0;T<16;T++){var L=S+T,i=C[L];C[L]=(i<<8|i>>>24)&16711935|(i<<24|i>>>8)&4278255360}var a=this._hash.words,x=C[S+0],_=C[S+1],D=C[S+2],z=C[S+3],R=C[S+4],A=C[S+5],I=C[S+6],H=C[S+7],d=C[S+8],w=C[S+9],E=C[S+10],p=C[S+11],$=C[S+12],F=C[S+13],W=C[S+14],N=C[S+15],h=a[0],v=a[1],m=a[2],g=a[3];h=u(h,v,m,g,x,7,s[0]),g=u(g,h,v,m,_,12,s[1]),m=u(m,g,h,v,D,17,s[2]),v=u(v,m,g,h,z,22,s[3]),h=u(h,v,m,g,R,7,s[4]),g=u(g,h,v,m,A,12,s[5]),m=u(m,g,h,v,I,17,s[6]),v=u(v,m,g,h,H,22,s[7]),h=u(h,v,m,g,d,7,s[8]),g=u(g,h,v,m,w,12,s[9]),m=u(m,g,h,v,E,17,s[10]),v=u(v,m,g,h,p,22,s[11]),h=u(h,v,m,g,$,7,s[12]),g=u(g,h,v,m,F,12,s[13]),m=u(m,g,h,v,W,17,s[14]),v=u(v,m,g,h,N,22,s[15]),h=l(h,v,m,g,_,5,s[16]),g=l(g,h,v,m,I,9,s[17]),m=l(m,g,h,v,p,14,s[18]),v=l(v,m,g,h,x,20,s[19]),h=l(h,v,m,g,A,5,s[20]),g=l(g,h,v,m,E,9,s[21]),m=l(m,g,h,v,N,14,s[22]),v=l(v,m,g,h,R,20,s[23]),h=l(h,v,m,g,w,5,s[24]),g=l(g,h,v,m,W,9,s[25]),m=l(m,g,h,v,z,14,s[26]),v=l(v,m,g,h,d,20,s[27]),h=l(h,v,m,g,F,5,s[28]),g=l(g,h,v,m,D,9,s[29]),m=l(m,g,h,v,H,14,s[30]),v=l(v,m,g,h,$,20,s[31]),h=B(h,v,m,g,A,4,s[32]),g=B(g,h,v,m,d,11,s[33]),m=B(m,g,h,v,p,16,s[34]),v=B(v,m,g,h,W,23,s[35]),h=B(h,v,m,g,_,4,s[36]),g=B(g,h,v,m,R,11,s[37]),m=B(m,g,h,v,H,16,s[38]),v=B(v,m,g,h,E,23,s[39]),h=B(h,v,m,g,F,4,s[40]),g=B(g,h,v,m,x,11,s[41]),m=B(m,g,h,v,z,16,s[42]),v=B(v,m,g,h,I,23,s[43]),h=B(h,v,m,g,w,4,s[44]),g=B(g,h,v,m,$,11,s[45]),m=B(m,g,h,v,N,16,s[46]),v=B(v,m,g,h,D,23,s[47]),h=b(h,v,m,g,x,6,s[48]),g=b(g,h,v,m,H,10,s[49]),m=b(m,g,h,v,W,15,s[50]),v=b(v,m,g,h,A,21,s[51]),h=b(h,v,m,g,$,6,s[52]),g=b(g,h,v,m,z,10,s[53]),m=b(m,g,h,v,E,15,s[54]),v=b(v,m,g,h,_,21,s[55]),h=b(h,v,m,g,d,6,s[56]),g=b(g,h,v,m,N,10,s[57]),m=b(m,g,h,v,I,15,s[58]),v=b(v,m,g,h,F,21,s[59]),h=b(h,v,m,g,R,6,s[60]),g=b(g,h,v,m,p,10,s[61]),m=b(m,g,h,v,D,15,s[62]),v=b(v,m,g,h,w,21,s[63]),a[0]=a[0]+h|0,a[1]=a[1]+v|0,a[2]=a[2]+m|0,a[3]=a[3]+g|0},_doFinalize:function(){var C=this._data,S=C.words,T=this._nDataBytes*8,L=C.sigBytes*8;S[L>>>5]|=128<<24-L%32;var i=t.floor(T/4294967296),a=T;S[(L+64>>>9<<4)+15]=(i<<8|i>>>24)&16711935|(i<<24|i>>>8)&4278255360,S[(L+64>>>9<<4)+14]=(a<<8|a>>>24)&16711935|(a<<24|a>>>8)&4278255360,C.sigBytes=(S.length+1)*4,this._process();for(var x=this._hash,_=x.words,D=0;D<4;D++){var z=_[D];_[D]=(z<<8|z>>>24)&16711935|(z<<24|z>>>8)&4278255360}return x},clone:function(){var C=c.clone.call(this);return C._hash=this._hash.clone(),C}});function u(C,S,T,L,i,a,x){var _=C+(S&T|~S&L)+i+x;return(_<<a|_>>>32-a)+S}function l(C,S,T,L,i,a,x){var _=C+(S&L|T&~L)+i+x;return(_<<a|_>>>32-a)+S}function B(C,S,T,L,i,a,x){var _=C+(S^T^L)+i+x;return(_<<a|_>>>32-a)+S}function b(C,S,T,L,i,a,x){var _=C+(T^(S|~L))+i+x;return(_<<a|_>>>32-a)+S}r.MD5=c._createHelper(y),r.HmacMD5=c._createHmacHelper(y)}(Math),e.MD5})});var Qe=j((ce,Ge)=>{k();(function(e,t){typeof ce=="object"?Ge.exports=ce=t(q()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(ce,function(e){return function(){var t=e,r=t.lib,n=r.WordArray,o=r.Hasher,c=t.algo,f=[],s=c.SHA1=o.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(y,u){for(var l=this._hash.words,B=l[0],b=l[1],C=l[2],S=l[3],T=l[4],L=0;L<80;L++){if(L<16)f[L]=y[u+L]|0;else{var i=f[L-3]^f[L-8]^f[L-14]^f[L-16];f[L]=i<<1|i>>>31}var a=(B<<5|B>>>27)+T+f[L];L<20?a+=(b&C|~b&S)+1518500249:L<40?a+=(b^C^S)+1859775393:L<60?a+=(b&C|b&S|C&S)-1894007588:a+=(b^C^S)-899497514,T=S,S=C,C=b<<30|b>>>2,b=B,B=a}l[0]=l[0]+B|0,l[1]=l[1]+b|0,l[2]=l[2]+C|0,l[3]=l[3]+S|0,l[4]=l[4]+T|0},_doFinalize:function(){var y=this._data,u=y.words,l=this._nDataBytes*8,B=y.sigBytes*8;return u[B>>>5]|=128<<24-B%32,u[(B+64>>>9<<4)+14]=Math.floor(l/4294967296),u[(B+64>>>9<<4)+15]=l,y.sigBytes=u.length*4,this._process(),this._hash},clone:function(){var y=o.clone.call(this);return y._hash=this._hash.clone(),y}});t.SHA1=o._createHelper(s),t.HmacSHA1=o._createHmacHelper(s)}(),e.SHA1})});var et=j((fe,Xe)=>{k();(function(e,t){typeof fe=="object"?Xe.exports=fe=t(q()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(fe,function(e){(function(){var t=e,r=t.lib,n=r.Base,o=t.enc,c=o.Utf8,f=t.algo,s=f.HMAC=n.extend({init:function(y,u){y=this._hasher=new y.init,typeof u=="string"&&(u=c.parse(u));var l=y.blockSize,B=l*4;u.sigBytes>B&&(u=y.finalize(u)),u.clamp();for(var b=this._oKey=u.clone(),C=this._iKey=u.clone(),S=b.words,T=C.words,L=0;L<l;L++)S[L]^=1549556828,T[L]^=909522486;b.sigBytes=C.sigBytes=B,this.reset()},reset:function(){var y=this._hasher;y.reset(),y.update(this._iKey)},update:function(y){return this._hasher.update(y),this},finalize:function(y){var u=this._hasher,l=u.finalize(y);u.reset();var B=u.finalize(this._oKey.clone().concat(l));return B}})})()})});var $e=j((ue,tt)=>{k();(function(e,t,r){typeof ue=="object"?tt.exports=ue=t(q(),Qe(),et()):typeof define=="function"&&define.amd?define(["./core","./sha1","./hmac"],t):t(e.CryptoJS)})(ue,function(e){return function(){var t=e,r=t.lib,n=r.Base,o=r.WordArray,c=t.algo,f=c.MD5,s=c.EvpKDF=n.extend({cfg:n.extend({keySize:128/32,hasher:f,iterations:1}),init:function(y){this.cfg=this.cfg.extend(y)},compute:function(y,u){for(var l,B=this.cfg,b=B.hasher.create(),C=o.create(),S=C.words,T=B.keySize,L=B.iterations;S.length<T;){l&&b.update(l),l=b.update(y).finalize(u),b.reset();for(var i=1;i<L;i++)l=b.finalize(l),b.reset();C.concat(l)}return C.sigBytes=T*4,C}});t.EvpKDF=function(y,u,l){return s.create(l).compute(y,u)}}(),e.EvpKDF})});var le=j((de,rt)=>{k();(function(e,t,r){typeof de=="object"?rt.exports=de=t(q(),$e()):typeof define=="function"&&define.amd?define(["./core","./evpkdf"],t):t(e.CryptoJS)})(de,function(e){e.lib.Cipher||function(t){var r=e,n=r.lib,o=n.Base,c=n.WordArray,f=n.BufferedBlockAlgorithm,s=r.enc,y=s.Utf8,u=s.Base64,l=r.algo,B=l.EvpKDF,b=n.Cipher=f.extend({cfg:o.extend(),createEncryptor:function(d,w){return this.create(this._ENC_XFORM_MODE,d,w)},createDecryptor:function(d,w){return this.create(this._DEC_XFORM_MODE,d,w)},init:function(d,w,E){this.cfg=this.cfg.extend(E),this._xformMode=d,this._key=w,this.reset()},reset:function(){f.reset.call(this),this._doReset()},process:function(d){return this._append(d),this._process()},finalize:function(d){d&&this._append(d);var w=this._doFinalize();return w},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function d(w){return typeof w=="string"?H:R}return function(w){return{encrypt:function(E,p,$){return d(p).encrypt(w,E,p,$)},decrypt:function(E,p,$){return d(p).decrypt(w,E,p,$)}}}}()}),C=n.StreamCipher=b.extend({_doFinalize:function(){var d=this._process(!0);return d},blockSize:1}),S=r.mode={},T=n.BlockCipherMode=o.extend({createEncryptor:function(d,w){return this.Encryptor.create(d,w)},createDecryptor:function(d,w){return this.Decryptor.create(d,w)},init:function(d,w){this._cipher=d,this._iv=w}}),L=S.CBC=function(){var d=T.extend();d.Encryptor=d.extend({processBlock:function(E,p){var $=this._cipher,F=$.blockSize;w.call(this,E,p,F),$.encryptBlock(E,p),this._prevBlock=E.slice(p,p+F)}}),d.Decryptor=d.extend({processBlock:function(E,p){var $=this._cipher,F=$.blockSize,W=E.slice(p,p+F);$.decryptBlock(E,p),w.call(this,E,p,F),this._prevBlock=W}});function w(E,p,$){var F,W=this._iv;W?(F=W,this._iv=t):F=this._prevBlock;for(var N=0;N<$;N++)E[p+N]^=F[N]}return d}(),i=r.pad={},a=i.Pkcs7={pad:function(d,w){for(var E=w*4,p=E-d.sigBytes%E,$=p<<24|p<<16|p<<8|p,F=[],W=0;W<p;W+=4)F.push($);var N=c.create(F,p);d.concat(N)},unpad:function(d){var w=d.words[d.sigBytes-1>>>2]&255;d.sigBytes-=w}},x=n.BlockCipher=b.extend({cfg:b.cfg.extend({mode:L,padding:a}),reset:function(){var d;b.reset.call(this);var w=this.cfg,E=w.iv,p=w.mode;this._xformMode==this._ENC_XFORM_MODE?d=p.createEncryptor:(d=p.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==d?this._mode.init(this,E&&E.words):(this._mode=d.call(p,this,E&&E.words),this._mode.__creator=d)},_doProcessBlock:function(d,w){this._mode.processBlock(d,w)},_doFinalize:function(){var d,w=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(w.pad(this._data,this.blockSize),d=this._process(!0)):(d=this._process(!0),w.unpad(d)),d},blockSize:128/32}),_=n.CipherParams=o.extend({init:function(d){this.mixIn(d)},toString:function(d){return(d||this.formatter).stringify(this)}}),D=r.format={},z=D.OpenSSL={stringify:function(d){var w,E=d.ciphertext,p=d.salt;return p?w=c.create([1398893684,1701076831]).concat(p).concat(E):w=E,w.toString(u)},parse:function(d){var w,E=u.parse(d),p=E.words;return p[0]==1398893684&&p[1]==1701076831&&(w=c.create(p.slice(2,4)),p.splice(0,4),E.sigBytes-=16),_.create({ciphertext:E,salt:w})}},R=n.SerializableCipher=o.extend({cfg:o.extend({format:z}),encrypt:function(d,w,E,p){p=this.cfg.extend(p);var $=d.createEncryptor(E,p),F=$.finalize(w),W=$.cfg;return _.create({ciphertext:F,key:E,iv:W.iv,algorithm:d,mode:W.mode,padding:W.padding,blockSize:d.blockSize,formatter:p.format})},decrypt:function(d,w,E,p){p=this.cfg.extend(p),w=this._parse(w,p.format);var $=d.createDecryptor(E,p).finalize(w.ciphertext);return $},_parse:function(d,w){return typeof d=="string"?w.parse(d,this):d}}),A=r.kdf={},I=A.OpenSSL={execute:function(d,w,E,p,$){if(p||(p=c.random(64/8)),$)var F=B.create({keySize:w+E,hasher:$}).compute(d,p);else var F=B.create({keySize:w+E}).compute(d,p);var W=c.create(F.words.slice(w),E*4);return F.sigBytes=w*4,_.create({key:F,iv:W,salt:p})}},H=n.PasswordBasedCipher=R.extend({cfg:R.cfg.extend({kdf:I}),encrypt:function(d,w,E,p){p=this.cfg.extend(p);var $=p.kdf.execute(E,d.keySize,d.ivSize,p.salt,p.hasher);p.iv=$.iv;var F=R.encrypt.call(this,d,w,$.key,p);return F.mixIn($),F},decrypt:function(d,w,E,p){p=this.cfg.extend(p),w=this._parse(w,p.format);var $=p.kdf.execute(E,d.keySize,d.ivSize,w.salt,p.hasher);p.iv=$.iv;var F=R.decrypt.call(this,d,w,$.key,p);return F}})}()})});var it=j((he,nt)=>{k();(function(e,t,r){typeof he=="object"?nt.exports=he=t(q(),De(),ze(),$e(),le()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],t):t(e.CryptoJS)})(he,function(e){return function(){var t=e,r=t.lib,n=r.BlockCipher,o=t.algo,c=[],f=[],s=[],y=[],u=[],l=[],B=[],b=[],C=[],S=[];(function(){for(var i=[],a=0;a<256;a++)a<128?i[a]=a<<1:i[a]=a<<1^283;for(var x=0,_=0,a=0;a<256;a++){var D=_^_<<1^_<<2^_<<3^_<<4;D=D>>>8^D&255^99,c[x]=D,f[D]=x;var z=i[x],R=i[z],A=i[R],I=i[D]*257^D*16843008;s[x]=I<<24|I>>>8,y[x]=I<<16|I>>>16,u[x]=I<<8|I>>>24,l[x]=I;var I=A*16843009^R*65537^z*257^x*16843008;B[D]=I<<24|I>>>8,b[D]=I<<16|I>>>16,C[D]=I<<8|I>>>24,S[D]=I,x?(x=z^i[i[i[A^z]]],_^=i[i[_]]):x=_=1}})();var T=[0,1,2,4,8,16,32,64,128,27,54],L=o.AES=n.extend({_doReset:function(){var i;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var a=this._keyPriorReset=this._key,x=a.words,_=a.sigBytes/4,D=this._nRounds=_+6,z=(D+1)*4,R=this._keySchedule=[],A=0;A<z;A++)A<_?R[A]=x[A]:(i=R[A-1],A%_?_>6&&A%_==4&&(i=c[i>>>24]<<24|c[i>>>16&255]<<16|c[i>>>8&255]<<8|c[i&255]):(i=i<<8|i>>>24,i=c[i>>>24]<<24|c[i>>>16&255]<<16|c[i>>>8&255]<<8|c[i&255],i^=T[A/_|0]<<24),R[A]=R[A-_]^i);for(var I=this._invKeySchedule=[],H=0;H<z;H++){var A=z-H;if(H%4)var i=R[A];else var i=R[A-4];H<4||A<=4?I[H]=i:I[H]=B[c[i>>>24]]^b[c[i>>>16&255]]^C[c[i>>>8&255]]^S[c[i&255]]}}},encryptBlock:function(i,a){this._doCryptBlock(i,a,this._keySchedule,s,y,u,l,c)},decryptBlock:function(i,a){var x=i[a+1];i[a+1]=i[a+3],i[a+3]=x,this._doCryptBlock(i,a,this._invKeySchedule,B,b,C,S,f);var x=i[a+1];i[a+1]=i[a+3],i[a+3]=x},_doCryptBlock:function(i,a,x,_,D,z,R,A){for(var I=this._nRounds,H=i[a]^x[0],d=i[a+1]^x[1],w=i[a+2]^x[2],E=i[a+3]^x[3],p=4,$=1;$<I;$++){var F=_[H>>>24]^D[d>>>16&255]^z[w>>>8&255]^R[E&255]^x[p++],W=_[d>>>24]^D[w>>>16&255]^z[E>>>8&255]^R[H&255]^x[p++],N=_[w>>>24]^D[E>>>16&255]^z[H>>>8&255]^R[d&255]^x[p++],h=_[E>>>24]^D[H>>>16&255]^z[d>>>8&255]^R[w&255]^x[p++];H=F,d=W,w=N,E=h}var F=(A[H>>>24]<<24|A[d>>>16&255]<<16|A[w>>>8&255]<<8|A[E&255])^x[p++],W=(A[d>>>24]<<24|A[w>>>16&255]<<16|A[E>>>8&255]<<8|A[H&255])^x[p++],N=(A[w>>>24]<<24|A[E>>>16&255]<<16|A[H>>>8&255]<<8|A[d&255])^x[p++],h=(A[E>>>24]<<24|A[H>>>16&255]<<16|A[d>>>8&255]<<8|A[w&255])^x[p++];i[a]=F,i[a+1]=W,i[a+2]=N,i[a+3]=h},keySize:256/32});t.AES=n._createHelper(L)}(),e.AES})});var ot=j((pe,st)=>{k();(function(e,t){typeof pe=="object"?st.exports=pe=t(q()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(pe,function(e){return e.enc.Utf8})});var ct=j((ve,at)=>{k();(function(e,t,r){typeof ve=="object"?at.exports=ve=t(q(),le()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],t):t(e.CryptoJS)})(ve,function(e){return e.pad.Pkcs7})});var ut=j((me,ft)=>{k();(function(e,t,r){typeof me=="object"?ft.exports=me=t(q(),le()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],t):t(e.CryptoJS)})(me,function(e){return e.mode.ECB=function(){var t=e.lib.BlockCipherMode.extend();return t.Encryptor=t.extend({processBlock:function(r,n){this._cipher.encryptBlock(r,n)}}),t.Decryptor=t.extend({processBlock:function(r,n){this._cipher.decryptBlock(r,n)}}),t}(),e.mode.ECB})});k();import{titleCase as hi}from"title-case";k();import{isPlainObject as Vt,mergeWith as Zt,isArray as qe,isEqual as Ke,intersectionWith as Yt,unionWith as Gt}from"lodash-es";k();k();import{pathToRegexp as Pt,compile as Ot}from"path-to-regexp";var X={mobile:/^(?:(?:\+|00)86)?1[3-9]\d{9}$/,tel:/^(?:(?:\d{3}-)?\d{8}|(?:\d{4}-)?\d{7,8})(?:-\d+)?$/,numAndLetter:/^[A-Z0-9]+$/i,password:/^\S*(?=\S{6,})(?=\S*\d)(?=\S*[A-Z])(?=\S*[a-z])(?=\S*[!@#$%^&*? ])\S+$/,email:/^[A-Z0-9\u4E00-\u9FA5]+@[\w-]+(?:\.[\w-]+)+$/i,postalCode:/^(0[1-7]|1[0-356]|2[0-7]|3[0-6]|4[0-7]|5[1-7]|6[1-7]|7[0-5]|8[013-6])\d{4}$/,identityCard:/^[1-9]\d{5}(?:18|19|20)\d{2}(?:0[1-9]|10|11|12)(?:0[1-9]|[12]\d|30|31)\d{3}[\dX]$/i,ip:/^((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.){3}(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(?::(?:\d|[1-9]\d{1,3}|[1-5]\d{4}|6[0-4]\d{3}|65[0-4]\d{2}|655[0-2]\d|6553[0-5]))?$/,url:/^(((ht|f)tps?):\/\/)?([^!@#$%^&*?.\s-][^!@#$%^&*?.\s]{0,64}\.)+[a-z]{2,6}\/?/,httpsUrl:/^https:\/\//,domain:/^([0-9a-z-]+\.)+([a-z]{2,})$/i,plateNumber:/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z][A-HJ-NP-Z0-9]{4,5}[A-HJ-NP-Z0-9挂学警港澳]$/,md5:/^[a-f0-9]{32}$/i,base64:/^\s*data:(?:[a-z]+\/[a-z0-9-+.]+(?:;[a-z-]+=[a-z0-9-]+)?)?(?:;base64)?,([\w!$&',()*+;=\-.~:@/?%\s]*?)\s*$/i,uuid:/^[a-f\d]{4}(?:[a-f\d]{4}-){4}[a-f\d]{12}$/i,version:/^\d+(?:\.\d+){2}$/,videoUrl:/^https?:\/\/(.+\/)+.+(\.(swf|avi|flv|mpg|rm|mov|wav|asf|3gp|mkv|rmvb|mp4))$/i,imageUrl:/^https?:\/\/(.+\/)+.+(\.(gif|png|jpg|jpeg|webp|svg|psd|bmp|tif))$/i,chinese:/^(?:[\u3400-\u4DB5\u4E00-\u9FEA\uFA0E\uFA0F\uFA11\uFA13\uFA14\uFA1F\uFA21\uFA23\uFA24\uFA27-\uFA29]|[\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0])+$/,itcode:/^[a-z]+\d*$/i,numeric:/^\d+$/};var Wt=Object.prototype.toString;function je(e,t){return Wt.call(e)===`[object ${t}]`}function ne(e){return e!==null&&je(e,"Object")}function Ut(e){return X.url.test(e)}function be(e){return Array.isArray(e)&&e.length>0}function Nt(e){return Number.isInteger(e)&&e>=0}function Mt(e){return X.numeric.test(e)}var ie=typeof window=="undefined",Ce=!ie,Be=Ce&&window.navigator.userAgent.toLowerCase().includes("chrome"),Se=Ce&&window.navigator.userAgent.toLowerCase().includes("safari"),Ee=typeof window!="undefined"&&typeof document!="undefined",jt=Ee&&typeof document.body.style.lineClamp!="undefined",qt=Ee&&typeof ResizeObserver!="undefined",Kt=e=>X.chinese.test(e),Jt=()=>"startViewTransition"in document&&window.matchMedia("(prefers-reduced-motion: no-preference)").matches;var Qt=(e,t)=>{let r=e;return r.install=n=>{n.component(r.name||r.displayName,e),t&&(n.config.globalProperties[t]=e)},e};function Xt(e){if(!e)return e;let n=e,{matched:t}=n,r=Me(n,["matched"]);return J(M({},r),{matched:t?t.map(o=>({meta:o.meta,name:o.name,path:o.path})):void 0})}function ke(e,t){let{target:r="__blank",noopener:n=!0,noreferrer:o=!0}=t||{},c=[];n&&c.push("noopener=yes"),o&&c.push("noreferrer=yes"),window.open(e,r,c.join(","))}function Je(e,t,r="replace"){return t?e?Zt(e,t,(n,o)=>{if(qe(o)&&qe(n))switch(r){case"union":return Gt(n,o,Ke);case"intersection":return Yt(n,o,Ke);case"concat":return n.concat(o);case"replace":return o;default:throw new Error(`Unknown merge array strategy: ${r}`)}if(ne(o)&&ne(n))return Je(n,o,r)}):t:e}function er(e,t){if(!be(Object.keys(t)))return e;let r="";for(let n in t)r+=`${n}=${encodeURIComponent(t[n])}&`;return r=r.replace(/&$/,""),/\?$/.test(e)?e+r:e.replace(/\/?$/,"?")+r}function tr(e){Vt(e)&&Object.keys(e).forEach(t=>{Reflect.deleteProperty(e,t)})}function rr(e){return["$","(",")","*","+",".","[","]","?","\\","^","{","}","|"].includes(e)?`\\${e}`:e}function nr(e){let r=["",...[...e].map(n=>rr(n)),""].join(".*");return new RegExp(r,"i")}function ir(e="",t={}){let{size:r=14,family:n=getComputedStyle(document.documentElement).getPropertyValue("--vxe-font-family")||"sans-serif"}=t,c=document.createElement("canvas").getContext("2d");c.font=`${r}px ${n}`;let f=c.measureText(e),s=Math.abs(f.actualBoundingBoxLeft)+Math.abs(f.actualBoundingBoxRight);return Math.ceil(Math.max(f.width,s))}k();function Ae(e,t){return t?typeof t=="string"?` ${e}--${t}`:Array.isArray(t)?t.reduce((r,n)=>r+Ae(e,n),""):Object.keys(t).reduce((r,n)=>r+(t[n]?Ae(e,n):""),""):""}function Le(e){return(t,r)=>(t&&typeof t!="string"&&(r=t,t=""),t=t?`${e}__${t}`:e,`${t}${Ae(t,r)}`)}function sr(e,t=""){return[Le(`${t}-${e}`)]}function or(e,t=""){let r=`${t}-${e}`;return[r,Le(r)]}k();var ge=Y(it(),1),Z=Y(ot(),1),dt=Y(ct(),1),lt=Y(ut(),1),ht=Y(ze(),1),Fe=Y(De(),1),Te=class{constructor(t){let{key:r,iv:n}=t;r&&(this.key=(0,Z.parse)(r)),n&&(this.iv=(0,Z.parse)(n))}get getOptions(){return{mode:lt.default,padding:dt.default,iv:this.iv}}encryptByAES(t){return(0,ge.encrypt)(t,this.key,this.getOptions).toString()}decryptByAES(t){return(0,ge.decrypt)(t,this.key,this.getOptions).toString(Z.default)}};function ar(e){return Z.default.parse(e).toString(Fe.default)}function cr(e){return Fe.default.parse(e).toString(Z.default)}function fr(e){return(0,ht.default)(e).toString()}k();import{upperFirst as ur}from"lodash-es";var dr=()=>document.documentElement;function pt(e){return!e||!e.getBoundingClientRect?0:e.getBoundingClientRect()}function lr(e){return(e||"").replace(/^\s+|\s+$/g,"")}function Ie(e,t){if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList?e.classList.contains(t):` ${e.className} `.includes(` ${t} `)}function hr(e,t,r){return r||(r=dr()),r.style.setProperty(e,t),{prop:t}}function pr(e,t){if(!e)return;let r=e.className,n=(t||"").split(" ");for(let o=0,c=n.length;o<c;o++){let f=n[o];f&&(e.classList?e.classList.add(f):Ie(e,f)||(r+=` ${f}`))}e.classList||(e.className=r)}function vr(e,t){if(!e||!t)return;let r=t.split(" "),n=` ${e.className} `;for(let o=0,c=r.length;o<c;o++){let f=r[o];f&&(e.classList?e.classList.remove(f):Ie(e,f)&&(n=n.replace(` ${f} `," ")))}e.classList||(e.className=lr(n))}function mr(e){let t=document.documentElement,r=t.scrollLeft,n=t.scrollTop,o=t.clientLeft,c=t.clientTop,f=window.scrollX,s=window.scrollY,y=pt(e);if(!y)return{};let{left:u,top:l,width:B,height:b}=y,C=(f||r)-(o||0),S=(s||n)-(c||0),T=u+f,L=l+s,i=T-C,a=L-S,x=window.document.documentElement.clientWidth,_=window.document.documentElement.clientHeight;return{left:i,top:a,right:x-B-i,bottom:_-b-a,rightIncludeBody:x-i,bottomIncludeBody:_-a}}function gr(e,t){let r=["webkit","Moz","ms","OT"],n={};return r.forEach(o=>{n[`${o}${ur(e)}`]=t}),J(M({},n),{[e]:t})}function yr(e,t,r){e&&t&&r&&e.addEventListener(t,r,!1)}function xr(e,t,r){e&&t&&r&&e.removeEventListener(t,r,!1)}function _r(e){let t=!1;return function(...r){t||(t=!0,window.requestAnimationFrame(()=>{e.apply(this,r),t=!1}))}}k();import vt from"resize-observer-polyfill";function wr(e){for(let t of e){let r=t.target.__resizeListeners__||[];r.length&&r.forEach(n=>{n()})}}function br(e,t){ie||(e.__resizeListeners__||(e.__resizeListeners__=[],e.__ro__=new vt(wr),e.__ro__.observe(e)),e.__resizeListeners__.push(t))}function Cr(e,t){!e||!e.__resizeListeners__||(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),e.__resizeListeners__.length||(e.__ro__.disconnect(),e.__ro__=null,e.__resizeListeners__=null))}function Br(){let e=new Event("resize",{bubbles:!0,cancelable:!0});window.dispatchEvent(e)}function Sr(e,t={}){function r(n){let o=window.history[n];return function(...c){let f=new Event(n);return f.arguments=c,window.dispatchEvent(f),o.apply(this,c)}}return window.history.pushState=r("pushState"),window.history.replaceState=r("replaceState"),window.addEventListener("popstate",e,t),window.addEventListener("hashchange",e,t),window.addEventListener("replaceState",e,t),window.addEventListener("pushState",e,t),{removeListener:()=>{window.removeEventListener("popstate",e,t),window.removeEventListener("hashchange",e,t),window.removeEventListener("replaceState",e,t),window.removeEventListener("pushState",e,t)}}}k();import{round as Er,isNil as kr}from"lodash-es";function mt(e){let t=e.split(","),n=t[0].match(/:(.*?);/)[1],o=window.atob(t[1]),c=o.length,f=new Uint8Array(c);for(;c--;)f[c]=o.charCodeAt(c);return new Blob([f],{type:n})}function gt(e,t){return new Promise((r,n)=>{let o=document.createElement("CANVAS"),c=o.getContext("2d"),f=new Image;f.crossOrigin="",f.onload=function(){if(!o||!c)return n();o.height=f.height,o.width=f.width,c.drawImage(f,0,0);let s=o.toDataURL(t||"image/png");o=null,r(s)},f.src=e})}function Ar(e){let{loaded:t,total:r}=e;if(r<=0||kr(r))return 0;let n=t/r;return Er((n>1?1:n)*100)}function Lr(e,t,r,n){gt(e).then(o=>{yt(o,t,r,n)})}function yt(e,t,r,n){let o=mt(e);xt(o,t,r,n)}function xt(e,t,r,n){let o=typeof n!="undefined"?[n,e]:[e],c=new Blob(o,{type:r||"application/octet-stream"});if(typeof window.navigator.msSaveBlob!="undefined")window.navigator.msSaveBlob(c,t);else{let f=window.URL.createObjectURL(c),s=document.createElement("a");s.style.display="none",s.href=f,s.setAttribute("download",t),typeof s.download=="undefined"&&s.setAttribute("target","_blank"),document.body.appendChild(s),s.click(),document.body.removeChild(s),window.URL.revokeObjectURL(f)}}function Dr({url:e,target:t="_blank",fileName:r}){if(/iP/.test(window.navigator.userAgent))return!1;if(Be||Se){let n=document.createElement("a");return n.href=e,n.download=r||e.substring(e.lastIndexOf("/")+1,e.length),n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n),!0}return e.includes("?")||(e+="?download"),ke(e,{target:t}),!0}k();var zr=(e,t,r="ig")=>{let n=new RegExp(t,r);return[...e.matchAll(n)].map(s=>({index:s.index,subString:s[0]}))};function $r(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}var Tr=(e,t)=>{let r=e;if(!t)return r;let{tagName:n="mark",bgColor:o,color:c,style:f={},renderHighlightKeyword:s}=t;if(typeof s=="function")return s(e);f.backgroundColor=o,f.color=c;let u=`style="${Object.keys(f).map(l=>`${$r(l)}:${f[l]}`).join(";")}"`;return`<${n} ${u}>${r}</${n}>`},Fr=(e,t)=>{let r="";return t.forEach(n=>{let{start:o,end:c,option:f}=n,s=e.slice(o,c),y=Tr(s,f);r+=y,n.subString=y}),r},Ir=(e,t)=>{let r=[];return t.forEach(n=>{let o={keyword:""};typeof n=="string"?o={keyword:n}:o=n;let{keyword:c,caseSensitive:f=!0}=o,s=zr(e,c,f?"g":"gi"),y={keyword:c,indexList:s,option:o};r.push(y)}),r},Rr=(e,t)=>{let r=Ir(e,t),n=[],o=(f,s)=>{for(let y=0;y<n.length;y++){let u=n[y];if(f>u.start&&f<u.end||f+s>u.start&&f+s<u.end||u.start>f&&u.start<f+s||u.end>f&&u.end<f+s||f===u.start&&f+s===u.end)return-1;if(f+s<=u.start)return y}return n.length};r.forEach(({indexList:f,option:s})=>{f.forEach(y=>{let{index:u,subString:l}=y,B={start:u,end:u+l.length,option:s},b=o(u,l.length);b!==-1&&n.splice(b,0,B)})});let c=[];return n.forEach((f,s)=>{let{start:y,end:u}=f,l=n[s+1];s===0&&y>0&&c.push({start:0,end:y,subString:e.slice(0,y)}),c.push(J(M({},f),{subString:e.slice(y,u)})),(l==null?void 0:l.start)>u&&c.push({start:u,end:l.start,subString:e.slice(u,l.start)}),s===n.length-1&&u<e.length-1&&c.push({start:u,end:e.length-1,subString:e.slice(u,e.length)})}),c},Hr=(e,t)=>{let r=Rr(e,t);return{highText:Fr(e,r),highList:r}};k();import{clearInterval as He,clearTimeout as wt,setInterval as bt,setTimeout as Ct}from"worker-timers";var V="active",Re="idle",_t="hidden",G,ee,te,K={},U={attach(e,t){K[e]||(K[e]=[]),K[e].push(t)},fire(e,t=[]){K[e]&&K[e].forEach(r=>{r(...t)})},remove(e,t){t||Reflect.deleteProperty(K,e),K[e]&&(K[e]=K[e].filter(r=>t!==r))},dom(e,t,r){return te||(e.addEventListener?te=(n,o,c)=>n.addEventListener(o,c,!1):typeof e.attachEvent=="function"?te=(n,o,c)=>n.attachEvent(`on${o}`,c,!1):te=(n,o,c)=>n[`on${o}`]=c),te(e,t,r)}},Pe=class{constructor(t,r,n){this.activity=t,this.seconds=r,this.callback=n,this.stopped=!1,this.start(),this.activity.on("statusChanged",o=>{this.stopped===!1&&(o.status===V?this.start():this.pause())})}start(){this.stopped=!1,He(this.token),this.token=bt(this.callback,this.seconds*1e3)}stop(){this.stopped=!0,He(this.token)}resume(){this.start()}pause(){this.stop()}},ye=class{constructor(){if(this.status=V,this.timers=[],this.idleTime=3e4,this.isLegacyModeOn=!1,document.hidden!==void 0?(G="hidden",ee="visibilitychange"):document.mozHidden!==void 0?(G="mozHidden",ee="mozvisibilitychange"):document.msHidden!==void 0?(G="msHidden",ee="msvisibilitychange"):document.webkitHidden!==void 0&&(G="webkitHidden",ee="webkitvisibilitychange"),G===void 0)this.legacyMode();else{let t=()=>{document[G]?this.blur():this.focus()};t(),U.dom(document,ee,t)}this.startIdleTimer(),this.trackIdleStatus()}legacyMode(){this.isLegacyModeOn||(U.dom(window,"blur",()=>this.blur()),U.dom(window,"focus",()=>this.focus()),this.isLegacyModeOn=!0)}startIdleTimer(t){t instanceof MouseEvent&&t.movementX===0&&t.movementY===0||(this.timers.map(wt),this.timers.length=0,this.status===Re&&this.wakeUp(),this.idleStartedTime=+new Date,this.timers.push(Ct(()=>{if(this.status===V||this.status===_t)return this.idle()},this.idleTime)))}trackIdleStatus(){U.dom(document,"mousemove",this.startIdleTimer.bind(this)),U.dom(document,"mousedown",this.startIdleTimer.bind(this)),U.dom(document,"keyup",this.startIdleTimer.bind(this)),U.dom(document,"touchstart",this.startIdleTimer.bind(this)),U.dom(window,"scroll",this.startIdleTimer.bind(this)),this.focus(this.startIdleTimer.bind(this))}on(t,r){return U.attach(t,r),this}off(t,r){return U.remove(t,r),this}setIdleDuration(t){return this.idleTime=t*1e3,this.startIdleTimer(),this}getIdleDuration(){return this.idleTime}getIdleInfo(){let t=+new Date,r;if(this.status===Re)r={isIdle:!0,idleFor:t-this.idleStartedTime,timeLeft:0,timeLeftPer:100};else{let n=this.idleStartedTime+this.idleTime-t;r={isIdle:!1,idleFor:t-this.idleStartedTime,timeLeft:n,timeLeftPer:Number.parseFloat((100-n*100/this.idleTime).toFixed(2))}}return r}idle(t){return t?this.on("idle",t):(this.status=Re,U.fire("idle"),U.fire("statusChanged",[{status:this.status}])),this}blur(t){return t?this.on("blur",t):(this.status=_t,U.fire("blur"),U.fire("statusChanged",[{status:this.status}])),this}focus(t){return t?this.on("focus",t):this.status!==V&&(this.status=V,U.fire("focus"),U.fire("wakeUp"),U.fire("statusChanged",[{status:this.status}])),this}wakeUp(t){return t?this.on("wakeUp",t):this.status!==V&&(this.status=V,U.fire("wakeUp"),U.fire("statusChanged",[{status:this.status}])),this}onEvery(t,r){return new Pe(this,t,r)}now(t){return t!==void 0?this.status===t:this.status===V}};k();import{isFunction as Pr}from"lodash-es";function Bt(e,t="default",r){if(!e||!Reflect.has(e,t)||!Pr(e[t]))return null;let n=e[t];return n?n(r):null}function Or(e,t=[]){let r=Object.keys(e),n={};return r.forEach(o=>{if(t.includes(o))return null;n[o]=c=>Bt(e,o,c)}),n}k();function Wr(e,{type:t="text/javascript"}={}){return new Promise((r,n)=>{let o=!1,c=document.querySelector(`script[src="${e}"]`);if(!c)c=document.createElement("script"),c.type=t,c.async=!0,c.src=e,o=!0;else if(c.hasAttribute("data-loaded")){r({el:c});return}c.addEventListener("error",n),c.addEventListener("abort",n),c.addEventListener("load",()=>{c.setAttribute("data-loaded",!0),r({el:c})}),o&&document.head.appendChild(c)})}function Ur(e){return new Promise((t,r)=>{let n=document.querySelector(`script[src="${e}"]`);if(!n){r();return}document.head.removeChild(n),t()})}k();function Nr(e,t,r){return kt(e,t,r,!1)}function Mr(e,t,r){return kt(e,t,r,!0).length>0}function Et(e){return typeof e!="string"?e:e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Oe=new Map;function St(e,t){if(!Array.isArray(e))switch(typeof e){case"string":e=[e];break;case"undefined":e=[];break;default:throw new TypeError(`Expected '${t}' to be a string or an array, but got a type of '${typeof e}'`)}return e.filter(r=>{if(typeof r!="string"){if(typeof r=="undefined")return!1;throw new TypeError(`Expected '${t}' to be an array of strings, but found a type of '${typeof r}' in the array`)}return!0})}function jr(e,t){t=M({caseSensitive:!1},t);let r=e+JSON.stringify(t);if(Oe.has(r))return Oe.get(r);let n=e[0]==="!";n&&(e=e.slice(1)),e=Et(e).replace(/\\\*/g,"[\\s\\S]*");let o=new RegExp(`^${e}$`,t.caseSensitive?"":"i");return o.negated=n,Oe.set(r,o),o}function kt(e,t,r,n){if(e=St(e,"inputs"),t=St(t,"patterns"),t.length===0)return[];t=t.map(f=>jr(f,r));let{allPatterns:o}=r||{},c=[];for(let f of e){let s,y=[...t].fill(!1);for(let[u,l]of t.entries())if(l.test(f)&&(y[u]=!0,s=!l.negated,!s))break;if(!(s===!1||s===void 0&&t.some(u=>!u.negated)||o&&y.some((u,l)=>!u&&!t[l].negated))&&(c.push(f),n))break}return c}k();var qr={id:"id",children:"children",pid:"pid"},Q=e=>Object.assign({},qr,e);function Kr(e,t,r={}){r=Q(r);let{children:n}=r,o=[...e];for(let c of o){if(t(c))return c;c[n]&&o.push(...c[n])}return null}function Jr(e,t,r={}){r=Q(r);let{children:n}=r,o=[...e],c=[];for(let f of o)t(f)&&c.push(f),f[n]&&o.push(...f[n]);return c}function Vr(e,t,r={}){r=Q(r);let n=[],o=[...e],c=new Set,{children:f}=r;for(;o.length;){let s=o[0];if(c.has(s))n.pop(),o.shift();else if(c.add(s),s[f]&&o.unshift(...s[f]),n.push(s),t(s))return n}return null}function Zr(e,t,r={}){r=Q(r);let n=[],o=[...e],c=[],f=new Set,{children:s}=r;for(;o.length;){let y=o[0];f.has(y)?(n.pop(),o.shift()):(f.add(y),y[s]&&o.unshift(...y[s]),n.push(y),t(y)&&c.push([...n]))}return c}function Yr(e,t,r={}){r=Q(r);let n=r.children;function o(c){return c.map(f=>M({},f)).filter(f=>(f[n]=f[n]&&o(f[n]),t(f)||f[n]&&f[n].length))}return o(e)}function Gr(e,t,r={}){r=Q(r);let n=[...e],{children:o}=r;for(let c=0;c<n.length;c++){if(t(n[c]))return;o&&n[c][o]&&n.splice(c+1,0,...n[c][o])}}function Qr(e,t){return e.map(r=>We(r,t))}function We(e,{children:t="children",conversion:r}){let n=Array.isArray(e[t])&&e[t].length>0,o=r(e)||{};return n?J(M({},o),{[t]:e[t].map(c=>We(c,{children:t,conversion:r}))}):M({},o)}k();import{v4 as At}from"uuid";function Xr({native:e=!0}={}){var t,r,n;return e?(n=(r=(t=window.crypto)==null?void 0:t.randomUUID)==null?void 0:r.call(t))!=null?n:At():At()}var Lt=0;function en(e=""){let t=Date.now(),r=Math.floor(Math.random()*1e9);return Lt++,`${e}_${r}${Lt}${String(t)}`}export{Te as AesEncryption,ye as IfActivity,vt as ResizeObserver,pr as addClass,Sr as addLocationListener,br as addResizeListener,Le as buildBEM,en as buildShortUUID,Xr as buildUUID,He as clearWorkerInterval,wt as clearWorkerTimeout,sr as createBEM,or as createNamespace,nr as createSearchReg,mt as dataURLtoBlob,cr as decodeByBase64,Je as deepMerge,xr as domOffEvent,yr as domOnEvent,yt as downloadByBase64,xt as downloadByData,Lr as downloadByOnlineUrl,Dr as downloadByUrl,Ar as downloadPercent,Jt as enableTransitions,ar as encryptByBase64,fr as encryptByMd5,Et as escapeStringRegexp,Or as extendSlots,Yr as filterTree,Kr as findNode,Jr as findNodeAll,Vr as findPath,Zr as findPathAll,Gr as forEachTree,ir as getActualWidthOfChars,pt as getBoundingClientRect,Xt as getRawRoute,Bt as getSlot,mr as getViewportOffset,gr as hackCss,Ie as hasClass,Hr as highlightHtml,je as is,Ee as isBrowser,Kt as isChineseText,Be as isChrome,Ce as isClient,be as isIterableArray,Mr as isMatch,Mt as isNumeric,ne as isObject,Nt as isPositiveInteger,Se as isSafari,ie as isServer,jt as isSupportNativeEllipsis,qt as isSupportResizeObserver,Ut as isUrl,Wr as loadScript,Nr as matcher,ke as openWindow,Pt as pathToRegexp,X as regexpMap,Ot as regexpToPath,vr as removeClass,Cr as removeResizeListener,hr as setCssVar,er as setObjToUrlParams,bt as setWorkerInterval,Ct as setWorkerTimeout,hi as titleCase,Qr as treeMap,We as treeMapEach,Br as triggerWindowResize,Ur as unloadScript,tr as unsetAllProperty,gt as urlToBase64,_r as useRafThrottle,Qt as withInstall};
|
|
1
|
+
var Dt=Object.create;var xe=Object.defineProperty,zt=Object.defineProperties,$t=Object.getOwnPropertyDescriptor,Tt=Object.getOwnPropertyDescriptors,Ft=Object.getOwnPropertyNames,re=Object.getOwnPropertySymbols,It=Object.getPrototypeOf,_e=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable;var Ue=(e,t,r)=>t in e?xe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,M=(e,t)=>{for(var r in t||(t={}))_e.call(t,r)&&Ue(e,r,t[r]);if(re)for(var r of re(t))Ne.call(t,r)&&Ue(e,r,t[r]);return e},J=(e,t)=>zt(e,Tt(t));var we=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(t,r)=>(typeof require!="undefined"?require:t)[r]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var Me=(e,t)=>{var r={};for(var n in e)_e.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&re)for(var n of re(e))t.indexOf(n)<0&&Ne.call(e,n)&&(r[n]=e[n]);return r};var Rt=(e,t)=>()=>(e&&(t=e(e=0)),t);var j=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Ht=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Ft(t))!_e.call(e,o)&&o!==r&&xe(e,o,{get:()=>t[o],enumerable:!(n=$t(t,o))||n.enumerable});return e};var Y=(e,t,r)=>(r=e!=null?Dt(It(e)):{},Ht(t||!e||!e.__esModule?xe(r,"default",{value:e,enumerable:!0}):r,e));var k=Rt(()=>{});var q=j((se,Ve)=>{k();(function(e,t){typeof se=="object"?Ve.exports=se=t():typeof define=="function"&&define.amd?define([],t):e.CryptoJS=t()})(se,function(){var e=e||function(t,r){var n;if(typeof window!="undefined"&&window.crypto&&(n=window.crypto),typeof self!="undefined"&&self.crypto&&(n=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(n=globalThis.crypto),!n&&typeof window!="undefined"&&window.msCrypto&&(n=window.msCrypto),!n&&typeof global!="undefined"&&global.crypto&&(n=global.crypto),!n&&typeof we=="function")try{n=we("crypto")}catch(i){}var o=function(){if(n){if(typeof n.getRandomValues=="function")try{return n.getRandomValues(new Uint32Array(1))[0]}catch(i){}if(typeof n.randomBytes=="function")try{return n.randomBytes(4).readInt32LE()}catch(i){}}throw new Error("Native crypto module could not be used to get secure random number.")},c=Object.create||function(){function i(){}return function(a){var x;return i.prototype=a,x=new i,i.prototype=null,x}}(),f={},s=f.lib={},y=s.Base=function(){return{extend:function(i){var a=c(this);return i&&a.mixIn(i),(!a.hasOwnProperty("init")||this.init===a.init)&&(a.init=function(){a.$super.init.apply(this,arguments)}),a.init.prototype=a,a.$super=this,a},create:function(){var i=this.extend();return i.init.apply(i,arguments),i},init:function(){},mixIn:function(i){for(var a in i)i.hasOwnProperty(a)&&(this[a]=i[a]);i.hasOwnProperty("toString")&&(this.toString=i.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),u=s.WordArray=y.extend({init:function(i,a){i=this.words=i||[],a!=r?this.sigBytes=a:this.sigBytes=i.length*4},toString:function(i){return(i||B).stringify(this)},concat:function(i){var a=this.words,x=i.words,_=this.sigBytes,D=i.sigBytes;if(this.clamp(),_%4)for(var z=0;z<D;z++){var R=x[z>>>2]>>>24-z%4*8&255;a[_+z>>>2]|=R<<24-(_+z)%4*8}else for(var A=0;A<D;A+=4)a[_+A>>>2]=x[A>>>2];return this.sigBytes+=D,this},clamp:function(){var i=this.words,a=this.sigBytes;i[a>>>2]&=4294967295<<32-a%4*8,i.length=t.ceil(a/4)},clone:function(){var i=y.clone.call(this);return i.words=this.words.slice(0),i},random:function(i){for(var a=[],x=0;x<i;x+=4)a.push(o());return new u.init(a,i)}}),l=f.enc={},B=l.Hex={stringify:function(i){for(var a=i.words,x=i.sigBytes,_=[],D=0;D<x;D++){var z=a[D>>>2]>>>24-D%4*8&255;_.push((z>>>4).toString(16)),_.push((z&15).toString(16))}return _.join("")},parse:function(i){for(var a=i.length,x=[],_=0;_<a;_+=2)x[_>>>3]|=parseInt(i.substr(_,2),16)<<24-_%8*4;return new u.init(x,a/2)}},b=l.Latin1={stringify:function(i){for(var a=i.words,x=i.sigBytes,_=[],D=0;D<x;D++){var z=a[D>>>2]>>>24-D%4*8&255;_.push(String.fromCharCode(z))}return _.join("")},parse:function(i){for(var a=i.length,x=[],_=0;_<a;_++)x[_>>>2]|=(i.charCodeAt(_)&255)<<24-_%4*8;return new u.init(x,a)}},C=l.Utf8={stringify:function(i){try{return decodeURIComponent(escape(b.stringify(i)))}catch(a){throw new Error("Malformed UTF-8 data")}},parse:function(i){return b.parse(unescape(encodeURIComponent(i)))}},S=s.BufferedBlockAlgorithm=y.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(i){typeof i=="string"&&(i=C.parse(i)),this._data.concat(i),this._nDataBytes+=i.sigBytes},_process:function(i){var a,x=this._data,_=x.words,D=x.sigBytes,z=this.blockSize,R=z*4,A=D/R;i?A=t.ceil(A):A=t.max((A|0)-this._minBufferSize,0);var I=A*z,H=t.min(I*4,D);if(I){for(var d=0;d<I;d+=z)this._doProcessBlock(_,d);a=_.splice(0,I),x.sigBytes-=H}return new u.init(a,H)},clone:function(){var i=y.clone.call(this);return i._data=this._data.clone(),i},_minBufferSize:0}),T=s.Hasher=S.extend({cfg:y.extend(),init:function(i){this.cfg=this.cfg.extend(i),this.reset()},reset:function(){S.reset.call(this),this._doReset()},update:function(i){return this._append(i),this._process(),this},finalize:function(i){i&&this._append(i);var a=this._doFinalize();return a},blockSize:512/32,_createHelper:function(i){return function(a,x){return new i.init(x).finalize(a)}},_createHmacHelper:function(i){return function(a,x){return new L.HMAC.init(i,x).finalize(a)}}}),L=f.algo={};return f}(Math);return e})});var De=j((oe,Ze)=>{k();(function(e,t){typeof oe=="object"?Ze.exports=oe=t(q()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(oe,function(e){return function(){var t=e,r=t.lib,n=r.WordArray,o=t.enc,c=o.Base64={stringify:function(s){var y=s.words,u=s.sigBytes,l=this._map;s.clamp();for(var B=[],b=0;b<u;b+=3)for(var C=y[b>>>2]>>>24-b%4*8&255,S=y[b+1>>>2]>>>24-(b+1)%4*8&255,T=y[b+2>>>2]>>>24-(b+2)%4*8&255,L=C<<16|S<<8|T,i=0;i<4&&b+i*.75<u;i++)B.push(l.charAt(L>>>6*(3-i)&63));var a=l.charAt(64);if(a)for(;B.length%4;)B.push(a);return B.join("")},parse:function(s){var y=s.length,u=this._map,l=this._reverseMap;if(!l){l=this._reverseMap=[];for(var B=0;B<u.length;B++)l[u.charCodeAt(B)]=B}var b=u.charAt(64);if(b){var C=s.indexOf(b);C!==-1&&(y=C)}return f(s,y,l)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function f(s,y,u){for(var l=[],B=0,b=0;b<y;b++)if(b%4){var C=u[s.charCodeAt(b-1)]<<b%4*2,S=u[s.charCodeAt(b)]>>>6-b%4*2,T=C|S;l[B>>>2]|=T<<24-B%4*8,B++}return n.create(l,B)}}(),e.enc.Base64})});var ze=j((ae,Ye)=>{k();(function(e,t){typeof ae=="object"?Ye.exports=ae=t(q()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(ae,function(e){return function(t){var r=e,n=r.lib,o=n.WordArray,c=n.Hasher,f=r.algo,s=[];(function(){for(var C=0;C<64;C++)s[C]=t.abs(t.sin(C+1))*4294967296|0})();var y=f.MD5=c.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(C,S){for(var T=0;T<16;T++){var L=S+T,i=C[L];C[L]=(i<<8|i>>>24)&16711935|(i<<24|i>>>8)&4278255360}var a=this._hash.words,x=C[S+0],_=C[S+1],D=C[S+2],z=C[S+3],R=C[S+4],A=C[S+5],I=C[S+6],H=C[S+7],d=C[S+8],w=C[S+9],E=C[S+10],p=C[S+11],$=C[S+12],F=C[S+13],W=C[S+14],N=C[S+15],h=a[0],v=a[1],m=a[2],g=a[3];h=u(h,v,m,g,x,7,s[0]),g=u(g,h,v,m,_,12,s[1]),m=u(m,g,h,v,D,17,s[2]),v=u(v,m,g,h,z,22,s[3]),h=u(h,v,m,g,R,7,s[4]),g=u(g,h,v,m,A,12,s[5]),m=u(m,g,h,v,I,17,s[6]),v=u(v,m,g,h,H,22,s[7]),h=u(h,v,m,g,d,7,s[8]),g=u(g,h,v,m,w,12,s[9]),m=u(m,g,h,v,E,17,s[10]),v=u(v,m,g,h,p,22,s[11]),h=u(h,v,m,g,$,7,s[12]),g=u(g,h,v,m,F,12,s[13]),m=u(m,g,h,v,W,17,s[14]),v=u(v,m,g,h,N,22,s[15]),h=l(h,v,m,g,_,5,s[16]),g=l(g,h,v,m,I,9,s[17]),m=l(m,g,h,v,p,14,s[18]),v=l(v,m,g,h,x,20,s[19]),h=l(h,v,m,g,A,5,s[20]),g=l(g,h,v,m,E,9,s[21]),m=l(m,g,h,v,N,14,s[22]),v=l(v,m,g,h,R,20,s[23]),h=l(h,v,m,g,w,5,s[24]),g=l(g,h,v,m,W,9,s[25]),m=l(m,g,h,v,z,14,s[26]),v=l(v,m,g,h,d,20,s[27]),h=l(h,v,m,g,F,5,s[28]),g=l(g,h,v,m,D,9,s[29]),m=l(m,g,h,v,H,14,s[30]),v=l(v,m,g,h,$,20,s[31]),h=B(h,v,m,g,A,4,s[32]),g=B(g,h,v,m,d,11,s[33]),m=B(m,g,h,v,p,16,s[34]),v=B(v,m,g,h,W,23,s[35]),h=B(h,v,m,g,_,4,s[36]),g=B(g,h,v,m,R,11,s[37]),m=B(m,g,h,v,H,16,s[38]),v=B(v,m,g,h,E,23,s[39]),h=B(h,v,m,g,F,4,s[40]),g=B(g,h,v,m,x,11,s[41]),m=B(m,g,h,v,z,16,s[42]),v=B(v,m,g,h,I,23,s[43]),h=B(h,v,m,g,w,4,s[44]),g=B(g,h,v,m,$,11,s[45]),m=B(m,g,h,v,N,16,s[46]),v=B(v,m,g,h,D,23,s[47]),h=b(h,v,m,g,x,6,s[48]),g=b(g,h,v,m,H,10,s[49]),m=b(m,g,h,v,W,15,s[50]),v=b(v,m,g,h,A,21,s[51]),h=b(h,v,m,g,$,6,s[52]),g=b(g,h,v,m,z,10,s[53]),m=b(m,g,h,v,E,15,s[54]),v=b(v,m,g,h,_,21,s[55]),h=b(h,v,m,g,d,6,s[56]),g=b(g,h,v,m,N,10,s[57]),m=b(m,g,h,v,I,15,s[58]),v=b(v,m,g,h,F,21,s[59]),h=b(h,v,m,g,R,6,s[60]),g=b(g,h,v,m,p,10,s[61]),m=b(m,g,h,v,D,15,s[62]),v=b(v,m,g,h,w,21,s[63]),a[0]=a[0]+h|0,a[1]=a[1]+v|0,a[2]=a[2]+m|0,a[3]=a[3]+g|0},_doFinalize:function(){var C=this._data,S=C.words,T=this._nDataBytes*8,L=C.sigBytes*8;S[L>>>5]|=128<<24-L%32;var i=t.floor(T/4294967296),a=T;S[(L+64>>>9<<4)+15]=(i<<8|i>>>24)&16711935|(i<<24|i>>>8)&4278255360,S[(L+64>>>9<<4)+14]=(a<<8|a>>>24)&16711935|(a<<24|a>>>8)&4278255360,C.sigBytes=(S.length+1)*4,this._process();for(var x=this._hash,_=x.words,D=0;D<4;D++){var z=_[D];_[D]=(z<<8|z>>>24)&16711935|(z<<24|z>>>8)&4278255360}return x},clone:function(){var C=c.clone.call(this);return C._hash=this._hash.clone(),C}});function u(C,S,T,L,i,a,x){var _=C+(S&T|~S&L)+i+x;return(_<<a|_>>>32-a)+S}function l(C,S,T,L,i,a,x){var _=C+(S&L|T&~L)+i+x;return(_<<a|_>>>32-a)+S}function B(C,S,T,L,i,a,x){var _=C+(S^T^L)+i+x;return(_<<a|_>>>32-a)+S}function b(C,S,T,L,i,a,x){var _=C+(T^(S|~L))+i+x;return(_<<a|_>>>32-a)+S}r.MD5=c._createHelper(y),r.HmacMD5=c._createHmacHelper(y)}(Math),e.MD5})});var Qe=j((ce,Ge)=>{k();(function(e,t){typeof ce=="object"?Ge.exports=ce=t(q()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(ce,function(e){return function(){var t=e,r=t.lib,n=r.WordArray,o=r.Hasher,c=t.algo,f=[],s=c.SHA1=o.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(y,u){for(var l=this._hash.words,B=l[0],b=l[1],C=l[2],S=l[3],T=l[4],L=0;L<80;L++){if(L<16)f[L]=y[u+L]|0;else{var i=f[L-3]^f[L-8]^f[L-14]^f[L-16];f[L]=i<<1|i>>>31}var a=(B<<5|B>>>27)+T+f[L];L<20?a+=(b&C|~b&S)+1518500249:L<40?a+=(b^C^S)+1859775393:L<60?a+=(b&C|b&S|C&S)-1894007588:a+=(b^C^S)-899497514,T=S,S=C,C=b<<30|b>>>2,b=B,B=a}l[0]=l[0]+B|0,l[1]=l[1]+b|0,l[2]=l[2]+C|0,l[3]=l[3]+S|0,l[4]=l[4]+T|0},_doFinalize:function(){var y=this._data,u=y.words,l=this._nDataBytes*8,B=y.sigBytes*8;return u[B>>>5]|=128<<24-B%32,u[(B+64>>>9<<4)+14]=Math.floor(l/4294967296),u[(B+64>>>9<<4)+15]=l,y.sigBytes=u.length*4,this._process(),this._hash},clone:function(){var y=o.clone.call(this);return y._hash=this._hash.clone(),y}});t.SHA1=o._createHelper(s),t.HmacSHA1=o._createHmacHelper(s)}(),e.SHA1})});var et=j((fe,Xe)=>{k();(function(e,t){typeof fe=="object"?Xe.exports=fe=t(q()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(fe,function(e){(function(){var t=e,r=t.lib,n=r.Base,o=t.enc,c=o.Utf8,f=t.algo,s=f.HMAC=n.extend({init:function(y,u){y=this._hasher=new y.init,typeof u=="string"&&(u=c.parse(u));var l=y.blockSize,B=l*4;u.sigBytes>B&&(u=y.finalize(u)),u.clamp();for(var b=this._oKey=u.clone(),C=this._iKey=u.clone(),S=b.words,T=C.words,L=0;L<l;L++)S[L]^=1549556828,T[L]^=909522486;b.sigBytes=C.sigBytes=B,this.reset()},reset:function(){var y=this._hasher;y.reset(),y.update(this._iKey)},update:function(y){return this._hasher.update(y),this},finalize:function(y){var u=this._hasher,l=u.finalize(y);u.reset();var B=u.finalize(this._oKey.clone().concat(l));return B}})})()})});var $e=j((ue,tt)=>{k();(function(e,t,r){typeof ue=="object"?tt.exports=ue=t(q(),Qe(),et()):typeof define=="function"&&define.amd?define(["./core","./sha1","./hmac"],t):t(e.CryptoJS)})(ue,function(e){return function(){var t=e,r=t.lib,n=r.Base,o=r.WordArray,c=t.algo,f=c.MD5,s=c.EvpKDF=n.extend({cfg:n.extend({keySize:128/32,hasher:f,iterations:1}),init:function(y){this.cfg=this.cfg.extend(y)},compute:function(y,u){for(var l,B=this.cfg,b=B.hasher.create(),C=o.create(),S=C.words,T=B.keySize,L=B.iterations;S.length<T;){l&&b.update(l),l=b.update(y).finalize(u),b.reset();for(var i=1;i<L;i++)l=b.finalize(l),b.reset();C.concat(l)}return C.sigBytes=T*4,C}});t.EvpKDF=function(y,u,l){return s.create(l).compute(y,u)}}(),e.EvpKDF})});var le=j((de,rt)=>{k();(function(e,t,r){typeof de=="object"?rt.exports=de=t(q(),$e()):typeof define=="function"&&define.amd?define(["./core","./evpkdf"],t):t(e.CryptoJS)})(de,function(e){e.lib.Cipher||function(t){var r=e,n=r.lib,o=n.Base,c=n.WordArray,f=n.BufferedBlockAlgorithm,s=r.enc,y=s.Utf8,u=s.Base64,l=r.algo,B=l.EvpKDF,b=n.Cipher=f.extend({cfg:o.extend(),createEncryptor:function(d,w){return this.create(this._ENC_XFORM_MODE,d,w)},createDecryptor:function(d,w){return this.create(this._DEC_XFORM_MODE,d,w)},init:function(d,w,E){this.cfg=this.cfg.extend(E),this._xformMode=d,this._key=w,this.reset()},reset:function(){f.reset.call(this),this._doReset()},process:function(d){return this._append(d),this._process()},finalize:function(d){d&&this._append(d);var w=this._doFinalize();return w},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function d(w){return typeof w=="string"?H:R}return function(w){return{encrypt:function(E,p,$){return d(p).encrypt(w,E,p,$)},decrypt:function(E,p,$){return d(p).decrypt(w,E,p,$)}}}}()}),C=n.StreamCipher=b.extend({_doFinalize:function(){var d=this._process(!0);return d},blockSize:1}),S=r.mode={},T=n.BlockCipherMode=o.extend({createEncryptor:function(d,w){return this.Encryptor.create(d,w)},createDecryptor:function(d,w){return this.Decryptor.create(d,w)},init:function(d,w){this._cipher=d,this._iv=w}}),L=S.CBC=function(){var d=T.extend();d.Encryptor=d.extend({processBlock:function(E,p){var $=this._cipher,F=$.blockSize;w.call(this,E,p,F),$.encryptBlock(E,p),this._prevBlock=E.slice(p,p+F)}}),d.Decryptor=d.extend({processBlock:function(E,p){var $=this._cipher,F=$.blockSize,W=E.slice(p,p+F);$.decryptBlock(E,p),w.call(this,E,p,F),this._prevBlock=W}});function w(E,p,$){var F,W=this._iv;W?(F=W,this._iv=t):F=this._prevBlock;for(var N=0;N<$;N++)E[p+N]^=F[N]}return d}(),i=r.pad={},a=i.Pkcs7={pad:function(d,w){for(var E=w*4,p=E-d.sigBytes%E,$=p<<24|p<<16|p<<8|p,F=[],W=0;W<p;W+=4)F.push($);var N=c.create(F,p);d.concat(N)},unpad:function(d){var w=d.words[d.sigBytes-1>>>2]&255;d.sigBytes-=w}},x=n.BlockCipher=b.extend({cfg:b.cfg.extend({mode:L,padding:a}),reset:function(){var d;b.reset.call(this);var w=this.cfg,E=w.iv,p=w.mode;this._xformMode==this._ENC_XFORM_MODE?d=p.createEncryptor:(d=p.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==d?this._mode.init(this,E&&E.words):(this._mode=d.call(p,this,E&&E.words),this._mode.__creator=d)},_doProcessBlock:function(d,w){this._mode.processBlock(d,w)},_doFinalize:function(){var d,w=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(w.pad(this._data,this.blockSize),d=this._process(!0)):(d=this._process(!0),w.unpad(d)),d},blockSize:128/32}),_=n.CipherParams=o.extend({init:function(d){this.mixIn(d)},toString:function(d){return(d||this.formatter).stringify(this)}}),D=r.format={},z=D.OpenSSL={stringify:function(d){var w,E=d.ciphertext,p=d.salt;return p?w=c.create([1398893684,1701076831]).concat(p).concat(E):w=E,w.toString(u)},parse:function(d){var w,E=u.parse(d),p=E.words;return p[0]==1398893684&&p[1]==1701076831&&(w=c.create(p.slice(2,4)),p.splice(0,4),E.sigBytes-=16),_.create({ciphertext:E,salt:w})}},R=n.SerializableCipher=o.extend({cfg:o.extend({format:z}),encrypt:function(d,w,E,p){p=this.cfg.extend(p);var $=d.createEncryptor(E,p),F=$.finalize(w),W=$.cfg;return _.create({ciphertext:F,key:E,iv:W.iv,algorithm:d,mode:W.mode,padding:W.padding,blockSize:d.blockSize,formatter:p.format})},decrypt:function(d,w,E,p){p=this.cfg.extend(p),w=this._parse(w,p.format);var $=d.createDecryptor(E,p).finalize(w.ciphertext);return $},_parse:function(d,w){return typeof d=="string"?w.parse(d,this):d}}),A=r.kdf={},I=A.OpenSSL={execute:function(d,w,E,p,$){if(p||(p=c.random(64/8)),$)var F=B.create({keySize:w+E,hasher:$}).compute(d,p);else var F=B.create({keySize:w+E}).compute(d,p);var W=c.create(F.words.slice(w),E*4);return F.sigBytes=w*4,_.create({key:F,iv:W,salt:p})}},H=n.PasswordBasedCipher=R.extend({cfg:R.cfg.extend({kdf:I}),encrypt:function(d,w,E,p){p=this.cfg.extend(p);var $=p.kdf.execute(E,d.keySize,d.ivSize,p.salt,p.hasher);p.iv=$.iv;var F=R.encrypt.call(this,d,w,$.key,p);return F.mixIn($),F},decrypt:function(d,w,E,p){p=this.cfg.extend(p),w=this._parse(w,p.format);var $=p.kdf.execute(E,d.keySize,d.ivSize,w.salt,p.hasher);p.iv=$.iv;var F=R.decrypt.call(this,d,w,$.key,p);return F}})}()})});var it=j((he,nt)=>{k();(function(e,t,r){typeof he=="object"?nt.exports=he=t(q(),De(),ze(),$e(),le()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],t):t(e.CryptoJS)})(he,function(e){return function(){var t=e,r=t.lib,n=r.BlockCipher,o=t.algo,c=[],f=[],s=[],y=[],u=[],l=[],B=[],b=[],C=[],S=[];(function(){for(var i=[],a=0;a<256;a++)a<128?i[a]=a<<1:i[a]=a<<1^283;for(var x=0,_=0,a=0;a<256;a++){var D=_^_<<1^_<<2^_<<3^_<<4;D=D>>>8^D&255^99,c[x]=D,f[D]=x;var z=i[x],R=i[z],A=i[R],I=i[D]*257^D*16843008;s[x]=I<<24|I>>>8,y[x]=I<<16|I>>>16,u[x]=I<<8|I>>>24,l[x]=I;var I=A*16843009^R*65537^z*257^x*16843008;B[D]=I<<24|I>>>8,b[D]=I<<16|I>>>16,C[D]=I<<8|I>>>24,S[D]=I,x?(x=z^i[i[i[A^z]]],_^=i[i[_]]):x=_=1}})();var T=[0,1,2,4,8,16,32,64,128,27,54],L=o.AES=n.extend({_doReset:function(){var i;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var a=this._keyPriorReset=this._key,x=a.words,_=a.sigBytes/4,D=this._nRounds=_+6,z=(D+1)*4,R=this._keySchedule=[],A=0;A<z;A++)A<_?R[A]=x[A]:(i=R[A-1],A%_?_>6&&A%_==4&&(i=c[i>>>24]<<24|c[i>>>16&255]<<16|c[i>>>8&255]<<8|c[i&255]):(i=i<<8|i>>>24,i=c[i>>>24]<<24|c[i>>>16&255]<<16|c[i>>>8&255]<<8|c[i&255],i^=T[A/_|0]<<24),R[A]=R[A-_]^i);for(var I=this._invKeySchedule=[],H=0;H<z;H++){var A=z-H;if(H%4)var i=R[A];else var i=R[A-4];H<4||A<=4?I[H]=i:I[H]=B[c[i>>>24]]^b[c[i>>>16&255]]^C[c[i>>>8&255]]^S[c[i&255]]}}},encryptBlock:function(i,a){this._doCryptBlock(i,a,this._keySchedule,s,y,u,l,c)},decryptBlock:function(i,a){var x=i[a+1];i[a+1]=i[a+3],i[a+3]=x,this._doCryptBlock(i,a,this._invKeySchedule,B,b,C,S,f);var x=i[a+1];i[a+1]=i[a+3],i[a+3]=x},_doCryptBlock:function(i,a,x,_,D,z,R,A){for(var I=this._nRounds,H=i[a]^x[0],d=i[a+1]^x[1],w=i[a+2]^x[2],E=i[a+3]^x[3],p=4,$=1;$<I;$++){var F=_[H>>>24]^D[d>>>16&255]^z[w>>>8&255]^R[E&255]^x[p++],W=_[d>>>24]^D[w>>>16&255]^z[E>>>8&255]^R[H&255]^x[p++],N=_[w>>>24]^D[E>>>16&255]^z[H>>>8&255]^R[d&255]^x[p++],h=_[E>>>24]^D[H>>>16&255]^z[d>>>8&255]^R[w&255]^x[p++];H=F,d=W,w=N,E=h}var F=(A[H>>>24]<<24|A[d>>>16&255]<<16|A[w>>>8&255]<<8|A[E&255])^x[p++],W=(A[d>>>24]<<24|A[w>>>16&255]<<16|A[E>>>8&255]<<8|A[H&255])^x[p++],N=(A[w>>>24]<<24|A[E>>>16&255]<<16|A[H>>>8&255]<<8|A[d&255])^x[p++],h=(A[E>>>24]<<24|A[H>>>16&255]<<16|A[d>>>8&255]<<8|A[w&255])^x[p++];i[a]=F,i[a+1]=W,i[a+2]=N,i[a+3]=h},keySize:256/32});t.AES=n._createHelper(L)}(),e.AES})});var ot=j((pe,st)=>{k();(function(e,t){typeof pe=="object"?st.exports=pe=t(q()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(pe,function(e){return e.enc.Utf8})});var ct=j((ve,at)=>{k();(function(e,t,r){typeof ve=="object"?at.exports=ve=t(q(),le()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],t):t(e.CryptoJS)})(ve,function(e){return e.pad.Pkcs7})});var ut=j((me,ft)=>{k();(function(e,t,r){typeof me=="object"?ft.exports=me=t(q(),le()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],t):t(e.CryptoJS)})(me,function(e){return e.mode.ECB=function(){var t=e.lib.BlockCipherMode.extend();return t.Encryptor=t.extend({processBlock:function(r,n){this._cipher.encryptBlock(r,n)}}),t.Decryptor=t.extend({processBlock:function(r,n){this._cipher.decryptBlock(r,n)}}),t}(),e.mode.ECB})});k();import{titleCase as hi}from"title-case";k();import{isPlainObject as Vt,mergeWith as Zt,isArray as qe,isEqual as Ke,intersectionWith as Yt,unionWith as Gt}from"lodash-es";k();k();import{pathToRegexp as Pt,compile as Ot}from"path-to-regexp";var X={mobile:/^(?:(?:\+|00)86)?1[3-9]\d{9}$/,tel:/^(?:(?:\d{3}-)?\d{8}|(?:\d{4}-)?\d{7,8})(?:-\d+)?$/,numAndLetter:/^[A-Z0-9]+$/i,password:/^\S*(?=\S{6,})(?=\S*\d)(?=\S*[A-Z])(?=\S*[a-z])(?=\S*[!@#$%^&*? ])\S+$/,email:/^[A-Z0-9\u4E00-\u9FA5]+@[\w-]+(?:\.[\w-]+)+$/i,postalCode:/^(0[1-7]|1[0-356]|2[0-7]|3[0-6]|4[0-7]|5[1-7]|6[1-7]|7[0-5]|8[013-6])\d{4}$/,identityCard:/^[1-9]\d{5}(?:18|19|20)\d{2}(?:0[1-9]|10|11|12)(?:0[1-9]|[12]\d|30|31)\d{3}[\dX]$/i,ip:/^((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.){3}(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(?::(?:\d|[1-9]\d{1,3}|[1-5]\d{4}|6[0-4]\d{3}|65[0-4]\d{2}|655[0-2]\d|6553[0-5]))?$/,url:/^(((ht|f)tps?):\/\/)?([^!@#$%^&*?.\s-][^!@#$%^&*?.\s]{0,64}\.)+[a-z]{2,6}\/?/,httpsUrl:/^https:\/\//,domain:/^([0-9a-z-]+\.)+([a-z]{2,})$/i,plateNumber:/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z][A-HJ-NP-Z0-9]{4,5}[A-HJ-NP-Z0-9挂学警港澳]$/,md5:/^[a-f0-9]{32}$/i,base64:/^\s*data:(?:[a-z]+\/[a-z0-9-+.]+(?:;[a-z-]+=[a-z0-9-]+)?)?(?:;base64)?,([\w!$&',()*+;=\-.~:@/?%\s]*?)\s*$/i,uuid:/^[a-f\d]{4}(?:[a-f\d]{4}-){4}[a-f\d]{12}$/i,version:/^\d+(?:\.\d+){2}$/,videoUrl:/^https?:\/\/(.+\/)+.+(\.(swf|avi|flv|mpg|rm|mov|wav|asf|3gp|mkv|rmvb|mp4))$/i,imageUrl:/^https?:\/\/(.+\/)+.+(\.(gif|png|jpg|jpeg|webp|svg|psd|bmp|tif))$/i,chinese:/^(?:[\u3400-\u4DB5\u4E00-\u9FEA\uFA0E\uFA0F\uFA11\uFA13\uFA14\uFA1F\uFA21\uFA23\uFA24\uFA27-\uFA29]|[\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0])+$/,itcode:/^[a-z]+\d*$/i,numeric:/^\d+$/};var Wt=Object.prototype.toString;function je(e,t){return Wt.call(e)===`[object ${t}]`}function ne(e){return e!==null&&je(e,"Object")}function Ut(e){return X.url.test(e)}function be(e){return Array.isArray(e)&&e.length>0}function Nt(e){return Number.isInteger(e)&&e>=0}function Mt(e){return X.numeric.test(e)}var ie=typeof window=="undefined",Ce=!ie,Be=Ce&&window.navigator.userAgent.toLowerCase().includes("chrome"),Se=Ce&&window.navigator.userAgent.toLowerCase().includes("safari"),Ee=typeof window!="undefined"&&typeof document!="undefined",jt=Ee&&typeof document.body.style.lineClamp!="undefined",qt=Ee&&typeof ResizeObserver!="undefined",Kt=e=>X.chinese.test(e),Jt=()=>"startViewTransition"in document&&window.matchMedia("(prefers-reduced-motion: no-preference)").matches;var Qt=(e,t)=>{let r=e;return r.install=n=>{n.component(r.name||r.displayName,e),t&&(n.config.globalProperties[t]=e)},e};function Xt(e){if(!e)return e;let n=e,{matched:t}=n,r=Me(n,["matched"]);return J(M({},r),{matched:t?t.map(o=>({meta:o.meta,name:o.name,path:o.path})):void 0})}function ke(e,t){let{target:r="__blank",noopener:n=!0,noreferrer:o=!0}=t||{},c=[];n&&c.push("noopener=yes"),o&&c.push("noreferrer=yes"),window.open(e,r,c.join(","))}function Je(e,t,r="replace"){return t?e?Zt(e,t,(n,o)=>{if(qe(o)&&qe(n))switch(r){case"union":return Gt(n,o,Ke);case"intersection":return Yt(n,o,Ke);case"concat":return n.concat(o);case"replace":return o;default:throw new Error(`Unknown merge array strategy: ${r}`)}if(ne(o)&&ne(n))return Je(n,o,r)}):t:e}function er(e,t){if(!be(Object.keys(t)))return e;let r="";for(let n in t){let o=t[n];Array.isArray(o)?r+=`${n}=${encodeURIComponent(o.join(","))}&`:r+=`${n}=${encodeURIComponent(o)}&`}return r=r.replace(/&$/,""),/\?$/.test(e)?e+r:e.replace(/\/?$/,"?")+r}function tr(e){Vt(e)&&Object.keys(e).forEach(t=>{Reflect.deleteProperty(e,t)})}function rr(e){return["$","(",")","*","+",".","[","]","?","\\","^","{","}","|"].includes(e)?`\\${e}`:e}function nr(e){let r=["",...[...e].map(n=>rr(n)),""].join(".*");return new RegExp(r,"i")}function ir(e="",t={}){let{size:r=14,family:n=getComputedStyle(document.documentElement).getPropertyValue("--vxe-font-family")||"sans-serif"}=t,c=document.createElement("canvas").getContext("2d");c.font=`${r}px ${n}`;let f=c.measureText(e),s=Math.abs(f.actualBoundingBoxLeft)+Math.abs(f.actualBoundingBoxRight);return Math.ceil(Math.max(f.width,s))}k();function Ae(e,t){return t?typeof t=="string"?` ${e}--${t}`:Array.isArray(t)?t.reduce((r,n)=>r+Ae(e,n),""):Object.keys(t).reduce((r,n)=>r+(t[n]?Ae(e,n):""),""):""}function Le(e){return(t,r)=>(t&&typeof t!="string"&&(r=t,t=""),t=t?`${e}__${t}`:e,`${t}${Ae(t,r)}`)}function sr(e,t=""){return[Le(`${t}-${e}`)]}function or(e,t=""){let r=`${t}-${e}`;return[r,Le(r)]}k();var ge=Y(it(),1),Z=Y(ot(),1),dt=Y(ct(),1),lt=Y(ut(),1),ht=Y(ze(),1),Fe=Y(De(),1),Te=class{constructor(t){let{key:r,iv:n}=t;r&&(this.key=(0,Z.parse)(r)),n&&(this.iv=(0,Z.parse)(n))}get getOptions(){return{mode:lt.default,padding:dt.default,iv:this.iv}}encryptByAES(t){return(0,ge.encrypt)(t,this.key,this.getOptions).toString()}decryptByAES(t){return(0,ge.decrypt)(t,this.key,this.getOptions).toString(Z.default)}};function ar(e){return Z.default.parse(e).toString(Fe.default)}function cr(e){return Fe.default.parse(e).toString(Z.default)}function fr(e){return(0,ht.default)(e).toString()}k();import{upperFirst as ur}from"lodash-es";var dr=()=>document.documentElement;function pt(e){return!e||!e.getBoundingClientRect?0:e.getBoundingClientRect()}function lr(e){return(e||"").replace(/^\s+|\s+$/g,"")}function Ie(e,t){if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList?e.classList.contains(t):` ${e.className} `.includes(` ${t} `)}function hr(e,t,r){return r||(r=dr()),r.style.setProperty(e,t),{prop:t}}function pr(e,t){if(!e)return;let r=e.className,n=(t||"").split(" ");for(let o=0,c=n.length;o<c;o++){let f=n[o];f&&(e.classList?e.classList.add(f):Ie(e,f)||(r+=` ${f}`))}e.classList||(e.className=r)}function vr(e,t){if(!e||!t)return;let r=t.split(" "),n=` ${e.className} `;for(let o=0,c=r.length;o<c;o++){let f=r[o];f&&(e.classList?e.classList.remove(f):Ie(e,f)&&(n=n.replace(` ${f} `," ")))}e.classList||(e.className=lr(n))}function mr(e){let t=document.documentElement,r=t.scrollLeft,n=t.scrollTop,o=t.clientLeft,c=t.clientTop,f=window.scrollX,s=window.scrollY,y=pt(e);if(!y)return{};let{left:u,top:l,width:B,height:b}=y,C=(f||r)-(o||0),S=(s||n)-(c||0),T=u+f,L=l+s,i=T-C,a=L-S,x=window.document.documentElement.clientWidth,_=window.document.documentElement.clientHeight;return{left:i,top:a,right:x-B-i,bottom:_-b-a,rightIncludeBody:x-i,bottomIncludeBody:_-a}}function gr(e,t){let r=["webkit","Moz","ms","OT"],n={};return r.forEach(o=>{n[`${o}${ur(e)}`]=t}),J(M({},n),{[e]:t})}function yr(e,t,r){e&&t&&r&&e.addEventListener(t,r,!1)}function xr(e,t,r){e&&t&&r&&e.removeEventListener(t,r,!1)}function _r(e){let t=!1;return function(...r){t||(t=!0,window.requestAnimationFrame(()=>{e.apply(this,r),t=!1}))}}k();import vt from"resize-observer-polyfill";function wr(e){for(let t of e){let r=t.target.__resizeListeners__||[];r.length&&r.forEach(n=>{n()})}}function br(e,t){ie||(e.__resizeListeners__||(e.__resizeListeners__=[],e.__ro__=new vt(wr),e.__ro__.observe(e)),e.__resizeListeners__.push(t))}function Cr(e,t){!e||!e.__resizeListeners__||(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),e.__resizeListeners__.length||(e.__ro__.disconnect(),e.__ro__=null,e.__resizeListeners__=null))}function Br(){let e=new Event("resize",{bubbles:!0,cancelable:!0});window.dispatchEvent(e)}function Sr(e,t={}){function r(n){let o=window.history[n];return function(...c){let f=new Event(n);return f.arguments=c,window.dispatchEvent(f),o.apply(this,c)}}return window.history.pushState=r("pushState"),window.history.replaceState=r("replaceState"),window.addEventListener("popstate",e,t),window.addEventListener("hashchange",e,t),window.addEventListener("replaceState",e,t),window.addEventListener("pushState",e,t),{removeListener:()=>{window.removeEventListener("popstate",e,t),window.removeEventListener("hashchange",e,t),window.removeEventListener("replaceState",e,t),window.removeEventListener("pushState",e,t)}}}k();import{round as Er,isNil as kr}from"lodash-es";function mt(e){let t=e.split(","),n=t[0].match(/:(.*?);/)[1],o=window.atob(t[1]),c=o.length,f=new Uint8Array(c);for(;c--;)f[c]=o.charCodeAt(c);return new Blob([f],{type:n})}function gt(e,t){return new Promise((r,n)=>{let o=document.createElement("CANVAS"),c=o.getContext("2d"),f=new Image;f.crossOrigin="",f.onload=function(){if(!o||!c)return n();o.height=f.height,o.width=f.width,c.drawImage(f,0,0);let s=o.toDataURL(t||"image/png");o=null,r(s)},f.src=e})}function Ar(e){let{loaded:t,total:r}=e;if(r<=0||kr(r))return 0;let n=t/r;return Er((n>1?1:n)*100)}function Lr(e,t,r,n){gt(e).then(o=>{yt(o,t,r,n)})}function yt(e,t,r,n){let o=mt(e);xt(o,t,r,n)}function xt(e,t,r,n){let o=typeof n!="undefined"?[n,e]:[e],c=new Blob(o,{type:r||"application/octet-stream"});if(typeof window.navigator.msSaveBlob!="undefined")window.navigator.msSaveBlob(c,t);else{let f=window.URL.createObjectURL(c),s=document.createElement("a");s.style.display="none",s.href=f,s.setAttribute("download",t),typeof s.download=="undefined"&&s.setAttribute("target","_blank"),document.body.appendChild(s),s.click(),document.body.removeChild(s),window.URL.revokeObjectURL(f)}}function Dr({url:e,target:t="_blank",fileName:r}){if(/iP/.test(window.navigator.userAgent))return!1;if(Be||Se){let n=document.createElement("a");return n.href=e,n.download=r||e.substring(e.lastIndexOf("/")+1,e.length),n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n),!0}return e.includes("?")||(e+="?download"),ke(e,{target:t}),!0}k();var zr=(e,t,r="ig")=>{let n=new RegExp(t,r);return[...e.matchAll(n)].map(s=>({index:s.index,subString:s[0]}))};function $r(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}var Tr=(e,t)=>{let r=e;if(!t)return r;let{tagName:n="mark",bgColor:o,color:c,style:f={},renderHighlightKeyword:s}=t;if(typeof s=="function")return s(e);f.backgroundColor=o,f.color=c;let u=`style="${Object.keys(f).map(l=>`${$r(l)}:${f[l]}`).join(";")}"`;return`<${n} ${u}>${r}</${n}>`},Fr=(e,t)=>{let r="";return t.forEach(n=>{let{start:o,end:c,option:f}=n,s=e.slice(o,c),y=Tr(s,f);r+=y,n.subString=y}),r},Ir=(e,t)=>{let r=[];return t.forEach(n=>{let o={keyword:""};typeof n=="string"?o={keyword:n}:o=n;let{keyword:c,caseSensitive:f=!0}=o,s=zr(e,c,f?"g":"gi"),y={keyword:c,indexList:s,option:o};r.push(y)}),r},Rr=(e,t)=>{let r=Ir(e,t),n=[],o=(f,s)=>{for(let y=0;y<n.length;y++){let u=n[y];if(f>u.start&&f<u.end||f+s>u.start&&f+s<u.end||u.start>f&&u.start<f+s||u.end>f&&u.end<f+s||f===u.start&&f+s===u.end)return-1;if(f+s<=u.start)return y}return n.length};r.forEach(({indexList:f,option:s})=>{f.forEach(y=>{let{index:u,subString:l}=y,B={start:u,end:u+l.length,option:s},b=o(u,l.length);b!==-1&&n.splice(b,0,B)})});let c=[];return n.forEach((f,s)=>{let{start:y,end:u}=f,l=n[s+1];s===0&&y>0&&c.push({start:0,end:y,subString:e.slice(0,y)}),c.push(J(M({},f),{subString:e.slice(y,u)})),(l==null?void 0:l.start)>u&&c.push({start:u,end:l.start,subString:e.slice(u,l.start)}),s===n.length-1&&u<e.length-1&&c.push({start:u,end:e.length-1,subString:e.slice(u,e.length)})}),c},Hr=(e,t)=>{let r=Rr(e,t);return{highText:Fr(e,r),highList:r}};k();import{clearInterval as He,clearTimeout as wt,setInterval as bt,setTimeout as Ct}from"worker-timers";var V="active",Re="idle",_t="hidden",G,ee,te,K={},U={attach(e,t){K[e]||(K[e]=[]),K[e].push(t)},fire(e,t=[]){K[e]&&K[e].forEach(r=>{r(...t)})},remove(e,t){t||Reflect.deleteProperty(K,e),K[e]&&(K[e]=K[e].filter(r=>t!==r))},dom(e,t,r){return te||(e.addEventListener?te=(n,o,c)=>n.addEventListener(o,c,!1):typeof e.attachEvent=="function"?te=(n,o,c)=>n.attachEvent(`on${o}`,c,!1):te=(n,o,c)=>n[`on${o}`]=c),te(e,t,r)}},Pe=class{constructor(t,r,n){this.activity=t,this.seconds=r,this.callback=n,this.stopped=!1,this.start(),this.activity.on("statusChanged",o=>{this.stopped===!1&&(o.status===V?this.start():this.pause())})}start(){this.stopped=!1,He(this.token),this.token=bt(this.callback,this.seconds*1e3)}stop(){this.stopped=!0,He(this.token)}resume(){this.start()}pause(){this.stop()}},ye=class{constructor(){if(this.status=V,this.timers=[],this.idleTime=3e4,this.isLegacyModeOn=!1,document.hidden!==void 0?(G="hidden",ee="visibilitychange"):document.mozHidden!==void 0?(G="mozHidden",ee="mozvisibilitychange"):document.msHidden!==void 0?(G="msHidden",ee="msvisibilitychange"):document.webkitHidden!==void 0&&(G="webkitHidden",ee="webkitvisibilitychange"),G===void 0)this.legacyMode();else{let t=()=>{document[G]?this.blur():this.focus()};t(),U.dom(document,ee,t)}this.startIdleTimer(),this.trackIdleStatus()}legacyMode(){this.isLegacyModeOn||(U.dom(window,"blur",()=>this.blur()),U.dom(window,"focus",()=>this.focus()),this.isLegacyModeOn=!0)}startIdleTimer(t){t instanceof MouseEvent&&t.movementX===0&&t.movementY===0||(this.timers.map(wt),this.timers.length=0,this.status===Re&&this.wakeUp(),this.idleStartedTime=+new Date,this.timers.push(Ct(()=>{if(this.status===V||this.status===_t)return this.idle()},this.idleTime)))}trackIdleStatus(){U.dom(document,"mousemove",this.startIdleTimer.bind(this)),U.dom(document,"mousedown",this.startIdleTimer.bind(this)),U.dom(document,"keyup",this.startIdleTimer.bind(this)),U.dom(document,"touchstart",this.startIdleTimer.bind(this)),U.dom(window,"scroll",this.startIdleTimer.bind(this)),this.focus(this.startIdleTimer.bind(this))}on(t,r){return U.attach(t,r),this}off(t,r){return U.remove(t,r),this}setIdleDuration(t){return this.idleTime=t*1e3,this.startIdleTimer(),this}getIdleDuration(){return this.idleTime}getIdleInfo(){let t=+new Date,r;if(this.status===Re)r={isIdle:!0,idleFor:t-this.idleStartedTime,timeLeft:0,timeLeftPer:100};else{let n=this.idleStartedTime+this.idleTime-t;r={isIdle:!1,idleFor:t-this.idleStartedTime,timeLeft:n,timeLeftPer:Number.parseFloat((100-n*100/this.idleTime).toFixed(2))}}return r}idle(t){return t?this.on("idle",t):(this.status=Re,U.fire("idle"),U.fire("statusChanged",[{status:this.status}])),this}blur(t){return t?this.on("blur",t):(this.status=_t,U.fire("blur"),U.fire("statusChanged",[{status:this.status}])),this}focus(t){return t?this.on("focus",t):this.status!==V&&(this.status=V,U.fire("focus"),U.fire("wakeUp"),U.fire("statusChanged",[{status:this.status}])),this}wakeUp(t){return t?this.on("wakeUp",t):this.status!==V&&(this.status=V,U.fire("wakeUp"),U.fire("statusChanged",[{status:this.status}])),this}onEvery(t,r){return new Pe(this,t,r)}now(t){return t!==void 0?this.status===t:this.status===V}};k();import{isFunction as Pr}from"lodash-es";function Bt(e,t="default",r){if(!e||!Reflect.has(e,t)||!Pr(e[t]))return null;let n=e[t];return n?n(r):null}function Or(e,t=[]){let r=Object.keys(e),n={};return r.forEach(o=>{if(t.includes(o))return null;n[o]=c=>Bt(e,o,c)}),n}k();function Wr(e,{type:t="text/javascript"}={}){return new Promise((r,n)=>{let o=!1,c=document.querySelector(`script[src="${e}"]`);if(!c)c=document.createElement("script"),c.type=t,c.async=!0,c.src=e,o=!0;else if(c.hasAttribute("data-loaded")){r({el:c});return}c.addEventListener("error",n),c.addEventListener("abort",n),c.addEventListener("load",()=>{c.setAttribute("data-loaded",!0),r({el:c})}),o&&document.head.appendChild(c)})}function Ur(e){return new Promise((t,r)=>{let n=document.querySelector(`script[src="${e}"]`);if(!n){r();return}document.head.removeChild(n),t()})}k();function Nr(e,t,r){return kt(e,t,r,!1)}function Mr(e,t,r){return kt(e,t,r,!0).length>0}function Et(e){return typeof e!="string"?e:e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Oe=new Map;function St(e,t){if(!Array.isArray(e))switch(typeof e){case"string":e=[e];break;case"undefined":e=[];break;default:throw new TypeError(`Expected '${t}' to be a string or an array, but got a type of '${typeof e}'`)}return e.filter(r=>{if(typeof r!="string"){if(typeof r=="undefined")return!1;throw new TypeError(`Expected '${t}' to be an array of strings, but found a type of '${typeof r}' in the array`)}return!0})}function jr(e,t){t=M({caseSensitive:!1},t);let r=e+JSON.stringify(t);if(Oe.has(r))return Oe.get(r);let n=e[0]==="!";n&&(e=e.slice(1)),e=Et(e).replace(/\\\*/g,"[\\s\\S]*");let o=new RegExp(`^${e}$`,t.caseSensitive?"":"i");return o.negated=n,Oe.set(r,o),o}function kt(e,t,r,n){if(e=St(e,"inputs"),t=St(t,"patterns"),t.length===0)return[];t=t.map(f=>jr(f,r));let{allPatterns:o}=r||{},c=[];for(let f of e){let s,y=[...t].fill(!1);for(let[u,l]of t.entries())if(l.test(f)&&(y[u]=!0,s=!l.negated,!s))break;if(!(s===!1||s===void 0&&t.some(u=>!u.negated)||o&&y.some((u,l)=>!u&&!t[l].negated))&&(c.push(f),n))break}return c}k();var qr={id:"id",children:"children",pid:"pid"},Q=e=>Object.assign({},qr,e);function Kr(e,t,r={}){r=Q(r);let{children:n}=r,o=[...e];for(let c of o){if(t(c))return c;c[n]&&o.push(...c[n])}return null}function Jr(e,t,r={}){r=Q(r);let{children:n}=r,o=[...e],c=[];for(let f of o)t(f)&&c.push(f),f[n]&&o.push(...f[n]);return c}function Vr(e,t,r={}){r=Q(r);let n=[],o=[...e],c=new Set,{children:f}=r;for(;o.length;){let s=o[0];if(c.has(s))n.pop(),o.shift();else if(c.add(s),s[f]&&o.unshift(...s[f]),n.push(s),t(s))return n}return null}function Zr(e,t,r={}){r=Q(r);let n=[],o=[...e],c=[],f=new Set,{children:s}=r;for(;o.length;){let y=o[0];f.has(y)?(n.pop(),o.shift()):(f.add(y),y[s]&&o.unshift(...y[s]),n.push(y),t(y)&&c.push([...n]))}return c}function Yr(e,t,r={}){r=Q(r);let n=r.children;function o(c){return c.map(f=>M({},f)).filter(f=>(f[n]=f[n]&&o(f[n]),t(f)||f[n]&&f[n].length))}return o(e)}function Gr(e,t,r={}){r=Q(r);let n=[...e],{children:o}=r;for(let c=0;c<n.length;c++){if(t(n[c]))return;o&&n[c][o]&&n.splice(c+1,0,...n[c][o])}}function Qr(e,t){return e.map(r=>We(r,t))}function We(e,{children:t="children",conversion:r}){let n=Array.isArray(e[t])&&e[t].length>0,o=r(e)||{};return n?J(M({},o),{[t]:e[t].map(c=>We(c,{children:t,conversion:r}))}):M({},o)}k();import{v4 as At}from"uuid";function Xr({native:e=!0}={}){var t,r,n;return e?(n=(r=(t=window.crypto)==null?void 0:t.randomUUID)==null?void 0:r.call(t))!=null?n:At():At()}var Lt=0;function en(e=""){let t=Date.now(),r=Math.floor(Math.random()*1e9);return Lt++,`${e}_${r}${Lt}${String(t)}`}export{Te as AesEncryption,ye as IfActivity,vt as ResizeObserver,pr as addClass,Sr as addLocationListener,br as addResizeListener,Le as buildBEM,en as buildShortUUID,Xr as buildUUID,He as clearWorkerInterval,wt as clearWorkerTimeout,sr as createBEM,or as createNamespace,nr as createSearchReg,mt as dataURLtoBlob,cr as decodeByBase64,Je as deepMerge,xr as domOffEvent,yr as domOnEvent,yt as downloadByBase64,xt as downloadByData,Lr as downloadByOnlineUrl,Dr as downloadByUrl,Ar as downloadPercent,Jt as enableTransitions,ar as encryptByBase64,fr as encryptByMd5,Et as escapeStringRegexp,Or as extendSlots,Yr as filterTree,Kr as findNode,Jr as findNodeAll,Vr as findPath,Zr as findPathAll,Gr as forEachTree,ir as getActualWidthOfChars,pt as getBoundingClientRect,Xt as getRawRoute,Bt as getSlot,mr as getViewportOffset,gr as hackCss,Ie as hasClass,Hr as highlightHtml,je as is,Ee as isBrowser,Kt as isChineseText,Be as isChrome,Ce as isClient,be as isIterableArray,Mr as isMatch,Mt as isNumeric,ne as isObject,Nt as isPositiveInteger,Se as isSafari,ie as isServer,jt as isSupportNativeEllipsis,qt as isSupportResizeObserver,Ut as isUrl,Wr as loadScript,Nr as matcher,ke as openWindow,Pt as pathToRegexp,X as regexpMap,Ot as regexpToPath,vr as removeClass,Cr as removeResizeListener,hr as setCssVar,er as setObjToUrlParams,bt as setWorkerInterval,Ct as setWorkerTimeout,hi as titleCase,Qr as treeMap,We as treeMapEach,Br as triggerWindowResize,Ur as unloadScript,tr as unsetAllProperty,gt as urlToBase64,_r as useRafThrottle,Qt as withInstall};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gsc-basic/utils",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.13",
|
|
5
5
|
"description": "Web Dev Utils for GSC Basic Team",
|
|
6
6
|
"author": "wangll47 <wangll47@lenovo.com>",
|
|
7
7
|
"license": "UNLICENSED",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"publishConfig": {
|
|
13
13
|
"access": "public",
|
|
14
|
-
"registry": "https://registry.npmjs.
|
|
14
|
+
"registry": "https://registry.npmjs.org/"
|
|
15
15
|
},
|
|
16
16
|
"keywords": [
|
|
17
17
|
"GSC Basic",
|