mirror of
https://github.com/logos-messaging/lab.waku.org.git
synced 2026-01-07 08:13:10 +00:00
2 lines
73 KiB
JavaScript
2 lines
73 KiB
JavaScript
import{E as xr,g as dr,m as Le,d as Ee}from"./index-B-6Lwopd.js";import{e as en}from"./events-BzDGR98G.js";import{r as tn,i as J}from"./inherits_browser-BwZ6FBWK.js";const Wn=Object.freeze(Object.defineProperty({__proto__:null,EventEmitter:xr,default:xr},Symbol.toStringTag,{value:"Module"})),Ya=dr(Wn);var ar={exports:{}},rn=en.EventEmitter,Yt,Er;function zn(){if(Er)return Yt;Er=1;function e(R,A){var w=Object.keys(R);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(R);A&&(s=s.filter(function(p){return Object.getOwnPropertyDescriptor(R,p).enumerable})),w.push.apply(w,s)}return w}function t(R){for(var A=1;A<arguments.length;A++){var w=arguments[A]!=null?arguments[A]:{};A%2?e(Object(w),!0).forEach(function(s){r(R,s,w[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(w)):e(Object(w)).forEach(function(s){Object.defineProperty(R,s,Object.getOwnPropertyDescriptor(w,s))})}return R}function r(R,A,w){return A=l(A),A in R?Object.defineProperty(R,A,{value:w,enumerable:!0,configurable:!0,writable:!0}):R[A]=w,R}function n(R,A){if(!(R instanceof A))throw new TypeError("Cannot call a class as a function")}function i(R,A){for(var w=0;w<A.length;w++){var s=A[w];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(R,l(s.key),s)}}function f(R,A,w){return A&&i(R.prototype,A),Object.defineProperty(R,"prototype",{writable:!1}),R}function l(R){var A=c(R,"string");return typeof A=="symbol"?A:String(A)}function c(R,A){if(typeof R!="object"||R===null)return R;var w=R[Symbol.toPrimitive];if(w!==void 0){var s=w.call(R,A||"default");if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(A==="string"?String:Number)(R)}var d=Le,b=d.Buffer,E=tn,u=E.inspect,m=u&&u.custom||"inspect";function v(R,A,w){b.prototype.copy.call(R,A,w)}return Yt=function(){function R(){n(this,R),this.head=null,this.tail=null,this.length=0}return f(R,[{key:"push",value:function(w){var s={data:w,next:null};this.length>0?this.tail.next=s:this.head=s,this.tail=s,++this.length}},{key:"unshift",value:function(w){var s={data:w,next:this.head};this.length===0&&(this.tail=s),this.head=s,++this.length}},{key:"shift",value:function(){if(this.length!==0){var w=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,w}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(w){if(this.length===0)return"";for(var s=this.head,p=""+s.data;s=s.next;)p+=w+s.data;return p}},{key:"concat",value:function(w){if(this.length===0)return b.alloc(0);for(var s=b.allocUnsafe(w>>>0),p=this.head,y=0;p;)v(p.data,s,y),y+=p.data.length,p=p.next;return s}},{key:"consume",value:function(w,s){var p;return w<this.head.data.length?(p=this.head.data.slice(0,w),this.head.data=this.head.data.slice(w)):w===this.head.data.length?p=this.shift():p=s?this._getString(w):this._getBuffer(w),p}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(w){var s=this.head,p=1,y=s.data;for(w-=y.length;s=s.next;){var S=s.data,T=w>S.length?S.length:w;if(T===S.length?y+=S:y+=S.slice(0,w),w-=T,w===0){T===S.length?(++p,s.next?this.head=s.next:this.head=this.tail=null):(this.head=s,s.data=S.slice(T));break}++p}return this.length-=p,y}},{key:"_getBuffer",value:function(w){var s=b.allocUnsafe(w),p=this.head,y=1;for(p.data.copy(s),w-=p.data.length;p=p.next;){var S=p.data,T=w>S.length?S.length:w;if(S.copy(s,s.length-w,0,T),w-=T,w===0){T===S.length?(++y,p.next?this.head=p.next:this.head=this.tail=null):(this.head=p,p.data=S.slice(T));break}++y}return this.length-=y,s}},{key:m,value:function(w,s){return u(this,t(t({},s),{},{depth:0,customInspect:!1}))}}]),R}(),Yt}function Gn(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(or,this,e)):process.nextTick(or,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(f){!t&&f?r._writableState?r._writableState.errorEmitted?process.nextTick(We,r):(r._writableState.errorEmitted=!0,process.nextTick(mr,r,f)):process.nextTick(mr,r,f):t?(process.nextTick(We,r),t(f)):process.nextTick(We,r)}),this)}function mr(e,t){or(e,t),We(e)}function We(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function Vn(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function or(e,t){e.emit("error",t)}function Kn(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}var nn={destroy:Gn,undestroy:Vn,errorOrDestroy:Kn},pe={};function Yn(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var an={};function X(e,t,r){r||(r=Error);function n(f,l,c){return typeof t=="string"?t:t(f,l,c)}var i=function(f){Yn(l,f);function l(c,d,b){return f.call(this,n(c,d,b))||this}return l}(r);i.prototype.name=r.name,i.prototype.code=e,an[e]=i}function Sr(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(n){return String(n)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function Xn(e,t,r){return e.substr(0,t.length)===t}function Jn(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function Qn(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}X("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);X("ERR_INVALID_ARG_TYPE",function(e,t,r){var n;typeof t=="string"&&Xn(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";var i;if(Jn(e," argument"))i="The ".concat(e," ").concat(n," ").concat(Sr(t,"type"));else{var f=Qn(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(f," ").concat(n," ").concat(Sr(t,"type"))}return i+=". Received type ".concat(typeof r),i},TypeError);X("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");X("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});X("ERR_STREAM_PREMATURE_CLOSE","Premature close");X("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});X("ERR_MULTIPLE_CALLBACK","Callback called multiple times");X("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");X("ERR_STREAM_WRITE_AFTER_END","write after end");X("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);X("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);X("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");pe.codes=an;var Zn=pe.codes.ERR_INVALID_OPT_VALUE;function ei(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function ti(e,t,r,n){var i=ei(t,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var f=n?r:"highWaterMark";throw new Zn(f,i)}return Math.floor(i)}return e.objectMode?16:16*1024}var on={getHighWaterMark:ti},ri=ni;function ni(e,t){if(Xt("noDeprecation"))return e;var r=!1;function n(){if(!r){if(Xt("throwDeprecation"))throw new Error(t);Xt("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return n}function Xt(e){try{if(!Ee.localStorage)return!1}catch{return!1}var t=Ee.localStorage[e];return t==null?!1:String(t).toLowerCase()==="true"}var Jt,Rr;function fn(){if(Rr)return Jt;Rr=1,Jt=D;function e(_){var h=this;this.next=null,this.entry=null,this.finish=function(){ne(h,_)}}var t;D.WritableState=B;var r={deprecate:ri},n=rn,i=Le.Buffer,f=(typeof Ee<"u"?Ee:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function l(_){return i.from(_)}function c(_){return i.isBuffer(_)||_ instanceof f}var d=nn,b=on,E=b.getHighWaterMark,u=pe.codes,m=u.ERR_INVALID_ARG_TYPE,v=u.ERR_METHOD_NOT_IMPLEMENTED,R=u.ERR_MULTIPLE_CALLBACK,A=u.ERR_STREAM_CANNOT_PIPE,w=u.ERR_STREAM_DESTROYED,s=u.ERR_STREAM_NULL_VALUES,p=u.ERR_STREAM_WRITE_AFTER_END,y=u.ERR_UNKNOWN_ENCODING,S=d.errorOrDestroy;J(D,n);function T(){}function B(_,h,x){t=t||me(),_=_||{},typeof x!="boolean"&&(x=h instanceof t),this.objectMode=!!_.objectMode,x&&(this.objectMode=this.objectMode||!!_.writableObjectMode),this.highWaterMark=E(this,_,"writableHighWaterMark",x),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var k=_.decodeStrings===!1;this.decodeStrings=!k,this.defaultEncoding=_.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(L){le(h,L)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=_.emitClose!==!1,this.autoDestroy=!!_.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}B.prototype.getBuffer=function(){for(var h=this.bufferedRequest,x=[];h;)x.push(h),h=h.next;return x},function(){try{Object.defineProperty(B.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var O;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(O=Function.prototype[Symbol.hasInstance],Object.defineProperty(D,Symbol.hasInstance,{value:function(h){return O.call(this,h)?!0:this!==D?!1:h&&h._writableState instanceof B}})):O=function(h){return h instanceof this};function D(_){t=t||me();var h=this instanceof t;if(!h&&!O.call(D,this))return new D(_);this._writableState=new B(_,this,h),this.writable=!0,_&&(typeof _.write=="function"&&(this._write=_.write),typeof _.writev=="function"&&(this._writev=_.writev),typeof _.destroy=="function"&&(this._destroy=_.destroy),typeof _.final=="function"&&(this._final=_.final)),n.call(this)}D.prototype.pipe=function(){S(this,new A)};function M(_,h){var x=new p;S(_,x),process.nextTick(h,x)}function F(_,h,x,k){var L;return x===null?L=new s:typeof x!="string"&&!h.objectMode&&(L=new m("chunk",["string","Buffer"],x)),L?(S(_,L),process.nextTick(k,L),!1):!0}D.prototype.write=function(_,h,x){var k=this._writableState,L=!1,a=!k.objectMode&&c(_);return a&&!i.isBuffer(_)&&(_=l(_)),typeof h=="function"&&(x=h,h=null),a?h="buffer":h||(h=k.defaultEncoding),typeof x!="function"&&(x=T),k.ending?M(this,x):(a||F(this,k,_,x))&&(k.pendingcb++,L=Z(this,k,a,_,h,x)),L},D.prototype.cork=function(){this._writableState.corked++},D.prototype.uncork=function(){var _=this._writableState;_.corked&&(_.corked--,!_.writing&&!_.corked&&!_.bufferProcessing&&_.bufferedRequest&&Y(this,_))},D.prototype.setDefaultEncoding=function(h){if(typeof h=="string"&&(h=h.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((h+"").toLowerCase())>-1))throw new y(h);return this._writableState.defaultEncoding=h,this},Object.defineProperty(D.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function W(_,h,x){return!_.objectMode&&_.decodeStrings!==!1&&typeof h=="string"&&(h=i.from(h,x)),h}Object.defineProperty(D.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Z(_,h,x,k,L,a){if(!x){var o=W(h,k,L);k!==o&&(x=!0,L="buffer",k=o)}var g=h.objectMode?1:k.length;h.length+=g;var C=h.length<h.highWaterMark;if(C||(h.needDrain=!0),h.writing||h.corked){var U=h.lastBufferedRequest;h.lastBufferedRequest={chunk:k,encoding:L,isBuf:x,callback:a,next:null},U?U.next=h.lastBufferedRequest:h.bufferedRequest=h.lastBufferedRequest,h.bufferedRequestCount+=1}else q(_,h,!1,g,k,L,a);return C}function q(_,h,x,k,L,a,o){h.writelen=k,h.writecb=o,h.writing=!0,h.sync=!0,h.destroyed?h.onwrite(new w("write")):x?_._writev(L,h.onwrite):_._write(L,a,h.onwrite),h.sync=!1}function z(_,h,x,k,L){--h.pendingcb,x?(process.nextTick(L,k),process.nextTick(V,_,h),_._writableState.errorEmitted=!0,S(_,k)):(L(k),_._writableState.errorEmitted=!0,S(_,k),V(_,h))}function G(_){_.writing=!1,_.writecb=null,_.length-=_.writelen,_.writelen=0}function le(_,h){var x=_._writableState,k=x.sync,L=x.writecb;if(typeof L!="function")throw new R;if(G(x),h)z(_,x,k,h,L);else{var a=te(x)||_.destroyed;!a&&!x.corked&&!x.bufferProcessing&&x.bufferedRequest&&Y(_,x),k?process.nextTick(K,_,x,a,L):K(_,x,a,L)}}function K(_,h,x,k){x||ee(_,h),h.pendingcb--,k(),V(_,h)}function ee(_,h){h.length===0&&h.needDrain&&(h.needDrain=!1,_.emit("drain"))}function Y(_,h){h.bufferProcessing=!0;var x=h.bufferedRequest;if(_._writev&&x&&x.next){var k=h.bufferedRequestCount,L=new Array(k),a=h.corkedRequestsFree;a.entry=x;for(var o=0,g=!0;x;)L[o]=x,x.isBuf||(g=!1),x=x.next,o+=1;L.allBuffers=g,q(_,h,!0,h.length,L,"",a.finish),h.pendingcb++,h.lastBufferedRequest=null,a.next?(h.corkedRequestsFree=a.next,a.next=null):h.corkedRequestsFree=new e(h),h.bufferedRequestCount=0}else{for(;x;){var C=x.chunk,U=x.encoding,N=x.callback,P=h.objectMode?1:C.length;if(q(_,h,!1,P,C,U,N),x=x.next,h.bufferedRequestCount--,h.writing)break}x===null&&(h.lastBufferedRequest=null)}h.bufferedRequest=x,h.bufferProcessing=!1}D.prototype._write=function(_,h,x){x(new v("_write()"))},D.prototype._writev=null,D.prototype.end=function(_,h,x){var k=this._writableState;return typeof _=="function"?(x=_,_=null,h=null):typeof h=="function"&&(x=h,h=null),_!=null&&this.write(_,h),k.corked&&(k.corked=1,this.uncork()),k.ending||he(this,k,x),this},Object.defineProperty(D.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function te(_){return _.ending&&_.length===0&&_.bufferedRequest===null&&!_.finished&&!_.writing}function ue(_,h){_._final(function(x){h.pendingcb--,x&&S(_,x),h.prefinished=!0,_.emit("prefinish"),V(_,h)})}function re(_,h){!h.prefinished&&!h.finalCalled&&(typeof _._final=="function"&&!h.destroyed?(h.pendingcb++,h.finalCalled=!0,process.nextTick(ue,_,h)):(h.prefinished=!0,_.emit("prefinish")))}function V(_,h){var x=te(h);if(x&&(re(_,h),h.pendingcb===0&&(h.finished=!0,_.emit("finish"),h.autoDestroy))){var k=_._readableState;(!k||k.autoDestroy&&k.endEmitted)&&_.destroy()}return x}function he(_,h,x){h.ending=!0,V(_,h),x&&(h.finished?process.nextTick(x):_.once("finish",x)),h.ended=!0,_.writable=!1}function ne(_,h,x){var k=_.entry;for(_.entry=null;k;){var L=k.callback;h.pendingcb--,L(x),k=k.next}h.corkedRequestsFree.next=_}return Object.defineProperty(D.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(h){this._writableState&&(this._writableState.destroyed=h)}}),D.prototype.destroy=d.destroy,D.prototype._undestroy=d.undestroy,D.prototype._destroy=function(_,h){h(_)},Jt}var Qt,Tr;function me(){if(Tr)return Qt;Tr=1;var e=Object.keys||function(b){var E=[];for(var u in b)E.push(u);return E};Qt=l;var t=ln(),r=fn();J(l,t);for(var n=e(r.prototype),i=0;i<n.length;i++){var f=n[i];l.prototype[f]||(l.prototype[f]=r.prototype[f])}function l(b){if(!(this instanceof l))return new l(b);t.call(this,b),r.call(this,b),this.allowHalfOpen=!0,b&&(b.readable===!1&&(this.readable=!1),b.writable===!1&&(this.writable=!1),b.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",c)))}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(l.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function c(){this._writableState.ended||process.nextTick(d,this)}function d(b){b.end()}return Object.defineProperty(l.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(E){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=E,this._writableState.destroyed=E)}}),Qt}var Zt={},qe={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var Ar;function ii(){return Ar||(Ar=1,function(e,t){var r=Le,n=r.Buffer;function i(l,c){for(var d in l)c[d]=l[d]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(i(r,t),t.Buffer=f);function f(l,c,d){return n(l,c,d)}f.prototype=Object.create(n.prototype),i(n,f),f.from=function(l,c,d){if(typeof l=="number")throw new TypeError("Argument must not be a number");return n(l,c,d)},f.alloc=function(l,c,d){if(typeof l!="number")throw new TypeError("Argument must be a number");var b=n(l);return c!==void 0?typeof d=="string"?b.fill(c,d):b.fill(c):b.fill(0),b},f.allocUnsafe=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return n(l)},f.allocUnsafeSlow=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(l)}}(qe,qe.exports)),qe.exports}var Cr;function Br(){if(Cr)return Zt;Cr=1;var e=ii().Buffer,t=e.isEncoding||function(s){switch(s=""+s,s&&s.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 r(s){if(!s)return"utf8";for(var p;;)switch(s){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 s;default:if(p)return;s=(""+s).toLowerCase(),p=!0}}function n(s){var p=r(s);if(typeof p!="string"&&(e.isEncoding===t||!t(s)))throw new Error("Unknown encoding: "+s);return p||s}Zt.StringDecoder=i;function i(s){this.encoding=n(s);var p;switch(this.encoding){case"utf16le":this.text=u,this.end=m,p=4;break;case"utf8":this.fillLast=d,p=4;break;case"base64":this.text=v,this.end=R,p=3;break;default:this.write=A,this.end=w;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(p)}i.prototype.write=function(s){if(s.length===0)return"";var p,y;if(this.lastNeed){if(p=this.fillLast(s),p===void 0)return"";y=this.lastNeed,this.lastNeed=0}else y=0;return y<s.length?p?p+this.text(s,y):this.text(s,y):p||""},i.prototype.end=E,i.prototype.text=b,i.prototype.fillLast=function(s){if(this.lastNeed<=s.length)return s.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);s.copy(this.lastChar,this.lastTotal-this.lastNeed,0,s.length),this.lastNeed-=s.length};function f(s){return s<=127?0:s>>5===6?2:s>>4===14?3:s>>3===30?4:s>>6===2?-1:-2}function l(s,p,y){var S=p.length-1;if(S<y)return 0;var T=f(p[S]);return T>=0?(T>0&&(s.lastNeed=T-1),T):--S<y||T===-2?0:(T=f(p[S]),T>=0?(T>0&&(s.lastNeed=T-2),T):--S<y||T===-2?0:(T=f(p[S]),T>=0?(T>0&&(T===2?T=0:s.lastNeed=T-3),T):0))}function c(s,p,y){if((p[0]&192)!==128)return s.lastNeed=0,"<22>";if(s.lastNeed>1&&p.length>1){if((p[1]&192)!==128)return s.lastNeed=1,"<22>";if(s.lastNeed>2&&p.length>2&&(p[2]&192)!==128)return s.lastNeed=2,"<22>"}}function d(s){var p=this.lastTotal-this.lastNeed,y=c(this,s);if(y!==void 0)return y;if(this.lastNeed<=s.length)return s.copy(this.lastChar,p,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);s.copy(this.lastChar,p,0,s.length),this.lastNeed-=s.length}function b(s,p){var y=l(this,s,p);if(!this.lastNeed)return s.toString("utf8",p);this.lastTotal=y;var S=s.length-(y-this.lastNeed);return s.copy(this.lastChar,0,S),s.toString("utf8",p,S)}function E(s){var p=s&&s.length?this.write(s):"";return this.lastNeed?p+"<22>":p}function u(s,p){if((s.length-p)%2===0){var y=s.toString("utf16le",p);if(y){var S=y.charCodeAt(y.length-1);if(S>=55296&&S<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=s[s.length-2],this.lastChar[1]=s[s.length-1],y.slice(0,-1)}return y}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=s[s.length-1],s.toString("utf16le",p,s.length-1)}function m(s){var p=s&&s.length?this.write(s):"";if(this.lastNeed){var y=this.lastTotal-this.lastNeed;return p+this.lastChar.toString("utf16le",0,y)}return p}function v(s,p){var y=(s.length-p)%3;return y===0?s.toString("base64",p):(this.lastNeed=3-y,this.lastTotal=3,y===1?this.lastChar[0]=s[s.length-1]:(this.lastChar[0]=s[s.length-2],this.lastChar[1]=s[s.length-1]),s.toString("base64",p,s.length-y))}function R(s){var p=s&&s.length?this.write(s):"";return this.lastNeed?p+this.lastChar.toString("base64",0,3-this.lastNeed):p}function A(s){return s.toString(this.encoding)}function w(s){return s&&s.length?this.write(s):""}return Zt}var kr=pe.codes.ERR_STREAM_PREMATURE_CLOSE;function ai(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}function oi(){}function fi(e){return e.setHeader&&typeof e.abort=="function"}function sn(e,t,r){if(typeof t=="function")return sn(e,null,t);t||(t={}),r=ai(r||oi);var n=t.readable||t.readable!==!1&&e.readable,i=t.writable||t.writable!==!1&&e.writable,f=function(){e.writable||c()},l=e._writableState&&e._writableState.finished,c=function(){i=!1,l=!0,n||r.call(e)},d=e._readableState&&e._readableState.endEmitted,b=function(){n=!1,d=!0,i||r.call(e)},E=function(R){r.call(e,R)},u=function(){var R;if(n&&!d)return(!e._readableState||!e._readableState.ended)&&(R=new kr),r.call(e,R);if(i&&!l)return(!e._writableState||!e._writableState.ended)&&(R=new kr),r.call(e,R)},m=function(){e.req.on("finish",c)};return fi(e)?(e.on("complete",c),e.on("abort",u),e.req?m():e.on("request",m)):i&&!e._writableState&&(e.on("end",f),e.on("close",f)),e.on("end",b),e.on("finish",c),t.error!==!1&&e.on("error",E),e.on("close",u),function(){e.removeListener("complete",c),e.removeListener("abort",u),e.removeListener("request",m),e.req&&e.req.removeListener("finish",c),e.removeListener("end",f),e.removeListener("close",f),e.removeListener("finish",c),e.removeListener("end",b),e.removeListener("error",E),e.removeListener("close",u)}}var pr=sn,er,Mr;function si(){if(Mr)return er;Mr=1;var e;function t(y,S,T){return S=r(S),S in y?Object.defineProperty(y,S,{value:T,enumerable:!0,configurable:!0,writable:!0}):y[S]=T,y}function r(y){var S=n(y,"string");return typeof S=="symbol"?S:String(S)}function n(y,S){if(typeof y!="object"||y===null)return y;var T=y[Symbol.toPrimitive];if(T!==void 0){var B=T.call(y,S||"default");if(typeof B!="object")return B;throw new TypeError("@@toPrimitive must return a primitive value.")}return(S==="string"?String:Number)(y)}var i=pr,f=Symbol("lastResolve"),l=Symbol("lastReject"),c=Symbol("error"),d=Symbol("ended"),b=Symbol("lastPromise"),E=Symbol("handlePromise"),u=Symbol("stream");function m(y,S){return{value:y,done:S}}function v(y){var S=y[f];if(S!==null){var T=y[u].read();T!==null&&(y[b]=null,y[f]=null,y[l]=null,S(m(T,!1)))}}function R(y){process.nextTick(v,y)}function A(y,S){return function(T,B){y.then(function(){if(S[d]){T(m(void 0,!0));return}S[E](T,B)},B)}}var w=Object.getPrototypeOf(function(){}),s=Object.setPrototypeOf((e={get stream(){return this[u]},next:function(){var S=this,T=this[c];if(T!==null)return Promise.reject(T);if(this[d])return Promise.resolve(m(void 0,!0));if(this[u].destroyed)return new Promise(function(M,F){process.nextTick(function(){S[c]?F(S[c]):M(m(void 0,!0))})});var B=this[b],O;if(B)O=new Promise(A(B,this));else{var D=this[u].read();if(D!==null)return Promise.resolve(m(D,!1));O=new Promise(this[E])}return this[b]=O,O}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var S=this;return new Promise(function(T,B){S[u].destroy(null,function(O){if(O){B(O);return}T(m(void 0,!0))})})}),e),w),p=function(S){var T,B=Object.create(s,(T={},t(T,u,{value:S,writable:!0}),t(T,f,{value:null,writable:!0}),t(T,l,{value:null,writable:!0}),t(T,c,{value:null,writable:!0}),t(T,d,{value:S._readableState.endEmitted,writable:!0}),t(T,E,{value:function(D,M){var F=B[u].read();F?(B[b]=null,B[f]=null,B[l]=null,D(m(F,!1))):(B[f]=D,B[l]=M)},writable:!0}),T));return B[b]=null,i(S,function(O){if(O&&O.code!=="ERR_STREAM_PREMATURE_CLOSE"){var D=B[l];D!==null&&(B[b]=null,B[f]=null,B[l]=null,D(O)),B[c]=O;return}var M=B[f];M!==null&&(B[b]=null,B[f]=null,B[l]=null,M(m(void 0,!0))),B[d]=!0}),S.on("readable",R.bind(null,B)),B};return er=p,er}var tr,Dr;function li(){return Dr||(Dr=1,tr=function(){throw new Error("Readable.from is not available in the browser")}),tr}var rr,Nr;function ln(){if(Nr)return rr;Nr=1,rr=M;var e;M.ReadableState=D,en.EventEmitter;var t=function(o,g){return o.listeners(g).length},r=rn,n=Le.Buffer,i=(typeof Ee<"u"?Ee:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function f(a){return n.from(a)}function l(a){return n.isBuffer(a)||a instanceof i}var c=tn,d;c&&c.debuglog?d=c.debuglog("stream"):d=function(){};var b=zn(),E=nn,u=on,m=u.getHighWaterMark,v=pe.codes,R=v.ERR_INVALID_ARG_TYPE,A=v.ERR_STREAM_PUSH_AFTER_EOF,w=v.ERR_METHOD_NOT_IMPLEMENTED,s=v.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,p,y,S;J(M,r);var T=E.errorOrDestroy,B=["error","close","destroy","pause","resume"];function O(a,o,g){if(typeof a.prependListener=="function")return a.prependListener(o,g);!a._events||!a._events[o]?a.on(o,g):Array.isArray(a._events[o])?a._events[o].unshift(g):a._events[o]=[g,a._events[o]]}function D(a,o,g){e=e||me(),a=a||{},typeof g!="boolean"&&(g=o instanceof e),this.objectMode=!!a.objectMode,g&&(this.objectMode=this.objectMode||!!a.readableObjectMode),this.highWaterMark=m(this,a,"readableHighWaterMark",g),this.buffer=new b,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=a.emitClose!==!1,this.autoDestroy=!!a.autoDestroy,this.destroyed=!1,this.defaultEncoding=a.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,a.encoding&&(p||(p=Br().StringDecoder),this.decoder=new p(a.encoding),this.encoding=a.encoding)}function M(a){if(e=e||me(),!(this instanceof M))return new M(a);var o=this instanceof e;this._readableState=new D(a,this,o),this.readable=!0,a&&(typeof a.read=="function"&&(this._read=a.read),typeof a.destroy=="function"&&(this._destroy=a.destroy)),r.call(this)}Object.defineProperty(M.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(o){this._readableState&&(this._readableState.destroyed=o)}}),M.prototype.destroy=E.destroy,M.prototype._undestroy=E.undestroy,M.prototype._destroy=function(a,o){o(a)},M.prototype.push=function(a,o){var g=this._readableState,C;return g.objectMode?C=!0:typeof a=="string"&&(o=o||g.defaultEncoding,o!==g.encoding&&(a=n.from(a,o),o=""),C=!0),F(this,a,o,!1,C)},M.prototype.unshift=function(a){return F(this,a,null,!0,!1)};function F(a,o,g,C,U){d("readableAddChunk",o);var N=a._readableState;if(o===null)N.reading=!1,le(a,N);else{var P;if(U||(P=Z(N,o)),P)T(a,P);else if(N.objectMode||o&&o.length>0)if(typeof o!="string"&&!N.objectMode&&Object.getPrototypeOf(o)!==n.prototype&&(o=f(o)),C)N.endEmitted?T(a,new s):W(a,N,o,!0);else if(N.ended)T(a,new A);else{if(N.destroyed)return!1;N.reading=!1,N.decoder&&!g?(o=N.decoder.write(o),N.objectMode||o.length!==0?W(a,N,o,!1):Y(a,N)):W(a,N,o,!1)}else C||(N.reading=!1,Y(a,N))}return!N.ended&&(N.length<N.highWaterMark||N.length===0)}function W(a,o,g,C){o.flowing&&o.length===0&&!o.sync?(o.awaitDrain=0,a.emit("data",g)):(o.length+=o.objectMode?1:g.length,C?o.buffer.unshift(g):o.buffer.push(g),o.needReadable&&K(a)),Y(a,o)}function Z(a,o){var g;return!l(o)&&typeof o!="string"&&o!==void 0&&!a.objectMode&&(g=new R("chunk",["string","Buffer","Uint8Array"],o)),g}M.prototype.isPaused=function(){return this._readableState.flowing===!1},M.prototype.setEncoding=function(a){p||(p=Br().StringDecoder);var o=new p(a);this._readableState.decoder=o,this._readableState.encoding=this._readableState.decoder.encoding;for(var g=this._readableState.buffer.head,C="";g!==null;)C+=o.write(g.data),g=g.next;return this._readableState.buffer.clear(),C!==""&&this._readableState.buffer.push(C),this._readableState.length=C.length,this};var q=1073741824;function z(a){return a>=q?a=q:(a--,a|=a>>>1,a|=a>>>2,a|=a>>>4,a|=a>>>8,a|=a>>>16,a++),a}function G(a,o){return a<=0||o.length===0&&o.ended?0:o.objectMode?1:a!==a?o.flowing&&o.length?o.buffer.head.data.length:o.length:(a>o.highWaterMark&&(o.highWaterMark=z(a)),a<=o.length?a:o.ended?o.length:(o.needReadable=!0,0))}M.prototype.read=function(a){d("read",a),a=parseInt(a,10);var o=this._readableState,g=a;if(a!==0&&(o.emittedReadable=!1),a===0&&o.needReadable&&((o.highWaterMark!==0?o.length>=o.highWaterMark:o.length>0)||o.ended))return d("read: emitReadable",o.length,o.ended),o.length===0&&o.ended?x(this):K(this),null;if(a=G(a,o),a===0&&o.ended)return o.length===0&&x(this),null;var C=o.needReadable;d("need readable",C),(o.length===0||o.length-a<o.highWaterMark)&&(C=!0,d("length less than watermark",C)),o.ended||o.reading?(C=!1,d("reading or ended",C)):C&&(d("do read"),o.reading=!0,o.sync=!0,o.length===0&&(o.needReadable=!0),this._read(o.highWaterMark),o.sync=!1,o.reading||(a=G(g,o)));var U;return a>0?U=h(a,o):U=null,U===null?(o.needReadable=o.length<=o.highWaterMark,a=0):(o.length-=a,o.awaitDrain=0),o.length===0&&(o.ended||(o.needReadable=!0),g!==a&&o.ended&&x(this)),U!==null&&this.emit("data",U),U};function le(a,o){if(d("onEofChunk"),!o.ended){if(o.decoder){var g=o.decoder.end();g&&g.length&&(o.buffer.push(g),o.length+=o.objectMode?1:g.length)}o.ended=!0,o.sync?K(a):(o.needReadable=!1,o.emittedReadable||(o.emittedReadable=!0,ee(a)))}}function K(a){var o=a._readableState;d("emitReadable",o.needReadable,o.emittedReadable),o.needReadable=!1,o.emittedReadable||(d("emitReadable",o.flowing),o.emittedReadable=!0,process.nextTick(ee,a))}function ee(a){var o=a._readableState;d("emitReadable_",o.destroyed,o.length,o.ended),!o.destroyed&&(o.length||o.ended)&&(a.emit("readable"),o.emittedReadable=!1),o.needReadable=!o.flowing&&!o.ended&&o.length<=o.highWaterMark,_(a)}function Y(a,o){o.readingMore||(o.readingMore=!0,process.nextTick(te,a,o))}function te(a,o){for(;!o.reading&&!o.ended&&(o.length<o.highWaterMark||o.flowing&&o.length===0);){var g=o.length;if(d("maybeReadMore read 0"),a.read(0),g===o.length)break}o.readingMore=!1}M.prototype._read=function(a){T(this,new w("_read()"))},M.prototype.pipe=function(a,o){var g=this,C=this._readableState;switch(C.pipesCount){case 0:C.pipes=a;break;case 1:C.pipes=[C.pipes,a];break;default:C.pipes.push(a);break}C.pipesCount+=1,d("pipe count=%d opts=%j",C.pipesCount,o);var U=(!o||o.end!==!1)&&a!==process.stdout&&a!==process.stderr,N=U?ie:_e;C.endEmitted?process.nextTick(N):g.once("end",N),a.on("unpipe",P);function P(ae,Q){d("onunpipe"),ae===g&&Q&&Q.hasUnpiped===!1&&(Q.hasUnpiped=!0,He())}function ie(){d("onend"),a.end()}var ce=ue(g);a.on("drain",ce);var Ce=!1;function He(){d("cleanup"),a.removeListener("close",we),a.removeListener("finish",xe),a.removeListener("drain",ce),a.removeListener("error",ye),a.removeListener("unpipe",P),g.removeListener("end",ie),g.removeListener("end",_e),g.removeListener("data",Be),Ce=!0,C.awaitDrain&&(!a._writableState||a._writableState.needDrain)&&ce()}g.on("data",Be);function Be(ae){d("ondata");var Q=a.write(ae);d("dest.write",Q),Q===!1&&((C.pipesCount===1&&C.pipes===a||C.pipesCount>1&&L(C.pipes,a)!==-1)&&!Ce&&(d("false write response, pause",C.awaitDrain),C.awaitDrain++),g.pause())}function ye(ae){d("onerror",ae),_e(),a.removeListener("error",ye),t(a,"error")===0&&T(a,ae)}O(a,"error",ye);function we(){a.removeListener("finish",xe),_e()}a.once("close",we);function xe(){d("onfinish"),a.removeListener("close",we),_e()}a.once("finish",xe);function _e(){d("unpipe"),g.unpipe(a)}return a.emit("pipe",g),C.flowing||(d("pipe resume"),g.resume()),a};function ue(a){return function(){var g=a._readableState;d("pipeOnDrain",g.awaitDrain),g.awaitDrain&&g.awaitDrain--,g.awaitDrain===0&&t(a,"data")&&(g.flowing=!0,_(a))}}M.prototype.unpipe=function(a){var o=this._readableState,g={hasUnpiped:!1};if(o.pipesCount===0)return this;if(o.pipesCount===1)return a&&a!==o.pipes?this:(a||(a=o.pipes),o.pipes=null,o.pipesCount=0,o.flowing=!1,a&&a.emit("unpipe",this,g),this);if(!a){var C=o.pipes,U=o.pipesCount;o.pipes=null,o.pipesCount=0,o.flowing=!1;for(var N=0;N<U;N++)C[N].emit("unpipe",this,{hasUnpiped:!1});return this}var P=L(o.pipes,a);return P===-1?this:(o.pipes.splice(P,1),o.pipesCount-=1,o.pipesCount===1&&(o.pipes=o.pipes[0]),a.emit("unpipe",this,g),this)},M.prototype.on=function(a,o){var g=r.prototype.on.call(this,a,o),C=this._readableState;return a==="data"?(C.readableListening=this.listenerCount("readable")>0,C.flowing!==!1&&this.resume()):a==="readable"&&!C.endEmitted&&!C.readableListening&&(C.readableListening=C.needReadable=!0,C.flowing=!1,C.emittedReadable=!1,d("on readable",C.length,C.reading),C.length?K(this):C.reading||process.nextTick(V,this)),g},M.prototype.addListener=M.prototype.on,M.prototype.removeListener=function(a,o){var g=r.prototype.removeListener.call(this,a,o);return a==="readable"&&process.nextTick(re,this),g},M.prototype.removeAllListeners=function(a){var o=r.prototype.removeAllListeners.apply(this,arguments);return(a==="readable"||a===void 0)&&process.nextTick(re,this),o};function re(a){var o=a._readableState;o.readableListening=a.listenerCount("readable")>0,o.resumeScheduled&&!o.paused?o.flowing=!0:a.listenerCount("data")>0&&a.resume()}function V(a){d("readable nexttick read 0"),a.read(0)}M.prototype.resume=function(){var a=this._readableState;return a.flowing||(d("resume"),a.flowing=!a.readableListening,he(this,a)),a.paused=!1,this};function he(a,o){o.resumeScheduled||(o.resumeScheduled=!0,process.nextTick(ne,a,o))}function ne(a,o){d("resume",o.reading),o.reading||a.read(0),o.resumeScheduled=!1,a.emit("resume"),_(a),o.flowing&&!o.reading&&a.read(0)}M.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function _(a){var o=a._readableState;for(d("flow",o.flowing);o.flowing&&a.read()!==null;);}M.prototype.wrap=function(a){var o=this,g=this._readableState,C=!1;a.on("end",function(){if(d("wrapped end"),g.decoder&&!g.ended){var P=g.decoder.end();P&&P.length&&o.push(P)}o.push(null)}),a.on("data",function(P){if(d("wrapped data"),g.decoder&&(P=g.decoder.write(P)),!(g.objectMode&&P==null)&&!(!g.objectMode&&(!P||!P.length))){var ie=o.push(P);ie||(C=!0,a.pause())}});for(var U in a)this[U]===void 0&&typeof a[U]=="function"&&(this[U]=function(ie){return function(){return a[ie].apply(a,arguments)}}(U));for(var N=0;N<B.length;N++)a.on(B[N],this.emit.bind(this,B[N]));return this._read=function(P){d("wrapped _read",P),C&&(C=!1,a.resume())},this},typeof Symbol=="function"&&(M.prototype[Symbol.asyncIterator]=function(){return y===void 0&&(y=si()),y(this)}),Object.defineProperty(M.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(M.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(M.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(o){this._readableState&&(this._readableState.flowing=o)}}),M._fromList=h,Object.defineProperty(M.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function h(a,o){if(o.length===0)return null;var g;return o.objectMode?g=o.buffer.shift():!a||a>=o.length?(o.decoder?g=o.buffer.join(""):o.buffer.length===1?g=o.buffer.first():g=o.buffer.concat(o.length),o.buffer.clear()):g=o.buffer.consume(a,o.decoder),g}function x(a){var o=a._readableState;d("endReadable",o.endEmitted),o.endEmitted||(o.ended=!0,process.nextTick(k,o,a))}function k(a,o){if(d("endReadableNT",a.endEmitted,a.length),!a.endEmitted&&a.length===0&&(a.endEmitted=!0,o.readable=!1,o.emit("end"),a.autoDestroy)){var g=o._writableState;(!g||g.autoDestroy&&g.finished)&&o.destroy()}}typeof Symbol=="function"&&(M.from=function(a,o){return S===void 0&&(S=li()),S(M,a,o)});function L(a,o){for(var g=0,C=a.length;g<C;g++)if(a[g]===o)return g;return-1}return rr}var un=fe,Ke=pe.codes,ui=Ke.ERR_METHOD_NOT_IMPLEMENTED,hi=Ke.ERR_MULTIPLE_CALLBACK,_i=Ke.ERR_TRANSFORM_ALREADY_TRANSFORMING,ci=Ke.ERR_TRANSFORM_WITH_LENGTH_0,Ye=me();J(fe,Ye);function di(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new hi);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function fe(e){if(!(this instanceof fe))return new fe(e);Ye.call(this,e),this._transformState={afterTransform:di.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",pi)}function pi(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(t,r){Lr(e,t,r)}):Lr(this,null,null)}fe.prototype.push=function(e,t){return this._transformState.needTransform=!1,Ye.prototype.push.call(this,e,t)};fe.prototype._transform=function(e,t,r){r(new ui("_transform()"))};fe.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};fe.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};fe.prototype._destroy=function(e,t){Ye.prototype._destroy.call(this,e,function(r){t(r)})};function Lr(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new ci;if(e._transformState.transforming)throw new _i;return e.push(null)}var bi=De,hn=un;J(De,hn);function De(e){if(!(this instanceof De))return new De(e);hn.call(this,e)}De.prototype._transform=function(e,t,r){r(null,e)};var nr;function vi(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var _n=pe.codes,gi=_n.ERR_MISSING_ARGS,yi=_n.ERR_STREAM_DESTROYED;function Pr(e){if(e)throw e}function wi(e){return e.setHeader&&typeof e.abort=="function"}function xi(e,t,r,n){n=vi(n);var i=!1;e.on("close",function(){i=!0}),nr===void 0&&(nr=pr),nr(e,{readable:t,writable:r},function(l){if(l)return n(l);i=!0,n()});var f=!1;return function(l){if(!i&&!f){if(f=!0,wi(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();n(l||new yi("pipe"))}}}function Or(e){e()}function Ei(e,t){return e.pipe(t)}function mi(e){return!e.length||typeof e[e.length-1]!="function"?Pr:e.pop()}function Si(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=mi(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new gi("streams");var i,f=t.map(function(l,c){var d=c<t.length-1,b=c>0;return xi(l,d,b,function(E){i||(i=E),E&&f.forEach(Or),!d&&(f.forEach(Or),n(i))})});return t.reduce(Ei)}var Ri=Si;(function(e,t){t=e.exports=ln(),t.Stream=t,t.Readable=t,t.Writable=fn(),t.Duplex=me(),t.Transform=un,t.PassThrough=bi,t.finished=pr,t.pipeline=Ri})(ar,ar.exports);var cn=ar.exports;const{Transform:Ti}=cn;var Ai=e=>class dn extends Ti{constructor(r,n,i,f,l){super(l),this._rate=r,this._capacity=n,this._delimitedSuffix=i,this._hashBitLength=f,this._options=l,this._state=new e,this._state.initialize(r,n),this._finalized=!1}_transform(r,n,i){let f=null;try{this.update(r,n)}catch(l){f=l}i(f)}_flush(r){let n=null;try{this.push(this.digest())}catch(i){n=i}r(n)}update(r,n){if(!Buffer.isBuffer(r)&&typeof r!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return Buffer.isBuffer(r)||(r=Buffer.from(r,n)),this._state.absorb(r),this}digest(r){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let n=this._state.squeeze(this._hashBitLength/8);return r!==void 0&&(n=n.toString(r)),this._resetState(),n}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const r=new dn(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(r._state),r._finalized=this._finalized,r}};const{Transform:Ci}=cn;var Bi=e=>class pn extends Ci{constructor(r,n,i,f){super(f),this._rate=r,this._capacity=n,this._delimitedSuffix=i,this._options=f,this._state=new e,this._state.initialize(r,n),this._finalized=!1}_transform(r,n,i){let f=null;try{this.update(r,n)}catch(l){f=l}i(f)}_flush(){}_read(r){this.push(this.squeeze(r))}update(r,n){if(!Buffer.isBuffer(r)&&typeof r!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return Buffer.isBuffer(r)||(r=Buffer.from(r,n)),this._state.absorb(r),this}squeeze(r,n){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let i=this._state.squeeze(r);return n!==void 0&&(i=i.toString(n)),i}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const r=new pn(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(r._state),r._finalized=this._finalized,r}};const ki=Ai,Mi=Bi;var Di=function(e){const t=ki(e),r=Mi(e);return function(n,i){switch(typeof n=="string"?n.toLowerCase():n){case"keccak224":return new t(1152,448,null,224,i);case"keccak256":return new t(1088,512,null,256,i);case"keccak384":return new t(832,768,null,384,i);case"keccak512":return new t(576,1024,null,512,i);case"sha3-224":return new t(1152,448,6,224,i);case"sha3-256":return new t(1088,512,6,256,i);case"sha3-384":return new t(832,768,6,384,i);case"sha3-512":return new t(576,1024,6,512,i);case"shake128":return new r(1344,256,31,i);case"shake256":return new r(1088,512,31,i);default:throw new Error("Invald algorithm: "+n)}}},bn={};const Ir=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];bn.p1600=function(e){for(let t=0;t<24;++t){const r=e[0]^e[10]^e[20]^e[30]^e[40],n=e[1]^e[11]^e[21]^e[31]^e[41],i=e[2]^e[12]^e[22]^e[32]^e[42],f=e[3]^e[13]^e[23]^e[33]^e[43],l=e[4]^e[14]^e[24]^e[34]^e[44],c=e[5]^e[15]^e[25]^e[35]^e[45],d=e[6]^e[16]^e[26]^e[36]^e[46],b=e[7]^e[17]^e[27]^e[37]^e[47],E=e[8]^e[18]^e[28]^e[38]^e[48],u=e[9]^e[19]^e[29]^e[39]^e[49];let m=E^(i<<1|f>>>31),v=u^(f<<1|i>>>31);const R=e[0]^m,A=e[1]^v,w=e[10]^m,s=e[11]^v,p=e[20]^m,y=e[21]^v,S=e[30]^m,T=e[31]^v,B=e[40]^m,O=e[41]^v;m=r^(l<<1|c>>>31),v=n^(c<<1|l>>>31);const D=e[2]^m,M=e[3]^v,F=e[12]^m,W=e[13]^v,Z=e[22]^m,q=e[23]^v,z=e[32]^m,G=e[33]^v,le=e[42]^m,K=e[43]^v;m=i^(d<<1|b>>>31),v=f^(b<<1|d>>>31);const ee=e[4]^m,Y=e[5]^v,te=e[14]^m,ue=e[15]^v,re=e[24]^m,V=e[25]^v,he=e[34]^m,ne=e[35]^v,_=e[44]^m,h=e[45]^v;m=l^(E<<1|u>>>31),v=c^(u<<1|E>>>31);const x=e[6]^m,k=e[7]^v,L=e[16]^m,a=e[17]^v,o=e[26]^m,g=e[27]^v,C=e[36]^m,U=e[37]^v,N=e[46]^m,P=e[47]^v;m=d^(r<<1|n>>>31),v=b^(n<<1|r>>>31);const ie=e[8]^m,ce=e[9]^v,Ce=e[18]^m,He=e[19]^v,Be=e[28]^m,ye=e[29]^v,we=e[38]^m,xe=e[39]^v,_e=e[48]^m,ae=e[49]^v,Q=R,et=A,tt=s<<4|w>>>28,rt=w<<4|s>>>28,nt=p<<3|y>>>29,it=y<<3|p>>>29,at=T<<9|S>>>23,ot=S<<9|T>>>23,ft=B<<18|O>>>14,st=O<<18|B>>>14,lt=D<<1|M>>>31,ut=M<<1|D>>>31,ht=W<<12|F>>>20,_t=F<<12|W>>>20,ct=Z<<10|q>>>22,dt=q<<10|Z>>>22,pt=G<<13|z>>>19,bt=z<<13|G>>>19,vt=le<<2|K>>>30,gt=K<<2|le>>>30,yt=Y<<30|ee>>>2,wt=ee<<30|Y>>>2,xt=te<<6|ue>>>26,Et=ue<<6|te>>>26,mt=V<<11|re>>>21,St=re<<11|V>>>21,Rt=he<<15|ne>>>17,Tt=ne<<15|he>>>17,At=h<<29|_>>>3,Ct=_<<29|h>>>3,Bt=x<<28|k>>>4,kt=k<<28|x>>>4,Mt=a<<23|L>>>9,Dt=L<<23|a>>>9,Nt=o<<25|g>>>7,Lt=g<<25|o>>>7,Pt=C<<21|U>>>11,Ot=U<<21|C>>>11,It=P<<24|N>>>8,$t=N<<24|P>>>8,Ft=ie<<27|ce>>>5,Ut=ce<<27|ie>>>5,Ht=Ce<<20|He>>>12,qt=He<<20|Ce>>>12,jt=ye<<7|Be>>>25,Wt=Be<<7|ye>>>25,zt=we<<8|xe>>>24,Gt=xe<<8|we>>>24,Vt=_e<<14|ae>>>18,Kt=ae<<14|_e>>>18;e[0]=Q^~ht&mt,e[1]=et^~_t&St,e[10]=Bt^~Ht&nt,e[11]=kt^~qt&it,e[20]=lt^~xt&Nt,e[21]=ut^~Et&Lt,e[30]=Ft^~tt&ct,e[31]=Ut^~rt&dt,e[40]=yt^~Mt&jt,e[41]=wt^~Dt&Wt,e[2]=ht^~mt&Pt,e[3]=_t^~St&Ot,e[12]=Ht^~nt&pt,e[13]=qt^~it&bt,e[22]=xt^~Nt&zt,e[23]=Et^~Lt&Gt,e[32]=tt^~ct&Rt,e[33]=rt^~dt&Tt,e[42]=Mt^~jt&at,e[43]=Dt^~Wt&ot,e[4]=mt^~Pt&Vt,e[5]=St^~Ot&Kt,e[14]=nt^~pt&At,e[15]=it^~bt&Ct,e[24]=Nt^~zt&ft,e[25]=Lt^~Gt&st,e[34]=ct^~Rt&It,e[35]=dt^~Tt&$t,e[44]=jt^~at&vt,e[45]=Wt^~ot>,e[6]=Pt^~Vt&Q,e[7]=Ot^~Kt&et,e[16]=pt^~At&Bt,e[17]=bt^~Ct&kt,e[26]=zt^~ft<,e[27]=Gt^~st&ut,e[36]=Rt^~It&Ft,e[37]=Tt^~$t&Ut,e[46]=at^~vt&yt,e[47]=ot^~gt&wt,e[8]=Vt^~Q&ht,e[9]=Kt^~et&_t,e[18]=At^~Bt&Ht,e[19]=Ct^~kt&qt,e[28]=ft^~lt&xt,e[29]=st^~ut&Et,e[38]=It^~Ft&tt,e[39]=$t^~Ut&rt,e[48]=vt^~yt&Mt,e[49]=gt^~wt&Dt,e[0]^=Ir[t*2],e[1]^=Ir[t*2+1]}};const Ge=bn;function Te(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}Te.prototype.initialize=function(e,t){for(let r=0;r<50;++r)this.state[r]=0;this.blockSize=e/8,this.count=0,this.squeezing=!1};Te.prototype.absorb=function(e){for(let t=0;t<e.length;++t)this.state[~~(this.count/4)]^=e[t]<<8*(this.count%4),this.count+=1,this.count===this.blockSize&&(Ge.p1600(this.state),this.count=0)};Te.prototype.absorbLastFewBits=function(e){this.state[~~(this.count/4)]^=e<<8*(this.count%4),e&128&&this.count===this.blockSize-1&&Ge.p1600(this.state),this.state[~~((this.blockSize-1)/4)]^=128<<8*((this.blockSize-1)%4),Ge.p1600(this.state),this.count=0,this.squeezing=!0};Te.prototype.squeeze=function(e){this.squeezing||this.absorbLastFewBits(1);const t=Buffer.alloc(e);for(let r=0;r<e;++r)t[r]=this.state[~~(this.count/4)]>>>8*(this.count%4)&255,this.count+=1,this.count===this.blockSize&&(Ge.p1600(this.state),this.count=0);return t};Te.prototype.copy=function(e){for(let t=0;t<50;++t)e.state[t]=this.state[t];e.blockSize=this.blockSize,e.count=this.count,e.squeezing=this.squeezing};var Ni=Te,Xa=Di(Ni),vn={exports:{}},fr={exports:{}};(function(e,t){var r=Le,n=r.Buffer;function i(l,c){for(var d in l)c[d]=l[d]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(i(r,t),t.Buffer=f);function f(l,c,d){return n(l,c,d)}i(n,f),f.from=function(l,c,d){if(typeof l=="number")throw new TypeError("Argument must not be a number");return n(l,c,d)},f.alloc=function(l,c,d){if(typeof l!="number")throw new TypeError("Argument must be a number");var b=n(l);return c!==void 0?typeof d=="string"?b.fill(c,d):b.fill(c):b.fill(0),b},f.allocUnsafe=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return n(l)},f.allocUnsafeSlow=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(l)}})(fr,fr.exports);var be=fr.exports,gn=be.Buffer;function Xe(e,t){this._block=gn.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}Xe.prototype.update=function(e,t){typeof e=="string"&&(t=t||"utf8",e=gn.from(e,t));for(var r=this._block,n=this._blockSize,i=e.length,f=this._len,l=0;l<i;){for(var c=f%n,d=Math.min(i-l,n-c),b=0;b<d;b++)r[c+b]=e[l+b];f+=d,l+=d,f%n===0&&this._update(r)}return this._len+=i,this};Xe.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=this._len*8;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(r&4294967295)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var f=this._hash();return e?f.toString(e):f};Xe.prototype._update=function(){throw new Error("_update must be implemented by subclass")};var Ae=Xe,Li=J,yn=Ae,Pi=be.Buffer,Oi=[1518500249,1859775393,-1894007588,-899497514],Ii=new Array(80);function Pe(){this.init(),this._w=Ii,yn.call(this,64,56)}Li(Pe,yn);Pe.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function $i(e){return e<<5|e>>>27}function Fi(e){return e<<30|e>>>2}function Ui(e,t,r,n){return e===0?t&r|~t&n:e===2?t&r|t&n|r&n:t^r^n}Pe.prototype._update=function(e){for(var t=this._w,r=this._a|0,n=this._b|0,i=this._c|0,f=this._d|0,l=this._e|0,c=0;c<16;++c)t[c]=e.readInt32BE(c*4);for(;c<80;++c)t[c]=t[c-3]^t[c-8]^t[c-14]^t[c-16];for(var d=0;d<80;++d){var b=~~(d/20),E=$i(r)+Ui(b,n,i,f)+l+t[d]+Oi[b]|0;l=f,f=i,i=Fi(n),n=r,r=E}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=f+this._d|0,this._e=l+this._e|0};Pe.prototype._hash=function(){var e=Pi.allocUnsafe(20);return e.writeInt32BE(this._a|0,0),e.writeInt32BE(this._b|0,4),e.writeInt32BE(this._c|0,8),e.writeInt32BE(this._d|0,12),e.writeInt32BE(this._e|0,16),e};var Hi=Pe,qi=J,wn=Ae,ji=be.Buffer,Wi=[1518500249,1859775393,-1894007588,-899497514],zi=new Array(80);function Oe(){this.init(),this._w=zi,wn.call(this,64,56)}qi(Oe,wn);Oe.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function Gi(e){return e<<1|e>>>31}function Vi(e){return e<<5|e>>>27}function Ki(e){return e<<30|e>>>2}function Yi(e,t,r,n){return e===0?t&r|~t&n:e===2?t&r|t&n|r&n:t^r^n}Oe.prototype._update=function(e){for(var t=this._w,r=this._a|0,n=this._b|0,i=this._c|0,f=this._d|0,l=this._e|0,c=0;c<16;++c)t[c]=e.readInt32BE(c*4);for(;c<80;++c)t[c]=Gi(t[c-3]^t[c-8]^t[c-14]^t[c-16]);for(var d=0;d<80;++d){var b=~~(d/20),E=Vi(r)+Yi(b,n,i,f)+l+t[d]+Wi[b]|0;l=f,f=i,i=Ki(n),n=r,r=E}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=f+this._d|0,this._e=l+this._e|0};Oe.prototype._hash=function(){var e=ji.allocUnsafe(20);return e.writeInt32BE(this._a|0,0),e.writeInt32BE(this._b|0,4),e.writeInt32BE(this._c|0,8),e.writeInt32BE(this._d|0,12),e.writeInt32BE(this._e|0,16),e};var Xi=Oe,Ji=J,xn=Ae,Qi=be.Buffer,Zi=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],ea=new Array(64);function Ie(){this.init(),this._w=ea,xn.call(this,64,56)}Ji(Ie,xn);Ie.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function ta(e,t,r){return r^e&(t^r)}function ra(e,t,r){return e&t|r&(e|t)}function na(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function ia(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function aa(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function oa(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}Ie.prototype._update=function(e){for(var t=this._w,r=this._a|0,n=this._b|0,i=this._c|0,f=this._d|0,l=this._e|0,c=this._f|0,d=this._g|0,b=this._h|0,E=0;E<16;++E)t[E]=e.readInt32BE(E*4);for(;E<64;++E)t[E]=oa(t[E-2])+t[E-7]+aa(t[E-15])+t[E-16]|0;for(var u=0;u<64;++u){var m=b+ia(l)+ta(l,c,d)+Zi[u]+t[u]|0,v=na(r)+ra(r,n,i)|0;b=d,d=c,c=l,l=f+m|0,f=i,i=n,n=r,r=m+v|0}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=f+this._d|0,this._e=l+this._e|0,this._f=c+this._f|0,this._g=d+this._g|0,this._h=b+this._h|0};Ie.prototype._hash=function(){var e=Qi.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e};var En=Ie,fa=J,sa=En,la=Ae,ua=be.Buffer,ha=new Array(64);function Je(){this.init(),this._w=ha,la.call(this,64,56)}fa(Je,sa);Je.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this};Je.prototype._hash=function(){var e=ua.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e};var _a=Je,ca=J,mn=Ae,da=be.Buffer,$r=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],pa=new Array(160);function $e(){this.init(),this._w=pa,mn.call(this,128,112)}ca($e,mn);$e.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function Fr(e,t,r){return r^e&(t^r)}function Ur(e,t,r){return e&t|r&(e|t)}function Hr(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function qr(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function ba(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function va(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function ga(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function ya(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function j(e,t){return e>>>0<t>>>0?1:0}$e.prototype._update=function(e){for(var t=this._w,r=this._ah|0,n=this._bh|0,i=this._ch|0,f=this._dh|0,l=this._eh|0,c=this._fh|0,d=this._gh|0,b=this._hh|0,E=this._al|0,u=this._bl|0,m=this._cl|0,v=this._dl|0,R=this._el|0,A=this._fl|0,w=this._gl|0,s=this._hl|0,p=0;p<32;p+=2)t[p]=e.readInt32BE(p*4),t[p+1]=e.readInt32BE(p*4+4);for(;p<160;p+=2){var y=t[p-30],S=t[p-15*2+1],T=ba(y,S),B=va(S,y);y=t[p-2*2],S=t[p-2*2+1];var O=ga(y,S),D=ya(S,y),M=t[p-7*2],F=t[p-7*2+1],W=t[p-16*2],Z=t[p-16*2+1],q=B+F|0,z=T+M+j(q,B)|0;q=q+D|0,z=z+O+j(q,D)|0,q=q+Z|0,z=z+W+j(q,Z)|0,t[p]=z,t[p+1]=q}for(var G=0;G<160;G+=2){z=t[G],q=t[G+1];var le=Ur(r,n,i),K=Ur(E,u,m),ee=Hr(r,E),Y=Hr(E,r),te=qr(l,R),ue=qr(R,l),re=$r[G],V=$r[G+1],he=Fr(l,c,d),ne=Fr(R,A,w),_=s+ue|0,h=b+te+j(_,s)|0;_=_+ne|0,h=h+he+j(_,ne)|0,_=_+V|0,h=h+re+j(_,V)|0,_=_+q|0,h=h+z+j(_,q)|0;var x=Y+K|0,k=ee+le+j(x,Y)|0;b=d,s=w,d=c,w=A,c=l,A=R,R=v+_|0,l=f+h+j(R,v)|0,f=i,v=m,i=n,m=u,n=r,u=E,E=_+x|0,r=h+k+j(E,_)|0}this._al=this._al+E|0,this._bl=this._bl+u|0,this._cl=this._cl+m|0,this._dl=this._dl+v|0,this._el=this._el+R|0,this._fl=this._fl+A|0,this._gl=this._gl+w|0,this._hl=this._hl+s|0,this._ah=this._ah+r+j(this._al,E)|0,this._bh=this._bh+n+j(this._bl,u)|0,this._ch=this._ch+i+j(this._cl,m)|0,this._dh=this._dh+f+j(this._dl,v)|0,this._eh=this._eh+l+j(this._el,R)|0,this._fh=this._fh+c+j(this._fl,A)|0,this._gh=this._gh+d+j(this._gl,w)|0,this._hh=this._hh+b+j(this._hl,s)|0};$e.prototype._hash=function(){var e=da.allocUnsafe(64);function t(r,n,i){e.writeInt32BE(r,i),e.writeInt32BE(n,i+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e};var Sn=$e,wa=J,xa=Sn,Ea=Ae,ma=be.Buffer,Sa=new Array(160);function Qe(){this.init(),this._w=Sa,Ea.call(this,128,112)}wa(Qe,xa);Qe.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this};Qe.prototype._hash=function(){var e=ma.allocUnsafe(48);function t(r,n,i){e.writeInt32BE(r,i),e.writeInt32BE(n,i+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e};var Ra=Qe,ve=vn.exports=function(t){t=t.toLowerCase();var r=ve[t];if(!r)throw new Error(t+" is not supported (we accept pull requests)");return new r};ve.sha=Hi;ve.sha1=Xi;ve.sha224=_a;ve.sha256=En;ve.sha384=Ra;ve.sha512=Sn;var Ja=vn.exports,Fe,$,Rn,Tn,de,jr,An,sr,br,lr,ur,Cn,Ne={},Bn=[],Ta=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ze=Array.isArray;function oe(e,t){for(var r in t)e[r]=t[r];return e}function kn(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function hr(e,t,r){var n,i,f,l={};for(f in t)f=="key"?n=t[f]:f=="ref"?i=t[f]:l[f]=t[f];if(arguments.length>2&&(l.children=arguments.length>3?Fe.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(f in e.defaultProps)l[f]===void 0&&(l[f]=e.defaultProps[f]);return ke(e,l,n,i,null)}function ke(e,t,r,n,i){var f={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:i??++Rn,__i:-1,__u:0};return i==null&&$.vnode!=null&&$.vnode(f),f}function Aa(){return{current:null}}function Ue(e){return e.children}function Me(e,t){this.props=e,this.context=t}function Se(e,t){if(t==null)return e.__?Se(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?Se(e):null}function Mn(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return Mn(e)}}function _r(e){(!e.__d&&(e.__d=!0)&&de.push(e)&&!Ve.__r++||jr!==$.debounceRendering)&&((jr=$.debounceRendering)||An)(Ve)}function Ve(){var e,t,r,n,i,f,l,c;for(de.sort(sr);e=de.shift();)e.__d&&(t=de.length,n=void 0,f=(i=(r=e).__v).__e,l=[],c=[],r.__P&&((n=oe({},i)).__v=i.__v+1,$.vnode&&$.vnode(n),vr(r.__P,n,i,r.__n,r.__P.namespaceURI,32&i.__u?[f]:null,l,f??Se(i),!!(32&i.__u),c),n.__v=i.__v,n.__.__k[n.__i]=n,Pn(l,n,c),n.__e!=f&&Mn(n)),de.length>t&&de.sort(sr));Ve.__r=0}function Dn(e,t,r,n,i,f,l,c,d,b,E){var u,m,v,R,A,w=n&&n.__k||Bn,s=t.length;for(r.__d=d,Ca(r,t,w),d=r.__d,u=0;u<s;u++)(v=r.__k[u])!=null&&(m=v.__i===-1?Ne:w[v.__i]||Ne,v.__i=u,vr(e,v,m,i,f,l,c,d,b,E),R=v.__e,v.ref&&m.ref!=v.ref&&(m.ref&&gr(m.ref,null,v),E.push(v.ref,v.__c||R,v)),A==null&&R!=null&&(A=R),65536&v.__u||m.__k===v.__k?d=Nn(v,d,e):typeof v.type=="function"&&v.__d!==void 0?d=v.__d:R&&(d=R.nextSibling),v.__d=void 0,v.__u&=-196609);r.__d=d,r.__e=A}function Ca(e,t,r){var n,i,f,l,c,d=t.length,b=r.length,E=b,u=0;for(e.__k=[],n=0;n<d;n++)(i=t[n])!=null&&typeof i!="boolean"&&typeof i!="function"?(l=n+u,(i=e.__k[n]=typeof i=="string"||typeof i=="number"||typeof i=="bigint"||i.constructor==String?ke(null,i,null,null,null):Ze(i)?ke(Ue,{children:i},null,null,null):i.constructor===void 0&&i.__b>0?ke(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i).__=e,i.__b=e.__b+1,f=null,(c=i.__i=Ba(i,r,l,E))!==-1&&(E--,(f=r[c])&&(f.__u|=131072)),f==null||f.__v===null?(c==-1&&u--,typeof i.type!="function"&&(i.__u|=65536)):c!==l&&(c==l-1?u--:c==l+1?u++:(c>l?u--:u++,i.__u|=65536))):i=e.__k[n]=null;if(E)for(n=0;n<b;n++)(f=r[n])!=null&&!(131072&f.__u)&&(f.__e==e.__d&&(e.__d=Se(f)),On(f,f))}function Nn(e,t,r){var n,i;if(typeof e.type=="function"){for(n=e.__k,i=0;n&&i<n.length;i++)n[i]&&(n[i].__=e,t=Nn(n[i],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=Se(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function Ln(e,t){return t=t||[],e==null||typeof e=="boolean"||(Ze(e)?e.some(function(r){Ln(r,t)}):t.push(e)),t}function Ba(e,t,r,n){var i=e.key,f=e.type,l=r-1,c=r+1,d=t[r];if(d===null||d&&i==d.key&&f===d.type&&!(131072&d.__u))return r;if(n>(d!=null&&!(131072&d.__u)?1:0))for(;l>=0||c<t.length;){if(l>=0){if((d=t[l])&&!(131072&d.__u)&&i==d.key&&f===d.type)return l;l--}if(c<t.length){if((d=t[c])&&!(131072&d.__u)&&i==d.key&&f===d.type)return c;c++}}return-1}function Wr(e,t,r){t[0]==="-"?e.setProperty(t,r??""):e[t]=r==null?"":typeof r!="number"||Ta.test(t)?r:r+"px"}function je(e,t,r,n,i){var f;e:if(t==="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||Wr(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||Wr(e.style,t,r[t])}else if(t[0]==="o"&&t[1]==="n")f=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+f]=r,r?n?r.u=n.u:(r.u=br,e.addEventListener(t,f?ur:lr,f)):e.removeEventListener(t,f?ur:lr,f);else{if(i=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=r??"";break e}catch{}typeof r=="function"||(r==null||r===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&r==1?"":r))}}function zr(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.t==null)t.t=br++;else if(t.t<r.u)return;return r($.event?$.event(t):t)}}}function vr(e,t,r,n,i,f,l,c,d,b){var E,u,m,v,R,A,w,s,p,y,S,T,B,O,D,M,F=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(d=!!(32&r.__u),f=[c=t.__e=r.__e]),(E=$.__b)&&E(t);e:if(typeof F=="function")try{if(s=t.props,p="prototype"in F&&F.prototype.render,y=(E=F.contextType)&&n[E.__c],S=E?y?y.props.value:E.__:n,r.__c?w=(u=t.__c=r.__c).__=u.__E:(p?t.__c=u=new F(s,S):(t.__c=u=new Me(s,S),u.constructor=F,u.render=Ma),y&&y.sub(u),u.props=s,u.state||(u.state={}),u.context=S,u.__n=n,m=u.__d=!0,u.__h=[],u._sb=[]),p&&u.__s==null&&(u.__s=u.state),p&&F.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=oe({},u.__s)),oe(u.__s,F.getDerivedStateFromProps(s,u.__s))),v=u.props,R=u.state,u.__v=t,m)p&&F.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),p&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(p&&F.getDerivedStateFromProps==null&&s!==v&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(s,S),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(s,u.__s,S)===!1||t.__v===r.__v)){for(t.__v!==r.__v&&(u.props=s,u.state=u.__s,u.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(W){W&&(W.__=t)}),T=0;T<u._sb.length;T++)u.__h.push(u._sb[T]);u._sb=[],u.__h.length&&l.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(s,u.__s,S),p&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(v,R,A)})}if(u.context=S,u.props=s,u.__P=e,u.__e=!1,B=$.__r,O=0,p){for(u.state=u.__s,u.__d=!1,B&&B(t),E=u.render(u.props,u.state,u.context),D=0;D<u._sb.length;D++)u.__h.push(u._sb[D]);u._sb=[]}else do u.__d=!1,B&&B(t),E=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++O<25);u.state=u.__s,u.getChildContext!=null&&(n=oe(oe({},n),u.getChildContext())),p&&!m&&u.getSnapshotBeforeUpdate!=null&&(A=u.getSnapshotBeforeUpdate(v,R)),Dn(e,Ze(M=E!=null&&E.type===Ue&&E.key==null?E.props.children:E)?M:[M],t,r,n,i,f,l,c,d,b),u.base=t.__e,t.__u&=-161,u.__h.length&&l.push(u),w&&(u.__E=u.__=null)}catch(W){if(t.__v=null,d||f!=null){for(t.__u|=d?160:128;c&&c.nodeType===8&&c.nextSibling;)c=c.nextSibling;f[f.indexOf(c)]=null,t.__e=c}else t.__e=r.__e,t.__k=r.__k;$.__e(W,t,r)}else f==null&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=ka(r.__e,t,r,n,i,f,l,d,b);(E=$.diffed)&&E(t)}function Pn(e,t,r){t.__d=void 0;for(var n=0;n<r.length;n++)gr(r[n],r[++n],r[++n]);$.__c&&$.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(f){f.call(i)})}catch(f){$.__e(f,i.__v)}})}function ka(e,t,r,n,i,f,l,c,d){var b,E,u,m,v,R,A,w=r.props,s=t.props,p=t.type;if(p==="svg"?i="http://www.w3.org/2000/svg":p==="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),f!=null){for(b=0;b<f.length;b++)if((v=f[b])&&"setAttribute"in v==!!p&&(p?v.localName===p:v.nodeType===3)){e=v,f[b]=null;break}}if(e==null){if(p===null)return document.createTextNode(s);e=document.createElementNS(i,p,s.is&&s),c&&($.__m&&$.__m(t,f),c=!1),f=null}if(p===null)w===s||c&&e.data===s||(e.data=s);else{if(f=f&&Fe.call(e.childNodes),w=r.props||Ne,!c&&f!=null)for(w={},b=0;b<e.attributes.length;b++)w[(v=e.attributes[b]).name]=v.value;for(b in w)if(v=w[b],b!="children"){if(b=="dangerouslySetInnerHTML")u=v;else if(!(b in s)){if(b=="value"&&"defaultValue"in s||b=="checked"&&"defaultChecked"in s)continue;je(e,b,null,v,i)}}for(b in s)v=s[b],b=="children"?m=v:b=="dangerouslySetInnerHTML"?E=v:b=="value"?R=v:b=="checked"?A=v:c&&typeof v!="function"||w[b]===v||je(e,b,v,w[b],i);if(E)c||u&&(E.__html===u.__html||E.__html===e.innerHTML)||(e.innerHTML=E.__html),t.__k=[];else if(u&&(e.innerHTML=""),Dn(e,Ze(m)?m:[m],t,r,n,p==="foreignObject"?"http://www.w3.org/1999/xhtml":i,f,l,f?f[0]:r.__k&&Se(r,0),c,d),f!=null)for(b=f.length;b--;)kn(f[b]);c||(b="value",p==="progress"&&R==null?e.removeAttribute("value"):R!==void 0&&(R!==e[b]||p==="progress"&&!R||p==="option"&&R!==w[b])&&je(e,b,R,w[b],i),b="checked",A!==void 0&&A!==e[b]&&je(e,b,A,w[b],i))}return e}function gr(e,t,r){try{if(typeof e=="function"){var n=typeof e.__u=="function";n&&e.__u(),n&&t==null||(e.__u=e(t))}else e.current=t}catch(i){$.__e(i,r)}}function On(e,t,r){var n,i;if($.unmount&&$.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||gr(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(f){$.__e(f,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&On(n[i],t,r||typeof e.type!="function");r||kn(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function Ma(e,t,r){return this.constructor(e,r)}function In(e,t,r){var n,i,f,l;$.__&&$.__(e,t),i=(n=typeof r=="function")?null:r&&r.__k||t.__k,f=[],l=[],vr(t,e=(!n&&r||t).__k=hr(Ue,null,[e]),i||Ne,Ne,t.namespaceURI,!n&&r?[r]:i?null:t.firstChild?Fe.call(t.childNodes):null,f,!n&&r?r:i?i.__e:t.firstChild,n,l),Pn(f,e,l)}function $n(e,t){In(e,t,$n)}function Da(e,t,r){var n,i,f,l,c=oe({},e.props);for(f in e.type&&e.type.defaultProps&&(l=e.type.defaultProps),t)f=="key"?n=t[f]:f=="ref"?i=t[f]:c[f]=t[f]===void 0&&l!==void 0?l[f]:t[f];return arguments.length>2&&(c.children=arguments.length>3?Fe.call(arguments,2):r),ke(e.type,c,n||e.key,i||e.ref,null)}function Na(e,t){var r={__c:t="__cC"+Cn++,__:e,Consumer:function(n,i){return n.children(i)},Provider:function(n){var i,f;return this.getChildContext||(i=new Set,(f={})[t]=this,this.getChildContext=function(){return f},this.componentWillUnmount=function(){i=null},this.shouldComponentUpdate=function(l){this.props.value!==l.value&&i.forEach(function(c){c.__e=!0,_r(c)})},this.sub=function(l){i.add(l);var c=l.componentWillUnmount;l.componentWillUnmount=function(){i&&i.delete(l),c&&c.call(l)}}),n.children}};return r.Provider.__=r.Consumer.contextType=r}Fe=Bn.slice,$={__e:function(e,t,r,n){for(var i,f,l;t=t.__;)if((i=t.__c)&&!i.__)try{if((f=i.constructor)&&f.getDerivedStateFromError!=null&&(i.setState(f.getDerivedStateFromError(e)),l=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,n||{}),l=i.__d),l)return i.__E=i}catch(c){e=c}throw e}},Rn=0,Tn=function(e){return e!=null&&e.constructor==null},Me.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=oe({},this.state),typeof e=="function"&&(e=e(oe({},r),this.props)),e&&oe(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),_r(this))},Me.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),_r(this))},Me.prototype.render=Ue,de=[],An=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,sr=function(e,t){return e.__v.__b-t.__v.__b},Ve.__r=0,br=0,lr=zr(!1),ur=zr(!0),Cn=0;const La=Object.freeze(Object.defineProperty({__proto__:null,Component:Me,Fragment:Ue,cloneElement:Da,createContext:Na,createElement:hr,createRef:Aa,h:hr,hydrate:$n,get isValidElement(){return Tn},get options(){return $},render:In,toChildArray:Ln},Symbol.toStringTag,{value:"Module"})),Qa=dr(La);var se,I,ir,Gr,Re=0,Fn=[],H=$,Vr=H.__b,Kr=H.__r,Yr=H.diffed,Xr=H.__c,Jr=H.unmount,Qr=H.__;function ge(e,t){H.__h&&H.__h(I,e,Re||t),Re=0;var r=I.__H||(I.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Un(e){return Re=1,Hn(jn,e)}function Hn(e,t,r){var n=ge(se++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):jn(void 0,t),function(c){var d=n.__N?n.__N[0]:n.__[0],b=n.t(d,c);d!==b&&(n.__N=[b,n.__[1]],n.__c.setState({}))}],n.__c=I,!I.u)){var i=function(c,d,b){if(!n.__c.__H)return!0;var E=n.__c.__H.__.filter(function(m){return!!m.__c});if(E.every(function(m){return!m.__N}))return!f||f.call(this,c,d,b);var u=!1;return E.forEach(function(m){if(m.__N){var v=m.__[0];m.__=m.__N,m.__N=void 0,v!==m.__[0]&&(u=!0)}}),!(!u&&n.__c.props===c)&&(!f||f.call(this,c,d,b))};I.u=!0;var f=I.shouldComponentUpdate,l=I.componentWillUpdate;I.componentWillUpdate=function(c,d,b){if(this.__e){var E=f;f=void 0,i(c,d,b),f=E}l&&l.call(this,c,d,b)},I.shouldComponentUpdate=i}return n.__N||n.__}function Pa(e,t){var r=ge(se++,3);!H.__s&&wr(r.__H,t)&&(r.__=e,r.i=t,I.__H.__h.push(r))}function qn(e,t){var r=ge(se++,4);!H.__s&&wr(r.__H,t)&&(r.__=e,r.i=t,I.__h.push(r))}function Oa(e){return Re=5,yr(function(){return{current:e}},[])}function Ia(e,t,r){Re=6,qn(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},r==null?r:r.concat(e))}function yr(e,t){var r=ge(se++,7);return wr(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function $a(e,t){return Re=8,yr(function(){return e},t)}function Fa(e){var t=I.context[e.__c],r=ge(se++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(I)),t.props.value):e.__}function Ua(e,t){H.useDebugValue&&H.useDebugValue(t?t(e):e)}function Ha(e){var t=ge(se++,10),r=Un();return t.__=e,I.componentDidCatch||(I.componentDidCatch=function(n,i){t.__&&t.__(n,i),r[1](n)}),[r[0],function(){r[1](void 0)}]}function qa(){var e=ge(se++,11);if(!e.__){for(var t=I.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__="P"+r[0]+"-"+r[1]++}return e.__}function ja(){for(var e;e=Fn.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ze),e.__H.__h.forEach(cr),e.__H.__h=[]}catch(t){e.__H.__h=[],H.__e(t,e.__v)}}H.__b=function(e){I=null,Vr&&Vr(e)},H.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Qr&&Qr(e,t)},H.__r=function(e){Kr&&Kr(e),se=0;var t=(I=e.__c).__H;t&&(ir===I?(t.__h=[],I.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.i=r.__N=void 0})):(t.__h.forEach(ze),t.__h.forEach(cr),t.__h=[],se=0)),ir=I},H.diffed=function(e){Yr&&Yr(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Fn.push(t)!==1&&Gr===H.requestAnimationFrame||((Gr=H.requestAnimationFrame)||Wa)(ja)),t.__H.__.forEach(function(r){r.i&&(r.__H=r.i),r.i=void 0})),ir=I=null},H.__c=function(e,t){t.some(function(r){try{r.__h.forEach(ze),r.__h=r.__h.filter(function(n){return!n.__||cr(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],H.__e(n,r.__v)}}),Xr&&Xr(e,t)},H.unmount=function(e){Jr&&Jr(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{ze(n)}catch(i){t=i}}),r.__H=void 0,t&&H.__e(t,r.__v))};var Zr=typeof requestAnimationFrame=="function";function Wa(e){var t,r=function(){clearTimeout(n),Zr&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);Zr&&(t=requestAnimationFrame(r))}function ze(e){var t=I,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),I=t}function cr(e){var t=I;e.__c=e.__(),I=t}function wr(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function jn(e,t){return typeof t=="function"?t(e):t}const za=Object.freeze(Object.defineProperty({__proto__:null,useCallback:$a,useContext:Fa,useDebugValue:Ua,useEffect:Pa,useErrorBoundary:Ha,useId:qa,useImperativeHandle:Ia,useLayoutEffect:qn,useMemo:yr,useReducer:Hn,useRef:Oa,useState:Un},Symbol.toStringTag,{value:"Module"})),Za=dr(za);export{Za as a,Ya as b,Xa as j,Qa as r,Ja as s};
|