"use strict";exports.id=5663,exports.ids=[5663],exports.modules={85663:(x,e,f)=>{f.d(e,{Ay:()=>k});var a=f(55511),c=null;function b(x,e){if("number"!=typeof(x=x||g))throw Error("Illegal arguments: "+typeof x+", "+typeof e);x<4?x=4:x>31&&(x=31);var f=[];return f.push("$2b$"),x<10&&f.push("0"),f.push(x.toString()),f.push("$"),f.push(l(function(x){try{return crypto.getRandomValues(new Uint8Array(x))}catch{}try{return a.randomBytes(x)}catch{}if(!c)throw Error("Neither WebCryptoAPI nor a crypto module is available. Use bcrypt.setRandomFallback to set an alternative");return c(x)}(p),p)),f.join("")}function d(x,e,f){if("function"==typeof e&&(f=e,e=void 0),"function"==typeof x&&(f=x,x=void 0),void 0===x)x=g;else if("number"!=typeof x)throw Error("illegal arguments: "+typeof x);function a(e){o(function(){try{e(null,b(x))}catch(x){e(x)}})}if(!f)return new Promise(function(x,e){a(function(f,a){if(f)return void e(f);x(a)})});if("function"!=typeof f)throw Error("Illegal callback: "+typeof f);a(f)}function r(x,e){if(void 0===e&&(e=g),"number"==typeof e&&(e=b(e)),"string"!=typeof x||"string"!=typeof e)throw Error("Illegal arguments: "+typeof x+", "+typeof e);return C(x,e)}function t(x,e,f,a){function c(f){"string"==typeof x&&"number"==typeof e?d(e,function(e,c){C(x,c,f,a)}):"string"==typeof x&&"string"==typeof e?C(x,e,f,a):o(f.bind(this,Error("Illegal arguments: "+typeof x+", "+typeof e)))}if(!f)return new Promise(function(x,e){c(function(f,a){if(f)return void e(f);x(a)})});if("function"!=typeof f)throw Error("Illegal callback: "+typeof f);c(f)}function n(x,e){for(var f=x.length^e.length,a=0;ax.length)throw Error("Illegal len: "+e);for(;c>2&63]),f=(3&f)<<4,c>=e||(f|=(a=255&x[c++])>>4&15,b.push(u[63&f]),f=(15&a)<<2,c>=e)){b.push(u[63&f]);break}f|=(a=255&x[c++])>>6&3,b.push(u[63&f]),b.push(u[63&a])}return b.join("")}function h(x,e){var f,a,c,b,d,r=0,t=x.length,n=0,o=[];if(e<=0)throw Error("Illegal len: "+e);for(;r>>0|(48&a)>>4,o.push(String.fromCharCode(b)),!(++n>=e||r>=t||-1==(c=(d=x.charCodeAt(r++))>>0|(60&c)>>2,o.push(String.fromCharCode(b)),++n>=e||r>=t)));){;b=(3&c)<<6>>>0|((d=x.charCodeAt(r++))>>24]+a[256|b>>16&255]^a[512|b>>8&255])+a[768|255&b]^f[1],b^=(a[d>>>24]+a[256|d>>16&255]^a[512|d>>8&255])+a[768|255&d]^f[2],d^=(a[b>>>24]+a[256|b>>16&255]^a[512|b>>8&255])+a[768|255&b]^f[3],b^=(a[d>>>24]+a[256|d>>16&255]^a[512|d>>8&255])+a[768|255&d]^f[4],d^=(a[b>>>24]+a[256|b>>16&255]^a[512|b>>8&255])+a[768|255&b]^f[5],b^=(a[d>>>24]+a[256|d>>16&255]^a[512|d>>8&255])+a[768|255&d]^f[6],d^=(a[b>>>24]+a[256|b>>16&255]^a[512|b>>8&255])+a[768|255&b]^f[7],b^=(a[d>>>24]+a[256|d>>16&255]^a[512|d>>8&255])+a[768|255&d]^f[8],d^=(a[b>>>24]+a[256|b>>16&255]^a[512|b>>8&255])+a[768|255&b]^f[9],b^=(a[d>>>24]+a[256|d>>16&255]^a[512|d>>8&255])+a[768|255&d]^f[10],d^=(a[b>>>24]+a[256|b>>16&255]^a[512|b>>8&255])+a[768|255&b]^f[11],b^=(a[d>>>24]+a[256|d>>16&255]^a[512|d>>8&255])+a[768|255&d]^f[12],d^=(a[b>>>24]+a[256|b>>16&255]^a[512|b>>8&255])+a[768|255&b]^f[13],b^=(a[d>>>24]+a[256|d>>16&255]^a[512|d>>8&255])+a[768|255&d]^f[14],d^=(a[b>>>24]+a[256|b>>16&255]^a[512|b>>8&255])+a[768|255&b]^f[15],b^=(a[d>>>24]+a[256|d>>16&255]^a[512|d>>8&255])+a[768|255&d]^f[16],x[e]=d^f[17],x[e+1]=b,x}function I(x,e){for(var f=0,a=0;f<4;++f)a=a<<8|255&x[e],e=(e+1)%x.length;return{key:a,offp:e}}function A(x,e,f){for(var a,c=0,b=[0,0],d=e.length,r=f.length,t=0;t31){if(d=Error("Illegal number of rounds (4-31): "+f),a)return void o(a.bind(this,d));throw d}if(e.length!==p){if(d=Error("Illegal salt length: "+e.length+" != "+p),a)return void o(a.bind(this,d));throw d}f=1<>>0;var n,i,u,s=0;function l(){if(c&&c(s/f),s100)););else{for(s=0;s<64;s++)for(u=0;u>1;u++)w(r,u<<1,n,i);var d=[];for(s=0;s>24&255)>>>0),d.push((r[s]>>16&255)>>>0),d.push((r[s]>>8&255)>>>0),d.push((255&r[s])>>>0);return a?void a(null,d):d}a&&o(l)}if("function"==typeof Int32Array?(n=new Int32Array(y),i=new Int32Array(v)):(n=y.slice(),i=v.slice()),!function(x,e,f,a){for(var c,b=0,d=[0,0],r=f.length,t=a.length,n=0;n"$"){if(c=Error("Missing salt rounds"),f)return void o(f.bind(this,c));throw c}var c,b,d,r=10*parseInt(e.substring(d,d+1),10)+parseInt(e.substring(d+1,d+2),10),t=e.substring(d+3,d+25),n=function(x){for(var e,f,a=0,c=Array(i(x)),b=0,d=x.length;b>6|192:((64512&e)==55296&&(64512&(f=x.charCodeAt(b+1)))==56320?(e=65536+((1023&e)<<10)+(1023&f),++b,c[a++]=e>>18|240,c[a++]=e>>12&63|128):c[a++]=e>>12|224,c[a++]=e>>6&63|128),c[a++]=63&e|128);return c}(x+=b>="a"?"\0":""),u=h(t,p);function s(x){var e=[];return e.push("$2"),b>="a"&&e.push(b),e.push("$"),r<10&&e.push("0"),e.push(r.toString()),e.push("$"),e.push(l(u,u.length)),e.push(l(x,4*m.length-1)),e.join("")}if(void 0===f)return s(E(n,u,r));E(n,u,r,function(x,e){x?f(x,null):f(null,s(e))},a)}let k={setRandomFallback:function(x){c=x},genSaltSync:b,genSalt:d,hashSync:r,hash:t,compareSync:function(x,e){if("string"!=typeof x||"string"!=typeof e)throw Error("Illegal arguments: "+typeof x+", "+typeof e);return 60===e.length&&n(r(x,e.substring(0,e.length-31)),e)},compare:function(x,e,f,a){function c(f){return"string"!=typeof x||"string"!=typeof e?void o(f.bind(this,Error("Illegal arguments: "+typeof x+", "+typeof e))):60!==e.length?void o(f.bind(this,null,!1)):void t(x,e.substring(0,29),function(x,a){x?f(x):f(null,n(a,e))},a)}if(!f)return new Promise(function(x,e){c(function(f,a){if(f)return void e(f);x(a)})});if("function"!=typeof f)throw Error("Illegal callback: "+typeof f);c(f)},getRounds:function(x){if("string"!=typeof x)throw Error("Illegal arguments: "+typeof x);return parseInt(x.split("$")[2],10)},getSalt:function(x){if("string"!=typeof x)throw Error("Illegal arguments: "+typeof x);if(60!==x.length)throw Error("Illegal hash length: "+x.length+" != 60");return x.substring(0,29)},truncates:function(x){if("string"!=typeof x)throw Error("Illegal arguments: "+typeof x);return i(x)>72},encodeBase64:function(x,e){return l(x,e)},decodeBase64:function(x,e){return h(x,e)}}}};