@gsc-basic/utils 1.0.8 → 1.0.10
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 +3 -2
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function e(e,t){if(t==null||t>e.length)t=e.length;for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function t(e){if(Array.isArray(e))return e}function n(t){if(Array.isArray(t))return e(t)}function r(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(e,r.key,r)}}function o(e,t,n){if(t)i(e.prototype,t);if(n)i(e,n);return e}function a(e,t,n){if(t in e){Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true})}else{e[t]=n}return e}function u(e,t){if(t!=null&&typeof Symbol!=="undefined"&&t[Symbol.hasInstance]){return!!t[Symbol.hasInstance](e)}else{return e instanceof t}}function c(e){if(typeof Symbol!=="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function s(e,t){var n=e==null?null:typeof Symbol!=="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(n==null)return;var r=[];var i=true;var o=false;var a,u;try{for(n=n.call(e);!(i=(a=n.next()).done);i=true){r.push(a.value);if(t&&r.length===t)break}}catch(e){o=true;u=e}finally{try{if(!i&&n["return"]!=null)n["return"]()}finally{if(o)throw u}}return r}function f(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};var r=Object.keys(n);if(typeof Object.getOwnPropertySymbols==="function"){r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))}r.forEach(function(t){a(e,t,n[t])})}return e}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);if(t){r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})}n.push.apply(n,r)}return n}function p(e,t){t=t!=null?t:{};if(Object.getOwnPropertyDescriptors){Object.defineProperties(e,Object.getOwnPropertyDescriptors(t))}else{h(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function v(e,t){if(e==null)return{};var n=y(e,t);var r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++){r=o[i];if(t.indexOf(r)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(e,r))continue;n[r]=e[r]}}return n}function y(e,t){if(e==null)return{};var n={};var r=Object.keys(e);var i,o;for(o=0;o<r.length;o++){i=r[o];if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function m(e,n){return t(e)||s(e,n)||b(e,n)||f()}function g(e){return n(e)||c(e)||b(e)||d()}function w(e){"@swc/helpers - typeof";return e&&typeof Symbol!=="undefined"&&e.constructor===Symbol?"symbol":typeof e}function b(t,n){if(!t)return;if(typeof t==="string")return e(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor)r=t.constructor.name;if(r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return e(t,n)}var _=Object.create;var S=Object.defineProperty;var k=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var B=Object.getPrototypeOf,E=Object.prototype.hasOwnProperty;var O=function(e,t){return function(){return e&&(t=e(e=0)),t}};var C=function(e,t){return function(){return t||e((t={exports:{}}).exports,t),t.exports}},A=function(e,t){for(var n in t)S(e,n,{get:t[n],enumerable:!0})},D=function(e,t,n,r){var i=true,o=false,a=undefined;if(t&&(typeof t==="undefined"?"undefined":w(t))=="object"||typeof t=="function")try{var u=function(){var i=s.value;!E.call(e,i)&&i!==n&&S(e,i,{get:function(){return t[i]},enumerable:!(r=k(t,i))||r.enumerable})};for(var c=x(t)[Symbol.iterator](),s;!(i=(s=c.next()).done);i=true)u()}catch(e){o=true;a=e}finally{try{if(!i&&c.return!=null){c.return()}}finally{if(o){throw a}}}return e};var z=function(e,t,n){return n=e!=null?_(B(e)):{},D(t||!e||!e.__esModule?S(n,"default",{value:e,enumerable:!0}):n,e)},R=function(e){return D(S({},"__esModule",{value:!0}),e)};var L=O(function(){});var M=C(function(e,t){L();(function(n,r){(typeof e==="undefined"?"undefined":w(e))=="object"?t.exports=e=r():typeof define=="function"&&define.amd?define([],r):n.CryptoJS=r()})(e,function(){var e=e||function(e,t){var n;if((typeof window==="undefined"?"undefined":w(window))<"u"&&window.crypto&&(n=window.crypto),(typeof self==="undefined"?"undefined":w(self))<"u"&&self.crypto&&(n=self.crypto),(typeof globalThis==="undefined"?"undefined":w(globalThis))<"u"&&globalThis.crypto&&(n=globalThis.crypto),!n&&(typeof window==="undefined"?"undefined":w(window))<"u"&&window.msCrypto&&(n=window.msCrypto),!n&&(typeof global==="undefined"?"undefined":w(global))<"u"&&global.crypto&&(n=global.crypto),!n&&typeof require=="function")try{n=require("crypto")}catch(e){}var r=function e(){if(n){if(typeof n.getRandomValues=="function")try{return n.getRandomValues(new Uint32Array(1))[0]}catch(e){}if(typeof n.randomBytes=="function")try{return n.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),o={},a=o.lib={},u=a.Base=function(){return{extend:function e(e){var t=i(this);return e&&t.mixIn(e),(!t.hasOwnProperty("init")||this.init===t.init)&&(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function e(){var e=this.extend();return e.init.apply(e,arguments),e},init:function e(){},mixIn:function e(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function e(){return this.init.prototype.extend(this)}}}(),c=a.WordArray=u.extend({init:function e(e,n){e=this.words=e||[],n!=t?this.sigBytes=n:this.sigBytes=e.length*4},toString:function e(e){return(e||f).stringify(this)},concat:function e(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var o=0;o<i;o++){var a=n[o>>>2]>>>24-o%4*8&255;t[r+o>>>2]|=a<<24-(r+o)%4*8}else for(var u=0;u<i;u+=4)t[r+u>>>2]=n[u>>>2];return this.sigBytes+=i,this},clamp:function t(){var t=this.words,n=this.sigBytes;t[n>>>2]&=0xffffffff<<32-n%4*8,t.length=e.ceil(n/4)},clone:function e(){var e=u.clone.call(this);return e.words=this.words.slice(0),e},random:function e(e){for(var t=[],n=0;n<e;n+=4)t.push(r());return new c.init(t,e)}}),s=o.enc={},f=s.Hex={stringify:function e(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((o&15).toString(16))}return r.join("")},parse:function e(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new c.init(n,t/2)}},d=s.Latin1={stringify:function e(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function e(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(e.charCodeAt(r)&255)<<24-r%4*8;return new c.init(n,t)}},l=s.Utf8={stringify:function e(e){try{return decodeURIComponent(escape(d.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function e(e){return d.parse(unescape(encodeURIComponent(e)))}},h=a.BufferedBlockAlgorithm=u.extend({reset:function e(){this._data=new c.init,this._nDataBytes=0},_append:function e(e){typeof e=="string"&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function t(t){var n,r=this._data,i=r.words,o=r.sigBytes,a=this.blockSize,u=a*4,s=o/u;t?s=e.ceil(s):s=e.max((s|0)-this._minBufferSize,0);var f=s*a,d=e.min(f*4,o);if(f){for(var l=0;l<f;l+=a)this._doProcessBlock(i,l);n=i.splice(0,f),r.sigBytes-=d}return new c.init(n,d)},clone:function e(){var e=u.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),p=a.Hasher=h.extend({cfg:u.extend(),init:function e(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function e(){h.reset.call(this),this._doReset()},update:function e(e){return this._append(e),this._process(),this},finalize:function e(e){e&&this._append(e);var t=this._doFinalize();return t},blockSize:512/32,_createHelper:function e(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function e(e){return function(t,n){return new v.HMAC.init(e,n).finalize(t)}}}),v=o.algo={};return o}(Math);return e})});var j=C(function(e,t){L();(function(n,r){(typeof e==="undefined"?"undefined":w(e))=="object"?t.exports=e=r(M()):typeof define=="function"&&define.amd?define(["./core"],r):r(n.CryptoJS)})(e,function(e){return function(){var t=e,n=t.lib,r=n.WordArray,i=t.enc,o=i.Base64={stringify:function e(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var i=[],o=0;o<n;o+=3)for(var a=t[o>>>2]>>>24-o%4*8&255,u=t[o+1>>>2]>>>24-(o+1)%4*8&255,c=t[o+2>>>2]>>>24-(o+2)%4*8&255,s=a<<16|u<<8|c,f=0;f<4&&o+f*.75<n;f++)i.push(r.charAt(s>>>6*(3-f)&63));var d=r.charAt(64);if(d)for(;i.length%4;)i.push(d);return i.join("")},parse:function e(e){var t=e.length,n=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var i=0;i<n.length;i++)r[n.charCodeAt(i)]=i}var o=n.charAt(64);if(o){var u=e.indexOf(o);u!==-1&&(t=u)}return a(e,t,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function a(e,t,n){for(var i=[],o=0,a=0;a<t;a++)if(a%4){var u=n[e.charCodeAt(a-1)]<<a%4*2,c=n[e.charCodeAt(a)]>>>6-a%4*2,s=u|c;i[o>>>2]|=s<<24-o%4*8,o++}return r.create(i,o)}}(),e.enc.Base64})});var I=C(function(e,t){L();(function(n,r){(typeof e==="undefined"?"undefined":w(e))=="object"?t.exports=e=r(M()):typeof define=="function"&&define.amd?define(["./core"],r):r(n.CryptoJS)})(e,function(e){return function(t){var n=e,r=n.lib,i=r.WordArray,o=r.Hasher,a=n.algo,u=[];(function(){for(var e=0;e<64;e++)u[e]=t.abs(t.sin(e+1))*0x100000000|0})();var c=a.MD5=o.extend({_doReset:function e(){this._hash=new i.init([0x67452301,0xefcdab89,0x98badcfe,0x10325476])},_doProcessBlock:function e(e,t){for(var n=0;n<16;n++){var r=t+n,i=e[r];e[r]=(i<<8|i>>>24)&0xff00ff|(i<<24|i>>>8)&0xff00ff00}var o=this._hash.words,a=e[t+0],c=e[t+1],h=e[t+2],p=e[t+3],v=e[t+4],y=e[t+5],m=e[t+6],g=e[t+7],w=e[t+8],b=e[t+9],_=e[t+10],S=e[t+11],k=e[t+12],x=e[t+13],B=e[t+14],E=e[t+15],O=o[0],C=o[1],A=o[2],D=o[3];O=s(O,C,A,D,a,7,u[0]),D=s(D,O,C,A,c,12,u[1]),A=s(A,D,O,C,h,17,u[2]),C=s(C,A,D,O,p,22,u[3]),O=s(O,C,A,D,v,7,u[4]),D=s(D,O,C,A,y,12,u[5]),A=s(A,D,O,C,m,17,u[6]),C=s(C,A,D,O,g,22,u[7]),O=s(O,C,A,D,w,7,u[8]),D=s(D,O,C,A,b,12,u[9]),A=s(A,D,O,C,_,17,u[10]),C=s(C,A,D,O,S,22,u[11]),O=s(O,C,A,D,k,7,u[12]),D=s(D,O,C,A,x,12,u[13]),A=s(A,D,O,C,B,17,u[14]),C=s(C,A,D,O,E,22,u[15]),O=f(O,C,A,D,c,5,u[16]),D=f(D,O,C,A,m,9,u[17]),A=f(A,D,O,C,S,14,u[18]),C=f(C,A,D,O,a,20,u[19]),O=f(O,C,A,D,y,5,u[20]),D=f(D,O,C,A,_,9,u[21]),A=f(A,D,O,C,E,14,u[22]),C=f(C,A,D,O,v,20,u[23]),O=f(O,C,A,D,b,5,u[24]),D=f(D,O,C,A,B,9,u[25]),A=f(A,D,O,C,p,14,u[26]),C=f(C,A,D,O,w,20,u[27]),O=f(O,C,A,D,x,5,u[28]),D=f(D,O,C,A,h,9,u[29]),A=f(A,D,O,C,g,14,u[30]),C=f(C,A,D,O,k,20,u[31]),O=d(O,C,A,D,y,4,u[32]),D=d(D,O,C,A,w,11,u[33]),A=d(A,D,O,C,S,16,u[34]),C=d(C,A,D,O,B,23,u[35]),O=d(O,C,A,D,c,4,u[36]),D=d(D,O,C,A,v,11,u[37]),A=d(A,D,O,C,g,16,u[38]),C=d(C,A,D,O,_,23,u[39]),O=d(O,C,A,D,x,4,u[40]),D=d(D,O,C,A,a,11,u[41]),A=d(A,D,O,C,p,16,u[42]),C=d(C,A,D,O,m,23,u[43]),O=d(O,C,A,D,b,4,u[44]),D=d(D,O,C,A,k,11,u[45]),A=d(A,D,O,C,E,16,u[46]),C=d(C,A,D,O,h,23,u[47]),O=l(O,C,A,D,a,6,u[48]),D=l(D,O,C,A,g,10,u[49]),A=l(A,D,O,C,B,15,u[50]),C=l(C,A,D,O,y,21,u[51]),O=l(O,C,A,D,k,6,u[52]),D=l(D,O,C,A,p,10,u[53]),A=l(A,D,O,C,_,15,u[54]),C=l(C,A,D,O,c,21,u[55]),O=l(O,C,A,D,w,6,u[56]),D=l(D,O,C,A,E,10,u[57]),A=l(A,D,O,C,m,15,u[58]),C=l(C,A,D,O,x,21,u[59]),O=l(O,C,A,D,v,6,u[60]),D=l(D,O,C,A,S,10,u[61]),A=l(A,D,O,C,h,15,u[62]),C=l(C,A,D,O,b,21,u[63]),o[0]=o[0]+O|0,o[1]=o[1]+C|0,o[2]=o[2]+A|0,o[3]=o[3]+D|0},_doFinalize:function e(){var e=this._data,n=e.words,r=this._nDataBytes*8,i=e.sigBytes*8;n[i>>>5]|=128<<24-i%32;var o=t.floor(r/0x100000000),a=r;n[(i+64>>>9<<4)+15]=(o<<8|o>>>24)&0xff00ff|(o<<24|o>>>8)&0xff00ff00,n[(i+64>>>9<<4)+14]=(a<<8|a>>>24)&0xff00ff|(a<<24|a>>>8)&0xff00ff00,e.sigBytes=(n.length+1)*4,this._process();for(var u=this._hash,c=u.words,s=0;s<4;s++){var f=c[s];c[s]=(f<<8|f>>>24)&0xff00ff|(f<<24|f>>>8)&0xff00ff00}return u},clone:function e(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function s(e,t,n,r,i,o,a){var u=e+(t&n|~t&r)+i+a;return(u<<o|u>>>32-o)+t}function f(e,t,n,r,i,o,a){var u=e+(t&r|n&~r)+i+a;return(u<<o|u>>>32-o)+t}function d(e,t,n,r,i,o,a){var u=e+(t^n^r)+i+a;return(u<<o|u>>>32-o)+t}function l(e,t,n,r,i,o,a){var u=e+(n^(t|~r))+i+a;return(u<<o|u>>>32-o)+t}n.MD5=o._createHelper(c),n.HmacMD5=o._createHmacHelper(c)}(Math),e.MD5})});var P=C(function(e,t){L();(function(n,r){(typeof e==="undefined"?"undefined":w(e))=="object"?t.exports=e=r(M()):typeof define=="function"&&define.amd?define(["./core"],r):r(n.CryptoJS)})(e,function(e){return function(){var t=e,n=t.lib,r=n.WordArray,i=n.Hasher,o=t.algo,a=[],u=o.SHA1=i.extend({_doReset:function e(){this._hash=new r.init([0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0])},_doProcessBlock:function e(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],u=n[3],c=n[4],s=0;s<80;s++){if(s<16)a[s]=e[t+s]|0;else{var f=a[s-3]^a[s-8]^a[s-14]^a[s-16];a[s]=f<<1|f>>>31}var d=(r<<5|r>>>27)+c+a[s];s<20?d+=(i&o|~i&u)+0x5a827999:s<40?d+=(i^o^u)+0x6ed9eba1:s<60?d+=(i&o|i&u|o&u)-0x70e44324:d+=(i^o^u)-0x359d3e2a,c=u,u=o,o=i<<30|i>>>2,i=r,r=d}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+u|0,n[4]=n[4]+c|0},_doFinalize:function e(){var e=this._data,t=e.words,n=this._nDataBytes*8,r=e.sigBytes*8;return t[r>>>5]|=128<<24-r%32,t[(r+64>>>9<<4)+14]=Math.floor(n/0x100000000),t[(r+64>>>9<<4)+15]=n,e.sigBytes=t.length*4,this._process(),this._hash},clone:function e(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA1=i._createHelper(u),t.HmacSHA1=i._createHmacHelper(u)}(),e.SHA1})});var T=C(function(e,t){L();(function(n,r){(typeof e==="undefined"?"undefined":w(e))=="object"?t.exports=e=r(M()):typeof define=="function"&&define.amd?define(["./core"],r):r(n.CryptoJS)})(e,function(e){(function(){var t=e,n=t.lib,r=n.Base,i=t.enc,o=i.Utf8,a=t.algo,u=a.HMAC=r.extend({init:function e(e,t){e=this._hasher=new e.init,typeof t=="string"&&(t=o.parse(t));var n=e.blockSize,r=n*4;t.sigBytes>r&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),a=this._iKey=t.clone(),u=i.words,c=a.words,s=0;s<n;s++)u[s]^=0x5c5c5c5c,c[s]^=0x36363636;i.sigBytes=a.sigBytes=r,this.reset()},reset:function e(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function e(e){return this._hasher.update(e),this},finalize:function e(e){var t=this._hasher,n=t.finalize(e);t.reset();var r=t.finalize(this._oKey.clone().concat(n));return r}})})()})});var F=C(function(e,t){L();(function(n,r,i){(typeof e==="undefined"?"undefined":w(e))=="object"?t.exports=e=r(M(),P(),T()):typeof define=="function"&&define.amd?define(["./core","./sha1","./hmac"],r):r(n.CryptoJS)})(e,function(e){return function(){var t=e,n=t.lib,r=n.Base,i=n.WordArray,o=t.algo,a=o.MD5,u=o.EvpKDF=r.extend({cfg:r.extend({keySize:128/32,hasher:a,iterations:1}),init:function e(e){this.cfg=this.cfg.extend(e)},compute:function e(e,t){for(var n,r=this.cfg,o=r.hasher.create(),a=i.create(),u=a.words,c=r.keySize,s=r.iterations;u.length<c;){n&&o.update(n),n=o.update(e).finalize(t),o.reset();for(var f=1;f<s;f++)n=o.finalize(n),o.reset();a.concat(n)}return a.sigBytes=c*4,a}});t.EvpKDF=function(e,t,n){return u.create(n).compute(e,t)}}(),e.EvpKDF})});var U=C(function(e,t){L();(function(n,r,i){(typeof e==="undefined"?"undefined":w(e))=="object"?t.exports=e=r(M(),F()):typeof define=="function"&&define.amd?define(["./core","./evpkdf"],r):r(n.CryptoJS)})(e,function(e){e.lib.Cipher||function(t){var n=e,r=n.lib,i=r.Base,o=r.WordArray,a=r.BufferedBlockAlgorithm,u=n.enc,c=u.Utf8,s=u.Base64,f=n.algo,d=f.EvpKDF,l=r.Cipher=a.extend({cfg:i.extend(),createEncryptor:function e(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function e(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function e(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function e(){a.reset.call(this),this._doReset()},process:function e(e){return this._append(e),this._process()},finalize:function e(e){e&&this._append(e);var t=this._doFinalize();return t},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return typeof e=="string"?E:k}return function(t){return{encrypt:function n(n,r,i){return e(r).encrypt(t,n,r,i)},decrypt:function n(n,r,i){return e(r).decrypt(t,n,r,i)}}}}()}),h=r.StreamCipher=l.extend({_doFinalize:function e(){var e=this._process(!0);return e},blockSize:1}),p=n.mode={},v=r.BlockCipherMode=i.extend({createEncryptor:function e(e,t){return this.Encryptor.create(e,t)},createDecryptor:function e(e,t){return this.Decryptor.create(e,t)},init:function e(e,t){this._cipher=e,this._iv=t}}),y=p.CBC=function(){var e=v.extend();e.Encryptor=e.extend({processBlock:function e(e,t){var r=this._cipher,i=r.blockSize;n.call(this,e,t,i),r.encryptBlock(e,t),this._prevBlock=e.slice(t,t+i)}}),e.Decryptor=e.extend({processBlock:function e(e,t){var r=this._cipher,i=r.blockSize,o=e.slice(t,t+i);r.decryptBlock(e,t),n.call(this,e,t,i),this._prevBlock=o}});function n(e,n,r){var i,o=this._iv;o?(i=o,this._iv=t):i=this._prevBlock;for(var a=0;a<r;a++)e[n+a]^=i[a]}return e}(),m=n.pad={},g=m.Pkcs7={pad:function e(e,t){for(var n=t*4,r=n-e.sigBytes%n,i=r<<24|r<<16|r<<8|r,a=[],u=0;u<r;u+=4)a.push(i);var c=o.create(a,r);e.concat(c)},unpad:function e(e){var t=e.words[e.sigBytes-1>>>2]&255;e.sigBytes-=t}},w=r.BlockCipher=l.extend({cfg:l.cfg.extend({mode:y,padding:g}),reset:function e(){var e;l.reset.call(this);var t=this.cfg,n=t.iv,r=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=r.createEncryptor:(e=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(r,this,n&&n.words),this._mode.__creator=e)},_doProcessBlock:function e(e,t){this._mode.processBlock(e,t)},_doFinalize:function e(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:128/32}),b=r.CipherParams=i.extend({init:function e(e){this.mixIn(e)},toString:function e(e){return(e||this.formatter).stringify(this)}}),_=n.format={},S=_.OpenSSL={stringify:function e(e){var t,n=e.ciphertext,r=e.salt;return r?t=o.create([0x53616c74,0x65645f5f]).concat(r).concat(n):t=n,t.toString(s)},parse:function e(e){var t,n=s.parse(e),r=n.words;return r[0]==0x53616c74&&r[1]==0x65645f5f&&(t=o.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),b.create({ciphertext:n,salt:t})}},k=r.SerializableCipher=i.extend({cfg:i.extend({format:S}),encrypt:function e(e,t,n,r){r=this.cfg.extend(r);var i=e.createEncryptor(n,r),o=i.finalize(t),a=i.cfg;return b.create({ciphertext:o,key:n,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function e(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var i=e.createDecryptor(n,r).finalize(t.ciphertext);return i},_parse:function e(e,t){return typeof e=="string"?t.parse(e,this):e}}),x=n.kdf={},B=x.OpenSSL={execute:function e(e,t,n,r,i){if(r||(r=o.random(64/8)),i)var a=d.create({keySize:t+n,hasher:i}).compute(e,r);else var a=d.create({keySize:t+n}).compute(e,r);var u=o.create(a.words.slice(t),n*4);return a.sigBytes=t*4,b.create({key:a,iv:u,salt:r})}},E=r.PasswordBasedCipher=k.extend({cfg:k.cfg.extend({kdf:B}),encrypt:function e(e,t,n,r){r=this.cfg.extend(r);var i=r.kdf.execute(n,e.keySize,e.ivSize,r.salt,r.hasher);r.iv=i.iv;var o=k.encrypt.call(this,e,t,i.key,r);return o.mixIn(i),o},decrypt:function e(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var i=r.kdf.execute(n,e.keySize,e.ivSize,t.salt,r.hasher);r.iv=i.iv;var o=k.decrypt.call(this,e,t,i.key,r);return o}})}()})});var N=C(function(e,t){L();(function(n,r,i){(typeof e==="undefined"?"undefined":w(e))=="object"?t.exports=e=r(M(),j(),I(),F(),U()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],r):r(n.CryptoJS)})(e,function(e){return function(){var t=e,n=t.lib,r=n.BlockCipher,i=t.algo,o=[],a=[],u=[],c=[],s=[],f=[],d=[],l=[],h=[],p=[];(function(){for(var e=[],t=0;t<256;t++)t<128?e[t]=t<<1:e[t]=t<<1^283;for(var n=0,r=0,t=0;t<256;t++){var i=r^r<<1^r<<2^r<<3^r<<4;i=i>>>8^i&255^99,o[n]=i,a[i]=n;var v=e[n],y=e[v],m=e[y],g=e[i]*257^i*0x1010100;u[n]=g<<24|g>>>8,c[n]=g<<16|g>>>16,s[n]=g<<8|g>>>24,f[n]=g;var g=m*0x1010101^y*65537^v*257^n*0x1010100;d[i]=g<<24|g>>>8,l[i]=g<<16|g>>>16,h[i]=g<<8|g>>>24,p[i]=g,n?(n=v^e[e[e[m^v]]],r^=e[e[r]]):n=r=1}})();var v=[0,1,2,4,8,16,32,64,128,27,54],y=i.AES=r.extend({_doReset:function e(){var e;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var t=this._keyPriorReset=this._key,n=t.words,r=t.sigBytes/4,i=this._nRounds=r+6,a=(i+1)*4,u=this._keySchedule=[],c=0;c<a;c++)c<r?u[c]=n[c]:(e=u[c-1],c%r?r>6&&c%r==4&&(e=o[e>>>24]<<24|o[e>>>16&255]<<16|o[e>>>8&255]<<8|o[e&255]):(e=e<<8|e>>>24,e=o[e>>>24]<<24|o[e>>>16&255]<<16|o[e>>>8&255]<<8|o[e&255],e^=v[c/r|0]<<24),u[c]=u[c-r]^e);for(var s=this._invKeySchedule=[],f=0;f<a;f++){var c=a-f;if(f%4)var e=u[c];else var e=u[c-4];f<4||c<=4?s[f]=e:s[f]=d[o[e>>>24]]^l[o[e>>>16&255]]^h[o[e>>>8&255]]^p[o[e&255]]}}},encryptBlock:function e(e,t){this._doCryptBlock(e,t,this._keySchedule,u,c,s,f,o)},decryptBlock:function e(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,d,l,h,p,a);var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function e(e,t,n,r,i,o,a,u){for(var c=this._nRounds,s=e[t]^n[0],f=e[t+1]^n[1],d=e[t+2]^n[2],l=e[t+3]^n[3],h=4,p=1;p<c;p++){var v=r[s>>>24]^i[f>>>16&255]^o[d>>>8&255]^a[l&255]^n[h++],y=r[f>>>24]^i[d>>>16&255]^o[l>>>8&255]^a[s&255]^n[h++],m=r[d>>>24]^i[l>>>16&255]^o[s>>>8&255]^a[f&255]^n[h++],g=r[l>>>24]^i[s>>>16&255]^o[f>>>8&255]^a[d&255]^n[h++];s=v,f=y,d=m,l=g}var v=(u[s>>>24]<<24|u[f>>>16&255]<<16|u[d>>>8&255]<<8|u[l&255])^n[h++],y=(u[f>>>24]<<24|u[d>>>16&255]<<16|u[l>>>8&255]<<8|u[s&255])^n[h++],m=(u[d>>>24]<<24|u[l>>>16&255]<<16|u[s>>>8&255]<<8|u[f&255])^n[h++],g=(u[l>>>24]<<24|u[s>>>16&255]<<16|u[f>>>8&255]<<8|u[d&255])^n[h++];e[t]=v,e[t+1]=y,e[t+2]=m,e[t+3]=g},keySize:256/32});t.AES=r._createHelper(y)}(),e.AES})});var H=C(function(e,t){L();(function(n,r){(typeof e==="undefined"?"undefined":w(e))=="object"?t.exports=e=r(M()):typeof define=="function"&&define.amd?define(["./core"],r):r(n.CryptoJS)})(e,function(e){return e.enc.Utf8})});var $=C(function(e,t){L();(function(n,r,i){(typeof e==="undefined"?"undefined":w(e))=="object"?t.exports=e=r(M(),U()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],r):r(n.CryptoJS)})(e,function(e){return e.pad.Pkcs7})});var W=C(function(e,t){L();(function(n,r,i){(typeof e==="undefined"?"undefined":w(e))=="object"?t.exports=e=r(M(),U()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],r):r(n.CryptoJS)})(e,function(e){return e.mode.ECB=function(){var t=e.lib.BlockCipherMode.extend();return t.Encryptor=t.extend({processBlock:function e(e,t){this._cipher.encryptBlock(e,t)}}),t.Decryptor=t.extend({processBlock:function e(e,t){this._cipher.decryptBlock(e,t)}}),t}(),e.mode.ECB})});var J={};A(J,{AesEncryption:function(){return eA},IfActivity:function(){return th},ResizeObserver:function(){return eq.default},addClass:function(){return eF},addLocationListener:function(){return eY},addResizeListener:function(){return eV},buildBEM:function(){return eb},buildShortUUID:function(){return tF},buildUUID:function(){return tP},clearWorkerInterval:function(){return tr.clearInterval},clearWorkerTimeout:function(){return tr.clearTimeout},createBEM:function(){return e_},createNamespace:function(){return eS},createSearchReg:function(){return em},dataURLtoBlob:function(){return eQ},decodeByBase64:function(){return ez},deepMerge:function(){return eh},domOffEvent:function(){return eW},domOnEvent:function(){return e$},downloadByBase64:function(){return e4},downloadByData:function(){return e5},downloadByOnlineUrl:function(){return e2},downloadByUrl:function(){return e6},downloadPercent:function(){return e1},enableTransitions:function(){return es},encryptByBase64:function(){return eD},encryptByMd5:function(){return eR},escapeStringRegexp:function(){return t_},extendSlots:function(){return ty},filterTree:function(){return tR},findNode:function(){return tC},findNodeAll:function(){return tA},findPath:function(){return tD},findPathAll:function(){return tz},forEachTree:function(){return tL},getActualWidthOfChars:function(){return eg},getBoundingClientRect:function(){return ej},getRawRoute:function(){return ed},getSlot:function(){return tv},getViewportOffset:function(){return eN},hackCss:function(){return eH},hasClass:function(){return eP},highlightHtml:function(){return tn},is:function(){return X},isBrowser:function(){return eo},isChineseText:function(){return ec},isChrome:function(){return er},isClient:function(){return en},isIterableArray:function(){return G},isMatch:function(){return tb},isNumeric:function(){return ee},isObject:function(){return Z},isPositiveInteger:function(){return Q},isSafari:function(){return ei},isServer:function(){return et},isSupportNativeEllipsis:function(){return ea},isSupportResizeObserver:function(){return eu},isUrl:function(){return Y},loadScript:function(){return tm},matcher:function(){return tw},openWindow:function(){return el},regexpMap:function(){return K},removeClass:function(){return eU},removeResizeListener:function(){return eX},setCssVar:function(){return eT},setObjToUrlParams:function(){return ep},setWorkerInterval:function(){return tr.setInterval},setWorkerTimeout:function(){return tr.setTimeout},treeMap:function(){return tM},treeMapEach:function(){return tj},triggerWindowResize:function(){return eZ},unloadScript:function(){return tg},unsetAllProperty:function(){return ev},urlToBase64:function(){return e0},useRafThrottle:function(){return eJ},withInstall:function(){return ef}});module.exports=R(J);L();L();var q=require("lodash-es");L();L();var K={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 V=Object.prototype.toString;function X(e,t){return V.call(e)==="[object ".concat(t,"]")}function Z(e){return e!==null&&X(e,"Object")}function Y(e){return K.url.test(e)}function G(e){return Array.isArray(e)&&e.length>0}function Q(e){return Number.isInteger(e)&&e>=0}function ee(e){return K.numeric.test(e)}var et=(typeof window==="undefined"?"undefined":w(window))>"u",en=!et,er=en&&window.navigator.userAgent.toLowerCase().includes("chrome"),ei=en&&window.navigator.userAgent.toLowerCase().includes("safari"),eo=(typeof window==="undefined"?"undefined":w(window))<"u"&&(typeof document==="undefined"?"undefined":w(document))<"u",ea=eo&&w(document.body.style.lineClamp)<"u",eu=eo&&(typeof ResizeObserver==="undefined"?"undefined":w(ResizeObserver))<"u",ec=function(e){return K.chinese.test(e)},es=function(){return"startViewTransition"in document&&window.matchMedia("(prefers-reduced-motion: no-preference)").matches};var ef=function(e,t){var n=e;return n.install=function(r){r.component(n.name||n.displayName,e),t&&(r.config.globalProperties[t]=e)},e};function ed(e){if(!e)return e;var t=e.matched,n=v(e,["matched"]);return p(l({},n),{matched:t?t.map(function(e){return{meta:e.meta,name:e.name,path:e.path}}):void 0})}function el(e,t){var n=t||{},r=n.target,i=r===void 0?"__blank":r,o=n.noopener,a=o===void 0?!0:o,u=n.noreferrer,c=u===void 0?!0:u,s=[];a&&s.push("noopener=yes"),c&&s.push("noreferrer=yes"),window.open(e,i,s.join(","))}function eh(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"replace";return t?e?(0,q.mergeWith)(e,t,function(e,t){if((0,q.isArray)(t)&&(0,q.isArray)(e))switch(n){case"union":return(0,q.unionWith)(e,t,q.isEqual);case"intersection":return(0,q.intersectionWith)(e,t,q.isEqual);case"concat":return e.concat(t);case"replace":return t;default:throw new Error("Unknown merge array strategy: ".concat(n))}if(Z(t)&&Z(e))return eh(e,t,n)}):t:e}function ep(e,t){if(!G(Object.keys(t)))return e;var n="";for(var r in t)n+="".concat(r,"=").concat(encodeURIComponent(t[r]),"&");return n=n.replace(/&$/,""),/\?$/.test(e)?e+n:e.replace(/\/?$/,"?")+n}function ev(e){(0,q.isPlainObject)(e)&&Object.keys(e).forEach(function(t){Reflect.deleteProperty(e,t)})}function ey(e){return["$","(",")","*","+",".","[","]","?","\\","^","{","}","|"].includes(e)?"\\".concat(e):e}function em(e){var t=[""].concat(g(g(e).map(function(e){return ey(e)})),[""]).join(".*");return new RegExp(t,"i")}function eg(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};var n=t.size,r=n===void 0?14:n,i=t.family,o=i===void 0?getComputedStyle(document.documentElement).getPropertyValue("--vxe-font-family")||"sans-serif":i,a=document.createElement("canvas").getContext("2d");a.font="".concat(r,"px ").concat(o);var u=a.measureText(e),c=Math.abs(u.actualBoundingBoxLeft)+Math.abs(u.actualBoundingBoxRight);return Math.ceil(Math.max(u.width,c))}L();function ew(e,t){return t?typeof t=="string"?" ".concat(e,"--").concat(t):Array.isArray(t)?t.reduce(function(t,n){return t+ew(e,n)},""):Object.keys(t).reduce(function(n,r){return n+(t[r]?ew(e,r):"")},""):""}function eb(e){return function(t,n){return t&&typeof t!="string"&&(n=t,t=""),t=t?"".concat(e,"__").concat(t):e,"".concat(t).concat(ew(t,n))}}function e_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return[eb("".concat(t,"-").concat(e))]}function eS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";var n="".concat(t,"-").concat(e);return[n,eb(n)]}L();var ek=z(N(),1),ex=z(H(),1),eB=z($(),1),eE=z(W(),1),eO=z(I(),1),eC=z(j(),1),eA=/*#__PURE__*/function(){"use strict";function e(t){r(this,e);var n=t.key,i=t.iv;n&&(this.key=(0,ex.parse)(n)),i&&(this.iv=(0,ex.parse)(i))}o(e,[{key:"getOptions",get:function e(){return{mode:eE.default,padding:eB.default,iv:this.iv}}},{key:"encryptByAES",value:function e(e){return(0,ek.encrypt)(e,this.key,this.getOptions).toString()}},{key:"decryptByAES",value:function e(e){return(0,ek.decrypt)(e,this.key,this.getOptions).toString(ex.default)}}]);return e}();function eD(e){return ex.default.parse(e).toString(eC.default)}function ez(e){return eC.default.parse(e).toString(ex.default)}function eR(e){return(0,eO.default)(e).toString()}L();var eL=require("lodash-es"),eM=function(){return document.documentElement};function ej(e){return!e||!e.getBoundingClientRect?0:e.getBoundingClientRect()}function eI(e){return(e||"").replace(/^\s+|\s+$/g,"")}function eP(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):" ".concat(e.className," ").includes(" ".concat(t," "))}function eT(e,t,n){return n||(n=eM()),n.style.setProperty(e,t),{prop:t}}function eF(e,t){if(!e)return;var n=e.className,r=(t||"").split(" ");for(var i=0,o=r.length;i<o;i++){var a=r[i];a&&(e.classList?e.classList.add(a):eP(e,a)||(n+=" ".concat(a)))}e.classList||(e.className=n)}function eU(e,t){if(!e||!t)return;var n=t.split(" "),r=" ".concat(e.className," ");for(var i=0,o=n.length;i<o;i++){var a=n[i];a&&(e.classList?e.classList.remove(a):eP(e,a)&&(r=r.replace(" ".concat(a," ")," ")))}e.classList||(e.className=eI(r))}function eN(e){var t=document.documentElement,n=t.scrollLeft,r=t.scrollTop,i=t.clientLeft,o=t.clientTop,a=window.scrollX,u=window.scrollY,c=ej(e);if(!c)return{};var s=c.left,f=c.top,d=c.width,l=c.height,h=(a||n)-(i||0),p=(u||r)-(o||0),v=s+a,y=f+u,m=v-h,g=y-p,w=window.document.documentElement.clientWidth,b=window.document.documentElement.clientHeight;return{left:m,top:g,right:w-d-m,bottom:b-l-g,rightIncludeBody:w-m,bottomIncludeBody:b-g}}function eH(e,t){var n=["webkit","Moz","ms","OT"],r={};return n.forEach(function(n){r["".concat(n).concat((0,eL.upperFirst)(e))]=t}),p(l({},r),a({},e,t))}function e$(e,t,n){e&&t&&n&&e.addEventListener(t,n,!1)}function eW(e,t,n){e&&t&&n&&e.removeEventListener(t,n,!1)}function eJ(e){var t=!1;return function(){var n=this;for(var r=arguments.length,i=new Array(r),o=0;o<r;o++){i[o]=arguments[o]}t||(t=!0,window.requestAnimationFrame(function(){e.apply(n,i),t=!1}))}}L();var eq=z(require("resize-observer-polyfill"),1);function eK(e){var t=true,n=false,r=undefined;try{for(var i=e[Symbol.iterator](),o;!(t=(o=i.next()).done);t=true){var a=o.value;var u=a.target.__resizeListeners__||[];u.length&&u.forEach(function(e){e()})}}catch(e){n=true;r=e}finally{try{if(!t&&i.return!=null){i.return()}}finally{if(n){throw r}}}}function eV(e,t){et||(e.__resizeListeners__||(e.__resizeListeners__=[],e.__ro__=new eq.default(eK),e.__ro__.observe(e)),e.__resizeListeners__.push(t))}function eX(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 eZ(){var e=new Event("resize",{bubbles:!0,cancelable:!0});window.dispatchEvent(e)}function eY(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};function n(e){var t=window.history[e];return function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++){r[i]=arguments[i]}var o=new Event(e);return o.arguments=r,window.dispatchEvent(o),t.apply(this,r)}}return window.history.pushState=n("pushState"),window.history.replaceState=n("replaceState"),window.addEventListener("popstate",e,t),window.addEventListener("hashchange",e,t),window.addEventListener("replaceState",e,t),window.addEventListener("pushState",e,t),{removeListener:function(){window.removeEventListener("popstate",e,t),window.removeEventListener("hashchange",e,t),window.removeEventListener("replaceState",e,t),window.removeEventListener("pushState",e,t)}}}L();var eG=require("lodash-es");function eQ(e){var t=e.split(","),n=t[0].match(/:(.*?);/)[1],r=window.atob(t[1]),i=r.length,o=new Uint8Array(i);for(;i--;)o[i]=r.charCodeAt(i);return new Blob([o],{type:n})}function e0(e,t){return new Promise(function(n,r){var i=document.createElement("CANVAS"),o=i.getContext("2d"),a=new Image;a.crossOrigin="",a.onload=function(){if(!i||!o)return r();i.height=a.height,i.width=a.width,o.drawImage(a,0,0);var e=i.toDataURL(t||"image/png");i=null,n(e)},a.src=e})}function e1(e){var t=e.loaded,n=e.total;if(n<=0||(0,eG.isNil)(n))return 0;var r=t/n;return(0,eG.round)((r>1?1:r)*100)}function e2(e,t,n,r){e0(e).then(function(e){e4(e,t,n,r)})}function e4(e,t,n,r){var i=eQ(e);e5(i,t,n,r)}function e5(e,t,n,r){var i=(typeof r==="undefined"?"undefined":w(r))<"u"?[r,e]:[e],o=new Blob(i,{type:n||"application/octet-stream"});if(w(window.navigator.msSaveBlob)<"u")window.navigator.msSaveBlob(o,t);else{var a=window.URL.createObjectURL(o),u=document.createElement("a");u.style.display="none",u.href=a,u.setAttribute("download",t),w(u.download)>"u"&&u.setAttribute("target","_blank"),document.body.appendChild(u),u.click(),document.body.removeChild(u),window.URL.revokeObjectURL(a)}}function e6(e){var t=e.url,n=e.target,r=n===void 0?"_blank":n,i=e.fileName;if(/iP/.test(window.navigator.userAgent))return!1;if(er||ei){var o=document.createElement("a");return o.href=t,o.download=i||t.substring(t.lastIndexOf("/")+1,t.length),o.style.display="none",document.body.appendChild(o),o.click(),document.body.removeChild(o),!0}return t.includes("?")||(t+="?download"),el(t,{target:r}),!0}L();var e8=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"ig";var r=new RegExp(t,n);return g(e.matchAll(r)).map(function(e){return{index:e.index,subString:e[0]}})};function e3(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}var e9=function(e,t){var n=e;if(!t)return n;var r=t.tagName,i=r===void 0?"mark":r,o=t.bgColor,a=t.color,u=t.style,c=u===void 0?{}:u,s=t.renderHighlightKeyword;if(typeof s=="function")return s(e);c.backgroundColor=o,c.color=a;var f='style="'.concat(Object.keys(c).map(function(e){return"".concat(e3(e),":").concat(c[e])}).join(";"),'"');return"<".concat(i," ").concat(f,">").concat(n,"</").concat(i,">")},e7=function(e,t){var n="";return t.forEach(function(t){var r=t.start,i=t.end,o=t.option,a=e.slice(r,i),u=e9(a,o);n+=u,t.subString=u}),n},te=function(e,t){var n=[];return t.forEach(function(t){var r={keyword:""};typeof t=="string"?r={keyword:t}:r=t;var i=r.keyword,o=r.caseSensitive,a=o===void 0?!0:o,u=e8(e,i,a?"g":"gi"),c={keyword:i,indexList:u,option:r};n.push(c)}),n},tt=function(e,t){var n=te(e,t),r=[],i=function(e,t){for(var n=0;n<r.length;n++){var i=r[n];if(e>i.start&&e<i.end||e+t>i.start&&e+t<i.end||i.start>e&&i.start<e+t||i.end>e&&i.end<e+t||e===i.start&&e+t===i.end)return-1;if(e+t<=i.start)return n}return r.length};n.forEach(function(e){var t=e.indexList,n=e.option;t.forEach(function(e){var t=e.index,o=e.subString,a={start:t,end:t+o.length,option:n},u=i(t,o.length);u!==-1&&r.splice(u,0,a)})});var o=[];return r.forEach(function(t,n){var i=t.start,a=t.end,u=r[n+1];n===0&&i>0&&o.push({start:0,end:i,subString:e.slice(0,i)}),o.push(p(l({},t),{subString:e.slice(i,a)})),(u===null||u===void 0?void 0:u.start)>a&&o.push({start:a,end:u.start,subString:e.slice(a,u.start)}),n===r.length-1&&a<e.length-1&&o.push({start:a,end:e.length-1,subString:e.slice(a,e.length)})}),o},tn=function(e,t){var n=tt(e,t);return{highText:e7(e,n),highList:n}};L();var tr=require("worker-timers"),ti="active",to="idle",ta="hidden",tu,tc,ts,tf={},td={attach:function e(e,t){tf[e]||(tf[e]=[]),tf[e].push(t)},fire:function e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];tf[e]&&tf[e].forEach(function(e){e.apply(void 0,g(t))})},remove:function e(e,t){t||Reflect.deleteProperty(tf,e),tf[e]&&(tf[e]=tf[e].filter(function(e){return t!==e}))},dom:function e(e,t,n){return ts||(e.addEventListener?ts=function(e,t,n){return e.addEventListener(t,n,!1)}:typeof e.attachEvent=="function"?ts=function(e,t,n){return e.attachEvent("on".concat(t),n,!1)}:ts=function(e,t,n){return e["on".concat(t)]=n}),ts(e,t,n)}},tl=/*#__PURE__*/function(){"use strict";function e(t,n,i){var o=this;r(this,e);this.activity=t,this.seconds=n,this.callback=i,this.stopped=!1,this.start(),this.activity.on("statusChanged",function(e){o.stopped===!1&&(e.status===ti?o.start():o.pause())})}o(e,[{key:"start",value:function e(){this.stopped=!1,(0,tr.clearInterval)(this.token),this.token=(0,tr.setInterval)(this.callback,this.seconds*1e3)}},{key:"stop",value:function e(){this.stopped=!0,(0,tr.clearInterval)(this.token)}},{key:"resume",value:function e(){this.start()}},{key:"pause",value:function e(){this.stop()}}]);return e}(),th=/*#__PURE__*/function(){"use strict";function e(){var t=this;r(this,e);if(this.status=ti,this.timers=[],this.idleTime=3e4,this.isLegacyModeOn=!1,document.hidden!==void 0?(tu="hidden",tc="visibilitychange"):document.mozHidden!==void 0?(tu="mozHidden",tc="mozvisibilitychange"):document.msHidden!==void 0?(tu="msHidden",tc="msvisibilitychange"):document.webkitHidden!==void 0&&(tu="webkitHidden",tc="webkitvisibilitychange"),tu===void 0)this.legacyMode();else{var n=function(){document[tu]?t.blur():t.focus()};n(),td.dom(document,tc,n)}this.startIdleTimer(),this.trackIdleStatus()}o(e,[{key:"legacyMode",value:function e(){var e=this;this.isLegacyModeOn||(td.dom(window,"blur",function(){return e.blur()}),td.dom(window,"focus",function(){return e.focus()}),this.isLegacyModeOn=!0)}},{key:"startIdleTimer",value:function e(e){var t=this;u(e,MouseEvent)&&e.movementX===0&&e.movementY===0||(this.timers.map(tr.clearTimeout),this.timers.length=0,this.status===to&&this.wakeUp(),this.idleStartedTime=+new Date,this.timers.push((0,tr.setTimeout)(function(){if(t.status===ti||t.status===ta)return t.idle()},this.idleTime)))}},{key:"trackIdleStatus",value:function e(){td.dom(document,"mousemove",this.startIdleTimer.bind(this)),td.dom(document,"mousedown",this.startIdleTimer.bind(this)),td.dom(document,"keyup",this.startIdleTimer.bind(this)),td.dom(document,"touchstart",this.startIdleTimer.bind(this)),td.dom(window,"scroll",this.startIdleTimer.bind(this)),this.focus(this.startIdleTimer.bind(this))}},{key:"on",value:function e(e,t){return td.attach(e,t),this}},{key:"off",value:function e(e,t){return td.remove(e,t),this}},{key:"setIdleDuration",value:function e(e){return this.idleTime=e*1e3,this.startIdleTimer(),this}},{key:"getIdleDuration",value:function e(){return this.idleTime}},{key:"getIdleInfo",value:function e(){var e=+new Date,t;if(this.status===to)t={isIdle:!0,idleFor:e-this.idleStartedTime,timeLeft:0,timeLeftPer:100};else{var n=this.idleStartedTime+this.idleTime-e;t={isIdle:!1,idleFor:e-this.idleStartedTime,timeLeft:n,timeLeftPer:Number.parseFloat((100-n*100/this.idleTime).toFixed(2))}}return t}},{key:"idle",value:function e(e){return e?this.on("idle",e):(this.status=to,td.fire("idle"),td.fire("statusChanged",[{status:this.status}])),this}},{key:"blur",value:function e(e){return e?this.on("blur",e):(this.status=ta,td.fire("blur"),td.fire("statusChanged",[{status:this.status}])),this}},{key:"focus",value:function e(e){return e?this.on("focus",e):this.status!==ti&&(this.status=ti,td.fire("focus"),td.fire("wakeUp"),td.fire("statusChanged",[{status:this.status}])),this}},{key:"wakeUp",value:function e(e){return e?this.on("wakeUp",e):this.status!==ti&&(this.status=ti,td.fire("wakeUp"),td.fire("statusChanged",[{status:this.status}])),this}},{key:"onEvery",value:function e(e,t){return new tl(this,e,t)}},{key:"now",value:function e(e){return e!==void 0?this.status===e:this.status===ti}}]);return e}();L();var tp=require("lodash-es");function tv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default",n=arguments.length>2?arguments[2]:void 0;if(!e||!Reflect.has(e,t)||!(0,tp.isFunction)(e[t]))return null;var r=e[t];return r?r(n):null}function ty(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];var n=Object.keys(e),r={};return n.forEach(function(n){if(t.includes(n))return null;r[n]=function(t){return tv(e,n,t)}}),r}L();function tm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.type,r=n===void 0?"text/javascript":n;return new Promise(function(t,n){var i=!1,o=document.querySelector('script[src="'.concat(e,'"]'));if(!o)o=document.createElement("script"),o.type=r,o.async=!0,o.src=e,i=!0;else if(o.hasAttribute("data-loaded")){t({el:o});return}o.addEventListener("error",n),o.addEventListener("abort",n),o.addEventListener("load",function(){o.setAttribute("data-loaded",!0),t({el:o})}),i&&document.head.appendChild(o)})}function tg(e){return new Promise(function(t,n){var r=document.querySelector('script[src="'.concat(e,'"]'));if(!r){n();return}document.head.removeChild(r),t()})}L();function tw(e,t,n){return tB(e,t,n,!1)}function tb(e,t,n){return tB(e,t,n,!0).length>0}function t_(e){return typeof e!="string"?e:e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var tS=new Map;function tk(e,t){if(!Array.isArray(e))switch(typeof e==="undefined"?"undefined":w(e)){case"string":e=[e];break;case"undefined":e=[];break;default:throw new TypeError("Expected '".concat(t,"' to be a string or an array, but got a type of '").concat(typeof e==="undefined"?"undefined":w(e),"'"))}return e.filter(function(e){if(typeof e!="string"){if((typeof e==="undefined"?"undefined":w(e))>"u")return!1;throw new TypeError("Expected '".concat(t,"' to be an array of strings, but found a type of '").concat(typeof e==="undefined"?"undefined":w(e),"' in the array"))}return!0})}function tx(e,t){t=l({caseSensitive:!1},t);var n=e+JSON.stringify(t);if(tS.has(n))return tS.get(n);var r=e[0]==="!";r&&(e=e.slice(1)),e=t_(e).replace(/\\\*/g,"[\\s\\S]*");var i=new RegExp("^".concat(e,"$"),t.caseSensitive?"":"i");return i.negated=r,tS.set(n,i),i}function tB(e,t,n,r){if(e=tk(e,"inputs"),t=tk(t,"patterns"),t.length===0)return[];t=t.map(function(e){return tx(e,n)});var i=n||{},o=i.allPatterns,a=[];var u=true,c=false,s=undefined;try{for(var f=e[Symbol.iterator](),d;!(u=(d=f.next()).done);u=true){var l=d.value;var h=void 0,p=g(t).fill(!1);var v=true,y=false,w=undefined;try{for(var b=t.entries()[Symbol.iterator](),_;!(v=(_=b.next()).done);v=true){var S=m(_.value,2),k=S[0],x=S[1];if(x.test(l)&&(p[k]=!0,h=!x.negated,!h))break}}catch(e){y=true;w=e}finally{try{if(!v&&b.return!=null){b.return()}}finally{if(y){throw w}}}if(!(h===!1||h===void 0&&t.some(function(e){return!e.negated})||o&&p.some(function(e,n){return!e&&!t[n].negated}))&&(a.push(l),r))break}}catch(e){c=true;s=e}finally{try{if(!u&&f.return!=null){f.return()}}finally{if(c){throw s}}}return a}L();var tE={id:"id",children:"children",pid:"pid"},tO=function(e){return Object.assign({},tE,e)};function tC(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};n=tO(n);var r=n.children,i=g(e);var o=true,a=false,u=undefined;try{for(var c=i[Symbol.iterator](),s;!(o=(s=c.next()).done);o=true){var f=s.value;var d;if(t(f))return f;f[r]&&(d=i).push.apply(d,g(f[r]))}}catch(e){a=true;u=e}finally{try{if(!o&&c.return!=null){c.return()}}finally{if(a){throw u}}}return null}function tA(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var r;n=tO(n);var i=n.children,o=g(e),a=[];var u=true,c=false,s=undefined;try{for(var f=o[Symbol.iterator](),d;!(u=(d=f.next()).done);u=true){var l=d.value;t(l)&&a.push(l),l[i]&&(r=o).push.apply(r,g(l[i]))}}catch(e){c=true;s=e}finally{try{if(!u&&f.return!=null){f.return()}}finally{if(c){throw s}}}return a}function tD(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};n=tO(n);var r=[],i=g(e),o=new Set,a=n.children;for(;i.length;){var u;var c=i[0];if(o.has(c))r.pop(),i.shift();else if(o.add(c),c[a]&&(u=i).unshift.apply(u,g(c[a])),r.push(c),t(c))return r}return null}function tz(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};n=tO(n);var r=[],i=g(e),o=[],a=new Set,u=n.children;for(;i.length;){var c;var s=i[0];a.has(s)?(r.pop(),i.shift()):(a.add(s),s[u]&&(c=i).unshift.apply(c,g(s[u])),r.push(s),t(s)&&o.push(g(r)))}return o}function tR(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};n=tO(n);var r=n.children;function i(e){return e.map(function(e){return l({},e)}).filter(function(e){return e[r]=e[r]&&i(e[r]),t(e)||e[r]&&e[r].length})}return i(e)}function tL(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};n=tO(n);var r=g(e),i=n.children;for(var o=0;o<r.length;o++){var a;if(t(r[o]))return;i&&r[o][i]&&(a=r).splice.apply(a,[o+1,0].concat(g(r[o][i])))}}function tM(e,t){return e.map(function(e){return tj(e,t)})}function tj(e,t){var n=t.children,r=n===void 0?"children":n,i=t.conversion;var o=Array.isArray(e[r])&&e[r].length>0,u=i(e)||{};return o?p(l({},u),a({},r,e[r].map(function(e){return tj(e,{children:r,conversion:i})}))):l({},u)}L();var tI=require("uuid");function tP(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.native,n=t===void 0?!0:t;var r,i;var o;return n?(o=(i=window.crypto)===null||i===void 0?void 0:(r=i.randomUUID)===null||r===void 0?void 0:r.call(i))!==null&&o!==void 0?o:(0,tI.v4)():(0,tI.v4)()}var tT=0;function tF(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";var t=Date.now(),n=Math.floor(Math.random()*1e9);return tT++,"".concat(e,"_").concat(n).concat(tT).concat(String(t))}0&&(module.exports={AesEncryption:AesEncryption,IfActivity:IfActivity,ResizeObserver:ResizeObserver,addClass:addClass,addLocationListener:addLocationListener,addResizeListener:addResizeListener,buildBEM:buildBEM,buildShortUUID:buildShortUUID,buildUUID:buildUUID,clearWorkerInterval:clearWorkerInterval,clearWorkerTimeout:clearWorkerTimeout,createBEM:createBEM,createNamespace:createNamespace,createSearchReg:createSearchReg,dataURLtoBlob:dataURLtoBlob,decodeByBase64:decodeByBase64,deepMerge:deepMerge,domOffEvent:domOffEvent,domOnEvent:domOnEvent,downloadByBase64:downloadByBase64,downloadByData:downloadByData,downloadByOnlineUrl:downloadByOnlineUrl,downloadByUrl:downloadByUrl,downloadPercent:downloadPercent,enableTransitions:enableTransitions,encryptByBase64:encryptByBase64,encryptByMd5:encryptByMd5,escapeStringRegexp:escapeStringRegexp,extendSlots:extendSlots,filterTree:filterTree,findNode:findNode,findNodeAll:findNodeAll,findPath:findPath,findPathAll:findPathAll,forEachTree:forEachTree,getActualWidthOfChars:getActualWidthOfChars,getBoundingClientRect:getBoundingClientRect,getRawRoute:getRawRoute,getSlot:getSlot,getViewportOffset:getViewportOffset,hackCss:hackCss,hasClass:hasClass,highlightHtml:highlightHtml,is:is,isBrowser:isBrowser,isChineseText:isChineseText,isChrome:isChrome,isClient:isClient,isIterableArray:isIterableArray,isMatch:isMatch,isNumeric:isNumeric,isObject:isObject,isPositiveInteger:isPositiveInteger,isSafari:isSafari,isServer:isServer,isSupportNativeEllipsis:isSupportNativeEllipsis,isSupportResizeObserver:isSupportResizeObserver,isUrl:isUrl,loadScript:loadScript,matcher:matcher,openWindow:openWindow,regexpMap:regexpMap,removeClass:removeClass,removeResizeListener:removeResizeListener,setCssVar:setCssVar,setObjToUrlParams:setObjToUrlParams,setWorkerInterval:setWorkerInterval,setWorkerTimeout:setWorkerTimeout,treeMap:treeMap,treeMapEach:treeMapEach,triggerWindowResize:triggerWindowResize,unloadScript:unloadScript,unsetAllProperty:unsetAllProperty,urlToBase64:urlToBase64,useRafThrottle:useRafThrottle,withInstall:withInstall});
|
|
1
|
+
var Le=Object.create;var L=Object.defineProperty,$e=Object.defineProperties,Ce=Object.getOwnPropertyDescriptor,Ae=Object.getOwnPropertyDescriptors,_e=Object.getOwnPropertyNames,I=Object.getOwnPropertySymbols,Te=Object.getPrototypeOf,J=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable;var ft=(t,e,r)=>e in t?L(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,m=(t,e)=>{for(var r in e||(e={}))J.call(e,r)&&ft(t,r,e[r]);if(I)for(var r of I(e))pt.call(e,r)&&ft(t,r,e[r]);return t},w=(t,e)=>$e(t,Ae(e));var ht=(t,e)=>{var r={};for(var n in t)J.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&I)for(var n of I(t))e.indexOf(n)<0&&pt.call(t,n)&&(r[n]=t[n]);return r};var De=(t,e)=>{for(var r in e)L(t,r,{get:e[r],enumerable:!0})},mt=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of _e(e))!J.call(t,s)&&s!==r&&L(t,s,{get:()=>e[s],enumerable:!(n=Ce(e,s))||n.enumerable});return t};var b=(t,e,r)=>(r=t!=null?Le(Te(t)):{},mt(e||!t||!t.__esModule?L(r,"default",{value:t,enumerable:!0}):r,t)),Ie=t=>mt(L({},"__esModule",{value:!0}),t);var Ze={};De(Ze,{AesEncryption:()=>N,IfActivity:()=>T,ResizeObserver:()=>j.default,addClass:()=>Nt,addLocationListener:()=>Kt,addResizeListener:()=>qt,buildBEM:()=>z,buildShortUUID:()=>ye,buildUUID:()=>we,clearWorkerInterval:()=>f.clearInterval,clearWorkerTimeout:()=>f.clearTimeout,createBEM:()=>Tt,createNamespace:()=>Dt,createSearchReg:()=>At,dataURLtoBlob:()=>tt,decodeByBase64:()=>Ot,deepMerge:()=>X,domOffEvent:()=>Wt,domOnEvent:()=>Ht,downloadByBase64:()=>rt,downloadByData:()=>nt,downloadByOnlineUrl:()=>Gt,downloadByUrl:()=>Qt,downloadPercent:()=>Xt,enableTransitions:()=>Et,encryptByBase64:()=>Ft,encryptByMd5:()=>Rt,escapeStringRegexp:()=>ct,extendSlots:()=>re,filterTree:()=>pe,findNode:()=>ue,findNodeAll:()=>de,findPath:()=>le,findPathAll:()=>fe,forEachTree:()=>he,getActualWidthOfChars:()=>_t,getBoundingClientRect:()=>V,getRawRoute:()=>Lt,getSlot:()=>ot,getViewportOffset:()=>Pt,hackCss:()=>jt,hasClass:()=>P,highlightHtml:()=>Vt,is:()=>K,isBrowser:()=>R,isChineseText:()=>vt,isChrome:()=>F,isClient:()=>k,isIterableArray:()=>B,isMatch:()=>ae,isNumeric:()=>yt,isObject:()=>$,isPositiveInteger:()=>wt,isSafari:()=>O,isServer:()=>C,isSupportNativeEllipsis:()=>xt,isSupportResizeObserver:()=>bt,isUrl:()=>gt,loadScript:()=>ne,matcher:()=>oe,openWindow:()=>U,regexpMap:()=>v,removeClass:()=>Mt,removeResizeListener:()=>Yt,setCssVar:()=>zt,setObjToUrlParams:()=>$t,setWorkerInterval:()=>f.setInterval,setWorkerTimeout:()=>f.setTimeout,titleCase:()=>xe.titleCase,treeMap:()=>me,treeMapEach:()=>W,triggerWindowResize:()=>Jt,unloadScript:()=>se,unsetAllProperty:()=>Ct,urlToBase64:()=>et,useRafThrottle:()=>Zt,withInstall:()=>St});module.exports=Ie(Ze);var xe=require("title-case");var h=require("lodash-es");var v={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 Be=Object.prototype.toString;function K(t,e){return Be.call(t)===`[object ${e}]`}function $(t){return t!==null&&K(t,"Object")}function gt(t){return v.url.test(t)}function B(t){return Array.isArray(t)&&t.length>0}function wt(t){return Number.isInteger(t)&&t>=0}function yt(t){return v.numeric.test(t)}var C=typeof window=="undefined",k=!C,F=k&&window.navigator.userAgent.toLowerCase().includes("chrome"),O=k&&window.navigator.userAgent.toLowerCase().includes("safari"),R=typeof window!="undefined"&&typeof document!="undefined",xt=R&&typeof document.body.style.lineClamp!="undefined",bt=R&&typeof ResizeObserver!="undefined",vt=t=>v.chinese.test(t),Et=()=>"startViewTransition"in document&&window.matchMedia("(prefers-reduced-motion: no-preference)").matches;var St=(t,e)=>{let r=t;return r.install=n=>{n.component(r.name||r.displayName,t),e&&(n.config.globalProperties[e]=t)},t};function Lt(t){if(!t)return t;let n=t,{matched:e}=n,r=ht(n,["matched"]);return w(m({},r),{matched:e?e.map(s=>({meta:s.meta,name:s.name,path:s.path})):void 0})}function U(t,e){let{target:r="__blank",noopener:n=!0,noreferrer:s=!0}=e||{},i=[];n&&i.push("noopener=yes"),s&&i.push("noreferrer=yes"),window.open(t,r,i.join(","))}function X(t,e,r="replace"){return e?t?(0,h.mergeWith)(t,e,(n,s)=>{if((0,h.isArray)(s)&&(0,h.isArray)(n))switch(r){case"union":return(0,h.unionWith)(n,s,h.isEqual);case"intersection":return(0,h.intersectionWith)(n,s,h.isEqual);case"concat":return n.concat(s);case"replace":return s;default:throw new Error(`Unknown merge array strategy: ${r}`)}if($(s)&&$(n))return X(n,s,r)}):e:t}function $t(t,e){if(!B(Object.keys(e)))return t;let r="";for(let n in e)r+=`${n}=${encodeURIComponent(e[n])}&`;return r=r.replace(/&$/,""),/\?$/.test(t)?t+r:t.replace(/\/?$/,"?")+r}function Ct(t){(0,h.isPlainObject)(t)&&Object.keys(t).forEach(e=>{Reflect.deleteProperty(t,e)})}function ke(t){return["$","(",")","*","+",".","[","]","?","\\","^","{","}","|"].includes(t)?`\\${t}`:t}function At(t){let r=["",...[...t].map(n=>ke(n)),""].join(".*");return new RegExp(r,"i")}function _t(t="",e={}){let{size:r=14,family:n=getComputedStyle(document.documentElement).getPropertyValue("--vxe-font-family")||"sans-serif"}=e,i=document.createElement("canvas").getContext("2d");i.font=`${r}px ${n}`;let o=i.measureText(t),a=Math.abs(o.actualBoundingBoxLeft)+Math.abs(o.actualBoundingBoxRight);return Math.ceil(Math.max(o.width,a))}function G(t,e){return e?typeof e=="string"?` ${t}--${e}`:Array.isArray(e)?e.reduce((r,n)=>r+G(t,n),""):Object.keys(e).reduce((r,n)=>r+(e[n]?G(t,n):""),""):""}function z(t){return(e,r)=>(e&&typeof e!="string"&&(r=e,e=""),e=e?`${t}__${e}`:t,`${e}${G(e,r)}`)}function Tt(t,e=""){return[z(`${e}-${t}`)]}function Dt(t,e=""){let r=`${e}-${t}`;return[r,z(r)]}var M=require("crypto-js/aes"),x=b(require("crypto-js/enc-utf8"),1),It=b(require("crypto-js/pad-pkcs7"),1),Bt=b(require("crypto-js/mode-ecb"),1),kt=b(require("crypto-js/md5"),1),Q=b(require("crypto-js/enc-base64"),1),N=class{constructor(e){let{key:r,iv:n}=e;r&&(this.key=(0,x.parse)(r)),n&&(this.iv=(0,x.parse)(n))}get getOptions(){return{mode:Bt.default,padding:It.default,iv:this.iv}}encryptByAES(e){return(0,M.encrypt)(e,this.key,this.getOptions).toString()}decryptByAES(e){return(0,M.decrypt)(e,this.key,this.getOptions).toString(x.default)}};function Ft(t){return x.default.parse(t).toString(Q.default)}function Ot(t){return Q.default.parse(t).toString(x.default)}function Rt(t){return(0,kt.default)(t).toString()}var Ut=require("lodash-es");var Fe=()=>document.documentElement;function V(t){return!t||!t.getBoundingClientRect?0:t.getBoundingClientRect()}function Oe(t){return(t||"").replace(/^\s+|\s+$/g,"")}function P(t,e){if(!t||!e)return!1;if(e.includes(" "))throw new Error("className should not contain space.");return t.classList?t.classList.contains(e):` ${t.className} `.includes(` ${e} `)}function zt(t,e,r){return r||(r=Fe()),r.style.setProperty(t,e),{prop:e}}function Nt(t,e){if(!t)return;let r=t.className,n=(e||"").split(" ");for(let s=0,i=n.length;s<i;s++){let o=n[s];o&&(t.classList?t.classList.add(o):P(t,o)||(r+=` ${o}`))}t.classList||(t.className=r)}function Mt(t,e){if(!t||!e)return;let r=e.split(" "),n=` ${t.className} `;for(let s=0,i=r.length;s<i;s++){let o=r[s];o&&(t.classList?t.classList.remove(o):P(t,o)&&(n=n.replace(` ${o} `," ")))}t.classList||(t.className=Oe(n))}function Pt(t){let e=document.documentElement,r=e.scrollLeft,n=e.scrollTop,s=e.clientLeft,i=e.clientTop,o=window.scrollX,a=window.scrollY,u=V(t);if(!u)return{};let{left:c,top:l,width:Z,height:D}=u,be=(o||r)-(s||0),ve=(a||n)-(i||0),Ee=c+o,Se=l+a,q=Ee-be,Y=Se-ve,dt=window.document.documentElement.clientWidth,lt=window.document.documentElement.clientHeight;return{left:q,top:Y,right:dt-Z-q,bottom:lt-D-Y,rightIncludeBody:dt-q,bottomIncludeBody:lt-Y}}function jt(t,e){let r=["webkit","Moz","ms","OT"],n={};return r.forEach(s=>{n[`${s}${(0,Ut.upperFirst)(t)}`]=e}),w(m({},n),{[t]:e})}function Ht(t,e,r){t&&e&&r&&t.addEventListener(e,r,!1)}function Wt(t,e,r){t&&e&&r&&t.removeEventListener(e,r,!1)}function Zt(t){let e=!1;return function(...r){e||(e=!0,window.requestAnimationFrame(()=>{t.apply(this,r),e=!1}))}}var j=b(require("resize-observer-polyfill"),1);function Re(t){for(let e of t){let r=e.target.__resizeListeners__||[];r.length&&r.forEach(n=>{n()})}}function qt(t,e){C||(t.__resizeListeners__||(t.__resizeListeners__=[],t.__ro__=new j.default(Re),t.__ro__.observe(t)),t.__resizeListeners__.push(e))}function Yt(t,e){!t||!t.__resizeListeners__||(t.__resizeListeners__.splice(t.__resizeListeners__.indexOf(e),1),t.__resizeListeners__.length||(t.__ro__.disconnect(),t.__ro__=null,t.__resizeListeners__=null))}function Jt(){let t=new Event("resize",{bubbles:!0,cancelable:!0});window.dispatchEvent(t)}function Kt(t,e={}){function r(n){let s=window.history[n];return function(...i){let o=new Event(n);return o.arguments=i,window.dispatchEvent(o),s.apply(this,i)}}return window.history.pushState=r("pushState"),window.history.replaceState=r("replaceState"),window.addEventListener("popstate",t,e),window.addEventListener("hashchange",t,e),window.addEventListener("replaceState",t,e),window.addEventListener("pushState",t,e),{removeListener:()=>{window.removeEventListener("popstate",t,e),window.removeEventListener("hashchange",t,e),window.removeEventListener("replaceState",t,e),window.removeEventListener("pushState",t,e)}}}var H=require("lodash-es");function tt(t){let e=t.split(","),n=e[0].match(/:(.*?);/)[1],s=window.atob(e[1]),i=s.length,o=new Uint8Array(i);for(;i--;)o[i]=s.charCodeAt(i);return new Blob([o],{type:n})}function et(t,e){return new Promise((r,n)=>{let s=document.createElement("CANVAS"),i=s.getContext("2d"),o=new Image;o.crossOrigin="",o.onload=function(){if(!s||!i)return n();s.height=o.height,s.width=o.width,i.drawImage(o,0,0);let a=s.toDataURL(e||"image/png");s=null,r(a)},o.src=t})}function Xt(t){let{loaded:e,total:r}=t;if(r<=0||(0,H.isNil)(r))return 0;let n=e/r;return(0,H.round)((n>1?1:n)*100)}function Gt(t,e,r,n){et(t).then(s=>{rt(s,e,r,n)})}function rt(t,e,r,n){let s=tt(t);nt(s,e,r,n)}function nt(t,e,r,n){let s=typeof n!="undefined"?[n,t]:[t],i=new Blob(s,{type:r||"application/octet-stream"});if(typeof window.navigator.msSaveBlob!="undefined")window.navigator.msSaveBlob(i,e);else{let o=window.URL.createObjectURL(i),a=document.createElement("a");a.style.display="none",a.href=o,a.setAttribute("download",e),typeof a.download=="undefined"&&a.setAttribute("target","_blank"),document.body.appendChild(a),a.click(),document.body.removeChild(a),window.URL.revokeObjectURL(o)}}function Qt({url:t,target:e="_blank",fileName:r}){if(/iP/.test(window.navigator.userAgent))return!1;if(F||O){let n=document.createElement("a");return n.href=t,n.download=r||t.substring(t.lastIndexOf("/")+1,t.length),n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n),!0}return t.includes("?")||(t+="?download"),U(t,{target:e}),!0}var Ue=(t,e,r="ig")=>{let n=new RegExp(e,r);return[...t.matchAll(n)].map(a=>({index:a.index,subString:a[0]}))};function ze(t){return t.replace(/([A-Z])/g,"-$1").toLowerCase()}var Ne=(t,e)=>{let r=t;if(!e)return r;let{tagName:n="mark",bgColor:s,color:i,style:o={},renderHighlightKeyword:a}=e;if(typeof a=="function")return a(t);o.backgroundColor=s,o.color=i;let c=`style="${Object.keys(o).map(l=>`${ze(l)}:${o[l]}`).join(";")}"`;return`<${n} ${c}>${r}</${n}>`},Me=(t,e)=>{let r="";return e.forEach(n=>{let{start:s,end:i,option:o}=n,a=t.slice(s,i),u=Ne(a,o);r+=u,n.subString=u}),r},Pe=(t,e)=>{let r=[];return e.forEach(n=>{let s={keyword:""};typeof n=="string"?s={keyword:n}:s=n;let{keyword:i,caseSensitive:o=!0}=s,a=Ue(t,i,o?"g":"gi"),u={keyword:i,indexList:a,option:s};r.push(u)}),r},je=(t,e)=>{let r=Pe(t,e),n=[],s=(o,a)=>{for(let u=0;u<n.length;u++){let c=n[u];if(o>c.start&&o<c.end||o+a>c.start&&o+a<c.end||c.start>o&&c.start<o+a||c.end>o&&c.end<o+a||o===c.start&&o+a===c.end)return-1;if(o+a<=c.start)return u}return n.length};r.forEach(({indexList:o,option:a})=>{o.forEach(u=>{let{index:c,subString:l}=u,Z={start:c,end:c+l.length,option:a},D=s(c,l.length);D!==-1&&n.splice(D,0,Z)})});let i=[];return n.forEach((o,a)=>{let{start:u,end:c}=o,l=n[a+1];a===0&&u>0&&i.push({start:0,end:u,subString:t.slice(0,u)}),i.push(w(m({},o),{subString:t.slice(u,c)})),(l==null?void 0:l.start)>c&&i.push({start:c,end:l.start,subString:t.slice(c,l.start)}),a===n.length-1&&c<t.length-1&&i.push({start:c,end:t.length-1,subString:t.slice(c,t.length)})}),i},Vt=(t,e)=>{let r=je(t,e);return{highText:Me(t,r),highList:r}};var f=require("worker-timers"),y="active",st="idle",te="hidden",E,A,_,g={},d={attach(t,e){g[t]||(g[t]=[]),g[t].push(e)},fire(t,e=[]){g[t]&&g[t].forEach(r=>{r(...e)})},remove(t,e){e||Reflect.deleteProperty(g,t),g[t]&&(g[t]=g[t].filter(r=>e!==r))},dom(t,e,r){return _||(t.addEventListener?_=(n,s,i)=>n.addEventListener(s,i,!1):typeof t.attachEvent=="function"?_=(n,s,i)=>n.attachEvent(`on${s}`,i,!1):_=(n,s,i)=>n[`on${s}`]=i),_(t,e,r)}},it=class{constructor(e,r,n){this.activity=e,this.seconds=r,this.callback=n,this.stopped=!1,this.start(),this.activity.on("statusChanged",s=>{this.stopped===!1&&(s.status===y?this.start():this.pause())})}start(){this.stopped=!1,(0,f.clearInterval)(this.token),this.token=(0,f.setInterval)(this.callback,this.seconds*1e3)}stop(){this.stopped=!0,(0,f.clearInterval)(this.token)}resume(){this.start()}pause(){this.stop()}},T=class{constructor(){if(this.status=y,this.timers=[],this.idleTime=3e4,this.isLegacyModeOn=!1,document.hidden!==void 0?(E="hidden",A="visibilitychange"):document.mozHidden!==void 0?(E="mozHidden",A="mozvisibilitychange"):document.msHidden!==void 0?(E="msHidden",A="msvisibilitychange"):document.webkitHidden!==void 0&&(E="webkitHidden",A="webkitvisibilitychange"),E===void 0)this.legacyMode();else{let e=()=>{document[E]?this.blur():this.focus()};e(),d.dom(document,A,e)}this.startIdleTimer(),this.trackIdleStatus()}legacyMode(){this.isLegacyModeOn||(d.dom(window,"blur",()=>this.blur()),d.dom(window,"focus",()=>this.focus()),this.isLegacyModeOn=!0)}startIdleTimer(e){e instanceof MouseEvent&&e.movementX===0&&e.movementY===0||(this.timers.map(f.clearTimeout),this.timers.length=0,this.status===st&&this.wakeUp(),this.idleStartedTime=+new Date,this.timers.push((0,f.setTimeout)(()=>{if(this.status===y||this.status===te)return this.idle()},this.idleTime)))}trackIdleStatus(){d.dom(document,"mousemove",this.startIdleTimer.bind(this)),d.dom(document,"mousedown",this.startIdleTimer.bind(this)),d.dom(document,"keyup",this.startIdleTimer.bind(this)),d.dom(document,"touchstart",this.startIdleTimer.bind(this)),d.dom(window,"scroll",this.startIdleTimer.bind(this)),this.focus(this.startIdleTimer.bind(this))}on(e,r){return d.attach(e,r),this}off(e,r){return d.remove(e,r),this}setIdleDuration(e){return this.idleTime=e*1e3,this.startIdleTimer(),this}getIdleDuration(){return this.idleTime}getIdleInfo(){let e=+new Date,r;if(this.status===st)r={isIdle:!0,idleFor:e-this.idleStartedTime,timeLeft:0,timeLeftPer:100};else{let n=this.idleStartedTime+this.idleTime-e;r={isIdle:!1,idleFor:e-this.idleStartedTime,timeLeft:n,timeLeftPer:Number.parseFloat((100-n*100/this.idleTime).toFixed(2))}}return r}idle(e){return e?this.on("idle",e):(this.status=st,d.fire("idle"),d.fire("statusChanged",[{status:this.status}])),this}blur(e){return e?this.on("blur",e):(this.status=te,d.fire("blur"),d.fire("statusChanged",[{status:this.status}])),this}focus(e){return e?this.on("focus",e):this.status!==y&&(this.status=y,d.fire("focus"),d.fire("wakeUp"),d.fire("statusChanged",[{status:this.status}])),this}wakeUp(e){return e?this.on("wakeUp",e):this.status!==y&&(this.status=y,d.fire("wakeUp"),d.fire("statusChanged",[{status:this.status}])),this}onEvery(e,r){return new it(this,e,r)}now(e){return e!==void 0?this.status===e:this.status===y}};var ee=require("lodash-es");function ot(t,e="default",r){if(!t||!Reflect.has(t,e)||!(0,ee.isFunction)(t[e]))return null;let n=t[e];return n?n(r):null}function re(t,e=[]){let r=Object.keys(t),n={};return r.forEach(s=>{if(e.includes(s))return null;n[s]=i=>ot(t,s,i)}),n}function ne(t,{type:e="text/javascript"}={}){return new Promise((r,n)=>{let s=!1,i=document.querySelector(`script[src="${t}"]`);if(!i)i=document.createElement("script"),i.type=e,i.async=!0,i.src=t,s=!0;else if(i.hasAttribute("data-loaded")){r({el:i});return}i.addEventListener("error",n),i.addEventListener("abort",n),i.addEventListener("load",()=>{i.setAttribute("data-loaded",!0),r({el:i})}),s&&document.head.appendChild(i)})}function se(t){return new Promise((e,r)=>{let n=document.querySelector(`script[src="${t}"]`);if(!n){r();return}document.head.removeChild(n),e()})}function oe(t,e,r){return ce(t,e,r,!1)}function ae(t,e,r){return ce(t,e,r,!0).length>0}function ct(t){return typeof t!="string"?t:t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var at=new Map;function ie(t,e){if(!Array.isArray(t))switch(typeof t){case"string":t=[t];break;case"undefined":t=[];break;default:throw new TypeError(`Expected '${e}' to be a string or an array, but got a type of '${typeof t}'`)}return t.filter(r=>{if(typeof r!="string"){if(typeof r=="undefined")return!1;throw new TypeError(`Expected '${e}' to be an array of strings, but found a type of '${typeof r}' in the array`)}return!0})}function He(t,e){e=m({caseSensitive:!1},e);let r=t+JSON.stringify(e);if(at.has(r))return at.get(r);let n=t[0]==="!";n&&(t=t.slice(1)),t=ct(t).replace(/\\\*/g,"[\\s\\S]*");let s=new RegExp(`^${t}$`,e.caseSensitive?"":"i");return s.negated=n,at.set(r,s),s}function ce(t,e,r,n){if(t=ie(t,"inputs"),e=ie(e,"patterns"),e.length===0)return[];e=e.map(o=>He(o,r));let{allPatterns:s}=r||{},i=[];for(let o of t){let a,u=[...e].fill(!1);for(let[c,l]of e.entries())if(l.test(o)&&(u[c]=!0,a=!l.negated,!a))break;if(!(a===!1||a===void 0&&e.some(c=>!c.negated)||s&&u.some((c,l)=>!c&&!e[l].negated))&&(i.push(o),n))break}return i}var We={id:"id",children:"children",pid:"pid"},S=t=>Object.assign({},We,t);function ue(t,e,r={}){r=S(r);let{children:n}=r,s=[...t];for(let i of s){if(e(i))return i;i[n]&&s.push(...i[n])}return null}function de(t,e,r={}){r=S(r);let{children:n}=r,s=[...t],i=[];for(let o of s)e(o)&&i.push(o),o[n]&&s.push(...o[n]);return i}function le(t,e,r={}){r=S(r);let n=[],s=[...t],i=new Set,{children:o}=r;for(;s.length;){let a=s[0];if(i.has(a))n.pop(),s.shift();else if(i.add(a),a[o]&&s.unshift(...a[o]),n.push(a),e(a))return n}return null}function fe(t,e,r={}){r=S(r);let n=[],s=[...t],i=[],o=new Set,{children:a}=r;for(;s.length;){let u=s[0];o.has(u)?(n.pop(),s.shift()):(o.add(u),u[a]&&s.unshift(...u[a]),n.push(u),e(u)&&i.push([...n]))}return i}function pe(t,e,r={}){r=S(r);let n=r.children;function s(i){return i.map(o=>m({},o)).filter(o=>(o[n]=o[n]&&s(o[n]),e(o)||o[n]&&o[n].length))}return s(t)}function he(t,e,r={}){r=S(r);let n=[...t],{children:s}=r;for(let i=0;i<n.length;i++){if(e(n[i]))return;s&&n[i][s]&&n.splice(i+1,0,...n[i][s])}}function me(t,e){return t.map(r=>W(r,e))}function W(t,{children:e="children",conversion:r}){let n=Array.isArray(t[e])&&t[e].length>0,s=r(t)||{};return n?w(m({},s),{[e]:t[e].map(i=>W(i,{children:e,conversion:r}))}):m({},s)}var ut=require("uuid");function we({native:t=!0}={}){var e,r,n;return t?(n=(r=(e=window.crypto)==null?void 0:e.randomUUID)==null?void 0:r.call(e))!=null?n:(0,ut.v4)():(0,ut.v4)()}var ge=0;function ye(t=""){let e=Date.now(),r=Math.floor(Math.random()*1e9);return ge++,`${t}_${r}${ge}${String(e)}`}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,regexpMap,removeClass,removeResizeListener,setCssVar,setObjToUrlParams,setWorkerInterval,setWorkerTimeout,titleCase,treeMap,treeMapEach,triggerWindowResize,unloadScript,unsetAllProperty,urlToBase64,useRafThrottle,withInstall});
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function e(e,t){if(t==null||t>e.length)t=e.length;for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function t(e){if(Array.isArray(e))return e}function n(t){if(Array.isArray(t))return e(t)}function r(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(e,r.key,r)}}function o(e,t,n){if(t)i(e.prototype,t);if(n)i(e,n);return e}function a(e,t,n){if(t in e){Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true})}else{e[t]=n}return e}function s(e,t){if(t!=null&&typeof Symbol!=="undefined"&&t[Symbol.hasInstance]){return!!t[Symbol.hasInstance](e)}else{return e instanceof t}}function u(e){if(typeof Symbol!=="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function c(e,t){var n=e==null?null:typeof Symbol!=="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(n==null)return;var r=[];var i=true;var o=false;var a,s;try{for(n=n.call(e);!(i=(a=n.next()).done);i=true){r.push(a.value);if(t&&r.length===t)break}}catch(e){o=true;s=e}finally{try{if(!i&&n["return"]!=null)n["return"]()}finally{if(o)throw s}}return r}function f(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};var r=Object.keys(n);if(typeof Object.getOwnPropertySymbols==="function"){r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))}r.forEach(function(t){a(e,t,n[t])})}return e}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);if(t){r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})}n.push.apply(n,r)}return n}function p(e,t){t=t!=null?t:{};if(Object.getOwnPropertyDescriptors){Object.defineProperties(e,Object.getOwnPropertyDescriptors(t))}else{h(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function v(e,t){if(e==null)return{};var n=y(e,t);var r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++){r=o[i];if(t.indexOf(r)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(e,r))continue;n[r]=e[r]}}return n}function y(e,t){if(e==null)return{};var n={};var r=Object.keys(e);var i,o;for(o=0;o<r.length;o++){i=r[o];if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function m(e,n){return t(e)||c(e,n)||b(e,n)||f()}function g(e){return n(e)||u(e)||b(e)||d()}function w(e){"@swc/helpers - typeof";return e&&typeof Symbol!=="undefined"&&e.constructor===Symbol?"symbol":typeof e}function b(t,n){if(!t)return;if(typeof t==="string")return e(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor)r=t.constructor.name;if(r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return e(t,n)}var _=Object.create;var S=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames;var E=Object.getPrototypeOf,B=Object.prototype.hasOwnProperty;var O=function(e){return(typeof require==="undefined"?"undefined":w(require))<"u"?require:(typeof Proxy==="undefined"?"undefined":w(Proxy))<"u"?new Proxy(e,{get:function(e,t){return((typeof require==="undefined"?"undefined":w(require))<"u"?require:e)[t]}}):e}(function(e){if((typeof require==="undefined"?"undefined":w(require))<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var C=function(e,t){return function(){return e&&(t=e(e=0)),t}};var A=function(e,t){return function(){return t||e((t={exports:{}}).exports,t),t.exports}};var D=function(e,t,n,r){var i=true,o=false,a=undefined;if(t&&(typeof t==="undefined"?"undefined":w(t))=="object"||typeof t=="function")try{var s=function(){var i=c.value;!B.call(e,i)&&i!==n&&S(e,i,{get:function(){return t[i]},enumerable:!(r=x(t,i))||r.enumerable})};for(var u=k(t)[Symbol.iterator](),c;!(i=(c=u.next()).done);i=true)s()}catch(e){o=true;a=e}finally{try{if(!i&&u.return!=null){u.return()}}finally{if(o){throw a}}}return e};var z=function(e,t,n){return n=e!=null?_(E(e)):{},D(t||!e||!e.__esModule?S(n,"default",{value:e,enumerable:!0}):n,e)};var j=C(function(){});var L=A(function(e,t){j();(function(n,r){(typeof e==="undefined"?"undefined":w(e))=="object"?t.exports=e=r():typeof define=="function"&&define.amd?define([],r):n.CryptoJS=r()})(e,function(){var e=e||function(e,t){var n;if((typeof window==="undefined"?"undefined":w(window))<"u"&&window.crypto&&(n=window.crypto),(typeof self==="undefined"?"undefined":w(self))<"u"&&self.crypto&&(n=self.crypto),(typeof globalThis==="undefined"?"undefined":w(globalThis))<"u"&&globalThis.crypto&&(n=globalThis.crypto),!n&&(typeof window==="undefined"?"undefined":w(window))<"u"&&window.msCrypto&&(n=window.msCrypto),!n&&(typeof global==="undefined"?"undefined":w(global))<"u"&&global.crypto&&(n=global.crypto),!n&&typeof O=="function")try{n=O("crypto")}catch(e){}var r=function e(){if(n){if(typeof n.getRandomValues=="function")try{return n.getRandomValues(new Uint32Array(1))[0]}catch(e){}if(typeof n.randomBytes=="function")try{return n.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),o={},a=o.lib={},s=a.Base=function(){return{extend:function e(e){var t=i(this);return e&&t.mixIn(e),(!t.hasOwnProperty("init")||this.init===t.init)&&(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function e(){var e=this.extend();return e.init.apply(e,arguments),e},init:function e(){},mixIn:function e(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function e(){return this.init.prototype.extend(this)}}}(),u=a.WordArray=s.extend({init:function e(e,n){e=this.words=e||[],n!=t?this.sigBytes=n:this.sigBytes=e.length*4},toString:function e(e){return(e||f).stringify(this)},concat:function e(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var o=0;o<i;o++){var a=n[o>>>2]>>>24-o%4*8&255;t[r+o>>>2]|=a<<24-(r+o)%4*8}else for(var s=0;s<i;s+=4)t[r+s>>>2]=n[s>>>2];return this.sigBytes+=i,this},clamp:function t(){var t=this.words,n=this.sigBytes;t[n>>>2]&=0xffffffff<<32-n%4*8,t.length=e.ceil(n/4)},clone:function e(){var e=s.clone.call(this);return e.words=this.words.slice(0),e},random:function e(e){for(var t=[],n=0;n<e;n+=4)t.push(r());return new u.init(t,e)}}),c=o.enc={},f=c.Hex={stringify:function e(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((o&15).toString(16))}return r.join("")},parse:function e(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new u.init(n,t/2)}},d=c.Latin1={stringify:function e(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function e(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(e.charCodeAt(r)&255)<<24-r%4*8;return new u.init(n,t)}},l=c.Utf8={stringify:function e(e){try{return decodeURIComponent(escape(d.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function e(e){return d.parse(unescape(encodeURIComponent(e)))}},h=a.BufferedBlockAlgorithm=s.extend({reset:function e(){this._data=new u.init,this._nDataBytes=0},_append:function e(e){typeof e=="string"&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function t(t){var n,r=this._data,i=r.words,o=r.sigBytes,a=this.blockSize,s=a*4,c=o/s;t?c=e.ceil(c):c=e.max((c|0)-this._minBufferSize,0);var f=c*a,d=e.min(f*4,o);if(f){for(var l=0;l<f;l+=a)this._doProcessBlock(i,l);n=i.splice(0,f),r.sigBytes-=d}return new u.init(n,d)},clone:function e(){var e=s.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),p=a.Hasher=h.extend({cfg:s.extend(),init:function e(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function e(){h.reset.call(this),this._doReset()},update:function e(e){return this._append(e),this._process(),this},finalize:function e(e){e&&this._append(e);var t=this._doFinalize();return t},blockSize:512/32,_createHelper:function e(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function e(e){return function(t,n){return new v.HMAC.init(e,n).finalize(t)}}}),v=o.algo={};return o}(Math);return e})});var P=A(function(e,t){j();(function(n,r){(typeof e==="undefined"?"undefined":w(e))=="object"?t.exports=e=r(L()):typeof define=="function"&&define.amd?define(["./core"],r):r(n.CryptoJS)})(e,function(e){return function(){var t=e,n=t.lib,r=n.WordArray,i=t.enc,o=i.Base64={stringify:function e(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var i=[],o=0;o<n;o+=3)for(var a=t[o>>>2]>>>24-o%4*8&255,s=t[o+1>>>2]>>>24-(o+1)%4*8&255,u=t[o+2>>>2]>>>24-(o+2)%4*8&255,c=a<<16|s<<8|u,f=0;f<4&&o+f*.75<n;f++)i.push(r.charAt(c>>>6*(3-f)&63));var d=r.charAt(64);if(d)for(;i.length%4;)i.push(d);return i.join("")},parse:function e(e){var t=e.length,n=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var i=0;i<n.length;i++)r[n.charCodeAt(i)]=i}var o=n.charAt(64);if(o){var s=e.indexOf(o);s!==-1&&(t=s)}return a(e,t,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function a(e,t,n){for(var i=[],o=0,a=0;a<t;a++)if(a%4){var s=n[e.charCodeAt(a-1)]<<a%4*2,u=n[e.charCodeAt(a)]>>>6-a%4*2,c=s|u;i[o>>>2]|=c<<24-o%4*8,o++}return r.create(i,o)}}(),e.enc.Base64})});var F=A(function(e,t){j();(function(n,r){(typeof e==="undefined"?"undefined":w(e))=="object"?t.exports=e=r(L()):typeof define=="function"&&define.amd?define(["./core"],r):r(n.CryptoJS)})(e,function(e){return function(t){var n=e,r=n.lib,i=r.WordArray,o=r.Hasher,a=n.algo,s=[];(function(){for(var e=0;e<64;e++)s[e]=t.abs(t.sin(e+1))*0x100000000|0})();var u=a.MD5=o.extend({_doReset:function e(){this._hash=new i.init([0x67452301,0xefcdab89,0x98badcfe,0x10325476])},_doProcessBlock:function e(e,t){for(var n=0;n<16;n++){var r=t+n,i=e[r];e[r]=(i<<8|i>>>24)&0xff00ff|(i<<24|i>>>8)&0xff00ff00}var o=this._hash.words,a=e[t+0],u=e[t+1],h=e[t+2],p=e[t+3],v=e[t+4],y=e[t+5],m=e[t+6],g=e[t+7],w=e[t+8],b=e[t+9],_=e[t+10],S=e[t+11],x=e[t+12],k=e[t+13],E=e[t+14],B=e[t+15],O=o[0],C=o[1],A=o[2],D=o[3];O=c(O,C,A,D,a,7,s[0]),D=c(D,O,C,A,u,12,s[1]),A=c(A,D,O,C,h,17,s[2]),C=c(C,A,D,O,p,22,s[3]),O=c(O,C,A,D,v,7,s[4]),D=c(D,O,C,A,y,12,s[5]),A=c(A,D,O,C,m,17,s[6]),C=c(C,A,D,O,g,22,s[7]),O=c(O,C,A,D,w,7,s[8]),D=c(D,O,C,A,b,12,s[9]),A=c(A,D,O,C,_,17,s[10]),C=c(C,A,D,O,S,22,s[11]),O=c(O,C,A,D,x,7,s[12]),D=c(D,O,C,A,k,12,s[13]),A=c(A,D,O,C,E,17,s[14]),C=c(C,A,D,O,B,22,s[15]),O=f(O,C,A,D,u,5,s[16]),D=f(D,O,C,A,m,9,s[17]),A=f(A,D,O,C,S,14,s[18]),C=f(C,A,D,O,a,20,s[19]),O=f(O,C,A,D,y,5,s[20]),D=f(D,O,C,A,_,9,s[21]),A=f(A,D,O,C,B,14,s[22]),C=f(C,A,D,O,v,20,s[23]),O=f(O,C,A,D,b,5,s[24]),D=f(D,O,C,A,E,9,s[25]),A=f(A,D,O,C,p,14,s[26]),C=f(C,A,D,O,w,20,s[27]),O=f(O,C,A,D,k,5,s[28]),D=f(D,O,C,A,h,9,s[29]),A=f(A,D,O,C,g,14,s[30]),C=f(C,A,D,O,x,20,s[31]),O=d(O,C,A,D,y,4,s[32]),D=d(D,O,C,A,w,11,s[33]),A=d(A,D,O,C,S,16,s[34]),C=d(C,A,D,O,E,23,s[35]),O=d(O,C,A,D,u,4,s[36]),D=d(D,O,C,A,v,11,s[37]),A=d(A,D,O,C,g,16,s[38]),C=d(C,A,D,O,_,23,s[39]),O=d(O,C,A,D,k,4,s[40]),D=d(D,O,C,A,a,11,s[41]),A=d(A,D,O,C,p,16,s[42]),C=d(C,A,D,O,m,23,s[43]),O=d(O,C,A,D,b,4,s[44]),D=d(D,O,C,A,x,11,s[45]),A=d(A,D,O,C,B,16,s[46]),C=d(C,A,D,O,h,23,s[47]),O=l(O,C,A,D,a,6,s[48]),D=l(D,O,C,A,g,10,s[49]),A=l(A,D,O,C,E,15,s[50]),C=l(C,A,D,O,y,21,s[51]),O=l(O,C,A,D,x,6,s[52]),D=l(D,O,C,A,p,10,s[53]),A=l(A,D,O,C,_,15,s[54]),C=l(C,A,D,O,u,21,s[55]),O=l(O,C,A,D,w,6,s[56]),D=l(D,O,C,A,B,10,s[57]),A=l(A,D,O,C,m,15,s[58]),C=l(C,A,D,O,k,21,s[59]),O=l(O,C,A,D,v,6,s[60]),D=l(D,O,C,A,S,10,s[61]),A=l(A,D,O,C,h,15,s[62]),C=l(C,A,D,O,b,21,s[63]),o[0]=o[0]+O|0,o[1]=o[1]+C|0,o[2]=o[2]+A|0,o[3]=o[3]+D|0},_doFinalize:function e(){var e=this._data,n=e.words,r=this._nDataBytes*8,i=e.sigBytes*8;n[i>>>5]|=128<<24-i%32;var o=t.floor(r/0x100000000),a=r;n[(i+64>>>9<<4)+15]=(o<<8|o>>>24)&0xff00ff|(o<<24|o>>>8)&0xff00ff00,n[(i+64>>>9<<4)+14]=(a<<8|a>>>24)&0xff00ff|(a<<24|a>>>8)&0xff00ff00,e.sigBytes=(n.length+1)*4,this._process();for(var s=this._hash,u=s.words,c=0;c<4;c++){var f=u[c];u[c]=(f<<8|f>>>24)&0xff00ff|(f<<24|f>>>8)&0xff00ff00}return s},clone:function e(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,n,r,i,o,a){var s=e+(t&n|~t&r)+i+a;return(s<<o|s>>>32-o)+t}function f(e,t,n,r,i,o,a){var s=e+(t&r|n&~r)+i+a;return(s<<o|s>>>32-o)+t}function d(e,t,n,r,i,o,a){var s=e+(t^n^r)+i+a;return(s<<o|s>>>32-o)+t}function l(e,t,n,r,i,o,a){var s=e+(n^(t|~r))+i+a;return(s<<o|s>>>32-o)+t}n.MD5=o._createHelper(u),n.HmacMD5=o._createHmacHelper(u)}(Math),e.MD5})});var M=A(function(e,t){j();(function(n,r){(typeof e==="undefined"?"undefined":w(e))=="object"?t.exports=e=r(L()):typeof define=="function"&&define.amd?define(["./core"],r):r(n.CryptoJS)})(e,function(e){return function(){var t=e,n=t.lib,r=n.WordArray,i=n.Hasher,o=t.algo,a=[],s=o.SHA1=i.extend({_doReset:function e(){this._hash=new r.init([0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0])},_doProcessBlock:function e(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],s=n[3],u=n[4],c=0;c<80;c++){if(c<16)a[c]=e[t+c]|0;else{var f=a[c-3]^a[c-8]^a[c-14]^a[c-16];a[c]=f<<1|f>>>31}var d=(r<<5|r>>>27)+u+a[c];c<20?d+=(i&o|~i&s)+0x5a827999:c<40?d+=(i^o^s)+0x6ed9eba1:c<60?d+=(i&o|i&s|o&s)-0x70e44324:d+=(i^o^s)-0x359d3e2a,u=s,s=o,o=i<<30|i>>>2,i=r,r=d}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+u|0},_doFinalize:function e(){var e=this._data,t=e.words,n=this._nDataBytes*8,r=e.sigBytes*8;return t[r>>>5]|=128<<24-r%32,t[(r+64>>>9<<4)+14]=Math.floor(n/0x100000000),t[(r+64>>>9<<4)+15]=n,e.sigBytes=t.length*4,this._process(),this._hash},clone:function e(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA1=i._createHelper(s),t.HmacSHA1=i._createHmacHelper(s)}(),e.SHA1})});var R=A(function(e,t){j();(function(n,r){(typeof e==="undefined"?"undefined":w(e))=="object"?t.exports=e=r(L()):typeof define=="function"&&define.amd?define(["./core"],r):r(n.CryptoJS)})(e,function(e){(function(){var t=e,n=t.lib,r=n.Base,i=t.enc,o=i.Utf8,a=t.algo,s=a.HMAC=r.extend({init:function e(e,t){e=this._hasher=new e.init,typeof t=="string"&&(t=o.parse(t));var n=e.blockSize,r=n*4;t.sigBytes>r&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),a=this._iKey=t.clone(),s=i.words,u=a.words,c=0;c<n;c++)s[c]^=0x5c5c5c5c,u[c]^=0x36363636;i.sigBytes=a.sigBytes=r,this.reset()},reset:function e(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function e(e){return this._hasher.update(e),this},finalize:function e(e){var t=this._hasher,n=t.finalize(e);t.reset();var r=t.finalize(this._oKey.clone().concat(n));return r}})})()})});var I=A(function(e,t){j();(function(n,r,i){(typeof e==="undefined"?"undefined":w(e))=="object"?t.exports=e=r(L(),M(),R()):typeof define=="function"&&define.amd?define(["./core","./sha1","./hmac"],r):r(n.CryptoJS)})(e,function(e){return function(){var t=e,n=t.lib,r=n.Base,i=n.WordArray,o=t.algo,a=o.MD5,s=o.EvpKDF=r.extend({cfg:r.extend({keySize:128/32,hasher:a,iterations:1}),init:function e(e){this.cfg=this.cfg.extend(e)},compute:function e(e,t){for(var n,r=this.cfg,o=r.hasher.create(),a=i.create(),s=a.words,u=r.keySize,c=r.iterations;s.length<u;){n&&o.update(n),n=o.update(e).finalize(t),o.reset();for(var f=1;f<c;f++)n=o.finalize(n),o.reset();a.concat(n)}return a.sigBytes=u*4,a}});t.EvpKDF=function(e,t,n){return s.create(n).compute(e,t)}}(),e.EvpKDF})});var T=A(function(e,t){j();(function(n,r,i){(typeof e==="undefined"?"undefined":w(e))=="object"?t.exports=e=r(L(),I()):typeof define=="function"&&define.amd?define(["./core","./evpkdf"],r):r(n.CryptoJS)})(e,function(e){e.lib.Cipher||function(t){var n=e,r=n.lib,i=r.Base,o=r.WordArray,a=r.BufferedBlockAlgorithm,s=n.enc,u=s.Utf8,c=s.Base64,f=n.algo,d=f.EvpKDF,l=r.Cipher=a.extend({cfg:i.extend(),createEncryptor:function e(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function e(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function e(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function e(){a.reset.call(this),this._doReset()},process:function e(e){return this._append(e),this._process()},finalize:function e(e){e&&this._append(e);var t=this._doFinalize();return t},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return typeof e=="string"?B:x}return function(t){return{encrypt:function n(n,r,i){return e(r).encrypt(t,n,r,i)},decrypt:function n(n,r,i){return e(r).decrypt(t,n,r,i)}}}}()}),h=r.StreamCipher=l.extend({_doFinalize:function e(){var e=this._process(!0);return e},blockSize:1}),p=n.mode={},v=r.BlockCipherMode=i.extend({createEncryptor:function e(e,t){return this.Encryptor.create(e,t)},createDecryptor:function e(e,t){return this.Decryptor.create(e,t)},init:function e(e,t){this._cipher=e,this._iv=t}}),y=p.CBC=function(){var e=v.extend();e.Encryptor=e.extend({processBlock:function e(e,t){var r=this._cipher,i=r.blockSize;n.call(this,e,t,i),r.encryptBlock(e,t),this._prevBlock=e.slice(t,t+i)}}),e.Decryptor=e.extend({processBlock:function e(e,t){var r=this._cipher,i=r.blockSize,o=e.slice(t,t+i);r.decryptBlock(e,t),n.call(this,e,t,i),this._prevBlock=o}});function n(e,n,r){var i,o=this._iv;o?(i=o,this._iv=t):i=this._prevBlock;for(var a=0;a<r;a++)e[n+a]^=i[a]}return e}(),m=n.pad={},g=m.Pkcs7={pad:function e(e,t){for(var n=t*4,r=n-e.sigBytes%n,i=r<<24|r<<16|r<<8|r,a=[],s=0;s<r;s+=4)a.push(i);var u=o.create(a,r);e.concat(u)},unpad:function e(e){var t=e.words[e.sigBytes-1>>>2]&255;e.sigBytes-=t}},w=r.BlockCipher=l.extend({cfg:l.cfg.extend({mode:y,padding:g}),reset:function e(){var e;l.reset.call(this);var t=this.cfg,n=t.iv,r=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=r.createEncryptor:(e=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(r,this,n&&n.words),this._mode.__creator=e)},_doProcessBlock:function e(e,t){this._mode.processBlock(e,t)},_doFinalize:function e(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:128/32}),b=r.CipherParams=i.extend({init:function e(e){this.mixIn(e)},toString:function e(e){return(e||this.formatter).stringify(this)}}),_=n.format={},S=_.OpenSSL={stringify:function e(e){var t,n=e.ciphertext,r=e.salt;return r?t=o.create([0x53616c74,0x65645f5f]).concat(r).concat(n):t=n,t.toString(c)},parse:function e(e){var t,n=c.parse(e),r=n.words;return r[0]==0x53616c74&&r[1]==0x65645f5f&&(t=o.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),b.create({ciphertext:n,salt:t})}},x=r.SerializableCipher=i.extend({cfg:i.extend({format:S}),encrypt:function e(e,t,n,r){r=this.cfg.extend(r);var i=e.createEncryptor(n,r),o=i.finalize(t),a=i.cfg;return b.create({ciphertext:o,key:n,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function e(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var i=e.createDecryptor(n,r).finalize(t.ciphertext);return i},_parse:function e(e,t){return typeof e=="string"?t.parse(e,this):e}}),k=n.kdf={},E=k.OpenSSL={execute:function e(e,t,n,r,i){if(r||(r=o.random(64/8)),i)var a=d.create({keySize:t+n,hasher:i}).compute(e,r);else var a=d.create({keySize:t+n}).compute(e,r);var s=o.create(a.words.slice(t),n*4);return a.sigBytes=t*4,b.create({key:a,iv:s,salt:r})}},B=r.PasswordBasedCipher=x.extend({cfg:x.cfg.extend({kdf:E}),encrypt:function e(e,t,n,r){r=this.cfg.extend(r);var i=r.kdf.execute(n,e.keySize,e.ivSize,r.salt,r.hasher);r.iv=i.iv;var o=x.encrypt.call(this,e,t,i.key,r);return o.mixIn(i),o},decrypt:function e(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var i=r.kdf.execute(n,e.keySize,e.ivSize,t.salt,r.hasher);r.iv=i.iv;var o=x.decrypt.call(this,e,t,i.key,r);return o}})}()})});var U=A(function(e,t){j();(function(n,r,i){(typeof e==="undefined"?"undefined":w(e))=="object"?t.exports=e=r(L(),P(),F(),I(),T()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],r):r(n.CryptoJS)})(e,function(e){return function(){var t=e,n=t.lib,r=n.BlockCipher,i=t.algo,o=[],a=[],s=[],u=[],c=[],f=[],d=[],l=[],h=[],p=[];(function(){for(var e=[],t=0;t<256;t++)t<128?e[t]=t<<1:e[t]=t<<1^283;for(var n=0,r=0,t=0;t<256;t++){var i=r^r<<1^r<<2^r<<3^r<<4;i=i>>>8^i&255^99,o[n]=i,a[i]=n;var v=e[n],y=e[v],m=e[y],g=e[i]*257^i*0x1010100;s[n]=g<<24|g>>>8,u[n]=g<<16|g>>>16,c[n]=g<<8|g>>>24,f[n]=g;var g=m*0x1010101^y*65537^v*257^n*0x1010100;d[i]=g<<24|g>>>8,l[i]=g<<16|g>>>16,h[i]=g<<8|g>>>24,p[i]=g,n?(n=v^e[e[e[m^v]]],r^=e[e[r]]):n=r=1}})();var v=[0,1,2,4,8,16,32,64,128,27,54],y=i.AES=r.extend({_doReset:function e(){var e;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var t=this._keyPriorReset=this._key,n=t.words,r=t.sigBytes/4,i=this._nRounds=r+6,a=(i+1)*4,s=this._keySchedule=[],u=0;u<a;u++)u<r?s[u]=n[u]:(e=s[u-1],u%r?r>6&&u%r==4&&(e=o[e>>>24]<<24|o[e>>>16&255]<<16|o[e>>>8&255]<<8|o[e&255]):(e=e<<8|e>>>24,e=o[e>>>24]<<24|o[e>>>16&255]<<16|o[e>>>8&255]<<8|o[e&255],e^=v[u/r|0]<<24),s[u]=s[u-r]^e);for(var c=this._invKeySchedule=[],f=0;f<a;f++){var u=a-f;if(f%4)var e=s[u];else var e=s[u-4];f<4||u<=4?c[f]=e:c[f]=d[o[e>>>24]]^l[o[e>>>16&255]]^h[o[e>>>8&255]]^p[o[e&255]]}}},encryptBlock:function e(e,t){this._doCryptBlock(e,t,this._keySchedule,s,u,c,f,o)},decryptBlock:function e(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,d,l,h,p,a);var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function e(e,t,n,r,i,o,a,s){for(var u=this._nRounds,c=e[t]^n[0],f=e[t+1]^n[1],d=e[t+2]^n[2],l=e[t+3]^n[3],h=4,p=1;p<u;p++){var v=r[c>>>24]^i[f>>>16&255]^o[d>>>8&255]^a[l&255]^n[h++],y=r[f>>>24]^i[d>>>16&255]^o[l>>>8&255]^a[c&255]^n[h++],m=r[d>>>24]^i[l>>>16&255]^o[c>>>8&255]^a[f&255]^n[h++],g=r[l>>>24]^i[c>>>16&255]^o[f>>>8&255]^a[d&255]^n[h++];c=v,f=y,d=m,l=g}var v=(s[c>>>24]<<24|s[f>>>16&255]<<16|s[d>>>8&255]<<8|s[l&255])^n[h++],y=(s[f>>>24]<<24|s[d>>>16&255]<<16|s[l>>>8&255]<<8|s[c&255])^n[h++],m=(s[d>>>24]<<24|s[l>>>16&255]<<16|s[c>>>8&255]<<8|s[f&255])^n[h++],g=(s[l>>>24]<<24|s[c>>>16&255]<<16|s[f>>>8&255]<<8|s[d&255])^n[h++];e[t]=v,e[t+1]=y,e[t+2]=m,e[t+3]=g},keySize:256/32});t.AES=r._createHelper(y)}(),e.AES})});var H=A(function(e,t){j();(function(n,r){(typeof e==="undefined"?"undefined":w(e))=="object"?t.exports=e=r(L()):typeof define=="function"&&define.amd?define(["./core"],r):r(n.CryptoJS)})(e,function(e){return e.enc.Utf8})});var $=A(function(e,t){j();(function(n,r,i){(typeof e==="undefined"?"undefined":w(e))=="object"?t.exports=e=r(L(),T()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],r):r(n.CryptoJS)})(e,function(e){return e.pad.Pkcs7})});var N=A(function(e,t){j();(function(n,r,i){(typeof e==="undefined"?"undefined":w(e))=="object"?t.exports=e=r(L(),T()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],r):r(n.CryptoJS)})(e,function(e){return e.mode.ECB=function(){var t=e.lib.BlockCipherMode.extend();return t.Encryptor=t.extend({processBlock:function e(e,t){this._cipher.encryptBlock(e,t)}}),t.Decryptor=t.extend({processBlock:function e(e,t){this._cipher.decryptBlock(e,t)}}),t}(),e.mode.ECB})});j();j();import{isPlainObject as W,mergeWith as J,isArray as q,isEqual as K,intersectionWith as X,unionWith as V}from"lodash-es";j();j();var Z={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 Y=Object.prototype.toString;function G(e,t){return Y.call(e)==="[object ".concat(t,"]")}function Q(e){return e!==null&&G(e,"Object")}function ee(e){return Z.url.test(e)}function et(e){return Array.isArray(e)&&e.length>0}function en(e){return Number.isInteger(e)&&e>=0}function er(e){return Z.numeric.test(e)}var ei=(typeof window==="undefined"?"undefined":w(window))>"u",eo=!ei,ea=eo&&window.navigator.userAgent.toLowerCase().includes("chrome"),es=eo&&window.navigator.userAgent.toLowerCase().includes("safari"),eu=(typeof window==="undefined"?"undefined":w(window))<"u"&&(typeof document==="undefined"?"undefined":w(document))<"u",ec=eu&&w(document.body.style.lineClamp)<"u",ef=eu&&(typeof ResizeObserver==="undefined"?"undefined":w(ResizeObserver))<"u",ed=function(e){return Z.chinese.test(e)},el=function(){return"startViewTransition"in document&&window.matchMedia("(prefers-reduced-motion: no-preference)").matches};var eh=function(e,t){var n=e;return n.install=function(r){r.component(n.name||n.displayName,e),t&&(r.config.globalProperties[t]=e)},e};function ep(e){if(!e)return e;var t=e.matched,n=v(e,["matched"]);return p(l({},n),{matched:t?t.map(function(e){return{meta:e.meta,name:e.name,path:e.path}}):void 0})}function ev(e,t){var n=t||{},r=n.target,i=r===void 0?"__blank":r,o=n.noopener,a=o===void 0?!0:o,s=n.noreferrer,u=s===void 0?!0:s,c=[];a&&c.push("noopener=yes"),u&&c.push("noreferrer=yes"),window.open(e,i,c.join(","))}function ey(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"replace";return t?e?J(e,t,function(e,t){if(q(t)&&q(e))switch(n){case"union":return V(e,t,K);case"intersection":return X(e,t,K);case"concat":return e.concat(t);case"replace":return t;default:throw new Error("Unknown merge array strategy: ".concat(n))}if(Q(t)&&Q(e))return ey(e,t,n)}):t:e}function em(e,t){if(!et(Object.keys(t)))return e;var n="";for(var r in t)n+="".concat(r,"=").concat(encodeURIComponent(t[r]),"&");return n=n.replace(/&$/,""),/\?$/.test(e)?e+n:e.replace(/\/?$/,"?")+n}function eg(e){W(e)&&Object.keys(e).forEach(function(t){Reflect.deleteProperty(e,t)})}function ew(e){return["$","(",")","*","+",".","[","]","?","\\","^","{","}","|"].includes(e)?"\\".concat(e):e}function eb(e){var t=[""].concat(g(g(e).map(function(e){return ew(e)})),[""]).join(".*");return new RegExp(t,"i")}function e_(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};var n=t.size,r=n===void 0?14:n,i=t.family,o=i===void 0?getComputedStyle(document.documentElement).getPropertyValue("--vxe-font-family")||"sans-serif":i,a=document.createElement("canvas").getContext("2d");a.font="".concat(r,"px ").concat(o);var s=a.measureText(e),u=Math.abs(s.actualBoundingBoxLeft)+Math.abs(s.actualBoundingBoxRight);return Math.ceil(Math.max(s.width,u))}j();function eS(e,t){return t?typeof t=="string"?" ".concat(e,"--").concat(t):Array.isArray(t)?t.reduce(function(t,n){return t+eS(e,n)},""):Object.keys(t).reduce(function(n,r){return n+(t[r]?eS(e,r):"")},""):""}function ex(e){return function(t,n){return t&&typeof t!="string"&&(n=t,t=""),t=t?"".concat(e,"__").concat(t):e,"".concat(t).concat(eS(t,n))}}function ek(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return[ex("".concat(t,"-").concat(e))]}function eE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";var n="".concat(t,"-").concat(e);return[n,ex(n)]}j();var eB=z(U(),1),eO=z(H(),1),eC=z($(),1),eA=z(N(),1),eD=z(F(),1),ez=z(P(),1),ej=/*#__PURE__*/function(){"use strict";function e(t){r(this,e);var n=t.key,i=t.iv;n&&(this.key=(0,eO.parse)(n)),i&&(this.iv=(0,eO.parse)(i))}o(e,[{key:"getOptions",get:function e(){return{mode:eA.default,padding:eC.default,iv:this.iv}}},{key:"encryptByAES",value:function e(e){return(0,eB.encrypt)(e,this.key,this.getOptions).toString()}},{key:"decryptByAES",value:function e(e){return(0,eB.decrypt)(e,this.key,this.getOptions).toString(eO.default)}}]);return e}();function eL(e){return eO.default.parse(e).toString(ez.default)}function eP(e){return ez.default.parse(e).toString(eO.default)}function eF(e){return(0,eD.default)(e).toString()}j();import{upperFirst as eM}from"lodash-es";var eR=function(){return document.documentElement};function eI(e){return!e||!e.getBoundingClientRect?0:e.getBoundingClientRect()}function eT(e){return(e||"").replace(/^\s+|\s+$/g,"")}function eU(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):" ".concat(e.className," ").includes(" ".concat(t," "))}function eH(e,t,n){return n||(n=eR()),n.style.setProperty(e,t),{prop:t}}function e$(e,t){if(!e)return;var n=e.className,r=(t||"").split(" ");for(var i=0,o=r.length;i<o;i++){var a=r[i];a&&(e.classList?e.classList.add(a):eU(e,a)||(n+=" ".concat(a)))}e.classList||(e.className=n)}function eN(e,t){if(!e||!t)return;var n=t.split(" "),r=" ".concat(e.className," ");for(var i=0,o=n.length;i<o;i++){var a=n[i];a&&(e.classList?e.classList.remove(a):eU(e,a)&&(r=r.replace(" ".concat(a," ")," ")))}e.classList||(e.className=eT(r))}function eW(e){var t=document.documentElement,n=t.scrollLeft,r=t.scrollTop,i=t.clientLeft,o=t.clientTop,a=window.scrollX,s=window.scrollY,u=eI(e);if(!u)return{};var c=u.left,f=u.top,d=u.width,l=u.height,h=(a||n)-(i||0),p=(s||r)-(o||0),v=c+a,y=f+s,m=v-h,g=y-p,w=window.document.documentElement.clientWidth,b=window.document.documentElement.clientHeight;return{left:m,top:g,right:w-d-m,bottom:b-l-g,rightIncludeBody:w-m,bottomIncludeBody:b-g}}function eJ(e,t){var n=["webkit","Moz","ms","OT"],r={};return n.forEach(function(n){r["".concat(n).concat(eM(e))]=t}),p(l({},r),a({},e,t))}function eq(e,t,n){e&&t&&n&&e.addEventListener(t,n,!1)}function eK(e,t,n){e&&t&&n&&e.removeEventListener(t,n,!1)}function eX(e){var t=!1;return function(){var n=this;for(var r=arguments.length,i=new Array(r),o=0;o<r;o++){i[o]=arguments[o]}t||(t=!0,window.requestAnimationFrame(function(){e.apply(n,i),t=!1}))}}j();import eV from"resize-observer-polyfill";function eZ(e){var t=true,n=false,r=undefined;try{for(var i=e[Symbol.iterator](),o;!(t=(o=i.next()).done);t=true){var a=o.value;var s=a.target.__resizeListeners__||[];s.length&&s.forEach(function(e){e()})}}catch(e){n=true;r=e}finally{try{if(!t&&i.return!=null){i.return()}}finally{if(n){throw r}}}}function eY(e,t){ei||(e.__resizeListeners__||(e.__resizeListeners__=[],e.__ro__=new eV(eZ),e.__ro__.observe(e)),e.__resizeListeners__.push(t))}function eG(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 eQ(){var e=new Event("resize",{bubbles:!0,cancelable:!0});window.dispatchEvent(e)}function e0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};function n(e){var t=window.history[e];return function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++){r[i]=arguments[i]}var o=new Event(e);return o.arguments=r,window.dispatchEvent(o),t.apply(this,r)}}return window.history.pushState=n("pushState"),window.history.replaceState=n("replaceState"),window.addEventListener("popstate",e,t),window.addEventListener("hashchange",e,t),window.addEventListener("replaceState",e,t),window.addEventListener("pushState",e,t),{removeListener:function(){window.removeEventListener("popstate",e,t),window.removeEventListener("hashchange",e,t),window.removeEventListener("replaceState",e,t),window.removeEventListener("pushState",e,t)}}}j();import{round as e1,isNil as e2}from"lodash-es";function e4(e){var t=e.split(","),n=t[0].match(/:(.*?);/)[1],r=window.atob(t[1]),i=r.length,o=new Uint8Array(i);for(;i--;)o[i]=r.charCodeAt(i);return new Blob([o],{type:n})}function e5(e,t){return new Promise(function(n,r){var i=document.createElement("CANVAS"),o=i.getContext("2d"),a=new Image;a.crossOrigin="",a.onload=function(){if(!i||!o)return r();i.height=a.height,i.width=a.width,o.drawImage(a,0,0);var e=i.toDataURL(t||"image/png");i=null,n(e)},a.src=e})}function e6(e){var t=e.loaded,n=e.total;if(n<=0||e2(n))return 0;var r=t/n;return e1((r>1?1:r)*100)}function e8(e,t,n,r){e5(e).then(function(e){e3(e,t,n,r)})}function e3(e,t,n,r){var i=e4(e);e9(i,t,n,r)}function e9(e,t,n,r){var i=(typeof r==="undefined"?"undefined":w(r))<"u"?[r,e]:[e],o=new Blob(i,{type:n||"application/octet-stream"});if(w(window.navigator.msSaveBlob)<"u")window.navigator.msSaveBlob(o,t);else{var a=window.URL.createObjectURL(o),s=document.createElement("a");s.style.display="none",s.href=a,s.setAttribute("download",t),w(s.download)>"u"&&s.setAttribute("target","_blank"),document.body.appendChild(s),s.click(),document.body.removeChild(s),window.URL.revokeObjectURL(a)}}function e7(e){var t=e.url,n=e.target,r=n===void 0?"_blank":n,i=e.fileName;if(/iP/.test(window.navigator.userAgent))return!1;if(ea||es){var o=document.createElement("a");return o.href=t,o.download=i||t.substring(t.lastIndexOf("/")+1,t.length),o.style.display="none",document.body.appendChild(o),o.click(),document.body.removeChild(o),!0}return t.includes("?")||(t+="?download"),ev(t,{target:r}),!0}j();var te=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"ig";var r=new RegExp(t,n);return g(e.matchAll(r)).map(function(e){return{index:e.index,subString:e[0]}})};function tt(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}var tn=function(e,t){var n=e;if(!t)return n;var r=t.tagName,i=r===void 0?"mark":r,o=t.bgColor,a=t.color,s=t.style,u=s===void 0?{}:s,c=t.renderHighlightKeyword;if(typeof c=="function")return c(e);u.backgroundColor=o,u.color=a;var f='style="'.concat(Object.keys(u).map(function(e){return"".concat(tt(e),":").concat(u[e])}).join(";"),'"');return"<".concat(i," ").concat(f,">").concat(n,"</").concat(i,">")},tr=function(e,t){var n="";return t.forEach(function(t){var r=t.start,i=t.end,o=t.option,a=e.slice(r,i),s=tn(a,o);n+=s,t.subString=s}),n},ti=function(e,t){var n=[];return t.forEach(function(t){var r={keyword:""};typeof t=="string"?r={keyword:t}:r=t;var i=r.keyword,o=r.caseSensitive,a=o===void 0?!0:o,s=te(e,i,a?"g":"gi"),u={keyword:i,indexList:s,option:r};n.push(u)}),n},to=function(e,t){var n=ti(e,t),r=[],i=function(e,t){for(var n=0;n<r.length;n++){var i=r[n];if(e>i.start&&e<i.end||e+t>i.start&&e+t<i.end||i.start>e&&i.start<e+t||i.end>e&&i.end<e+t||e===i.start&&e+t===i.end)return-1;if(e+t<=i.start)return n}return r.length};n.forEach(function(e){var t=e.indexList,n=e.option;t.forEach(function(e){var t=e.index,o=e.subString,a={start:t,end:t+o.length,option:n},s=i(t,o.length);s!==-1&&r.splice(s,0,a)})});var o=[];return r.forEach(function(t,n){var i=t.start,a=t.end,s=r[n+1];n===0&&i>0&&o.push({start:0,end:i,subString:e.slice(0,i)}),o.push(p(l({},t),{subString:e.slice(i,a)})),(s===null||s===void 0?void 0:s.start)>a&&o.push({start:a,end:s.start,subString:e.slice(a,s.start)}),n===r.length-1&&a<e.length-1&&o.push({start:a,end:e.length-1,subString:e.slice(a,e.length)})}),o},ta=function(e,t){var n=to(e,t);return{highText:tr(e,n),highList:n}};j();import{clearInterval as ts,clearTimeout as tu,setInterval as tc,setTimeout as tf}from"worker-timers";var td="active",tl="idle",th="hidden",tp,tv,ty,tm={},tg={attach:function e(e,t){tm[e]||(tm[e]=[]),tm[e].push(t)},fire:function e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];tm[e]&&tm[e].forEach(function(e){e.apply(void 0,g(t))})},remove:function e(e,t){t||Reflect.deleteProperty(tm,e),tm[e]&&(tm[e]=tm[e].filter(function(e){return t!==e}))},dom:function e(e,t,n){return ty||(e.addEventListener?ty=function(e,t,n){return e.addEventListener(t,n,!1)}:typeof e.attachEvent=="function"?ty=function(e,t,n){return e.attachEvent("on".concat(t),n,!1)}:ty=function(e,t,n){return e["on".concat(t)]=n}),ty(e,t,n)}},tw=/*#__PURE__*/function(){"use strict";function e(t,n,i){var o=this;r(this,e);this.activity=t,this.seconds=n,this.callback=i,this.stopped=!1,this.start(),this.activity.on("statusChanged",function(e){o.stopped===!1&&(e.status===td?o.start():o.pause())})}o(e,[{key:"start",value:function e(){this.stopped=!1,ts(this.token),this.token=tc(this.callback,this.seconds*1e3)}},{key:"stop",value:function e(){this.stopped=!0,ts(this.token)}},{key:"resume",value:function e(){this.start()}},{key:"pause",value:function e(){this.stop()}}]);return e}(),tb=/*#__PURE__*/function(){"use strict";function e(){var t=this;r(this,e);if(this.status=td,this.timers=[],this.idleTime=3e4,this.isLegacyModeOn=!1,document.hidden!==void 0?(tp="hidden",tv="visibilitychange"):document.mozHidden!==void 0?(tp="mozHidden",tv="mozvisibilitychange"):document.msHidden!==void 0?(tp="msHidden",tv="msvisibilitychange"):document.webkitHidden!==void 0&&(tp="webkitHidden",tv="webkitvisibilitychange"),tp===void 0)this.legacyMode();else{var n=function(){document[tp]?t.blur():t.focus()};n(),tg.dom(document,tv,n)}this.startIdleTimer(),this.trackIdleStatus()}o(e,[{key:"legacyMode",value:function e(){var e=this;this.isLegacyModeOn||(tg.dom(window,"blur",function(){return e.blur()}),tg.dom(window,"focus",function(){return e.focus()}),this.isLegacyModeOn=!0)}},{key:"startIdleTimer",value:function e(e){var t=this;s(e,MouseEvent)&&e.movementX===0&&e.movementY===0||(this.timers.map(tu),this.timers.length=0,this.status===tl&&this.wakeUp(),this.idleStartedTime=+new Date,this.timers.push(tf(function(){if(t.status===td||t.status===th)return t.idle()},this.idleTime)))}},{key:"trackIdleStatus",value:function e(){tg.dom(document,"mousemove",this.startIdleTimer.bind(this)),tg.dom(document,"mousedown",this.startIdleTimer.bind(this)),tg.dom(document,"keyup",this.startIdleTimer.bind(this)),tg.dom(document,"touchstart",this.startIdleTimer.bind(this)),tg.dom(window,"scroll",this.startIdleTimer.bind(this)),this.focus(this.startIdleTimer.bind(this))}},{key:"on",value:function e(e,t){return tg.attach(e,t),this}},{key:"off",value:function e(e,t){return tg.remove(e,t),this}},{key:"setIdleDuration",value:function e(e){return this.idleTime=e*1e3,this.startIdleTimer(),this}},{key:"getIdleDuration",value:function e(){return this.idleTime}},{key:"getIdleInfo",value:function e(){var e=+new Date,t;if(this.status===tl)t={isIdle:!0,idleFor:e-this.idleStartedTime,timeLeft:0,timeLeftPer:100};else{var n=this.idleStartedTime+this.idleTime-e;t={isIdle:!1,idleFor:e-this.idleStartedTime,timeLeft:n,timeLeftPer:Number.parseFloat((100-n*100/this.idleTime).toFixed(2))}}return t}},{key:"idle",value:function e(e){return e?this.on("idle",e):(this.status=tl,tg.fire("idle"),tg.fire("statusChanged",[{status:this.status}])),this}},{key:"blur",value:function e(e){return e?this.on("blur",e):(this.status=th,tg.fire("blur"),tg.fire("statusChanged",[{status:this.status}])),this}},{key:"focus",value:function e(e){return e?this.on("focus",e):this.status!==td&&(this.status=td,tg.fire("focus"),tg.fire("wakeUp"),tg.fire("statusChanged",[{status:this.status}])),this}},{key:"wakeUp",value:function e(e){return e?this.on("wakeUp",e):this.status!==td&&(this.status=td,tg.fire("wakeUp"),tg.fire("statusChanged",[{status:this.status}])),this}},{key:"onEvery",value:function e(e,t){return new tw(this,e,t)}},{key:"now",value:function e(e){return e!==void 0?this.status===e:this.status===td}}]);return e}();j();import{isFunction as t_}from"lodash-es";function tS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default",n=arguments.length>2?arguments[2]:void 0;if(!e||!Reflect.has(e,t)||!t_(e[t]))return null;var r=e[t];return r?r(n):null}function tx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];var n=Object.keys(e),r={};return n.forEach(function(n){if(t.includes(n))return null;r[n]=function(t){return tS(e,n,t)}}),r}j();function tk(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.type,r=n===void 0?"text/javascript":n;return new Promise(function(t,n){var i=!1,o=document.querySelector('script[src="'.concat(e,'"]'));if(!o)o=document.createElement("script"),o.type=r,o.async=!0,o.src=e,i=!0;else if(o.hasAttribute("data-loaded")){t({el:o});return}o.addEventListener("error",n),o.addEventListener("abort",n),o.addEventListener("load",function(){o.setAttribute("data-loaded",!0),t({el:o})}),i&&document.head.appendChild(o)})}function tE(e){return new Promise(function(t,n){var r=document.querySelector('script[src="'.concat(e,'"]'));if(!r){n();return}document.head.removeChild(r),t()})}j();function tB(e,t,n){return tj(e,t,n,!1)}function tO(e,t,n){return tj(e,t,n,!0).length>0}function tC(e){return typeof e!="string"?e:e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var tA=new Map;function tD(e,t){if(!Array.isArray(e))switch(typeof e==="undefined"?"undefined":w(e)){case"string":e=[e];break;case"undefined":e=[];break;default:throw new TypeError("Expected '".concat(t,"' to be a string or an array, but got a type of '").concat(typeof e==="undefined"?"undefined":w(e),"'"))}return e.filter(function(e){if(typeof e!="string"){if((typeof e==="undefined"?"undefined":w(e))>"u")return!1;throw new TypeError("Expected '".concat(t,"' to be an array of strings, but found a type of '").concat(typeof e==="undefined"?"undefined":w(e),"' in the array"))}return!0})}function tz(e,t){t=l({caseSensitive:!1},t);var n=e+JSON.stringify(t);if(tA.has(n))return tA.get(n);var r=e[0]==="!";r&&(e=e.slice(1)),e=tC(e).replace(/\\\*/g,"[\\s\\S]*");var i=new RegExp("^".concat(e,"$"),t.caseSensitive?"":"i");return i.negated=r,tA.set(n,i),i}function tj(e,t,n,r){if(e=tD(e,"inputs"),t=tD(t,"patterns"),t.length===0)return[];t=t.map(function(e){return tz(e,n)});var i=n||{},o=i.allPatterns,a=[];var s=true,u=false,c=undefined;try{for(var f=e[Symbol.iterator](),d;!(s=(d=f.next()).done);s=true){var l=d.value;var h=void 0,p=g(t).fill(!1);var v=true,y=false,w=undefined;try{for(var b=t.entries()[Symbol.iterator](),_;!(v=(_=b.next()).done);v=true){var S=m(_.value,2),x=S[0],k=S[1];if(k.test(l)&&(p[x]=!0,h=!k.negated,!h))break}}catch(e){y=true;w=e}finally{try{if(!v&&b.return!=null){b.return()}}finally{if(y){throw w}}}if(!(h===!1||h===void 0&&t.some(function(e){return!e.negated})||o&&p.some(function(e,n){return!e&&!t[n].negated}))&&(a.push(l),r))break}}catch(e){u=true;c=e}finally{try{if(!s&&f.return!=null){f.return()}}finally{if(u){throw c}}}return a}j();var tL={id:"id",children:"children",pid:"pid"},tP=function(e){return Object.assign({},tL,e)};function tF(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};n=tP(n);var r=n.children,i=g(e);var o=true,a=false,s=undefined;try{for(var u=i[Symbol.iterator](),c;!(o=(c=u.next()).done);o=true){var f=c.value;var d;if(t(f))return f;f[r]&&(d=i).push.apply(d,g(f[r]))}}catch(e){a=true;s=e}finally{try{if(!o&&u.return!=null){u.return()}}finally{if(a){throw s}}}return null}function tM(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var r;n=tP(n);var i=n.children,o=g(e),a=[];var s=true,u=false,c=undefined;try{for(var f=o[Symbol.iterator](),d;!(s=(d=f.next()).done);s=true){var l=d.value;t(l)&&a.push(l),l[i]&&(r=o).push.apply(r,g(l[i]))}}catch(e){u=true;c=e}finally{try{if(!s&&f.return!=null){f.return()}}finally{if(u){throw c}}}return a}function tR(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};n=tP(n);var r=[],i=g(e),o=new Set,a=n.children;for(;i.length;){var s;var u=i[0];if(o.has(u))r.pop(),i.shift();else if(o.add(u),u[a]&&(s=i).unshift.apply(s,g(u[a])),r.push(u),t(u))return r}return null}function tI(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};n=tP(n);var r=[],i=g(e),o=[],a=new Set,s=n.children;for(;i.length;){var u;var c=i[0];a.has(c)?(r.pop(),i.shift()):(a.add(c),c[s]&&(u=i).unshift.apply(u,g(c[s])),r.push(c),t(c)&&o.push(g(r)))}return o}function tT(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};n=tP(n);var r=n.children;function i(e){return e.map(function(e){return l({},e)}).filter(function(e){return e[r]=e[r]&&i(e[r]),t(e)||e[r]&&e[r].length})}return i(e)}function tU(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};n=tP(n);var r=g(e),i=n.children;for(var o=0;o<r.length;o++){var a;if(t(r[o]))return;i&&r[o][i]&&(a=r).splice.apply(a,[o+1,0].concat(g(r[o][i])))}}function tH(e,t){return e.map(function(e){return t$(e,t)})}function t$(e,t){var n=t.children,r=n===void 0?"children":n,i=t.conversion;var o=Array.isArray(e[r])&&e[r].length>0,s=i(e)||{};return o?p(l({},s),a({},r,e[r].map(function(e){return t$(e,{children:r,conversion:i})}))):l({},s)}j();import{v4 as tN}from"uuid";function tW(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.native,n=t===void 0?!0:t;var r,i;var o;return n?(o=(i=window.crypto)===null||i===void 0?void 0:(r=i.randomUUID)===null||r===void 0?void 0:r.call(i))!==null&&o!==void 0?o:tN():tN()}var tJ=0;function tq(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";var t=Date.now(),n=Math.floor(Math.random()*1e9);return tJ++,"".concat(e,"_").concat(n).concat(tJ).concat(String(t))}export{ej as AesEncryption,tb as IfActivity,eV as ResizeObserver,e$ as addClass,e0 as addLocationListener,eY as addResizeListener,ex as buildBEM,tq as buildShortUUID,tW as buildUUID,ts as clearWorkerInterval,tu as clearWorkerTimeout,ek as createBEM,eE as createNamespace,eb as createSearchReg,e4 as dataURLtoBlob,eP as decodeByBase64,ey as deepMerge,eK as domOffEvent,eq as domOnEvent,e3 as downloadByBase64,e9 as downloadByData,e8 as downloadByOnlineUrl,e7 as downloadByUrl,e6 as downloadPercent,el as enableTransitions,eL as encryptByBase64,eF as encryptByMd5,tC as escapeStringRegexp,tx as extendSlots,tT as filterTree,tF as findNode,tM as findNodeAll,tR as findPath,tI as findPathAll,tU as forEachTree,e_ as getActualWidthOfChars,eI as getBoundingClientRect,ep as getRawRoute,tS as getSlot,eW as getViewportOffset,eJ as hackCss,eU as hasClass,ta as highlightHtml,G as is,eu as isBrowser,ed as isChineseText,ea as isChrome,eo as isClient,et as isIterableArray,tO as isMatch,er as isNumeric,Q as isObject,en as isPositiveInteger,es as isSafari,ei as isServer,ec as isSupportNativeEllipsis,ef as isSupportResizeObserver,ee as isUrl,tk as loadScript,tB as matcher,ev as openWindow,Z as regexpMap,eN as removeClass,eG as removeResizeListener,eH as setCssVar,em as setObjToUrlParams,tc as setWorkerInterval,tf as setWorkerTimeout,tH as treeMap,t$ as treeMapEach,eQ as triggerWindowResize,tE as unloadScript,eg as unsetAllProperty,e5 as urlToBase64,eX as useRafThrottle,eh as withInstall};
|
|
1
|
+
var $t=Object.defineProperty,Ct=Object.defineProperties;var At=Object.getOwnPropertyDescriptors;var L=Object.getOwnPropertySymbols;var X=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable;var K=(t,e,r)=>e in t?$t(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,h=(t,e)=>{for(var r in e||(e={}))X.call(e,r)&&K(t,r,e[r]);if(L)for(var r of L(e))G.call(e,r)&&K(t,r,e[r]);return t},g=(t,e)=>Ct(t,At(e));var Q=(t,e)=>{var r={};for(var n in t)X.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&L)for(var n of L(t))e.indexOf(n)<0&&G.call(t,n)&&(r[n]=t[n]);return r};import{titleCase as Gr}from"title-case";import{isPlainObject as Rt,mergeWith as Ut,isArray as tt,isEqual as et,intersectionWith as zt,unionWith as Nt}from"lodash-es";var b={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 _t=Object.prototype.toString;function V(t,e){return _t.call(t)===`[object ${e}]`}function $(t){return t!==null&&V(t,"Object")}function Tt(t){return b.url.test(t)}function I(t){return Array.isArray(t)&&t.length>0}function Dt(t){return Number.isInteger(t)&&t>=0}function It(t){return b.numeric.test(t)}var C=typeof window=="undefined",B=!C,k=B&&window.navigator.userAgent.toLowerCase().includes("chrome"),F=B&&window.navigator.userAgent.toLowerCase().includes("safari"),O=typeof window!="undefined"&&typeof document!="undefined",Bt=O&&typeof document.body.style.lineClamp!="undefined",kt=O&&typeof ResizeObserver!="undefined",Ft=t=>b.chinese.test(t),Ot=()=>"startViewTransition"in document&&window.matchMedia("(prefers-reduced-motion: no-preference)").matches;var Mt=(t,e)=>{let r=t;return r.install=n=>{n.component(r.name||r.displayName,t),e&&(n.config.globalProperties[e]=t)},t};function Pt(t){if(!t)return t;let n=t,{matched:e}=n,r=Q(n,["matched"]);return g(h({},r),{matched:e?e.map(s=>({meta:s.meta,name:s.name,path:s.path})):void 0})}function R(t,e){let{target:r="__blank",noopener:n=!0,noreferrer:s=!0}=e||{},i=[];n&&i.push("noopener=yes"),s&&i.push("noreferrer=yes"),window.open(t,r,i.join(","))}function rt(t,e,r="replace"){return e?t?Ut(t,e,(n,s)=>{if(tt(s)&&tt(n))switch(r){case"union":return Nt(n,s,et);case"intersection":return zt(n,s,et);case"concat":return n.concat(s);case"replace":return s;default:throw new Error(`Unknown merge array strategy: ${r}`)}if($(s)&&$(n))return rt(n,s,r)}):e:t}function jt(t,e){if(!I(Object.keys(e)))return t;let r="";for(let n in e)r+=`${n}=${encodeURIComponent(e[n])}&`;return r=r.replace(/&$/,""),/\?$/.test(t)?t+r:t.replace(/\/?$/,"?")+r}function Ht(t){Rt(t)&&Object.keys(t).forEach(e=>{Reflect.deleteProperty(t,e)})}function Wt(t){return["$","(",")","*","+",".","[","]","?","\\","^","{","}","|"].includes(t)?`\\${t}`:t}function Zt(t){let r=["",...[...t].map(n=>Wt(n)),""].join(".*");return new RegExp(r,"i")}function qt(t="",e={}){let{size:r=14,family:n=getComputedStyle(document.documentElement).getPropertyValue("--vxe-font-family")||"sans-serif"}=e,i=document.createElement("canvas").getContext("2d");i.font=`${r}px ${n}`;let o=i.measureText(t),a=Math.abs(o.actualBoundingBoxLeft)+Math.abs(o.actualBoundingBoxRight);return Math.ceil(Math.max(o.width,a))}function U(t,e){return e?typeof e=="string"?` ${t}--${e}`:Array.isArray(e)?e.reduce((r,n)=>r+U(t,n),""):Object.keys(e).reduce((r,n)=>r+(e[n]?U(t,n):""),""):""}function z(t){return(e,r)=>(e&&typeof e!="string"&&(r=e,e=""),e=e?`${t}__${e}`:t,`${e}${U(e,r)}`)}function Yt(t,e=""){return[z(`${e}-${t}`)]}function Jt(t,e=""){let r=`${e}-${t}`;return[r,z(r)]}import{encrypt as Kt,decrypt as Xt}from"crypto-js/aes";import M,{parse as nt}from"crypto-js/enc-utf8";import Gt from"crypto-js/pad-pkcs7";import Qt from"crypto-js/mode-ecb";import Vt from"crypto-js/md5";import st from"crypto-js/enc-base64";var N=class{constructor(e){let{key:r,iv:n}=e;r&&(this.key=nt(r)),n&&(this.iv=nt(n))}get getOptions(){return{mode:Qt,padding:Gt,iv:this.iv}}encryptByAES(e){return Kt(e,this.key,this.getOptions).toString()}decryptByAES(e){return Xt(e,this.key,this.getOptions).toString(M)}};function te(t){return M.parse(t).toString(st)}function ee(t){return st.parse(t).toString(M)}function re(t){return Vt(t).toString()}import{upperFirst as ne}from"lodash-es";var se=()=>document.documentElement;function it(t){return!t||!t.getBoundingClientRect?0:t.getBoundingClientRect()}function ie(t){return(t||"").replace(/^\s+|\s+$/g,"")}function P(t,e){if(!t||!e)return!1;if(e.includes(" "))throw new Error("className should not contain space.");return t.classList?t.classList.contains(e):` ${t.className} `.includes(` ${e} `)}function oe(t,e,r){return r||(r=se()),r.style.setProperty(t,e),{prop:e}}function ae(t,e){if(!t)return;let r=t.className,n=(e||"").split(" ");for(let s=0,i=n.length;s<i;s++){let o=n[s];o&&(t.classList?t.classList.add(o):P(t,o)||(r+=` ${o}`))}t.classList||(t.className=r)}function ce(t,e){if(!t||!e)return;let r=e.split(" "),n=` ${t.className} `;for(let s=0,i=r.length;s<i;s++){let o=r[s];o&&(t.classList?t.classList.remove(o):P(t,o)&&(n=n.replace(` ${o} `," ")))}t.classList||(t.className=ie(n))}function ue(t){let e=document.documentElement,r=e.scrollLeft,n=e.scrollTop,s=e.clientLeft,i=e.clientTop,o=window.scrollX,a=window.scrollY,u=it(t);if(!u)return{};let{left:c,top:l,width:_,height:S}=u,vt=(o||r)-(s||0),Et=(a||n)-(i||0),St=c+o,Lt=l+a,T=St-vt,D=Lt-Et,Y=window.document.documentElement.clientWidth,J=window.document.documentElement.clientHeight;return{left:T,top:D,right:Y-_-T,bottom:J-S-D,rightIncludeBody:Y-T,bottomIncludeBody:J-D}}function de(t,e){let r=["webkit","Moz","ms","OT"],n={};return r.forEach(s=>{n[`${s}${ne(t)}`]=e}),g(h({},n),{[t]:e})}function le(t,e,r){t&&e&&r&&t.addEventListener(e,r,!1)}function fe(t,e,r){t&&e&&r&&t.removeEventListener(e,r,!1)}function pe(t){let e=!1;return function(...r){e||(e=!0,window.requestAnimationFrame(()=>{t.apply(this,r),e=!1}))}}import ot from"resize-observer-polyfill";function he(t){for(let e of t){let r=e.target.__resizeListeners__||[];r.length&&r.forEach(n=>{n()})}}function me(t,e){C||(t.__resizeListeners__||(t.__resizeListeners__=[],t.__ro__=new ot(he),t.__ro__.observe(t)),t.__resizeListeners__.push(e))}function ge(t,e){!t||!t.__resizeListeners__||(t.__resizeListeners__.splice(t.__resizeListeners__.indexOf(e),1),t.__resizeListeners__.length||(t.__ro__.disconnect(),t.__ro__=null,t.__resizeListeners__=null))}function we(){let t=new Event("resize",{bubbles:!0,cancelable:!0});window.dispatchEvent(t)}function ye(t,e={}){function r(n){let s=window.history[n];return function(...i){let o=new Event(n);return o.arguments=i,window.dispatchEvent(o),s.apply(this,i)}}return window.history.pushState=r("pushState"),window.history.replaceState=r("replaceState"),window.addEventListener("popstate",t,e),window.addEventListener("hashchange",t,e),window.addEventListener("replaceState",t,e),window.addEventListener("pushState",t,e),{removeListener:()=>{window.removeEventListener("popstate",t,e),window.removeEventListener("hashchange",t,e),window.removeEventListener("replaceState",t,e),window.removeEventListener("pushState",t,e)}}}import{round as xe,isNil as be}from"lodash-es";function at(t){let e=t.split(","),n=e[0].match(/:(.*?);/)[1],s=window.atob(e[1]),i=s.length,o=new Uint8Array(i);for(;i--;)o[i]=s.charCodeAt(i);return new Blob([o],{type:n})}function ct(t,e){return new Promise((r,n)=>{let s=document.createElement("CANVAS"),i=s.getContext("2d"),o=new Image;o.crossOrigin="",o.onload=function(){if(!s||!i)return n();s.height=o.height,s.width=o.width,i.drawImage(o,0,0);let a=s.toDataURL(e||"image/png");s=null,r(a)},o.src=t})}function ve(t){let{loaded:e,total:r}=t;if(r<=0||be(r))return 0;let n=e/r;return xe((n>1?1:n)*100)}function Ee(t,e,r,n){ct(t).then(s=>{ut(s,e,r,n)})}function ut(t,e,r,n){let s=at(t);dt(s,e,r,n)}function dt(t,e,r,n){let s=typeof n!="undefined"?[n,t]:[t],i=new Blob(s,{type:r||"application/octet-stream"});if(typeof window.navigator.msSaveBlob!="undefined")window.navigator.msSaveBlob(i,e);else{let o=window.URL.createObjectURL(i),a=document.createElement("a");a.style.display="none",a.href=o,a.setAttribute("download",e),typeof a.download=="undefined"&&a.setAttribute("target","_blank"),document.body.appendChild(a),a.click(),document.body.removeChild(a),window.URL.revokeObjectURL(o)}}function Se({url:t,target:e="_blank",fileName:r}){if(/iP/.test(window.navigator.userAgent))return!1;if(k||F){let n=document.createElement("a");return n.href=t,n.download=r||t.substring(t.lastIndexOf("/")+1,t.length),n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n),!0}return t.includes("?")||(t+="?download"),R(t,{target:e}),!0}var Le=(t,e,r="ig")=>{let n=new RegExp(e,r);return[...t.matchAll(n)].map(a=>({index:a.index,subString:a[0]}))};function $e(t){return t.replace(/([A-Z])/g,"-$1").toLowerCase()}var Ce=(t,e)=>{let r=t;if(!e)return r;let{tagName:n="mark",bgColor:s,color:i,style:o={},renderHighlightKeyword:a}=e;if(typeof a=="function")return a(t);o.backgroundColor=s,o.color=i;let c=`style="${Object.keys(o).map(l=>`${$e(l)}:${o[l]}`).join(";")}"`;return`<${n} ${c}>${r}</${n}>`},Ae=(t,e)=>{let r="";return e.forEach(n=>{let{start:s,end:i,option:o}=n,a=t.slice(s,i),u=Ce(a,o);r+=u,n.subString=u}),r},_e=(t,e)=>{let r=[];return e.forEach(n=>{let s={keyword:""};typeof n=="string"?s={keyword:n}:s=n;let{keyword:i,caseSensitive:o=!0}=s,a=Le(t,i,o?"g":"gi"),u={keyword:i,indexList:a,option:s};r.push(u)}),r},Te=(t,e)=>{let r=_e(t,e),n=[],s=(o,a)=>{for(let u=0;u<n.length;u++){let c=n[u];if(o>c.start&&o<c.end||o+a>c.start&&o+a<c.end||c.start>o&&c.start<o+a||c.end>o&&c.end<o+a||o===c.start&&o+a===c.end)return-1;if(o+a<=c.start)return u}return n.length};r.forEach(({indexList:o,option:a})=>{o.forEach(u=>{let{index:c,subString:l}=u,_={start:c,end:c+l.length,option:a},S=s(c,l.length);S!==-1&&n.splice(S,0,_)})});let i=[];return n.forEach((o,a)=>{let{start:u,end:c}=o,l=n[a+1];a===0&&u>0&&i.push({start:0,end:u,subString:t.slice(0,u)}),i.push(g(h({},o),{subString:t.slice(u,c)})),(l==null?void 0:l.start)>c&&i.push({start:c,end:l.start,subString:t.slice(c,l.start)}),a===n.length-1&&c<t.length-1&&i.push({start:c,end:t.length-1,subString:t.slice(c,t.length)})}),i},De=(t,e)=>{let r=Te(t,e);return{highText:Ae(t,r),highList:r}};import{clearInterval as H,clearTimeout as ft,setInterval as pt,setTimeout as ht}from"worker-timers";var w="active",j="idle",lt="hidden",y,v,E,m={},d={attach(t,e){m[t]||(m[t]=[]),m[t].push(e)},fire(t,e=[]){m[t]&&m[t].forEach(r=>{r(...e)})},remove(t,e){e||Reflect.deleteProperty(m,t),m[t]&&(m[t]=m[t].filter(r=>e!==r))},dom(t,e,r){return E||(t.addEventListener?E=(n,s,i)=>n.addEventListener(s,i,!1):typeof t.attachEvent=="function"?E=(n,s,i)=>n.attachEvent(`on${s}`,i,!1):E=(n,s,i)=>n[`on${s}`]=i),E(t,e,r)}},W=class{constructor(e,r,n){this.activity=e,this.seconds=r,this.callback=n,this.stopped=!1,this.start(),this.activity.on("statusChanged",s=>{this.stopped===!1&&(s.status===w?this.start():this.pause())})}start(){this.stopped=!1,H(this.token),this.token=pt(this.callback,this.seconds*1e3)}stop(){this.stopped=!0,H(this.token)}resume(){this.start()}pause(){this.stop()}},A=class{constructor(){if(this.status=w,this.timers=[],this.idleTime=3e4,this.isLegacyModeOn=!1,document.hidden!==void 0?(y="hidden",v="visibilitychange"):document.mozHidden!==void 0?(y="mozHidden",v="mozvisibilitychange"):document.msHidden!==void 0?(y="msHidden",v="msvisibilitychange"):document.webkitHidden!==void 0&&(y="webkitHidden",v="webkitvisibilitychange"),y===void 0)this.legacyMode();else{let e=()=>{document[y]?this.blur():this.focus()};e(),d.dom(document,v,e)}this.startIdleTimer(),this.trackIdleStatus()}legacyMode(){this.isLegacyModeOn||(d.dom(window,"blur",()=>this.blur()),d.dom(window,"focus",()=>this.focus()),this.isLegacyModeOn=!0)}startIdleTimer(e){e instanceof MouseEvent&&e.movementX===0&&e.movementY===0||(this.timers.map(ft),this.timers.length=0,this.status===j&&this.wakeUp(),this.idleStartedTime=+new Date,this.timers.push(ht(()=>{if(this.status===w||this.status===lt)return this.idle()},this.idleTime)))}trackIdleStatus(){d.dom(document,"mousemove",this.startIdleTimer.bind(this)),d.dom(document,"mousedown",this.startIdleTimer.bind(this)),d.dom(document,"keyup",this.startIdleTimer.bind(this)),d.dom(document,"touchstart",this.startIdleTimer.bind(this)),d.dom(window,"scroll",this.startIdleTimer.bind(this)),this.focus(this.startIdleTimer.bind(this))}on(e,r){return d.attach(e,r),this}off(e,r){return d.remove(e,r),this}setIdleDuration(e){return this.idleTime=e*1e3,this.startIdleTimer(),this}getIdleDuration(){return this.idleTime}getIdleInfo(){let e=+new Date,r;if(this.status===j)r={isIdle:!0,idleFor:e-this.idleStartedTime,timeLeft:0,timeLeftPer:100};else{let n=this.idleStartedTime+this.idleTime-e;r={isIdle:!1,idleFor:e-this.idleStartedTime,timeLeft:n,timeLeftPer:Number.parseFloat((100-n*100/this.idleTime).toFixed(2))}}return r}idle(e){return e?this.on("idle",e):(this.status=j,d.fire("idle"),d.fire("statusChanged",[{status:this.status}])),this}blur(e){return e?this.on("blur",e):(this.status=lt,d.fire("blur"),d.fire("statusChanged",[{status:this.status}])),this}focus(e){return e?this.on("focus",e):this.status!==w&&(this.status=w,d.fire("focus"),d.fire("wakeUp"),d.fire("statusChanged",[{status:this.status}])),this}wakeUp(e){return e?this.on("wakeUp",e):this.status!==w&&(this.status=w,d.fire("wakeUp"),d.fire("statusChanged",[{status:this.status}])),this}onEvery(e,r){return new W(this,e,r)}now(e){return e!==void 0?this.status===e:this.status===w}};import{isFunction as Ie}from"lodash-es";function mt(t,e="default",r){if(!t||!Reflect.has(t,e)||!Ie(t[e]))return null;let n=t[e];return n?n(r):null}function Be(t,e=[]){let r=Object.keys(t),n={};return r.forEach(s=>{if(e.includes(s))return null;n[s]=i=>mt(t,s,i)}),n}function ke(t,{type:e="text/javascript"}={}){return new Promise((r,n)=>{let s=!1,i=document.querySelector(`script[src="${t}"]`);if(!i)i=document.createElement("script"),i.type=e,i.async=!0,i.src=t,s=!0;else if(i.hasAttribute("data-loaded")){r({el:i});return}i.addEventListener("error",n),i.addEventListener("abort",n),i.addEventListener("load",()=>{i.setAttribute("data-loaded",!0),r({el:i})}),s&&document.head.appendChild(i)})}function Fe(t){return new Promise((e,r)=>{let n=document.querySelector(`script[src="${t}"]`);if(!n){r();return}document.head.removeChild(n),e()})}function Oe(t,e,r){return yt(t,e,r,!1)}function Re(t,e,r){return yt(t,e,r,!0).length>0}function wt(t){return typeof t!="string"?t:t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Z=new Map;function gt(t,e){if(!Array.isArray(t))switch(typeof t){case"string":t=[t];break;case"undefined":t=[];break;default:throw new TypeError(`Expected '${e}' to be a string or an array, but got a type of '${typeof t}'`)}return t.filter(r=>{if(typeof r!="string"){if(typeof r=="undefined")return!1;throw new TypeError(`Expected '${e}' to be an array of strings, but found a type of '${typeof r}' in the array`)}return!0})}function Ue(t,e){e=h({caseSensitive:!1},e);let r=t+JSON.stringify(e);if(Z.has(r))return Z.get(r);let n=t[0]==="!";n&&(t=t.slice(1)),t=wt(t).replace(/\\\*/g,"[\\s\\S]*");let s=new RegExp(`^${t}$`,e.caseSensitive?"":"i");return s.negated=n,Z.set(r,s),s}function yt(t,e,r,n){if(t=gt(t,"inputs"),e=gt(e,"patterns"),e.length===0)return[];e=e.map(o=>Ue(o,r));let{allPatterns:s}=r||{},i=[];for(let o of t){let a,u=[...e].fill(!1);for(let[c,l]of e.entries())if(l.test(o)&&(u[c]=!0,a=!l.negated,!a))break;if(!(a===!1||a===void 0&&e.some(c=>!c.negated)||s&&u.some((c,l)=>!c&&!e[l].negated))&&(i.push(o),n))break}return i}var ze={id:"id",children:"children",pid:"pid"},x=t=>Object.assign({},ze,t);function Ne(t,e,r={}){r=x(r);let{children:n}=r,s=[...t];for(let i of s){if(e(i))return i;i[n]&&s.push(...i[n])}return null}function Me(t,e,r={}){r=x(r);let{children:n}=r,s=[...t],i=[];for(let o of s)e(o)&&i.push(o),o[n]&&s.push(...o[n]);return i}function Pe(t,e,r={}){r=x(r);let n=[],s=[...t],i=new Set,{children:o}=r;for(;s.length;){let a=s[0];if(i.has(a))n.pop(),s.shift();else if(i.add(a),a[o]&&s.unshift(...a[o]),n.push(a),e(a))return n}return null}function je(t,e,r={}){r=x(r);let n=[],s=[...t],i=[],o=new Set,{children:a}=r;for(;s.length;){let u=s[0];o.has(u)?(n.pop(),s.shift()):(o.add(u),u[a]&&s.unshift(...u[a]),n.push(u),e(u)&&i.push([...n]))}return i}function He(t,e,r={}){r=x(r);let n=r.children;function s(i){return i.map(o=>h({},o)).filter(o=>(o[n]=o[n]&&s(o[n]),e(o)||o[n]&&o[n].length))}return s(t)}function We(t,e,r={}){r=x(r);let n=[...t],{children:s}=r;for(let i=0;i<n.length;i++){if(e(n[i]))return;s&&n[i][s]&&n.splice(i+1,0,...n[i][s])}}function Ze(t,e){return t.map(r=>q(r,e))}function q(t,{children:e="children",conversion:r}){let n=Array.isArray(t[e])&&t[e].length>0,s=r(t)||{};return n?g(h({},s),{[e]:t[e].map(i=>q(i,{children:e,conversion:r}))}):h({},s)}import{v4 as xt}from"uuid";function qe({native:t=!0}={}){var e,r,n;return t?(n=(r=(e=window.crypto)==null?void 0:e.randomUUID)==null?void 0:r.call(e))!=null?n:xt():xt()}var bt=0;function Ye(t=""){let e=Date.now(),r=Math.floor(Math.random()*1e9);return bt++,`${t}_${r}${bt}${String(e)}`}export{N as AesEncryption,A as IfActivity,ot as ResizeObserver,ae as addClass,ye as addLocationListener,me as addResizeListener,z as buildBEM,Ye as buildShortUUID,qe as buildUUID,H as clearWorkerInterval,ft as clearWorkerTimeout,Yt as createBEM,Jt as createNamespace,Zt as createSearchReg,at as dataURLtoBlob,ee as decodeByBase64,rt as deepMerge,fe as domOffEvent,le as domOnEvent,ut as downloadByBase64,dt as downloadByData,Ee as downloadByOnlineUrl,Se as downloadByUrl,ve as downloadPercent,Ot as enableTransitions,te as encryptByBase64,re as encryptByMd5,wt as escapeStringRegexp,Be as extendSlots,He as filterTree,Ne as findNode,Me as findNodeAll,Pe as findPath,je as findPathAll,We as forEachTree,qt as getActualWidthOfChars,it as getBoundingClientRect,Pt as getRawRoute,mt as getSlot,ue as getViewportOffset,de as hackCss,P as hasClass,De as highlightHtml,V as is,O as isBrowser,Ft as isChineseText,k as isChrome,B as isClient,I as isIterableArray,Re as isMatch,It as isNumeric,$ as isObject,Dt as isPositiveInteger,F as isSafari,C as isServer,Bt as isSupportNativeEllipsis,kt as isSupportResizeObserver,Tt as isUrl,ke as loadScript,Oe as matcher,R as openWindow,b as regexpMap,ce as removeClass,ge as removeResizeListener,oe as setCssVar,jt as setObjToUrlParams,pt as setWorkerInterval,ht as setWorkerTimeout,Gr as titleCase,Ze as treeMap,q as treeMapEach,we as triggerWindowResize,Fe as unloadScript,Ht as unsetAllProperty,ct as urlToBase64,pe as useRafThrottle,Mt 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.10",
|
|
5
5
|
"description": "Web Dev Utils for GSC Basic Team",
|
|
6
6
|
"author": "wangll47 <wangll47@lenovo.com>",
|
|
7
7
|
"license": "UNLICENSED",
|
|
@@ -32,12 +32,13 @@
|
|
|
32
32
|
"lodash-es": "^4.17.21"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
+
"crypto-js": "^4.2.0",
|
|
35
36
|
"resize-observer-polyfill": "^1.5.1",
|
|
37
|
+
"title-case": "^4.3.2",
|
|
36
38
|
"uuid": "^11.0.3",
|
|
37
39
|
"worker-timers": "^8.0.11"
|
|
38
40
|
},
|
|
39
41
|
"devDependencies": {
|
|
40
|
-
"crypto-js": "^4.2.0",
|
|
41
42
|
"lodash-es": "^4.17.21"
|
|
42
43
|
},
|
|
43
44
|
"scripts": {
|