@dcl/governance-site 2.2.0 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/{BlockOverrides-e40b0ffc.js → BlockOverrides-5aa03deb.js} +1 -1
- package/assets/{ConstantsUtil-d225b302.js → ConstantsUtil-e755f570.js} +1 -1
- package/assets/{ExchangeController-fafa3e5d.js → ExchangeController-07ca0dff.js} +1 -1
- package/assets/{HelpersUtil-2a9b3746.js → HelpersUtil-1d3b358c.js} +1 -1
- package/assets/{NetworkUtil-6bdd2f38.js → NetworkUtil-ac31bde2.js} +1 -1
- package/assets/{ReownAuthentication-acf89426.js → ReownAuthentication-13884452.js} +1 -1
- package/assets/{SwapController-225926f9.js → SwapController-5d2aa497.js} +1 -1
- package/assets/UserAvatar-4ba08812.js +1 -0
- package/assets/brotli_wasm_bg-9ef0a025.wasm +0 -0
- package/assets/{tslib.es6-9a946fb7.js → browser-9930fa4f.js} +2 -2
- package/assets/ccip-427b9703.js +1 -0
- package/assets/{ccip-327f0ce9.js → ccip-b78370d2.js} +1 -1
- package/assets/{data-capture-d5e8ac51.js → data-capture-fd593049.js} +1 -1
- package/assets/{email-508f134c.js → email-225a204e.js} +1 -1
- package/assets/{embedded-wallet-f700359e.js → embedded-wallet-57623b5b.js} +1 -1
- package/assets/features-48b2fca5.js +1 -0
- package/assets/{fortmatic-c7197b28.js → fortmatic-b0db237f.js} +1 -1
- package/assets/{if-defined-80d57cbb.js → if-defined-d80070a2.js} +1 -1
- package/assets/{index-90492cb7.js → index-00ad18d3.js} +1 -1
- package/assets/{index-64846cfb.js → index-03d093fc.js} +1 -1
- package/assets/{index-1c3250cc.js → index-0670054e.js} +1 -1
- package/assets/{index-be776eb9.js → index-0a7a7ba7.js} +1 -1
- package/assets/{index-78b637c0.js → index-10ae3d90.js} +1 -1
- package/assets/index-11bcf729.js +23197 -0
- package/assets/{index-b279362d.js → index-15a9f4ff.js} +1 -1
- package/assets/{index-54581a05.js → index-24a2ccf1.js} +1 -1
- package/assets/{index-f69debff.js → index-2e4dd1f3.js} +1 -1
- package/assets/{index-dcc032e7.js → index-2fa762db.js} +1 -1
- package/assets/{index-83994cbb.css → index-394e4efc.css} +4 -4
- package/assets/{index-0db9a042.js → index-41fd5150.js} +1 -1
- package/assets/index-582b123e.js +1 -0
- package/assets/{index-24dee071.js → index-588af472.js} +1 -1
- package/assets/{index-8ef506ad.js → index-58a87c33.js} +1 -1
- package/assets/index-5f12374f.js +249 -0
- package/assets/{index-eae3cf80.js → index-66ca5bf6.js} +1 -1
- package/assets/{index-af1dfa27.js → index-72f469a0.js} +1 -1
- package/assets/{index-d62681ba.js → index-76a41282.js} +1 -1
- package/assets/{index-47adf3e0.js → index-7d6a72b6.js} +1 -1
- package/assets/{index-12bf7eb8.js → index-8083b9d1.js} +1 -1
- package/assets/index-85272239.js +1 -0
- package/assets/index-9316262b.js +7 -0
- package/assets/index-980812a4.js +1 -0
- package/assets/{index-b520059a.js → index-ac0bb06c.js} +1 -1
- package/assets/{index-90c177e7.js → index-af3f5ea8.js} +1 -1
- package/assets/{index-53a2bd00.js → index-c1778978.js} +1 -1
- package/assets/{index-bee86887.js → index-c2a3bd8a.js} +1 -1
- package/assets/{index-d3f89df3.js → index-c8dd3770.js} +1 -1
- package/assets/{index-1e56388d.js → index-c979183a.js} +12 -12
- package/assets/{index-394aef9f.js → index-ceb7074a.js} +1 -1
- package/assets/index-d358a4b7.js +95 -0
- package/assets/{index-ce441a34.js → index-d859de90.js} +1 -1
- package/assets/{index-43373255.js → index-e1227808.js} +3 -3
- package/assets/{index-09ca4c69.js → index-e56d4bd2.js} +1 -1
- package/assets/{index-91787f25.js → index-e575374c.js} +1 -1
- package/assets/{index-b269a5b1.js → index-e714c2f7.js} +1 -1
- package/assets/{index-61374631.js → index-e8ce8a93.js} +1 -1
- package/assets/{index-d7566f7f.js → index-fbf5b7e7.js} +22 -22
- package/assets/index.web-6c9e24b4.js +1 -0
- package/assets/{networks-fa1047f0.js → networks-f45884af.js} +1 -1
- package/assets/{onramp-1fec144d.js → onramp-35f79bb2.js} +1 -1
- package/assets/{pay-with-exchange-e4efdcbc.js → pay-with-exchange-f2de4e96.js} +1 -1
- package/assets/{receive-aeab1239.js → receive-ab837906.js} +1 -1
- package/assets/{ref-2a30eab8.js → ref-9b058653.js} +1 -1
- package/assets/secp256k1-068579d6.js +1 -0
- package/assets/{send-1d8d9f5d.js → send-6967b31e.js} +1 -1
- package/assets/{socials-987144da.js → socials-94fb5d87.js} +1 -1
- package/assets/{swaps-571e4379.js → swaps-b40dcb0f.js} +1 -1
- package/assets/{transactions-05c7409a.js → transactions-be032750.js} +1 -1
- package/assets/{w3m-modal-948091dc.js → w3m-modal-dfc25d32.js} +1 -1
- package/assets/{zoraTestnet-89a2b0f4.js → zoraTestnet-5800eec8.js} +2 -2
- package/index.html +4 -4
- package/package.json +3 -3
- package/assets/ContentfulRichText-df6bebc7.js +0 -1
- package/assets/UserAvatar-eeccb12a.js +0 -1
- package/assets/__vite-optional-peer-dep_lottie-react_decentraland-ui2-b25bb000.js +0 -1
- package/assets/features-a5d8f397.js +0 -1
- package/assets/index-267721c1.js +0 -2437
- package/assets/index-3a41dc38.js +0 -7
- package/assets/index-b1e60367.js +0 -277
- package/assets/index-c06a8e22.js +0 -102
- package/assets/rich-text-react-renderer_decentraland-ui2-b25bb000.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Z as Mr,c as w,a5 as La,U as N,t as Be,a as Na,a6 as Fa,$ as Ha,h as qa,a7 as kr,T as Za,a8 as Dr,b as ue,_ as g,a9 as za,aa as Tr,ab as R,ac as Ya,ad as Xa,ae as T,af as ke}from"./index-11bcf729.js";import{h as xr,d as Wr,c as F,s as ne,w as Ga}from"./index-582b123e.js";import{i as Cr,r as Ka,a as Va}from"./index-85272239.js";import{i as Rr}from"./index-980812a4.js";var De=Object.prototype.toString,Ur=function(e){var a=De.call(e),t=a==="[object Arguments]";return t||(t=a!=="[object Array]"&&e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&De.call(e.callee)==="[object Function]"),t},le,Te;function Qa(){if(Te)return le;Te=1;var r;if(!Object.keys){var e=Object.prototype.hasOwnProperty,a=Object.prototype.toString,t=Ur,n=Object.prototype.propertyIsEnumerable,o=!n.call({toString:null},"toString"),i=n.call(function(){},"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],s=function(p){var c=p.constructor;return c&&c.prototype===p},l={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},y=function(){if(typeof window>"u")return!1;for(var p in window)try{if(!l["$"+p]&&e.call(window,p)&&window[p]!==null&&typeof window[p]=="object")try{s(window[p])}catch{return!0}}catch{return!0}return!1}(),v=function(p){if(typeof window>"u"||!y)return s(p);try{return s(p)}catch{return!1}};r=function(c){var B=c!==null&&typeof c=="object",_=a.call(c)==="[object Function]",E=t(c),M=B&&a.call(c)==="[object String]",S=[];if(!B&&!_&&!E)throw new TypeError("Object.keys called on a non-object");var k=i&&_;if(M&&c.length>0&&!e.call(c,0))for(var O=0;O<c.length;++O)S.push(String(O));if(E&&c.length>0)for(var j=0;j<c.length;++j)S.push(String(j));else for(var m in c)!(k&&m==="prototype")&&e.call(c,m)&&S.push(String(m));if(o)for(var A=v(c),d=0;d<u.length;++d)!(A&&u[d]==="constructor")&&e.call(c,u[d])&&S.push(u[d]);return S}}return le=r,le}var Ja=Array.prototype.slice,en=Ur,xe=Object.keys,q=xe?function(e){return xe(e)}:Qa(),We=Object.keys;q.shim=function(){if(Object.keys){var e=function(){var a=Object.keys(arguments);return a&&a.length===arguments.length}(1,2);e||(Object.keys=function(t){return en(t)?We(Ja.call(t)):We(t)})}else Object.keys=q;return Object.keys||q};var _e=q,rn=_e,tn=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",an=Object.prototype.toString,nn=Array.prototype.concat,Ce=Wr,on=function(r){return typeof r=="function"&&an.call(r)==="[object Function]"},Lr=xr(),sn=function(r,e,a,t){if(e in r){if(t===!0){if(r[e]===a)return}else if(!on(t)||!t())return}Lr?Ce(r,e,a,!0):Ce(r,e,a)},Nr=function(r,e){var a=arguments.length>2?arguments[2]:{},t=rn(e);tn&&(t=nn.call(t,Object.getOwnPropertySymbols(e)));for(var n=0;n<t.length;n+=1)sn(r,t[n],e[t[n]],a[t[n]])};Nr.supportsDescriptors=!!Lr;var I=Nr,fn=_e,Fr=Mr(),Hr=w,Z=La,un=Hr("Array.prototype.push"),Re=Hr("Object.prototype.propertyIsEnumerable"),ln=Fr?Z.getOwnPropertySymbols:null,qr=function(e,a){if(e==null)throw new TypeError("target must be an object");var t=Z(e);if(arguments.length===1)return t;for(var n=1;n<arguments.length;++n){var o=Z(arguments[n]),i=fn(o),u=Fr&&(Z.getOwnPropertySymbols||ln);if(u)for(var s=u(o),l=0;l<s.length;++l){var y=s[l];Re(o,y)&&un(i,y)}for(var v=0;v<i.length;++v){var p=i[v];if(Re(o,p)){var c=o[p];t[p]=c}}}return t},ce=qr,cn=function(){if(!Object.assign)return!1;for(var r="abcdefghijklmnopqrst",e=r.split(""),a={},t=0;t<e.length;++t)a[e[t]]=e[t];var n=Object.assign({},a),o="";for(var i in n)o+=i;return r!==o},pn=function(){if(!Object.assign||!Object.preventExtensions)return!1;var r=Object.preventExtensions({1:2});try{Object.assign(r,"xy")}catch{return r[1]==="y"}return!1},Zr=function(){return!Object.assign||cn()||pn()?ce:Object.assign},vn=I,yn=Zr,gn=function(){var e=yn();return vn(Object,{assign:e},{assign:function(){return Object.assign!==e}}),e},mn=I,dn=F,hn=qr,zr=Zr,bn=gn,Sn=dn.apply(zr()),Yr=function(e,a){return Sn(Object,arguments)};mn(Yr,{getPolyfill:zr,implementation:hn,shim:bn});var wn=Yr,Xr=N,Gr=F,$n=Gr(Xr("String.prototype.indexOf")),Kr=function(e,a){var t=Xr(e,!!a);return typeof t=="function"&&$n(e,".prototype.")>-1?Gr(t):t},L=function(){return typeof(function(){}).name=="string"},U=Object.getOwnPropertyDescriptor;if(U)try{U([],"length")}catch{U=null}L.functionsHaveConfigurableNames=function(){if(!L()||!U)return!1;var e=U(function(){},"name");return!!e&&!!e.configurable};var Pn=Function.prototype.bind;L.boundFunctionsHaveNames=function(){return L()&&typeof Pn=="function"&&(function(){}).bind().name!==""};var On=L,Ue=Wr,jn=xr(),Bn=On.functionsHaveConfigurableNames(),_n=Be,En=function(e,a){if(typeof e!="function")throw new _n("`fn` is not a function");var t=arguments.length>2&&!!arguments[2];return(!t||Bn)&&(jn?Ue(e,"name",a,!0,!0):Ue(e,"name",a)),e},An=En,In=Be,Mn=Object,Vr=An(function(){if(this==null||this!==Mn(this))throw new In("RegExp.prototype.flags getter called on non-object");var e="";return this.hasIndices&&(e+="d"),this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),this.dotAll&&(e+="s"),this.unicode&&(e+="u"),this.unicodeSets&&(e+="v"),this.sticky&&(e+="y"),e},"get flags",!0),kn=Vr,Dn=I.supportsDescriptors,Tn=Object.getOwnPropertyDescriptor,Qr=function(){if(Dn&&/a/mig.flags==="gim"){var e=Tn(RegExp.prototype,"flags");if(e&&typeof e.get=="function"&&"dotAll"in RegExp.prototype&&"hasIndices"in RegExp.prototype){var a="",t={};if(Object.defineProperty(t,"hasIndices",{get:function(){a+="d"}}),Object.defineProperty(t,"sticky",{get:function(){a+="y"}}),e.get.call(t),a==="dy")return e.get}}return kn},xn=I.supportsDescriptors,Wn=Qr,Cn=Na,Rn=Object.defineProperty,Un=Fa,Le=Ha,Ln=/a/,Nn=function(){if(!xn||!Le)throw new Un("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var e=Wn(),a=Le(Ln),t=Cn(a,"flags");return(!t||t.get!==e)&&Rn(a,"flags",{configurable:!0,enumerable:!1,get:e}),e},Fn=I,Hn=F,qn=Vr,Jr=Qr,Zn=Nn,et=Hn(Jr());Fn(et,{getPolyfill:Jr,implementation:qn,shim:Zn});var zn=et,z={exports:{}},Yn=qa,x=kr(),P=Be,Ee={assert:function(r,e){if(!r||typeof r!="object"&&typeof r!="function")throw new P("`O` is not an object");if(typeof e!="string")throw new P("`slot` must be a string");if(x.assert(r),!Ee.has(r,e))throw new P("`"+e+"` is not present on `O`")},get:function(r,e){if(!r||typeof r!="object"&&typeof r!="function")throw new P("`O` is not an object");if(typeof e!="string")throw new P("`slot` must be a string");var a=x.get(r);return a&&a["$"+e]},has:function(r,e){if(!r||typeof r!="object"&&typeof r!="function")throw new P("`O` is not an object");if(typeof e!="string")throw new P("`slot` must be a string");var a=x.get(r);return!!a&&Yn(a,"$"+e)},set:function(r,e,a){if(!r||typeof r!="object"&&typeof r!="function")throw new P("`O` is not an object");if(typeof e!="string")throw new P("`slot` must be a string");var t=x.get(r);t||(t={},x.set(r,t)),t["$"+e]=a}};Object.freeze&&Object.freeze(Ee);var Xn=Ee,W=Xn,Gn=Za,Ne=typeof StopIteration=="object"?StopIteration:null,Kn=function(e){if(!Ne)throw new Gn("this environment lacks StopIteration");W.set(e,"[[Done]]",!1);var a={next:function(){var n=W.get(this,"[[Iterator]]"),o=!!W.get(n,"[[Done]]");try{return{done:o,value:o?void 0:n.next()}}catch(i){if(W.set(n,"[[Done]]",!0),i!==Ne)throw i;return{done:!0,value:void 0}}}};return W.set(a,"[[Iterator]]",e),a},rt=w,Vn=rt("String.prototype.valueOf"),Qn=function(e){try{return Vn(e),!0}catch{return!1}},Jn=rt("Object.prototype.toString"),eo="[object String]",ro=ne(),tt=function(e){return typeof e=="string"?!0:!e||typeof e!="object"?!1:ro?Qn(e):Jn(e)===eo},Ae=typeof Map=="function"&&Map.prototype?Map:null,to=typeof Set=="function"&&Set.prototype?Set:null,G;Ae||(G=function(e){return!1});var at=Ae?Map.prototype.has:null,Fe=to?Set.prototype.has:null;!G&&!at&&(G=function(e){return!1});var nt=G||function(e){if(!e||typeof e!="object")return!1;try{if(at.call(e),Fe)try{Fe.call(e)}catch{return!0}return e instanceof Ae}catch{}return!1},ao=typeof Map=="function"&&Map.prototype?Map:null,Ie=typeof Set=="function"&&Set.prototype?Set:null,K;Ie||(K=function(e){return!1});var He=ao?Map.prototype.has:null,ot=Ie?Set.prototype.has:null;!K&&!ot&&(K=function(e){return!1});var it=K||function(e){if(!e||typeof e!="object")return!1;try{if(ot.call(e),He)try{He.call(e)}catch{return!0}return e instanceof Ie}catch{}return!1},qe=Cr,Ze=Kn;if(Dr()||Mr()){var pe=Symbol.iterator;z.exports=function(e){if(e!=null&&typeof e[pe]<"u")return e[pe]();if(qe(e))return Array.prototype[pe].call(e)}}else{var no=Rr,oo=tt,ze=N,io=ze("%Map%",!0),so=ze("%Set%",!0),h=Kr,Ye=h("Array.prototype.push"),Xe=h("String.prototype.charCodeAt"),fo=h("String.prototype.slice"),uo=function(e,a){var t=e.length;if(a+1>=t)return a+1;var n=Xe(e,a);if(n<55296||n>56319)return a+1;var o=Xe(e,a+1);return o<56320||o>57343?a+1:a+2},ve=function(e){var a=0;return{next:function(){var n=a>=e.length,o;return n||(o=e[a],a+=1),{done:n,value:o}}}},Ge=function(e,a){if(no(e)||qe(e))return ve(e);if(oo(e)){var t=0;return{next:function(){var o=uo(e,t),i=fo(e,t,o);return t=o,{done:o>e.length,value:i}}}}if(a&&typeof e["_es6-shim iterator_"]<"u")return e["_es6-shim iterator_"]()};if(!io&&!so)z.exports=function(e){if(e!=null)return Ge(e,!0)};else{var lo=nt,co=it,Ke=h("Map.prototype.forEach",!0),Ve=h("Set.prototype.forEach",!0);if(typeof ue>"u"||!ue.versions||!ue.versions.node)var Qe=h("Map.prototype.iterator",!0),Je=h("Set.prototype.iterator",!0);var er=h("Map.prototype.@@iterator",!0)||h("Map.prototype._es6-shim iterator_",!0),rr=h("Set.prototype.@@iterator",!0)||h("Set.prototype._es6-shim iterator_",!0),po=function(e){if(lo(e)){if(Qe)return Ze(Qe(e));if(er)return er(e);if(Ke){var a=[];return Ke(e,function(n,o){Ye(a,[o,n])}),ve(a)}}if(co(e)){if(Je)return Ze(Je(e));if(rr)return rr(e);if(Ve){var t=[];return Ve(e,function(n){Ye(t,n)}),ve(t)}}};z.exports=function(e){return po(e)||Ge(e)}}}var vo=z.exports,tr=function(r){return r!==r},st=function(e,a){return e===0&&a===0?1/e===1/a:!!(e===a||tr(e)&&tr(a))},yo=st,ft=function(){return typeof Object.is=="function"?Object.is:yo},go=ft,mo=I,ho=function(){var e=go();return mo(Object,{is:e},{is:function(){return Object.is!==e}}),e},bo=I,So=F,wo=st,ut=ft,$o=ho,lt=So(ut(),Object);bo(lt,{getPolyfill:ut,implementation:wo,shim:$o});var Po=lt,Oo=F,ct=w,jo=N,he=jo("%ArrayBuffer%",!0),Y=ct("ArrayBuffer.prototype.byteLength",!0),Bo=ct("Object.prototype.toString"),ar=!!he&&!Y&&new he(0).slice,nr=!!ar&&Oo(ar),pt=Y||nr?function(e){if(!e||typeof e!="object")return!1;try{return Y?Y(e):nr(e,0),!0}catch{return!1}}:he?function(e){return Bo(e)==="[object ArrayBuffer]"}:function(e){return!1},vt=w,_o=vt("Date.prototype.getDay"),Eo=function(e){try{return _o(e),!0}catch{return!1}},Ao=vt("Object.prototype.toString"),Io="[object Date]",Mo=ne(),ko=function(e){return typeof e!="object"||e===null?!1:Mo?Eo(e):Ao(e)===Io},Do=w,or=Do("SharedArrayBuffer.prototype.byteLength",!0),To=or?function(e){if(!e||typeof e!="object")return!1;try{return or(e),!0}catch{return!1}}:function(e){return!1},yt=w,xo=yt("Number.prototype.toString"),Wo=function(e){try{return xo(e),!0}catch{return!1}},Co=yt("Object.prototype.toString"),Ro="[object Number]",Uo=ne(),Lo=function(e){return typeof e=="number"?!0:!e||typeof e!="object"?!1:Uo?Wo(e):Co(e)===Ro},gt=w,No=gt("Boolean.prototype.toString"),Fo=gt("Object.prototype.toString"),Ho=function(e){try{return No(e),!0}catch{return!1}},qo="[object Boolean]",Zo=ne(),zo=function(e){return typeof e=="boolean"?!0:e===null||typeof e!="object"?!1:Zo?Ho(e):Fo(e)===qo},be={exports:{}},mt=w,Yo=mt("Object.prototype.toString"),Xo=Dr(),Go=Ka();if(Xo){var Ko=mt("Symbol.prototype.toString"),Vo=Go(/^Symbol\(.*\)$/),Qo=function(e){return typeof e.valueOf()!="symbol"?!1:Vo(Ko(e))};be.exports=function(e){if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||Yo(e)!=="[object Symbol]")return!1;try{return Qo(e)}catch{return!1}}}else be.exports=function(e){return!1};var Jo=be.exports,Se={exports:{}},ir=typeof BigInt<"u"&&BigInt,ei=function(){return typeof ir=="function"&&typeof BigInt=="function"&&typeof ir(42)=="bigint"&&typeof BigInt(42)=="bigint"},ri=ei();if(ri){var ti=BigInt.prototype.valueOf,ai=function(e){try{return ti.call(e),!0}catch{}return!1};Se.exports=function(e){return e===null||typeof e>"u"||typeof e=="boolean"||typeof e=="string"||typeof e=="number"||typeof e=="symbol"||typeof e=="function"?!1:typeof e=="bigint"?!0:ai(e)}}else Se.exports=function(e){return!1};var ni=Se.exports,oi=tt,ii=Lo,si=zo,fi=Jo,ui=ni,li=function(e){if(e==null||typeof e!="object"&&typeof e!="function")return null;if(oi(e))return"String";if(ii(e))return"Number";if(si(e))return"Boolean";if(fi(e))return"Symbol";if(ui(e))return"BigInt"},V=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,sr=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,Q;V||(Q=function(e){return!1});var we=V?V.prototype.has:null,ye=sr?sr.prototype.has:null;!Q&&!we&&(Q=function(e){return!1});var ci=Q||function(e){if(!e||typeof e!="object")return!1;try{if(we.call(e,we),ye)try{ye.call(e,ye)}catch{return!0}return e instanceof V}catch{}return!1},$e={exports:{}},pi=N,dt=w,vi=pi("%WeakSet%",!0),ge=dt("WeakSet.prototype.has",!0);if(ge){var me=dt("WeakMap.prototype.has",!0);$e.exports=function(e){if(!e||typeof e!="object")return!1;try{if(ge(e,ge),me)try{me(e,me)}catch{return!0}return e instanceof vi}catch{}return!1}}else $e.exports=function(e){return!1};var yi=$e.exports,gi=nt,mi=it,di=ci,hi=yi,bi=function(e){if(e&&typeof e=="object"){if(gi(e))return"Map";if(mi(e))return"Set";if(di(e))return"WeakMap";if(hi(e))return"WeakSet"}return!1},Si=w,fr=Si("ArrayBuffer.prototype.byteLength",!0),wi=pt,$i=function(e){return wi(e)?fr?fr(e):e.byteLength:NaN},ht=wn,$=Kr,ur=zn,Pi=N,D=vo,Oi=kr,lr=Po,cr=Cr,pr=Rr,vr=pt,yr=ko,gr=Va,mr=To,dr=_e,hr=li,br=bi,Sr=Ga,wr=$i,$r=$("SharedArrayBuffer.prototype.byteLength",!0),Pr=$("Date.prototype.getTime"),de=Object.getPrototypeOf,Or=$("Object.prototype.toString"),J=Pi("%Set%",!0),Pe=$("Map.prototype.has",!0),ee=$("Map.prototype.get",!0),jr=$("Map.prototype.size",!0),re=$("Set.prototype.add",!0),bt=$("Set.prototype.delete",!0),te=$("Set.prototype.has",!0),X=$("Set.prototype.size",!0);function Br(r,e,a,t){for(var n=D(r),o;(o=n.next())&&!o.done;)if(b(e,o.value,a,t))return bt(r,o.value),!0;return!1}function St(r){if(typeof r>"u")return null;if(typeof r!="object")return typeof r=="symbol"?!1:typeof r=="string"||typeof r=="number"?+r==+r:!0}function ji(r,e,a,t,n,o){var i=St(a);if(i!=null)return i;var u=ee(e,i),s=ht({},n,{strict:!1});return typeof u>"u"&&!Pe(e,i)||!b(t,u,s,o)?!1:!Pe(r,i)&&b(t,u,s,o)}function Bi(r,e,a){var t=St(a);return t??(te(e,t)&&!te(r,t))}function _r(r,e,a,t,n,o){for(var i=D(r),u,s;(u=i.next())&&!u.done;)if(s=u.value,b(a,s,n,o)&&b(t,ee(e,s),n,o))return bt(r,s),!0;return!1}function b(r,e,a,t){var n=a||{};if(n.strict?lr(r,e):r===e)return!0;var o=hr(r),i=hr(e);if(o!==i)return!1;if(!r||!e||typeof r!="object"&&typeof e!="object")return n.strict?lr(r,e):r==e;var u=t.has(r),s=t.has(e),l;if(u&&s){if(t.get(r)===t.get(e))return!0}else l={};return u||t.set(r,l),s||t.set(e,l),Ai(r,e,n,t)}function Er(r){return!r||typeof r!="object"||typeof r.length!="number"||typeof r.copy!="function"||typeof r.slice!="function"||r.length>0&&typeof r[0]!="number"?!1:!!(r.constructor&&r.constructor.isBuffer&&r.constructor.isBuffer(r))}function _i(r,e,a,t){if(X(r)!==X(e))return!1;for(var n=D(r),o=D(e),i,u,s;(i=n.next())&&!i.done;)if(i.value&&typeof i.value=="object")s||(s=new J),re(s,i.value);else if(!te(e,i.value)){if(a.strict||!Bi(r,e,i.value))return!1;s||(s=new J),re(s,i.value)}if(s){for(;(u=o.next())&&!u.done;)if(u.value&&typeof u.value=="object"){if(!Br(s,u.value,a.strict,t))return!1}else if(!a.strict&&!te(r,u.value)&&!Br(s,u.value,a.strict,t))return!1;return X(s)===0}return!0}function Ei(r,e,a,t){if(jr(r)!==jr(e))return!1;for(var n=D(r),o=D(e),i,u,s,l,y,v;(i=n.next())&&!i.done;)if(l=i.value[0],y=i.value[1],l&&typeof l=="object")s||(s=new J),re(s,l);else if(v=ee(e,l),typeof v>"u"&&!Pe(e,l)||!b(y,v,a,t)){if(a.strict||!ji(r,e,l,y,a,t))return!1;s||(s=new J),re(s,l)}if(s){for(;(u=o.next())&&!u.done;)if(l=u.value[0],v=u.value[1],l&&typeof l=="object"){if(!_r(s,r,l,v,a,t))return!1}else if(!a.strict&&(!r.has(l)||!b(ee(r,l),v,a,t))&&!_r(s,r,l,v,ht({},a,{strict:!1}),t))return!1;return X(s)===0}return!0}function Ai(r,e,a,t){var n,o;if(typeof r!=typeof e||r==null||e==null||Or(r)!==Or(e)||cr(r)!==cr(e))return!1;var i=pr(r),u=pr(e);if(i!==u)return!1;var s=r instanceof Error,l=e instanceof Error;if(s!==l||(s||l)&&(r.name!==e.name||r.message!==e.message))return!1;var y=gr(r),v=gr(e);if(y!==v||(y||v)&&(r.source!==e.source||ur(r)!==ur(e)))return!1;var p=yr(r),c=yr(e);if(p!==c||(p||c)&&Pr(r)!==Pr(e)||a.strict&&de&&de(r)!==de(e))return!1;var B=Sr(r),_=Sr(e);if(B!==_)return!1;if(B||_){if(r.length!==e.length)return!1;for(n=0;n<r.length;n++)if(r[n]!==e[n])return!1;return!0}var E=Er(r),M=Er(e);if(E!==M)return!1;if(E||M){if(r.length!==e.length)return!1;for(n=0;n<r.length;n++)if(r[n]!==e[n])return!1;return!0}var S=vr(r),k=vr(e);if(S!==k)return!1;if(S||k)return wr(r)!==wr(e)?!1:typeof Uint8Array=="function"&&b(new Uint8Array(r),new Uint8Array(e),a,t);var O=mr(r),j=mr(e);if(O!==j)return!1;if(O||j)return $r(r)!==$r(e)?!1:typeof Uint8Array=="function"&&b(new Uint8Array(r),new Uint8Array(e),a,t);if(typeof r!=typeof e)return!1;var m=dr(r),A=dr(e);if(m.length!==A.length)return!1;for(m.sort(),A.sort(),n=m.length-1;n>=0;n--)if(m[n]!=A[n])return!1;for(n=m.length-1;n>=0;n--)if(o=m[n],!b(r[o],e[o],a,t))return!1;var d=br(r),H=br(e);return d!==H?!1:d==="Set"||H==="Set"?_i(r,e,a,t):d==="Map"?Ei(r,e,a,t):!0}var Ii=function(e,a,t){return b(e,a,t,Oi())},oe={};Object.defineProperty(oe,"__esModule",{value:!0});function wt(){let r,e;const a=new Promise((t,n)=>{r=o=>{t(o),a.isPending=!1},e=o=>{n(o),a.isPending=!1}}).catch(t=>Promise.reject(t));return a.resolve=r,a.reject=e,"finally"in a||(a.finally=t=>{a.then(t),a.catch(t)}),a.isPending=!0,a}oe.future=wt;oe.default=wt;function Mi(r){return{all:r=r||new Map,on:function(e,a){var t=r.get(e);t?t.push(a):r.set(e,[a])},off:function(e,a){var t=r.get(e);t&&(a?t.splice(t.indexOf(a)>>>0,1):r.set(e,[]))},emit:function(e,a){var t=r.get(e);t&&t.slice().map(function(n){n(a)}),(t=r.get("*"))&&t.slice().map(function(n){n(e,a)})}}}const ki=Object.freeze(Object.defineProperty({__proto__:null,default:Mi},Symbol.toStringTag,{value:"Module"}));var Me={},ie={},Di=g&&g.__spreadArray||function(r,e,a){if(a||arguments.length===2)for(var t=0,n=e.length,o;t<n;t++)(o||!(t in e))&&(o||(o=Array.prototype.slice.call(e,0,t)),o[t]=e[t]);return r.concat(o||Array.prototype.slice.call(e))};Object.defineProperty(ie,"__esModule",{value:!0});ie.createDebounce=void 0;function Ti(){var r=null;return function(e,a){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];r&&clearTimeout(r),r=setTimeout.apply(void 0,Di([e,a],t,!1))}}ie.createDebounce=Ti;var se={};const xi=za(ki);var $t=g&&g.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(se,"__esModule",{value:!0});se.createController=void 0;var Wi=$t(xi),Ci=$t(oe),ae=Tr,Pt=new Map,Oe=new Map;window.onmessage=function(e){if(e.data&&e.data.type)switch(e.data.type){case ae.PreviewMessageType.CONTROLLER_RESPONSE:{var a=e.data.payload,t=a.id,n=Pt.get(t);n&&(a.ok?n.resolve(a.result):a.ok===!1&&n.reject(new Error(a.error)));break}case ae.PreviewMessageType.EMOTE_EVENT:{var a=e.data.payload,o=a.type,i=a.payload,u=Oe.get(e.source);u&&o&&u.emit(o,i);break}}};var Ar=0;function Ri(r){return function(a,t,n){var o=document.getElementById(r),i=r+"-"+Ar,u=(0,Ci.default)();Pt.set(i,u);var s=ae.PreviewMessageType.CONTROLLER_REQUEST,l={id:i,namespace:a,method:t,params:n};return(0,ae.sendMessage)(o.contentWindow,s,l),Ar++,u}}function Ui(r){var e,a=document.getElementById(r);if(!a)throw new Error('Could not find an iframe with id="'.concat(r,'"'));var t=(e=Oe.get(a.contentWindow))!==null&&e!==void 0?e:(0,Wi.default)();Oe.set(a.contentWindow,t);var n=Ri(r);return{scene:{getScreenshot:function(o,i){return n("scene","getScreenshot",[o,i])},getMetrics:function(){return n("scene","getMetrics",[])},changeZoom:function(o){return n("scene","changeZoom",[o])},panCamera:function(o){return n("scene","panCamera",[o])},changeCameraPosition:function(o){return n("scene","changeCameraPosition",[o])},setUsername:function(o){return n("scene","setUsername",[o])},cleanup:function(){return n("scene","cleanup",[])}},emote:{getLength:function(){return n("emote","getLength",[])},isPlaying:function(){return n("emote","isPlaying",[])},goTo:function(o){return n("emote","goTo",[o])},play:function(){return n("emote","play",[])},pause:function(){return n("emote","pause",[])},stop:function(){return n("emote","stop",[])},enableSound:function(){return n("emote","enableSound",[])},disableSound:function(){return n("emote","disableSound",[])},hasSound:function(){return n("emote","hasSound",[])},isSocialEmote:function(){return n("emote","isSocialEmote",[])},getSocialEmoteAnimations:function(){return n("emote","getSocialEmoteAnimations",[])},getPlayingSocialEmoteAnimation:function(){return n("emote","getPlayingSocialEmoteAnimation",[])},emote:null,events:t}}}se.createController=Ui;var Li=g&&g.__extends||function(){var r=function(e,a){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])},r(e,a)};return function(e,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");r(e,a);function t(){this.constructor=e}e.prototype=a===null?Object.create(a):(t.prototype=a.prototype,new t)}}(),Ni=g&&g.__createBinding||(Object.create?function(r,e,a,t){t===void 0&&(t=a);var n=Object.getOwnPropertyDescriptor(e,a);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(r,t,n)}:function(r,e,a,t){t===void 0&&(t=a),r[t]=e[a]}),Fi=g&&g.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),Hi=g&&g.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var a in r)a!=="default"&&Object.prototype.hasOwnProperty.call(r,a)&&Ni(e,r,a);return Fi(e,r),e},qi=g&&g.__rest||function(r,e){var a={};for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&e.indexOf(t)<0&&(a[t]=r[t]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,t=Object.getOwnPropertySymbols(r);n<t.length;n++)e.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(r,t[n])&&(a[t[n]]=r[t[n]]);return a},Zi=g&&g.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Me,"__esModule",{value:!0});var je=Me.WearablePreview=void 0,Ir=Hi(R),zi=Zi(Ii),C=Tr,Yi=ie,Xi=se,Gi=Ya,Ki=(0,Yi.createDebounce)(),f=function(r,e){return e==null||e===""?"":Array.isArray(e)?e.length>0?e.map(function(a){return"".concat(r,"=").concat(encodeURIComponent(String(a)))}).join("&"):"":"".concat(r,"=").concat(encodeURIComponent(String(e)))},Vi=function(r){Li(e,r);function e(){var a=r!==null&&r.apply(this,arguments)||this;return a.state={isReady:!1,pendingOptions:null,lastOptions:null},a.iframe=null,a.getUrl=function(){var t=a.props,n=t.contractAddress,o=t.tokenId,i=t.itemId,u=t.profile,s=t.urns,l=t.urls,y=t.base64s,v=t.skin,p=t.hair,c=t.eyes,B=t.bodyShape,_=t.emote,E=t.camera,M=t.projection,S=t.zoom,k=t.background,O=t.offsetX,j=t.offsetY,m=t.offsetZ,A=t.cameraX,d=t.cameraY,H=t.cameraZ,Ot=t.wheelZoom,jt=t.wheelPrecision,Bt=t.wheelStart,_t=t.disableBackground,Et=t.disableAutoRotate,At=t.disableAutoCenter,It=t.disableFace,Mt=t.disableDefaultWearables,kt=t.disableDefaultEmotes,Dt=t.disableFadeEffect,Tt=t.showSceneBoundaries,xt=t.showThumbnailBoundaries,Wt=t.panning,Ct=t.lockAlpha,Rt=t.lockBeta,Ut=t.lockRadius,Lt=t.dev,Nt=t.baseUrl,Ft=t.peerUrl,Ht=t.nftServerUrl,fe=t.marketplaceServerUrl,qt=t.type,Zt=t.unity,zt=t.unityMode,Yt=f("contract",n),Xt=f("token",o),Gt=f("item",i),Kt=f("profile",u),Vt=f("urn",s),Qt=f("url",l),Jt=f("base64",y),ea=f("skin",v),ra=f("hair",p),ta=f("eyes",c),aa=f("bodyShape",B),na=f("emote",_),oa=f("camera",E),ia=f("projection",M),sa=f("zoom",S),fa=f("background",k),ua=f("offsetX",O),la=f("offsetY",j),ca=f("offsetZ",m),pa=f("cameraX",A),va=f("cameraY",d),ya=f("cameraZ",H),ga=f("wheelZoom",Ot),ma=f("wheelPrecision",jt),da=f("wheelStart",Bt),ha=f("disableBackground",_t),ba=f("disableAutoRotate",Et),Sa=f("disableAutoCenter",At),wa=f("disableFace",It),$a=f("disableDefaultWearables",Mt),Pa=f("disableDefaultEmotes",kt),Oa=f("disableFadeEffect",Dt),ja=f("showSceneBoundaries",Tt),Ba=f("showThumbnailBoundaries",xt),_a=f("peerUrl",Ft),Ea=fe??Ht,Aa=f("marketplaceServerUrl",Ea),Ia=f("type",qt),Ma=f("panning",Wt),ka=f("lockAlpha",Ct),Da=f("lockBeta",Rt),Ta=f("lockRadius",Ut),xa=f("env",Lt?"dev":void 0),Wa=f("unity",Zt),Ca=f("mode",zt),Ra=Nt+"?"+[Yt,Xt,Gt,Kt,Vt,Qt,Jt,ea,ra,ta,aa,na,oa,ia,sa,fa,ua,la,ca,pa,va,ya,ga,ma,da,ha,ba,Sa,wa,$a,Pa,Oa,ja,Ba,_a,Aa,Ia,Ma,ka,Da,Ta,xa,Wa,Ca].filter(function(Ua){return!!Ua}).join("&");return Ra},a.getOptions=function(){var t=a.props;t.dev;var n=qi(t,["dev"]),o={};for(var i in n)typeof n[i]!="function"&&(o[i]=n[i]);return o},a.handleMessage=function(t){var n=a.props,o=n.baseUrl,i=n.onLoad,u=n.onError,s=t.origin;if(s===o&&t.data&&t.data.type){var l=t.data.type;switch(l){case C.PreviewMessageType.LOAD:{var y=t.data.payload;i(y==null?void 0:y.renderer);break}case C.PreviewMessageType.ERROR:{var y=t.data.payload;u(new Error(y.message));break}case C.PreviewMessageType.READY:{var v=a.state,p=v.isReady,c=v.pendingOptions;if(p)return;c!==null?(a.sendUpdate(c),a.setState({isReady:!0,pendingOptions:null})):a.setState({isReady:!0});break}}}},a.handleUpdate=function(){if(a.iframe){if(window){var t=a.getOptions();a.state.isReady?a.sendUpdate(t):a.setState({pendingPreviewOptions:t})}}else console.warn("Could not send update, iframe is not referenced")},a.sendUpdate=function(t){var n=a.state.lastOptions;if(!n||!(0,zi.default)(t,n)){(0,C.sendMessage)(a.iframe.contentWindow,C.PreviewMessageType.UPDATE,{options:t});var o=a.props.onUpdate;o(t),a.setState({lastOptions:t})}},a.refIframe=function(t){a.iframe=t},a}return e.createController=function(a){return(0,Xi.createController)(a)},e.prototype.componentDidMount=function(){window.addEventListener("message",this.handleMessage,!1),this.setState({url:this.getUrl()}),this.props.blob&&this.handleUpdate()},e.prototype.componentWillUnmount=function(){window.removeEventListener("message",this.handleMessage,!1)},e.prototype.componentDidUpdate=function(){Ki(this.handleUpdate,500)},e.prototype.render=function(){return this.props.tokenId&&this.props.itemId&&console.warn("You should NOT use `tokenId` and `itemId` props simultaneously"),Ir.createElement("iframe",{id:this.props.id,className:"WearablePreview",src:this.state.url,width:"100%",height:"100%",frameBorder:"0",ref:this.refIframe,allow:"autoplay"})},e.defaultProps={dev:!1,baseUrl:Gi.config.get("WEARABLE_PREVIEW_URL"),unity:!1,onLoad:function(){},onError:function(){},onUpdate:function(){}},e}(Ir.PureComponent);je=Me.WearablePreview=Vi;function ts({address:r}){const[e,a]=R.useState(),{profile:t}=Xa(r),n=R.useCallback(()=>{a(je.createController("wearable-preview"))},[]),o=R.useMemo(()=>{const i=[T.PreviewEmote.DAB,T.PreviewEmote.FIST_PUMP,T.PreviewEmote.DANCE,T.PreviewEmote.HEAD_EXPLODE];return i[Math.random()*i.length|0]},[]);return R.useEffect(()=>{const i=setInterval(()=>{e&&e.emote.play()},2e4);return()=>clearInterval(i)},[e]),!r||!t.hasCustomAvatar?null:ke.jsx("div",{className:"UserAvatar__Container",children:ke.jsx(je,{id:"wearable-preview",profile:r,onLoad:n,background:"FFFFFF",emote:o,disableAutoRotate:!0,camera:T.PreviewCamera.STATIC})})}export{ts as default};
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{w as
|
|
1
|
+
import{w as Lr}from"./index-582b123e.js";import{a1 as xr,a2 as Cr,b as H,_ as be,a3 as Ce}from"./index-11bcf729.js";var Be={exports:{}},Me={},xe={},Qe;function Nr(){if(Qe)return xe;Qe=1,xe.byteLength=i,xe.toByteArray=S,xe.fromByteArray=g;for(var T=[],w=[],M=typeof Uint8Array<"u"?Uint8Array:Array,_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",N=0,E=_.length;N<E;++N)T[N]=_[N],w[_.charCodeAt(N)]=N;w["-".charCodeAt(0)]=62,w["_".charCodeAt(0)]=63;function p(m){var b=m.length;if(b%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var F=m.indexOf("=");F===-1&&(F=b);var x=F===b?0:4-F%4;return[F,x]}function i(m){var b=p(m),F=b[0],x=b[1];return(F+x)*3/4-x}function l(m,b,F){return(b+F)*3/4-F}function S(m){var b,F=p(m),x=F[0],u=F[1],y=new M(l(m,x,u)),C=0,L=u>0?x-4:x,I;for(I=0;I<L;I+=4)b=w[m.charCodeAt(I)]<<18|w[m.charCodeAt(I+1)]<<12|w[m.charCodeAt(I+2)]<<6|w[m.charCodeAt(I+3)],y[C++]=b>>16&255,y[C++]=b>>8&255,y[C++]=b&255;return u===2&&(b=w[m.charCodeAt(I)]<<2|w[m.charCodeAt(I+1)]>>4,y[C++]=b&255),u===1&&(b=w[m.charCodeAt(I)]<<10|w[m.charCodeAt(I+1)]<<4|w[m.charCodeAt(I+2)]>>2,y[C++]=b>>8&255,y[C++]=b&255),y}function R(m){return T[m>>18&63]+T[m>>12&63]+T[m>>6&63]+T[m&63]}function h(m,b,F){for(var x,u=[],y=b;y<F;y+=3)x=(m[y]<<16&16711680)+(m[y+1]<<8&65280)+(m[y+2]&255),u.push(R(x));return u.join("")}function g(m){for(var b,F=m.length,x=F%3,u=[],y=16383,C=0,L=F-x;C<L;C+=y)u.push(h(m,C,C+y>L?L:C+y));return x===1?(b=m[F-1],u.push(T[b>>2]+T[b<<4&63]+"==")):x===2&&(b=(m[F-2]<<8)+m[F-1],u.push(T[b>>10]+T[b>>4&63]+T[b<<2&63]+"=")),u.join("")}return xe}var Fe={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var er;function Ur(){return er||(er=1,Fe.read=function(T,w,M,_,N){var E,p,i=N*8-_-1,l=(1<<i)-1,S=l>>1,R=-7,h=M?N-1:0,g=M?-1:1,m=T[w+h];for(h+=g,E=m&(1<<-R)-1,m>>=-R,R+=i;R>0;E=E*256+T[w+h],h+=g,R-=8);for(p=E&(1<<-R)-1,E>>=-R,R+=_;R>0;p=p*256+T[w+h],h+=g,R-=8);if(E===0)E=1-S;else{if(E===l)return p?NaN:(m?-1:1)*(1/0);p=p+Math.pow(2,_),E=E-S}return(m?-1:1)*p*Math.pow(2,E-_)},Fe.write=function(T,w,M,_,N,E){var p,i,l,S=E*8-N-1,R=(1<<S)-1,h=R>>1,g=N===23?Math.pow(2,-24)-Math.pow(2,-77):0,m=_?0:E-1,b=_?1:-1,F=w<0||w===0&&1/w<0?1:0;for(w=Math.abs(w),isNaN(w)||w===1/0?(i=isNaN(w)?1:0,p=R):(p=Math.floor(Math.log(w)/Math.LN2),w*(l=Math.pow(2,-p))<1&&(p--,l*=2),p+h>=1?w+=g/l:w+=g*Math.pow(2,1-h),w*l>=2&&(p++,l/=2),p+h>=R?(i=0,p=R):p+h>=1?(i=(w*l-1)*Math.pow(2,N),p=p+h):(i=w*Math.pow(2,h-1)*Math.pow(2,N),p=0));N>=8;T[M+m]=i&255,m+=b,i/=256,N-=8);for(p=p<<N|i,S+=N;S>0;T[M+m]=p&255,m+=b,p/=256,S-=8);T[M+m-b]|=F*128}),Fe}/*!
|
|
2
2
|
* The buffer module from node.js, for the browser.
|
|
3
3
|
*
|
|
4
4
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
5
5
|
* @license MIT
|
|
6
|
-
*/var rr;function Ie(){return rr||(rr=1,function(T){const w=Or(),M=Dr(),_=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;T.Buffer=i,T.SlowBuffer=y,T.INSPECT_MAX_BYTES=50;const L=2147483647;T.kMaxLength=L,i.TYPED_ARRAY_SUPPORT=E(),!i.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 E(){try{const t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch{return!1}}Object.defineProperty(i.prototype,"parent",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.buffer}}),Object.defineProperty(i.prototype,"offset",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.byteOffset}});function p(t){if(t>L)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,i.prototype),e}function i(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return h(t)}return l(t,e,r)}i.poolSize=8192;function l(t,e,r){if(typeof t=="string")return g(t,e);if(ArrayBuffer.isView(t))return b(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(ee(t,ArrayBuffer)||t&&ee(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ee(t,SharedArrayBuffer)||t&&ee(t.buffer,SharedArrayBuffer)))return F(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return i.from(n,e,r);const f=x(t);if(f)return f;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return i.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}i.from=function(t,e,r){return l(t,e,r)},Object.setPrototypeOf(i.prototype,Uint8Array.prototype),Object.setPrototypeOf(i,Uint8Array);function S(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function R(t,e,r){return S(t),t<=0?p(t):e!==void 0?typeof r=="string"?p(t).fill(e,r):p(t).fill(e):p(t)}i.alloc=function(t,e,r){return R(t,e,r)};function h(t){return S(t),p(t<0?0:u(t)|0)}i.allocUnsafe=function(t){return h(t)},i.allocUnsafeSlow=function(t){return h(t)};function g(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!i.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const r=C(t,e)|0;let n=p(r);const f=n.write(t,e);return f!==r&&(n=n.slice(0,f)),n}function m(t){const e=t.length<0?0:u(t.length)|0,r=p(e);for(let n=0;n<e;n+=1)r[n]=t[n]&255;return r}function b(t){if(ee(t,Uint8Array)){const e=new Uint8Array(t);return F(e.buffer,e.byteOffset,e.byteLength)}return m(t)}function F(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return e===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,e):n=new Uint8Array(t,e,r),Object.setPrototypeOf(n,i.prototype),n}function x(t){if(i.isBuffer(t)){const e=u(t.length)|0,r=p(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||le(t.length)?p(0):m(t);if(t.type==="Buffer"&&Array.isArray(t.data))return m(t.data)}function u(t){if(t>=L)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+L.toString(16)+" bytes");return t|0}function y(t){return+t!=t&&(t=0),i.alloc(+t)}i.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==i.prototype},i.compare=function(e,r){if(ee(e,Uint8Array)&&(e=i.from(e,e.offset,e.byteLength)),ee(r,Uint8Array)&&(r=i.from(r,r.offset,r.byteLength)),!i.isBuffer(e)||!i.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;let n=e.length,f=r.length;for(let c=0,v=Math.min(n,f);c<v;++c)if(e[c]!==r[c]){n=e[c],f=r[c];break}return n<f?-1:f<n?1:0},i.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},i.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return i.alloc(0);let n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;const f=i.allocUnsafe(r);let c=0;for(n=0;n<e.length;++n){let v=e[n];if(ee(v,Uint8Array))c+v.length>f.length?(i.isBuffer(v)||(v=i.from(v)),v.copy(f,c)):Uint8Array.prototype.set.call(f,v,c);else if(i.isBuffer(v))v.copy(f,c);else throw new TypeError('"list" argument must be an Array of Buffers');c+=v.length}return f};function C(t,e){if(i.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||ee(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;let f=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return $(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return ve(t).length;default:if(f)return n?-1:$(t).length;e=(""+e).toLowerCase(),f=!0}}i.byteLength=C;function N(t,e,r){let n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return oe(this,e,r);case"utf8":case"utf-8":return he(this,e,r);case"ascii":return ne(this,e,r);case"latin1":case"binary":return ce(this,e,r);case"base64":return ie(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return de(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}i.prototype._isBuffer=!0;function I(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}i.prototype.swap16=function(){const e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;r<e;r+=2)I(this,r,r+1);return this},i.prototype.swap32=function(){const e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let r=0;r<e;r+=4)I(this,r,r+3),I(this,r+1,r+2);return this},i.prototype.swap64=function(){const e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let r=0;r<e;r+=8)I(this,r,r+7),I(this,r+1,r+6),I(this,r+2,r+5),I(this,r+3,r+4);return this},i.prototype.toString=function(){const e=this.length;return e===0?"":arguments.length===0?he(this,0,e):N.apply(this,arguments)},i.prototype.toLocaleString=i.prototype.toString,i.prototype.equals=function(e){if(!i.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:i.compare(this,e)===0},i.prototype.inspect=function(){let e="";const r=T.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},_&&(i.prototype[_]=i.prototype.inspect),i.prototype.compare=function(e,r,n,f,c){if(ee(e,Uint8Array)&&(e=i.from(e,e.offset,e.byteLength)),!i.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),f===void 0&&(f=0),c===void 0&&(c=this.length),r<0||n>e.length||f<0||c>this.length)throw new RangeError("out of range index");if(f>=c&&r>=n)return 0;if(f>=c)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,f>>>=0,c>>>=0,this===e)return 0;let v=c-f,W=n-r;const z=Math.min(v,W),K=this.slice(f,c),X=e.slice(r,n);for(let V=0;V<z;++V)if(K[V]!==X[V]){v=K[V],W=X[V];break}return v<W?-1:W<v?1:0};function D(t,e,r,n,f){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,le(r)&&(r=f?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(f)return-1;r=t.length-1}else if(r<0)if(f)r=0;else return-1;if(typeof e=="string"&&(e=i.from(e,n)),i.isBuffer(e))return e.length===0?-1:G(t,e,r,n,f);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?f?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):G(t,[e],r,n,f);throw new TypeError("val must be string, number or Buffer")}function G(t,e,r,n,f){let c=1,v=t.length,W=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;c=2,v/=2,W/=2,r/=2}function z(X,V){return c===1?X[V]:X.readUInt16BE(V*c)}let K;if(f){let X=-1;for(K=r;K<v;K++)if(z(t,K)===z(e,X===-1?0:K-X)){if(X===-1&&(X=K),K-X+1===W)return X*c}else X!==-1&&(K-=K-X),X=-1}else for(r+W>v&&(r=v-W),K=r;K>=0;K--){let X=!0;for(let V=0;V<W;V++)if(z(t,K+V)!==z(e,V)){X=!1;break}if(X)return K}return-1}i.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1},i.prototype.indexOf=function(e,r,n){return D(this,e,r,n,!0)},i.prototype.lastIndexOf=function(e,r,n){return D(this,e,r,n,!1)};function k(t,e,r,n){r=Number(r)||0;const f=t.length-r;n?(n=Number(n),n>f&&(n=f)):n=f;const c=e.length;n>c/2&&(n=c/2);let v;for(v=0;v<n;++v){const W=parseInt(e.substr(v*2,2),16);if(le(W))return v;t[r+v]=W}return v}function P(t,e,r,n){return we($(e,t.length-r),t,r,n)}function Q(t,e,r,n){return we(ae(e),t,r,n)}function ue(t,e,r,n){return we(ve(e),t,r,n)}function me(t,e,r,n){return we(ge(e,t.length-r),t,r,n)}i.prototype.write=function(e,r,n,f){if(r===void 0)f="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")f=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,f===void 0&&(f="utf8")):(f=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const c=this.length-r;if((n===void 0||n>c)&&(n=c),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");f||(f="utf8");let v=!1;for(;;)switch(f){case"hex":return k(this,e,r,n);case"utf8":case"utf-8":return P(this,e,r,n);case"ascii":case"latin1":case"binary":return Q(this,e,r,n);case"base64":return ue(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return me(this,e,r,n);default:if(v)throw new TypeError("Unknown encoding: "+f);f=(""+f).toLowerCase(),v=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ie(t,e,r){return e===0&&r===t.length?w.fromByteArray(t):w.fromByteArray(t.slice(e,r))}function he(t,e,r){r=Math.min(t.length,r);const n=[];let f=e;for(;f<r;){const c=t[f];let v=null,W=c>239?4:c>223?3:c>191?2:1;if(f+W<=r){let z,K,X,V;switch(W){case 1:c<128&&(v=c);break;case 2:z=t[f+1],(z&192)===128&&(V=(c&31)<<6|z&63,V>127&&(v=V));break;case 3:z=t[f+1],K=t[f+2],(z&192)===128&&(K&192)===128&&(V=(c&15)<<12|(z&63)<<6|K&63,V>2047&&(V<55296||V>57343)&&(v=V));break;case 4:z=t[f+1],K=t[f+2],X=t[f+3],(z&192)===128&&(K&192)===128&&(X&192)===128&&(V=(c&15)<<18|(z&63)<<12|(K&63)<<6|X&63,V>65535&&V<1114112&&(v=V))}}v===null?(v=65533,W=1):v>65535&&(v-=65536,n.push(v>>>10&1023|55296),v=56320|v&1023),n.push(v),f+=W}return Re(n)}const fe=4096;function Re(t){const e=t.length;if(e<=fe)return String.fromCharCode.apply(String,t);let r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=fe));return r}function ne(t,e,r){let n="";r=Math.min(t.length,r);for(let f=e;f<r;++f)n+=String.fromCharCode(t[f]&127);return n}function ce(t,e,r){let n="";r=Math.min(t.length,r);for(let f=e;f<r;++f)n+=String.fromCharCode(t[f]);return n}function oe(t,e,r){const n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);let f="";for(let c=e;c<r;++c)f+=Se[t[c]];return f}function de(t,e,r){const n=t.slice(e,r);let f="";for(let c=0;c<n.length-1;c+=2)f+=String.fromCharCode(n[c]+n[c+1]*256);return f}i.prototype.slice=function(e,r){const n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);const f=this.subarray(e,r);return Object.setPrototypeOf(f,i.prototype),f};function J(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}i.prototype.readUintLE=i.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||J(e,r,this.length);let f=this[e],c=1,v=0;for(;++v<r&&(c*=256);)f+=this[e+v]*c;return f},i.prototype.readUintBE=i.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||J(e,r,this.length);let f=this[e+--r],c=1;for(;r>0&&(c*=256);)f+=this[e+--r]*c;return f},i.prototype.readUint8=i.prototype.readUInt8=function(e,r){return e=e>>>0,r||J(e,1,this.length),this[e]},i.prototype.readUint16LE=i.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||J(e,2,this.length),this[e]|this[e+1]<<8},i.prototype.readUint16BE=i.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||J(e,2,this.length),this[e]<<8|this[e+1]},i.prototype.readUint32LE=i.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||J(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},i.prototype.readUint32BE=i.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||J(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},i.prototype.readBigUInt64LE=re(function(e){e=e>>>0,B(e,"offset");const r=this[e],n=this[e+7];(r===void 0||n===void 0)&&U(e,this.length-8);const f=r+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,c=this[++e]+this[++e]*2**8+this[++e]*2**16+n*2**24;return BigInt(f)+(BigInt(c)<<BigInt(32))}),i.prototype.readBigUInt64BE=re(function(e){e=e>>>0,B(e,"offset");const r=this[e],n=this[e+7];(r===void 0||n===void 0)&&U(e,this.length-8);const f=r*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],c=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n;return(BigInt(f)<<BigInt(32))+BigInt(c)}),i.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||J(e,r,this.length);let f=this[e],c=1,v=0;for(;++v<r&&(c*=256);)f+=this[e+v]*c;return c*=128,f>=c&&(f-=Math.pow(2,8*r)),f},i.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||J(e,r,this.length);let f=r,c=1,v=this[e+--f];for(;f>0&&(c*=256);)v+=this[e+--f]*c;return c*=128,v>=c&&(v-=Math.pow(2,8*r)),v},i.prototype.readInt8=function(e,r){return e=e>>>0,r||J(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},i.prototype.readInt16LE=function(e,r){e=e>>>0,r||J(e,2,this.length);const n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n},i.prototype.readInt16BE=function(e,r){e=e>>>0,r||J(e,2,this.length);const n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n},i.prototype.readInt32LE=function(e,r){return e=e>>>0,r||J(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},i.prototype.readInt32BE=function(e,r){return e=e>>>0,r||J(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},i.prototype.readBigInt64LE=re(function(e){e=e>>>0,B(e,"offset");const r=this[e],n=this[e+7];(r===void 0||n===void 0)&&U(e,this.length-8);const f=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(n<<24);return(BigInt(f)<<BigInt(32))+BigInt(r+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)}),i.prototype.readBigInt64BE=re(function(e){e=e>>>0,B(e,"offset");const r=this[e],n=this[e+7];(r===void 0||n===void 0)&&U(e,this.length-8);const f=(r<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(f)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n)}),i.prototype.readFloatLE=function(e,r){return e=e>>>0,r||J(e,4,this.length),M.read(this,e,!0,23,4)},i.prototype.readFloatBE=function(e,r){return e=e>>>0,r||J(e,4,this.length),M.read(this,e,!1,23,4)},i.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||J(e,8,this.length),M.read(this,e,!0,52,8)},i.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||J(e,8,this.length),M.read(this,e,!1,52,8)};function Z(t,e,r,n,f,c){if(!i.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>f||e<c)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}i.prototype.writeUintLE=i.prototype.writeUIntLE=function(e,r,n,f){if(e=+e,r=r>>>0,n=n>>>0,!f){const W=Math.pow(2,8*n)-1;Z(this,e,r,n,W,0)}let c=1,v=0;for(this[r]=e&255;++v<n&&(c*=256);)this[r+v]=e/c&255;return r+n},i.prototype.writeUintBE=i.prototype.writeUIntBE=function(e,r,n,f){if(e=+e,r=r>>>0,n=n>>>0,!f){const W=Math.pow(2,8*n)-1;Z(this,e,r,n,W,0)}let c=n-1,v=1;for(this[r+c]=e&255;--c>=0&&(v*=256);)this[r+c]=e/v&255;return r+n},i.prototype.writeUint8=i.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||Z(this,e,r,1,255,0),this[r]=e&255,r+1},i.prototype.writeUint16LE=i.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||Z(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2},i.prototype.writeUint16BE=i.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||Z(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2},i.prototype.writeUint32LE=i.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||Z(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4},i.prototype.writeUint32BE=i.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||Z(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function te(t,e,r,n,f){a(e,n,f,t,r,7);let c=Number(e&BigInt(4294967295));t[r++]=c,c=c>>8,t[r++]=c,c=c>>8,t[r++]=c,c=c>>8,t[r++]=c;let v=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=v,v=v>>8,t[r++]=v,v=v>>8,t[r++]=v,v=v>>8,t[r++]=v,r}function pe(t,e,r,n,f){a(e,n,f,t,r,7);let c=Number(e&BigInt(4294967295));t[r+7]=c,c=c>>8,t[r+6]=c,c=c>>8,t[r+5]=c,c=c>>8,t[r+4]=c;let v=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=v,v=v>>8,t[r+2]=v,v=v>>8,t[r+1]=v,v=v>>8,t[r]=v,r+8}i.prototype.writeBigUInt64LE=re(function(e,r=0){return te(this,e,r,BigInt(0),BigInt("0xffffffffffffffff"))}),i.prototype.writeBigUInt64BE=re(function(e,r=0){return pe(this,e,r,BigInt(0),BigInt("0xffffffffffffffff"))}),i.prototype.writeIntLE=function(e,r,n,f){if(e=+e,r=r>>>0,!f){const z=Math.pow(2,8*n-1);Z(this,e,r,n,z-1,-z)}let c=0,v=1,W=0;for(this[r]=e&255;++c<n&&(v*=256);)e<0&&W===0&&this[r+c-1]!==0&&(W=1),this[r+c]=(e/v>>0)-W&255;return r+n},i.prototype.writeIntBE=function(e,r,n,f){if(e=+e,r=r>>>0,!f){const z=Math.pow(2,8*n-1);Z(this,e,r,n,z-1,-z)}let c=n-1,v=1,W=0;for(this[r+c]=e&255;--c>=0&&(v*=256);)e<0&&W===0&&this[r+c+1]!==0&&(W=1),this[r+c]=(e/v>>0)-W&255;return r+n},i.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||Z(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1},i.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||Z(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2},i.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||Z(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2},i.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||Z(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4},i.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||Z(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4},i.prototype.writeBigInt64LE=re(function(e,r=0){return te(this,e,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),i.prototype.writeBigInt64BE=re(function(e,r=0){return pe(this,e,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ye(t,e,r,n,f,c){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function d(t,e,r,n,f){return e=+e,r=r>>>0,f||ye(t,e,r,4),M.write(t,e,r,n,23,4),r+4}i.prototype.writeFloatLE=function(e,r,n){return d(this,e,r,!0,n)},i.prototype.writeFloatBE=function(e,r,n){return d(this,e,r,!1,n)};function s(t,e,r,n,f){return e=+e,r=r>>>0,f||ye(t,e,r,8),M.write(t,e,r,n,52,8),r+8}i.prototype.writeDoubleLE=function(e,r,n){return s(this,e,r,!0,n)},i.prototype.writeDoubleBE=function(e,r,n){return s(this,e,r,!1,n)},i.prototype.copy=function(e,r,n,f){if(!i.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!f&&f!==0&&(f=this.length),r>=e.length&&(r=e.length),r||(r=0),f>0&&f<n&&(f=n),f===n||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(f<0)throw new RangeError("sourceEnd out of bounds");f>this.length&&(f=this.length),e.length-r<f-n&&(f=e.length-r+n);const c=f-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,f):Uint8Array.prototype.set.call(e,this.subarray(n,f),r),c},i.prototype.fill=function(e,r,n,f){if(typeof e=="string"){if(typeof r=="string"?(f=r,r=0,n=this.length):typeof n=="string"&&(f=n,n=this.length),f!==void 0&&typeof f!="string")throw new TypeError("encoding must be a string");if(typeof f=="string"&&!i.isEncoding(f))throw new TypeError("Unknown encoding: "+f);if(e.length===1){const v=e.charCodeAt(0);(f==="utf8"&&v<128||f==="latin1")&&(e=v)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);let c;if(typeof e=="number")for(c=r;c<n;++c)this[c]=e;else{const v=i.isBuffer(e)?e:i.from(e,f),W=v.length;if(W===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(c=0;c<n-r;++c)this[c+r]=v[c%W]}return this};const A={};function O(t,e,r){A[t]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(f){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:f,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}O("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),O("ERR_INVALID_ARG_TYPE",function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`},TypeError),O("ERR_OUT_OF_RANGE",function(t,e,r){let n=`The value of "${t}" is out of range.`,f=r;return Number.isInteger(r)&&Math.abs(r)>2**32?f=q(String(r)):typeof r=="bigint"&&(f=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(f=q(f)),f+="n"),n+=` It must be ${e}. Received ${f}`,n},RangeError);function q(t){let e="",r=t.length;const n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function o(t,e,r){B(e,"offset"),(t[e]===void 0||t[e+r]===void 0)&&U(e,t.length-(r+1))}function a(t,e,r,n,f,c){if(t>r||t<e){const v=typeof e=="bigint"?"n":"";let W;throw c>3?e===0||e===BigInt(0)?W=`>= 0${v} and < 2${v} ** ${(c+1)*8}${v}`:W=`>= -(2${v} ** ${(c+1)*8-1}${v}) and < 2 ** ${(c+1)*8-1}${v}`:W=`>= ${e}${v} and <= ${r}${v}`,new A.ERR_OUT_OF_RANGE("value",W,t)}o(n,f,c)}function B(t,e){if(typeof t!="number")throw new A.ERR_INVALID_ARG_TYPE(e,"number",t)}function U(t,e,r){throw Math.floor(t)!==t?(B(t,r),new A.ERR_OUT_OF_RANGE(r||"offset","an integer",t)):e<0?new A.ERR_BUFFER_OUT_OF_BOUNDS:new A.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${e}`,t)}const Y=/[^+/0-9A-Za-z-_]/g;function j(t){if(t=t.split("=")[0],t=t.trim().replace(Y,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function $(t,e){e=e||1/0;let r;const n=t.length;let f=null;const c=[];for(let v=0;v<n;++v){if(r=t.charCodeAt(v),r>55295&&r<57344){if(!f){if(r>56319){(e-=3)>-1&&c.push(239,191,189);continue}else if(v+1===n){(e-=3)>-1&&c.push(239,191,189);continue}f=r;continue}if(r<56320){(e-=3)>-1&&c.push(239,191,189),f=r;continue}r=(f-55296<<10|r-56320)+65536}else f&&(e-=3)>-1&&c.push(239,191,189);if(f=null,r<128){if((e-=1)<0)break;c.push(r)}else if(r<2048){if((e-=2)<0)break;c.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;c.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;c.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return c}function ae(t){const e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function ge(t,e){let r,n,f;const c=[];for(let v=0;v<t.length&&!((e-=2)<0);++v)r=t.charCodeAt(v),n=r>>8,f=r%256,c.push(f),c.push(n);return c}function ve(t){return w.toByteArray(j(t))}function we(t,e,r,n){let f;for(f=0;f<n&&!(f+r>=e.length||f>=t.length);++f)e[f+r]=t[f];return f}function ee(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function le(t){return t!==t}const Se=function(){const t="0123456789abcdef",e=new Array(256);for(let r=0;r<16;++r){const n=r*16;for(let f=0;f<16;++f)e[n+f]=t[r]+t[f]}return e}();function re(t){return typeof BigInt>"u"?se:t}function se(){throw new Error("BigInt not supported")}}(Me)),Me}/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var tr;function Pr(){return tr||(tr=1,function(T,w){var M=Ie(),_=M.Buffer;function L(p,i){for(var l in p)i[l]=p[l]}_.from&&_.alloc&&_.allocUnsafe&&_.allocUnsafeSlow?T.exports=M:(L(M,w),w.Buffer=E);function E(p,i,l){return _(p,i,l)}E.prototype=Object.create(_.prototype),L(_,E),E.from=function(p,i,l){if(typeof p=="number")throw new TypeError("Argument must not be a number");return _(p,i,l)},E.alloc=function(p,i,l){if(typeof p!="number")throw new TypeError("Argument must be a number");var S=_(p);return i!==void 0?typeof l=="string"?S.fill(i,l):S.fill(i):S.fill(0),S},E.allocUnsafe=function(p){if(typeof p!="number")throw new TypeError("Argument must be a number");return _(p)},E.allocUnsafeSlow=function(p){if(typeof p!="number")throw new TypeError("Argument must be a number");return M.SlowBuffer(p)}}(Be,Be.exports)),Be.exports}var Ne,nr;function Jr(){if(nr)return Ne;nr=1;var T=Nr;return Ne=function(M){return!!T(M)},Ne}var Ae={exports:{}},Le,ir;function Br(){return ir||(ir=1,Le=xr.EventEmitter),Le}var Ue,or;function kr(){if(or)return Ue;or=1;function T(b,F){var x=Object.keys(b);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(b);F&&(u=u.filter(function(y){return Object.getOwnPropertyDescriptor(b,y).enumerable})),x.push.apply(x,u)}return x}function w(b){for(var F=1;F<arguments.length;F++){var x=arguments[F]!=null?arguments[F]:{};F%2?T(Object(x),!0).forEach(function(u){M(b,u,x[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(b,Object.getOwnPropertyDescriptors(x)):T(Object(x)).forEach(function(u){Object.defineProperty(b,u,Object.getOwnPropertyDescriptor(x,u))})}return b}function M(b,F,x){return F=p(F),F in b?Object.defineProperty(b,F,{value:x,enumerable:!0,configurable:!0,writable:!0}):b[F]=x,b}function _(b,F){if(!(b instanceof F))throw new TypeError("Cannot call a class as a function")}function L(b,F){for(var x=0;x<F.length;x++){var u=F[x];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(b,p(u.key),u)}}function E(b,F,x){return F&&L(b.prototype,F),x&&L(b,x),Object.defineProperty(b,"prototype",{writable:!1}),b}function p(b){var F=i(b,"string");return typeof F=="symbol"?F:String(F)}function i(b,F){if(typeof b!="object"||b===null)return b;var x=b[Symbol.toPrimitive];if(x!==void 0){var u=x.call(b,F||"default");if(typeof u!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(F==="string"?String:Number)(b)}var l=Ie(),S=l.Buffer,R=Cr,h=R.inspect,g=h&&h.custom||"inspect";function m(b,F,x){S.prototype.copy.call(b,F,x)}return Ue=function(){function b(){_(this,b),this.head=null,this.tail=null,this.length=0}return E(b,[{key:"push",value:function(x){var u={data:x,next:null};this.length>0?this.tail.next=u:this.head=u,this.tail=u,++this.length}},{key:"unshift",value:function(x){var u={data:x,next:this.head};this.length===0&&(this.tail=u),this.head=u,++this.length}},{key:"shift",value:function(){if(this.length!==0){var x=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,x}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(x){if(this.length===0)return"";for(var u=this.head,y=""+u.data;u=u.next;)y+=x+u.data;return y}},{key:"concat",value:function(x){if(this.length===0)return S.alloc(0);for(var u=S.allocUnsafe(x>>>0),y=this.head,C=0;y;)m(y.data,u,C),C+=y.data.length,y=y.next;return u}},{key:"consume",value:function(x,u){var y;return x<this.head.data.length?(y=this.head.data.slice(0,x),this.head.data=this.head.data.slice(x)):x===this.head.data.length?y=this.shift():y=u?this._getString(x):this._getBuffer(x),y}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(x){var u=this.head,y=1,C=u.data;for(x-=C.length;u=u.next;){var N=u.data,I=x>N.length?N.length:x;if(I===N.length?C+=N:C+=N.slice(0,x),x-=I,x===0){I===N.length?(++y,u.next?this.head=u.next:this.head=this.tail=null):(this.head=u,u.data=N.slice(I));break}++y}return this.length-=y,C}},{key:"_getBuffer",value:function(x){var u=S.allocUnsafe(x),y=this.head,C=1;for(y.data.copy(u),x-=y.data.length;y=y.next;){var N=y.data,I=x>N.length?N.length:x;if(N.copy(u,u.length-x,0,I),x-=I,x===0){I===N.length?(++C,y.next?this.head=y.next:this.head=this.tail=null):(this.head=y,y.data=N.slice(I));break}++C}return this.length-=C,u}},{key:g,value:function(x,u){return h(this,w(w({},u),{},{depth:0,customInspect:!1}))}}]),b}(),Ue}var Oe,ar;function Fr(){if(ar)return Oe;ar=1;function T(p,i){var l=this,S=this._readableState&&this._readableState.destroyed,R=this._writableState&&this._writableState.destroyed;return S||R?(i?i(p):p&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,H.nextTick(L,this,p)):H.nextTick(L,this,p)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(p||null,function(h){!i&&h?l._writableState?l._writableState.errorEmitted?H.nextTick(M,l):(l._writableState.errorEmitted=!0,H.nextTick(w,l,h)):H.nextTick(w,l,h):i?(H.nextTick(M,l),i(h)):H.nextTick(M,l)}),this)}function w(p,i){L(p,i),M(p)}function M(p){p._writableState&&!p._writableState.emitClose||p._readableState&&!p._readableState.emitClose||p.emit("close")}function _(){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 L(p,i){p.emit("error",i)}function E(p,i){var l=p._readableState,S=p._writableState;l&&l.autoDestroy||S&&S.autoDestroy?p.destroy(i):p.emit("error",i)}return Oe={destroy:T,undestroy:_,errorOrDestroy:E},Oe}var De={},ur;function Ee(){if(ur)return De;ur=1;function T(i,l){i.prototype=Object.create(l.prototype),i.prototype.constructor=i,i.__proto__=l}var w={};function M(i,l,S){S||(S=Error);function R(g,m,b){return typeof l=="string"?l:l(g,m,b)}var h=function(g){T(m,g);function m(b,F,x){return g.call(this,R(b,F,x))||this}return m}(S);h.prototype.name=S.name,h.prototype.code=i,w[i]=h}function _(i,l){if(Array.isArray(i)){var S=i.length;return i=i.map(function(R){return String(R)}),S>2?"one of ".concat(l," ").concat(i.slice(0,S-1).join(", "),", or ")+i[S-1]:S===2?"one of ".concat(l," ").concat(i[0]," or ").concat(i[1]):"of ".concat(l," ").concat(i[0])}else return"of ".concat(l," ").concat(String(i))}function L(i,l,S){return i.substr(!S||S<0?0:+S,l.length)===l}function E(i,l,S){return(S===void 0||S>i.length)&&(S=i.length),i.substring(S-l.length,S)===l}function p(i,l,S){return typeof S!="number"&&(S=0),S+l.length>i.length?!1:i.indexOf(l,S)!==-1}return M("ERR_INVALID_OPT_VALUE",function(i,l){return'The value "'+l+'" is invalid for option "'+i+'"'},TypeError),M("ERR_INVALID_ARG_TYPE",function(i,l,S){var R;typeof l=="string"&&L(l,"not ")?(R="must not be",l=l.replace(/^not /,"")):R="must be";var h;if(E(i," argument"))h="The ".concat(i," ").concat(R," ").concat(_(l,"type"));else{var g=p(i,".")?"property":"argument";h='The "'.concat(i,'" ').concat(g," ").concat(R," ").concat(_(l,"type"))}return h+=". Received type ".concat(typeof S),h},TypeError),M("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),M("ERR_METHOD_NOT_IMPLEMENTED",function(i){return"The "+i+" method is not implemented"}),M("ERR_STREAM_PREMATURE_CLOSE","Premature close"),M("ERR_STREAM_DESTROYED",function(i){return"Cannot call "+i+" after a stream was destroyed"}),M("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),M("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),M("ERR_STREAM_WRITE_AFTER_END","write after end"),M("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),M("ERR_UNKNOWN_ENCODING",function(i){return"Unknown encoding: "+i},TypeError),M("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),De.codes=w,De}var Pe,fr;function Ar(){if(fr)return Pe;fr=1;var T=Ee().codes.ERR_INVALID_OPT_VALUE;function w(_,L,E){return _.highWaterMark!=null?_.highWaterMark:L?_[E]:null}function M(_,L,E,p){var i=w(L,p,E);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var l=p?E:"highWaterMark";throw new T(l,i)}return Math.floor(i)}return _.objectMode?16:16*1024}return Pe={getHighWaterMark:M},Pe}var ke,lr;function qr(){if(lr)return ke;lr=1,ke=T;function T(M,_){if(w("noDeprecation"))return M;var L=!1;function E(){if(!L){if(w("throwDeprecation"))throw new Error(_);w("traceDeprecation")?console.trace(_):console.warn(_),L=!0}return M.apply(this,arguments)}return E}function w(M){try{if(!be.localStorage)return!1}catch{return!1}var _=be.localStorage[M];return _==null?!1:String(_).toLowerCase()==="true"}return ke}var qe,sr;function Tr(){if(sr)return qe;sr=1,qe=k;function T(d){var s=this;this.next=null,this.entry=null,this.finish=function(){ye(s,d)}}var w;k.WritableState=D;var M={deprecate:qr()},_=Br(),L=Ie().Buffer,E=(typeof be<"u"?be:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function p(d){return L.from(d)}function i(d){return L.isBuffer(d)||d instanceof E}var l=Fr(),S=Ar(),R=S.getHighWaterMark,h=Ee().codes,g=h.ERR_INVALID_ARG_TYPE,m=h.ERR_METHOD_NOT_IMPLEMENTED,b=h.ERR_MULTIPLE_CALLBACK,F=h.ERR_STREAM_CANNOT_PIPE,x=h.ERR_STREAM_DESTROYED,u=h.ERR_STREAM_NULL_VALUES,y=h.ERR_STREAM_WRITE_AFTER_END,C=h.ERR_UNKNOWN_ENCODING,N=l.errorOrDestroy;Ce(k,_);function I(){}function D(d,s,A){w=w||_e(),d=d||{},typeof A!="boolean"&&(A=s instanceof w),this.objectMode=!!d.objectMode,A&&(this.objectMode=this.objectMode||!!d.writableObjectMode),this.highWaterMark=R(this,d,"writableHighWaterMark",A),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var O=d.decodeStrings===!1;this.decodeStrings=!O,this.defaultEncoding=d.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(q){Re(s,q)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=d.emitClose!==!1,this.autoDestroy=!!d.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new T(this)}D.prototype.getBuffer=function(){for(var s=this.bufferedRequest,A=[];s;)A.push(s),s=s.next;return A},function(){try{Object.defineProperty(D.prototype,"buffer",{get:M.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var G;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(G=Function.prototype[Symbol.hasInstance],Object.defineProperty(k,Symbol.hasInstance,{value:function(s){return G.call(this,s)?!0:this!==k?!1:s&&s._writableState instanceof D}})):G=function(s){return s instanceof this};function k(d){w=w||_e();var s=this instanceof w;if(!s&&!G.call(k,this))return new k(d);this._writableState=new D(d,this,s),this.writable=!0,d&&(typeof d.write=="function"&&(this._write=d.write),typeof d.writev=="function"&&(this._writev=d.writev),typeof d.destroy=="function"&&(this._destroy=d.destroy),typeof d.final=="function"&&(this._final=d.final)),_.call(this)}k.prototype.pipe=function(){N(this,new F)};function P(d,s){var A=new y;N(d,A),H.nextTick(s,A)}function Q(d,s,A,O){var q;return A===null?q=new u:typeof A!="string"&&!s.objectMode&&(q=new g("chunk",["string","Buffer"],A)),q?(N(d,q),H.nextTick(O,q),!1):!0}k.prototype.write=function(d,s,A){var O=this._writableState,q=!1,o=!O.objectMode&&i(d);return o&&!L.isBuffer(d)&&(d=p(d)),typeof s=="function"&&(A=s,s=null),o?s="buffer":s||(s=O.defaultEncoding),typeof A!="function"&&(A=I),O.ending?P(this,A):(o||Q(this,O,d,A))&&(O.pendingcb++,q=me(this,O,o,d,s,A)),q},k.prototype.cork=function(){this._writableState.corked++},k.prototype.uncork=function(){var d=this._writableState;d.corked&&(d.corked--,!d.writing&&!d.corked&&!d.bufferProcessing&&d.bufferedRequest&&oe(this,d))},k.prototype.setDefaultEncoding=function(s){if(typeof s=="string"&&(s=s.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((s+"").toLowerCase())>-1))throw new C(s);return this._writableState.defaultEncoding=s,this},Object.defineProperty(k.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function ue(d,s,A){return!d.objectMode&&d.decodeStrings!==!1&&typeof s=="string"&&(s=L.from(s,A)),s}Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function me(d,s,A,O,q,o){if(!A){var a=ue(s,O,q);O!==a&&(A=!0,q="buffer",O=a)}var B=s.objectMode?1:O.length;s.length+=B;var U=s.length<s.highWaterMark;if(U||(s.needDrain=!0),s.writing||s.corked){var Y=s.lastBufferedRequest;s.lastBufferedRequest={chunk:O,encoding:q,isBuf:A,callback:o,next:null},Y?Y.next=s.lastBufferedRequest:s.bufferedRequest=s.lastBufferedRequest,s.bufferedRequestCount+=1}else ie(d,s,!1,B,O,q,o);return U}function ie(d,s,A,O,q,o,a){s.writelen=O,s.writecb=a,s.writing=!0,s.sync=!0,s.destroyed?s.onwrite(new x("write")):A?d._writev(q,s.onwrite):d._write(q,o,s.onwrite),s.sync=!1}function he(d,s,A,O,q){--s.pendingcb,A?(H.nextTick(q,O),H.nextTick(te,d,s),d._writableState.errorEmitted=!0,N(d,O)):(q(O),d._writableState.errorEmitted=!0,N(d,O),te(d,s))}function fe(d){d.writing=!1,d.writecb=null,d.length-=d.writelen,d.writelen=0}function Re(d,s){var A=d._writableState,O=A.sync,q=A.writecb;if(typeof q!="function")throw new b;if(fe(A),s)he(d,A,O,s,q);else{var o=de(A)||d.destroyed;!o&&!A.corked&&!A.bufferProcessing&&A.bufferedRequest&&oe(d,A),O?H.nextTick(ne,d,A,o,q):ne(d,A,o,q)}}function ne(d,s,A,O){A||ce(d,s),s.pendingcb--,O(),te(d,s)}function ce(d,s){s.length===0&&s.needDrain&&(s.needDrain=!1,d.emit("drain"))}function oe(d,s){s.bufferProcessing=!0;var A=s.bufferedRequest;if(d._writev&&A&&A.next){var O=s.bufferedRequestCount,q=new Array(O),o=s.corkedRequestsFree;o.entry=A;for(var a=0,B=!0;A;)q[a]=A,A.isBuf||(B=!1),A=A.next,a+=1;q.allBuffers=B,ie(d,s,!0,s.length,q,"",o.finish),s.pendingcb++,s.lastBufferedRequest=null,o.next?(s.corkedRequestsFree=o.next,o.next=null):s.corkedRequestsFree=new T(s),s.bufferedRequestCount=0}else{for(;A;){var U=A.chunk,Y=A.encoding,j=A.callback,$=s.objectMode?1:U.length;if(ie(d,s,!1,$,U,Y,j),A=A.next,s.bufferedRequestCount--,s.writing)break}A===null&&(s.lastBufferedRequest=null)}s.bufferedRequest=A,s.bufferProcessing=!1}k.prototype._write=function(d,s,A){A(new m("_write()"))},k.prototype._writev=null,k.prototype.end=function(d,s,A){var O=this._writableState;return typeof d=="function"?(A=d,d=null,s=null):typeof s=="function"&&(A=s,s=null),d!=null&&this.write(d,s),O.corked&&(O.corked=1,this.uncork()),O.ending||pe(this,O,A),this},Object.defineProperty(k.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function de(d){return d.ending&&d.length===0&&d.bufferedRequest===null&&!d.finished&&!d.writing}function J(d,s){d._final(function(A){s.pendingcb--,A&&N(d,A),s.prefinished=!0,d.emit("prefinish"),te(d,s)})}function Z(d,s){!s.prefinished&&!s.finalCalled&&(typeof d._final=="function"&&!s.destroyed?(s.pendingcb++,s.finalCalled=!0,H.nextTick(J,d,s)):(s.prefinished=!0,d.emit("prefinish")))}function te(d,s){var A=de(s);if(A&&(Z(d,s),s.pendingcb===0&&(s.finished=!0,d.emit("finish"),s.autoDestroy))){var O=d._readableState;(!O||O.autoDestroy&&O.endEmitted)&&d.destroy()}return A}function pe(d,s,A){s.ending=!0,te(d,s),A&&(s.finished?H.nextTick(A):d.once("finish",A)),s.ended=!0,d.writable=!1}function ye(d,s,A){var O=d.entry;for(d.entry=null;O;){var q=O.callback;s.pendingcb--,q(A),O=O.next}s.corkedRequestsFree.next=d}return Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(s){this._writableState&&(this._writableState.destroyed=s)}}),k.prototype.destroy=l.destroy,k.prototype._undestroy=l.undestroy,k.prototype._destroy=function(d,s){s(d)},qe}var je,hr;function _e(){if(hr)return je;hr=1;var T=Object.keys||function(S){var R=[];for(var h in S)R.push(h);return R};je=p;var w=Ir(),M=Tr();Ce(p,w);for(var _=T(M.prototype),L=0;L<_.length;L++){var E=_[L];p.prototype[E]||(p.prototype[E]=M.prototype[E])}function p(S){if(!(this instanceof p))return new p(S);w.call(this,S),M.call(this,S),this.allowHalfOpen=!0,S&&(S.readable===!1&&(this.readable=!1),S.writable===!1&&(this.writable=!1),S.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",i)))}Object.defineProperty(p.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(p.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(p.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function i(){this._writableState.ended||H.nextTick(l,this)}function l(S){S.end()}return Object.defineProperty(p.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(R){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=R,this._writableState.destroyed=R)}}),je}var We={},cr;function dr(){if(cr)return We;cr=1;var T=Pr().Buffer,w=T.isEncoding||function(u){switch(u=""+u,u&&u.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 M(u){if(!u)return"utf8";for(var y;;)switch(u){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 u;default:if(y)return;u=(""+u).toLowerCase(),y=!0}}function _(u){var y=M(u);if(typeof y!="string"&&(T.isEncoding===w||!w(u)))throw new Error("Unknown encoding: "+u);return y||u}We.StringDecoder=L;function L(u){this.encoding=_(u);var y;switch(this.encoding){case"utf16le":this.text=h,this.end=g,y=4;break;case"utf8":this.fillLast=l,y=4;break;case"base64":this.text=m,this.end=b,y=3;break;default:this.write=F,this.end=x;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=T.allocUnsafe(y)}L.prototype.write=function(u){if(u.length===0)return"";var y,C;if(this.lastNeed){if(y=this.fillLast(u),y===void 0)return"";C=this.lastNeed,this.lastNeed=0}else C=0;return C<u.length?y?y+this.text(u,C):this.text(u,C):y||""},L.prototype.end=R,L.prototype.text=S,L.prototype.fillLast=function(u){if(this.lastNeed<=u.length)return u.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);u.copy(this.lastChar,this.lastTotal-this.lastNeed,0,u.length),this.lastNeed-=u.length};function E(u){return u<=127?0:u>>5===6?2:u>>4===14?3:u>>3===30?4:u>>6===2?-1:-2}function p(u,y,C){var N=y.length-1;if(N<C)return 0;var I=E(y[N]);return I>=0?(I>0&&(u.lastNeed=I-1),I):--N<C||I===-2?0:(I=E(y[N]),I>=0?(I>0&&(u.lastNeed=I-2),I):--N<C||I===-2?0:(I=E(y[N]),I>=0?(I>0&&(I===2?I=0:u.lastNeed=I-3),I):0))}function i(u,y,C){if((y[0]&192)!==128)return u.lastNeed=0,"�";if(u.lastNeed>1&&y.length>1){if((y[1]&192)!==128)return u.lastNeed=1,"�";if(u.lastNeed>2&&y.length>2&&(y[2]&192)!==128)return u.lastNeed=2,"�"}}function l(u){var y=this.lastTotal-this.lastNeed,C=i(this,u);if(C!==void 0)return C;if(this.lastNeed<=u.length)return u.copy(this.lastChar,y,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);u.copy(this.lastChar,y,0,u.length),this.lastNeed-=u.length}function S(u,y){var C=p(this,u,y);if(!this.lastNeed)return u.toString("utf8",y);this.lastTotal=C;var N=u.length-(C-this.lastNeed);return u.copy(this.lastChar,0,N),u.toString("utf8",y,N)}function R(u){var y=u&&u.length?this.write(u):"";return this.lastNeed?y+"�":y}function h(u,y){if((u.length-y)%2===0){var C=u.toString("utf16le",y);if(C){var N=C.charCodeAt(C.length-1);if(N>=55296&&N<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=u[u.length-2],this.lastChar[1]=u[u.length-1],C.slice(0,-1)}return C}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=u[u.length-1],u.toString("utf16le",y,u.length-1)}function g(u){var y=u&&u.length?this.write(u):"";if(this.lastNeed){var C=this.lastTotal-this.lastNeed;return y+this.lastChar.toString("utf16le",0,C)}return y}function m(u,y){var C=(u.length-y)%3;return C===0?u.toString("base64",y):(this.lastNeed=3-C,this.lastTotal=3,C===1?this.lastChar[0]=u[u.length-1]:(this.lastChar[0]=u[u.length-2],this.lastChar[1]=u[u.length-1]),u.toString("base64",y,u.length-C))}function b(u){var y=u&&u.length?this.write(u):"";return this.lastNeed?y+this.lastChar.toString("base64",0,3-this.lastNeed):y}function F(u){return u.toString(this.encoding)}function x(u){return u&&u.length?this.write(u):""}return We}var $e,pr;function Ze(){if(pr)return $e;pr=1;var T=Ee().codes.ERR_STREAM_PREMATURE_CLOSE;function w(E){var p=!1;return function(){if(!p){p=!0;for(var i=arguments.length,l=new Array(i),S=0;S<i;S++)l[S]=arguments[S];E.apply(this,l)}}}function M(){}function _(E){return E.setHeader&&typeof E.abort=="function"}function L(E,p,i){if(typeof p=="function")return L(E,null,p);p||(p={}),i=w(i||M);var l=p.readable||p.readable!==!1&&E.readable,S=p.writable||p.writable!==!1&&E.writable,R=function(){E.writable||g()},h=E._writableState&&E._writableState.finished,g=function(){S=!1,h=!0,l||i.call(E)},m=E._readableState&&E._readableState.endEmitted,b=function(){l=!1,m=!0,S||i.call(E)},F=function(C){i.call(E,C)},x=function(){var C;if(l&&!m)return(!E._readableState||!E._readableState.ended)&&(C=new T),i.call(E,C);if(S&&!h)return(!E._writableState||!E._writableState.ended)&&(C=new T),i.call(E,C)},u=function(){E.req.on("finish",g)};return _(E)?(E.on("complete",g),E.on("abort",x),E.req?u():E.on("request",u)):S&&!E._writableState&&(E.on("end",R),E.on("close",R)),E.on("end",b),E.on("finish",g),p.error!==!1&&E.on("error",F),E.on("close",x),function(){E.removeListener("complete",g),E.removeListener("abort",x),E.removeListener("request",u),E.req&&E.req.removeListener("finish",g),E.removeListener("end",R),E.removeListener("close",R),E.removeListener("finish",g),E.removeListener("end",b),E.removeListener("error",F),E.removeListener("close",x)}}return $e=L,$e}var He,yr;function jr(){if(yr)return He;yr=1;var T;function w(C,N,I){return N=M(N),N in C?Object.defineProperty(C,N,{value:I,enumerable:!0,configurable:!0,writable:!0}):C[N]=I,C}function M(C){var N=_(C,"string");return typeof N=="symbol"?N:String(N)}function _(C,N){if(typeof C!="object"||C===null)return C;var I=C[Symbol.toPrimitive];if(I!==void 0){var D=I.call(C,N||"default");if(typeof D!="object")return D;throw new TypeError("@@toPrimitive must return a primitive value.")}return(N==="string"?String:Number)(C)}var L=Ze(),E=Symbol("lastResolve"),p=Symbol("lastReject"),i=Symbol("error"),l=Symbol("ended"),S=Symbol("lastPromise"),R=Symbol("handlePromise"),h=Symbol("stream");function g(C,N){return{value:C,done:N}}function m(C){var N=C[E];if(N!==null){var I=C[h].read();I!==null&&(C[S]=null,C[E]=null,C[p]=null,N(g(I,!1)))}}function b(C){H.nextTick(m,C)}function F(C,N){return function(I,D){C.then(function(){if(N[l]){I(g(void 0,!0));return}N[R](I,D)},D)}}var x=Object.getPrototypeOf(function(){}),u=Object.setPrototypeOf((T={get stream(){return this[h]},next:function(){var N=this,I=this[i];if(I!==null)return Promise.reject(I);if(this[l])return Promise.resolve(g(void 0,!0));if(this[h].destroyed)return new Promise(function(P,Q){H.nextTick(function(){N[i]?Q(N[i]):P(g(void 0,!0))})});var D=this[S],G;if(D)G=new Promise(F(D,this));else{var k=this[h].read();if(k!==null)return Promise.resolve(g(k,!1));G=new Promise(this[R])}return this[S]=G,G}},w(T,Symbol.asyncIterator,function(){return this}),w(T,"return",function(){var N=this;return new Promise(function(I,D){N[h].destroy(null,function(G){if(G){D(G);return}I(g(void 0,!0))})})}),T),x),y=function(N){var I,D=Object.create(u,(I={},w(I,h,{value:N,writable:!0}),w(I,E,{value:null,writable:!0}),w(I,p,{value:null,writable:!0}),w(I,i,{value:null,writable:!0}),w(I,l,{value:N._readableState.endEmitted,writable:!0}),w(I,R,{value:function(k,P){var Q=D[h].read();Q?(D[S]=null,D[E]=null,D[p]=null,k(g(Q,!1))):(D[E]=k,D[p]=P)},writable:!0}),I));return D[S]=null,L(N,function(G){if(G&&G.code!=="ERR_STREAM_PREMATURE_CLOSE"){var k=D[p];k!==null&&(D[S]=null,D[E]=null,D[p]=null,k(G)),D[i]=G;return}var P=D[E];P!==null&&(D[S]=null,D[E]=null,D[p]=null,P(g(void 0,!0))),D[l]=!0}),N.on("readable",b.bind(null,D)),D};return He=y,He}var Ge,gr;function Wr(){return gr||(gr=1,Ge=function(){throw new Error("Readable.from is not available in the browser")}),Ge}var Ve,wr;function Ir(){if(wr)return Ve;wr=1,Ve=P;var T;P.ReadableState=k,xr.EventEmitter;var w=function(a,B){return a.listeners(B).length},M=Br(),_=Ie().Buffer,L=(typeof be<"u"?be:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function E(o){return _.from(o)}function p(o){return _.isBuffer(o)||o instanceof L}var i=Cr,l;i&&i.debuglog?l=i.debuglog("stream"):l=function(){};var S=kr(),R=Fr(),h=Ar(),g=h.getHighWaterMark,m=Ee().codes,b=m.ERR_INVALID_ARG_TYPE,F=m.ERR_STREAM_PUSH_AFTER_EOF,x=m.ERR_METHOD_NOT_IMPLEMENTED,u=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,y,C,N;Ce(P,M);var I=R.errorOrDestroy,D=["error","close","destroy","pause","resume"];function G(o,a,B){if(typeof o.prependListener=="function")return o.prependListener(a,B);!o._events||!o._events[a]?o.on(a,B):Array.isArray(o._events[a])?o._events[a].unshift(B):o._events[a]=[B,o._events[a]]}function k(o,a,B){T=T||_e(),o=o||{},typeof B!="boolean"&&(B=a instanceof T),this.objectMode=!!o.objectMode,B&&(this.objectMode=this.objectMode||!!o.readableObjectMode),this.highWaterMark=g(this,o,"readableHighWaterMark",B),this.buffer=new S,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=o.emitClose!==!1,this.autoDestroy=!!o.autoDestroy,this.destroyed=!1,this.defaultEncoding=o.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,o.encoding&&(y||(y=dr().StringDecoder),this.decoder=new y(o.encoding),this.encoding=o.encoding)}function P(o){if(T=T||_e(),!(this instanceof P))return new P(o);var a=this instanceof T;this._readableState=new k(o,this,a),this.readable=!0,o&&(typeof o.read=="function"&&(this._read=o.read),typeof o.destroy=="function"&&(this._destroy=o.destroy)),M.call(this)}Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(a){this._readableState&&(this._readableState.destroyed=a)}}),P.prototype.destroy=R.destroy,P.prototype._undestroy=R.undestroy,P.prototype._destroy=function(o,a){a(o)},P.prototype.push=function(o,a){var B=this._readableState,U;return B.objectMode?U=!0:typeof o=="string"&&(a=a||B.defaultEncoding,a!==B.encoding&&(o=_.from(o,a),a=""),U=!0),Q(this,o,a,!1,U)},P.prototype.unshift=function(o){return Q(this,o,null,!0,!1)};function Q(o,a,B,U,Y){l("readableAddChunk",a);var j=o._readableState;if(a===null)j.reading=!1,Re(o,j);else{var $;if(Y||($=me(j,a)),$)I(o,$);else if(j.objectMode||a&&a.length>0)if(typeof a!="string"&&!j.objectMode&&Object.getPrototypeOf(a)!==_.prototype&&(a=E(a)),U)j.endEmitted?I(o,new u):ue(o,j,a,!0);else if(j.ended)I(o,new F);else{if(j.destroyed)return!1;j.reading=!1,j.decoder&&!B?(a=j.decoder.write(a),j.objectMode||a.length!==0?ue(o,j,a,!1):oe(o,j)):ue(o,j,a,!1)}else U||(j.reading=!1,oe(o,j))}return!j.ended&&(j.length<j.highWaterMark||j.length===0)}function ue(o,a,B,U){a.flowing&&a.length===0&&!a.sync?(a.awaitDrain=0,o.emit("data",B)):(a.length+=a.objectMode?1:B.length,U?a.buffer.unshift(B):a.buffer.push(B),a.needReadable&&ne(o)),oe(o,a)}function me(o,a){var B;return!p(a)&&typeof a!="string"&&a!==void 0&&!o.objectMode&&(B=new b("chunk",["string","Buffer","Uint8Array"],a)),B}P.prototype.isPaused=function(){return this._readableState.flowing===!1},P.prototype.setEncoding=function(o){y||(y=dr().StringDecoder);var a=new y(o);this._readableState.decoder=a,this._readableState.encoding=this._readableState.decoder.encoding;for(var B=this._readableState.buffer.head,U="";B!==null;)U+=a.write(B.data),B=B.next;return this._readableState.buffer.clear(),U!==""&&this._readableState.buffer.push(U),this._readableState.length=U.length,this};var ie=1073741824;function he(o){return o>=ie?o=ie:(o--,o|=o>>>1,o|=o>>>2,o|=o>>>4,o|=o>>>8,o|=o>>>16,o++),o}function fe(o,a){return o<=0||a.length===0&&a.ended?0:a.objectMode?1:o!==o?a.flowing&&a.length?a.buffer.head.data.length:a.length:(o>a.highWaterMark&&(a.highWaterMark=he(o)),o<=a.length?o:a.ended?a.length:(a.needReadable=!0,0))}P.prototype.read=function(o){l("read",o),o=parseInt(o,10);var a=this._readableState,B=o;if(o!==0&&(a.emittedReadable=!1),o===0&&a.needReadable&&((a.highWaterMark!==0?a.length>=a.highWaterMark:a.length>0)||a.ended))return l("read: emitReadable",a.length,a.ended),a.length===0&&a.ended?A(this):ne(this),null;if(o=fe(o,a),o===0&&a.ended)return a.length===0&&A(this),null;var U=a.needReadable;l("need readable",U),(a.length===0||a.length-o<a.highWaterMark)&&(U=!0,l("length less than watermark",U)),a.ended||a.reading?(U=!1,l("reading or ended",U)):U&&(l("do read"),a.reading=!0,a.sync=!0,a.length===0&&(a.needReadable=!0),this._read(a.highWaterMark),a.sync=!1,a.reading||(o=fe(B,a)));var Y;return o>0?Y=s(o,a):Y=null,Y===null?(a.needReadable=a.length<=a.highWaterMark,o=0):(a.length-=o,a.awaitDrain=0),a.length===0&&(a.ended||(a.needReadable=!0),B!==o&&a.ended&&A(this)),Y!==null&&this.emit("data",Y),Y};function Re(o,a){if(l("onEofChunk"),!a.ended){if(a.decoder){var B=a.decoder.end();B&&B.length&&(a.buffer.push(B),a.length+=a.objectMode?1:B.length)}a.ended=!0,a.sync?ne(o):(a.needReadable=!1,a.emittedReadable||(a.emittedReadable=!0,ce(o)))}}function ne(o){var a=o._readableState;l("emitReadable",a.needReadable,a.emittedReadable),a.needReadable=!1,a.emittedReadable||(l("emitReadable",a.flowing),a.emittedReadable=!0,H.nextTick(ce,o))}function ce(o){var a=o._readableState;l("emitReadable_",a.destroyed,a.length,a.ended),!a.destroyed&&(a.length||a.ended)&&(o.emit("readable"),a.emittedReadable=!1),a.needReadable=!a.flowing&&!a.ended&&a.length<=a.highWaterMark,d(o)}function oe(o,a){a.readingMore||(a.readingMore=!0,H.nextTick(de,o,a))}function de(o,a){for(;!a.reading&&!a.ended&&(a.length<a.highWaterMark||a.flowing&&a.length===0);){var B=a.length;if(l("maybeReadMore read 0"),o.read(0),B===a.length)break}a.readingMore=!1}P.prototype._read=function(o){I(this,new x("_read()"))},P.prototype.pipe=function(o,a){var B=this,U=this._readableState;switch(U.pipesCount){case 0:U.pipes=o;break;case 1:U.pipes=[U.pipes,o];break;default:U.pipes.push(o);break}U.pipesCount+=1,l("pipe count=%d opts=%j",U.pipesCount,a);var Y=(!a||a.end!==!1)&&o!==H.stdout&&o!==H.stderr,j=Y?ae:se;U.endEmitted?H.nextTick(j):B.once("end",j),o.on("unpipe",$);function $(t,e){l("onunpipe"),t===B&&e&&e.hasUnpiped===!1&&(e.hasUnpiped=!0,we())}function ae(){l("onend"),o.end()}var ge=J(B);o.on("drain",ge);var ve=!1;function we(){l("cleanup"),o.removeListener("close",Se),o.removeListener("finish",re),o.removeListener("drain",ge),o.removeListener("error",le),o.removeListener("unpipe",$),B.removeListener("end",ae),B.removeListener("end",se),B.removeListener("data",ee),ve=!0,U.awaitDrain&&(!o._writableState||o._writableState.needDrain)&&ge()}B.on("data",ee);function ee(t){l("ondata");var e=o.write(t);l("dest.write",e),e===!1&&((U.pipesCount===1&&U.pipes===o||U.pipesCount>1&&q(U.pipes,o)!==-1)&&!ve&&(l("false write response, pause",U.awaitDrain),U.awaitDrain++),B.pause())}function le(t){l("onerror",t),se(),o.removeListener("error",le),w(o,"error")===0&&I(o,t)}G(o,"error",le);function Se(){o.removeListener("finish",re),se()}o.once("close",Se);function re(){l("onfinish"),o.removeListener("close",Se),se()}o.once("finish",re);function se(){l("unpipe"),B.unpipe(o)}return o.emit("pipe",B),U.flowing||(l("pipe resume"),B.resume()),o};function J(o){return function(){var B=o._readableState;l("pipeOnDrain",B.awaitDrain),B.awaitDrain&&B.awaitDrain--,B.awaitDrain===0&&w(o,"data")&&(B.flowing=!0,d(o))}}P.prototype.unpipe=function(o){var a=this._readableState,B={hasUnpiped:!1};if(a.pipesCount===0)return this;if(a.pipesCount===1)return o&&o!==a.pipes?this:(o||(o=a.pipes),a.pipes=null,a.pipesCount=0,a.flowing=!1,o&&o.emit("unpipe",this,B),this);if(!o){var U=a.pipes,Y=a.pipesCount;a.pipes=null,a.pipesCount=0,a.flowing=!1;for(var j=0;j<Y;j++)U[j].emit("unpipe",this,{hasUnpiped:!1});return this}var $=q(a.pipes,o);return $===-1?this:(a.pipes.splice($,1),a.pipesCount-=1,a.pipesCount===1&&(a.pipes=a.pipes[0]),o.emit("unpipe",this,B),this)},P.prototype.on=function(o,a){var B=M.prototype.on.call(this,o,a),U=this._readableState;return o==="data"?(U.readableListening=this.listenerCount("readable")>0,U.flowing!==!1&&this.resume()):o==="readable"&&!U.endEmitted&&!U.readableListening&&(U.readableListening=U.needReadable=!0,U.flowing=!1,U.emittedReadable=!1,l("on readable",U.length,U.reading),U.length?ne(this):U.reading||H.nextTick(te,this)),B},P.prototype.addListener=P.prototype.on,P.prototype.removeListener=function(o,a){var B=M.prototype.removeListener.call(this,o,a);return o==="readable"&&H.nextTick(Z,this),B},P.prototype.removeAllListeners=function(o){var a=M.prototype.removeAllListeners.apply(this,arguments);return(o==="readable"||o===void 0)&&H.nextTick(Z,this),a};function Z(o){var a=o._readableState;a.readableListening=o.listenerCount("readable")>0,a.resumeScheduled&&!a.paused?a.flowing=!0:o.listenerCount("data")>0&&o.resume()}function te(o){l("readable nexttick read 0"),o.read(0)}P.prototype.resume=function(){var o=this._readableState;return o.flowing||(l("resume"),o.flowing=!o.readableListening,pe(this,o)),o.paused=!1,this};function pe(o,a){a.resumeScheduled||(a.resumeScheduled=!0,H.nextTick(ye,o,a))}function ye(o,a){l("resume",a.reading),a.reading||o.read(0),a.resumeScheduled=!1,o.emit("resume"),d(o),a.flowing&&!a.reading&&o.read(0)}P.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function d(o){var a=o._readableState;for(l("flow",a.flowing);a.flowing&&o.read()!==null;);}P.prototype.wrap=function(o){var a=this,B=this._readableState,U=!1;o.on("end",function(){if(l("wrapped end"),B.decoder&&!B.ended){var $=B.decoder.end();$&&$.length&&a.push($)}a.push(null)}),o.on("data",function($){if(l("wrapped data"),B.decoder&&($=B.decoder.write($)),!(B.objectMode&&$==null)&&!(!B.objectMode&&(!$||!$.length))){var ae=a.push($);ae||(U=!0,o.pause())}});for(var Y in o)this[Y]===void 0&&typeof o[Y]=="function"&&(this[Y]=function(ae){return function(){return o[ae].apply(o,arguments)}}(Y));for(var j=0;j<D.length;j++)o.on(D[j],this.emit.bind(this,D[j]));return this._read=function($){l("wrapped _read",$),U&&(U=!1,o.resume())},this},typeof Symbol=="function"&&(P.prototype[Symbol.asyncIterator]=function(){return C===void 0&&(C=jr()),C(this)}),Object.defineProperty(P.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(P.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(P.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(a){this._readableState&&(this._readableState.flowing=a)}}),P._fromList=s,Object.defineProperty(P.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function s(o,a){if(a.length===0)return null;var B;return a.objectMode?B=a.buffer.shift():!o||o>=a.length?(a.decoder?B=a.buffer.join(""):a.buffer.length===1?B=a.buffer.first():B=a.buffer.concat(a.length),a.buffer.clear()):B=a.buffer.consume(o,a.decoder),B}function A(o){var a=o._readableState;l("endReadable",a.endEmitted),a.endEmitted||(a.ended=!0,H.nextTick(O,a,o))}function O(o,a){if(l("endReadableNT",o.endEmitted,o.length),!o.endEmitted&&o.length===0&&(o.endEmitted=!0,a.readable=!1,a.emit("end"),o.autoDestroy)){var B=a._writableState;(!B||B.autoDestroy&&B.finished)&&a.destroy()}}typeof Symbol=="function"&&(P.from=function(o,a){return N===void 0&&(N=Wr()),N(P,o,a)});function q(o,a){for(var B=0,U=o.length;B<U;B++)if(o[B]===a)return B;return-1}return Ve}var Ye,br;function Mr(){if(br)return Ye;br=1,Ye=i;var T=Ee().codes,w=T.ERR_METHOD_NOT_IMPLEMENTED,M=T.ERR_MULTIPLE_CALLBACK,_=T.ERR_TRANSFORM_ALREADY_TRANSFORMING,L=T.ERR_TRANSFORM_WITH_LENGTH_0,E=_e();Ce(i,E);function p(R,h){var g=this._transformState;g.transforming=!1;var m=g.writecb;if(m===null)return this.emit("error",new M);g.writechunk=null,g.writecb=null,h!=null&&this.push(h),m(R);var b=this._readableState;b.reading=!1,(b.needReadable||b.length<b.highWaterMark)&&this._read(b.highWaterMark)}function i(R){if(!(this instanceof i))return new i(R);E.call(this,R),this._transformState={afterTransform:p.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,R&&(typeof R.transform=="function"&&(this._transform=R.transform),typeof R.flush=="function"&&(this._flush=R.flush)),this.on("prefinish",l)}function l(){var R=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(h,g){S(R,h,g)}):S(this,null,null)}i.prototype.push=function(R,h){return this._transformState.needTransform=!1,E.prototype.push.call(this,R,h)},i.prototype._transform=function(R,h,g){g(new w("_transform()"))},i.prototype._write=function(R,h,g){var m=this._transformState;if(m.writecb=g,m.writechunk=R,m.writeencoding=h,!m.transforming){var b=this._readableState;(m.needTransform||b.needReadable||b.length<b.highWaterMark)&&this._read(b.highWaterMark)}},i.prototype._read=function(R){var h=this._transformState;h.writechunk!==null&&!h.transforming?(h.transforming=!0,this._transform(h.writechunk,h.writeencoding,h.afterTransform)):h.needTransform=!0},i.prototype._destroy=function(R,h){E.prototype._destroy.call(this,R,function(g){h(g)})};function S(R,h,g){if(h)return R.emit("error",h);if(g!=null&&R.push(g),R._writableState.length)throw new L;if(R._transformState.transforming)throw new _;return R.push(null)}return Ye}var Ke,_r;function $r(){if(_r)return Ke;_r=1,Ke=w;var T=Mr();Ce(w,T);function w(M){if(!(this instanceof w))return new w(M);T.call(this,M)}return w.prototype._transform=function(M,_,L){L(null,M)},Ke}var Je,Er;function Hr(){if(Er)return Je;Er=1;var T;function w(g){var m=!1;return function(){m||(m=!0,g.apply(void 0,arguments))}}var M=Ee().codes,_=M.ERR_MISSING_ARGS,L=M.ERR_STREAM_DESTROYED;function E(g){if(g)throw g}function p(g){return g.setHeader&&typeof g.abort=="function"}function i(g,m,b,F){F=w(F);var x=!1;g.on("close",function(){x=!0}),T===void 0&&(T=Ze()),T(g,{readable:m,writable:b},function(y){if(y)return F(y);x=!0,F()});var u=!1;return function(y){if(!x&&!u){if(u=!0,p(g))return g.abort();if(typeof g.destroy=="function")return g.destroy();F(y||new L("pipe"))}}}function l(g){g()}function S(g,m){return g.pipe(m)}function R(g){return!g.length||typeof g[g.length-1]!="function"?E:g.pop()}function h(){for(var g=arguments.length,m=new Array(g),b=0;b<g;b++)m[b]=arguments[b];var F=R(m);if(Array.isArray(m[0])&&(m=m[0]),m.length<2)throw new _("streams");var x,u=m.map(function(y,C){var N=C<m.length-1,I=C>0;return i(y,N,I,function(D){x||(x=D),D&&u.forEach(l),!N&&(u.forEach(l),F(x))})});return m.reduce(S)}return Je=h,Je}var mr;function zr(){return mr||(mr=1,function(T,w){w=T.exports=Ir(),w.Stream=w,w.Readable=w,w.Writable=Tr(),w.Duplex=_e(),w.Transform=Mr(),w.PassThrough=$r(),w.finished=Ze(),w.pipeline=Hr()}(Ae,Ae.exports)),Ae.exports}var Te={exports:{}},ze,Rr;function Gr(){if(Rr)return ze;Rr=1;var T=1e3,w=T*60,M=w*60,_=M*24,L=_*7,E=_*365.25;ze=function(R,h){h=h||{};var g=typeof R;if(g==="string"&&R.length>0)return p(R);if(g==="number"&&isFinite(R))return h.long?l(R):i(R);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(R))};function p(R){if(R=String(R),!(R.length>100)){var h=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(R);if(h){var g=parseFloat(h[1]),m=(h[2]||"ms").toLowerCase();switch(m){case"years":case"year":case"yrs":case"yr":case"y":return g*E;case"weeks":case"week":case"w":return g*L;case"days":case"day":case"d":return g*_;case"hours":case"hour":case"hrs":case"hr":case"h":return g*M;case"minutes":case"minute":case"mins":case"min":case"m":return g*w;case"seconds":case"second":case"secs":case"sec":case"s":return g*T;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return g;default:return}}}}function i(R){var h=Math.abs(R);return h>=_?Math.round(R/_)+"d":h>=M?Math.round(R/M)+"h":h>=w?Math.round(R/w)+"m":h>=T?Math.round(R/T)+"s":R+"ms"}function l(R){var h=Math.abs(R);return h>=_?S(R,h,_,"day"):h>=M?S(R,h,M,"hour"):h>=w?S(R,h,w,"minute"):h>=T?S(R,h,T,"second"):R+" ms"}function S(R,h,g,m){var b=h>=g*1.5;return Math.round(R/g)+" "+m+(b?"s":"")}return ze}var Xe,vr;function Vr(){if(vr)return Xe;vr=1;function T(w){_.debug=_,_.default=_,_.coerce=S,_.disable=i,_.enable=E,_.enabled=l,_.humanize=Gr(),_.destroy=R,Object.keys(w).forEach(h=>{_[h]=w[h]}),_.names=[],_.skips=[],_.formatters={};function M(h){let g=0;for(let m=0;m<h.length;m++)g=(g<<5)-g+h.charCodeAt(m),g|=0;return _.colors[Math.abs(g)%_.colors.length]}_.selectColor=M;function _(h){let g,m=null,b,F;function x(...u){if(!x.enabled)return;const y=x,C=Number(new Date),N=C-(g||C);y.diff=N,y.prev=g,y.curr=C,g=C,u[0]=_.coerce(u[0]),typeof u[0]!="string"&&u.unshift("%O");let I=0;u[0]=u[0].replace(/%([a-zA-Z%])/g,(G,k)=>{if(G==="%%")return"%";I++;const P=_.formatters[k];if(typeof P=="function"){const Q=u[I];G=P.call(y,Q),u.splice(I,1),I--}return G}),_.formatArgs.call(y,u),(y.log||_.log).apply(y,u)}return x.namespace=h,x.useColors=_.useColors(),x.color=_.selectColor(h),x.extend=L,x.destroy=_.destroy,Object.defineProperty(x,"enabled",{enumerable:!0,configurable:!1,get:()=>m!==null?m:(b!==_.namespaces&&(b=_.namespaces,F=_.enabled(h)),F),set:u=>{m=u}}),typeof _.init=="function"&&_.init(x),x}function L(h,g){const m=_(this.namespace+(typeof g>"u"?":":g)+h);return m.log=this.log,m}function E(h){_.save(h),_.namespaces=h,_.names=[],_.skips=[];const g=(typeof h=="string"?h:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const m of g)m[0]==="-"?_.skips.push(m.slice(1)):_.names.push(m)}function p(h,g){let m=0,b=0,F=-1,x=0;for(;m<h.length;)if(b<g.length&&(g[b]===h[m]||g[b]==="*"))g[b]==="*"?(F=b,x=m,b++):(m++,b++);else if(F!==-1)b=F+1,x++,m=x;else return!1;for(;b<g.length&&g[b]==="*";)b++;return b===g.length}function i(){const h=[..._.names,..._.skips.map(g=>"-"+g)].join(",");return _.enable(""),h}function l(h){for(const g of _.skips)if(p(h,g))return!1;for(const g of _.names)if(p(h,g))return!0;return!1}function S(h){return h instanceof Error?h.stack||h.message:h}function R(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return _.enable(_.load()),_}return Xe=T,Xe}var Sr;function Xr(){return Sr||(Sr=1,function(T,w){w.formatArgs=_,w.save=L,w.load=E,w.useColors=M,w.storage=p(),w.destroy=(()=>{let l=!1;return()=>{l||(l=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),w.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function M(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let l;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(l=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(l[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function _(l){if(l[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+l[0]+(this.useColors?"%c ":" ")+"+"+T.exports.humanize(this.diff),!this.useColors)return;const S="color: "+this.color;l.splice(1,0,S,"color: inherit");let R=0,h=0;l[0].replace(/%[a-zA-Z%]/g,g=>{g!=="%%"&&(R++,g==="%c"&&(h=R))}),l.splice(h,0,S)}w.log=console.debug||console.log||(()=>{});function L(l){try{l?w.storage.setItem("debug",l):w.storage.removeItem("debug")}catch{}}function E(){let l;try{l=w.storage.getItem("debug")||w.storage.getItem("DEBUG")}catch{}return!l&&typeof H<"u"&&"env"in H&&(l={}.DEBUG),l}function p(){try{return localStorage}catch{}}T.exports=Vr()(w);const{formatters:i}=T.exports;i.j=function(l){try{return JSON.stringify(l)}catch(S){return"[UnexpectedJSONParseError]: "+S.message}}}(Te,Te.exports)),Te.exports}const Zr=Lr(Ur);export{Pr as a,zr as b,Xr as c,Zr as d,Ie as e,Jr as r};
|
|
6
|
+
*/var rr;function Ie(){return rr||(rr=1,function(T){const w=Nr(),M=Ur(),_=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;T.Buffer=i,T.SlowBuffer=y,T.INSPECT_MAX_BYTES=50;const N=2147483647;T.kMaxLength=N,i.TYPED_ARRAY_SUPPORT=E(),!i.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 E(){try{const t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch{return!1}}Object.defineProperty(i.prototype,"parent",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.buffer}}),Object.defineProperty(i.prototype,"offset",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.byteOffset}});function p(t){if(t>N)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,i.prototype),e}function i(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return h(t)}return l(t,e,r)}i.poolSize=8192;function l(t,e,r){if(typeof t=="string")return g(t,e);if(ArrayBuffer.isView(t))return b(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(ee(t,ArrayBuffer)||t&&ee(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ee(t,SharedArrayBuffer)||t&&ee(t.buffer,SharedArrayBuffer)))return F(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return i.from(n,e,r);const f=x(t);if(f)return f;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return i.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}i.from=function(t,e,r){return l(t,e,r)},Object.setPrototypeOf(i.prototype,Uint8Array.prototype),Object.setPrototypeOf(i,Uint8Array);function S(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function R(t,e,r){return S(t),t<=0?p(t):e!==void 0?typeof r=="string"?p(t).fill(e,r):p(t).fill(e):p(t)}i.alloc=function(t,e,r){return R(t,e,r)};function h(t){return S(t),p(t<0?0:u(t)|0)}i.allocUnsafe=function(t){return h(t)},i.allocUnsafeSlow=function(t){return h(t)};function g(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!i.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const r=C(t,e)|0;let n=p(r);const f=n.write(t,e);return f!==r&&(n=n.slice(0,f)),n}function m(t){const e=t.length<0?0:u(t.length)|0,r=p(e);for(let n=0;n<e;n+=1)r[n]=t[n]&255;return r}function b(t){if(ee(t,Uint8Array)){const e=new Uint8Array(t);return F(e.buffer,e.byteOffset,e.byteLength)}return m(t)}function F(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return e===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,e):n=new Uint8Array(t,e,r),Object.setPrototypeOf(n,i.prototype),n}function x(t){if(i.isBuffer(t)){const e=u(t.length)|0,r=p(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||le(t.length)?p(0):m(t);if(t.type==="Buffer"&&Array.isArray(t.data))return m(t.data)}function u(t){if(t>=N)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+N.toString(16)+" bytes");return t|0}function y(t){return+t!=t&&(t=0),i.alloc(+t)}i.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==i.prototype},i.compare=function(e,r){if(ee(e,Uint8Array)&&(e=i.from(e,e.offset,e.byteLength)),ee(r,Uint8Array)&&(r=i.from(r,r.offset,r.byteLength)),!i.isBuffer(e)||!i.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;let n=e.length,f=r.length;for(let c=0,v=Math.min(n,f);c<v;++c)if(e[c]!==r[c]){n=e[c],f=r[c];break}return n<f?-1:f<n?1:0},i.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},i.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return i.alloc(0);let n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;const f=i.allocUnsafe(r);let c=0;for(n=0;n<e.length;++n){let v=e[n];if(ee(v,Uint8Array))c+v.length>f.length?(i.isBuffer(v)||(v=i.from(v)),v.copy(f,c)):Uint8Array.prototype.set.call(f,v,c);else if(i.isBuffer(v))v.copy(f,c);else throw new TypeError('"list" argument must be an Array of Buffers');c+=v.length}return f};function C(t,e){if(i.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||ee(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;let f=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return $(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return ve(t).length;default:if(f)return n?-1:$(t).length;e=(""+e).toLowerCase(),f=!0}}i.byteLength=C;function L(t,e,r){let n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return oe(this,e,r);case"utf8":case"utf-8":return he(this,e,r);case"ascii":return ne(this,e,r);case"latin1":case"binary":return ce(this,e,r);case"base64":return ie(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return de(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}i.prototype._isBuffer=!0;function I(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}i.prototype.swap16=function(){const e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;r<e;r+=2)I(this,r,r+1);return this},i.prototype.swap32=function(){const e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let r=0;r<e;r+=4)I(this,r,r+3),I(this,r+1,r+2);return this},i.prototype.swap64=function(){const e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let r=0;r<e;r+=8)I(this,r,r+7),I(this,r+1,r+6),I(this,r+2,r+5),I(this,r+3,r+4);return this},i.prototype.toString=function(){const e=this.length;return e===0?"":arguments.length===0?he(this,0,e):L.apply(this,arguments)},i.prototype.toLocaleString=i.prototype.toString,i.prototype.equals=function(e){if(!i.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:i.compare(this,e)===0},i.prototype.inspect=function(){let e="";const r=T.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},_&&(i.prototype[_]=i.prototype.inspect),i.prototype.compare=function(e,r,n,f,c){if(ee(e,Uint8Array)&&(e=i.from(e,e.offset,e.byteLength)),!i.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),f===void 0&&(f=0),c===void 0&&(c=this.length),r<0||n>e.length||f<0||c>this.length)throw new RangeError("out of range index");if(f>=c&&r>=n)return 0;if(f>=c)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,f>>>=0,c>>>=0,this===e)return 0;let v=c-f,W=n-r;const z=Math.min(v,W),K=this.slice(f,c),X=e.slice(r,n);for(let V=0;V<z;++V)if(K[V]!==X[V]){v=K[V],W=X[V];break}return v<W?-1:W<v?1:0};function D(t,e,r,n,f){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,le(r)&&(r=f?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(f)return-1;r=t.length-1}else if(r<0)if(f)r=0;else return-1;if(typeof e=="string"&&(e=i.from(e,n)),i.isBuffer(e))return e.length===0?-1:G(t,e,r,n,f);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?f?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):G(t,[e],r,n,f);throw new TypeError("val must be string, number or Buffer")}function G(t,e,r,n,f){let c=1,v=t.length,W=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;c=2,v/=2,W/=2,r/=2}function z(X,V){return c===1?X[V]:X.readUInt16BE(V*c)}let K;if(f){let X=-1;for(K=r;K<v;K++)if(z(t,K)===z(e,X===-1?0:K-X)){if(X===-1&&(X=K),K-X+1===W)return X*c}else X!==-1&&(K-=K-X),X=-1}else for(r+W>v&&(r=v-W),K=r;K>=0;K--){let X=!0;for(let V=0;V<W;V++)if(z(t,K+V)!==z(e,V)){X=!1;break}if(X)return K}return-1}i.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1},i.prototype.indexOf=function(e,r,n){return D(this,e,r,n,!0)},i.prototype.lastIndexOf=function(e,r,n){return D(this,e,r,n,!1)};function k(t,e,r,n){r=Number(r)||0;const f=t.length-r;n?(n=Number(n),n>f&&(n=f)):n=f;const c=e.length;n>c/2&&(n=c/2);let v;for(v=0;v<n;++v){const W=parseInt(e.substr(v*2,2),16);if(le(W))return v;t[r+v]=W}return v}function P(t,e,r,n){return we($(e,t.length-r),t,r,n)}function Q(t,e,r,n){return we(ae(e),t,r,n)}function ue(t,e,r,n){return we(ve(e),t,r,n)}function me(t,e,r,n){return we(ge(e,t.length-r),t,r,n)}i.prototype.write=function(e,r,n,f){if(r===void 0)f="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")f=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,f===void 0&&(f="utf8")):(f=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const c=this.length-r;if((n===void 0||n>c)&&(n=c),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");f||(f="utf8");let v=!1;for(;;)switch(f){case"hex":return k(this,e,r,n);case"utf8":case"utf-8":return P(this,e,r,n);case"ascii":case"latin1":case"binary":return Q(this,e,r,n);case"base64":return ue(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return me(this,e,r,n);default:if(v)throw new TypeError("Unknown encoding: "+f);f=(""+f).toLowerCase(),v=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ie(t,e,r){return e===0&&r===t.length?w.fromByteArray(t):w.fromByteArray(t.slice(e,r))}function he(t,e,r){r=Math.min(t.length,r);const n=[];let f=e;for(;f<r;){const c=t[f];let v=null,W=c>239?4:c>223?3:c>191?2:1;if(f+W<=r){let z,K,X,V;switch(W){case 1:c<128&&(v=c);break;case 2:z=t[f+1],(z&192)===128&&(V=(c&31)<<6|z&63,V>127&&(v=V));break;case 3:z=t[f+1],K=t[f+2],(z&192)===128&&(K&192)===128&&(V=(c&15)<<12|(z&63)<<6|K&63,V>2047&&(V<55296||V>57343)&&(v=V));break;case 4:z=t[f+1],K=t[f+2],X=t[f+3],(z&192)===128&&(K&192)===128&&(X&192)===128&&(V=(c&15)<<18|(z&63)<<12|(K&63)<<6|X&63,V>65535&&V<1114112&&(v=V))}}v===null?(v=65533,W=1):v>65535&&(v-=65536,n.push(v>>>10&1023|55296),v=56320|v&1023),n.push(v),f+=W}return Re(n)}const fe=4096;function Re(t){const e=t.length;if(e<=fe)return String.fromCharCode.apply(String,t);let r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=fe));return r}function ne(t,e,r){let n="";r=Math.min(t.length,r);for(let f=e;f<r;++f)n+=String.fromCharCode(t[f]&127);return n}function ce(t,e,r){let n="";r=Math.min(t.length,r);for(let f=e;f<r;++f)n+=String.fromCharCode(t[f]);return n}function oe(t,e,r){const n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);let f="";for(let c=e;c<r;++c)f+=Se[t[c]];return f}function de(t,e,r){const n=t.slice(e,r);let f="";for(let c=0;c<n.length-1;c+=2)f+=String.fromCharCode(n[c]+n[c+1]*256);return f}i.prototype.slice=function(e,r){const n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);const f=this.subarray(e,r);return Object.setPrototypeOf(f,i.prototype),f};function J(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}i.prototype.readUintLE=i.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||J(e,r,this.length);let f=this[e],c=1,v=0;for(;++v<r&&(c*=256);)f+=this[e+v]*c;return f},i.prototype.readUintBE=i.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||J(e,r,this.length);let f=this[e+--r],c=1;for(;r>0&&(c*=256);)f+=this[e+--r]*c;return f},i.prototype.readUint8=i.prototype.readUInt8=function(e,r){return e=e>>>0,r||J(e,1,this.length),this[e]},i.prototype.readUint16LE=i.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||J(e,2,this.length),this[e]|this[e+1]<<8},i.prototype.readUint16BE=i.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||J(e,2,this.length),this[e]<<8|this[e+1]},i.prototype.readUint32LE=i.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||J(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},i.prototype.readUint32BE=i.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||J(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},i.prototype.readBigUInt64LE=re(function(e){e=e>>>0,B(e,"offset");const r=this[e],n=this[e+7];(r===void 0||n===void 0)&&U(e,this.length-8);const f=r+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,c=this[++e]+this[++e]*2**8+this[++e]*2**16+n*2**24;return BigInt(f)+(BigInt(c)<<BigInt(32))}),i.prototype.readBigUInt64BE=re(function(e){e=e>>>0,B(e,"offset");const r=this[e],n=this[e+7];(r===void 0||n===void 0)&&U(e,this.length-8);const f=r*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],c=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n;return(BigInt(f)<<BigInt(32))+BigInt(c)}),i.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||J(e,r,this.length);let f=this[e],c=1,v=0;for(;++v<r&&(c*=256);)f+=this[e+v]*c;return c*=128,f>=c&&(f-=Math.pow(2,8*r)),f},i.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||J(e,r,this.length);let f=r,c=1,v=this[e+--f];for(;f>0&&(c*=256);)v+=this[e+--f]*c;return c*=128,v>=c&&(v-=Math.pow(2,8*r)),v},i.prototype.readInt8=function(e,r){return e=e>>>0,r||J(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},i.prototype.readInt16LE=function(e,r){e=e>>>0,r||J(e,2,this.length);const n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n},i.prototype.readInt16BE=function(e,r){e=e>>>0,r||J(e,2,this.length);const n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n},i.prototype.readInt32LE=function(e,r){return e=e>>>0,r||J(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},i.prototype.readInt32BE=function(e,r){return e=e>>>0,r||J(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},i.prototype.readBigInt64LE=re(function(e){e=e>>>0,B(e,"offset");const r=this[e],n=this[e+7];(r===void 0||n===void 0)&&U(e,this.length-8);const f=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(n<<24);return(BigInt(f)<<BigInt(32))+BigInt(r+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)}),i.prototype.readBigInt64BE=re(function(e){e=e>>>0,B(e,"offset");const r=this[e],n=this[e+7];(r===void 0||n===void 0)&&U(e,this.length-8);const f=(r<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(f)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n)}),i.prototype.readFloatLE=function(e,r){return e=e>>>0,r||J(e,4,this.length),M.read(this,e,!0,23,4)},i.prototype.readFloatBE=function(e,r){return e=e>>>0,r||J(e,4,this.length),M.read(this,e,!1,23,4)},i.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||J(e,8,this.length),M.read(this,e,!0,52,8)},i.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||J(e,8,this.length),M.read(this,e,!1,52,8)};function Z(t,e,r,n,f,c){if(!i.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>f||e<c)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}i.prototype.writeUintLE=i.prototype.writeUIntLE=function(e,r,n,f){if(e=+e,r=r>>>0,n=n>>>0,!f){const W=Math.pow(2,8*n)-1;Z(this,e,r,n,W,0)}let c=1,v=0;for(this[r]=e&255;++v<n&&(c*=256);)this[r+v]=e/c&255;return r+n},i.prototype.writeUintBE=i.prototype.writeUIntBE=function(e,r,n,f){if(e=+e,r=r>>>0,n=n>>>0,!f){const W=Math.pow(2,8*n)-1;Z(this,e,r,n,W,0)}let c=n-1,v=1;for(this[r+c]=e&255;--c>=0&&(v*=256);)this[r+c]=e/v&255;return r+n},i.prototype.writeUint8=i.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||Z(this,e,r,1,255,0),this[r]=e&255,r+1},i.prototype.writeUint16LE=i.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||Z(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2},i.prototype.writeUint16BE=i.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||Z(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2},i.prototype.writeUint32LE=i.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||Z(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4},i.prototype.writeUint32BE=i.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||Z(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function te(t,e,r,n,f){a(e,n,f,t,r,7);let c=Number(e&BigInt(4294967295));t[r++]=c,c=c>>8,t[r++]=c,c=c>>8,t[r++]=c,c=c>>8,t[r++]=c;let v=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=v,v=v>>8,t[r++]=v,v=v>>8,t[r++]=v,v=v>>8,t[r++]=v,r}function pe(t,e,r,n,f){a(e,n,f,t,r,7);let c=Number(e&BigInt(4294967295));t[r+7]=c,c=c>>8,t[r+6]=c,c=c>>8,t[r+5]=c,c=c>>8,t[r+4]=c;let v=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=v,v=v>>8,t[r+2]=v,v=v>>8,t[r+1]=v,v=v>>8,t[r]=v,r+8}i.prototype.writeBigUInt64LE=re(function(e,r=0){return te(this,e,r,BigInt(0),BigInt("0xffffffffffffffff"))}),i.prototype.writeBigUInt64BE=re(function(e,r=0){return pe(this,e,r,BigInt(0),BigInt("0xffffffffffffffff"))}),i.prototype.writeIntLE=function(e,r,n,f){if(e=+e,r=r>>>0,!f){const z=Math.pow(2,8*n-1);Z(this,e,r,n,z-1,-z)}let c=0,v=1,W=0;for(this[r]=e&255;++c<n&&(v*=256);)e<0&&W===0&&this[r+c-1]!==0&&(W=1),this[r+c]=(e/v>>0)-W&255;return r+n},i.prototype.writeIntBE=function(e,r,n,f){if(e=+e,r=r>>>0,!f){const z=Math.pow(2,8*n-1);Z(this,e,r,n,z-1,-z)}let c=n-1,v=1,W=0;for(this[r+c]=e&255;--c>=0&&(v*=256);)e<0&&W===0&&this[r+c+1]!==0&&(W=1),this[r+c]=(e/v>>0)-W&255;return r+n},i.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||Z(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1},i.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||Z(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2},i.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||Z(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2},i.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||Z(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4},i.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||Z(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4},i.prototype.writeBigInt64LE=re(function(e,r=0){return te(this,e,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),i.prototype.writeBigInt64BE=re(function(e,r=0){return pe(this,e,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ye(t,e,r,n,f,c){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function d(t,e,r,n,f){return e=+e,r=r>>>0,f||ye(t,e,r,4),M.write(t,e,r,n,23,4),r+4}i.prototype.writeFloatLE=function(e,r,n){return d(this,e,r,!0,n)},i.prototype.writeFloatBE=function(e,r,n){return d(this,e,r,!1,n)};function s(t,e,r,n,f){return e=+e,r=r>>>0,f||ye(t,e,r,8),M.write(t,e,r,n,52,8),r+8}i.prototype.writeDoubleLE=function(e,r,n){return s(this,e,r,!0,n)},i.prototype.writeDoubleBE=function(e,r,n){return s(this,e,r,!1,n)},i.prototype.copy=function(e,r,n,f){if(!i.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!f&&f!==0&&(f=this.length),r>=e.length&&(r=e.length),r||(r=0),f>0&&f<n&&(f=n),f===n||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(f<0)throw new RangeError("sourceEnd out of bounds");f>this.length&&(f=this.length),e.length-r<f-n&&(f=e.length-r+n);const c=f-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,f):Uint8Array.prototype.set.call(e,this.subarray(n,f),r),c},i.prototype.fill=function(e,r,n,f){if(typeof e=="string"){if(typeof r=="string"?(f=r,r=0,n=this.length):typeof n=="string"&&(f=n,n=this.length),f!==void 0&&typeof f!="string")throw new TypeError("encoding must be a string");if(typeof f=="string"&&!i.isEncoding(f))throw new TypeError("Unknown encoding: "+f);if(e.length===1){const v=e.charCodeAt(0);(f==="utf8"&&v<128||f==="latin1")&&(e=v)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);let c;if(typeof e=="number")for(c=r;c<n;++c)this[c]=e;else{const v=i.isBuffer(e)?e:i.from(e,f),W=v.length;if(W===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(c=0;c<n-r;++c)this[c+r]=v[c%W]}return this};const A={};function O(t,e,r){A[t]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(f){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:f,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}O("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),O("ERR_INVALID_ARG_TYPE",function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`},TypeError),O("ERR_OUT_OF_RANGE",function(t,e,r){let n=`The value of "${t}" is out of range.`,f=r;return Number.isInteger(r)&&Math.abs(r)>2**32?f=q(String(r)):typeof r=="bigint"&&(f=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(f=q(f)),f+="n"),n+=` It must be ${e}. Received ${f}`,n},RangeError);function q(t){let e="",r=t.length;const n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function o(t,e,r){B(e,"offset"),(t[e]===void 0||t[e+r]===void 0)&&U(e,t.length-(r+1))}function a(t,e,r,n,f,c){if(t>r||t<e){const v=typeof e=="bigint"?"n":"";let W;throw c>3?e===0||e===BigInt(0)?W=`>= 0${v} and < 2${v} ** ${(c+1)*8}${v}`:W=`>= -(2${v} ** ${(c+1)*8-1}${v}) and < 2 ** ${(c+1)*8-1}${v}`:W=`>= ${e}${v} and <= ${r}${v}`,new A.ERR_OUT_OF_RANGE("value",W,t)}o(n,f,c)}function B(t,e){if(typeof t!="number")throw new A.ERR_INVALID_ARG_TYPE(e,"number",t)}function U(t,e,r){throw Math.floor(t)!==t?(B(t,r),new A.ERR_OUT_OF_RANGE(r||"offset","an integer",t)):e<0?new A.ERR_BUFFER_OUT_OF_BOUNDS:new A.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${e}`,t)}const Y=/[^+/0-9A-Za-z-_]/g;function j(t){if(t=t.split("=")[0],t=t.trim().replace(Y,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function $(t,e){e=e||1/0;let r;const n=t.length;let f=null;const c=[];for(let v=0;v<n;++v){if(r=t.charCodeAt(v),r>55295&&r<57344){if(!f){if(r>56319){(e-=3)>-1&&c.push(239,191,189);continue}else if(v+1===n){(e-=3)>-1&&c.push(239,191,189);continue}f=r;continue}if(r<56320){(e-=3)>-1&&c.push(239,191,189),f=r;continue}r=(f-55296<<10|r-56320)+65536}else f&&(e-=3)>-1&&c.push(239,191,189);if(f=null,r<128){if((e-=1)<0)break;c.push(r)}else if(r<2048){if((e-=2)<0)break;c.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;c.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;c.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return c}function ae(t){const e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function ge(t,e){let r,n,f;const c=[];for(let v=0;v<t.length&&!((e-=2)<0);++v)r=t.charCodeAt(v),n=r>>8,f=r%256,c.push(f),c.push(n);return c}function ve(t){return w.toByteArray(j(t))}function we(t,e,r,n){let f;for(f=0;f<n&&!(f+r>=e.length||f>=t.length);++f)e[f+r]=t[f];return f}function ee(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function le(t){return t!==t}const Se=function(){const t="0123456789abcdef",e=new Array(256);for(let r=0;r<16;++r){const n=r*16;for(let f=0;f<16;++f)e[n+f]=t[r]+t[f]}return e}();function re(t){return typeof BigInt>"u"?se:t}function se(){throw new Error("BigInt not supported")}}(Me)),Me}/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var tr;function Or(){return tr||(tr=1,function(T,w){var M=Ie(),_=M.Buffer;function N(p,i){for(var l in p)i[l]=p[l]}_.from&&_.alloc&&_.allocUnsafe&&_.allocUnsafeSlow?T.exports=M:(N(M,w),w.Buffer=E);function E(p,i,l){return _(p,i,l)}E.prototype=Object.create(_.prototype),N(_,E),E.from=function(p,i,l){if(typeof p=="number")throw new TypeError("Argument must not be a number");return _(p,i,l)},E.alloc=function(p,i,l){if(typeof p!="number")throw new TypeError("Argument must be a number");var S=_(p);return i!==void 0?typeof l=="string"?S.fill(i,l):S.fill(i):S.fill(0),S},E.allocUnsafe=function(p){if(typeof p!="number")throw new TypeError("Argument must be a number");return _(p)},E.allocUnsafeSlow=function(p){if(typeof p!="number")throw new TypeError("Argument must be a number");return M.SlowBuffer(p)}}(Be,Be.exports)),Be.exports}var Le,nr;function Kr(){if(nr)return Le;nr=1;var T=Lr;return Le=function(M){return!!T(M)},Le}var Ae={exports:{}},Ne,ir;function Br(){return ir||(ir=1,Ne=xr.EventEmitter),Ne}var Ue,or;function Dr(){if(or)return Ue;or=1;function T(b,F){var x=Object.keys(b);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(b);F&&(u=u.filter(function(y){return Object.getOwnPropertyDescriptor(b,y).enumerable})),x.push.apply(x,u)}return x}function w(b){for(var F=1;F<arguments.length;F++){var x=arguments[F]!=null?arguments[F]:{};F%2?T(Object(x),!0).forEach(function(u){M(b,u,x[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(b,Object.getOwnPropertyDescriptors(x)):T(Object(x)).forEach(function(u){Object.defineProperty(b,u,Object.getOwnPropertyDescriptor(x,u))})}return b}function M(b,F,x){return F=p(F),F in b?Object.defineProperty(b,F,{value:x,enumerable:!0,configurable:!0,writable:!0}):b[F]=x,b}function _(b,F){if(!(b instanceof F))throw new TypeError("Cannot call a class as a function")}function N(b,F){for(var x=0;x<F.length;x++){var u=F[x];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(b,p(u.key),u)}}function E(b,F,x){return F&&N(b.prototype,F),x&&N(b,x),Object.defineProperty(b,"prototype",{writable:!1}),b}function p(b){var F=i(b,"string");return typeof F=="symbol"?F:String(F)}function i(b,F){if(typeof b!="object"||b===null)return b;var x=b[Symbol.toPrimitive];if(x!==void 0){var u=x.call(b,F||"default");if(typeof u!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(F==="string"?String:Number)(b)}var l=Ie(),S=l.Buffer,R=Cr,h=R.inspect,g=h&&h.custom||"inspect";function m(b,F,x){S.prototype.copy.call(b,F,x)}return Ue=function(){function b(){_(this,b),this.head=null,this.tail=null,this.length=0}return E(b,[{key:"push",value:function(x){var u={data:x,next:null};this.length>0?this.tail.next=u:this.head=u,this.tail=u,++this.length}},{key:"unshift",value:function(x){var u={data:x,next:this.head};this.length===0&&(this.tail=u),this.head=u,++this.length}},{key:"shift",value:function(){if(this.length!==0){var x=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,x}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(x){if(this.length===0)return"";for(var u=this.head,y=""+u.data;u=u.next;)y+=x+u.data;return y}},{key:"concat",value:function(x){if(this.length===0)return S.alloc(0);for(var u=S.allocUnsafe(x>>>0),y=this.head,C=0;y;)m(y.data,u,C),C+=y.data.length,y=y.next;return u}},{key:"consume",value:function(x,u){var y;return x<this.head.data.length?(y=this.head.data.slice(0,x),this.head.data=this.head.data.slice(x)):x===this.head.data.length?y=this.shift():y=u?this._getString(x):this._getBuffer(x),y}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(x){var u=this.head,y=1,C=u.data;for(x-=C.length;u=u.next;){var L=u.data,I=x>L.length?L.length:x;if(I===L.length?C+=L:C+=L.slice(0,x),x-=I,x===0){I===L.length?(++y,u.next?this.head=u.next:this.head=this.tail=null):(this.head=u,u.data=L.slice(I));break}++y}return this.length-=y,C}},{key:"_getBuffer",value:function(x){var u=S.allocUnsafe(x),y=this.head,C=1;for(y.data.copy(u),x-=y.data.length;y=y.next;){var L=y.data,I=x>L.length?L.length:x;if(L.copy(u,u.length-x,0,I),x-=I,x===0){I===L.length?(++C,y.next?this.head=y.next:this.head=this.tail=null):(this.head=y,y.data=L.slice(I));break}++C}return this.length-=C,u}},{key:g,value:function(x,u){return h(this,w(w({},u),{},{depth:0,customInspect:!1}))}}]),b}(),Ue}var Oe,ar;function Fr(){if(ar)return Oe;ar=1;function T(p,i){var l=this,S=this._readableState&&this._readableState.destroyed,R=this._writableState&&this._writableState.destroyed;return S||R?(i?i(p):p&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,H.nextTick(N,this,p)):H.nextTick(N,this,p)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(p||null,function(h){!i&&h?l._writableState?l._writableState.errorEmitted?H.nextTick(M,l):(l._writableState.errorEmitted=!0,H.nextTick(w,l,h)):H.nextTick(w,l,h):i?(H.nextTick(M,l),i(h)):H.nextTick(M,l)}),this)}function w(p,i){N(p,i),M(p)}function M(p){p._writableState&&!p._writableState.emitClose||p._readableState&&!p._readableState.emitClose||p.emit("close")}function _(){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 N(p,i){p.emit("error",i)}function E(p,i){var l=p._readableState,S=p._writableState;l&&l.autoDestroy||S&&S.autoDestroy?p.destroy(i):p.emit("error",i)}return Oe={destroy:T,undestroy:_,errorOrDestroy:E},Oe}var De={},ur;function Ee(){if(ur)return De;ur=1;function T(i,l){i.prototype=Object.create(l.prototype),i.prototype.constructor=i,i.__proto__=l}var w={};function M(i,l,S){S||(S=Error);function R(g,m,b){return typeof l=="string"?l:l(g,m,b)}var h=function(g){T(m,g);function m(b,F,x){return g.call(this,R(b,F,x))||this}return m}(S);h.prototype.name=S.name,h.prototype.code=i,w[i]=h}function _(i,l){if(Array.isArray(i)){var S=i.length;return i=i.map(function(R){return String(R)}),S>2?"one of ".concat(l," ").concat(i.slice(0,S-1).join(", "),", or ")+i[S-1]:S===2?"one of ".concat(l," ").concat(i[0]," or ").concat(i[1]):"of ".concat(l," ").concat(i[0])}else return"of ".concat(l," ").concat(String(i))}function N(i,l,S){return i.substr(!S||S<0?0:+S,l.length)===l}function E(i,l,S){return(S===void 0||S>i.length)&&(S=i.length),i.substring(S-l.length,S)===l}function p(i,l,S){return typeof S!="number"&&(S=0),S+l.length>i.length?!1:i.indexOf(l,S)!==-1}return M("ERR_INVALID_OPT_VALUE",function(i,l){return'The value "'+l+'" is invalid for option "'+i+'"'},TypeError),M("ERR_INVALID_ARG_TYPE",function(i,l,S){var R;typeof l=="string"&&N(l,"not ")?(R="must not be",l=l.replace(/^not /,"")):R="must be";var h;if(E(i," argument"))h="The ".concat(i," ").concat(R," ").concat(_(l,"type"));else{var g=p(i,".")?"property":"argument";h='The "'.concat(i,'" ').concat(g," ").concat(R," ").concat(_(l,"type"))}return h+=". Received type ".concat(typeof S),h},TypeError),M("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),M("ERR_METHOD_NOT_IMPLEMENTED",function(i){return"The "+i+" method is not implemented"}),M("ERR_STREAM_PREMATURE_CLOSE","Premature close"),M("ERR_STREAM_DESTROYED",function(i){return"Cannot call "+i+" after a stream was destroyed"}),M("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),M("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),M("ERR_STREAM_WRITE_AFTER_END","write after end"),M("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),M("ERR_UNKNOWN_ENCODING",function(i){return"Unknown encoding: "+i},TypeError),M("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),De.codes=w,De}var Pe,fr;function Ar(){if(fr)return Pe;fr=1;var T=Ee().codes.ERR_INVALID_OPT_VALUE;function w(_,N,E){return _.highWaterMark!=null?_.highWaterMark:N?_[E]:null}function M(_,N,E,p){var i=w(N,p,E);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var l=p?E:"highWaterMark";throw new T(l,i)}return Math.floor(i)}return _.objectMode?16:16*1024}return Pe={getHighWaterMark:M},Pe}var ke,lr;function Pr(){if(lr)return ke;lr=1,ke=T;function T(M,_){if(w("noDeprecation"))return M;var N=!1;function E(){if(!N){if(w("throwDeprecation"))throw new Error(_);w("traceDeprecation")?console.trace(_):console.warn(_),N=!0}return M.apply(this,arguments)}return E}function w(M){try{if(!be.localStorage)return!1}catch{return!1}var _=be.localStorage[M];return _==null?!1:String(_).toLowerCase()==="true"}return ke}var qe,sr;function Tr(){if(sr)return qe;sr=1,qe=k;function T(d){var s=this;this.next=null,this.entry=null,this.finish=function(){ye(s,d)}}var w;k.WritableState=D;var M={deprecate:Pr()},_=Br(),N=Ie().Buffer,E=(typeof be<"u"?be:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function p(d){return N.from(d)}function i(d){return N.isBuffer(d)||d instanceof E}var l=Fr(),S=Ar(),R=S.getHighWaterMark,h=Ee().codes,g=h.ERR_INVALID_ARG_TYPE,m=h.ERR_METHOD_NOT_IMPLEMENTED,b=h.ERR_MULTIPLE_CALLBACK,F=h.ERR_STREAM_CANNOT_PIPE,x=h.ERR_STREAM_DESTROYED,u=h.ERR_STREAM_NULL_VALUES,y=h.ERR_STREAM_WRITE_AFTER_END,C=h.ERR_UNKNOWN_ENCODING,L=l.errorOrDestroy;Ce(k,_);function I(){}function D(d,s,A){w=w||_e(),d=d||{},typeof A!="boolean"&&(A=s instanceof w),this.objectMode=!!d.objectMode,A&&(this.objectMode=this.objectMode||!!d.writableObjectMode),this.highWaterMark=R(this,d,"writableHighWaterMark",A),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var O=d.decodeStrings===!1;this.decodeStrings=!O,this.defaultEncoding=d.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(q){Re(s,q)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=d.emitClose!==!1,this.autoDestroy=!!d.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new T(this)}D.prototype.getBuffer=function(){for(var s=this.bufferedRequest,A=[];s;)A.push(s),s=s.next;return A},function(){try{Object.defineProperty(D.prototype,"buffer",{get:M.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var G;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(G=Function.prototype[Symbol.hasInstance],Object.defineProperty(k,Symbol.hasInstance,{value:function(s){return G.call(this,s)?!0:this!==k?!1:s&&s._writableState instanceof D}})):G=function(s){return s instanceof this};function k(d){w=w||_e();var s=this instanceof w;if(!s&&!G.call(k,this))return new k(d);this._writableState=new D(d,this,s),this.writable=!0,d&&(typeof d.write=="function"&&(this._write=d.write),typeof d.writev=="function"&&(this._writev=d.writev),typeof d.destroy=="function"&&(this._destroy=d.destroy),typeof d.final=="function"&&(this._final=d.final)),_.call(this)}k.prototype.pipe=function(){L(this,new F)};function P(d,s){var A=new y;L(d,A),H.nextTick(s,A)}function Q(d,s,A,O){var q;return A===null?q=new u:typeof A!="string"&&!s.objectMode&&(q=new g("chunk",["string","Buffer"],A)),q?(L(d,q),H.nextTick(O,q),!1):!0}k.prototype.write=function(d,s,A){var O=this._writableState,q=!1,o=!O.objectMode&&i(d);return o&&!N.isBuffer(d)&&(d=p(d)),typeof s=="function"&&(A=s,s=null),o?s="buffer":s||(s=O.defaultEncoding),typeof A!="function"&&(A=I),O.ending?P(this,A):(o||Q(this,O,d,A))&&(O.pendingcb++,q=me(this,O,o,d,s,A)),q},k.prototype.cork=function(){this._writableState.corked++},k.prototype.uncork=function(){var d=this._writableState;d.corked&&(d.corked--,!d.writing&&!d.corked&&!d.bufferProcessing&&d.bufferedRequest&&oe(this,d))},k.prototype.setDefaultEncoding=function(s){if(typeof s=="string"&&(s=s.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((s+"").toLowerCase())>-1))throw new C(s);return this._writableState.defaultEncoding=s,this},Object.defineProperty(k.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function ue(d,s,A){return!d.objectMode&&d.decodeStrings!==!1&&typeof s=="string"&&(s=N.from(s,A)),s}Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function me(d,s,A,O,q,o){if(!A){var a=ue(s,O,q);O!==a&&(A=!0,q="buffer",O=a)}var B=s.objectMode?1:O.length;s.length+=B;var U=s.length<s.highWaterMark;if(U||(s.needDrain=!0),s.writing||s.corked){var Y=s.lastBufferedRequest;s.lastBufferedRequest={chunk:O,encoding:q,isBuf:A,callback:o,next:null},Y?Y.next=s.lastBufferedRequest:s.bufferedRequest=s.lastBufferedRequest,s.bufferedRequestCount+=1}else ie(d,s,!1,B,O,q,o);return U}function ie(d,s,A,O,q,o,a){s.writelen=O,s.writecb=a,s.writing=!0,s.sync=!0,s.destroyed?s.onwrite(new x("write")):A?d._writev(q,s.onwrite):d._write(q,o,s.onwrite),s.sync=!1}function he(d,s,A,O,q){--s.pendingcb,A?(H.nextTick(q,O),H.nextTick(te,d,s),d._writableState.errorEmitted=!0,L(d,O)):(q(O),d._writableState.errorEmitted=!0,L(d,O),te(d,s))}function fe(d){d.writing=!1,d.writecb=null,d.length-=d.writelen,d.writelen=0}function Re(d,s){var A=d._writableState,O=A.sync,q=A.writecb;if(typeof q!="function")throw new b;if(fe(A),s)he(d,A,O,s,q);else{var o=de(A)||d.destroyed;!o&&!A.corked&&!A.bufferProcessing&&A.bufferedRequest&&oe(d,A),O?H.nextTick(ne,d,A,o,q):ne(d,A,o,q)}}function ne(d,s,A,O){A||ce(d,s),s.pendingcb--,O(),te(d,s)}function ce(d,s){s.length===0&&s.needDrain&&(s.needDrain=!1,d.emit("drain"))}function oe(d,s){s.bufferProcessing=!0;var A=s.bufferedRequest;if(d._writev&&A&&A.next){var O=s.bufferedRequestCount,q=new Array(O),o=s.corkedRequestsFree;o.entry=A;for(var a=0,B=!0;A;)q[a]=A,A.isBuf||(B=!1),A=A.next,a+=1;q.allBuffers=B,ie(d,s,!0,s.length,q,"",o.finish),s.pendingcb++,s.lastBufferedRequest=null,o.next?(s.corkedRequestsFree=o.next,o.next=null):s.corkedRequestsFree=new T(s),s.bufferedRequestCount=0}else{for(;A;){var U=A.chunk,Y=A.encoding,j=A.callback,$=s.objectMode?1:U.length;if(ie(d,s,!1,$,U,Y,j),A=A.next,s.bufferedRequestCount--,s.writing)break}A===null&&(s.lastBufferedRequest=null)}s.bufferedRequest=A,s.bufferProcessing=!1}k.prototype._write=function(d,s,A){A(new m("_write()"))},k.prototype._writev=null,k.prototype.end=function(d,s,A){var O=this._writableState;return typeof d=="function"?(A=d,d=null,s=null):typeof s=="function"&&(A=s,s=null),d!=null&&this.write(d,s),O.corked&&(O.corked=1,this.uncork()),O.ending||pe(this,O,A),this},Object.defineProperty(k.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function de(d){return d.ending&&d.length===0&&d.bufferedRequest===null&&!d.finished&&!d.writing}function J(d,s){d._final(function(A){s.pendingcb--,A&&L(d,A),s.prefinished=!0,d.emit("prefinish"),te(d,s)})}function Z(d,s){!s.prefinished&&!s.finalCalled&&(typeof d._final=="function"&&!s.destroyed?(s.pendingcb++,s.finalCalled=!0,H.nextTick(J,d,s)):(s.prefinished=!0,d.emit("prefinish")))}function te(d,s){var A=de(s);if(A&&(Z(d,s),s.pendingcb===0&&(s.finished=!0,d.emit("finish"),s.autoDestroy))){var O=d._readableState;(!O||O.autoDestroy&&O.endEmitted)&&d.destroy()}return A}function pe(d,s,A){s.ending=!0,te(d,s),A&&(s.finished?H.nextTick(A):d.once("finish",A)),s.ended=!0,d.writable=!1}function ye(d,s,A){var O=d.entry;for(d.entry=null;O;){var q=O.callback;s.pendingcb--,q(A),O=O.next}s.corkedRequestsFree.next=d}return Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(s){this._writableState&&(this._writableState.destroyed=s)}}),k.prototype.destroy=l.destroy,k.prototype._undestroy=l.undestroy,k.prototype._destroy=function(d,s){s(d)},qe}var je,hr;function _e(){if(hr)return je;hr=1;var T=Object.keys||function(S){var R=[];for(var h in S)R.push(h);return R};je=p;var w=Ir(),M=Tr();Ce(p,w);for(var _=T(M.prototype),N=0;N<_.length;N++){var E=_[N];p.prototype[E]||(p.prototype[E]=M.prototype[E])}function p(S){if(!(this instanceof p))return new p(S);w.call(this,S),M.call(this,S),this.allowHalfOpen=!0,S&&(S.readable===!1&&(this.readable=!1),S.writable===!1&&(this.writable=!1),S.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",i)))}Object.defineProperty(p.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(p.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(p.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function i(){this._writableState.ended||H.nextTick(l,this)}function l(S){S.end()}return Object.defineProperty(p.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(R){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=R,this._writableState.destroyed=R)}}),je}var We={},cr;function dr(){if(cr)return We;cr=1;var T=Or().Buffer,w=T.isEncoding||function(u){switch(u=""+u,u&&u.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 M(u){if(!u)return"utf8";for(var y;;)switch(u){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 u;default:if(y)return;u=(""+u).toLowerCase(),y=!0}}function _(u){var y=M(u);if(typeof y!="string"&&(T.isEncoding===w||!w(u)))throw new Error("Unknown encoding: "+u);return y||u}We.StringDecoder=N;function N(u){this.encoding=_(u);var y;switch(this.encoding){case"utf16le":this.text=h,this.end=g,y=4;break;case"utf8":this.fillLast=l,y=4;break;case"base64":this.text=m,this.end=b,y=3;break;default:this.write=F,this.end=x;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=T.allocUnsafe(y)}N.prototype.write=function(u){if(u.length===0)return"";var y,C;if(this.lastNeed){if(y=this.fillLast(u),y===void 0)return"";C=this.lastNeed,this.lastNeed=0}else C=0;return C<u.length?y?y+this.text(u,C):this.text(u,C):y||""},N.prototype.end=R,N.prototype.text=S,N.prototype.fillLast=function(u){if(this.lastNeed<=u.length)return u.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);u.copy(this.lastChar,this.lastTotal-this.lastNeed,0,u.length),this.lastNeed-=u.length};function E(u){return u<=127?0:u>>5===6?2:u>>4===14?3:u>>3===30?4:u>>6===2?-1:-2}function p(u,y,C){var L=y.length-1;if(L<C)return 0;var I=E(y[L]);return I>=0?(I>0&&(u.lastNeed=I-1),I):--L<C||I===-2?0:(I=E(y[L]),I>=0?(I>0&&(u.lastNeed=I-2),I):--L<C||I===-2?0:(I=E(y[L]),I>=0?(I>0&&(I===2?I=0:u.lastNeed=I-3),I):0))}function i(u,y,C){if((y[0]&192)!==128)return u.lastNeed=0,"�";if(u.lastNeed>1&&y.length>1){if((y[1]&192)!==128)return u.lastNeed=1,"�";if(u.lastNeed>2&&y.length>2&&(y[2]&192)!==128)return u.lastNeed=2,"�"}}function l(u){var y=this.lastTotal-this.lastNeed,C=i(this,u);if(C!==void 0)return C;if(this.lastNeed<=u.length)return u.copy(this.lastChar,y,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);u.copy(this.lastChar,y,0,u.length),this.lastNeed-=u.length}function S(u,y){var C=p(this,u,y);if(!this.lastNeed)return u.toString("utf8",y);this.lastTotal=C;var L=u.length-(C-this.lastNeed);return u.copy(this.lastChar,0,L),u.toString("utf8",y,L)}function R(u){var y=u&&u.length?this.write(u):"";return this.lastNeed?y+"�":y}function h(u,y){if((u.length-y)%2===0){var C=u.toString("utf16le",y);if(C){var L=C.charCodeAt(C.length-1);if(L>=55296&&L<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=u[u.length-2],this.lastChar[1]=u[u.length-1],C.slice(0,-1)}return C}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=u[u.length-1],u.toString("utf16le",y,u.length-1)}function g(u){var y=u&&u.length?this.write(u):"";if(this.lastNeed){var C=this.lastTotal-this.lastNeed;return y+this.lastChar.toString("utf16le",0,C)}return y}function m(u,y){var C=(u.length-y)%3;return C===0?u.toString("base64",y):(this.lastNeed=3-C,this.lastTotal=3,C===1?this.lastChar[0]=u[u.length-1]:(this.lastChar[0]=u[u.length-2],this.lastChar[1]=u[u.length-1]),u.toString("base64",y,u.length-C))}function b(u){var y=u&&u.length?this.write(u):"";return this.lastNeed?y+this.lastChar.toString("base64",0,3-this.lastNeed):y}function F(u){return u.toString(this.encoding)}function x(u){return u&&u.length?this.write(u):""}return We}var $e,pr;function Ze(){if(pr)return $e;pr=1;var T=Ee().codes.ERR_STREAM_PREMATURE_CLOSE;function w(E){var p=!1;return function(){if(!p){p=!0;for(var i=arguments.length,l=new Array(i),S=0;S<i;S++)l[S]=arguments[S];E.apply(this,l)}}}function M(){}function _(E){return E.setHeader&&typeof E.abort=="function"}function N(E,p,i){if(typeof p=="function")return N(E,null,p);p||(p={}),i=w(i||M);var l=p.readable||p.readable!==!1&&E.readable,S=p.writable||p.writable!==!1&&E.writable,R=function(){E.writable||g()},h=E._writableState&&E._writableState.finished,g=function(){S=!1,h=!0,l||i.call(E)},m=E._readableState&&E._readableState.endEmitted,b=function(){l=!1,m=!0,S||i.call(E)},F=function(C){i.call(E,C)},x=function(){var C;if(l&&!m)return(!E._readableState||!E._readableState.ended)&&(C=new T),i.call(E,C);if(S&&!h)return(!E._writableState||!E._writableState.ended)&&(C=new T),i.call(E,C)},u=function(){E.req.on("finish",g)};return _(E)?(E.on("complete",g),E.on("abort",x),E.req?u():E.on("request",u)):S&&!E._writableState&&(E.on("end",R),E.on("close",R)),E.on("end",b),E.on("finish",g),p.error!==!1&&E.on("error",F),E.on("close",x),function(){E.removeListener("complete",g),E.removeListener("abort",x),E.removeListener("request",u),E.req&&E.req.removeListener("finish",g),E.removeListener("end",R),E.removeListener("close",R),E.removeListener("finish",g),E.removeListener("end",b),E.removeListener("error",F),E.removeListener("close",x)}}return $e=N,$e}var He,yr;function kr(){if(yr)return He;yr=1;var T;function w(C,L,I){return L=M(L),L in C?Object.defineProperty(C,L,{value:I,enumerable:!0,configurable:!0,writable:!0}):C[L]=I,C}function M(C){var L=_(C,"string");return typeof L=="symbol"?L:String(L)}function _(C,L){if(typeof C!="object"||C===null)return C;var I=C[Symbol.toPrimitive];if(I!==void 0){var D=I.call(C,L||"default");if(typeof D!="object")return D;throw new TypeError("@@toPrimitive must return a primitive value.")}return(L==="string"?String:Number)(C)}var N=Ze(),E=Symbol("lastResolve"),p=Symbol("lastReject"),i=Symbol("error"),l=Symbol("ended"),S=Symbol("lastPromise"),R=Symbol("handlePromise"),h=Symbol("stream");function g(C,L){return{value:C,done:L}}function m(C){var L=C[E];if(L!==null){var I=C[h].read();I!==null&&(C[S]=null,C[E]=null,C[p]=null,L(g(I,!1)))}}function b(C){H.nextTick(m,C)}function F(C,L){return function(I,D){C.then(function(){if(L[l]){I(g(void 0,!0));return}L[R](I,D)},D)}}var x=Object.getPrototypeOf(function(){}),u=Object.setPrototypeOf((T={get stream(){return this[h]},next:function(){var L=this,I=this[i];if(I!==null)return Promise.reject(I);if(this[l])return Promise.resolve(g(void 0,!0));if(this[h].destroyed)return new Promise(function(P,Q){H.nextTick(function(){L[i]?Q(L[i]):P(g(void 0,!0))})});var D=this[S],G;if(D)G=new Promise(F(D,this));else{var k=this[h].read();if(k!==null)return Promise.resolve(g(k,!1));G=new Promise(this[R])}return this[S]=G,G}},w(T,Symbol.asyncIterator,function(){return this}),w(T,"return",function(){var L=this;return new Promise(function(I,D){L[h].destroy(null,function(G){if(G){D(G);return}I(g(void 0,!0))})})}),T),x),y=function(L){var I,D=Object.create(u,(I={},w(I,h,{value:L,writable:!0}),w(I,E,{value:null,writable:!0}),w(I,p,{value:null,writable:!0}),w(I,i,{value:null,writable:!0}),w(I,l,{value:L._readableState.endEmitted,writable:!0}),w(I,R,{value:function(k,P){var Q=D[h].read();Q?(D[S]=null,D[E]=null,D[p]=null,k(g(Q,!1))):(D[E]=k,D[p]=P)},writable:!0}),I));return D[S]=null,N(L,function(G){if(G&&G.code!=="ERR_STREAM_PREMATURE_CLOSE"){var k=D[p];k!==null&&(D[S]=null,D[E]=null,D[p]=null,k(G)),D[i]=G;return}var P=D[E];P!==null&&(D[S]=null,D[E]=null,D[p]=null,P(g(void 0,!0))),D[l]=!0}),L.on("readable",b.bind(null,D)),D};return He=y,He}var Ge,gr;function qr(){return gr||(gr=1,Ge=function(){throw new Error("Readable.from is not available in the browser")}),Ge}var Ve,wr;function Ir(){if(wr)return Ve;wr=1,Ve=P;var T;P.ReadableState=k,xr.EventEmitter;var w=function(a,B){return a.listeners(B).length},M=Br(),_=Ie().Buffer,N=(typeof be<"u"?be:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function E(o){return _.from(o)}function p(o){return _.isBuffer(o)||o instanceof N}var i=Cr,l;i&&i.debuglog?l=i.debuglog("stream"):l=function(){};var S=Dr(),R=Fr(),h=Ar(),g=h.getHighWaterMark,m=Ee().codes,b=m.ERR_INVALID_ARG_TYPE,F=m.ERR_STREAM_PUSH_AFTER_EOF,x=m.ERR_METHOD_NOT_IMPLEMENTED,u=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,y,C,L;Ce(P,M);var I=R.errorOrDestroy,D=["error","close","destroy","pause","resume"];function G(o,a,B){if(typeof o.prependListener=="function")return o.prependListener(a,B);!o._events||!o._events[a]?o.on(a,B):Array.isArray(o._events[a])?o._events[a].unshift(B):o._events[a]=[B,o._events[a]]}function k(o,a,B){T=T||_e(),o=o||{},typeof B!="boolean"&&(B=a instanceof T),this.objectMode=!!o.objectMode,B&&(this.objectMode=this.objectMode||!!o.readableObjectMode),this.highWaterMark=g(this,o,"readableHighWaterMark",B),this.buffer=new S,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=o.emitClose!==!1,this.autoDestroy=!!o.autoDestroy,this.destroyed=!1,this.defaultEncoding=o.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,o.encoding&&(y||(y=dr().StringDecoder),this.decoder=new y(o.encoding),this.encoding=o.encoding)}function P(o){if(T=T||_e(),!(this instanceof P))return new P(o);var a=this instanceof T;this._readableState=new k(o,this,a),this.readable=!0,o&&(typeof o.read=="function"&&(this._read=o.read),typeof o.destroy=="function"&&(this._destroy=o.destroy)),M.call(this)}Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(a){this._readableState&&(this._readableState.destroyed=a)}}),P.prototype.destroy=R.destroy,P.prototype._undestroy=R.undestroy,P.prototype._destroy=function(o,a){a(o)},P.prototype.push=function(o,a){var B=this._readableState,U;return B.objectMode?U=!0:typeof o=="string"&&(a=a||B.defaultEncoding,a!==B.encoding&&(o=_.from(o,a),a=""),U=!0),Q(this,o,a,!1,U)},P.prototype.unshift=function(o){return Q(this,o,null,!0,!1)};function Q(o,a,B,U,Y){l("readableAddChunk",a);var j=o._readableState;if(a===null)j.reading=!1,Re(o,j);else{var $;if(Y||($=me(j,a)),$)I(o,$);else if(j.objectMode||a&&a.length>0)if(typeof a!="string"&&!j.objectMode&&Object.getPrototypeOf(a)!==_.prototype&&(a=E(a)),U)j.endEmitted?I(o,new u):ue(o,j,a,!0);else if(j.ended)I(o,new F);else{if(j.destroyed)return!1;j.reading=!1,j.decoder&&!B?(a=j.decoder.write(a),j.objectMode||a.length!==0?ue(o,j,a,!1):oe(o,j)):ue(o,j,a,!1)}else U||(j.reading=!1,oe(o,j))}return!j.ended&&(j.length<j.highWaterMark||j.length===0)}function ue(o,a,B,U){a.flowing&&a.length===0&&!a.sync?(a.awaitDrain=0,o.emit("data",B)):(a.length+=a.objectMode?1:B.length,U?a.buffer.unshift(B):a.buffer.push(B),a.needReadable&&ne(o)),oe(o,a)}function me(o,a){var B;return!p(a)&&typeof a!="string"&&a!==void 0&&!o.objectMode&&(B=new b("chunk",["string","Buffer","Uint8Array"],a)),B}P.prototype.isPaused=function(){return this._readableState.flowing===!1},P.prototype.setEncoding=function(o){y||(y=dr().StringDecoder);var a=new y(o);this._readableState.decoder=a,this._readableState.encoding=this._readableState.decoder.encoding;for(var B=this._readableState.buffer.head,U="";B!==null;)U+=a.write(B.data),B=B.next;return this._readableState.buffer.clear(),U!==""&&this._readableState.buffer.push(U),this._readableState.length=U.length,this};var ie=1073741824;function he(o){return o>=ie?o=ie:(o--,o|=o>>>1,o|=o>>>2,o|=o>>>4,o|=o>>>8,o|=o>>>16,o++),o}function fe(o,a){return o<=0||a.length===0&&a.ended?0:a.objectMode?1:o!==o?a.flowing&&a.length?a.buffer.head.data.length:a.length:(o>a.highWaterMark&&(a.highWaterMark=he(o)),o<=a.length?o:a.ended?a.length:(a.needReadable=!0,0))}P.prototype.read=function(o){l("read",o),o=parseInt(o,10);var a=this._readableState,B=o;if(o!==0&&(a.emittedReadable=!1),o===0&&a.needReadable&&((a.highWaterMark!==0?a.length>=a.highWaterMark:a.length>0)||a.ended))return l("read: emitReadable",a.length,a.ended),a.length===0&&a.ended?A(this):ne(this),null;if(o=fe(o,a),o===0&&a.ended)return a.length===0&&A(this),null;var U=a.needReadable;l("need readable",U),(a.length===0||a.length-o<a.highWaterMark)&&(U=!0,l("length less than watermark",U)),a.ended||a.reading?(U=!1,l("reading or ended",U)):U&&(l("do read"),a.reading=!0,a.sync=!0,a.length===0&&(a.needReadable=!0),this._read(a.highWaterMark),a.sync=!1,a.reading||(o=fe(B,a)));var Y;return o>0?Y=s(o,a):Y=null,Y===null?(a.needReadable=a.length<=a.highWaterMark,o=0):(a.length-=o,a.awaitDrain=0),a.length===0&&(a.ended||(a.needReadable=!0),B!==o&&a.ended&&A(this)),Y!==null&&this.emit("data",Y),Y};function Re(o,a){if(l("onEofChunk"),!a.ended){if(a.decoder){var B=a.decoder.end();B&&B.length&&(a.buffer.push(B),a.length+=a.objectMode?1:B.length)}a.ended=!0,a.sync?ne(o):(a.needReadable=!1,a.emittedReadable||(a.emittedReadable=!0,ce(o)))}}function ne(o){var a=o._readableState;l("emitReadable",a.needReadable,a.emittedReadable),a.needReadable=!1,a.emittedReadable||(l("emitReadable",a.flowing),a.emittedReadable=!0,H.nextTick(ce,o))}function ce(o){var a=o._readableState;l("emitReadable_",a.destroyed,a.length,a.ended),!a.destroyed&&(a.length||a.ended)&&(o.emit("readable"),a.emittedReadable=!1),a.needReadable=!a.flowing&&!a.ended&&a.length<=a.highWaterMark,d(o)}function oe(o,a){a.readingMore||(a.readingMore=!0,H.nextTick(de,o,a))}function de(o,a){for(;!a.reading&&!a.ended&&(a.length<a.highWaterMark||a.flowing&&a.length===0);){var B=a.length;if(l("maybeReadMore read 0"),o.read(0),B===a.length)break}a.readingMore=!1}P.prototype._read=function(o){I(this,new x("_read()"))},P.prototype.pipe=function(o,a){var B=this,U=this._readableState;switch(U.pipesCount){case 0:U.pipes=o;break;case 1:U.pipes=[U.pipes,o];break;default:U.pipes.push(o);break}U.pipesCount+=1,l("pipe count=%d opts=%j",U.pipesCount,a);var Y=(!a||a.end!==!1)&&o!==H.stdout&&o!==H.stderr,j=Y?ae:se;U.endEmitted?H.nextTick(j):B.once("end",j),o.on("unpipe",$);function $(t,e){l("onunpipe"),t===B&&e&&e.hasUnpiped===!1&&(e.hasUnpiped=!0,we())}function ae(){l("onend"),o.end()}var ge=J(B);o.on("drain",ge);var ve=!1;function we(){l("cleanup"),o.removeListener("close",Se),o.removeListener("finish",re),o.removeListener("drain",ge),o.removeListener("error",le),o.removeListener("unpipe",$),B.removeListener("end",ae),B.removeListener("end",se),B.removeListener("data",ee),ve=!0,U.awaitDrain&&(!o._writableState||o._writableState.needDrain)&&ge()}B.on("data",ee);function ee(t){l("ondata");var e=o.write(t);l("dest.write",e),e===!1&&((U.pipesCount===1&&U.pipes===o||U.pipesCount>1&&q(U.pipes,o)!==-1)&&!ve&&(l("false write response, pause",U.awaitDrain),U.awaitDrain++),B.pause())}function le(t){l("onerror",t),se(),o.removeListener("error",le),w(o,"error")===0&&I(o,t)}G(o,"error",le);function Se(){o.removeListener("finish",re),se()}o.once("close",Se);function re(){l("onfinish"),o.removeListener("close",Se),se()}o.once("finish",re);function se(){l("unpipe"),B.unpipe(o)}return o.emit("pipe",B),U.flowing||(l("pipe resume"),B.resume()),o};function J(o){return function(){var B=o._readableState;l("pipeOnDrain",B.awaitDrain),B.awaitDrain&&B.awaitDrain--,B.awaitDrain===0&&w(o,"data")&&(B.flowing=!0,d(o))}}P.prototype.unpipe=function(o){var a=this._readableState,B={hasUnpiped:!1};if(a.pipesCount===0)return this;if(a.pipesCount===1)return o&&o!==a.pipes?this:(o||(o=a.pipes),a.pipes=null,a.pipesCount=0,a.flowing=!1,o&&o.emit("unpipe",this,B),this);if(!o){var U=a.pipes,Y=a.pipesCount;a.pipes=null,a.pipesCount=0,a.flowing=!1;for(var j=0;j<Y;j++)U[j].emit("unpipe",this,{hasUnpiped:!1});return this}var $=q(a.pipes,o);return $===-1?this:(a.pipes.splice($,1),a.pipesCount-=1,a.pipesCount===1&&(a.pipes=a.pipes[0]),o.emit("unpipe",this,B),this)},P.prototype.on=function(o,a){var B=M.prototype.on.call(this,o,a),U=this._readableState;return o==="data"?(U.readableListening=this.listenerCount("readable")>0,U.flowing!==!1&&this.resume()):o==="readable"&&!U.endEmitted&&!U.readableListening&&(U.readableListening=U.needReadable=!0,U.flowing=!1,U.emittedReadable=!1,l("on readable",U.length,U.reading),U.length?ne(this):U.reading||H.nextTick(te,this)),B},P.prototype.addListener=P.prototype.on,P.prototype.removeListener=function(o,a){var B=M.prototype.removeListener.call(this,o,a);return o==="readable"&&H.nextTick(Z,this),B},P.prototype.removeAllListeners=function(o){var a=M.prototype.removeAllListeners.apply(this,arguments);return(o==="readable"||o===void 0)&&H.nextTick(Z,this),a};function Z(o){var a=o._readableState;a.readableListening=o.listenerCount("readable")>0,a.resumeScheduled&&!a.paused?a.flowing=!0:o.listenerCount("data")>0&&o.resume()}function te(o){l("readable nexttick read 0"),o.read(0)}P.prototype.resume=function(){var o=this._readableState;return o.flowing||(l("resume"),o.flowing=!o.readableListening,pe(this,o)),o.paused=!1,this};function pe(o,a){a.resumeScheduled||(a.resumeScheduled=!0,H.nextTick(ye,o,a))}function ye(o,a){l("resume",a.reading),a.reading||o.read(0),a.resumeScheduled=!1,o.emit("resume"),d(o),a.flowing&&!a.reading&&o.read(0)}P.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function d(o){var a=o._readableState;for(l("flow",a.flowing);a.flowing&&o.read()!==null;);}P.prototype.wrap=function(o){var a=this,B=this._readableState,U=!1;o.on("end",function(){if(l("wrapped end"),B.decoder&&!B.ended){var $=B.decoder.end();$&&$.length&&a.push($)}a.push(null)}),o.on("data",function($){if(l("wrapped data"),B.decoder&&($=B.decoder.write($)),!(B.objectMode&&$==null)&&!(!B.objectMode&&(!$||!$.length))){var ae=a.push($);ae||(U=!0,o.pause())}});for(var Y in o)this[Y]===void 0&&typeof o[Y]=="function"&&(this[Y]=function(ae){return function(){return o[ae].apply(o,arguments)}}(Y));for(var j=0;j<D.length;j++)o.on(D[j],this.emit.bind(this,D[j]));return this._read=function($){l("wrapped _read",$),U&&(U=!1,o.resume())},this},typeof Symbol=="function"&&(P.prototype[Symbol.asyncIterator]=function(){return C===void 0&&(C=kr()),C(this)}),Object.defineProperty(P.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(P.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(P.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(a){this._readableState&&(this._readableState.flowing=a)}}),P._fromList=s,Object.defineProperty(P.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function s(o,a){if(a.length===0)return null;var B;return a.objectMode?B=a.buffer.shift():!o||o>=a.length?(a.decoder?B=a.buffer.join(""):a.buffer.length===1?B=a.buffer.first():B=a.buffer.concat(a.length),a.buffer.clear()):B=a.buffer.consume(o,a.decoder),B}function A(o){var a=o._readableState;l("endReadable",a.endEmitted),a.endEmitted||(a.ended=!0,H.nextTick(O,a,o))}function O(o,a){if(l("endReadableNT",o.endEmitted,o.length),!o.endEmitted&&o.length===0&&(o.endEmitted=!0,a.readable=!1,a.emit("end"),o.autoDestroy)){var B=a._writableState;(!B||B.autoDestroy&&B.finished)&&a.destroy()}}typeof Symbol=="function"&&(P.from=function(o,a){return L===void 0&&(L=qr()),L(P,o,a)});function q(o,a){for(var B=0,U=o.length;B<U;B++)if(o[B]===a)return B;return-1}return Ve}var Ye,br;function Mr(){if(br)return Ye;br=1,Ye=i;var T=Ee().codes,w=T.ERR_METHOD_NOT_IMPLEMENTED,M=T.ERR_MULTIPLE_CALLBACK,_=T.ERR_TRANSFORM_ALREADY_TRANSFORMING,N=T.ERR_TRANSFORM_WITH_LENGTH_0,E=_e();Ce(i,E);function p(R,h){var g=this._transformState;g.transforming=!1;var m=g.writecb;if(m===null)return this.emit("error",new M);g.writechunk=null,g.writecb=null,h!=null&&this.push(h),m(R);var b=this._readableState;b.reading=!1,(b.needReadable||b.length<b.highWaterMark)&&this._read(b.highWaterMark)}function i(R){if(!(this instanceof i))return new i(R);E.call(this,R),this._transformState={afterTransform:p.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,R&&(typeof R.transform=="function"&&(this._transform=R.transform),typeof R.flush=="function"&&(this._flush=R.flush)),this.on("prefinish",l)}function l(){var R=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(h,g){S(R,h,g)}):S(this,null,null)}i.prototype.push=function(R,h){return this._transformState.needTransform=!1,E.prototype.push.call(this,R,h)},i.prototype._transform=function(R,h,g){g(new w("_transform()"))},i.prototype._write=function(R,h,g){var m=this._transformState;if(m.writecb=g,m.writechunk=R,m.writeencoding=h,!m.transforming){var b=this._readableState;(m.needTransform||b.needReadable||b.length<b.highWaterMark)&&this._read(b.highWaterMark)}},i.prototype._read=function(R){var h=this._transformState;h.writechunk!==null&&!h.transforming?(h.transforming=!0,this._transform(h.writechunk,h.writeencoding,h.afterTransform)):h.needTransform=!0},i.prototype._destroy=function(R,h){E.prototype._destroy.call(this,R,function(g){h(g)})};function S(R,h,g){if(h)return R.emit("error",h);if(g!=null&&R.push(g),R._writableState.length)throw new N;if(R._transformState.transforming)throw new _;return R.push(null)}return Ye}var Ke,_r;function jr(){if(_r)return Ke;_r=1,Ke=w;var T=Mr();Ce(w,T);function w(M){if(!(this instanceof w))return new w(M);T.call(this,M)}return w.prototype._transform=function(M,_,N){N(null,M)},Ke}var Je,Er;function Wr(){if(Er)return Je;Er=1;var T;function w(g){var m=!1;return function(){m||(m=!0,g.apply(void 0,arguments))}}var M=Ee().codes,_=M.ERR_MISSING_ARGS,N=M.ERR_STREAM_DESTROYED;function E(g){if(g)throw g}function p(g){return g.setHeader&&typeof g.abort=="function"}function i(g,m,b,F){F=w(F);var x=!1;g.on("close",function(){x=!0}),T===void 0&&(T=Ze()),T(g,{readable:m,writable:b},function(y){if(y)return F(y);x=!0,F()});var u=!1;return function(y){if(!x&&!u){if(u=!0,p(g))return g.abort();if(typeof g.destroy=="function")return g.destroy();F(y||new N("pipe"))}}}function l(g){g()}function S(g,m){return g.pipe(m)}function R(g){return!g.length||typeof g[g.length-1]!="function"?E:g.pop()}function h(){for(var g=arguments.length,m=new Array(g),b=0;b<g;b++)m[b]=arguments[b];var F=R(m);if(Array.isArray(m[0])&&(m=m[0]),m.length<2)throw new _("streams");var x,u=m.map(function(y,C){var L=C<m.length-1,I=C>0;return i(y,L,I,function(D){x||(x=D),D&&u.forEach(l),!L&&(u.forEach(l),F(x))})});return m.reduce(S)}return Je=h,Je}var mr;function Jr(){return mr||(mr=1,function(T,w){w=T.exports=Ir(),w.Stream=w,w.Readable=w,w.Writable=Tr(),w.Duplex=_e(),w.Transform=Mr(),w.PassThrough=jr(),w.finished=Ze(),w.pipeline=Wr()}(Ae,Ae.exports)),Ae.exports}var Te={exports:{}},ze,Rr;function $r(){if(Rr)return ze;Rr=1;var T=1e3,w=T*60,M=w*60,_=M*24,N=_*7,E=_*365.25;ze=function(R,h){h=h||{};var g=typeof R;if(g==="string"&&R.length>0)return p(R);if(g==="number"&&isFinite(R))return h.long?l(R):i(R);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(R))};function p(R){if(R=String(R),!(R.length>100)){var h=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(R);if(h){var g=parseFloat(h[1]),m=(h[2]||"ms").toLowerCase();switch(m){case"years":case"year":case"yrs":case"yr":case"y":return g*E;case"weeks":case"week":case"w":return g*N;case"days":case"day":case"d":return g*_;case"hours":case"hour":case"hrs":case"hr":case"h":return g*M;case"minutes":case"minute":case"mins":case"min":case"m":return g*w;case"seconds":case"second":case"secs":case"sec":case"s":return g*T;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return g;default:return}}}}function i(R){var h=Math.abs(R);return h>=_?Math.round(R/_)+"d":h>=M?Math.round(R/M)+"h":h>=w?Math.round(R/w)+"m":h>=T?Math.round(R/T)+"s":R+"ms"}function l(R){var h=Math.abs(R);return h>=_?S(R,h,_,"day"):h>=M?S(R,h,M,"hour"):h>=w?S(R,h,w,"minute"):h>=T?S(R,h,T,"second"):R+" ms"}function S(R,h,g,m){var b=h>=g*1.5;return Math.round(R/g)+" "+m+(b?"s":"")}return ze}var Xe,vr;function Hr(){if(vr)return Xe;vr=1;function T(w){_.debug=_,_.default=_,_.coerce=S,_.disable=i,_.enable=E,_.enabled=l,_.humanize=$r(),_.destroy=R,Object.keys(w).forEach(h=>{_[h]=w[h]}),_.names=[],_.skips=[],_.formatters={};function M(h){let g=0;for(let m=0;m<h.length;m++)g=(g<<5)-g+h.charCodeAt(m),g|=0;return _.colors[Math.abs(g)%_.colors.length]}_.selectColor=M;function _(h){let g,m=null,b,F;function x(...u){if(!x.enabled)return;const y=x,C=Number(new Date),L=C-(g||C);y.diff=L,y.prev=g,y.curr=C,g=C,u[0]=_.coerce(u[0]),typeof u[0]!="string"&&u.unshift("%O");let I=0;u[0]=u[0].replace(/%([a-zA-Z%])/g,(G,k)=>{if(G==="%%")return"%";I++;const P=_.formatters[k];if(typeof P=="function"){const Q=u[I];G=P.call(y,Q),u.splice(I,1),I--}return G}),_.formatArgs.call(y,u),(y.log||_.log).apply(y,u)}return x.namespace=h,x.useColors=_.useColors(),x.color=_.selectColor(h),x.extend=N,x.destroy=_.destroy,Object.defineProperty(x,"enabled",{enumerable:!0,configurable:!1,get:()=>m!==null?m:(b!==_.namespaces&&(b=_.namespaces,F=_.enabled(h)),F),set:u=>{m=u}}),typeof _.init=="function"&&_.init(x),x}function N(h,g){const m=_(this.namespace+(typeof g>"u"?":":g)+h);return m.log=this.log,m}function E(h){_.save(h),_.namespaces=h,_.names=[],_.skips=[];const g=(typeof h=="string"?h:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const m of g)m[0]==="-"?_.skips.push(m.slice(1)):_.names.push(m)}function p(h,g){let m=0,b=0,F=-1,x=0;for(;m<h.length;)if(b<g.length&&(g[b]===h[m]||g[b]==="*"))g[b]==="*"?(F=b,x=m,b++):(m++,b++);else if(F!==-1)b=F+1,x++,m=x;else return!1;for(;b<g.length&&g[b]==="*";)b++;return b===g.length}function i(){const h=[..._.names,..._.skips.map(g=>"-"+g)].join(",");return _.enable(""),h}function l(h){for(const g of _.skips)if(p(h,g))return!1;for(const g of _.names)if(p(h,g))return!0;return!1}function S(h){return h instanceof Error?h.stack||h.message:h}function R(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return _.enable(_.load()),_}return Xe=T,Xe}var Sr;function zr(){return Sr||(Sr=1,function(T,w){w.formatArgs=_,w.save=N,w.load=E,w.useColors=M,w.storage=p(),w.destroy=(()=>{let l=!1;return()=>{l||(l=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),w.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function M(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let l;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(l=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(l[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function _(l){if(l[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+l[0]+(this.useColors?"%c ":" ")+"+"+T.exports.humanize(this.diff),!this.useColors)return;const S="color: "+this.color;l.splice(1,0,S,"color: inherit");let R=0,h=0;l[0].replace(/%[a-zA-Z%]/g,g=>{g!=="%%"&&(R++,g==="%c"&&(h=R))}),l.splice(h,0,S)}w.log=console.debug||console.log||(()=>{});function N(l){try{l?w.storage.setItem("debug",l):w.storage.removeItem("debug")}catch{}}function E(){let l;try{l=w.storage.getItem("debug")||w.storage.getItem("DEBUG")}catch{}return!l&&typeof H<"u"&&"env"in H&&(l={}.DEBUG),l}function p(){try{return localStorage}catch{}}T.exports=Hr()(w);const{formatters:i}=T.exports;i.j=function(l){try{return JSON.stringify(l)}catch(S){return"[UnexpectedJSONParseError]: "+S.message}}}(Te,Te.exports)),Te.exports}export{Or as a,Jr as b,zr as c,Ie as d,Kr as r};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{s as b,d as x,f as O,A as S,e as $,i as F,j as E,k as I,l as w,m as C,n as A,o as D,I as G,B as y,p as L,q as M,u as m,v as T,w as H,x as v,y as j,z as B,H as R,C as U}from"./index-11bcf729.js";function _(a){const{abi:r,data:e}=a,s=b(e,0,4),t=r.find(o=>o.type==="function"&&s===x(O(o)));if(!t)throw new S(s,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:t.name,args:"inputs"in t&&t.inputs&&t.inputs.length>0?$(t.inputs,b(e,4)):void 0}}const p="/docs/contract/encodeErrorResult";function k(a){const{abi:r,errorName:e,args:s}=a;let t=r[0];if(e){const u=F({abi:r,args:s,name:e});if(!u)throw new E(e,{docsPath:p});t=u}if(t.type!=="error")throw new E(void 0,{docsPath:p});const o=O(t),n=x(o);let c="0x";if(s&&s.length>0){if(!t.inputs)throw new I(t.name,{docsPath:p});c=w(t.inputs,s)}return C([n,c])}const h="/docs/contract/encodeFunctionResult";function z(a){const{abi:r,functionName:e,result:s}=a;let t=r[0];if(e){const n=F({abi:r,name:e});if(!n)throw new A(e,{docsPath:h});t=n}if(t.type!=="function")throw new A(void 0,{docsPath:h});if(!t.outputs)throw new D(t.name,{docsPath:h});const o=(()=>{if(t.outputs.length===0)return[];if(t.outputs.length===1)return[s];if(Array.isArray(s))return s;throw new G(s)})();return w(t.outputs,o)}class J extends y{constructor({callbackSelector:r,cause:e,data:s,extraData:t,sender:o,urls:n}){var c;super(e.shortMessage||"An error occurred while fetching for an offchain result.",{cause:e,metaMessages:[...e.metaMessages||[],(c=e.metaMessages)!=null&&c.length?"":[],"Offchain Gateway Call:",n&&[" Gateway URL(s):",...n.map(u=>` ${L(u)}`)],` Sender: ${o}`,` Data: ${s}`,` Callback selector: ${r}`,` Extra data: ${t}`].flat(),name:"OffchainLookupError"})}}class W extends y{constructor({result:r,url:e}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${L(e)}`,`Response: ${M(r)}`],name:"OffchainLookupResponseMalformedError"})}}class K extends y{constructor({sender:r,to:e}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${e}`,`OffchainLookup sender address: ${r}`],name:"OffchainLookupSenderMismatchError"})}}const N="x-batch-gateway:true";async function P(a){const{data:r,ccipRequest:e}=a,{args:[s]}=_({abi:m,data:r}),t=[],o=[];return await Promise.all(s.map(async(n,c)=>{try{o[c]=n.urls.includes(N)?await P({data:n.data,ccipRequest:e}):await e(n),t[c]=!1}catch(u){t[c]=!0,o[c]=Q(u)}})),z({abi:m,functionName:"query",result:[t,o]})}function Q(a){return a.name==="HttpRequestError"&&a.status?k({abi:m,errorName:"HttpError",args:[a.status,a.shortMessage]}):k({abi:[T],errorName:"Error",args:["shortMessage"in a?a.shortMessage:a.message]})}const Z="0x556f1830",V={name:"OffchainLookup",type:"error",inputs:[{name:"sender",type:"address"},{name:"urls",type:"string[]"},{name:"callData",type:"bytes"},{name:"callbackFunction",type:"bytes4"},{name:"extraData",type:"bytes"}]};async function tt(a,{blockNumber:r,blockTag:e,data:s,to:t}){const{args:o}=H({data:s,abi:[V]}),[n,c,u,f,d]=o,{ccipRead:i}=a,g=i&&typeof(i==null?void 0:i.request)=="function"?i.request:X;try{if(!v(t,n))throw new K({sender:n,to:t});const l=c.includes(N)?await P({data:u,ccipRequest:g}):await g({data:u,sender:n,urls:c}),{data:q}=await j(a,{blockNumber:r,blockTag:e,data:B([f,w([{type:"bytes"},{type:"bytes"}],[l,d])]),to:t});return q}catch(l){throw new J({callbackSelector:f,cause:l,data:s,extraData:d,sender:n,urls:c})}}async function X({data:a,sender:r,urls:e}){var t;let s=new Error("An unknown error occurred.");for(let o=0;o<e.length;o++){const n=e[o],c=n.includes("{data}")?"GET":"POST",u=c==="POST"?{data:a,sender:r}:void 0,f=c==="POST"?{"Content-Type":"application/json"}:{};try{const d=await fetch(n.replace("{sender}",r.toLowerCase()).replace("{data}",a),{body:JSON.stringify(u),headers:f,method:c});let i;if((t=d.headers.get("Content-Type"))!=null&&t.startsWith("application/json")?i=(await d.json()).data:i=await d.text(),!d.ok){s=new R({body:u,details:i!=null&&i.error?M(i.error):d.statusText,headers:d.headers,status:d.status,url:n});continue}if(!U(i)){s=new W({result:i,url:n});continue}return i}catch(d){s=new R({body:u,details:d.message,url:n})}}throw s}export{X as ccipRequest,tt as offchainLookup,V as offchainLookupAbiItem,Z as offchainLookupSignature};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{B as w,g as O,s as x,a as b,t as F,f as L,A as S,d as $,b as M,c as E,e as I,h as y,i as D,j as A,k as G,I as T,l as m,m as C,n as H,o as j,p as v,q as B,H as R,r as U}from"./zoraTestnet-
|
|
1
|
+
import{B as w,g as O,s as x,a as b,t as F,f as L,A as S,d as $,b as M,c as E,e as I,h as y,i as D,j as A,k as G,I as T,l as m,m as C,n as H,o as j,p as v,q as B,H as R,r as U}from"./zoraTestnet-5800eec8.js";import"./BlockOverrides-5aa03deb.js";import"./index-11bcf729.js";class _ extends w{constructor({callbackSelector:n,cause:e,data:s,extraData:t,sender:o,urls:r}){var c;super(e.shortMessage||"An error occurred while fetching for an offchain result.",{cause:e,metaMessages:[...e.metaMessages||[],(c=e.metaMessages)!=null&&c.length?"":[],"Offchain Gateway Call:",r&&[" Gateway URL(s):",...r.map(u=>` ${O(u)}`)],` Sender: ${o}`,` Data: ${s}`,` Callback selector: ${n}`,` Extra data: ${t}`].flat(),name:"OffchainLookupError"})}}class J extends w{constructor({result:n,url:e}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${O(e)}`,`Response: ${x(n)}`],name:"OffchainLookupResponseMalformedError"})}}class W extends w{constructor({sender:n,to:e}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${e}`,`OffchainLookup sender address: ${n}`],name:"OffchainLookupSenderMismatchError"})}}function z(a){const{abi:n,data:e}=a,s=b(e,0,4),t=n.find(o=>o.type==="function"&&s===F(L(o)));if(!t)throw new S(s,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:t.name,args:"inputs"in t&&t.inputs&&t.inputs.length>0?$(t.inputs,b(e,4)):void 0}}const p="/docs/contract/encodeErrorResult";function k(a){const{abi:n,errorName:e,args:s}=a;let t=n[0];if(e){const u=M({abi:n,args:s,name:e});if(!u)throw new E(e,{docsPath:p});t=u}if(t.type!=="error")throw new E(void 0,{docsPath:p});const o=L(t),r=F(o);let c="0x";if(s&&s.length>0){if(!t.inputs)throw new I(t.name,{docsPath:p});c=y(t.inputs,s)}return D([r,c])}const h="/docs/contract/encodeFunctionResult";function K(a){const{abi:n,functionName:e,result:s}=a;let t=n[0];if(e){const r=M({abi:n,name:e});if(!r)throw new A(e,{docsPath:h});t=r}if(t.type!=="function")throw new A(void 0,{docsPath:h});if(!t.outputs)throw new G(t.name,{docsPath:h});const o=(()=>{if(t.outputs.length===0)return[];if(t.outputs.length===1)return[s];if(Array.isArray(s))return s;throw new T(s)})();return y(t.outputs,o)}const N="x-batch-gateway:true";async function P(a){const{data:n,ccipRequest:e}=a,{args:[s]}=z({abi:m,data:n}),t=[],o=[];return await Promise.all(s.map(async(r,c)=>{try{o[c]=r.urls.includes(N)?await P({data:r.data,ccipRequest:e}):await e(r),t[c]=!1}catch(u){t[c]=!0,o[c]=Q(u)}})),K({abi:m,functionName:"query",result:[t,o]})}function Q(a){return a.name==="HttpRequestError"&&a.status?k({abi:m,errorName:"HttpError",args:[a.status,a.shortMessage]}):k({abi:[C],errorName:"Error",args:["shortMessage"in a?a.shortMessage:a.message]})}const et="0x556f1830",V={name:"OffchainLookup",type:"error",inputs:[{name:"sender",type:"address"},{name:"urls",type:"string[]"},{name:"callData",type:"bytes"},{name:"callbackFunction",type:"bytes4"},{name:"extraData",type:"bytes"}]};async function at(a,{blockNumber:n,blockTag:e,data:s,to:t}){const{args:o}=H({data:s,abi:[V]}),[r,c,u,f,d]=o,{ccipRead:i}=a,g=i&&typeof(i==null?void 0:i.request)=="function"?i.request:X;try{if(!j(t,r))throw new W({sender:r,to:t});const l=c.includes(N)?await P({data:u,ccipRequest:g}):await g({data:u,sender:r,urls:c}),{data:q}=await v(a,{blockNumber:n,blockTag:e,data:B([f,y([{type:"bytes"},{type:"bytes"}],[l,d])]),to:t});return q}catch(l){throw new _({callbackSelector:f,cause:l,data:s,extraData:d,sender:r,urls:c})}}async function X({data:a,sender:n,urls:e}){var t;let s=new Error("An unknown error occurred.");for(let o=0;o<e.length;o++){const r=e[o],c=r.includes("{data}")?"GET":"POST",u=c==="POST"?{data:a,sender:n}:void 0,f=c==="POST"?{"Content-Type":"application/json"}:{};try{const d=await fetch(r.replace("{sender}",n.toLowerCase()).replace("{data}",a),{body:JSON.stringify(u),headers:f,method:c});let i;if((t=d.headers.get("Content-Type"))!=null&&t.startsWith("application/json")?i=(await d.json()).data:i=await d.text(),!d.ok){s=new R({body:u,details:i!=null&&i.error?x(i.error):d.statusText,headers:d.headers,status:d.status,url:r});continue}if(!U(i)){s=new J({result:i,url:r});continue}return i}catch(d){s=new R({body:u,details:d.message,url:r})}}throw s}export{X as ccipRequest,at as offchainLookup,V as offchainLookupAbiItem,et as offchainLookupSignature};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as y,l as $,m as l,O as m,R as p,C as g,S as h,F as E,z as R}from"./index-
|
|
1
|
+
import{n as y,l as $,m as l,O as m,R as p,C as g,S as h,F as E,z as R}from"./index-5f12374f.js";import{n as S,c as x,r as u,U as _}from"./index-72f469a0.js";import{W as C}from"./index-588af472.js";import{R as v}from"./ReownAuthentication-13884452.js";import"./index-11bcf729.js";import"./NetworkUtil-ac31bde2.js";import"./index-c979183a.js";import"./BlockOverrides-5aa03deb.js";import"./index-10ae3d90.js";import"./index-d859de90.js";const D=y`
|
|
2
2
|
.email-sufixes {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: row;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{C as S,x as O,O as d,E as c,M as _,R as s,S as f,h as b,j as T,l as C,o as m,m as u,n as D,
|
|
1
|
+
import{C as S,x as O,O as d,E as c,M as _,R as s,S as f,h as b,j as T,l as C,o as m,m as u,n as D,P as $}from"./index-5f12374f.js";import{c as h,r as E}from"./index-72f469a0.js";import{W as g}from"./index-588af472.js";import"./index-66ca5bf6.js";import"./index-10ae3d90.js";import{e as W,n as P}from"./ref-9b058653.js";import"./index-8083b9d1.js";import"./index-c1778978.js";import{C as N}from"./NetworkUtil-ac31bde2.js";import"./index-11bcf729.js";import"./index-c979183a.js";import"./BlockOverrides-5aa03deb.js";import"./index-d859de90.js";import"./if-defined-d80070a2.js";import"./index-ac0bb06c.js";var j=globalThis&&globalThis.__decorate||function(a,e,t,r){var n=arguments.length,i=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(i=(n<3?o(i):n>3?o(e,t,i):o(e,t))||i);return n>3&&i&&Object.defineProperty(e,t,i),i};let I=class extends g{constructor(){super(...arguments),this.onOtpSubmit=async e=>{var t,r;try{if(this.authConnector){const n=S.state.activeChain,i=O.getConnections(n),o=(t=d.state.remoteFeatures)==null?void 0:t.multiWallet,l=i.length>0;if(await this.authConnector.provider.connectOtp({otp:e}),c.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_PASS"}),n)await O.connectExternal(this.authConnector,n);else throw new Error("Active chain is not set on ChainController");if((r=d.state.remoteFeatures)!=null&&r.emailCapture)return;if(d.state.siwx){_.close();return}if(l&&o){s.replace("ProfileWallets"),f.showSuccess("New Wallet Added");return}_.close()}}catch(n){throw c.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_FAIL",properties:{message:b.parseError(n)}}),n}},this.onOtpResend=async e=>{this.authConnector&&(await this.authConnector.provider.connectEmail({email:e}),c.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_SENT"}))}}};I=j([h("w3m-email-verify-otp-view")],I);const F=T`
|
|
2
2
|
wui-icon-box {
|
|
3
3
|
height: ${({spacing:a})=>a[16]};
|
|
4
4
|
width: ${({spacing:a})=>a[16]};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as H,l as f,M as W,O as K,m as c,o as _,T as j,V as G,j as E,r as z,k as B,c as N,C as m,X as V,y as T,W as h,x as L,Y as X,Z as v,h as k,E as O,S as q,R as Z}from"./index-
|
|
1
|
+
import{n as H,l as f,M as W,O as K,m as c,o as _,T as j,V as G,j as E,r as z,k as B,c as N,C as m,X as V,y as T,W as h,x as L,Y as X,Z as v,h as k,E as O,S as q,R as Z}from"./index-5f12374f.js";import{r as u,c as w,n as l}from"./index-72f469a0.js";import"./index-e714c2f7.js";import{C as D}from"./NetworkUtil-ac31bde2.js";import{e as Q,n as J}from"./ref-9b058653.js";import"./index-d859de90.js";import{H as I}from"./HelpersUtil-1d3b358c.js";import{o as ee}from"./if-defined-d80070a2.js";import"./index-ac0bb06c.js";import"./index-0670054e.js";import"./index-8083b9d1.js";import"./index-66ca5bf6.js";import"./index-10ae3d90.js";import{N as te}from"./NavigationUtil-a0d0ce87.js";import"./index-11bcf729.js";import"./index-c979183a.js";import"./BlockOverrides-5aa03deb.js";import"./ConstantsUtil-e755f570.js";const ie=H`
|
|
2
2
|
div {
|
|
3
3
|
width: 100%;
|
|
4
4
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{R as p,a}from"./ReownAuthentication-13884452.js";import"./index-5f12374f.js";import"./index-11bcf729.js";import"./NetworkUtil-ac31bde2.js";import"./index-c979183a.js";import"./BlockOverrides-5aa03deb.js";export{p as ReownAuthentication,a as ReownAuthenticationMessenger};
|