botbook/node_modules/pem/dist/index.js

9 lines
38 KiB
JavaScript
Raw Normal View History

2024-09-04 13:13:15 -03:00
require('./sourcemap-register.js');(()=>{var e={421:e=>{var r={utf8:{stringToBytes:function(e){return r.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(r.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var r=[],t=0;t<e.length;t++)r.push(e.charCodeAt(t)&255);return r},bytesToString:function(e){for(var r=[],t=0;t<e.length;t++)r.push(String.fromCharCode(e[t]));return r.join("")}}};e.exports=r},935:e=>{(function(){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t={rotl:function(e,r){return e<<r|e>>>32-r},rotr:function(e,r){return e<<32-r|e>>>r},endian:function(e){if(e.constructor==Number){return t.rotl(e,8)&16711935|t.rotl(e,24)&4278255360}for(var r=0;r<e.length;r++)e[r]=t.endian(e[r]);return e},randomBytes:function(e){for(var r=[];e>0;e--)r.push(Math.floor(Math.random()*256));return r},bytesToWords:function(e){for(var r=[],t=0,n=0;t<e.length;t++,n+=8)r[n>>>5]|=e[t]<<24-n%32;return r},wordsToBytes:function(e){for(var r=[],t=0;t<e.length*32;t+=8)r.push(e[t>>>5]>>>24-t%32&255);return r},bytesToHex:function(e){for(var r=[],t=0;t<e.length;t++){r.push((e[t]>>>4).toString(16));r.push((e[t]&15).toString(16))}return r.join("")},hexToBytes:function(e){for(var r=[],t=0;t<e.length;t+=2)r.push(parseInt(e.substr(t,2),16));return r},bytesToBase64:function(e){for(var t=[],n=0;n<e.length;n+=3){var s=e[n]<<16|e[n+1]<<8|e[n+2];for(var i=0;i<4;i++)if(n*8+i*6<=e.length*8)t.push(r.charAt(s>>>6*(3-i)&63));else t.push("=")}return t.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var t=[],n=0,s=0;n<e.length;s=++n%4){if(s==0)continue;t.push((r.indexOf(e.charAt(n-1))&Math.pow(2,-2*s+8)-1)<<s*2|r.indexOf(e.charAt(n))>>>6-s*2)}return t}};e.exports=t})()},525:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.promisify=promisify;var t="__ES6-PROMISIFY--CUSTOM-ARGUMENTS__";function promisify(e){if("function"!=typeof e)throw new TypeError("Argument to promisify must be a function");var r=e[t],n=promisify.Promise||Promise;if("function"!=typeof n)throw new Error("No Promise implementation found; do you need a polyfill?");return function(){for(var t=this,s=arguments.length,i=Array(s),o=0;o<s;o++)i[o]=arguments[o];return new n((function(n,s){i.push((function(e){if(e)return s(e);for(var t=arguments.length,i=Array(1<t?t-1:0),o=1;o<t;o++)i[o-1]=arguments[o];if(1===i.length||!r)return n(i[0]);var a={};i.forEach((function(e,t){var n=r[t];n&&(a[n]=e)})),n(a)})),e.apply(t,i)}))}}promisify.argumentNames="__ES6-PROMISIFY--CUSTOM-ARGUMENTS__",promisify.Promise=void 0},625:e=>{
/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/
e.exports=function(e){return e!=null&&(isBuffer(e)||isSlowBuffer(e)||!!e._isBuffer)};function isBuffer(e){return!!e.constructor&&typeof e.constructor.isBuffer==="function"&&e.constructor.isBuffer(e)}function isSlowBuffer(e){return typeof e.readFloatLE==="function"&&typeof e.slice==="function"&&isBuffer(e.slice(0,0))}},126:(e,r,t)=>{var n=t(147);var s;if(process.platform==="win32"||global.TESTING_WINDOWS){s=t(1)}else{s=t(728)}e.exports=isexe;isexe.sync=sync;function isexe(e,r,t){if(typeof r==="function"){t=r;r={}}if(!t){if(typeof Promise!=="function"){throw new TypeError("callback not provided")}return new Promise((function(t,n){isexe(e,r||{},(function(e,r){if(e){n(e)}else{t(r)}}))}))}s(e,r||{},(function(e,n){if(e){if(e.code==="EACCES"||r&&r.ignoreErrors){e=null;n=false}}t(e,n)}))}function sync(e,r){try{return s.sync(e,r||{})}catch(e){if(r&&r.ignoreErrors||e.code==="EACCES"){return false}else{throw e}}}},728:(e,r,t)=>{e.exports=isexe;isexe.sync=sync;var n=t(147);function isexe(e,r,t){n.stat(e,(function(e,n){t(e,e?false:checkStat(n,r))}))}function sync(e,r){return checkStat(n.statSync(e),r)}function checkStat(e,r){return e.isFile()&&checkMode(e,r)}function checkMode(e,r){var t=e.mode;var n=e.uid;var s=e.gid;var i=r.uid!==undefined?r.uid:process.getuid&&process.getuid();var o=r.gid!==undefined?r.gid:process.getgid&&process.getgid();var a=parseInt("100",8);var c=parseInt("010",8);var u=parseInt("001",8);var f=a|c;var p=t&u||t&c&&s===o||t&a&&n===i||t&f&&i===0;return p}},1:(e,r,t)=>{e.exports=isexe;isexe.sync=sync;var n=t(147);function checkPathExt(e,r){var t=r.pathExt!==undefined?r.pathExt:process.env.PATHEXT;if(!t){return true}t=t.split(";");if(t.indexOf("")!==-1){return true}for(var n=0;n<t.length;n++){var s=t[n].toLowerCase();if(s&&e.substr(-s.length).toLowerCase()===s){return true}}return false}function checkStat(e,r,t){if(!e.isSymbolicLink()&&!e.isFile()){return false}return checkPathExt(r,t)}function isexe(e,r,t){n.stat(e,(function(n,s){t(n,n?false:checkStat(s,e,r))}))}function sync(e,r){return checkStat(n.statSync(e),e,r)}},711:(e,r,t)=>{(function(){var r=t(935),n=t(421).utf8,s=t(625),i=t(421).bin,md5=function(e,t){if(e.constructor==String)if(t&&t.encoding==="binary")e=i.stringToBytes(e);else e=n.stringToBytes(e);else if(s(e))e=Array.prototype.slice.call(e,0);else if(!Array.isArray(e)&&e.constructor!==Uint8Array)e=e.toString();var o=r.bytesToWords(e),a=e.length*8,c=1732584193,u=-271733879,f=-1732584194,p=271733878;for(var l=0;l<o.length;l++){o[l]=(o[l]<<8|o[l]>>>24)&16711935|(o[l]<<24|o[l]>>>8)&4278255360}o[a>>>5]|=128<<a%32;o[(a+64>>>9<<4)+14]=a;var d=md5._ff,h=md5._gg,g=md5._hh,v=md5._ii;for(var l=0;l<o.length;l+=16){var y=c,m=u,E=f,P=p;c=d(c,u,f,p,o[l+0],7,-680876936);p=d(p,c,u,f,o[l+1],12,-389564586);f=d(f,p,c,u,o[l+2],17,606105819);u=d(u,f,p,c,o[l+3],22,-1044525330);c=d(c,u,f,p,o[l+4],7,-176418897);p=d(p,c,u,f,o[l+5],12,1200080426);f=d(f,p,c,u,o[l+6],17,-1473231341);u=d(u,f,p,c,o[l+7],22,-45705983);c=d(c,u,f,p,o[l+8],7,1770035416);p=d(p,c,u,f,o[l+9],12,-1958414417);f=d(f,p,c,u,o[l+10],17,-42063);u=d(u,f,p,c,o[l+11],22,-1990404162);c=d(c,u,f,p,o[l+12],7,1804603682);p=d(p,c,u,f,o[l+13],12,-40341101);f=d(f,p,c,u,o[l+14],17,-1502002290);u=d(u,f,p,c,o[l+15],22,1236535329);c=h(c,u,f,p,o[l+1],5,-165796510);p=h(p,c,u,f,o[l+6],9,-1069501632);f=h(f,p,c,u,o[l+11],14,643717713);u=h(u,f,p,c,o[l+0],20,-373897302);c=h(c,u,f,p,o[l+5],5,-701558691);p=h(p,c,u,f,o[l+10],9,38016083);f=h(f,p,c,u,o[l+15],14,-660478335);u=h(u,f,p,c,o[l+4],20,-405537848);c=h(c,u,f,p,o[l+9],5,568446438);p=h(p,c,u,f,o[l+14],9,-1019803690);f=h(f,p,c,u,o[l+3],14,-187363961);u=h(u,f,p,c,o[l+8],20,1163531501);c=h(c,u,f,p,o[l+13],5,-1444681467);p=h(p,c,u,f,o[l+2],9,-51403784);f=h(f,p,c,u,o[l+7],14,1735328473);u=h(u,f,p,c,o[l+12],20,-1926607734);c=g(c,u,f,p,o[l+5],4,-378558);p=g(p,c,u,f,o[l+8],11,-2022574463);f=g(f,p,c,u,o[l+11],16,1839030562);u=g(u,f,p,c,o[l+14],23,-35309556);c=g(c,u,f,p,o[l+1],4,-1530992060);p=g(p,c,u,f,o[l+4],11,1272893353);f=g(f,p,c,u,o[l+7],16,-155497632);u=g(u,f,p,c,o[l+10],23,-1094730640);c=g(c,u,f,p,o[l+13],4,681279174);p=g(p,c,u,f,o[l+
//# sourceMappingURL=index.js.map