@hysc/external
Version:
Boom external js sdk
1 lines • 114 kB
JavaScript
"use strict";(()=>{var Co=Object.create;var De=Object.defineProperty,Uo=Object.defineProperties,ko=Object.getOwnPropertyDescriptor,Ao=Object.getOwnPropertyDescriptors,Oo=Object.getOwnPropertyNames,Br=Object.getOwnPropertySymbols,qo=Object.getPrototypeOf,_r=Object.prototype.hasOwnProperty,Lo=Object.prototype.propertyIsEnumerable;var R=Math.pow,Er=(r,e,t)=>e in r?De(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,xr=(r,e)=>{for(var t in e||(e={}))_r.call(e,t)&&Er(r,t,e[t]);if(Br)for(var t of Br(e))Lo.call(e,t)&&Er(r,t,e[t]);return r},Tr=(r,e)=>Uo(r,Ao(e));var Do=(r,e)=>()=>(r&&(e=r(r=0)),e);var U=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),No=(r,e)=>{for(var t in e)De(r,t,{get:e[t],enumerable:!0})},Sr=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Oo(e))!_r.call(r,n)&&n!==t&&De(r,n,{get:()=>e[n],enumerable:!(i=ko(e,n))||i.enumerable});return r};var Qe=(r,e,t)=>(t=r!=null?Co(qo(r)):{},Sr(e||!r||!r.__esModule?De(t,"default",{value:r,enumerable:!0}):t,r)),Jo=r=>Sr(De({},"__esModule",{value:!0}),r);var Xe=(r,e,t)=>new Promise((i,n)=>{var o=h=>{try{f(t.next(h))}catch(m){n(m)}},s=h=>{try{f(t.throw(h))}catch(m){n(m)}},f=h=>h.done?i(h.value):Promise.resolve(h.value).then(o,s);f((t=t.apply(r,e)).next())});var kr=U(et=>{"use strict";et.byteLength=jo;et.toByteArray=Ho;et.fromByteArray=Zo;var fe=[],ie=[],zo=typeof Uint8Array!="undefined"?Uint8Array:Array,Jt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Se=0,Cr=Jt.length;Se<Cr;++Se)fe[Se]=Jt[Se],ie[Jt.charCodeAt(Se)]=Se;var Se,Cr;ie["-".charCodeAt(0)]=62;ie["_".charCodeAt(0)]=63;function Ur(r){var e=r.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=r.indexOf("=");t===-1&&(t=e);var i=t===e?0:4-t%4;return[t,i]}function jo(r){var e=Ur(r),t=e[0],i=e[1];return(t+i)*3/4-i}function $o(r,e,t){return(e+t)*3/4-t}function Ho(r){var e,t=Ur(r),i=t[0],n=t[1],o=new zo($o(r,i,n)),s=0,f=n>0?i-4:i,h;for(h=0;h<f;h+=4)e=ie[r.charCodeAt(h)]<<18|ie[r.charCodeAt(h+1)]<<12|ie[r.charCodeAt(h+2)]<<6|ie[r.charCodeAt(h+3)],o[s++]=e>>16&255,o[s++]=e>>8&255,o[s++]=e&255;return n===2&&(e=ie[r.charCodeAt(h)]<<2|ie[r.charCodeAt(h+1)]>>4,o[s++]=e&255),n===1&&(e=ie[r.charCodeAt(h)]<<10|ie[r.charCodeAt(h+1)]<<4|ie[r.charCodeAt(h+2)]>>2,o[s++]=e>>8&255,o[s++]=e&255),o}function Go(r){return fe[r>>18&63]+fe[r>>12&63]+fe[r>>6&63]+fe[r&63]}function Wo(r,e,t){for(var i,n=[],o=e;o<t;o+=3)i=(r[o]<<16&16711680)+(r[o+1]<<8&65280)+(r[o+2]&255),n.push(Go(i));return n.join("")}function Zo(r){for(var e,t=r.length,i=t%3,n=[],o=16383,s=0,f=t-i;s<f;s+=o)n.push(Wo(r,s,s+o>f?f:s+o));return i===1?(e=r[t-1],n.push(fe[e>>2]+fe[e<<4&63]+"==")):i===2&&(e=(r[t-2]<<8)+r[t-1],n.push(fe[e>>10]+fe[e>>4&63]+fe[e<<2&63]+"=")),n.join("")}});var Ar=U(Kt=>{"use strict";Kt.read=function(r,e,t,i,n){var o,s,f=n*8-i-1,h=(1<<f)-1,m=h>>1,I=-7,g=t?n-1:0,_=t?-1:1,w=r[e+g];for(g+=_,o=w&(1<<-I)-1,w>>=-I,I+=f;I>0;o=o*256+r[e+g],g+=_,I-=8);for(s=o&(1<<-I)-1,o>>=-I,I+=i;I>0;s=s*256+r[e+g],g+=_,I-=8);if(o===0)o=1-m;else{if(o===h)return s?NaN:(w?-1:1)*(1/0);s=s+Math.pow(2,i),o=o-m}return(w?-1:1)*s*Math.pow(2,o-i)};Kt.write=function(r,e,t,i,n,o){var s,f,h,m=o*8-n-1,I=(1<<m)-1,g=I>>1,_=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=i?0:o-1,S=i?1:-1,P=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(f=isNaN(e)?1:0,s=I):(s=Math.floor(Math.log(e)/Math.LN2),e*(h=Math.pow(2,-s))<1&&(s--,h*=2),s+g>=1?e+=_/h:e+=_*Math.pow(2,1-g),e*h>=2&&(s++,h/=2),s+g>=I?(f=0,s=I):s+g>=1?(f=(e*h-1)*Math.pow(2,n),s=s+g):(f=e*Math.pow(2,g-1)*Math.pow(2,n),s=0));n>=8;r[t+w]=f&255,w+=S,f/=256,n-=8);for(s=s<<n|f,m+=n;m>0;r[t+w]=s&255,w+=S,s/=256,m-=8);r[t+w-S]|=P*128}});var it=U(Ae=>{"use strict";var Vt=kr(),Ue=Ar(),Or=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Ae.Buffer=p;Ae.SlowBuffer=rs;Ae.INSPECT_MAX_BYTES=50;var tt=2147483647;Ae.kMaxLength=tt;p.TYPED_ARRAY_SUPPORT=Yo();!p.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Yo(){try{let r=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(r,e),r.foo()===42}catch(r){return!1}}Object.defineProperty(p.prototype,"parent",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.buffer}});Object.defineProperty(p.prototype,"offset",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.byteOffset}});function ge(r){if(r>tt)throw new RangeError('The value "'+r+'" is invalid for option "size"');let e=new Uint8Array(r);return Object.setPrototypeOf(e,p.prototype),e}function p(r,e,t){if(typeof r=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Ht(r)}return Nr(r,e,t)}p.poolSize=8192;function Nr(r,e,t){if(typeof r=="string")return Xo(r,e);if(ArrayBuffer.isView(r))return es(r);if(r==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r);if(le(r,ArrayBuffer)||r&&le(r.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(le(r,SharedArrayBuffer)||r&&le(r.buffer,SharedArrayBuffer)))return jt(r,e,t);if(typeof r=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let i=r.valueOf&&r.valueOf();if(i!=null&&i!==r)return p.from(i,e,t);let n=ts(r);if(n)return n;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof r[Symbol.toPrimitive]=="function")return p.from(r[Symbol.toPrimitive]("string"),e,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r)}p.from=function(r,e,t){return Nr(r,e,t)};Object.setPrototypeOf(p.prototype,Uint8Array.prototype);Object.setPrototypeOf(p,Uint8Array);function Jr(r){if(typeof r!="number")throw new TypeError('"size" argument must be of type number');if(r<0)throw new RangeError('The value "'+r+'" is invalid for option "size"')}function Qo(r,e,t){return Jr(r),r<=0?ge(r):e!==void 0?typeof t=="string"?ge(r).fill(e,t):ge(r).fill(e):ge(r)}p.alloc=function(r,e,t){return Qo(r,e,t)};function Ht(r){return Jr(r),ge(r<0?0:Gt(r)|0)}p.allocUnsafe=function(r){return Ht(r)};p.allocUnsafeSlow=function(r){return Ht(r)};function Xo(r,e){if((typeof e!="string"||e==="")&&(e="utf8"),!p.isEncoding(e))throw new TypeError("Unknown encoding: "+e);let t=Kr(r,e)|0,i=ge(t),n=i.write(r,e);return n!==t&&(i=i.slice(0,n)),i}function zt(r){let e=r.length<0?0:Gt(r.length)|0,t=ge(e);for(let i=0;i<e;i+=1)t[i]=r[i]&255;return t}function es(r){if(le(r,Uint8Array)){let e=new Uint8Array(r);return jt(e.buffer,e.byteOffset,e.byteLength)}return zt(r)}function jt(r,e,t){if(e<0||r.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(r.byteLength<e+(t||0))throw new RangeError('"length" is outside of buffer bounds');let i;return e===void 0&&t===void 0?i=new Uint8Array(r):t===void 0?i=new Uint8Array(r,e):i=new Uint8Array(r,e,t),Object.setPrototypeOf(i,p.prototype),i}function ts(r){if(p.isBuffer(r)){let e=Gt(r.length)|0,t=ge(e);return t.length===0||r.copy(t,0,0,e),t}if(r.length!==void 0)return typeof r.length!="number"||Zt(r.length)?ge(0):zt(r);if(r.type==="Buffer"&&Array.isArray(r.data))return zt(r.data)}function Gt(r){if(r>=tt)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+tt.toString(16)+" bytes");return r|0}function rs(r){return+r!=r&&(r=0),p.alloc(+r)}p.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==p.prototype};p.compare=function(e,t){if(le(e,Uint8Array)&&(e=p.from(e,e.offset,e.byteLength)),le(t,Uint8Array)&&(t=p.from(t,t.offset,t.byteLength)),!p.isBuffer(e)||!p.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let i=e.length,n=t.length;for(let o=0,s=Math.min(i,n);o<s;++o)if(e[o]!==t[o]){i=e[o],n=t[o];break}return i<n?-1:n<i?1:0};p.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};p.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return p.alloc(0);let i;if(t===void 0)for(t=0,i=0;i<e.length;++i)t+=e[i].length;let n=p.allocUnsafe(t),o=0;for(i=0;i<e.length;++i){let s=e[i];if(le(s,Uint8Array))o+s.length>n.length?(p.isBuffer(s)||(s=p.from(s)),s.copy(n,o)):Uint8Array.prototype.set.call(n,s,o);else if(p.isBuffer(s))s.copy(n,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=s.length}return n};function Kr(r,e){if(p.isBuffer(r))return r.length;if(ArrayBuffer.isView(r)||le(r,ArrayBuffer))return r.byteLength;if(typeof r!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof r);let t=r.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&t===0)return 0;let n=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return $t(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return Yr(r).length;default:if(n)return i?-1:$t(r).length;e=(""+e).toLowerCase(),n=!0}}p.byteLength=Kr;function is(r,e,t){let i=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,e>>>=0,t<=e))return"";for(r||(r="utf8");;)switch(r){case"hex":return ps(this,e,t);case"utf8":case"utf-8":return zr(this,e,t);case"ascii":return ls(this,e,t);case"latin1":case"binary":return hs(this,e,t);case"base64":return cs(this,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ms(this,e,t);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),i=!0}}p.prototype._isBuffer=!0;function Pe(r,e,t){let i=r[e];r[e]=r[t],r[t]=i}p.prototype.swap16=function(){let e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)Pe(this,t,t+1);return this};p.prototype.swap32=function(){let e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)Pe(this,t,t+3),Pe(this,t+1,t+2);return this};p.prototype.swap64=function(){let e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)Pe(this,t,t+7),Pe(this,t+1,t+6),Pe(this,t+2,t+5),Pe(this,t+3,t+4);return this};p.prototype.toString=function(){let e=this.length;return e===0?"":arguments.length===0?zr(this,0,e):is.apply(this,arguments)};p.prototype.toLocaleString=p.prototype.toString;p.prototype.equals=function(e){if(!p.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:p.compare(this,e)===0};p.prototype.inspect=function(){let e="",t=Ae.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"};Or&&(p.prototype[Or]=p.prototype.inspect);p.prototype.compare=function(e,t,i,n,o){if(le(e,Uint8Array)&&(e=p.from(e,e.offset,e.byteLength)),!p.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),i===void 0&&(i=e?e.length:0),n===void 0&&(n=0),o===void 0&&(o=this.length),t<0||i>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=i)return 0;if(n>=o)return-1;if(t>=i)return 1;if(t>>>=0,i>>>=0,n>>>=0,o>>>=0,this===e)return 0;let s=o-n,f=i-t,h=Math.min(s,f),m=this.slice(n,o),I=e.slice(t,i);for(let g=0;g<h;++g)if(m[g]!==I[g]){s=m[g],f=I[g];break}return s<f?-1:f<s?1:0};function Vr(r,e,t,i,n){if(r.length===0)return-1;if(typeof t=="string"?(i=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,Zt(t)&&(t=n?0:r.length-1),t<0&&(t=r.length+t),t>=r.length){if(n)return-1;t=r.length-1}else if(t<0)if(n)t=0;else return-1;if(typeof e=="string"&&(e=p.from(e,i)),p.isBuffer(e))return e.length===0?-1:qr(r,e,t,i,n);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(r,e,t):Uint8Array.prototype.lastIndexOf.call(r,e,t):qr(r,[e],t,i,n);throw new TypeError("val must be string, number or Buffer")}function qr(r,e,t,i,n){let o=1,s=r.length,f=e.length;if(i!==void 0&&(i=String(i).toLowerCase(),i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")){if(r.length<2||e.length<2)return-1;o=2,s/=2,f/=2,t/=2}function h(I,g){return o===1?I[g]:I.readUInt16BE(g*o)}let m;if(n){let I=-1;for(m=t;m<s;m++)if(h(r,m)===h(e,I===-1?0:m-I)){if(I===-1&&(I=m),m-I+1===f)return I*o}else I!==-1&&(m-=m-I),I=-1}else for(t+f>s&&(t=s-f),m=t;m>=0;m--){let I=!0;for(let g=0;g<f;g++)if(h(r,m+g)!==h(e,g)){I=!1;break}if(I)return m}return-1}p.prototype.includes=function(e,t,i){return this.indexOf(e,t,i)!==-1};p.prototype.indexOf=function(e,t,i){return Vr(this,e,t,i,!0)};p.prototype.lastIndexOf=function(e,t,i){return Vr(this,e,t,i,!1)};function ns(r,e,t,i){t=Number(t)||0;let n=r.length-t;i?(i=Number(i),i>n&&(i=n)):i=n;let o=e.length;i>o/2&&(i=o/2);let s;for(s=0;s<i;++s){let f=parseInt(e.substr(s*2,2),16);if(Zt(f))return s;r[t+s]=f}return s}function os(r,e,t,i){return rt($t(e,r.length-t),r,t,i)}function ss(r,e,t,i){return rt(Is(e),r,t,i)}function as(r,e,t,i){return rt(Yr(e),r,t,i)}function us(r,e,t,i){return rt(ws(e,r.length-t),r,t,i)}p.prototype.write=function(e,t,i,n){if(t===void 0)n="utf8",i=this.length,t=0;else if(i===void 0&&typeof t=="string")n=t,i=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(i)?(i=i>>>0,n===void 0&&(n="utf8")):(n=i,i=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let o=this.length-t;if((i===void 0||i>o)&&(i=o),e.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let s=!1;for(;;)switch(n){case"hex":return ns(this,e,t,i);case"utf8":case"utf-8":return os(this,e,t,i);case"ascii":case"latin1":case"binary":return ss(this,e,t,i);case"base64":return as(this,e,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return us(this,e,t,i);default:if(s)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),s=!0}};p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function cs(r,e,t){return e===0&&t===r.length?Vt.fromByteArray(r):Vt.fromByteArray(r.slice(e,t))}function zr(r,e,t){t=Math.min(r.length,t);let i=[],n=e;for(;n<t;){let o=r[n],s=null,f=o>239?4:o>223?3:o>191?2:1;if(n+f<=t){let h,m,I,g;switch(f){case 1:o<128&&(s=o);break;case 2:h=r[n+1],(h&192)===128&&(g=(o&31)<<6|h&63,g>127&&(s=g));break;case 3:h=r[n+1],m=r[n+2],(h&192)===128&&(m&192)===128&&(g=(o&15)<<12|(h&63)<<6|m&63,g>2047&&(g<55296||g>57343)&&(s=g));break;case 4:h=r[n+1],m=r[n+2],I=r[n+3],(h&192)===128&&(m&192)===128&&(I&192)===128&&(g=(o&15)<<18|(h&63)<<12|(m&63)<<6|I&63,g>65535&&g<1114112&&(s=g))}}s===null?(s=65533,f=1):s>65535&&(s-=65536,i.push(s>>>10&1023|55296),s=56320|s&1023),i.push(s),n+=f}return fs(i)}var Lr=4096;function fs(r){let e=r.length;if(e<=Lr)return String.fromCharCode.apply(String,r);let t="",i=0;for(;i<e;)t+=String.fromCharCode.apply(String,r.slice(i,i+=Lr));return t}function ls(r,e,t){let i="";t=Math.min(r.length,t);for(let n=e;n<t;++n)i+=String.fromCharCode(r[n]&127);return i}function hs(r,e,t){let i="";t=Math.min(r.length,t);for(let n=e;n<t;++n)i+=String.fromCharCode(r[n]);return i}function ps(r,e,t){let i=r.length;(!e||e<0)&&(e=0),(!t||t<0||t>i)&&(t=i);let n="";for(let o=e;o<t;++o)n+=vs[r[o]];return n}function ms(r,e,t){let i=r.slice(e,t),n="";for(let o=0;o<i.length-1;o+=2)n+=String.fromCharCode(i[o]+i[o+1]*256);return n}p.prototype.slice=function(e,t){let i=this.length;e=~~e,t=t===void 0?i:~~t,e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),t<e&&(t=e);let n=this.subarray(e,t);return Object.setPrototypeOf(n,p.prototype),n};function N(r,e,t){if(r%1!==0||r<0)throw new RangeError("offset is not uint");if(r+e>t)throw new RangeError("Trying to access beyond buffer length")}p.prototype.readUintLE=p.prototype.readUIntLE=function(e,t,i){e=e>>>0,t=t>>>0,i||N(e,t,this.length);let n=this[e],o=1,s=0;for(;++s<t&&(o*=256);)n+=this[e+s]*o;return n};p.prototype.readUintBE=p.prototype.readUIntBE=function(e,t,i){e=e>>>0,t=t>>>0,i||N(e,t,this.length);let n=this[e+--t],o=1;for(;t>0&&(o*=256);)n+=this[e+--t]*o;return n};p.prototype.readUint8=p.prototype.readUInt8=function(e,t){return e=e>>>0,t||N(e,1,this.length),this[e]};p.prototype.readUint16LE=p.prototype.readUInt16LE=function(e,t){return e=e>>>0,t||N(e,2,this.length),this[e]|this[e+1]<<8};p.prototype.readUint16BE=p.prototype.readUInt16BE=function(e,t){return e=e>>>0,t||N(e,2,this.length),this[e]<<8|this[e+1]};p.prototype.readUint32LE=p.prototype.readUInt32LE=function(e,t){return e=e>>>0,t||N(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};p.prototype.readUint32BE=p.prototype.readUInt32BE=function(e,t){return e=e>>>0,t||N(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};p.prototype.readBigUInt64LE=ve(function(e){e=e>>>0,ke(e,"offset");let t=this[e],i=this[e+7];(t===void 0||i===void 0)&&ze(e,this.length-8);let n=t+this[++e]*R(2,8)+this[++e]*R(2,16)+this[++e]*R(2,24),o=this[++e]+this[++e]*R(2,8)+this[++e]*R(2,16)+i*R(2,24);return BigInt(n)+(BigInt(o)<<BigInt(32))});p.prototype.readBigUInt64BE=ve(function(e){e=e>>>0,ke(e,"offset");let t=this[e],i=this[e+7];(t===void 0||i===void 0)&&ze(e,this.length-8);let n=t*R(2,24)+this[++e]*R(2,16)+this[++e]*R(2,8)+this[++e],o=this[++e]*R(2,24)+this[++e]*R(2,16)+this[++e]*R(2,8)+i;return(BigInt(n)<<BigInt(32))+BigInt(o)});p.prototype.readIntLE=function(e,t,i){e=e>>>0,t=t>>>0,i||N(e,t,this.length);let n=this[e],o=1,s=0;for(;++s<t&&(o*=256);)n+=this[e+s]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*t)),n};p.prototype.readIntBE=function(e,t,i){e=e>>>0,t=t>>>0,i||N(e,t,this.length);let n=t,o=1,s=this[e+--n];for(;n>0&&(o*=256);)s+=this[e+--n]*o;return o*=128,s>=o&&(s-=Math.pow(2,8*t)),s};p.prototype.readInt8=function(e,t){return e=e>>>0,t||N(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};p.prototype.readInt16LE=function(e,t){e=e>>>0,t||N(e,2,this.length);let i=this[e]|this[e+1]<<8;return i&32768?i|4294901760:i};p.prototype.readInt16BE=function(e,t){e=e>>>0,t||N(e,2,this.length);let i=this[e+1]|this[e]<<8;return i&32768?i|4294901760:i};p.prototype.readInt32LE=function(e,t){return e=e>>>0,t||N(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};p.prototype.readInt32BE=function(e,t){return e=e>>>0,t||N(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};p.prototype.readBigInt64LE=ve(function(e){e=e>>>0,ke(e,"offset");let t=this[e],i=this[e+7];(t===void 0||i===void 0)&&ze(e,this.length-8);let n=this[e+4]+this[e+5]*R(2,8)+this[e+6]*R(2,16)+(i<<24);return(BigInt(n)<<BigInt(32))+BigInt(t+this[++e]*R(2,8)+this[++e]*R(2,16)+this[++e]*R(2,24))});p.prototype.readBigInt64BE=ve(function(e){e=e>>>0,ke(e,"offset");let t=this[e],i=this[e+7];(t===void 0||i===void 0)&&ze(e,this.length-8);let n=(t<<24)+this[++e]*R(2,16)+this[++e]*R(2,8)+this[++e];return(BigInt(n)<<BigInt(32))+BigInt(this[++e]*R(2,24)+this[++e]*R(2,16)+this[++e]*R(2,8)+i)});p.prototype.readFloatLE=function(e,t){return e=e>>>0,t||N(e,4,this.length),Ue.read(this,e,!0,23,4)};p.prototype.readFloatBE=function(e,t){return e=e>>>0,t||N(e,4,this.length),Ue.read(this,e,!1,23,4)};p.prototype.readDoubleLE=function(e,t){return e=e>>>0,t||N(e,8,this.length),Ue.read(this,e,!0,52,8)};p.prototype.readDoubleBE=function(e,t){return e=e>>>0,t||N(e,8,this.length),Ue.read(this,e,!1,52,8)};function Q(r,e,t,i,n,o){if(!p.isBuffer(r))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>n||e<o)throw new RangeError('"value" argument is out of bounds');if(t+i>r.length)throw new RangeError("Index out of range")}p.prototype.writeUintLE=p.prototype.writeUIntLE=function(e,t,i,n){if(e=+e,t=t>>>0,i=i>>>0,!n){let f=Math.pow(2,8*i)-1;Q(this,e,t,i,f,0)}let o=1,s=0;for(this[t]=e&255;++s<i&&(o*=256);)this[t+s]=e/o&255;return t+i};p.prototype.writeUintBE=p.prototype.writeUIntBE=function(e,t,i,n){if(e=+e,t=t>>>0,i=i>>>0,!n){let f=Math.pow(2,8*i)-1;Q(this,e,t,i,f,0)}let o=i-1,s=1;for(this[t+o]=e&255;--o>=0&&(s*=256);)this[t+o]=e/s&255;return t+i};p.prototype.writeUint8=p.prototype.writeUInt8=function(e,t,i){return e=+e,t=t>>>0,i||Q(this,e,t,1,255,0),this[t]=e&255,t+1};p.prototype.writeUint16LE=p.prototype.writeUInt16LE=function(e,t,i){return e=+e,t=t>>>0,i||Q(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2};p.prototype.writeUint16BE=p.prototype.writeUInt16BE=function(e,t,i){return e=+e,t=t>>>0,i||Q(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2};p.prototype.writeUint32LE=p.prototype.writeUInt32LE=function(e,t,i){return e=+e,t=t>>>0,i||Q(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4};p.prototype.writeUint32BE=p.prototype.writeUInt32BE=function(e,t,i){return e=+e,t=t>>>0,i||Q(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function jr(r,e,t,i,n){Zr(e,i,n,r,t,7);let o=Number(e&BigInt(4294967295));r[t++]=o,o=o>>8,r[t++]=o,o=o>>8,r[t++]=o,o=o>>8,r[t++]=o;let s=Number(e>>BigInt(32)&BigInt(4294967295));return r[t++]=s,s=s>>8,r[t++]=s,s=s>>8,r[t++]=s,s=s>>8,r[t++]=s,t}function $r(r,e,t,i,n){Zr(e,i,n,r,t,7);let o=Number(e&BigInt(4294967295));r[t+7]=o,o=o>>8,r[t+6]=o,o=o>>8,r[t+5]=o,o=o>>8,r[t+4]=o;let s=Number(e>>BigInt(32)&BigInt(4294967295));return r[t+3]=s,s=s>>8,r[t+2]=s,s=s>>8,r[t+1]=s,s=s>>8,r[t]=s,t+8}p.prototype.writeBigUInt64LE=ve(function(e,t=0){return jr(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))});p.prototype.writeBigUInt64BE=ve(function(e,t=0){return $r(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))});p.prototype.writeIntLE=function(e,t,i,n){if(e=+e,t=t>>>0,!n){let h=Math.pow(2,8*i-1);Q(this,e,t,i,h-1,-h)}let o=0,s=1,f=0;for(this[t]=e&255;++o<i&&(s*=256);)e<0&&f===0&&this[t+o-1]!==0&&(f=1),this[t+o]=(e/s>>0)-f&255;return t+i};p.prototype.writeIntBE=function(e,t,i,n){if(e=+e,t=t>>>0,!n){let h=Math.pow(2,8*i-1);Q(this,e,t,i,h-1,-h)}let o=i-1,s=1,f=0;for(this[t+o]=e&255;--o>=0&&(s*=256);)e<0&&f===0&&this[t+o+1]!==0&&(f=1),this[t+o]=(e/s>>0)-f&255;return t+i};p.prototype.writeInt8=function(e,t,i){return e=+e,t=t>>>0,i||Q(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1};p.prototype.writeInt16LE=function(e,t,i){return e=+e,t=t>>>0,i||Q(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2};p.prototype.writeInt16BE=function(e,t,i){return e=+e,t=t>>>0,i||Q(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2};p.prototype.writeInt32LE=function(e,t,i){return e=+e,t=t>>>0,i||Q(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4};p.prototype.writeInt32BE=function(e,t,i){return e=+e,t=t>>>0,i||Q(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};p.prototype.writeBigInt64LE=ve(function(e,t=0){return jr(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});p.prototype.writeBigInt64BE=ve(function(e,t=0){return $r(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Hr(r,e,t,i,n,o){if(t+i>r.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function Gr(r,e,t,i,n){return e=+e,t=t>>>0,n||Hr(r,e,t,4,34028234663852886e22,-34028234663852886e22),Ue.write(r,e,t,i,23,4),t+4}p.prototype.writeFloatLE=function(e,t,i){return Gr(this,e,t,!0,i)};p.prototype.writeFloatBE=function(e,t,i){return Gr(this,e,t,!1,i)};function Wr(r,e,t,i,n){return e=+e,t=t>>>0,n||Hr(r,e,t,8,17976931348623157e292,-17976931348623157e292),Ue.write(r,e,t,i,52,8),t+8}p.prototype.writeDoubleLE=function(e,t,i){return Wr(this,e,t,!0,i)};p.prototype.writeDoubleBE=function(e,t,i){return Wr(this,e,t,!1,i)};p.prototype.copy=function(e,t,i,n){if(!p.isBuffer(e))throw new TypeError("argument should be a Buffer");if(i||(i=0),!n&&n!==0&&(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<i&&(n=i),n===i||e.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-i&&(n=e.length-t+i);let o=n-i;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,i,n):Uint8Array.prototype.set.call(e,this.subarray(i,n),t),o};p.prototype.fill=function(e,t,i,n){if(typeof e=="string"){if(typeof t=="string"?(n=t,t=0,i=this.length):typeof i=="string"&&(n=i,i=this.length),n!==void 0&&typeof n!="string")throw new TypeError("encoding must be a string");if(typeof n=="string"&&!p.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(e.length===1){let s=e.charCodeAt(0);(n==="utf8"&&s<128||n==="latin1")&&(e=s)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(t<0||this.length<t||this.length<i)throw new RangeError("Out of range index");if(i<=t)return this;t=t>>>0,i=i===void 0?this.length:i>>>0,e||(e=0);let o;if(typeof e=="number")for(o=t;o<i;++o)this[o]=e;else{let s=p.isBuffer(e)?e:p.from(e,n),f=s.length;if(f===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<i-t;++o)this[o+t]=s[o%f]}return this};var Ce={};function Wt(r,e,t){Ce[r]=class extends t{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${r}]`,this.stack,delete this.name}get code(){return r}set code(n){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:n,writable:!0})}toString(){return`${this.name} [${r}]: ${this.message}`}}}Wt("ERR_BUFFER_OUT_OF_BOUNDS",function(r){return r?`${r} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);Wt("ERR_INVALID_ARG_TYPE",function(r,e){return`The "${r}" argument must be of type number. Received type ${typeof e}`},TypeError);Wt("ERR_OUT_OF_RANGE",function(r,e,t){let i=`The value of "${r}" is out of range.`,n=t;return Number.isInteger(t)&&Math.abs(t)>R(2,32)?n=Dr(String(t)):typeof t=="bigint"&&(n=String(t),(t>R(BigInt(2),BigInt(32))||t<-R(BigInt(2),BigInt(32)))&&(n=Dr(n)),n+="n"),i+=` It must be ${e}. Received ${n}`,i},RangeError);function Dr(r){let e="",t=r.length,i=r[0]==="-"?1:0;for(;t>=i+4;t-=3)e=`_${r.slice(t-3,t)}${e}`;return`${r.slice(0,t)}${e}`}function ds(r,e,t){ke(e,"offset"),(r[e]===void 0||r[e+t]===void 0)&&ze(e,r.length-(t+1))}function Zr(r,e,t,i,n,o){if(r>t||r<e){let s=typeof e=="bigint"?"n":"",f;throw o>3?e===0||e===BigInt(0)?f=`>= 0${s} and < 2${s} ** ${(o+1)*8}${s}`:f=`>= -(2${s} ** ${(o+1)*8-1}${s}) and < 2 ** ${(o+1)*8-1}${s}`:f=`>= ${e}${s} and <= ${t}${s}`,new Ce.ERR_OUT_OF_RANGE("value",f,r)}ds(i,n,o)}function ke(r,e){if(typeof r!="number")throw new Ce.ERR_INVALID_ARG_TYPE(e,"number",r)}function ze(r,e,t){throw Math.floor(r)!==r?(ke(r,t),new Ce.ERR_OUT_OF_RANGE(t||"offset","an integer",r)):e<0?new Ce.ERR_BUFFER_OUT_OF_BOUNDS:new Ce.ERR_OUT_OF_RANGE(t||"offset",`>= ${t?1:0} and <= ${e}`,r)}var gs=/[^+/0-9A-Za-z-_]/g;function ys(r){if(r=r.split("=")[0],r=r.trim().replace(gs,""),r.length<2)return"";for(;r.length%4!==0;)r=r+"=";return r}function $t(r,e){e=e||1/0;let t,i=r.length,n=null,o=[];for(let s=0;s<i;++s){if(t=r.charCodeAt(s),t>55295&&t<57344){if(!n){if(t>56319){(e-=3)>-1&&o.push(239,191,189);continue}else if(s+1===i){(e-=3)>-1&&o.push(239,191,189);continue}n=t;continue}if(t<56320){(e-=3)>-1&&o.push(239,191,189),n=t;continue}t=(n-55296<<10|t-56320)+65536}else n&&(e-=3)>-1&&o.push(239,191,189);if(n=null,t<128){if((e-=1)<0)break;o.push(t)}else if(t<2048){if((e-=2)<0)break;o.push(t>>6|192,t&63|128)}else if(t<65536){if((e-=3)<0)break;o.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((e-=4)<0)break;o.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return o}function Is(r){let e=[];for(let t=0;t<r.length;++t)e.push(r.charCodeAt(t)&255);return e}function ws(r,e){let t,i,n,o=[];for(let s=0;s<r.length&&!((e-=2)<0);++s)t=r.charCodeAt(s),i=t>>8,n=t%256,o.push(n),o.push(i);return o}function Yr(r){return Vt.toByteArray(ys(r))}function rt(r,e,t,i){let n;for(n=0;n<i&&!(n+t>=e.length||n>=r.length);++n)e[n+t]=r[n];return n}function le(r,e){return r instanceof e||r!=null&&r.constructor!=null&&r.constructor.name!=null&&r.constructor.name===e.name}function Zt(r){return r!==r}var vs=function(){let r="0123456789abcdef",e=new Array(256);for(let t=0;t<16;++t){let i=t*16;for(let n=0;n<16;++n)e[i+n]=r[t]+r[n]}return e}();function ve(r){return typeof BigInt=="undefined"?bs:r}function bs(){throw new Error("BigInt not supported")}});var Xr=U((gu,Qr)=>{"use strict";var Bs=it().Buffer;Qr.exports=function(r){if(r instanceof Uint8Array){if(r.byteOffset===0&&r.byteLength===r.buffer.byteLength)return r.buffer;if(typeof r.buffer.slice=="function")return r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength)}if(Bs.isBuffer(r)){for(var e=new Uint8Array(r.length),t=r.length,i=0;i<t;i++)e[i]=r[i];return e.buffer}else throw new Error("Argument must be a Buffer")}});var ti=U((nt,ei)=>{"use strict";(function(){var r,e=0xdeadbeefcafe,t=(e&16777215)==15715070;function i(a,u,c){a!=null&&(typeof a=="number"?this.fromNumber(a,u,c):u==null&&typeof a!="string"?this.fromString(a,256):this.fromString(a,u))}function n(){return new i(null)}function o(a,u,c,l,d,y){for(;--y>=0;){var b=u*this[a++]+c[l]+d;d=Math.floor(b/67108864),c[l++]=b&67108863}return d}function s(a,u,c,l,d,y){for(var b=u&32767,B=u>>15;--y>=0;){var C=this[a]&32767,D=this[a++]>>15,re=B*C+D*b;C=b*C+((re&32767)<<15)+c[l]+(d&1073741823),d=(C>>>30)+(re>>>15)+B*D+(d>>>30),c[l++]=C&1073741823}return d}function f(a,u,c,l,d,y){for(var b=u&16383,B=u>>14;--y>=0;){var C=this[a]&16383,D=this[a++]>>14,re=B*C+D*b;C=b*C+((re&16383)<<14)+c[l]+d,d=(C>>28)+(re>>14)+B*D,c[l++]=C&268435455}return d}var h=typeof navigator!="undefined";h&&t&&navigator.appName=="Microsoft Internet Explorer"?(i.prototype.am=s,r=30):h&&t&&navigator.appName!="Netscape"?(i.prototype.am=o,r=26):(i.prototype.am=f,r=28),i.prototype.DB=r,i.prototype.DM=(1<<r)-1,i.prototype.DV=1<<r;var m=52;i.prototype.FV=Math.pow(2,m),i.prototype.F1=m-r,i.prototype.F2=2*r-m;var I="0123456789abcdefghijklmnopqrstuvwxyz",g=new Array,_,w;for(_="0".charCodeAt(0),w=0;w<=9;++w)g[_++]=w;for(_="a".charCodeAt(0),w=10;w<36;++w)g[_++]=w;for(_="A".charCodeAt(0),w=10;w<36;++w)g[_++]=w;function S(a){return I.charAt(a)}function P(a,u){var c=g[a.charCodeAt(u)];return c==null?-1:c}function k(a){for(var u=this.t-1;u>=0;--u)a[u]=this[u];a.t=this.t,a.s=this.s}function F(a){this.t=1,this.s=a<0?-1:0,a>0?this[0]=a:a<-1?this[0]=a+this.DV:this.t=0}function O(a){var u=n();return u.fromInt(a),u}function Y(a,u){var c;if(u==16)c=4;else if(u==8)c=3;else if(u==256)c=8;else if(u==2)c=1;else if(u==32)c=5;else if(u==4)c=2;else{this.fromRadix(a,u);return}this.t=0,this.s=0;for(var l=a.length,d=!1,y=0;--l>=0;){var b=c==8?a[l]&255:P(a,l);if(b<0){a.charAt(l)=="-"&&(d=!0);continue}d=!1,y==0?this[this.t++]=b:y+c>this.DB?(this[this.t-1]|=(b&(1<<this.DB-y)-1)<<y,this[this.t++]=b>>this.DB-y):this[this.t-1]|=b<<y,y+=c,y>=this.DB&&(y-=this.DB)}c==8&&a[0]&128&&(this.s=-1,y>0&&(this[this.t-1]|=(1<<this.DB-y)-1<<y)),this.clamp(),d&&i.ZERO.subTo(this,this)}function A(){for(var a=this.s&this.DM;this.t>0&&this[this.t-1]==a;)--this.t}function q(a){if(this.s<0)return"-"+this.negate().toString(a);var u;if(a==16)u=4;else if(a==8)u=3;else if(a==2)u=1;else if(a==32)u=5;else if(a==4)u=2;else return this.toRadix(a);var c=(1<<u)-1,l,d=!1,y="",b=this.t,B=this.DB-b*this.DB%u;if(b-- >0)for(B<this.DB&&(l=this[b]>>B)>0&&(d=!0,y=S(l));b>=0;)B<u?(l=(this[b]&(1<<B)-1)<<u-B,l|=this[--b]>>(B+=this.DB-u)):(l=this[b]>>(B-=u)&c,B<=0&&(B+=this.DB,--b)),l>0&&(d=!0),d&&(y+=S(l));return d?y:"0"}function V(){var a=n();return i.ZERO.subTo(this,a),a}function Ee(){return this.s<0?this.negate():this}function qe(a){var u=this.s-a.s;if(u!=0)return u;var c=this.t;if(u=c-a.t,u!=0)return this.s<0?-u:u;for(;--c>=0;)if((u=this[c]-a[c])!=0)return u;return 0}function Re(a){var u=1,c;return(c=a>>>16)!=0&&(a=c,u+=16),(c=a>>8)!=0&&(a=c,u+=8),(c=a>>4)!=0&&(a=c,u+=4),(c=a>>2)!=0&&(a=c,u+=2),(c=a>>1)!=0&&(a=c,u+=1),u}function Rt(){return this.t<=0?0:this.DB*(this.t-1)+Re(this[this.t-1]^this.s&this.DM)}function Ct(a,u){var c;for(c=this.t-1;c>=0;--c)u[c+a]=this[c];for(c=a-1;c>=0;--c)u[c]=0;u.t=this.t+a,u.s=this.s}function Ut(a,u){for(var c=a;c<this.t;++c)u[c-a]=this[c];u.t=Math.max(this.t-a,0),u.s=this.s}function kt(a,u){var c=a%this.DB,l=this.DB-c,d=(1<<l)-1,y=Math.floor(a/this.DB),b=this.s<<c&this.DM,B;for(B=this.t-1;B>=0;--B)u[B+y+1]=this[B]>>l|b,b=(this[B]&d)<<c;for(B=y-1;B>=0;--B)u[B]=0;u[y]=b,u.t=this.t+y+1,u.s=this.s,u.clamp()}function en(a,u){u.s=this.s;var c=Math.floor(a/this.DB);if(c>=this.t){u.t=0;return}var l=a%this.DB,d=this.DB-l,y=(1<<l)-1;u[0]=this[c]>>l;for(var b=c+1;b<this.t;++b)u[b-c-1]|=(this[b]&y)<<d,u[b-c]=this[b]>>l;l>0&&(u[this.t-c-1]|=(this.s&y)<<d),u.t=this.t-c,u.clamp()}function tn(a,u){for(var c=0,l=0,d=Math.min(a.t,this.t);c<d;)l+=this[c]-a[c],u[c++]=l&this.DM,l>>=this.DB;if(a.t<this.t){for(l-=a.s;c<this.t;)l+=this[c],u[c++]=l&this.DM,l>>=this.DB;l+=this.s}else{for(l+=this.s;c<a.t;)l-=a[c],u[c++]=l&this.DM,l>>=this.DB;l-=a.s}u.s=l<0?-1:0,l<-1?u[c++]=this.DV+l:l>0&&(u[c++]=l),u.t=c,u.clamp()}function rn(a,u){var c=this.abs(),l=a.abs(),d=c.t;for(u.t=d+l.t;--d>=0;)u[d]=0;for(d=0;d<l.t;++d)u[d+c.t]=c.am(0,l[d],u,d,0,c.t);u.s=0,u.clamp(),this.s!=a.s&&i.ZERO.subTo(u,u)}function nn(a){for(var u=this.abs(),c=a.t=2*u.t;--c>=0;)a[c]=0;for(c=0;c<u.t-1;++c){var l=u.am(c,u[c],a,2*c,0,1);(a[c+u.t]+=u.am(c+1,2*u[c],a,2*c+1,l,u.t-c-1))>=u.DV&&(a[c+u.t]-=u.DV,a[c+u.t+1]=1)}a.t>0&&(a[a.t-1]+=u.am(c,u[c],a,2*c,0,1)),a.s=0,a.clamp()}function on(a,u,c){var l=a.abs();if(!(l.t<=0)){var d=this.abs();if(d.t<l.t){u!=null&&u.fromInt(0),c!=null&&this.copyTo(c);return}c==null&&(c=n());var y=n(),b=this.s,B=a.s,C=this.DB-Re(l[l.t-1]);C>0?(l.lShiftTo(C,y),d.lShiftTo(C,c)):(l.copyTo(y),d.copyTo(c));var D=y.t,re=y[D-1];if(re!=0){var te=re*(1<<this.F1)+(D>1?y[D-2]>>this.F2:0),de=this.FV/te,Ze=(1<<this.F1)/te,oe=1<<this.F2,se=c.t,Ye=se-D,we=u==null?n():u;for(y.dlShiftTo(Ye,we),c.compareTo(we)>=0&&(c[c.t++]=1,c.subTo(we,c)),i.ONE.dlShiftTo(D,we),we.subTo(y,y);y.t<D;)y[y.t++]=0;for(;--Ye>=0;){var Dt=c[--se]==re?this.DM:Math.floor(c[se]*de+(c[se-1]+oe)*Ze);if((c[se]+=y.am(0,Dt,c,Ye,0,D))<Dt)for(y.dlShiftTo(Ye,we),c.subTo(we,c);c[se]<--Dt;)c.subTo(we,c)}u!=null&&(c.drShiftTo(D,u),b!=B&&i.ZERO.subTo(u,u)),c.t=D,c.clamp(),C>0&&c.rShiftTo(C,c),b<0&&i.ZERO.subTo(c,c)}}}function sn(a){var u=n();return this.abs().divRemTo(a,null,u),this.s<0&&u.compareTo(i.ZERO)>0&&a.subTo(u,u),u}function _e(a){this.m=a}function an(a){return a.s<0||a.compareTo(this.m)>=0?a.mod(this.m):a}function un(a){return a}function cn(a){a.divRemTo(this.m,null,a)}function fn(a,u,c){a.multiplyTo(u,c),this.reduce(c)}function ln(a,u){a.squareTo(u),this.reduce(u)}_e.prototype.convert=an,_e.prototype.revert=un,_e.prototype.reduce=cn,_e.prototype.mulTo=fn,_e.prototype.sqrTo=ln;function hn(){if(this.t<1)return 0;var a=this[0];if(!(a&1))return 0;var u=a&3;return u=u*(2-(a&15)*u)&15,u=u*(2-(a&255)*u)&255,u=u*(2-((a&65535)*u&65535))&65535,u=u*(2-a*u%this.DV)%this.DV,u>0?this.DV-u:-u}function xe(a){this.m=a,this.mp=a.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<a.DB-15)-1,this.mt2=2*a.t}function pn(a){var u=n();return a.abs().dlShiftTo(this.m.t,u),u.divRemTo(this.m,null,u),a.s<0&&u.compareTo(i.ZERO)>0&&this.m.subTo(u,u),u}function mn(a){var u=n();return a.copyTo(u),this.reduce(u),u}function dn(a){for(;a.t<=this.mt2;)a[a.t++]=0;for(var u=0;u<this.m.t;++u){var c=a[u]&32767,l=c*this.mpl+((c*this.mph+(a[u]>>15)*this.mpl&this.um)<<15)&a.DM;for(c=u+this.m.t,a[c]+=this.m.am(0,l,a,u,0,this.m.t);a[c]>=a.DV;)a[c]-=a.DV,a[++c]++}a.clamp(),a.drShiftTo(this.m.t,a),a.compareTo(this.m)>=0&&a.subTo(this.m,a)}function gn(a,u){a.squareTo(u),this.reduce(u)}function yn(a,u,c){a.multiplyTo(u,c),this.reduce(c)}xe.prototype.convert=pn,xe.prototype.revert=mn,xe.prototype.reduce=dn,xe.prototype.mulTo=yn,xe.prototype.sqrTo=gn;function In(){return(this.t>0?this[0]&1:this.s)==0}function wn(a,u){if(a>4294967295||a<1)return i.ONE;var c=n(),l=n(),d=u.convert(this),y=Re(a)-1;for(d.copyTo(c);--y>=0;)if(u.sqrTo(c,l),(a&1<<y)>0)u.mulTo(l,d,c);else{var b=c;c=l,l=b}return u.revert(c)}function vn(a,u){var c;return a<256||u.isEven()?c=new _e(u):c=new xe(u),this.exp(a,c)}i.prototype.copyTo=k,i.prototype.fromInt=F,i.prototype.fromString=Y,i.prototype.clamp=A,i.prototype.dlShiftTo=Ct,i.prototype.drShiftTo=Ut,i.prototype.lShiftTo=kt,i.prototype.rShiftTo=en,i.prototype.subTo=tn,i.prototype.multiplyTo=rn,i.prototype.squareTo=nn,i.prototype.divRemTo=on,i.prototype.invDigit=hn,i.prototype.isEven=In,i.prototype.exp=wn,i.prototype.toString=q,i.prototype.negate=V,i.prototype.abs=Ee,i.prototype.compareTo=qe,i.prototype.bitLength=Rt,i.prototype.mod=sn,i.prototype.modPowInt=vn,i.ZERO=O(0),i.ONE=O(1);function bn(){var a=n();return this.copyTo(a),a}function Bn(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]}function En(){return this.t==0?this.s:this[0]<<24>>24}function _n(){return this.t==0?this.s:this[0]<<16>>16}function xn(a){return Math.floor(Math.LN2*this.DB/Math.log(a))}function Tn(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1}function Sn(a){if(a==null&&(a=10),this.signum()==0||a<2||a>36)return"0";var u=this.chunkSize(a),c=Math.pow(a,u),l=O(c),d=n(),y=n(),b="";for(this.divRemTo(l,d,y);d.signum()>0;)b=(c+y.intValue()).toString(a).substr(1)+b,d.divRemTo(l,d,y);return y.intValue().toString(a)+b}function Pn(a,u){this.fromInt(0),u==null&&(u=10);for(var c=this.chunkSize(u),l=Math.pow(u,c),d=!1,y=0,b=0,B=0;B<a.length;++B){var C=P(a,B);if(C<0){a.charAt(B)=="-"&&this.signum()==0&&(d=!0);continue}b=u*b+C,++y>=c&&(this.dMultiply(l),this.dAddOffset(b,0),y=0,b=0)}y>0&&(this.dMultiply(Math.pow(u,y)),this.dAddOffset(b,0)),d&&i.ZERO.subTo(this,this)}function Mn(a,u,c){if(typeof u=="number")if(a<2)this.fromInt(1);else for(this.fromNumber(a,c),this.testBit(a-1)||this.bitwiseTo(i.ONE.shiftLeft(a-1),At,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(u);)this.dAddOffset(2,0),this.bitLength()>a&&this.subTo(i.ONE.shiftLeft(a-1),this);else{var l=new Array,d=a&7;l.length=(a>>3)+1,u.nextBytes(l),d>0?l[0]&=(1<<d)-1:l[0]=0,this.fromString(l,256)}}function Fn(){var a=this.t,u=new Array;u[0]=this.s;var c=this.DB-a*this.DB%8,l,d=0;if(a-- >0)for(c<this.DB&&(l=this[a]>>c)!=(this.s&this.DM)>>c&&(u[d++]=l|this.s<<this.DB-c);a>=0;)c<8?(l=(this[a]&(1<<c)-1)<<8-c,l|=this[--a]>>(c+=this.DB-8)):(l=this[a]>>(c-=8)&255,c<=0&&(c+=this.DB,--a)),l&128&&(l|=-256),d==0&&(this.s&128)!=(l&128)&&++d,(d>0||l!=this.s)&&(u[d++]=l);return u}function Rn(a){return this.compareTo(a)==0}function Cn(a){return this.compareTo(a)<0?this:a}function Un(a){return this.compareTo(a)>0?this:a}function kn(a,u,c){var l,d,y=Math.min(a.t,this.t);for(l=0;l<y;++l)c[l]=u(this[l],a[l]);if(a.t<this.t){for(d=a.s&this.DM,l=y;l<this.t;++l)c[l]=u(this[l],d);c.t=this.t}else{for(d=this.s&this.DM,l=y;l<a.t;++l)c[l]=u(d,a[l]);c.t=a.t}c.s=u(this.s,a.s),c.clamp()}function An(a,u){return a&u}function On(a){var u=n();return this.bitwiseTo(a,An,u),u}function At(a,u){return a|u}function qn(a){var u=n();return this.bitwiseTo(a,At,u),u}function gr(a,u){return a^u}function Ln(a){var u=n();return this.bitwiseTo(a,gr,u),u}function yr(a,u){return a&~u}function Dn(a){var u=n();return this.bitwiseTo(a,yr,u),u}function Nn(){for(var a=n(),u=0;u<this.t;++u)a[u]=this.DM&~this[u];return a.t=this.t,a.s=~this.s,a}function Jn(a){var u=n();return a<0?this.rShiftTo(-a,u):this.lShiftTo(a,u),u}function Kn(a){var u=n();return a<0?this.lShiftTo(-a,u):this.rShiftTo(a,u),u}function Vn(a){if(a==0)return-1;var u=0;return a&65535||(a>>=16,u+=16),a&255||(a>>=8,u+=8),a&15||(a>>=4,u+=4),a&3||(a>>=2,u+=2),a&1||++u,u}function zn(){for(var a=0;a<this.t;++a)if(this[a]!=0)return a*this.DB+Vn(this[a]);return this.s<0?this.t*this.DB:-1}function jn(a){for(var u=0;a!=0;)a&=a-1,++u;return u}function $n(){for(var a=0,u=this.s&this.DM,c=0;c<this.t;++c)a+=jn(this[c]^u);return a}function Hn(a){var u=Math.floor(a/this.DB);return u>=this.t?this.s!=0:(this[u]&1<<a%this.DB)!=0}function Gn(a,u){var c=i.ONE.shiftLeft(a);return this.bitwiseTo(c,u,c),c}function Wn(a){return this.changeBit(a,At)}function Zn(a){return this.changeBit(a,yr)}function Yn(a){return this.changeBit(a,gr)}function Qn(a,u){for(var c=0,l=0,d=Math.min(a.t,this.t);c<d;)l+=this[c]+a[c],u[c++]=l&this.DM,l>>=this.DB;if(a.t<this.t){for(l+=a.s;c<this.t;)l+=this[c],u[c++]=l&this.DM,l>>=this.DB;l+=this.s}else{for(l+=this.s;c<a.t;)l+=a[c],u[c++]=l&this.DM,l>>=this.DB;l+=a.s}u.s=l<0?-1:0,l>0?u[c++]=l:l<-1&&(u[c++]=this.DV+l),u.t=c,u.clamp()}function Xn(a){var u=n();return this.addTo(a,u),u}function eo(a){var u=n();return this.subTo(a,u),u}function to(a){var u=n();return this.multiplyTo(a,u),u}function ro(){var a=n();return this.squareTo(a),a}function io(a){var u=n();return this.divRemTo(a,u,null),u}function no(a){var u=n();return this.divRemTo(a,null,u),u}function oo(a){var u=n(),c=n();return this.divRemTo(a,u,c),new Array(u,c)}function so(a){this[this.t]=this.am(0,a-1,this,0,0,this.t),++this.t,this.clamp()}function ao(a,u){if(a!=0){for(;this.t<=u;)this[this.t++]=0;for(this[u]+=a;this[u]>=this.DV;)this[u]-=this.DV,++u>=this.t&&(this[this.t++]=0),++this[u]}}function Le(){}function Ir(a){return a}function uo(a,u,c){a.multiplyTo(u,c)}function co(a,u){a.squareTo(u)}Le.prototype.convert=Ir,Le.prototype.revert=Ir,Le.prototype.mulTo=uo,Le.prototype.sqrTo=co;function fo(a){return this.exp(a,new Le)}function lo(a,u,c){var l=Math.min(this.t+a.t,u);for(c.s=0,c.t=l;l>0;)c[--l]=0;var d;for(d=c.t-this.t;l<d;++l)c[l+this.t]=this.am(0,a[l],c,l,0,this.t);for(d=Math.min(a.t,u);l<d;++l)this.am(0,a[l],c,l,0,u-l);c.clamp()}function ho(a,u,c){--u;var l=c.t=this.t+a.t-u;for(c.s=0;--l>=0;)c[l]=0;for(l=Math.max(u-this.t,0);l<a.t;++l)c[this.t+l-u]=this.am(u-l,a[l],c,0,0,this.t+l-u);c.clamp(),c.drShiftTo(1,c)}function Te(a){this.r2=n(),this.q3=n(),i.ONE.dlShiftTo(2*a.t,this.r2),this.mu=this.r2.divide(a),this.m=a}function po(a){if(a.s<0||a.t>2*this.m.t)return a.mod(this.m);if(a.compareTo(this.m)<0)return a;var u=n();return a.copyTo(u),this.reduce(u),u}function mo(a){return a}function go(a){for(a.drShiftTo(this.m.t-1,this.r2),a.t>this.m.t+1&&(a.t=this.m.t+1,a.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);a.compareTo(this.r2)<0;)a.dAddOffset(1,this.m.t+1);for(a.subTo(this.r2,a);a.compareTo(this.m)>=0;)a.subTo(this.m,a)}function yo(a,u){a.squareTo(u),this.reduce(u)}function Io(a,u,c){a.multiplyTo(u,c),this.reduce(c)}Te.prototype.convert=po,Te.prototype.revert=mo,Te.prototype.reduce=go,Te.prototype.mulTo=Io,Te.prototype.sqrTo=yo;function wo(a,u){var c=a.bitLength(),l,d=O(1),y;if(c<=0)return d;c<18?l=1:c<48?l=3:c<144?l=4:c<768?l=5:l=6,c<8?y=new _e(u):u.isEven()?y=new Te(u):y=new xe(u);var b=new Array,B=3,C=l-1,D=(1<<l)-1;if(b[1]=y.convert(this),l>1){var re=n();for(y.sqrTo(b[1],re);B<=D;)b[B]=n(),y.mulTo(re,b[B-2],b[B]),B+=2}var te=a.t-1,de,Ze=!0,oe=n(),se;for(c=Re(a[te])-1;te>=0;){for(c>=C?de=a[te]>>c-C&D:(de=(a[te]&(1<<c+1)-1)<<C-c,te>0&&(de|=a[te-1]>>this.DB+c-C)),B=l;!(de&1);)de>>=1,--B;if((c-=B)<0&&(c+=this.DB,--te),Ze)b[de].copyTo(d),Ze=!1;else{for(;B>1;)y.sqrTo(d,oe),y.sqrTo(oe,d),B-=2;B>0?y.sqrTo(d,oe):(se=d,d=oe,oe=se),y.mulTo(oe,b[de],d)}for(;te>=0&&!(a[te]&1<<c);)y.sqrTo(d,oe),se=d,d=oe,oe=se,--c<0&&(c=this.DB-1,--te)}return y.revert(d)}function vo(a){var u=this.s<0?this.negate():this.clone(),c=a.s<0?a.negate():a.clone();if(u.compareTo(c)<0){var l=u;u=c,c=l}var d=u.getLowestSetBit(),y=c.getLowestSetBit();if(y<0)return u;for(d<y&&(y=d),y>0&&(u.rShiftTo(y,u),c.rShiftTo(y,c));u.signum()>0;)(d=u.getLowestSetBit())>0&&u.rShiftTo(d,u),(d=c.getLowestSetBit())>0&&c.rShiftTo(d,c),u.compareTo(c)>=0?(u.subTo(c,u),u.rShiftTo(1,u)):(c.subTo(u,c),c.rShiftTo(1,c));return y>0&&c.lShiftTo(y,c),c}function bo(a){if(a<=0)return 0;var u=this.DV%a,c=this.s<0?a-1:0;if(this.t>0)if(u==0)c=this[0]%a;else for(var l=this.t-1;l>=0;--l)c=(u*c+this[l])%a;return c}function Bo(a){var u=a.isEven();if(this.isEven()&&u||a.signum()==0)return i.ZERO;for(var c=a.clone(),l=this.clone(),d=O(1),y=O(0),b=O(0),B=O(1);c.signum()!=0;){for(;c.isEven();)c.rShiftTo(1,c),u?((!d.isEven()||!y.isEven())&&(d.addTo(this,d),y.subTo(a,y)),d.rShiftTo(1,d)):y.isEven()||y.subTo(a,y),y.rShiftTo(1,y);for(;l.isEven();)l.rShiftTo(1,l),u?((!b.isEven()||!B.isEven())&&(b.addTo(this,b),B.subTo(a,B)),b.rShiftTo(1,b)):B.isEven()||B.subTo(a,B),B.rShiftTo(1,B);c.compareTo(l)>=0?(c.subTo(l,c),u&&d.subTo(b,d),y.subTo(B,y)):(l.subTo(c,l),u&&b.subTo(d,b),B.subTo(y,B))}if(l.compareTo(i.ONE)!=0)return i.ZERO;if(B.compareTo(a)>=0)return B.subtract(a);if(B.signum()<0)B.addTo(a,B);else return B;return B.signum()<0?B.add(a):B}var G=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],Eo=(1<<26)/G[G.length-1];function _o(a){var u,c=this.abs();if(c.t==1&&c[0]<=G[G.length-1]){for(u=0;u<G.length;++u)if(c[0]==G[u])return!0;return!1}if(c.isEven())return!1;for(u=1;u<G.length;){for(var l=G[u],d=u+1;d<G.length&&l<Eo;)l*=G[d++];for(l=c.modInt(l);u<d;)if(l%G[u++]==0)return!1}return c.millerRabin(a)}function xo(a){var u=this.subtract(i.ONE),c=u.getLowestSetBit();if(c<=0)return!1;var l=u.shiftRight(c);a=a+1>>1,a>G.length&&(a=G.length);for(var d=n(),y=0;y<a;++y){d.fromInt(G[Math.floor(Math.random()*G.length)]);var b=d.modPow(l,this);if(b.compareTo(i.ONE)!=0&&b.compareTo(u)!=0){for(var B=1;B++<c&&b.compareTo(u)!=0;)if(b=b.modPowInt(2,this),b.compareTo(i.ONE)==0)return!1;if(b.compareTo(u)!=0)return!1}}return!0}i.prototype.chunkSize=xn,i.prototype.toRadix=Sn,i.prototype.fromRadix=Pn,i.prototype.fromNumber=Mn,i.prototype.bitwiseTo=kn,i.prototype.changeBit=Gn,i.prototype.addTo=Qn,i.prototype.dMultiply=so,i.prototype.dAddOffset=ao,i.prototype.multiplyLowerTo=lo,i.prototype.multiplyUpperTo=ho,i.prototype.modInt=bo,i.prototype.millerRabin=xo,i.prototype.clone=bn,i.prototype.intValue=Bn,i.prototype.byteValue=En,i.prototype.shortValue=_n,i.prototype.signum=Tn,i.prototype.toByteArray=Fn,i.prototype.equals=Rn,i.prototype.min=Cn,i.prototype.max=Un,i.prototype.and=On,i.prototype.or=qn,i.prototype.xor=Ln,i.prototype.andNot=Dn,i.prototype.not=Nn,i.prototype.shiftLeft=Jn,i.prototype.shiftRight=Kn,i.prototype.getLowestSetBit=zn,i.prototype.bitCount=$n,i.prototype.testBit=Hn,i.prototype.setBit=Wn,i.prototype.clearBit=Zn,i.prototype.flipBit=Yn,i.prototype.add=Xn,i.prototype.subtract=eo,i.prototype.multiply=to,i.prototype.divide=io,i.prototype.remainder=no,i.prototype.divideAndRemainder=oo,i.prototype.modPow=wo,i.prototype.modInverse=Bo,i.prototype.pow=fo,i.prototype.gcd=vo,i.prototype.isProbablePrime=_o,i.prototype.square=ro,i.prototype.Barrett=Te;var We,ee,L;function To(a){ee[L++]^=a&255,ee[L++]^=a>>8&255,ee[L++]^=a>>16&255,ee[L++]^=a>>24&255,L>=Lt&&(L-=Lt)}function wr(){To(new Date().getTime())}if(ee==null){ee=new Array,L=0;var ne;if(typeof window!="undefined"&&window.crypto){if(window.crypto.getRandomValues){var vr=new Uint8Array(32);for(window.crypto.getRandomValues(vr),ne=0;ne<32;++ne)ee[L++]=vr[ne]}else if(navigator.appName=="Netscape"&&navigator.appVersion<"5"){var br=window.crypto.random(32);for(ne=0;ne<br.length;++ne)ee[L++]=br.charCodeAt(ne)&255}}for(;L<Lt;)ne=Math.floor(65536*Math.random()),ee[L++]=ne>>>8,ee[L++]=ne&255;L=0,wr()}function So(){if(We==null){for(wr(),We=Ro(),We.init(ee),L=0;L<ee.length;++L)ee[L]=0;L=0}return We.next()}function Po(a){var u;for(u=0;u<a.length;++u)a[u]=So()}function Ot(){}Ot.prototype.nextBytes=Po;function qt(){this.i=0,this.j=0,this.S=new Array}function Mo(a){var u,c,l;for(u=0;u<256;++u)this.S[u]=u;for(c=0,u=0;u<256;++u)c=c+this.S[u]+a[u%a.length]&255,l=this.S[u],this.S[u]=this.S[c],this.S[c]=l;this.i=0,this.j=0}function Fo(){var a;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,a=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=a,this.S[a+this.S[this.i]&255]}qt.prototype.init=Mo,qt.prototype.next=Fo;function Ro(){return new qt}var Lt=256;typeof nt!="undefined"?nt=ei.exports={default:i,BigInteger:i,SecureRandom:Ot}:this.jsbn={BigInteger:i,SecureRandom:Ot}}).call(nt)});var li={};No(li,{SM2:()=>Ms,SM3:()=>Ps,SM4:()=>Rs});function W(r,e){this.x=e,this.q=r}function X(r,e,t,i){this.curve=r,this.x=e,this.y=t,this.z=i==null?M.BigInteger.ONE:i,this.zinv=null}function pe(r,e,t){this.q=r,this.a=this.fromBigInteger(e),this.b=this.fromBigInteger(t),this.infinity=new X(this,null,null),this.reducer=new Es(this.q)}function oi(r,e){for(var t=[],i=Math.ceil(e/32),n=e%32,o=1;o<=i;o++){var s=T.Buffer.allocUnsafe(4);s.writeUInt32BE(o);var f=lt(T.Buffer.concat([r,s]));t.push(o===i&&n?T.Buffer.from(f).slice(0,n):T.Buffer.from(f))}return T.Buffer.concat(t,e)}var Oe,T,M,Es,J,he,_s,xs,Ts,Ss,lt,Ps,ri,Yt,ii,ni,ot,Ms,st,at,Fs,ut,ui,ci,fi,si,ai,ct,ft,Rs,hi=Do(()=>{"use strict";Oe=Qe(