"use strict";var gifti=(()=>{var dt=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var ft=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var wr=ft((la,Te)=>{"use strict";var It=It||{};It.Utils=It.Utils||{};It.Utils.crcTable=null;It.Utils.makeCRCTable=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e}return t};It.Utils.crc32=function(e){for(var t=It.Utils.crcTable||(It.Utils.crcTable=It.Utils.makeCRCTable()),r=-1,n=0;n>>8^t[(r^e.getUint8(n))&255];return(r^-1)>>>0};var Xn=typeof Te;Xn!=="undefined"&&Te.exports&&(Te.exports=It.Utils)});var Ye=ft((ca,ge)=>{"use strict";var ye=ye||{};ye.Transform=ye.Transform||function(){this.dataSpace=null,this.transformedSpace=null,this.matrixData=null};var Zn=typeof ge;Zn!=="undefined"&&ge.exports&&(ge.exports=ye.Transform)});var Nr=ft((ha,Ae)=>{"use strict";var Hn={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",decodeArrayBuffer:function(e){var t=this._keyStr.indexOf(e.charAt(e.length-1)),r=this._keyStr.indexOf(e.charAt(e.length-2)),n=e.length/4*3;t==64&&n--,r==64&&n--;var i=new ArrayBuffer(n);return this.decode(e,i,n),i},decode:function(e,t,r){var n,i,o,s,l,c,h,T,g=0,I=0;for(t?n=new Uint8Array(t):n=new Uint8Array(r),e=e.replace(/[^A-Za-z0-9\+\/\=]/g,""),g=0;g>4,o=(c&15)<<4|h>>2,s=(h&3)<<6|T,n[g]=i,h!=64&&(n[g+1]=o),T!=64&&(n[g+2]=s);return n}},Wn=typeof Ae;Wn!=="undefined"&&Ae.exports&&(Ae.exports=Hn)});var xr=ft(Dr=>{"use strict";var Br={};Dr.default=function(e,t,r,n,i){var o=new Worker(Br[t]||(Br[t]=URL.createObjectURL(new Blob([e+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return o.onmessage=function(s){var l=s.data,c=l.$e$;if(c){var h=new Error(c[0]);h.code=c[1],h.stack=c[2],i(h,null)}else i(null,l)},o.postMessage(r,n),o}});var hn=ft(S=>{"use strict";var $n=xr(),G=Uint8Array,it=Uint16Array,Zt=Uint32Array,Ht=new G([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Wt=new G([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),ae=new G([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Cr=function(e,t){for(var r=new it(31),n=0;n<31;++n)r[n]=t+=1<>>1|(Y&21845)<<1,Ft=(Ft&52428)>>>2|(Ft&13107)<<2,Ft=(Ft&61680)>>>4|(Ft&3855)<<4,oe[Y]=((Ft&65280)>>>8|(Ft&255)<<8)>>>1;var Ft,Y,yt=function(e,t,r){for(var n=e.length,i=0,o=new it(t);i>>c]=h}else for(l=new it(n),i=0;i>>15-e[i]);return l},Ct=new G(288);for(Y=0;Y<144;++Y)Ct[Y]=8;var Y;for(Y=144;Y<256;++Y)Ct[Y]=9;var Y;for(Y=256;Y<280;++Y)Ct[Y]=7;var Y;for(Y=280;Y<288;++Y)Ct[Y]=8;var Y,qt=new G(32);for(Y=0;Y<32;++Y)qt[Y]=5;var Y,Lr=yt(Ct,9,0),Or=yt(Ct,9,1),Gr=yt(qt,5,0),Mr=yt(qt,5,1),de=function(e){for(var t=e[0],r=1;rt&&(t=e[r]);return t},Tt=function(e,t,r){var n=t/8|0;return(e[n]|e[n+1]<<8)>>(t&7)&r},Ie=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},ue=function(e){return(e+7)/8|0},gt=function(e,t,r){(t==null||t<0)&&(t=0),(r==null||r>e.length)&&(r=e.length);var n=new(e.BYTES_PER_ELEMENT==2?it:e.BYTES_PER_ELEMENT==4?Zt:G)(r-t);return n.set(e.subarray(t,r)),n};S.FlateErrorCode={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14};var Pr=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],F=function(e,t,r){var n=new Error(t||Pr[e]);if(n.code=e,Error.captureStackTrace&&Error.captureStackTrace(n,F),!r)throw n;return n},fe=function(e,t,r){var n=e.length;if(!n||r&&r.f&&!r.l)return t||new G(0);var i=!t||r,o=!r||r.i;r||(r={}),t||(t=new G(n*3));var s=function(u){var a=t.length;if(u>a){var A=new G(Math.max(a*2,u));A.set(t),t=A}},l=r.f||0,c=r.p||0,h=r.b||0,T=r.l,g=r.d,I=r.m,w=r.n,B=n*8;do{if(!T){l=Tt(e,c,1);var C=Tt(e,c+1,3);if(c+=3,C)if(C==1)T=Or,g=Mr,I=9,w=5;else if(C==2){var N=Tt(e,c,31)+257,D=Tt(e,c+10,15)+4,P=N+Tt(e,c+5,31)+1;c+=14;for(var U=new G(P),d=new G(19),f=0;f>>4;if(v<16)U[f++]=v;else{var q=0,M=0;for(v==16?(M=3+Tt(e,c,3),c+=2,q=U[f-1]):v==17?(M=3+Tt(e,c,7),c+=3):v==18&&(M=11+Tt(e,c,127),c+=7);M--;)U[f++]=q}}var Z=U.subarray(0,N),x=U.subarray(N);I=de(Z),w=de(x),T=yt(Z,I,1),g=yt(x,w,1)}else F(1);else{var v=ue(c)+4,_=e[v-4]|e[v-3]<<8,R=v+_;if(R>n){o&&F(0);break}i&&s(h+_),t.set(e.subarray(v,R),h),r.b=h+=_,r.p=c=R*8,r.f=l;continue}if(c>B){o&&F(0);break}}i&&s(h+131072);for(var X=(1<>>4;if(c+=q&15,c>B){o&&F(0);break}if(q||F(2),Q<256)t[h++]=Q;else if(Q==256){J=c,T=null;break}else{var K=Q-254;if(Q>264){var f=Q-257,ht=Ht[f];K=Tt(e,c,(1<>>4;pt||F(3),c+=pt&15;var x=Rr[rt];if(rt>3){var ht=Wt[rt];x+=Ie(e,c)&(1<B){o&&F(0);break}i&&s(h+131072);for(var tt=h+K;h>>8},kt=function(e,t,r){r<<=t&7;var n=t/8|0;e[n]|=r,e[n+1]|=r>>>8,e[n+2]|=r>>>16},ve=function(e,t){for(var r=[],n=0;nI&&(I=o[n].s);var w=new it(I+1),B=we(r[T-1],w,0);if(B>t){var n=0,C=0,v=B-t,_=1<t)C+=_-(1<>>=v;C>0;){var N=o[n].s;w[N]=0&&C;--n){var D=o[n].s;w[D]==t&&(--w[D],++C)}B=t}return[new G(w),B]},we=function(e,t,r){return e.s==-1?Math.max(we(e.l,t,r+1),we(e.r,t,r+1)):t[e.s]=r},qe=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new it(++t),n=0,i=e[0],o=1,s=function(c){r[n++]=c},l=1;l<=t;++l)if(e[l]==i&&l!=t)++o;else{if(!i&&o>2){for(;o>138;o-=138)s(32754);o>2&&(s(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(s(i),--o;o>6;o-=6)s(8304);o>2&&(s(o-3<<5|8208),o=0)}for(;o--;)s(i);o=1,i=e[l]}return[r.subarray(0,n),t]},Vt=function(e,t){for(var r=0,n=0;n>>8,e[i+2]=e[i]^255,e[i+3]=e[i+1]^255;for(var o=0;o4&&!O[ae[b-1]];--b);var q=h+5<<3,M=Vt(i,Ct)+Vt(o,qt)+s,Z=Vt(i,I)+Vt(o,C)+s+14+3*b+Vt(d,O)+(2*d[16]+3*d[17]+7*d[18]);if(q<=M&&q<=Z)return Ne(t,T,e.subarray(c,c+h));var x,X,j,J;if(vt(t,T,1+(Z15&&(vt(t,T,pt[f]>>>5&127),T+=pt[f]>>>12)}}else x=Lr,X=Ct,j=Gr,J=qt;for(var f=0;f255){var rt=n[f]>>>18&31;kt(t,T,x[rt+257]),T+=X[rt+257],rt>7&&(vt(t,T,n[f]>>>23&31),T+=Ht[rt]);var tt=n[f]&31;kt(t,T,j[tt]),T+=J[tt],tt>3&&(kt(t,T,n[f]>>>5&8191),T+=Wt[tt])}else kt(t,T,x[n[f]]),T+=X[n[f]];return kt(t,T,x[256]),T+X[256]},br=new Zt([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),_t=new G(0),zr=function(e,t,r,n,i,o){var s=e.length,l=new G(n+s+5*(1+Math.ceil(s/7e3))+i),c=l.subarray(n,l.length-i),h=0;if(!t||s<8)for(var T=0;T<=s;T+=65535){var g=T+65535;g>=s&&(c[h>>3]=o),h=Ne(c,h+1,e.subarray(T,g))}else{for(var I=br[t-1],w=I>>>13,B=I&8191,C=(1<7e3||O>24576)&&x>423){h=Xe(e,c,0,P,U,d,V,O,b,T-b,h),O=f=V=0,b=T;for(var X=0;X<286;++X)U[X]=0;for(var X=0;X<30;++X)d[X]=0}var j=2,J=0,Q=B,K=M-Z&32767;if(x>2&&q==D(T-K))for(var ht=Math.min(w,x)-1,pt=Math.min(32767,T),rt=Math.min(258,x);K<=pt&&--Q&&M!=Z;){if(e[T+j]==e[T+j-K]){for(var tt=0;ttj){if(j=tt,J=K,tt>ht)break;for(var u=Math.min(K,tt-2),a=0,X=0;Xa&&(a=z,Z=A)}}}M=Z,Z=v[M],K+=M-Z+32768&32767}if(J){P[O++]=268435456|me[j]<<18|Ve[J];var H=me[j]&31,W=Ve[J]&31;V+=Ht[H]+Wt[W],++U[257+H],++d[W],L=T+j,++f}else P[O++]=e[T],++U[e[T]]}}h=Xe(e,c,o,P,U,d,V,O,b,T-b,h),!o&&h&7&&(h=Ne(c,h+1,_t))}return gt(l,0,n+ue(h)+i)},Yr=function(){for(var e=new Int32Array(256),t=0;t<256;++t){for(var r=t,n=9;--n;)r=(r&1&&-306674912)^r>>>1;e[t]=r}return e}(),$t=function(){var e=-1;return{p:function(t){for(var r=e,n=0;n>>8;e=r},d:function(){return~e}}},Qe=function(){var e=1,t=0;return{p:function(r){for(var n=e,i=t,o=r.length|0,s=0;s!=o;){for(var l=Math.min(s+2655,o);s>16),i=(i&65535)+15*(i>>16)}e=n,t=i},d:function(){return e%=65521,t%=65521,(e&255)<<24|e>>>8<<16|(t&255)<<8|t>>>8}}},Gt=function(e,t,r,n,i){return zr(e,t.level==null?6:t.level,t.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):12+t.mem,r,n,!i)},le=function(e,t){var r={};for(var n in e)r[n]=e[n];for(var n in t)r[n]=t[n];return r},Fr=function(e,t,r){for(var n=e(),i=e.toString(),o=i.slice(i.indexOf("[")+1,i.lastIndexOf("]")).replace(/\s+/g,"").split(","),s=0;s>>0},ke=function(e,t){return $(e,t)+$(e,t+4)*4294967296},k=function(e,t,r){for(;r;++t)e[t]=r,r>>>=8},Ke=function(e,t){var r=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:t.level==9?2:0,e[9]=3,t.mtime!=0&&k(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),r){e[3]=8;for(var n=0;n<=r.length;++n)e[n+10]=r.charCodeAt(n)}},Je=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&F(6,"invalid gzip data");var t=e[3],r=10;t&4&&(r+=e[10]|(e[11]<<8)+2);for(var n=(t>>3&1)+(t>>4&1);n>0;n-=!e[r++]);return r+(t&2)},Hr=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},tr=function(e){return 10+(e.filename&&e.filename.length+1||0)},er=function(e,t){var r=t.level,n=r==0?0:r<6?1:r==9?3:2;e[0]=120,e[1]=n<<6|(n?32-2*n:1)},Wr=function(e){((e[0]&15)!=8||e[0]>>>4>7||(e[0]<<8|e[1])%31)&&F(6,"invalid zlib data"),e[1]&32&&F(6,"invalid zlib data: preset dictionaries not supported")};function rr(e,t){return!t&&typeof e=="function"&&(t=e,e={}),this.ondata=t,e}var mt=function(){function e(t,r){!r&&typeof t=="function"&&(r=t,t={}),this.ondata=r,this.o=t||{}}return e.prototype.p=function(t,r){this.ondata(Gt(t,this.o,0,0,!r),r)},e.prototype.push=function(t,r){this.ondata||F(5),this.d&&F(4),this.d=r,this.p(t,r||!1)},e}();S.Deflate=mt;var $r=function(){function e(t,r){Jt([jt,function(){return[At,mt]}],this,rr.call(this,t,r),function(n){var i=new mt(n.data);onmessage=At(i)},6)}return e}();S.AsyncDeflate=$r;function Qr(e,t,r){return r||(r=t,t={}),typeof r!="function"&&F(7),Kt(e,t,[jt],function(n){return Lt(ce(n.data[0],n.data[1]))},0,r)}S.deflate=Qr;function ce(e,t){return Gt(e,t||{},0,0)}S.deflateSync=ce;var lt=function(){function e(t){this.s={},this.p=new G(0),this.ondata=t}return e.prototype.e=function(t){this.ondata||F(5),this.d&&F(4);var r=this.p.length,n=new G(r+t.length);n.set(this.p),n.set(t,r),this.p=n},e.prototype.c=function(t){this.d=this.s.i=t||!1;var r=this.s.b,n=fe(this.p,this.o,this.s);this.ondata(gt(n,r,this.s.b),this.d),this.o=gt(n,this.s.b-32768),this.s.b=this.o.length,this.p=gt(this.p,this.s.p/8|0),this.s.p&=7},e.prototype.push=function(t,r){this.e(t),this.c(r)},e}();S.Inflate=lt;var nr=function(){function e(t){this.ondata=t,Jt([Qt,function(){return[At,lt]}],this,0,function(){var r=new lt;onmessage=At(r)},7)}return e}();S.AsyncInflate=nr;function ir(e,t,r){return r||(r=t,t={}),typeof r!="function"&&F(7),Kt(e,t,[Qt],function(n){return Lt(te(n.data[0],je(n.data[1])))},1,r)}S.inflate=ir;function te(e,t){return fe(e,t)}S.inflateSync=te;var Be=function(){function e(t,r){this.c=$t(),this.l=0,this.v=1,mt.call(this,t,r)}return e.prototype.push=function(t,r){mt.prototype.push.call(this,t,r)},e.prototype.p=function(t,r){this.c.p(t),this.l+=t.length;var n=Gt(t,this.o,this.v&&tr(this.o),r&&8,!r);this.v&&(Ke(n,this.o),this.v=0),r&&(k(n,n.length-8,this.c.d()),k(n,n.length-4,this.l)),this.ondata(n,r)},e}();S.Gzip=Be;S.Compress=Be;var jr=function(){function e(t,r){Jt([jt,Vr,function(){return[At,mt,Be]}],this,rr.call(this,t,r),function(n){var i=new Be(n.data);onmessage=At(i)},8)}return e}();S.AsyncGzip=jr;S.AsyncCompress=jr;function Kr(e,t,r){return r||(r=t,t={}),typeof r!="function"&&F(7),Kt(e,t,[jt,Vr,function(){return[De]}],function(n){return Lt(De(n.data[0],n.data[1]))},2,r)}S.gzip=Kr;S.compress=Kr;function De(e,t){t||(t={});var r=$t(),n=e.length;r.p(e);var i=Gt(e,t,tr(t),8),o=i.length;return Ke(i,t),k(i,o-8,r.d()),k(i,o-4,n),i}S.gzipSync=De;S.compressSync=De;var xe=function(){function e(t){this.v=1,lt.call(this,t)}return e.prototype.push=function(t,r){if(lt.prototype.e.call(this,t),this.v){var n=this.p.length>3?Je(this.p):4;if(n>=this.p.length&&!r)return;this.p=this.p.subarray(n),this.v=0}r&&(this.p.length<8&&F(6,"invalid gzip data"),this.p=this.p.subarray(0,-8)),lt.prototype.c.call(this,r)},e}();S.Gunzip=xe;var Jr=function(){function e(t){this.ondata=t,Jt([Qt,qr,function(){return[At,lt,xe]}],this,0,function(){var r=new xe;onmessage=At(r)},9)}return e}();S.AsyncGunzip=Jr;function tn(e,t,r){return r||(r=t,t={}),typeof r!="function"&&F(7),Kt(e,t,[Qt,qr,function(){return[Fe]}],function(n){return Lt(Fe(n.data[0]))},3,r)}S.gunzip=tn;function Fe(e,t){return fe(e.subarray(Je(e),-8),t||new G(Hr(e)))}S.gunzipSync=Fe;var Ze=function(){function e(t,r){this.c=Qe(),this.v=1,mt.call(this,t,r)}return e.prototype.push=function(t,r){mt.prototype.push.call(this,t,r)},e.prototype.p=function(t,r){this.c.p(t);var n=Gt(t,this.o,this.v&&2,r&&4,!r);this.v&&(er(n,this.o),this.v=0),r&&k(n,n.length-4,this.c.d()),this.ondata(n,r)},e}();S.Zlib=Ze;var jn=function(){function e(t,r){Jt([jt,Xr,function(){return[At,mt,Ze]}],this,rr.call(this,t,r),function(n){var i=new Ze(n.data);onmessage=At(i)},10)}return e}();S.AsyncZlib=jn;function Kn(e,t,r){return r||(r=t,t={}),typeof r!="function"&&F(7),Kt(e,t,[jt,Xr,function(){return[He]}],function(n){return Lt(He(n.data[0],n.data[1]))},4,r)}S.zlib=Kn;function He(e,t){t||(t={});var r=Qe();r.p(e);var n=Gt(e,t,2,4);return er(n,t),k(n,n.length-4,r.d()),n}S.zlibSync=He;var _e=function(){function e(t){this.v=1,lt.call(this,t)}return e.prototype.push=function(t,r){if(lt.prototype.e.call(this,t),this.v){if(this.p.length<2&&!r)return;this.p=this.p.subarray(2),this.v=0}r&&(this.p.length<4&&F(6,"invalid zlib data"),this.p=this.p.subarray(0,-4)),lt.prototype.c.call(this,r)},e}();S.Unzlib=_e;var en=function(){function e(t){this.ondata=t,Jt([Qt,Zr,function(){return[At,lt,_e]}],this,0,function(){var r=new _e;onmessage=At(r)},11)}return e}();S.AsyncUnzlib=en;function rn(e,t,r){return r||(r=t,t={}),typeof r!="function"&&F(7),Kt(e,t,[Qt,Zr,function(){return[Ce]}],function(n){return Lt(Ce(n.data[0],je(n.data[1])))},5,r)}S.unzlib=rn;function Ce(e,t){return fe((Wr(e),e.subarray(2,-4)),t)}S.unzlibSync=Ce;var nn=function(){function e(t){this.G=xe,this.I=lt,this.Z=_e,this.ondata=t}return e.prototype.push=function(t,r){if(this.ondata||F(5),this.s)this.s.push(t,r);else{if(this.p&&this.p.length){var n=new G(this.p.length+t.length);n.set(this.p),n.set(t,this.p.length)}else this.p=t;if(this.p.length>2){var i=this,o=function(){i.ondata.apply(i,arguments)};this.s=this.p[0]==31&&this.p[1]==139&&this.p[2]==8?new this.G(o):(this.p[0]&15)!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(o):new this.Z(o),this.s.push(this.p,r),this.p=null}}},e}();S.Decompress=nn;var Jn=function(){function e(t){this.G=Jr,this.I=nr,this.Z=en,this.ondata=t}return e.prototype.push=function(t,r){nn.prototype.push.call(this,t,r)},e}();S.AsyncDecompress=Jn;function ti(e,t,r){return r||(r=t,t={}),typeof r!="function"&&F(7),e[0]==31&&e[1]==139&&e[2]==8?tn(e,t,r):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?ir(e,t,r):rn(e,t,r)}S.decompress=ti;function ei(e,t){return e[0]==31&&e[1]==139&&e[2]==8?Fe(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?te(e,t):Ce(e,t)}S.decompressSync=ei;var ar=function(e,t,r,n){for(var i in e){var o=e[i],s=t+i,l=n;Array.isArray(o)&&(l=le(n,o[1]),o=o[0]),o instanceof G?r[s]=[o,l]:(r[s+="/"]=[new G(0),l],ar(o,s,r,n))}},_r=typeof TextEncoder<"u"&&new TextEncoder,We=typeof TextDecoder<"u"&&new TextDecoder,an=0;try{We.decode(_t,{stream:!0}),an=1}catch{}var on=function(e){for(var t="",r=0;;){var n=e[r++],i=(n>127)+(n>223)+(n>239);if(r+i>e.length)return[t,gt(e,r-1)];i?i==3?(n=((n&15)<<18|(e[r++]&63)<<12|(e[r++]&63)<<6|e[r++]&63)-65536,t+=String.fromCharCode(55296|n>>10,56320|n&1023)):i&1?t+=String.fromCharCode((n&31)<<6|e[r++]&63):t+=String.fromCharCode((n&15)<<12|(e[r++]&63)<<6|e[r++]&63):t+=String.fromCharCode(n)}},ri=function(){function e(t){this.ondata=t,an?this.t=new TextDecoder:this.p=_t}return e.prototype.push=function(t,r){if(this.ondata||F(5),r=!!r,this.t){this.ondata(this.t.decode(t,{stream:!0}),r),r&&(this.t.decode().length&&F(8),this.t=null);return}this.p||F(4);var n=new G(this.p.length+t.length);n.set(this.p),n.set(t,this.p.length);var i=on(n),o=i[0],s=i[1];r?(s.length&&F(8),this.p=null):this.p=s,this.ondata(o,r)},e}();S.DecodeUTF8=ri;var ni=function(){function e(t){this.ondata=t}return e.prototype.push=function(t,r){this.ondata||F(5),this.d&&F(4),this.ondata(Rt(t),this.d=r||!1)},e}();S.EncodeUTF8=ni;function Rt(e,t){if(t){for(var r=new G(e.length),n=0;n>1)),s=0,l=function(T){o[s++]=T},n=0;no.length){var c=new G(s+8+(i-n<<1));c.set(o),o=c}var h=e.charCodeAt(n);h<128||t?l(h):h<2048?(l(192|h>>6),l(128|h&63)):h>55295&&h<57344?(h=65536+(h&1023<<10)|e.charCodeAt(++n)&1023,l(240|h>>18),l(128|h>>12&63),l(128|h>>6&63),l(128|h&63)):(l(224|h>>12),l(128|h>>6&63),l(128|h&63))}return gt(o,0,s)}S.strToU8=Rt;function or(e,t){if(t){for(var r="",n=0;n65535&&F(9),t+=n+4}return t},Xt=function(e,t,r,n,i,o,s,l){var c=n.length,h=r.extra,T=l&&l.length,g=Ut(h);k(e,t,s!=null?33639248:67324752),t+=4,s!=null&&(e[t++]=20,e[t++]=r.os),e[t]=20,t+=2,e[t++]=r.flag<<1|(o<0&&8),e[t++]=i&&8,e[t++]=r.compression&255,e[t++]=r.compression>>8;var I=new Date(r.mtime==null?Date.now():r.mtime),w=I.getFullYear()-1980;if((w<0||w>119)&&F(10),k(e,t,w<<25|I.getMonth()+1<<21|I.getDate()<<16|I.getHours()<<11|I.getMinutes()<<5|I.getSeconds()>>>1),t+=4,o!=-1&&(k(e,t,r.crc),k(e,t+4,o<0?-o-2:o),k(e,t+8,r.size)),k(e,t+12,c),k(e,t+14,g),t+=16,s!=null&&(k(e,t,T),k(e,t+6,r.attrs),k(e,t+10,s),t+=14),e.set(n,t),t+=c,g)for(var B in h){var C=h[B],v=C.length;k(e,t,+B),k(e,t+2,v),e.set(C,t+4),t+=4+v}return T&&(e.set(l,t),t+=T),t},sr=function(e,t,r,n,i){k(e,t,101010256),k(e,t+8,r),k(e,t+10,r),k(e,t+12,n),k(e,t+16,i)},se=function(){function e(t){this.filename=t,this.c=$t(),this.size=0,this.compression=0}return e.prototype.process=function(t,r){this.ondata(null,t,r)},e.prototype.push=function(t,r){this.ondata||F(5),this.c.p(t),this.size+=t.length,r&&(this.crc=this.c.d()),this.process(t,r||!1)},e}();S.ZipPassThrough=se;var ii=function(){function e(t,r){var n=this;r||(r={}),se.call(this,t),this.d=new mt(r,function(i,o){n.ondata(null,i,o)}),this.compression=8,this.flag=sn(r.level)}return e.prototype.process=function(t,r){try{this.d.push(t,r)}catch(n){this.ondata(n,null,r)}},e.prototype.push=function(t,r){se.prototype.push.call(this,t,r)},e}();S.ZipDeflate=ii;var ai=function(){function e(t,r){var n=this;r||(r={}),se.call(this,t),this.d=new $r(r,function(i,o,s){n.ondata(i,o,s)}),this.compression=8,this.flag=sn(r.level),this.terminate=this.d.terminate}return e.prototype.process=function(t,r){this.d.push(t,r)},e.prototype.push=function(t,r){se.prototype.push.call(this,t,r)},e}();S.AsyncZipDeflate=ai;var oi=function(){function e(t){this.ondata=t,this.u=[],this.d=1}return e.prototype.add=function(t){var r=this;if(this.ondata||F(5),this.d&2)this.ondata(F(4+(this.d&1)*8,0,1),null,!1);else{var n=Rt(t.filename),i=n.length,o=t.comment,s=o&&Rt(o),l=i!=t.filename.length||s&&o.length!=s.length,c=i+Ut(t.extra)+30;i>65535&&this.ondata(F(11,0,1),null,!1);var h=new G(c);Xt(h,0,t,n,l,-1);var T=[h],g=function(){for(var v=0,_=T;v<_.length;v++){var R=_[v];r.ondata(null,R,!1)}T=[]},I=this.d;this.d=0;var w=this.u.length,B=le(t,{f:n,u:l,o:s,t:function(){t.terminate&&t.terminate()},r:function(){if(g(),I){var v=r.u[w+1];v?v.r():r.d=1}I=1}}),C=0;t.ondata=function(v,_,R){if(v)r.ondata(v,_,R),r.terminate();else if(C+=_.length,T.push(_),R){var N=new G(16);k(N,0,134695760),k(N,4,t.crc),k(N,8,C),k(N,12,t.size),T.push(N),B.c=C,B.b=c+C+16,B.crc=t.crc,B.size=t.size,I&&B.r(),I=1}else I&&g()},this.u.push(B)}},e.prototype.end=function(){var t=this;if(this.d&2){this.ondata(F(4+(this.d&1)*8,0,1),null,!0);return}this.d?this.e():this.u.push({r:function(){t.d&1&&(t.u.splice(-1,1),t.e())},t:function(){}}),this.d=3},e.prototype.e=function(){for(var t=0,r=0,n=0,i=0,o=this.u;i65535&&M(F(11,0,1),null),!q)M(null,N);else if(U<16e4)try{M(null,ce(N,D))}catch(Z){M(Z,null)}else T.push(Qr(N,D,M))},C=0;C65535&&F(11);var _=T?ce(c,h):c,R=_.length,N=$t();N.p(c),n.push(le(h,{size:c.length,crc:N.d(),c:_,f:g,m:B,u:I!=s.length||B&&w.length!=C,o:i,compression:T})),i+=30+I+v+R,o+=76+2*(I+v)+(C||0)+R}for(var D=new G(o+22),P=i,U=o-i,d=0;d0){var i=Math.min(this.c,t.length),o=t.subarray(0,i);if(this.c-=i,this.d?this.d.push(o,!this.c):this.k[0].push(o),t=t.subarray(i),t.length)return this.push(t,r)}else{var s=0,l=0,c=void 0,h=void 0;this.p.length?t.length?(h=new G(this.p.length+t.length),h.set(this.p),h.set(t,this.p.length)):h=this.p:h=t;for(var T=h.length,g=this.c,I=g&&this.d,w=function(){var _,R=$(h,l);if(R==67324752){s=1,c=l,B.d=null,B.c=0;var N=ot(h,l+6),D=ot(h,l+8),P=N&2048,U=N&8,d=ot(h,l+26),f=ot(h,l+28);if(T>l+30+d+f){var V=[];B.k.unshift(V),s=2;var O=$(h,l+18),L=$(h,l+22),b=or(h.subarray(l+30,l+=30+d),!P);O==4294967295?(_=U?[-2]:ln(h,l),O=_[0],L=_[1]):U&&(O=-1),l+=f,B.c=O;var q,M={name:b,compression:D,start:function(){if(M.ondata||F(5),!O)M.ondata(null,_t,!0);else{var Z=n.o[D];Z||M.ondata(F(14,"unknown compression type "+D,1),null,!1),q=O<0?new Z(b):new Z(b,O,L),q.ondata=function(J,Q,K){M.ondata(J,Q,K)};for(var x=0,X=V;x=0&&(M.size=O,M.originalSize=L),B.onfile(M)}return"break"}else if(g){if(R==134695760)return c=l+=12+(g==-2&&8),s=3,B.c=0,"break";if(R==33639248)return c=l-=4,s=3,B.c=0,"break"}},B=this;l65558)return s(F(13,0,1),null),i;var c=ot(e,l+8);if(c){var h=c,T=$(e,l+16),g=T==4294967295||h==65535;if(g){var I=$(e,l-12);g=$(e,I)==101075792,g&&(h=c=$(e,I+32),T=$(e,I+48))}for(var w=t&&t.filter,B=function(v){var _=fn(e,T,g),R=_[0],N=_[1],D=_[2],P=_[3],U=_[4],d=_[5],f=un(e,d);T=U;var V=function(L,b){L?(i(),s(L,null)):(b&&(o[P]=b),--c||s(null,o))};if(!w||w({name:P,size:N,originalSize:D,compression:R}))if(!R)V(null,gt(e,f,f+N));else if(R==8){var O=e.subarray(f,f+N);if(N<32e4)try{V(null,te(O,new G(D)))}catch(L){V(L,null)}else n.push(ir(O,{size:D},V))}else V(F(14,"unknown compression type "+R,1),null);else V(null,null)},C=0;C65558)&&F(13);var i=ot(e,n+8);if(!i)return{};var o=$(e,n+16),s=o==4294967295||i==65535;if(s){var l=$(e,n-12);s=$(e,l)==101075792,s&&(i=$(e,l+32),o=$(e,l+48))}for(var c=t&&t.filter,h=0;h{"use strict";var E=E||{};E.Transform=E.Transform||(typeof dt<"u"?Ye():null);var wt=wt||(typeof dt<"u"?Nr():null),Mt=Mt||(typeof dt<"u"?hn():null);E.NIFTI_INTENT_GENMATRIX="NIFTI_INTENT_GENMATRIX";E.NIFTI_INTENT_LABEL="NIFTI_INTENT_LABEL";E.NIFTI_INTENT_NODE_INDEX="NIFTI_INTENT_NODE_INDEX";E.NIFTI_INTENT_POINTSET="NIFTI_INTENT_POINTSET";E.NIFTI_INTENT_RGB_VECTOR="NIFTI_INTENT_RGB_VECTOR";E.NIFTI_INTENT_RGBA_VECTOR="NIFTI_INTENT_RGBA_VECTOR";E.NIFTI_INTENT_SHAPE="NIFTI_INTENT_SHAPE";E.NIFTI_INTENT_TIME_SERIES="NIFTI_INTENT_TIME_SERIES";E.NIFTI_INTENT_TRIANGLE="NIFTI_INTENT_TRIANGLE";E.NIFTI_INTENT_NONE="NIFTI_INTENT_NONE";E.NIFTI_INTENT_VECTOR="NIFTI_INTENT_VECTOR";E.ATT_ARRAYINDEXINGORDER="ArrayIndexingOrder";E.ATT_DATATYPE="DataType";E.ATT_DIMENSIONALITY="Dimensionality";E.ATT_DIMN="Dim";E.ATT_ENCODING="Encoding";E.ATT_ENDIAN="Endian";E.ATT_EXTERNALFILENAME="ExternalFileName";E.ATT_EXTERNALFILEOFFSET="ExternalFileOffset";E.ATT_INTENT="Intent";E.ENCODING_ASCII="ASCII";E.ENCODING_BASE64BINARY="Base64Binary";E.ENCODING_GZIPBASE64BINARY="GZipBase64Binary";E.ENCODING_EXTERNALFILEBINARY="ExternalFileBinary";E.TYPE_NIFTI_TYPE_UINT8="NIFTI_TYPE_UINT8";E.TYPE_NIFTI_TYPE_INT32="NIFTI_TYPE_INT32";E.TYPE_NIFTI_TYPE_FLOAT32="NIFTI_TYPE_FLOAT32";E.DataArray=E.DataArray||function(){this.attributes=null,this.metadata={},this.transforms=[],this.data=null,this.dataConverted=!1};E.DataArray.prototype.isPointSet=function(){return this.attributes[E.ATT_INTENT]===E.NIFTI_INTENT_POINTSET};E.DataArray.prototype.isTriangles=function(){return this.attributes[E.ATT_INTENT]===E.NIFTI_INTENT_TRIANGLE};E.DataArray.prototype.isNormals=function(){return this.attributes[E.ATT_INTENT]===E.NIFTI_INTENT_VECTOR};E.DataArray.prototype.isColors=function(){return this.attributes[E.ATT_INTENT]===E.NIFTI_INTENT_RGB_VECTOR||this.attributes[E.ATT_INTENT]===E.NIFTI_INTENT_RGBA_VECTOR};E.DataArray.prototype.getDimensions=function(){return parseInt(this.attributes[E.ATT_DIMENSIONALITY])};E.DataArray.prototype.getNumElements=function(e){return e===void 0&&(e=0),parseInt(this.attributes[E.ATT_DIMN+e])};E.DataArray.prototype.isScalar=function(){return this.getDimensions()==1};E.DataArray.prototype.isTriple=function(){return this.getDimensions()==2&&this.getNumElements(1)==3};E.DataArray.prototype.isQuad=function(){return this.getDimensions()==2&&this.getNumElements(1)==4};E.DataArray.prototype.isAscii=function(){return E.ENCODING_ASCII===this.attributes[E.ATT_ENCODING]};E.DataArray.prototype.isBase64Binary=function(){return E.ENCODING_BASE64BINARY===this.attributes[E.ATT_ENCODING]};E.DataArray.prototype.isGzipBase64Binary=function(){return E.ENCODING_GZIPBASE64BINARY===this.attributes[E.ATT_ENCODING]};E.DataArray.prototype.isBase64Encoded=function(){return this.isBase64Binary()||this.isGzipBase64Binary()};E.DataArray.prototype.isFloat32=function(){return E.TYPE_NIFTI_TYPE_FLOAT32===this.attributes[E.ATT_DATATYPE]};E.DataArray.prototype.isInt32=function(){return E.TYPE_NIFTI_TYPE_INT32===this.attributes[E.ATT_DATATYPE]};E.DataArray.prototype.isUnsignedInt8=function(){return E.TYPE_NIFTI_TYPE_UINT8===this.attributes[E.ATT_DATATYPE]};E.DataArray.prototype.getData=function(){return this.dataConverted||(this.dataConverted=!0,this.isAscii()?this.isUnsignedInt8()?E.DataArray.readUnsignedInt8ASCII(this):this.isInt32()?E.DataArray.readSignedInt32ASCII(this):E.DataArray.readFloat32ASCII(this):this.isBase64Binary()?this.isUnsignedInt8()?E.DataArray.readUnsignedInt8Base64(this):this.isInt32()?E.DataArray.readSignedInt32Base64(this):E.DataArray.readFloat32Base64(this):this.isGzipBase64Binary()&&(this.isUnsignedInt8()?E.DataArray.readUnsignedInt8GZIPBase64(this):this.isInt32()?E.DataArray.readSignedInt32GZIPBase64(this):E.DataArray.readFloat32GZIPBase64(this))),this.data};E.DataArray.prototype.getDataAsync=function(e,t){this.dataConverted||(this.dataConverted=!0,this.isAscii()?(this.isUnsignedInt8()?E.DataArray.readUnsignedInt8ASCII(this):this.isInt32()?E.DataArray.readSignedInt32ASCII(this):E.DataArray.readFloat32ASCII(this),t()):this.isBase64Binary()?(this.isUnsignedInt8()?E.DataArray.readUnsignedInt8Base64(this):this.isInt32()?E.DataArray.readSignedInt32Base64(this):E.DataArray.readFloat32Base64(this),t()):this.isGzipBase64Binary()&&(this.isUnsignedInt8()?E.DataArray.readUnsignedInt8GZIPBase64Async(this,e,t):this.isInt32()?E.DataArray.readSignedInt32GZIPBase64Async(this,e,t):E.DataArray.readFloat32GZIPBase64Async(this,e,t)))};E.DataArray.readFloat32ASCII=function(e){var t=/[+-]?\d+(\.\d+)?/g;e.data=new Float32Array(e.data.match(t).map(function(r){return parseFloat(r)}))};E.DataArray.readSignedInt32ASCII=function(e){var t=/[+-]?\d+(\.\d+)?/g;e.data=new Int32Array(e.data.match(t).map(function(r){return parseInt(r)}))};E.DataArray.readUnsignedInt8ASCII=function(e){var t=/[+-]?\d+(\.\d+)?/g;e.data=new Uint8Array(e.data.match(t).map(function(r){return parseInt(r)}))};E.DataArray.readUnsignedInt8Base64=function(e){var t=wt.decodeArrayBuffer(e.data);e.data=new Uint8Array(t,0,t.byteLength)};E.DataArray.readSignedInt32Base64=function(e){var t=wt.decodeArrayBuffer(e.data);e.data=new Int32Array(t,0,t.byteLength/4)};E.DataArray.readFloat32Base64=function(e){var t=wt.decodeArrayBuffer(e.data);e.data=new Float32Array(t,0,t.byteLength/4)};E.DataArray.readUnsignedInt8GZIPBase64=function(e){var t=wt.decodeArrayBuffer(e.data);t=Mt.decompressSync(new Uint8Array(t)).buffer,e.data=new Uint8Array(t,0,t.byteLength)};E.DataArray.readUnsignedInt8GZIPBase64Async=function(e,t,r){var n=wt.decodeArrayBuffer(e.data),i=new Mt.Inflate,o=function(){e.data=new Uint8Array(i.result.buffer,0,i.result.buffer.byteLength),r(e.data)};setTimeout(function(){E.DataArray.readNext(i,n,0,t,o)},0)};E.DataArray.readSignedInt32GZIPBase64=function(e){var t=wt.decodeArrayBuffer(e.data);t=Mt.decompressSync(new Uint8Array(t)).buffer,e.data=new Int32Array(t,0,t.byteLength/4)};E.DataArray.readSignedInt32GZIPBase64Async=function(e,t,r){var n=wt.decodeArrayBuffer(e.data),i=new Mt.Inflate,o=function(){e.data=new Int32Array(i.result.buffer,0,i.result.buffer.byteLength/4),r(e.data)};setTimeout(function(){E.DataArray.readNext(i,n,0,t,o)},0)};E.DataArray.readFloat32GZIPBase64=function(e){var t=wt.decodeArrayBuffer(e.data);t=Mt.decompressSync(new Uint8Array(t)).buffer,e.data=new Float32Array(t,0,t.byteLength/4)};E.DataArray.readFloat32GZIPBase64Async=function(e,t,r){var n=wt.decodeArrayBuffer(e.data),i=new Mt.Inflate,o=function(){e.data=new Float32Array(i.result.buffer,0,i.result.buffer.byteLength/4),r(e.data)};setTimeout(function(){E.DataArray.readNext(i,n,0,t,o)},0)};E.DataArray.readNext=function(e,t,r,n,i){var o=r+32768,s=o>=t.byteLength;e.push(t.slice(r,r+4096*8),s),s?i():(n(o/t.byteLength),setTimeout(function(){E.DataArray.readNext(e,t,o,n,i)},0))};var Ti=typeof Ue;Ti!=="undefined"&&Ue.exports&&(Ue.exports=E.DataArray)});var Tn=ft((Aa,Re)=>{"use strict";var at=at||{};at.ATT_KEY="Key";at.ATT_RED="Red";at.ATT_GREEN="Green";at.ATT_BLUE="Blue";at.ATT_ALPHA="Alpha";at.ATT_INDEX="Index";at.Label=at.Label||function(e){this.key=e[at.ATT_KEY]||e[at.ATT_INDEX],this.r=parseFloat(e[at.ATT_RED]),this.g=parseFloat(e[at.ATT_GREEN]),this.b=parseFloat(e[at.ATT_BLUE]),this.a=parseFloat(e[at.ATT_ALPHA]),this.label=null};var yi=typeof Re;yi!=="undefined"&&Re.exports&&(Re.exports=at.Label)});var An=ft(Le=>{"use strict";Le.byteLength=Ai;Le.toByteArray=di;Le.fromByteArray=mi;var Nt=[],Et=[],gi=typeof Uint8Array<"u"?Uint8Array:Array,ur="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Pt=0,yn=ur.length;Pt0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function Ai(e){var t=gn(e),r=t[0],n=t[1];return(r+n)*3/4-n}function Ei(e,t,r){return(t+r)*3/4-r}function di(e){var t,r=gn(e),n=r[0],i=r[1],o=new gi(Ei(e,n,i)),s=0,l=i>0?n-4:n,c;for(c=0;c>16&255,o[s++]=t>>8&255,o[s++]=t&255;return i===2&&(t=Et[e.charCodeAt(c)]<<2|Et[e.charCodeAt(c+1)]>>4,o[s++]=t&255),i===1&&(t=Et[e.charCodeAt(c)]<<10|Et[e.charCodeAt(c+1)]<<4|Et[e.charCodeAt(c+2)]>>2,o[s++]=t>>8&255,o[s++]=t&255),o}function Ii(e){return Nt[e>>18&63]+Nt[e>>12&63]+Nt[e>>6&63]+Nt[e&63]}function vi(e,t,r){for(var n,i=[],o=t;ol?l:s+o));return n===1?(t=e[r-1],i.push(Nt[t>>2]+Nt[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(Nt[t>>10]+Nt[t>>4&63]+Nt[t<<2&63]+"=")),i.join("")}});var En=ft(fr=>{fr.read=function(e,t,r,n,i){var o,s,l=i*8-n-1,c=(1<>1,T=-7,g=r?i-1:0,I=r?-1:1,w=e[t+g];for(g+=I,o=w&(1<<-T)-1,w>>=-T,T+=l;T>0;o=o*256+e[t+g],g+=I,T-=8);for(s=o&(1<<-T)-1,o>>=-T,T+=n;T>0;s=s*256+e[t+g],g+=I,T-=8);if(o===0)o=1-h;else{if(o===c)return s?NaN:(w?-1:1)*(1/0);s=s+Math.pow(2,n),o=o-h}return(w?-1:1)*s*Math.pow(2,o-n)};fr.write=function(e,t,r,n,i,o){var s,l,c,h=o*8-i-1,T=(1<>1,I=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=n?0:o-1,B=n?1:-1,C=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,s=T):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),s+g>=1?t+=I/c:t+=I*Math.pow(2,1-g),t*c>=2&&(s++,c/=2),s+g>=T?(l=0,s=T):s+g>=1?(l=(t*c-1)*Math.pow(2,i),s=s+g):(l=t*Math.pow(2,g-1)*Math.pow(2,i),s=0));i>=8;e[r+w]=l&255,w+=B,l/=256,i-=8);for(s=s<0;e[r+w]=s&255,w+=B,s/=256,h-=8);e[r+w-B]|=C*128}});var On=ft(ie=>{"use strict";var lr=An(),re=En(),dn=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;ie.Buffer=y;ie.SlowBuffer=Fi;ie.INSPECT_MAX_BYTES=50;var Oe=2147483647;ie.kMaxLength=Oe;y.TYPED_ARRAY_SUPPORT=wi();!y.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 wi(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(y.prototype,"parent",{enumerable:!0,get:function(){if(y.isBuffer(this))return this.buffer}});Object.defineProperty(y.prototype,"offset",{enumerable:!0,get:function(){if(y.isBuffer(this))return this.byteOffset}});function St(e){if(e>Oe)throw new RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,y.prototype),t}function y(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Tr(e)}return wn(e,t,r)}y.poolSize=8192;function wn(e,t,r){if(typeof e=="string")return Bi(e,t);if(ArrayBuffer.isView(e))return Di(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Bt(e,ArrayBuffer)||e&&Bt(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Bt(e,SharedArrayBuffer)||e&&Bt(e.buffer,SharedArrayBuffer)))return hr(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return y.from(n,t,r);let i=xi(e);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return y.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}y.from=function(e,t,r){return wn(e,t,r)};Object.setPrototypeOf(y.prototype,Uint8Array.prototype);Object.setPrototypeOf(y,Uint8Array);function Nn(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function Ni(e,t,r){return Nn(e),e<=0?St(e):t!==void 0?typeof r=="string"?St(e).fill(t,r):St(e).fill(t):St(e)}y.alloc=function(e,t,r){return Ni(e,t,r)};function Tr(e){return Nn(e),St(e<0?0:yr(e)|0)}y.allocUnsafe=function(e){return Tr(e)};y.allocUnsafeSlow=function(e){return Tr(e)};function Bi(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!y.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let r=Bn(e,t)|0,n=St(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function cr(e){let t=e.length<0?0:yr(e.length)|0,r=St(t);for(let n=0;n=Oe)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Oe.toString(16)+" bytes");return e|0}function Fi(e){return+e!=e&&(e=0),y.alloc(+e)}y.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==y.prototype};y.compare=function(t,r){if(Bt(t,Uint8Array)&&(t=y.from(t,t.offset,t.byteLength)),Bt(r,Uint8Array)&&(r=y.from(r,r.offset,r.byteLength)),!y.isBuffer(t)||!y.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;let n=t.length,i=r.length;for(let o=0,s=Math.min(n,i);oi.length?(y.isBuffer(s)||(s=y.from(s)),s.copy(i,o)):Uint8Array.prototype.set.call(i,s,o);else if(y.isBuffer(s))s.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=s.length}return i};function Bn(e,t){if(y.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Bt(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return pr(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Ln(e).length;default:if(i)return n?-1:pr(e).length;t=(""+t).toLowerCase(),i=!0}}y.byteLength=Bn;function _i(e,t,r){let n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return bi(this,t,r);case"utf8":case"utf-8":return xn(this,t,r);case"ascii":return Mi(this,t,r);case"latin1":case"binary":return Pi(this,t,r);case"base64":return Oi(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return zi(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}y.prototype._isBuffer=!0;function bt(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}y.prototype.swap16=function(){let t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;rr&&(t+=" ... "),""};dn&&(y.prototype[dn]=y.prototype.inspect);y.prototype.compare=function(t,r,n,i,o){if(Bt(t,Uint8Array)&&(t=y.from(t,t.offset,t.byteLength)),!y.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),n===void 0&&(n=t?t.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),r<0||n>t.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&r>=n)return 0;if(i>=o)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,o>>>=0,this===t)return 0;let s=o-i,l=n-r,c=Math.min(s,l),h=this.slice(i,o),T=t.slice(r,n);for(let g=0;g2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,Ar(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=y.from(t,n)),y.isBuffer(t))return t.length===0?-1:In(e,t,r,n,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):In(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function In(e,t,r,n,i){let o=1,s=e.length,l=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;o=2,s/=2,l/=2,r/=2}function c(T,g){return o===1?T[g]:T.readUInt16BE(g*o)}let h;if(i){let T=-1;for(h=r;hs&&(r=s-l),h=r;h>=0;h--){let T=!0;for(let g=0;gi&&(n=i)):n=i;let o=t.length;n>o/2&&(n=o/2);let s;for(s=0;s>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let o=this.length-r;if((n===void 0||n>o)&&(n=o),t.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let s=!1;for(;;)switch(i){case"hex":return Ci(this,t,r,n);case"utf8":case"utf-8":return Si(this,t,r,n);case"ascii":case"latin1":case"binary":return Ui(this,t,r,n);case"base64":return Ri(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Li(this,t,r,n);default:if(s)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),s=!0}};y.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Oi(e,t,r){return t===0&&r===e.length?lr.fromByteArray(e):lr.fromByteArray(e.slice(t,r))}function xn(e,t,r){r=Math.min(e.length,r);let n=[],i=t;for(;i239?4:o>223?3:o>191?2:1;if(i+l<=r){let c,h,T,g;switch(l){case 1:o<128&&(s=o);break;case 2:c=e[i+1],(c&192)===128&&(g=(o&31)<<6|c&63,g>127&&(s=g));break;case 3:c=e[i+1],h=e[i+2],(c&192)===128&&(h&192)===128&&(g=(o&15)<<12|(c&63)<<6|h&63,g>2047&&(g<55296||g>57343)&&(s=g));break;case 4:c=e[i+1],h=e[i+2],T=e[i+3],(c&192)===128&&(h&192)===128&&(T&192)===128&&(g=(o&15)<<18|(c&63)<<12|(h&63)<<6|T&63,g>65535&&g<1114112&&(s=g))}}s===null?(s=65533,l=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|s&1023),n.push(s),i+=l}return Gi(n)}var vn=4096;function Gi(e){let t=e.length;if(t<=vn)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nn)&&(r=n);let i="";for(let o=t;on&&(t=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),rr)throw new RangeError("Trying to access beyond buffer length")}y.prototype.readUintLE=y.prototype.readUIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||et(t,r,this.length);let i=this[t],o=1,s=0;for(;++s>>0,r=r>>>0,n||et(t,r,this.length);let i=this[t+--r],o=1;for(;r>0&&(o*=256);)i+=this[t+--r]*o;return i};y.prototype.readUint8=y.prototype.readUInt8=function(t,r){return t=t>>>0,r||et(t,1,this.length),this[t]};y.prototype.readUint16LE=y.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||et(t,2,this.length),this[t]|this[t+1]<<8};y.prototype.readUint16BE=y.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||et(t,2,this.length),this[t]<<8|this[t+1]};y.prototype.readUint32LE=y.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||et(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};y.prototype.readUint32BE=y.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||et(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};y.prototype.readBigUInt64LE=Ot(function(t){t=t>>>0,ne(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&he(t,this.length-8);let i=r+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,o=this[++t]+this[++t]*2**8+this[++t]*2**16+n*2**24;return BigInt(i)+(BigInt(o)<>>0,ne(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&he(t,this.length-8);let i=r*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],o=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+n;return(BigInt(i)<>>0,r=r>>>0,n||et(t,r,this.length);let i=this[t],o=1,s=0;for(;++s=o&&(i-=Math.pow(2,8*r)),i};y.prototype.readIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||et(t,r,this.length);let i=r,o=1,s=this[t+--i];for(;i>0&&(o*=256);)s+=this[t+--i]*o;return o*=128,s>=o&&(s-=Math.pow(2,8*r)),s};y.prototype.readInt8=function(t,r){return t=t>>>0,r||et(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};y.prototype.readInt16LE=function(t,r){t=t>>>0,r||et(t,2,this.length);let n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};y.prototype.readInt16BE=function(t,r){t=t>>>0,r||et(t,2,this.length);let n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};y.prototype.readInt32LE=function(t,r){return t=t>>>0,r||et(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};y.prototype.readInt32BE=function(t,r){return t=t>>>0,r||et(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};y.prototype.readBigInt64LE=Ot(function(t){t=t>>>0,ne(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&he(t,this.length-8);let i=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(n<<24);return(BigInt(i)<>>0,ne(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&he(t,this.length-8);let i=(r<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(i)<>>0,r||et(t,4,this.length),re.read(this,t,!0,23,4)};y.prototype.readFloatBE=function(t,r){return t=t>>>0,r||et(t,4,this.length),re.read(this,t,!1,23,4)};y.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||et(t,8,this.length),re.read(this,t,!0,52,8)};y.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||et(t,8,this.length),re.read(this,t,!1,52,8)};function ct(e,t,r,n,i,o){if(!y.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}y.prototype.writeUintLE=y.prototype.writeUIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,n=n>>>0,!i){let l=Math.pow(2,8*n)-1;ct(this,t,r,n,l,0)}let o=1,s=0;for(this[r]=t&255;++s>>0,n=n>>>0,!i){let l=Math.pow(2,8*n)-1;ct(this,t,r,n,l,0)}let o=n-1,s=1;for(this[r+o]=t&255;--o>=0&&(s*=256);)this[r+o]=t/s&255;return r+n};y.prototype.writeUint8=y.prototype.writeUInt8=function(t,r,n){return t=+t,r=r>>>0,n||ct(this,t,r,1,255,0),this[r]=t&255,r+1};y.prototype.writeUint16LE=y.prototype.writeUInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||ct(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};y.prototype.writeUint16BE=y.prototype.writeUInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||ct(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};y.prototype.writeUint32LE=y.prototype.writeUInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||ct(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};y.prototype.writeUint32BE=y.prototype.writeUInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||ct(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function Fn(e,t,r,n,i){Rn(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=s,s=s>>8,e[r++]=s,s=s>>8,e[r++]=s,s=s>>8,e[r++]=s,r}function _n(e,t,r,n,i){Rn(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r+7]=o,o=o>>8,e[r+6]=o,o=o>>8,e[r+5]=o,o=o>>8,e[r+4]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=s,s=s>>8,e[r+2]=s,s=s>>8,e[r+1]=s,s=s>>8,e[r]=s,r+8}y.prototype.writeBigUInt64LE=Ot(function(t,r=0){return Fn(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});y.prototype.writeBigUInt64BE=Ot(function(t,r=0){return _n(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});y.prototype.writeIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){let c=Math.pow(2,8*n-1);ct(this,t,r,n,c-1,-c)}let o=0,s=1,l=0;for(this[r]=t&255;++o>0)-l&255;return r+n};y.prototype.writeIntBE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){let c=Math.pow(2,8*n-1);ct(this,t,r,n,c-1,-c)}let o=n-1,s=1,l=0;for(this[r+o]=t&255;--o>=0&&(s*=256);)t<0&&l===0&&this[r+o+1]!==0&&(l=1),this[r+o]=(t/s>>0)-l&255;return r+n};y.prototype.writeInt8=function(t,r,n){return t=+t,r=r>>>0,n||ct(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};y.prototype.writeInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||ct(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};y.prototype.writeInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||ct(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};y.prototype.writeInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||ct(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};y.prototype.writeInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||ct(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};y.prototype.writeBigInt64LE=Ot(function(t,r=0){return Fn(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});y.prototype.writeBigInt64BE=Ot(function(t,r=0){return _n(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Cn(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Sn(e,t,r,n,i){return t=+t,r=r>>>0,i||Cn(e,t,r,4,34028234663852886e22,-34028234663852886e22),re.write(e,t,r,n,23,4),r+4}y.prototype.writeFloatLE=function(t,r,n){return Sn(this,t,r,!0,n)};y.prototype.writeFloatBE=function(t,r,n){return Sn(this,t,r,!1,n)};function Un(e,t,r,n,i){return t=+t,r=r>>>0,i||Cn(e,t,r,8,17976931348623157e292,-17976931348623157e292),re.write(e,t,r,n,52,8),r+8}y.prototype.writeDoubleLE=function(t,r,n){return Un(this,t,r,!0,n)};y.prototype.writeDoubleBE=function(t,r,n){return Un(this,t,r,!1,n)};y.prototype.copy=function(t,r,n,i){if(!y.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r>>0,n=n===void 0?this.length:n>>>0,t||(t=0);let o;if(typeof t=="number")for(o=r;o2**32?i=mn(String(r)):typeof r=="bigint"&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=mn(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n},RangeError);function mn(e){let t="",r=e.length,n=e[0]==="-"?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function Yi(e,t,r){ne(t,"offset"),(e[t]===void 0||e[t+r]===void 0)&&he(t,e.length-(r+1))}function Rn(e,t,r,n,i,o){if(e>r||e3?t===0||t===BigInt(0)?l=`>= 0${s} and < 2${s} ** ${(o+1)*8}${s}`:l=`>= -(2${s} ** ${(o+1)*8-1}${s}) and < 2 ** ${(o+1)*8-1}${s}`:l=`>= ${t}${s} and <= ${r}${s}`,new ee.ERR_OUT_OF_RANGE("value",l,e)}Yi(n,i,o)}function ne(e,t){if(typeof e!="number")throw new ee.ERR_INVALID_ARG_TYPE(t,"number",e)}function he(e,t,r){throw Math.floor(e)!==e?(ne(e,r),new ee.ERR_OUT_OF_RANGE(r||"offset","an integer",e)):t<0?new ee.ERR_BUFFER_OUT_OF_BOUNDS:new ee.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}var ki=/[^+/0-9A-Za-z-_]/g;function Vi(e){if(e=e.split("=")[0],e=e.trim().replace(ki,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function pr(e,t){t=t||1/0;let r,n=e.length,i=null,o=[];for(let s=0;s55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}else if(s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return o}function qi(e){let t=[];for(let r=0;r>8,i=r%256,o.push(i),o.push(n);return o}function Ln(e){return lr.toByteArray(Vi(e))}function Ge(e,t,r,n){let i;for(i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function Bt(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function Ar(e){return e!==e}var Zi=function(){let e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){let n=r*16;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function Ot(e){return typeof BigInt>"u"?Hi:e}function Hi(){throw new Error("BigInt not supported")}});var Pn=ft((Er,Mn)=>{var Me=On(),Dt=Me.Buffer;function Gn(e,t){for(var r in e)t[r]=e[r]}Dt.from&&Dt.alloc&&Dt.allocUnsafe&&Dt.allocUnsafeSlow?Mn.exports=Me:(Gn(Me,Er),Er.Buffer=zt);function zt(e,t,r){return Dt(e,t,r)}zt.prototype=Object.create(Dt.prototype);Gn(Dt,zt);zt.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Dt(e,t,r)};zt.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=Dt(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};zt.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Dt(e)};zt.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Me.SlowBuffer(e)}});var Yn=ft(zn=>{"use strict";var Ir=Pn().Buffer,bn=Ir.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function Wi(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function $i(e){var t=Wi(e);if(typeof t!="string"&&(Ir.isEncoding===bn||!bn(e)))throw new Error("Unknown encoding: "+e);return t||e}zn.StringDecoder=pe;function pe(e){this.encoding=$i(e);var t;switch(this.encoding){case"utf16le":this.text=ea,this.end=ra,t=4;break;case"utf8":this.fillLast=Ki,t=4;break;case"base64":this.text=na,this.end=ia,t=3;break;default:this.write=aa,this.end=oa;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Ir.allocUnsafe(t)}pe.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function Qi(e,t,r){var n=t.length-1;if(n=0?(i>0&&(e.lastNeed=i-1),i):--n=0?(i>0&&(e.lastNeed=i-2),i):--n=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function ji(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function Ki(e){var t=this.lastTotal-this.lastNeed,r=ji(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function Ji(e,t){var r=Qi(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function ta(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function ea(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function ra(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function na(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function ia(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function aa(e){return e.toString(this.encoding)}function oa(e){return e&&e.length?this.write(e):""}});var kn=ft(Pe=>{(function(e){e.parser=function(u,a){return new r(u,a)},e.SAXParser=r,e.SAXStream=h,e.createStream=c,e.MAX_BUFFER_LENGTH=64*1024;var t=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function r(u,a){if(!(this instanceof r))return new r(u,a);var A=this;i(A),A.q=A.c="",A.bufferCheckPosition=e.MAX_BUFFER_LENGTH,A.opt=a||{},A.opt.lowercase=A.opt.lowercase||A.opt.lowercasetags,A.looseCase=A.opt.lowercase?"toLowerCase":"toUpperCase",A.tags=[],A.closed=A.closedRoot=A.sawRoot=!1,A.tag=A.error=null,A.strict=!!u,A.noscript=!!(u||A.opt.noscript),A.state=f.BEGIN,A.strictEntities=A.opt.strictEntities,A.ENTITIES=A.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),A.attribList=[],A.opt.xmlns&&(A.ns=Object.create(B)),A.trackPosition=A.opt.position!==!1,A.trackPosition&&(A.position=A.line=A.column=0),O(A,"onready")}Object.create||(Object.create=function(u){function a(){}a.prototype=u;var A=new a;return A}),Object.keys||(Object.keys=function(u){var a=[];for(var A in u)u.hasOwnProperty(A)&&a.push(A);return a});function n(u){for(var a=Math.max(e.MAX_BUFFER_LENGTH,10),A=0,p=0,z=t.length;pa)switch(t[p]){case"textNode":b(u);break;case"cdata":L(u,"oncdata",u.cdata),u.cdata="";break;case"script":L(u,"onscript",u.script),u.script="";break;default:M(u,"Max buffer length exceeded: "+t[p])}A=Math.max(A,H)}var W=e.MAX_BUFFER_LENGTH-A;u.bufferCheckPosition=W+u.position}function i(u){for(var a=0,A=t.length;a"||N(u)}function U(u,a){return u.test(a)}function d(u,a){return!U(u,a)}var f=0;e.STATE={BEGIN:f++,BEGIN_WHITESPACE:f++,TEXT:f++,TEXT_ENTITY:f++,OPEN_WAKA:f++,SGML_DECL:f++,SGML_DECL_QUOTED:f++,DOCTYPE:f++,DOCTYPE_QUOTED:f++,DOCTYPE_DTD:f++,DOCTYPE_DTD_QUOTED:f++,COMMENT_STARTING:f++,COMMENT:f++,COMMENT_ENDING:f++,COMMENT_ENDED:f++,CDATA:f++,CDATA_ENDING:f++,CDATA_ENDING_2:f++,PROC_INST:f++,PROC_INST_BODY:f++,PROC_INST_ENDING:f++,OPEN_TAG:f++,OPEN_TAG_SLASH:f++,ATTRIB:f++,ATTRIB_NAME:f++,ATTRIB_NAME_SAW_WHITE:f++,ATTRIB_VALUE:f++,ATTRIB_VALUE_QUOTED:f++,ATTRIB_VALUE_CLOSED:f++,ATTRIB_VALUE_UNQUOTED:f++,ATTRIB_VALUE_ENTITY_Q:f++,ATTRIB_VALUE_ENTITY_U:f++,CLOSE_TAG:f++,CLOSE_TAG_SAW_WHITE:f++,SCRIPT:f++,SCRIPT_ENDING:f++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(e.ENTITIES).forEach(function(u){var a=e.ENTITIES[u],A=typeof a=="number"?String.fromCharCode(a):a;e.ENTITIES[u]=A});for(var V in e.STATE)e.STATE[e.STATE[V]]=V;f=e.STATE;function O(u,a,A){u[a]&&u[a](A)}function L(u,a,A){u.textNode&&b(u),O(u,a,A)}function b(u){u.textNode=q(u.opt,u.textNode),u.textNode&&O(u,"ontext",u.textNode),u.textNode=""}function q(u,a){return u.trim&&(a=a.trim()),u.normalize&&(a=a.replace(/\s+/g," ")),a}function M(u,a){return b(u),u.trackPosition&&(a+=` Line: `+u.line+` Column: `+u.column+` Char: `+u.c),a=new Error(a),u.error=a,O(u,"onerror",a),u}function Z(u){return u.sawRoot&&!u.closedRoot&&x(u,"Unclosed root tag"),u.state!==f.BEGIN&&u.state!==f.BEGIN_WHITESPACE&&u.state!==f.TEXT&&M(u,"Unexpected end"),b(u),u.c="",u.closed=!0,O(u,"onend"),r.call(u,u.strict,u.opt),u}function x(u,a){if(typeof u!="object"||!(u instanceof r))throw new Error("bad call to strictFail");u.strict&&M(u,a)}function X(u){u.strict||(u.tagName=u.tagName[u.looseCase]());var a=u.tags[u.tags.length-1]||u,A=u.tag={name:u.tagName,attributes:{}};u.opt.xmlns&&(A.ns=a.ns),u.attribList.length=0,L(u,"onopentagstart",A)}function j(u,a){var A=u.indexOf(":"),p=A<0?["",u]:u.split(":"),z=p[0],H=p[1];return a&&u==="xmlns"&&(z="xmlns",H=""),{prefix:z,local:H}}function J(u){if(u.strict||(u.attribName=u.attribName[u.looseCase]()),u.attribList.indexOf(u.attribName)!==-1||u.tag.attributes.hasOwnProperty(u.attribName)){u.attribName=u.attribValue="";return}if(u.opt.xmlns){var a=j(u.attribName,!0),A=a.prefix,p=a.local;if(A==="xmlns")if(p==="xml"&&u.attribValue!==I)x(u,"xml: prefix must be bound to "+I+` Actual: `+u.attribValue);else if(p==="xmlns"&&u.attribValue!==w)x(u,"xmlns: prefix must be bound to "+w+` Actual: `+u.attribValue);else{var z=u.tag,H=u.tags[u.tags.length-1]||u;z.ns===H.ns&&(z.ns=Object.create(H.ns)),z.ns[p]=u.attribValue}u.attribList.push([u.attribName,u.attribValue])}else u.tag.attributes[u.attribName]=u.attribValue,L(u,"onattribute",{name:u.attribName,value:u.attribValue});u.attribName=u.attribValue=""}function Q(u,a){if(u.opt.xmlns){var A=u.tag,p=j(u.tagName);A.prefix=p.prefix,A.local=p.local,A.uri=A.ns[p.prefix]||"",A.prefix&&!A.uri&&(x(u,"Unbound namespace prefix: "+JSON.stringify(u.tagName)),A.uri=p.prefix);var z=u.tags[u.tags.length-1]||u;A.ns&&z.ns!==A.ns&&Object.keys(A.ns).forEach(function(mr){L(u,"onopennamespace",{prefix:mr,uri:A.ns[mr]})});for(var H=0,W=u.attribList.length;H",u.tagName="",u.state=f.SCRIPT;return}L(u,"onscript",u.script),u.script=""}var a=u.tags.length,A=u.tagName;u.strict||(A=A[u.looseCase]());for(var p=A;a--;){var z=u.tags[a];if(z.name!==p)x(u,"Unexpected close tag");else break}if(a<0){x(u,"Unmatched closing tag: "+u.tagName),u.textNode+="",u.state=f.TEXT;return}u.tagName=A;for(var H=u.tags.length;H-- >a;){var W=u.tag=u.tags.pop();u.tagName=u.tag.name,L(u,"onclosetag",u.tagName);var st={};for(var ut in W.ns)st[ut]=W.ns[ut];var Yt=u.tags[u.tags.length-1]||u;u.opt.xmlns&&W.ns!==Yt.ns&&Object.keys(W.ns).forEach(function(nt){var xt=W.ns[nt];L(u,"onclosenamespace",{prefix:nt,uri:xt})})}a===0&&(u.closedRoot=!0),u.tagName=u.attribValue=u.attribName="",u.attribList.length=0,u.state=f.TEXT}function ht(u){var a=u.entity,A=a.toLowerCase(),p,z="";return u.ENTITIES[a]?u.ENTITIES[a]:u.ENTITIES[A]?u.ENTITIES[A]:(a=A,a.charAt(0)==="#"&&(a.charAt(1)==="x"?(a=a.slice(2),p=parseInt(a,16),z=p.toString(16)):(a=a.slice(1),p=parseInt(a,10),z=p.toString(10))),a=a.replace(/^0+/,""),isNaN(p)||z.toLowerCase()!==a?(x(u,"Invalid character entity"),"&"+u.entity+";"):String.fromCodePoint(p))}function pt(u,a){a==="<"?(u.state=f.OPEN_WAKA,u.startTagPosition=u.position):N(a)||(x(u,"Non-whitespace before first tag."),u.textNode=a,u.state=f.TEXT)}function rt(u,a){var A="";return a"?(L(a,"onsgmldeclaration",a.sgmlDecl),a.sgmlDecl="",a.state=f.TEXT):(D(p)&&(a.state=f.SGML_DECL_QUOTED),a.sgmlDecl+=p);continue;case f.SGML_DECL_QUOTED:p===a.q&&(a.state=f.SGML_DECL,a.q=""),a.sgmlDecl+=p;continue;case f.DOCTYPE:p===">"?(a.state=f.TEXT,L(a,"ondoctype",a.doctype),a.doctype=!0):(a.doctype+=p,p==="["?a.state=f.DOCTYPE_DTD:D(p)&&(a.state=f.DOCTYPE_QUOTED,a.q=p));continue;case f.DOCTYPE_QUOTED:a.doctype+=p,p===a.q&&(a.q="",a.state=f.DOCTYPE);continue;case f.DOCTYPE_DTD:a.doctype+=p,p==="]"?a.state=f.DOCTYPE:D(p)&&(a.state=f.DOCTYPE_DTD_QUOTED,a.q=p);continue;case f.DOCTYPE_DTD_QUOTED:a.doctype+=p,p===a.q&&(a.state=f.DOCTYPE_DTD,a.q="");continue;case f.COMMENT:p==="-"?a.state=f.COMMENT_ENDING:a.comment+=p;continue;case f.COMMENT_ENDING:p==="-"?(a.state=f.COMMENT_ENDED,a.comment=q(a.opt,a.comment),a.comment&&L(a,"oncomment",a.comment),a.comment=""):(a.comment+="-"+p,a.state=f.COMMENT);continue;case f.COMMENT_ENDED:p!==">"?(x(a,"Malformed comment"),a.comment+="--"+p,a.state=f.COMMENT):a.state=f.TEXT;continue;case f.CDATA:p==="]"?a.state=f.CDATA_ENDING:a.cdata+=p;continue;case f.CDATA_ENDING:p==="]"?a.state=f.CDATA_ENDING_2:(a.cdata+="]"+p,a.state=f.CDATA);continue;case f.CDATA_ENDING_2:p===">"?(a.cdata&&L(a,"oncdata",a.cdata),L(a,"onclosecdata"),a.cdata="",a.state=f.TEXT):p==="]"?a.cdata+="]":(a.cdata+="]]"+p,a.state=f.CDATA);continue;case f.PROC_INST:p==="?"?a.state=f.PROC_INST_ENDING:N(p)?a.state=f.PROC_INST_BODY:a.procInstName+=p;continue;case f.PROC_INST_BODY:if(!a.procInstBody&&N(p))continue;p==="?"?a.state=f.PROC_INST_ENDING:a.procInstBody+=p;continue;case f.PROC_INST_ENDING:p===">"?(L(a,"onprocessinginstruction",{name:a.procInstName,body:a.procInstBody}),a.procInstName=a.procInstBody="",a.state=f.TEXT):(a.procInstBody+="?"+p,a.state=f.PROC_INST_BODY);continue;case f.OPEN_TAG:U(v,p)?a.tagName+=p:(X(a),p===">"?Q(a):p==="/"?a.state=f.OPEN_TAG_SLASH:(N(p)||x(a,"Invalid character in tag name"),a.state=f.ATTRIB));continue;case f.OPEN_TAG_SLASH:p===">"?(Q(a,!0),K(a)):(x(a,"Forward-slash in opening tag not followed by >"),a.state=f.ATTRIB);continue;case f.ATTRIB:if(N(p))continue;p===">"?Q(a):p==="/"?a.state=f.OPEN_TAG_SLASH:U(C,p)?(a.attribName=p,a.attribValue="",a.state=f.ATTRIB_NAME):x(a,"Invalid attribute name");continue;case f.ATTRIB_NAME:p==="="?a.state=f.ATTRIB_VALUE:p===">"?(x(a,"Attribute without value"),a.attribValue=a.attribName,J(a),Q(a)):N(p)?a.state=f.ATTRIB_NAME_SAW_WHITE:U(v,p)?a.attribName+=p:x(a,"Invalid attribute name");continue;case f.ATTRIB_NAME_SAW_WHITE:if(p==="=")a.state=f.ATTRIB_VALUE;else{if(N(p))continue;x(a,"Attribute without value"),a.tag.attributes[a.attribName]="",a.attribValue="",L(a,"onattribute",{name:a.attribName,value:""}),a.attribName="",p===">"?Q(a):U(C,p)?(a.attribName=p,a.state=f.ATTRIB_NAME):(x(a,"Invalid attribute name"),a.state=f.ATTRIB)}continue;case f.ATTRIB_VALUE:if(N(p))continue;D(p)?(a.q=p,a.state=f.ATTRIB_VALUE_QUOTED):(x(a,"Unquoted attribute value"),a.state=f.ATTRIB_VALUE_UNQUOTED,a.attribValue=p);continue;case f.ATTRIB_VALUE_QUOTED:if(p!==a.q){p==="&"?a.state=f.ATTRIB_VALUE_ENTITY_Q:a.attribValue+=p;continue}J(a),a.q="",a.state=f.ATTRIB_VALUE_CLOSED;continue;case f.ATTRIB_VALUE_CLOSED:N(p)?a.state=f.ATTRIB:p===">"?Q(a):p==="/"?a.state=f.OPEN_TAG_SLASH:U(C,p)?(x(a,"No whitespace between attributes"),a.attribName=p,a.attribValue="",a.state=f.ATTRIB_NAME):x(a,"Invalid attribute name");continue;case f.ATTRIB_VALUE_UNQUOTED:if(!P(p)){p==="&"?a.state=f.ATTRIB_VALUE_ENTITY_U:a.attribValue+=p;continue}J(a),p===">"?Q(a):a.state=f.ATTRIB;continue;case f.CLOSE_TAG:if(a.tagName)p===">"?K(a):U(v,p)?a.tagName+=p:a.script?(a.script+=""?K(a):x(a,"Invalid characters in closing tag");continue;case f.TEXT_ENTITY:case f.ATTRIB_VALUE_ENTITY_Q:case f.ATTRIB_VALUE_ENTITY_U:var W,st;switch(a.state){case f.TEXT_ENTITY:W=f.TEXT,st="textNode";break;case f.ATTRIB_VALUE_ENTITY_Q:W=f.ATTRIB_VALUE_QUOTED,st="attribValue";break;case f.ATTRIB_VALUE_ENTITY_U:W=f.ATTRIB_VALUE_UNQUOTED,st="attribValue";break}p===";"?(a[st]+=ht(a),a.entity="",a.state=W):U(a.entity.length?R:_,p)?a.entity+=p:(x(a,"Invalid character in entity name"),a[st]+="&"+a.entity+p,a.entity="",a.state=W);continue;default:throw new Error(a,"Unknown state: "+a.state)}return a.position>=a.bufferCheckPosition&&n(a),a}String.fromCodePoint||function(){var u=String.fromCharCode,a=Math.floor,A=function(){var p=16384,z=[],H,W,st=-1,ut=arguments.length;if(!ut)return"";for(var Yt="";++st1114111||a(nt)!==nt)throw RangeError("Invalid code point: "+nt);nt<=65535?z.push(nt):(nt-=65536,H=(nt>>10)+55296,W=nt%1024+56320,z.push(H,W)),(st+1===ut||z.length>p)&&(Yt+=u.apply(null,z),z.length=0)}return Yt};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:A,configurable:!0,writable:!0}):String.fromCodePoint=A}()})(typeof Pe>"u"?Pe.sax={}:Pe)});var ua=ft((Na,be)=>{var m=m||{};m.Utils=m.Utils||(typeof dt<"u"?wr():null);m.DataArray=m.DataArray||(typeof dt<"u"?pn():null);m.Transform=m.Transform||(typeof dt<"u"?Ye():null);m.Label=m.Label||(typeof dt<"u"?Tn():null);var Vn=Vn||(typeof dt<"u"?kn():null);m.TAG_TRANSFORM="CoordinateSystemTransformMatrix";m.TAG_DATA="Data";m.TAG_DATAARRAY="DataArray";m.TAG_DATASPACE="DataSpace";m.TAG_GIFTI="GIFTI";m.TAG_LABEL="Label";m.TAG_LABELTABLE="LabelTable";m.TAG_MATRIXDATA="MatrixData";m.TAG_METADATA="MetaData";m.TAG_MD="MD";m.TAG_NAME="Name";m.TAG_TRANSFORMEDSPACE="TransformedSpace";m.TAG_VALUE="Value";m.GIFTI=m.GIFTI||function(){this.attributes=null,this.metadata={},this.dataArrays=[],this.labelTable=[]};m.GIFTI.prototype.getPointsDataArray=function(){var e;for(e=0;e *) buffer/index.js: (*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT *) safe-buffer/index.js: (*! safe-buffer. MIT License. Feross Aboukhadijeh *) sax/lib/sax.js: (*! http://mths.be/fromcodepoint v0.1.0 by @mathias *) */