🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

zjsmethods

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zjsmethods - npm Package Compare versions

Comparing version
1.4.9
to
1.5.0
+2
-2
dist/main.js

@@ -1,2 +0,2 @@

module.exports=function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="/",r(r.s=4)}([function(t,e){var r={utf8:{stringToBytes:function(t){return r.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(r.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var e=[],r=0;r<t.length;r++)e.push(255&t.charCodeAt(r));return e},bytesToString:function(t){for(var e=[],r=0;r<t.length;r++)e.push(String.fromCharCode(t[r]));return e.join("")}}};t.exports=r},function(t,e,r){var n,o,i,s,u;n=r(2),o=r(0).utf8,i=r(3),s=r(0).bin,(u=function(t,e){t.constructor==String?t=e&&"binary"===e.encoding?s.stringToBytes(t):o.stringToBytes(t):i(t)?t=Array.prototype.slice.call(t,0):Array.isArray(t)||(t=t.toString());for(var r=n.bytesToWords(t),l=8*t.length,a=1732584193,f=-271733879,c=-1732584194,h=271733878,_=0;_<r.length;_++)r[_]=16711935&(r[_]<<8|r[_]>>>24)|4278255360&(r[_]<<24|r[_]>>>8);r[l>>>5]|=128<<l%32,r[14+(l+64>>>9<<4)]=l;var d=u._ff,p=u._gg,y=u._hh,g=u._ii;for(_=0;_<r.length;_+=16){var b=a,w=f,m=c,v=h;a=d(a,f,c,h,r[_+0],7,-680876936),h=d(h,a,f,c,r[_+1],12,-389564586),c=d(c,h,a,f,r[_+2],17,606105819),f=d(f,c,h,a,r[_+3],22,-1044525330),a=d(a,f,c,h,r[_+4],7,-176418897),h=d(h,a,f,c,r[_+5],12,1200080426),c=d(c,h,a,f,r[_+6],17,-1473231341),f=d(f,c,h,a,r[_+7],22,-45705983),a=d(a,f,c,h,r[_+8],7,1770035416),h=d(h,a,f,c,r[_+9],12,-1958414417),c=d(c,h,a,f,r[_+10],17,-42063),f=d(f,c,h,a,r[_+11],22,-1990404162),a=d(a,f,c,h,r[_+12],7,1804603682),h=d(h,a,f,c,r[_+13],12,-40341101),c=d(c,h,a,f,r[_+14],17,-1502002290),a=p(a,f=d(f,c,h,a,r[_+15],22,1236535329),c,h,r[_+1],5,-165796510),h=p(h,a,f,c,r[_+6],9,-1069501632),c=p(c,h,a,f,r[_+11],14,643717713),f=p(f,c,h,a,r[_+0],20,-373897302),a=p(a,f,c,h,r[_+5],5,-701558691),h=p(h,a,f,c,r[_+10],9,38016083),c=p(c,h,a,f,r[_+15],14,-660478335),f=p(f,c,h,a,r[_+4],20,-405537848),a=p(a,f,c,h,r[_+9],5,568446438),h=p(h,a,f,c,r[_+14],9,-1019803690),c=p(c,h,a,f,r[_+3],14,-187363961),f=p(f,c,h,a,r[_+8],20,1163531501),a=p(a,f,c,h,r[_+13],5,-1444681467),h=p(h,a,f,c,r[_+2],9,-51403784),c=p(c,h,a,f,r[_+7],14,1735328473),a=y(a,f=p(f,c,h,a,r[_+12],20,-1926607734),c,h,r[_+5],4,-378558),h=y(h,a,f,c,r[_+8],11,-2022574463),c=y(c,h,a,f,r[_+11],16,1839030562),f=y(f,c,h,a,r[_+14],23,-35309556),a=y(a,f,c,h,r[_+1],4,-1530992060),h=y(h,a,f,c,r[_+4],11,1272893353),c=y(c,h,a,f,r[_+7],16,-155497632),f=y(f,c,h,a,r[_+10],23,-1094730640),a=y(a,f,c,h,r[_+13],4,681279174),h=y(h,a,f,c,r[_+0],11,-358537222),c=y(c,h,a,f,r[_+3],16,-722521979),f=y(f,c,h,a,r[_+6],23,76029189),a=y(a,f,c,h,r[_+9],4,-640364487),h=y(h,a,f,c,r[_+12],11,-421815835),c=y(c,h,a,f,r[_+15],16,530742520),a=g(a,f=y(f,c,h,a,r[_+2],23,-995338651),c,h,r[_+0],6,-198630844),h=g(h,a,f,c,r[_+7],10,1126891415),c=g(c,h,a,f,r[_+14],15,-1416354905),f=g(f,c,h,a,r[_+5],21,-57434055),a=g(a,f,c,h,r[_+12],6,1700485571),h=g(h,a,f,c,r[_+3],10,-1894986606),c=g(c,h,a,f,r[_+10],15,-1051523),f=g(f,c,h,a,r[_+1],21,-2054922799),a=g(a,f,c,h,r[_+8],6,1873313359),h=g(h,a,f,c,r[_+15],10,-30611744),c=g(c,h,a,f,r[_+6],15,-1560198380),f=g(f,c,h,a,r[_+13],21,1309151649),a=g(a,f,c,h,r[_+4],6,-145523070),h=g(h,a,f,c,r[_+11],10,-1120210379),c=g(c,h,a,f,r[_+2],15,718787259),f=g(f,c,h,a,r[_+9],21,-343485551),a=a+b>>>0,f=f+w>>>0,c=c+m>>>0,h=h+v>>>0}return n.endian([a,f,c,h])})._ff=function(t,e,r,n,o,i,s){var u=t+(e&r|~e&n)+(o>>>0)+s;return(u<<i|u>>>32-i)+e},u._gg=function(t,e,r,n,o,i,s){var u=t+(e&n|r&~n)+(o>>>0)+s;return(u<<i|u>>>32-i)+e},u._hh=function(t,e,r,n,o,i,s){var u=t+(e^r^n)+(o>>>0)+s;return(u<<i|u>>>32-i)+e},u._ii=function(t,e,r,n,o,i,s){var u=t+(r^(e|~n))+(o>>>0)+s;return(u<<i|u>>>32-i)+e},u._blocksize=16,u._digestsize=16,t.exports=function(t,e){if(null==t)throw new Error("Illegal argument "+t);var r=n.wordsToBytes(u(t,e));return e&&e.asBytes?r:e&&e.asString?s.bytesToString(r):n.bytesToHex(r)}},function(t,e){var r,n;r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(t,e){return t<<e|t>>>32-e},rotr:function(t,e){return t<<32-e|t>>>e},endian:function(t){if(t.constructor==Number)return 16711935&n.rotl(t,8)|4278255360&n.rotl(t,24);for(var e=0;e<t.length;e++)t[e]=n.endian(t[e]);return t},randomBytes:function(t){for(var e=[];t>0;t--)e.push(Math.floor(256*Math.random()));return e},bytesToWords:function(t){for(var e=[],r=0,n=0;r<t.length;r++,n+=8)e[n>>>5]|=t[r]<<24-n%32;return e},wordsToBytes:function(t){for(var e=[],r=0;r<32*t.length;r+=8)e.push(t[r>>>5]>>>24-r%32&255);return e},bytesToHex:function(t){for(var e=[],r=0;r<t.length;r++)e.push((t[r]>>>4).toString(16)),e.push((15&t[r]).toString(16));return e.join("")},hexToBytes:function(t){for(var e=[],r=0;r<t.length;r+=2)e.push(parseInt(t.substr(r,2),16));return e},bytesToBase64:function(t){for(var e=[],n=0;n<t.length;n+=3)for(var o=t[n]<<16|t[n+1]<<8|t[n+2],i=0;i<4;i++)8*n+6*i<=8*t.length?e.push(r.charAt(o>>>6*(3-i)&63)):e.push("=");return e.join("")},base64ToBytes:function(t){t=t.replace(/[^A-Z0-9+\/]/gi,"");for(var e=[],n=0,o=0;n<t.length;o=++n%4)0!=o&&e.push((r.indexOf(t.charAt(n-1))&Math.pow(2,-2*o+8)-1)<<2*o|r.indexOf(t.charAt(n))>>>6-2*o);return e}},t.exports=n},function(t,e){function r(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}
module.exports=function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="/",r(r.s=4)}([function(t,e){var r={utf8:{stringToBytes:function(t){return r.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(r.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var e=[],r=0;r<t.length;r++)e.push(255&t.charCodeAt(r));return e},bytesToString:function(t){for(var e=[],r=0;r<t.length;r++)e.push(String.fromCharCode(t[r]));return e.join("")}}};t.exports=r},function(t,e,r){var n,o,i,s,u;n=r(2),o=r(0).utf8,i=r(3),s=r(0).bin,(u=function(t,e){t.constructor==String?t=e&&"binary"===e.encoding?s.stringToBytes(t):o.stringToBytes(t):i(t)?t=Array.prototype.slice.call(t,0):Array.isArray(t)||(t=t.toString());for(var r=n.bytesToWords(t),l=8*t.length,a=1732584193,f=-271733879,c=-1732584194,h=271733878,_=0;_<r.length;_++)r[_]=16711935&(r[_]<<8|r[_]>>>24)|4278255360&(r[_]<<24|r[_]>>>8);r[l>>>5]|=128<<l%32,r[14+(l+64>>>9<<4)]=l;var d=u._ff,p=u._gg,g=u._hh,y=u._ii;for(_=0;_<r.length;_+=16){var b=a,w=f,m=c,v=h;a=d(a,f,c,h,r[_+0],7,-680876936),h=d(h,a,f,c,r[_+1],12,-389564586),c=d(c,h,a,f,r[_+2],17,606105819),f=d(f,c,h,a,r[_+3],22,-1044525330),a=d(a,f,c,h,r[_+4],7,-176418897),h=d(h,a,f,c,r[_+5],12,1200080426),c=d(c,h,a,f,r[_+6],17,-1473231341),f=d(f,c,h,a,r[_+7],22,-45705983),a=d(a,f,c,h,r[_+8],7,1770035416),h=d(h,a,f,c,r[_+9],12,-1958414417),c=d(c,h,a,f,r[_+10],17,-42063),f=d(f,c,h,a,r[_+11],22,-1990404162),a=d(a,f,c,h,r[_+12],7,1804603682),h=d(h,a,f,c,r[_+13],12,-40341101),c=d(c,h,a,f,r[_+14],17,-1502002290),a=p(a,f=d(f,c,h,a,r[_+15],22,1236535329),c,h,r[_+1],5,-165796510),h=p(h,a,f,c,r[_+6],9,-1069501632),c=p(c,h,a,f,r[_+11],14,643717713),f=p(f,c,h,a,r[_+0],20,-373897302),a=p(a,f,c,h,r[_+5],5,-701558691),h=p(h,a,f,c,r[_+10],9,38016083),c=p(c,h,a,f,r[_+15],14,-660478335),f=p(f,c,h,a,r[_+4],20,-405537848),a=p(a,f,c,h,r[_+9],5,568446438),h=p(h,a,f,c,r[_+14],9,-1019803690),c=p(c,h,a,f,r[_+3],14,-187363961),f=p(f,c,h,a,r[_+8],20,1163531501),a=p(a,f,c,h,r[_+13],5,-1444681467),h=p(h,a,f,c,r[_+2],9,-51403784),c=p(c,h,a,f,r[_+7],14,1735328473),a=g(a,f=p(f,c,h,a,r[_+12],20,-1926607734),c,h,r[_+5],4,-378558),h=g(h,a,f,c,r[_+8],11,-2022574463),c=g(c,h,a,f,r[_+11],16,1839030562),f=g(f,c,h,a,r[_+14],23,-35309556),a=g(a,f,c,h,r[_+1],4,-1530992060),h=g(h,a,f,c,r[_+4],11,1272893353),c=g(c,h,a,f,r[_+7],16,-155497632),f=g(f,c,h,a,r[_+10],23,-1094730640),a=g(a,f,c,h,r[_+13],4,681279174),h=g(h,a,f,c,r[_+0],11,-358537222),c=g(c,h,a,f,r[_+3],16,-722521979),f=g(f,c,h,a,r[_+6],23,76029189),a=g(a,f,c,h,r[_+9],4,-640364487),h=g(h,a,f,c,r[_+12],11,-421815835),c=g(c,h,a,f,r[_+15],16,530742520),a=y(a,f=g(f,c,h,a,r[_+2],23,-995338651),c,h,r[_+0],6,-198630844),h=y(h,a,f,c,r[_+7],10,1126891415),c=y(c,h,a,f,r[_+14],15,-1416354905),f=y(f,c,h,a,r[_+5],21,-57434055),a=y(a,f,c,h,r[_+12],6,1700485571),h=y(h,a,f,c,r[_+3],10,-1894986606),c=y(c,h,a,f,r[_+10],15,-1051523),f=y(f,c,h,a,r[_+1],21,-2054922799),a=y(a,f,c,h,r[_+8],6,1873313359),h=y(h,a,f,c,r[_+15],10,-30611744),c=y(c,h,a,f,r[_+6],15,-1560198380),f=y(f,c,h,a,r[_+13],21,1309151649),a=y(a,f,c,h,r[_+4],6,-145523070),h=y(h,a,f,c,r[_+11],10,-1120210379),c=y(c,h,a,f,r[_+2],15,718787259),f=y(f,c,h,a,r[_+9],21,-343485551),a=a+b>>>0,f=f+w>>>0,c=c+m>>>0,h=h+v>>>0}return n.endian([a,f,c,h])})._ff=function(t,e,r,n,o,i,s){var u=t+(e&r|~e&n)+(o>>>0)+s;return(u<<i|u>>>32-i)+e},u._gg=function(t,e,r,n,o,i,s){var u=t+(e&n|r&~n)+(o>>>0)+s;return(u<<i|u>>>32-i)+e},u._hh=function(t,e,r,n,o,i,s){var u=t+(e^r^n)+(o>>>0)+s;return(u<<i|u>>>32-i)+e},u._ii=function(t,e,r,n,o,i,s){var u=t+(r^(e|~n))+(o>>>0)+s;return(u<<i|u>>>32-i)+e},u._blocksize=16,u._digestsize=16,t.exports=function(t,e){if(null==t)throw new Error("Illegal argument "+t);var r=n.wordsToBytes(u(t,e));return e&&e.asBytes?r:e&&e.asString?s.bytesToString(r):n.bytesToHex(r)}},function(t,e){var r,n;r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(t,e){return t<<e|t>>>32-e},rotr:function(t,e){return t<<32-e|t>>>e},endian:function(t){if(t.constructor==Number)return 16711935&n.rotl(t,8)|4278255360&n.rotl(t,24);for(var e=0;e<t.length;e++)t[e]=n.endian(t[e]);return t},randomBytes:function(t){for(var e=[];t>0;t--)e.push(Math.floor(256*Math.random()));return e},bytesToWords:function(t){for(var e=[],r=0,n=0;r<t.length;r++,n+=8)e[n>>>5]|=t[r]<<24-n%32;return e},wordsToBytes:function(t){for(var e=[],r=0;r<32*t.length;r+=8)e.push(t[r>>>5]>>>24-r%32&255);return e},bytesToHex:function(t){for(var e=[],r=0;r<t.length;r++)e.push((t[r]>>>4).toString(16)),e.push((15&t[r]).toString(16));return e.join("")},hexToBytes:function(t){for(var e=[],r=0;r<t.length;r+=2)e.push(parseInt(t.substr(r,2),16));return e},bytesToBase64:function(t){for(var e=[],n=0;n<t.length;n+=3)for(var o=t[n]<<16|t[n+1]<<8|t[n+2],i=0;i<4;i++)8*n+6*i<=8*t.length?e.push(r.charAt(o>>>6*(3-i)&63)):e.push("=");return e.join("")},base64ToBytes:function(t){t=t.replace(/[^A-Z0-9+\/]/gi,"");for(var e=[],n=0,o=0;n<t.length;o=++n%4)0!=o&&e.push((r.indexOf(t.charAt(n-1))&Math.pow(2,-2*o+8)-1)<<2*o|r.indexOf(t.charAt(n))>>>6-2*o);return e}},t.exports=n},function(t,e){function r(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}
/*!

@@ -8,2 +8,2 @@ * Determine if an object is a Buffer

*/
t.exports=function(t){return null!=t&&(r(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&r(t.slice(0,0))}(t)||!!t._isBuffer)}},function(t,e,r){"use strict";function n(t){let{from:e,to:r="form",config:n}=t;if(!e||!n)return new Error("缺少必要参数");let o="string"==typeof r?this[r]:r,i="string"==typeof e?this[e]:e;Object.entries(n).forEach(t=>{o[t[0]]=i[t[1]]})}function o(t){return JSON.parse(JSON.stringify(t))}function i(t){let e=window.location.search.substring(1).split("&");if(!e[0]){if(!window.location.hash.substring(1).split("?")[1])return"";e=window.location.hash.substring(1).split("?")[1].split("&")}for(let r=0;r<e.length;r++){let n=e[r].split("=");if(n[0]==t)return n[1]}}function s(t,e,r){if([t,e,r].find(t=>!t))return;let n="",o=t.length,i=r<0?o+r:r,s=i-e;for(s=s>o-e?o-e:s;s--;)n+="*";return`${t.substring(0,e)}${n}${t.substring(i,o)}`}r.r(e);var u={mounted(){window.onpopstate=this.popstateChange,window.history.pushState("forward",null,"#")},destroyed(){window.onpopstate=null}},l=r(1),a=r.n(l);let f={methods:{_copyField:n,_jsonCopy:o,_readUrlQuery:i,_strEncryp:s}};const c={install:t=>{t.mixin(f)},_readFile:function(t){return new Promise(e=>{if(window.FileReader){let r=t.currentTarget?t.currentTarget.files[0]:t,n=new FileReader;n.readAsText(r),n.onload=()=>{e(n.result)}}else if(void 0!==window.ActiveXObject){let r;(r=new ActiveXObject("Microsoft.XMLDOM")).async=!1,e(r.load(t))}else if(document.implementation&&document.implementation.createDocument){let r;(r=document.implementation.createDocument("","",null)).async=!1,e(r.load(t))}})},_copyField:n,_jsonCopy:o,_readUrlQuery:i,_strEncryp:s,_popState:u,_webpackConsole:{fz:[" _ooOoo_ "," o8888888o ",' 88" . "88 '," (| ^_^ |) "," O\\ = /O "," ____/`---'\\____ "," .' \\\\| |// `. "," / \\||| : |||// \\ "," / _||||| -:- |||||- \\ "," | | \\\\\\ - /// | | "," | \\_| ''\\---/'' | | "," \\ .-\\__ `-` ___/-. / "," ___`. .' /--.--\\ `. . ___ "," .'' '< `.___\\_<|>_/___.' >''. "," | | : `- \\`.;`\\ _ /`;.`/ - ` : | | "," \\ \\ `-. \\_ __\\ /__ _/ .-` / / "," ========`-.____`-.___\\_____/___.-`____.-'======== "," `=---=' "," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ "," 佛祖保佑 希望设计和测试永远不找我麻烦 ","////////////////////////////////////////////////////////////////"," 如果写代码不是为了玩,那将毫无意义 ———— Mr.zhou "],ss:[" ┌─┐ ┌─┐"," ┌──┘ ┴───────┘ ┴──┐"," │=================│"," │ ─── │"," │ ─┬┘ └┬─ │"," │ │"," │ ─┴─ │"," │ │"," └───┐ ┌───┘"," │ │"," │ │"," │ │"," │ └──────────────┐"," │ │"," │ ├─┐"," │ ┌─┘"," │ │"," └─┐ ┐ ┌───────┬──┐ ┌──┘"," │ ─┤ ─┤ │ ─┤ ─┤"," └──┴──┘ └──┴──┘"," "," 此时一只草泥马正在路过你的项目。。。","////////////////////////////////////////////////////////////////"," 如果写代码不是为了玩,那将毫无意义 ———— Mr.zhou "]},_vaileFile:class{constructor(t){this.file=t,this.whileMax=Math.floor(t.size/10>10485760?10485760:t.size/10),this.whileNumber=t.size<=10485760?10:Math.ceil(t.size/this.whileMax),this.sliceEnd=Math.floor(10485760/t.size*100/this.whileNumber*this.whileMax),this.sliceEnd=this.whileNumber>10?this.sliceEnd:10485760,this.start=0,this.end=0}async vaildArrayBuffer(){let t=[];for(;this.whileNumber--;){this.start=this.end,this.end=this.end+this.whileMax;let{start:e,end:r,sliceEnd:n,file:o}=this,i=new Promise((t,i)=>{const s=new FileReader;s.readAsArrayBuffer(o.slice(e,r)),s.onload=()=>{t(new Uint8Array(s.result).slice(0,n).join(""))}});t.push(i)}return a()((await Promise.all(t)).join(""))}}};e.default=c}]).default;
t.exports=function(t){return null!=t&&(r(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&r(t.slice(0,0))}(t)||!!t._isBuffer)}},function(t,e,r){"use strict";function n(t){let{from:e,to:r="form",config:n}=t;if(!e||!n)return new Error("缺少必要参数");let o="string"==typeof r?this[r]:r,i="string"==typeof e?this[e]:e;Object.entries(n).forEach(t=>{o[t[0]]=i[t[1]]})}function o(t){return JSON.parse(JSON.stringify(t))}function i(t){let e=window.location.search.substring(1).split("&");if(!e[0]){if(!window.location.hash.substring(1).split("?")[1])return"";e=window.location.hash.substring(1).split("?")[1].split("&")}for(let r=0;r<e.length;r++){let n=e[r].split("=");if(n[0]==t)return n[1]}}function s(t,e,r){if([t,e,r].find(t=>!t))return;let n="",o=t.length,i=r<0?o+r:r,s=i-e;for(s=s>o-e?o-e:s;s--;)n+="*";return`${t.substring(0,e)}${n}${t.substring(i,o)}`}r.r(e);var u={mounted(){window.onpopstate=this.popstateChange,window.history.pushState("forward",null,"#")},destroyed(){window.onpopstate=null}},l=r(1),a=r.n(l);let f={methods:{_copyField:n,_jsonCopy:o,_readUrlQuery:i,_strEncryp:s}};const c={install:t=>{console.log(t),console.log(void 0),t.mixin(f)},_readFile:function(t){return new Promise(e=>{if(window.FileReader){let r=t.currentTarget?t.currentTarget.files[0]:t,n=new FileReader;n.readAsText(r),n.onload=()=>{e(n.result)}}else if(void 0!==window.ActiveXObject){let r;(r=new ActiveXObject("Microsoft.XMLDOM")).async=!1,e(r.load(t))}else if(document.implementation&&document.implementation.createDocument){let r;(r=document.implementation.createDocument("","",null)).async=!1,e(r.load(t))}})},_copyField:n,_jsonCopy:o,_readUrlQuery:i,_strEncryp:s,_popState:u,_webpackConsole:{fz:[" _ooOoo_ "," o8888888o ",' 88" . "88 '," (| ^_^ |) "," O\\ = /O "," ____/`---'\\____ "," .' \\\\| |// `. "," / \\||| : |||// \\ "," / _||||| -:- |||||- \\ "," | | \\\\\\ - /// | | "," | \\_| ''\\---/'' | | "," \\ .-\\__ `-` ___/-. / "," ___`. .' /--.--\\ `. . ___ "," .'' '< `.___\\_<|>_/___.' >''. "," | | : `- \\`.;`\\ _ /`;.`/ - ` : | | "," \\ \\ `-. \\_ __\\ /__ _/ .-` / / "," ========`-.____`-.___\\_____/___.-`____.-'======== "," `=---=' "," ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ "," 佛祖保佑 希望设计和测试永远不找我麻烦 ","////////////////////////////////////////////////////////////////"," 如果写代码不是为了玩,那将毫无意义 ———— Mr.zhou "],ss:[" ┌─┐ ┌─┐"," ┌──┘ ┴───────┘ ┴──┐"," │=================│"," │ ─── │"," │ ─┬┘ └┬─ │"," │ │"," │ ─┴─ │"," │ │"," └───┐ ┌───┘"," │ │"," │ │"," │ │"," │ └──────────────┐"," │ │"," │ ├─┐"," │ ┌─┘"," │ │"," └─┐ ┐ ┌───────┬──┐ ┌──┘"," │ ─┤ ─┤ │ ─┤ ─┤"," └──┴──┘ └──┴──┘"," "," 此时一只草泥马正在路过你的项目。。。","////////////////////////////////////////////////////////////////"," 如果写代码不是为了玩,那将毫无意义 ———— Mr.zhou "]},_vaileFile:class{constructor(t){this.file=t,this.whileMax=Math.floor(t.size/10>10485760?10485760:t.size/10),this.whileNumber=t.size<=10485760?10:Math.ceil(t.size/this.whileMax),this.sliceEnd=Math.floor(10485760/t.size*100/this.whileNumber*this.whileMax),this.sliceEnd=this.whileNumber>10?this.sliceEnd:10485760,this.start=0,this.end=0}async vaildArrayBuffer(){let t=[];for(;this.whileNumber--;){this.start=this.end,this.end=this.end+this.whileMax;let{start:e,end:r,sliceEnd:n,file:o}=this,i=new Promise((t,i)=>{const s=new FileReader;s.readAsArrayBuffer(o.slice(e,r)),s.onload=()=>{t(new Uint8Array(s.result).slice(0,n).join(""))}});t.push(i)}return a()((await Promise.all(t)).join(""))}}};e.default=c}]).default;
{
"name": "zjsmethods",
"version": "1.4.9",
"version": "1.5.0",
"keywords": [

@@ -5,0 +5,0 @@ "zjs",