@dsnp/parquetjs
Version:
fully asynchronous, pure JavaScript implementation of the Parquet file format
1 lines • 2.13 MB
JavaScript
"use strict";var parquetjs=(()=>{var ZO=Object.create;var qo=Object.defineProperty;var QO=Object.getOwnPropertyDescriptor;var Aq=Object.getOwnPropertyNames;var eq=Object.getPrototypeOf,tq=Object.prototype.hasOwnProperty;var rq=(A,e,t)=>e in A?qo(A,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):A[e]=t;var nq=(A=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(A,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):A)(function(A){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+A+'" is not supported')});var iq=(A,e)=>()=>(A&&(e=A(A=0)),e);var R=(A,e)=>()=>(e||A((e={exports:{}}).exports,e),e.exports),ct=(A,e)=>{for(var t in e)qo(A,t,{get:e[t],enumerable:!0})},Rw=(A,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Aq(e))!tq.call(A,n)&&n!==t&&qo(A,n,{get:()=>e[n],enumerable:!(r=QO(e,n))||r.enumerable});return A};var DA=(A,e,t)=>(t=A!=null?ZO(eq(A)):{},Rw(e||!A||!A.__esModule?qo(t,"default",{value:A,enumerable:!0}):t,A)),sq=A=>Rw(qo({},"__esModule",{value:!0}),A);var z=(A,e,t)=>rq(A,typeof e!="symbol"?e+"":e,t);var Cw=(()=>{for(var A=new Uint8Array(128),e=0;e<64;e++)A[e<26?e+65:e<52?e+71:e<62?e-4:e*4-205]=e;return t=>{for(var r=t.length,n=new Uint8Array((r-(t[r-1]=="=")-(t[r-2]=="="))*3/4|0),i=0,s=0;i<r;){var o=A[t.charCodeAt(i++)],a=A[t.charCodeAt(i++)],l=A[t.charCodeAt(i++)],f=A[t.charCodeAt(i++)];n[s++]=o<<2|a>>4,n[s++]=a<<4|l>>2,n[s++]=l<<6|f}return n}})();var zw=R(Tc=>{"use strict";c();Tc.byteLength=aq;Tc.toByteArray=lq;Tc.fromByteArray=uq;var Gt=[],lt=[],oq=typeof Uint8Array<"u"?Uint8Array:Array,Nu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Zn=0,Fw=Nu.length;Zn<Fw;++Zn)Gt[Zn]=Nu[Zn],lt[Nu.charCodeAt(Zn)]=Zn;var Zn,Fw;lt[45]=62;lt[95]=63;function Nw(A){var e=A.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=A.indexOf("=");t===-1&&(t=e);var r=t===e?0:4-t%4;return[t,r]}function aq(A){var e=Nw(A),t=e[0],r=e[1];return(t+r)*3/4-r}function cq(A,e,t){return(e+t)*3/4-t}function lq(A){var e,t=Nw(A),r=t[0],n=t[1],i=new oq(cq(A,r,n)),s=0,o=n>0?r-4:r,a;for(a=0;a<o;a+=4)e=lt[A.charCodeAt(a)]<<18|lt[A.charCodeAt(a+1)]<<12|lt[A.charCodeAt(a+2)]<<6|lt[A.charCodeAt(a+3)],i[s++]=e>>16&255,i[s++]=e>>8&255,i[s++]=e&255;return n===2&&(e=lt[A.charCodeAt(a)]<<2|lt[A.charCodeAt(a+1)]>>4,i[s++]=e&255),n===1&&(e=lt[A.charCodeAt(a)]<<10|lt[A.charCodeAt(a+1)]<<4|lt[A.charCodeAt(a+2)]>>2,i[s++]=e>>8&255,i[s++]=e&255),i}function fq(A){return Gt[A>>18&63]+Gt[A>>12&63]+Gt[A>>6&63]+Gt[A&63]}function dq(A,e,t){for(var r,n=[],i=e;i<t;i+=3)r=(A[i]<<16&16711680)+(A[i+1]<<8&65280)+(A[i+2]&255),n.push(fq(r));return n.join("")}function uq(A){for(var e,t=A.length,r=t%3,n=[],i=16383,s=0,o=t-r;s<o;s+=i)n.push(dq(A,s,s+i>o?o:s+i));return r===1?(e=A[t-1],n.push(Gt[e>>2]+Gt[e<<4&63]+"==")):r===2&&(e=(A[t-2]<<8)+A[t-1],n.push(Gt[e>>10]+Gt[e>>4&63]+Gt[e<<2&63]+"=")),n.join("")}});var Pw=R(zu=>{c();zu.read=function(A,e,t,r,n){var i,s,o=n*8-r-1,a=(1<<o)-1,l=a>>1,f=-7,d=t?n-1:0,j=t?-1:1,p=A[e+d];for(d+=j,i=p&(1<<-f)-1,p>>=-f,f+=o;f>0;i=i*256+A[e+d],d+=j,f-=8);for(s=i&(1<<-f)-1,i>>=-f,f+=r;f>0;s=s*256+A[e+d],d+=j,f-=8);if(i===0)i=1-l;else{if(i===a)return s?NaN:(p?-1:1)*(1/0);s=s+Math.pow(2,r),i=i-l}return(p?-1:1)*s*Math.pow(2,i-r)};zu.write=function(A,e,t,r,n,i){var s,o,a,l=i*8-n-1,f=(1<<l)-1,d=f>>1,j=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,y=r?1:-1,_=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(o=isNaN(e)?1:0,s=f):(s=Math.floor(Math.log(e)/Math.LN2),e*(a=Math.pow(2,-s))<1&&(s--,a*=2),s+d>=1?e+=j/a:e+=j*Math.pow(2,1-d),e*a>=2&&(s++,a/=2),s+d>=f?(o=0,s=f):s+d>=1?(o=(e*a-1)*Math.pow(2,n),s=s+d):(o=e*Math.pow(2,d-1)*Math.pow(2,n),s=0));n>=8;A[t+p]=o&255,p+=y,o/=256,n-=8);for(s=s<<n|o,l+=n;l>0;A[t+p]=s&255,p+=y,s/=256,l-=8);A[t+p-y]|=_*128}});var Ie=R(cs=>{"use strict";c();var Pu=zw(),os=Pw(),Mw=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;cs.Buffer=C;cs.SlowBuffer=gq;cs.INSPECT_MAX_BYTES=50;var Bc=2147483647;cs.kMaxLength=Bc;C.TYPED_ARRAY_SUPPORT=hq();!C.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&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 hq(){try{let A=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(A,e),A.foo()===42}catch{return!1}}Object.defineProperty(C.prototype,"parent",{enumerable:!0,get:function(){if(C.isBuffer(this))return this.buffer}});Object.defineProperty(C.prototype,"offset",{enumerable:!0,get:function(){if(C.isBuffer(this))return this.byteOffset}});function gr(A){if(A>Bc)throw new RangeError('The value "'+A+'" is invalid for option "size"');let e=new Uint8Array(A);return Object.setPrototypeOf(e,C.prototype),e}function C(A,e,t){if(typeof A=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return $u(A)}return Uw(A,e,t)}C.poolSize=8192;function Uw(A,e,t){if(typeof A=="string")return pq(A,e);if(ArrayBuffer.isView(A))return yq(A);if(A==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof A);if(Kt(A,ArrayBuffer)||A&&Kt(A.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Kt(A,SharedArrayBuffer)||A&&Kt(A.buffer,SharedArrayBuffer)))return Lu(A,e,t);if(typeof A=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let r=A.valueOf&&A.valueOf();if(r!=null&&r!==A)return C.from(r,e,t);let n=mq(A);if(n)return n;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof A[Symbol.toPrimitive]=="function")return C.from(A[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 A)}C.from=function(A,e,t){return Uw(A,e,t)};Object.setPrototypeOf(C.prototype,Uint8Array.prototype);Object.setPrototypeOf(C,Uint8Array);function Gw(A){if(typeof A!="number")throw new TypeError('"size" argument must be of type number');if(A<0)throw new RangeError('The value "'+A+'" is invalid for option "size"')}function jq(A,e,t){return Gw(A),A<=0?gr(A):e!==void 0?typeof t=="string"?gr(A).fill(e,t):gr(A).fill(e):gr(A)}C.alloc=function(A,e,t){return jq(A,e,t)};function $u(A){return Gw(A),gr(A<0?0:Uu(A)|0)}C.allocUnsafe=function(A){return $u(A)};C.allocUnsafeSlow=function(A){return $u(A)};function pq(A,e){if((typeof e!="string"||e==="")&&(e="utf8"),!C.isEncoding(e))throw new TypeError("Unknown encoding: "+e);let t=Kw(A,e)|0,r=gr(t),n=r.write(A,e);return n!==t&&(r=r.slice(0,n)),r}function Mu(A){let e=A.length<0?0:Uu(A.length)|0,t=gr(e);for(let r=0;r<e;r+=1)t[r]=A[r]&255;return t}function yq(A){if(Kt(A,Uint8Array)){let e=new Uint8Array(A);return Lu(e.buffer,e.byteOffset,e.byteLength)}return Mu(A)}function Lu(A,e,t){if(e<0||A.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(A.byteLength<e+(t||0))throw new RangeError('"length" is outside of buffer bounds');let r;return e===void 0&&t===void 0?r=new Uint8Array(A):t===void 0?r=new Uint8Array(A,e):r=new Uint8Array(A,e,t),Object.setPrototypeOf(r,C.prototype),r}function mq(A){if(C.isBuffer(A)){let e=Uu(A.length)|0,t=gr(e);return t.length===0||A.copy(t,0,0,e),t}if(A.length!==void 0)return typeof A.length!="number"||Ku(A.length)?gr(0):Mu(A);if(A.type==="Buffer"&&Array.isArray(A.data))return Mu(A.data)}function Uu(A){if(A>=Bc)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Bc.toString(16)+" bytes");return A|0}function gq(A){return+A!=A&&(A=0),C.alloc(+A)}C.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==C.prototype};C.compare=function(e,t){if(Kt(e,Uint8Array)&&(e=C.from(e,e.offset,e.byteLength)),Kt(t,Uint8Array)&&(t=C.from(t,t.offset,t.byteLength)),!C.isBuffer(e)||!C.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let i=0,s=Math.min(r,n);i<s;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0};C.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}};C.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return C.alloc(0);let r;if(t===void 0)for(t=0,r=0;r<e.length;++r)t+=e[r].length;let n=C.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){let s=e[r];if(Kt(s,Uint8Array))i+s.length>n.length?(C.isBuffer(s)||(s=C.from(s)),s.copy(n,i)):Uint8Array.prototype.set.call(n,s,i);else if(C.isBuffer(s))s.copy(n,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=s.length}return n};function Kw(A,e){if(C.isBuffer(A))return A.length;if(ArrayBuffer.isView(A)||Kt(A,ArrayBuffer))return A.byteLength;if(typeof A!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof A);let t=A.length,r=arguments.length>2&&arguments[2]===!0;if(!r&&t===0)return 0;let n=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return Du(A).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return Ab(A).length;default:if(n)return r?-1:Du(A).length;e=(""+e).toLowerCase(),n=!0}}C.byteLength=Kw;function wq(A,e,t){let r=!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(A||(A="utf8");;)switch(A){case"hex":return Bq(this,e,t);case"utf8":case"utf-8":return Hw(this,e,t);case"ascii":return Iq(this,e,t);case"latin1":case"binary":return Tq(this,e,t);case"base64":return Sq(this,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Oq(this,e,t);default:if(r)throw new TypeError("Unknown encoding: "+A);A=(A+"").toLowerCase(),r=!0}}C.prototype._isBuffer=!0;function Qn(A,e,t){let r=A[e];A[e]=A[t],A[t]=r}C.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)Qn(this,t,t+1);return this};C.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)Qn(this,t,t+3),Qn(this,t+1,t+2);return this};C.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)Qn(this,t,t+7),Qn(this,t+1,t+6),Qn(this,t+2,t+5),Qn(this,t+3,t+4);return this};C.prototype.toString=function(){let e=this.length;return e===0?"":arguments.length===0?Hw(this,0,e):wq.apply(this,arguments)};C.prototype.toLocaleString=C.prototype.toString;C.prototype.equals=function(e){if(!C.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:C.compare(this,e)===0};C.prototype.inspect=function(){let e="",t=cs.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"};Mw&&(C.prototype[Mw]=C.prototype.inspect);C.prototype.compare=function(e,t,r,n,i){if(Kt(e,Uint8Array)&&(e=C.from(e,e.offset,e.byteLength)),!C.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),r===void 0&&(r=e?e.length:0),n===void 0&&(n=0),i===void 0&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;let s=i-n,o=r-t,a=Math.min(s,o),l=this.slice(n,i),f=e.slice(t,r);for(let d=0;d<a;++d)if(l[d]!==f[d]){s=l[d],o=f[d];break}return s<o?-1:o<s?1:0};function Ww(A,e,t,r,n){if(A.length===0)return-1;if(typeof t=="string"?(r=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,Ku(t)&&(t=n?0:A.length-1),t<0&&(t=A.length+t),t>=A.length){if(n)return-1;t=A.length-1}else if(t<0)if(n)t=0;else return-1;if(typeof e=="string"&&(e=C.from(e,r)),C.isBuffer(e))return e.length===0?-1:Lw(A,e,t,r,n);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(A,e,t):Uint8Array.prototype.lastIndexOf.call(A,e,t):Lw(A,[e],t,r,n);throw new TypeError("val must be string, number or Buffer")}function Lw(A,e,t,r,n){let i=1,s=A.length,o=e.length;if(r!==void 0&&(r=String(r).toLowerCase(),r==="ucs2"||r==="ucs-2"||r==="utf16le"||r==="utf-16le")){if(A.length<2||e.length<2)return-1;i=2,s/=2,o/=2,t/=2}function a(f,d){return i===1?f[d]:f.readUInt16BE(d*i)}let l;if(n){let f=-1;for(l=t;l<s;l++)if(a(A,l)===a(e,f===-1?0:l-f)){if(f===-1&&(f=l),l-f+1===o)return f*i}else f!==-1&&(l-=l-f),f=-1}else for(t+o>s&&(t=s-o),l=t;l>=0;l--){let f=!0;for(let d=0;d<o;d++)if(a(A,l+d)!==a(e,d)){f=!1;break}if(f)return l}return-1}C.prototype.includes=function(e,t,r){return this.indexOf(e,t,r)!==-1};C.prototype.indexOf=function(e,t,r){return Ww(this,e,t,r,!0)};C.prototype.lastIndexOf=function(e,t,r){return Ww(this,e,t,r,!1)};function bq(A,e,t,r){t=Number(t)||0;let n=A.length-t;r?(r=Number(r),r>n&&(r=n)):r=n;let i=e.length;r>i/2&&(r=i/2);let s;for(s=0;s<r;++s){let o=parseInt(e.substr(s*2,2),16);if(Ku(o))return s;A[t+s]=o}return s}function _q(A,e,t,r){return Oc(Du(e,A.length-t),A,t,r)}function Eq(A,e,t,r){return Oc(Fq(e),A,t,r)}function vq(A,e,t,r){return Oc(Ab(e),A,t,r)}function xq(A,e,t,r){return Oc(Nq(e,A.length-t),A,t,r)}C.prototype.write=function(e,t,r,n){if(t===void 0)n="utf8",r=this.length,t=0;else if(r===void 0&&typeof t=="string")n=t,r=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(r)?(r=r>>>0,n===void 0&&(n="utf8")):(n=r,r=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let i=this.length-t;if((r===void 0||r>i)&&(r=i),e.length>0&&(r<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 bq(this,e,t,r);case"utf8":case"utf-8":return _q(this,e,t,r);case"ascii":case"latin1":case"binary":return Eq(this,e,t,r);case"base64":return vq(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return xq(this,e,t,r);default:if(s)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),s=!0}};C.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Sq(A,e,t){return e===0&&t===A.length?Pu.fromByteArray(A):Pu.fromByteArray(A.slice(e,t))}function Hw(A,e,t){t=Math.min(A.length,t);let r=[],n=e;for(;n<t;){let i=A[n],s=null,o=i>239?4:i>223?3:i>191?2:1;if(n+o<=t){let a,l,f,d;switch(o){case 1:i<128&&(s=i);break;case 2:a=A[n+1],(a&192)===128&&(d=(i&31)<<6|a&63,d>127&&(s=d));break;case 3:a=A[n+1],l=A[n+2],(a&192)===128&&(l&192)===128&&(d=(i&15)<<12|(a&63)<<6|l&63,d>2047&&(d<55296||d>57343)&&(s=d));break;case 4:a=A[n+1],l=A[n+2],f=A[n+3],(a&192)===128&&(l&192)===128&&(f&192)===128&&(d=(i&15)<<18|(a&63)<<12|(l&63)<<6|f&63,d>65535&&d<1114112&&(s=d))}}s===null?(s=65533,o=1):s>65535&&(s-=65536,r.push(s>>>10&1023|55296),s=56320|s&1023),r.push(s),n+=o}return kq(r)}var Dw=4096;function kq(A){let e=A.length;if(e<=Dw)return String.fromCharCode.apply(String,A);let t="",r=0;for(;r<e;)t+=String.fromCharCode.apply(String,A.slice(r,r+=Dw));return t}function Iq(A,e,t){let r="";t=Math.min(A.length,t);for(let n=e;n<t;++n)r+=String.fromCharCode(A[n]&127);return r}function Tq(A,e,t){let r="";t=Math.min(A.length,t);for(let n=e;n<t;++n)r+=String.fromCharCode(A[n]);return r}function Bq(A,e,t){let r=A.length;(!e||e<0)&&(e=0),(!t||t<0||t>r)&&(t=r);let n="";for(let i=e;i<t;++i)n+=zq[A[i]];return n}function Oq(A,e,t){let r=A.slice(e,t),n="";for(let i=0;i<r.length-1;i+=2)n+=String.fromCharCode(r[i]+r[i+1]*256);return n}C.prototype.slice=function(e,t){let r=this.length;e=~~e,t=t===void 0?r:~~t,e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),t<e&&(t=e);let n=this.subarray(e,t);return Object.setPrototypeOf(n,C.prototype),n};function ge(A,e,t){if(A%1!==0||A<0)throw new RangeError("offset is not uint");if(A+e>t)throw new RangeError("Trying to access beyond buffer length")}C.prototype.readUintLE=C.prototype.readUIntLE=function(e,t,r){e=e>>>0,t=t>>>0,r||ge(e,t,this.length);let n=this[e],i=1,s=0;for(;++s<t&&(i*=256);)n+=this[e+s]*i;return n};C.prototype.readUintBE=C.prototype.readUIntBE=function(e,t,r){e=e>>>0,t=t>>>0,r||ge(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n};C.prototype.readUint8=C.prototype.readUInt8=function(e,t){return e=e>>>0,t||ge(e,1,this.length),this[e]};C.prototype.readUint16LE=C.prototype.readUInt16LE=function(e,t){return e=e>>>0,t||ge(e,2,this.length),this[e]|this[e+1]<<8};C.prototype.readUint16BE=C.prototype.readUInt16BE=function(e,t){return e=e>>>0,t||ge(e,2,this.length),this[e]<<8|this[e+1]};C.prototype.readUint32LE=C.prototype.readUInt32LE=function(e,t){return e=e>>>0,t||ge(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};C.prototype.readUint32BE=C.prototype.readUInt32BE=function(e,t){return e=e>>>0,t||ge(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};C.prototype.readBigUInt64LE=ln(function(e){e=e>>>0,as(e,"offset");let t=this[e],r=this[e+7];(t===void 0||r===void 0)&&Ro(e,this.length-8);let n=t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,i=this[++e]+this[++e]*2**8+this[++e]*2**16+r*2**24;return BigInt(n)+(BigInt(i)<<BigInt(32))});C.prototype.readBigUInt64BE=ln(function(e){e=e>>>0,as(e,"offset");let t=this[e],r=this[e+7];(t===void 0||r===void 0)&&Ro(e,this.length-8);let n=t*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],i=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+r;return(BigInt(n)<<BigInt(32))+BigInt(i)});C.prototype.readIntLE=function(e,t,r){e=e>>>0,t=t>>>0,r||ge(e,t,this.length);let n=this[e],i=1,s=0;for(;++s<t&&(i*=256);)n+=this[e+s]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*t)),n};C.prototype.readIntBE=function(e,t,r){e=e>>>0,t=t>>>0,r||ge(e,t,this.length);let n=t,i=1,s=this[e+--n];for(;n>0&&(i*=256);)s+=this[e+--n]*i;return i*=128,s>=i&&(s-=Math.pow(2,8*t)),s};C.prototype.readInt8=function(e,t){return e=e>>>0,t||ge(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};C.prototype.readInt16LE=function(e,t){e=e>>>0,t||ge(e,2,this.length);let r=this[e]|this[e+1]<<8;return r&32768?r|4294901760:r};C.prototype.readInt16BE=function(e,t){e=e>>>0,t||ge(e,2,this.length);let r=this[e+1]|this[e]<<8;return r&32768?r|4294901760:r};C.prototype.readInt32LE=function(e,t){return e=e>>>0,t||ge(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};C.prototype.readInt32BE=function(e,t){return e=e>>>0,t||ge(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};C.prototype.readBigInt64LE=ln(function(e){e=e>>>0,as(e,"offset");let t=this[e],r=this[e+7];(t===void 0||r===void 0)&&Ro(e,this.length-8);let n=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)});C.prototype.readBigInt64BE=ln(function(e){e=e>>>0,as(e,"offset");let t=this[e],r=this[e+7];(t===void 0||r===void 0)&&Ro(e,this.length-8);let n=(t<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(n)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+r)});C.prototype.readFloatLE=function(e,t){return e=e>>>0,t||ge(e,4,this.length),os.read(this,e,!0,23,4)};C.prototype.readFloatBE=function(e,t){return e=e>>>0,t||ge(e,4,this.length),os.read(this,e,!1,23,4)};C.prototype.readDoubleLE=function(e,t){return e=e>>>0,t||ge(e,8,this.length),os.read(this,e,!0,52,8)};C.prototype.readDoubleBE=function(e,t){return e=e>>>0,t||ge(e,8,this.length),os.read(this,e,!1,52,8)};function He(A,e,t,r,n,i){if(!C.isBuffer(A))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>n||e<i)throw new RangeError('"value" argument is out of bounds');if(t+r>A.length)throw new RangeError("Index out of range")}C.prototype.writeUintLE=C.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t=t>>>0,r=r>>>0,!n){let o=Math.pow(2,8*r)-1;He(this,e,t,r,o,0)}let i=1,s=0;for(this[t]=e&255;++s<r&&(i*=256);)this[t+s]=e/i&255;return t+r};C.prototype.writeUintBE=C.prototype.writeUIntBE=function(e,t,r,n){if(e=+e,t=t>>>0,r=r>>>0,!n){let o=Math.pow(2,8*r)-1;He(this,e,t,r,o,0)}let i=r-1,s=1;for(this[t+i]=e&255;--i>=0&&(s*=256);)this[t+i]=e/s&255;return t+r};C.prototype.writeUint8=C.prototype.writeUInt8=function(e,t,r){return e=+e,t=t>>>0,r||He(this,e,t,1,255,0),this[t]=e&255,t+1};C.prototype.writeUint16LE=C.prototype.writeUInt16LE=function(e,t,r){return e=+e,t=t>>>0,r||He(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2};C.prototype.writeUint16BE=C.prototype.writeUInt16BE=function(e,t,r){return e=+e,t=t>>>0,r||He(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2};C.prototype.writeUint32LE=C.prototype.writeUInt32LE=function(e,t,r){return e=+e,t=t>>>0,r||He(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};C.prototype.writeUint32BE=C.prototype.writeUInt32BE=function(e,t,r){return e=+e,t=t>>>0,r||He(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 Vw(A,e,t,r,n){Qw(e,r,n,A,t,7);let i=Number(e&BigInt(4294967295));A[t++]=i,i=i>>8,A[t++]=i,i=i>>8,A[t++]=i,i=i>>8,A[t++]=i;let s=Number(e>>BigInt(32)&BigInt(4294967295));return A[t++]=s,s=s>>8,A[t++]=s,s=s>>8,A[t++]=s,s=s>>8,A[t++]=s,t}function Xw(A,e,t,r,n){Qw(e,r,n,A,t,7);let i=Number(e&BigInt(4294967295));A[t+7]=i,i=i>>8,A[t+6]=i,i=i>>8,A[t+5]=i,i=i>>8,A[t+4]=i;let s=Number(e>>BigInt(32)&BigInt(4294967295));return A[t+3]=s,s=s>>8,A[t+2]=s,s=s>>8,A[t+1]=s,s=s>>8,A[t]=s,t+8}C.prototype.writeBigUInt64LE=ln(function(e,t=0){return Vw(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))});C.prototype.writeBigUInt64BE=ln(function(e,t=0){return Xw(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))});C.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t=t>>>0,!n){let a=Math.pow(2,8*r-1);He(this,e,t,r,a-1,-a)}let i=0,s=1,o=0;for(this[t]=e&255;++i<r&&(s*=256);)e<0&&o===0&&this[t+i-1]!==0&&(o=1),this[t+i]=(e/s>>0)-o&255;return t+r};C.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t=t>>>0,!n){let a=Math.pow(2,8*r-1);He(this,e,t,r,a-1,-a)}let i=r-1,s=1,o=0;for(this[t+i]=e&255;--i>=0&&(s*=256);)e<0&&o===0&&this[t+i+1]!==0&&(o=1),this[t+i]=(e/s>>0)-o&255;return t+r};C.prototype.writeInt8=function(e,t,r){return e=+e,t=t>>>0,r||He(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1};C.prototype.writeInt16LE=function(e,t,r){return e=+e,t=t>>>0,r||He(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2};C.prototype.writeInt16BE=function(e,t,r){return e=+e,t=t>>>0,r||He(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2};C.prototype.writeInt32LE=function(e,t,r){return e=+e,t=t>>>0,r||He(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};C.prototype.writeInt32BE=function(e,t,r){return e=+e,t=t>>>0,r||He(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};C.prototype.writeBigInt64LE=ln(function(e,t=0){return Vw(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});C.prototype.writeBigInt64BE=ln(function(e,t=0){return Xw(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Yw(A,e,t,r,n,i){if(t+r>A.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function Jw(A,e,t,r,n){return e=+e,t=t>>>0,n||Yw(A,e,t,4,34028234663852886e22,-34028234663852886e22),os.write(A,e,t,r,23,4),t+4}C.prototype.writeFloatLE=function(e,t,r){return Jw(this,e,t,!0,r)};C.prototype.writeFloatBE=function(e,t,r){return Jw(this,e,t,!1,r)};function Zw(A,e,t,r,n){return e=+e,t=t>>>0,n||Yw(A,e,t,8,17976931348623157e292,-17976931348623157e292),os.write(A,e,t,r,52,8),t+8}C.prototype.writeDoubleLE=function(e,t,r){return Zw(this,e,t,!0,r)};C.prototype.writeDoubleBE=function(e,t,r){return Zw(this,e,t,!1,r)};C.prototype.copy=function(e,t,r,n){if(!C.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),!n&&n!==0&&(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||e.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=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-r&&(n=e.length-t+r);let i=n-r;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),i};C.prototype.fill=function(e,t,r,n){if(typeof e=="string"){if(typeof t=="string"?(n=t,t=0,r=this.length):typeof r=="string"&&(n=r,r=this.length),n!==void 0&&typeof n!="string")throw new TypeError("encoding must be a string");if(typeof n=="string"&&!C.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<r)throw new RangeError("Out of range index");if(r<=t)return this;t=t>>>0,r=r===void 0?this.length:r>>>0,e||(e=0);let i;if(typeof e=="number")for(i=t;i<r;++i)this[i]=e;else{let s=C.isBuffer(e)?e:C.from(e,n),o=s.length;if(o===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=s[i%o]}return this};var ss={};function Gu(A,e,t){ss[A]=class extends t{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${A}]`,this.stack,delete this.name}get code(){return A}set code(n){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:n,writable:!0})}toString(){return`${this.name} [${A}]: ${this.message}`}}}Gu("ERR_BUFFER_OUT_OF_BOUNDS",function(A){return A?`${A} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);Gu("ERR_INVALID_ARG_TYPE",function(A,e){return`The "${A}" argument must be of type number. Received type ${typeof e}`},TypeError);Gu("ERR_OUT_OF_RANGE",function(A,e,t){let r=`The value of "${A}" is out of range.`,n=t;return Number.isInteger(t)&&Math.abs(t)>2**32?n=$w(String(t)):typeof t=="bigint"&&(n=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(n=$w(n)),n+="n"),r+=` It must be ${e}. Received ${n}`,r},RangeError);function $w(A){let e="",t=A.length,r=A[0]==="-"?1:0;for(;t>=r+4;t-=3)e=`_${A.slice(t-3,t)}${e}`;return`${A.slice(0,t)}${e}`}function qq(A,e,t){as(e,"offset"),(A[e]===void 0||A[e+t]===void 0)&&Ro(e,A.length-(t+1))}function Qw(A,e,t,r,n,i){if(A>t||A<e){let s=typeof e=="bigint"?"n":"",o;throw i>3?e===0||e===BigInt(0)?o=`>= 0${s} and < 2${s} ** ${(i+1)*8}${s}`:o=`>= -(2${s} ** ${(i+1)*8-1}${s}) and < 2 ** ${(i+1)*8-1}${s}`:o=`>= ${e}${s} and <= ${t}${s}`,new ss.ERR_OUT_OF_RANGE("value",o,A)}qq(r,n,i)}function as(A,e){if(typeof A!="number")throw new ss.ERR_INVALID_ARG_TYPE(e,"number",A)}function Ro(A,e,t){throw Math.floor(A)!==A?(as(A,t),new ss.ERR_OUT_OF_RANGE(t||"offset","an integer",A)):e<0?new ss.ERR_BUFFER_OUT_OF_BOUNDS:new ss.ERR_OUT_OF_RANGE(t||"offset",`>= ${t?1:0} and <= ${e}`,A)}var Rq=/[^+/0-9A-Za-z-_]/g;function Cq(A){if(A=A.split("=")[0],A=A.trim().replace(Rq,""),A.length<2)return"";for(;A.length%4!==0;)A=A+"=";return A}function Du(A,e){e=e||1/0;let t,r=A.length,n=null,i=[];for(let s=0;s<r;++s){if(t=A.charCodeAt(s),t>55295&&t<57344){if(!n){if(t>56319){(e-=3)>-1&&i.push(239,191,189);continue}else if(s+1===r){(e-=3)>-1&&i.push(239,191,189);continue}n=t;continue}if(t<56320){(e-=3)>-1&&i.push(239,191,189),n=t;continue}t=(n-55296<<10|t-56320)+65536}else n&&(e-=3)>-1&&i.push(239,191,189);if(n=null,t<128){if((e-=1)<0)break;i.push(t)}else if(t<2048){if((e-=2)<0)break;i.push(t>>6|192,t&63|128)}else if(t<65536){if((e-=3)<0)break;i.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((e-=4)<0)break;i.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return i}function Fq(A){let e=[];for(let t=0;t<A.length;++t)e.push(A.charCodeAt(t)&255);return e}function Nq(A,e){let t,r,n,i=[];for(let s=0;s<A.length&&!((e-=2)<0);++s)t=A.charCodeAt(s),r=t>>8,n=t%256,i.push(n),i.push(r);return i}function Ab(A){return Pu.toByteArray(Cq(A))}function Oc(A,e,t,r){let n;for(n=0;n<r&&!(n+t>=e.length||n>=A.length);++n)e[n+t]=A[n];return n}function Kt(A,e){return A instanceof e||A!=null&&A.constructor!=null&&A.constructor.name!=null&&A.constructor.name===e.name}function Ku(A){return A!==A}var zq=function(){let A="0123456789abcdef",e=new Array(256);for(let t=0;t<16;++t){let r=t*16;for(let n=0;n<16;++n)e[r+n]=A[t]+A[n]}return e}();function ln(A){return typeof BigInt>"u"?Pq:A}function Pq(){throw new Error("BigInt not supported")}});var eb,u,c=iq(()=>{"use strict";eb=DA(Ie(),1),u=eb.Buffer});var Wt=R((t5,rb)=>{c();var Wu=4294967296,tb=[];for(ls=0;ls<256;ls++)tb[ls]=(ls>15?"":"0")+ls.toString(16);var ls,Co=rb.exports=function(A,e){A instanceof u?(this.buffer=A,this.offset=e||0):Object.prototype.toString.call(A)=="[object Uint8Array]"?(this.buffer=new u(A),this.offset=e||0):(this.buffer=this.buffer||new u(8),this.offset=0,this.setValue.apply(this,arguments))};Co.MAX_INT=Math.pow(2,53);Co.MIN_INT=-Math.pow(2,53);Co.prototype={constructor:Co,_2scomp:function(){for(var A=this.buffer,e=this.offset,t=1,r=e+7;r>=e;r--){var n=(A[r]^255)+t;A[r]=n&255,t=n>>8}},setValue:function(A,e){var t=!1;if(arguments.length==1)if(typeof A=="number"){if(t=A<0,A=Math.abs(A),e=A%Wu,A=A/Wu,A>Wu)throw new RangeError(A+" is outside Int64 range");A=A|0}else if(typeof A=="string")A=(A+"").replace(/^0x/,""),e=A.substr(-8),A=A.length>8?A.substr(0,A.length-8):"",A=parseInt(A,16),e=parseInt(e,16);else throw new Error(A+" must be a Number or String");for(var r=this.buffer,n=this.offset,i=7;i>=0;i--)r[n+i]=e&255,e=i==4?A:e>>>8;t&&this._2scomp()},toNumber:function(A){for(var e=this.buffer,t=this.offset,r=e[t]&128,n=0,i=1,s=7,o=1;s>=0;s--,o*=256){var a=e[t+s];r&&(a=(a^255)+i,i=a>>8,a=a&255),n+=a*o}return!A&&n>=Co.MAX_INT?r?-1/0:1/0:r?-n:n},valueOf:function(){return this.toNumber(!1)},toString:function(A){return this.valueOf().toString(A||10)},toOctetString:function(A){for(var e=new Array(8),t=this.buffer,r=this.offset,n=0;n<8;n++)e[n]=tb[t[r+n]];return e.join(A||"")},toBuffer:function(A){if(A&&this.offset===0)return this.buffer;var e=new u(8);return this.buffer.copy(e,0,this.offset,this.offset+8),e},copy:function(A,e){this.buffer.copy(A,e||0,this.offset,this.offset+8)},compare:function(A){if((this.buffer[this.offset]&128)!=(A.buffer[A.offset]&128))return A.buffer[A.offset]-this.buffer[this.offset];for(var e=0;e<8;e++)if(this.buffer[this.offset+e]!==A.buffer[A.offset+e])return this.buffer[this.offset+e]-A.buffer[A.offset+e];return 0},equals:function(A){return this.compare(A)===0},inspect:function(){return"[Int64 value:"+this+" octets:"+this.toOctetString(" ")+"]"}}});var Hu=R((n5,nb)=>{"use strict";c();nb.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),r=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var n=42;e[t]=n;for(t in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(e,t);if(s.value!==n||s.enumerable!==!0)return!1}return!0}});var Fo=R((s5,ib)=>{"use strict";c();var Mq=Hu();ib.exports=function(){return Mq()&&!!Symbol.toStringTag}});var ob=R((a5,sb)=>{"use strict";c();sb.exports=Error});var cb=R((l5,ab)=>{"use strict";c();ab.exports=EvalError});var fb=R((d5,lb)=>{"use strict";c();lb.exports=RangeError});var ub=R((h5,db)=>{"use strict";c();db.exports=ReferenceError});var Vu=R((p5,hb)=>{"use strict";c();hb.exports=SyntaxError});var No=R((m5,jb)=>{"use strict";c();jb.exports=TypeError});var yb=R((w5,pb)=>{"use strict";c();pb.exports=URIError});var wb=R((_5,gb)=>{"use strict";c();var mb=typeof Symbol<"u"&&Symbol,Lq=Hu();gb.exports=function(){return typeof mb!="function"||typeof Symbol!="function"||typeof mb("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Lq()}});var Eb=R((v5,_b)=>{"use strict";c();var bb={foo:{}},Dq=Object;_b.exports=function(){return{__proto__:bb}.foo===bb.foo&&!({__proto__:null}instanceof Dq)}});var Sb=R((S5,xb)=>{"use strict";c();var $q="Function.prototype.bind called on incompatible ",Uq=Object.prototype.toString,Gq=Math.max,Kq="[object Function]",vb=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var i=0;i<t.length;i+=1)r[i+e.length]=t[i];return r},Wq=function(e,t){for(var r=[],n=t||0,i=0;n<e.length;n+=1,i+=1)r[i]=e[n];return r},Hq=function(A,e){for(var t="",r=0;r<A.length;r+=1)t+=A[r],r+1<A.length&&(t+=e);return t};xb.exports=function(e){var t=this;if(typeof t!="function"||Uq.apply(t)!==Kq)throw new TypeError($q+t);for(var r=Wq(arguments,1),n,i=function(){if(this instanceof n){var f=t.apply(this,vb(r,arguments));return Object(f)===f?f:this}return t.apply(e,vb(r,arguments))},s=Gq(0,t.length-r.length),o=[],a=0;a<s;a++)o[a]="$"+a;if(n=Function("binder","return function ("+Hq(o,",")+"){ return binder.apply(this,arguments); }")(i),t.prototype){var l=function(){};l.prototype=t.prototype,n.prototype=new l,l.prototype=null}return n}});var qc=R((I5,kb)=>{"use strict";c();var Vq=Sb();kb.exports=Function.prototype.bind||Vq});var Tb=R((B5,Ib)=>{"use strict";c();var Xq=Function.prototype.call,Yq=Object.prototype.hasOwnProperty,Jq=qc();Ib.exports=Jq.call(Xq,Yq)});var js=R((q5,Cb)=>{"use strict";c();var wA,Zq=ob(),Qq=cb(),AR=fb(),eR=ub(),hs=Vu(),us=No(),tR=yb(),Rb=Function,Xu=function(A){try{return Rb('"use strict"; return ('+A+").constructor;")()}catch{}},Ai=Object.getOwnPropertyDescriptor;if(Ai)try{Ai({},"")}catch{Ai=null}var Yu=function(){throw new us},rR=Ai?function(){try{return arguments.callee,Yu}catch{try{return Ai(arguments,"callee").get}catch{return Yu}}}():Yu,fs=wb()(),nR=Eb()(),we=Object.getPrototypeOf||(nR?function(A){return A.__proto__}:null),ds={},iR=typeof Uint8Array>"u"||!we?wA:we(Uint8Array),ei={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?wA:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?wA:ArrayBuffer,"%ArrayIteratorPrototype%":fs&&we?we([][Symbol.iterator]()):wA,"%AsyncFromSyncIteratorPrototype%":wA,"%AsyncFunction%":ds,"%AsyncGenerator%":ds,"%AsyncGeneratorFunction%":ds,"%AsyncIteratorPrototype%":ds,"%Atomics%":typeof Atomics>"u"?wA:Atomics,"%BigInt%":typeof BigInt>"u"?wA:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?wA:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?wA:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?wA:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Zq,"%eval%":eval,"%EvalError%":Qq,"%Float32Array%":typeof Float32Array>"u"?wA:Float32Array,"%Float64Array%":typeof Float64Array>"u"?wA:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?wA:FinalizationRegistry,"%Function%":Rb,"%GeneratorFunction%":ds,"%Int8Array%":typeof Int8Array>"u"?wA:Int8Array,"%Int16Array%":typeof Int16Array>"u"?wA:Int16Array,"%Int32Array%":typeof Int32Array>"u"?wA:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":fs&&we?we(we([][Symbol.iterator]())):wA,"%JSON%":typeof JSON=="object"?JSON:wA,"%Map%":typeof Map>"u"?wA:Map,"%MapIteratorPrototype%":typeof Map>"u"||!fs||!we?wA:we(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?wA:Promise,"%Proxy%":typeof Proxy>"u"?wA:Proxy,"%RangeError%":AR,"%ReferenceError%":eR,"%Reflect%":typeof Reflect>"u"?wA:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?wA:Set,"%SetIteratorPrototype%":typeof Set>"u"||!fs||!we?wA:we(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?wA:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":fs&&we?we(""[Symbol.iterator]()):wA,"%Symbol%":fs?Symbol:wA,"%SyntaxError%":hs,"%ThrowTypeError%":rR,"%TypedArray%":iR,"%TypeError%":us,"%Uint8Array%":typeof Uint8Array>"u"?wA:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?wA:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?wA:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?wA:Uint32Array,"%URIError%":tR,"%WeakMap%":typeof WeakMap>"u"?wA:WeakMap,"%WeakRef%":typeof WeakRef>"u"?wA:WeakRef,"%WeakSet%":typeof WeakSet>"u"?wA:WeakSet};if(we)try{null.error}catch(A){Bb=we(we(A)),ei["%Error.prototype%"]=Bb}var Bb,sR=function A(e){var t;if(e==="%AsyncFunction%")t=Xu("async function () {}");else if(e==="%GeneratorFunction%")t=Xu("function* () {}");else if(e==="%AsyncGeneratorFunction%")t=Xu("async function* () {}");else if(e==="%AsyncGenerator%"){var r=A("%AsyncGeneratorFunction%");r&&(t=r.prototype)}else if(e==="%AsyncIteratorPrototype%"){var n=A("%AsyncGenerator%");n&&we&&(t=we(n.prototype))}return ei[e]=t,t},Ob={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},zo=qc(),Rc=Tb(),oR=zo.call(Function.call,Array.prototype.concat),aR=zo.call(Function.apply,Array.prototype.splice),qb=zo.call(Function.call,String.prototype.replace),Cc=zo.call(Function.call,String.prototype.slice),cR=zo.call(Function.call,RegExp.prototype.exec),lR=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,fR=/\\(\\)?/g,dR=function(e){var t=Cc(e,0,1),r=Cc(e,-1);if(t==="%"&&r!=="%")throw new hs("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&t!=="%")throw new hs("invalid intrinsic syntax, expected opening `%`");var n=[];return qb(e,lR,function(i,s,o,a){n[n.length]=o?qb(a,fR,"$1"):s||i}),n},uR=function(e,t){var r=e,n;if(Rc(Ob,r)&&(n=Ob[r],r="%"+n[0]+"%"),Rc(ei,r)){var i=ei[r];if(i===ds&&(i=sR(r)),typeof i>"u"&&!t)throw new us("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new hs("intrinsic "+e+" does not exist!")};Cb.exports=function(e,t){if(typeof e!="string"||e.length===0)throw new us("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new us('"allowMissing" argument must be a boolean');if(cR(/^%?[^%]*%?$/,e)===null)throw new hs("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=dR(e),n=r.length>0?r[0]:"",i=uR("%"+n+"%",t),s=i.name,o=i.value,a=!1,l=i.alias;l&&(n=l[0],aR(r,oR([0,1],l)));for(var f=1,d=!0;f<r.length;f+=1){var j=r[f],p=Cc(j,0,1),y=Cc(j,-1);if((p==='"'||p==="'"||p==="`"||y==='"'||y==="'"||y==="`")&&p!==y)throw new hs("property names with quotes must have matching quotes");if((j==="constructor"||!d)&&(a=!0),n+="."+j,s="%"+n+"%",Rc(ei,s))o=ei[s];else if(o!=null){if(!(j in o)){if(!t)throw new us("base intrinsic for "+e+" exists, but the property is not available.");return}if(Ai&&f+1>=r.length){var _=Ai(o,j);d=!!_,d&&"get"in _&&!("originalValue"in _.get)?o=_.get:o=o[j]}else d=Rc(o,j),o=o[j];d&&!a&&(ei[s]=o)}}return o}});var Nc=R((C5,Fb)=>{"use strict";c();var hR=js(),Fc=hR("%Object.defineProperty%",!0)||!1;if(Fc)try{Fc({},"a",{value:1})}catch{Fc=!1}Fb.exports=Fc});var Po=R((N5,Nb)=>{"use strict";c();var jR=js(),zc=jR("%Object.getOwnPropertyDescriptor%",!0);if(zc)try{zc([],"length")}catch{zc=null}Nb.exports=zc});var Lb=R((P5,Mb)=>{"use strict";c();var zb=Nc(),pR=Vu(),ps=No(),Pb=Po();Mb.exports=function(e,t,r){if(!e||typeof e!="object"&&typeof e!="function")throw new ps("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new ps("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new ps("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new ps("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new ps("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new ps("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,o=arguments.length>6?arguments[6]:!1,a=!!Pb&&Pb(e,t);if(zb)zb(e,t,{configurable:s===null&&a?a.configurable:!s,enumerable:n===null&&a?a.enumerable:!n,value:r,writable:i===null&&a?a.writable:!i});else if(o||!n&&!i&&!s)e[t]=r;else throw new pR("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var Ub=R((L5,$b)=>{"use strict";c();var Ju=Nc(),Db=function(){return!!Ju};Db.hasArrayLengthDefineBug=function(){if(!Ju)return null;try{return Ju([],"length",{value:1}).length!==1}catch{return!0}};$b.exports=Db});var Vb=R(($5,Hb)=>{"use strict";c();var yR=js(),Gb=Lb(),mR=Ub()(),Kb=Po(),Wb=No(),gR=yR("%Math.floor%");Hb.exports=function(e,t){if(typeof e!="function")throw new Wb("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||gR(t)!==t)throw new Wb("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,i=!0;if("length"in e&&Kb){var s=Kb(e,"length");s&&!s.configurable&&(n=!1),s&&!s.writable&&(i=!1)}return(n||i||!r)&&(mR?Gb(e,"length",t,!0,!0):Gb(e,"length",t)),e}});var A_=R((G5,Pc)=>{"use strict";c();var Zu=qc(),Mc=js(),wR=Vb(),bR=No(),Jb=Mc("%Function.prototype.apply%"),Zb=Mc("%Function.prototype.call%"),Qb=Mc("%Reflect.apply%",!0)||Zu.call(Zb,Jb),Xb=Nc(),_R=Mc("%Math.max%");Pc.exports=function(e){if(typeof e!="function")throw new bR("a function is required");var t=Qb(Zu,Zb,arguments);return wR(t,1+_R(0,e.length-(arguments.length-1)),!0)};var Yb=function(){return Qb(Zu,Jb,arguments)};Xb?Xb(Pc.exports,"apply",{value:Yb}):Pc.exports.apply=Yb});var Lc=R((W5,r_)=>{"use strict";c();var e_=js(),t_=A_(),ER=t_(e_("String.prototype.indexOf"));r_.exports=function(e,t){var r=e_(e,!!t);return typeof r=="function"&&ER(e,".prototype.")>-1?t_(r):r}});var s_=R((V5,i_)=>{"use strict";c();var vR=Fo()(),xR=Lc(),Qu=xR("Object.prototype.toString"),Dc=function(e){return vR&&e&&typeof e=="object"&&Symbol.toStringTag in e?!1:Qu(e)==="[object Arguments]"},n_=function(e){return Dc(e)?!0:e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&Qu(e)!=="[object Array]"&&Qu(e.callee)==="[object Function]"},SR=function(){return Dc(arguments)}();Dc.isLegacyArguments=n_;i_.exports=SR?Dc:n_});var c_=R((Y5,a_)=>{"use strict";c();var kR=Object.prototype.toString,IR=Function.prototype.toString,TR=/^\s*(?:function)?\*/,o_=Fo()(),Ah=Object.getPrototypeOf,BR=function(){if(!o_)return!1;try{return Function("return function*() {}")()}catch{}},eh;a_.exports=function(e){if(typeof e!="function")return!1;if(TR.test(IR.call(e)))return!0;if(!o_){var t=kR.call(e);return t==="[object GeneratorFunction]"}if(!Ah)return!1;if(typeof eh>"u"){var r=BR();eh=r?Ah(r):!1}return Ah(e)===eh}});var u_=R((Z5,d_)=>{"use strict";c();var f_=Function.prototype.toString,ys=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,rh,$c;if(typeof ys=="function"&&typeof Object.defineProperty=="function")try{rh=Object.defineProperty({},"length",{get:function(){throw $c}}),$c={},ys(function(){throw 42},null,rh)}catch(A){A!==$c&&(ys=null)}else ys=null;var OR=/^\s*class\b/,nh=function(e){try{var t=f_.call(e);return OR.test(t)}catch{return!1}},th=function(e){try{return nh(e)?!1:(f_.call(e),!0)}catch{return!1}},Uc=Object.prototype.toString,qR="[object Object]",RR="[object Function]",CR="[object GeneratorFunction]",FR="[object HTMLAllCollection]",NR="[object HTML document.all class]",zR="[object HTMLCollection]",PR=typeof Symbol=="function"&&!!Symbol.toStringTag,MR=!(0 in[,]),ih=function(){return!1};typeof document=="object"&&(l_=document.all,Uc.call(l_)===Uc.call(document.all)&&(ih=function(e){if((MR||!e)&&(typeof e>"u"||typeof e=="object"))try{var t=Uc.call(e);return(t===FR||t===NR||t===zR||t===qR)&&e("")==null}catch{}return!1}));var l_;d_.exports=ys?function(e){if(ih(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;try{ys(e,null,rh)}catch(t){if(t!==$c)return!1}return!nh(e)&&th(e)}:function(e){if(ih(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;if(PR)return th(e);if(nh(e))return!1;var t=Uc.call(e);return t!==RR&&t!==CR&&!/^\[object HTML/.test(t)?!1:th(e)}});var sh=R((AH,j_)=>{"use strict";c();var LR=u_(),DR=Object.prototype.toString,h_=Object.prototype.hasOwnProperty,$R=function(e,t,r){for(var n=0,i=e.length;n<i;n++)h_.call(e,n)&&(r==null?t(e[n],n,e):t.call(r,e[n],n,e))},UR=function(e,t,r){for(var n=0,i=e.length;n<i;n++)r==null?t(e.charAt(n),n,e):t.call(r,e.charAt(n),n,e)},GR=function(e,t,r){for(var n in e)h_.call(e,n)&&(r==null?t(e[n],n,e):t.call(r,e[n],n,e))},KR=function(e,t,r){if(!LR(t))throw new TypeError("iterator must be a function");var n;arguments.length>=3&&(n=r),DR.call(e)==="[object Array]"?$R(e,t,n):typeof e=="string"?UR(e,t,n):GR(e,t,n)};j_.exports=KR});var ah=R((tH,p_)=>{"use strict";c();var oh=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],WR=typeof globalThis>"u"?window:globalThis;p_.exports=function(){for(var e=[],t=0;t<oh.length;t++)typeof WR[oh[t]]=="function"&&(e[e.length]=oh[t]);return e}});var fh=R((nH,b_)=>{"use strict";c();var y_=sh(),HR=ah(),lh=Lc(),VR=lh("Object.prototype.toString"),m_=Fo()(),Gc=Po(),XR=typeof globalThis>"u"?window:globalThis,g_=HR(),YR=lh("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return-1},JR=lh("String.prototype.slice"),w_={},ch=Object.getPrototypeOf;m_&&Gc&&ch&&y_(g_,function(A){var e=new XR[A];if(Symbol.toStringTag in e){var t=ch(e),r=Gc(t,Symbol.toStringTag);if(!r){var n=ch(t);r=Gc(n,Symbol.toStringTag)}w_[A]=r.get}});var ZR=function(e){var t=!1;return y_(w_,function(r,n){if(!t)try{t=r.call(e)===n}catch{}}),t};b_.exports=function(e){if(!e||typeof e!="object")return!1;if(!m_||!(Symbol.toStringTag in e)){var t=JR(VR(e),8,-1);return YR(g_,t)>-1}return Gc?ZR(e):!1}});var I_=R((sH,k_)=>{"use strict";c();var E_=sh(),QR=ah(),v_=Lc(),dh=Po(),AC=v_("Object.prototype.toString"),x_=Fo()(),__=typeof globalThis>"u"?window:globalThis,eC=QR(),tC=v_("String.prototype.slice"),S_={},uh=Object.getPrototypeOf;x_&&dh&&uh&&E_(eC,function(A){if(typeof __[A]=="function"){var e=new __[A];if(Symbol.toStringTag in e){var t=uh(e),r=dh(t,Symbol.toStringTag);if(!r){var n=uh(t);r=dh(n,Symbol.toStringTag)}S_[A]=r.get}}});var rC=function(e){var t=!1;return E_(S_,function(r,n){if(!t)try{var i=r.call(e);i===n&&(t=i)}catch{}}),t},nC=fh();k_.exports=function(e){return nC(e)?!x_||!(Symbol.toStringTag in e)?tC(AC(e),8,-1):rC(e):!1}});var