@wormhole-foundation/wormhole-connect 3.0.0-beta.3-development → 3.0.0-beta.5-development

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.
Files changed (99) hide show
  1. package/dist/main.js +48 -48
  2. package/dist/src/config/tokens.d.ts +10 -3
  3. package/dist/src/config/tokens.d.ts.map +1 -1
  4. package/dist/src/routes/sdkv2/route.d.ts.map +1 -1
  5. package/dist/src/utils/coingecko.d.ts.map +1 -1
  6. package/dist/src/views/v2/Bridge/AssetPicker/TokenList.d.ts +0 -2
  7. package/dist/src/views/v2/Bridge/AssetPicker/TokenList.d.ts.map +1 -1
  8. package/lib/{account-CKUCmcgT.mjs → account-BK8xMTUI.mjs} +1 -1
  9. package/lib/{address-Cj96wodd.mjs → address-BWXkejmE.mjs} +1 -1
  10. package/lib/{address-Drr_9OcK.mjs → address-CBux52Na.mjs} +2 -2
  11. package/lib/{address-B9anhmbU.mjs → address-DKHa7TFU.mjs} +1 -1
  12. package/lib/{aptos-BvHeL_GY.js → aptos-B9U6O-dl.js} +1 -1
  13. package/lib/{aptos-DPIwkCrX.mjs → aptos-C180o9od.mjs} +7 -7
  14. package/lib/{aptos-CWlICqrN.mjs → aptos-DdLaZAbX.mjs} +3 -3
  15. package/lib/{base64-BcnUThiU.mjs → base64-Dmj19Uvu.mjs} +1 -1
  16. package/lib/{blake2b-CnkNeJT4.mjs → blake2b-CgbIfNRX.mjs} +1 -1
  17. package/lib/{browser-ponyfill-oWZrCgRw.mjs → browser-ponyfill-BecG2Lnb.mjs} +1 -1
  18. package/lib/{ccip-BWwNh7Cy.mjs → ccip-DZPSxGo-.mjs} +1 -1
  19. package/lib/{ccip-lZx1JcXV.js → ccip-Wh0YfVvY.js} +1 -1
  20. package/lib/{chain-CNVMEdrk.mjs → chain-sKZNJgPZ.mjs} +1 -1
  21. package/lib/{chunk-IMTC3J2M-B7fKwIuX.mjs → chunk-IMTC3J2M-DKLPKqnP.mjs} +3 -3
  22. package/lib/{constants-B7vln_3S.mjs → constants-BpnA30ER.mjs} +3 -3
  23. package/lib/constants-Ricf667V.js +1 -0
  24. package/lib/{contract-DANWVftx.mjs → contract-BVaUamai.mjs} +1 -1
  25. package/lib/{create-B9LwWha4.mjs → create-CQ6n4Ga8.mjs} +1 -1
  26. package/lib/{evm-8QrZ2Hru.mjs → evm-BfosdVcf.mjs} +9 -9
  27. package/lib/{evm-B552wdhN.mjs → evm-C-aa4dBG.mjs} +9 -9
  28. package/lib/{evm-NSPNbX19.js → evm-CgF7zwuT.js} +3 -3
  29. package/lib/executor.js +1 -1
  30. package/lib/executor.mjs +207 -193
  31. package/lib/hosted.js +1 -1
  32. package/lib/hosted.mjs +1 -1
  33. package/lib/{index-Dw7INWis.mjs → index-07cEoDZD.mjs} +4 -4
  34. package/lib/{index-DoFo485M.mjs → index-B36we0ml.mjs} +7 -7
  35. package/lib/{index-CKg04pdA.mjs → index-B5XhLD_L.mjs} +5 -5
  36. package/lib/{index-BR4w3fuE.mjs → index-B9hin5U8.mjs} +5 -5
  37. package/lib/{index-CffzHeMT.js → index-BMxhTd-v.js} +1 -1
  38. package/lib/{index-CEXcD8Mw.mjs → index-BUfjw4S2.mjs} +4 -4
  39. package/lib/{index-DHAgduQ-.mjs → index-BUlzgqNa.mjs} +4 -4
  40. package/lib/{index-BlJpOhTM.mjs → index-Batb-GTa.mjs} +5 -5
  41. package/lib/{index-CT2-qOL1.mjs → index-Bb8InrQU.mjs} +2 -2
  42. package/lib/{index-7TXHMJ1V.mjs → index-BjaIqtyy.mjs} +2 -2
  43. package/lib/{index-DiulRNyF.mjs → index-ByaMu-qS.mjs} +21699 -21679
  44. package/lib/{index-BAHgvqy3.mjs → index-C-_xpVRa.mjs} +5 -5
  45. package/lib/{index-B4NYDFvU.mjs → index-CKaF7Gzs.mjs} +5 -5
  46. package/lib/{index-CYdhveYx.mjs → index-CLy98PXT.mjs} +6 -6
  47. package/lib/{index-DSSOE7Me.mjs → index-CjroDahP.mjs} +2 -2
  48. package/lib/{index-BO0DC-jc.mjs → index-Cry2AYTm.mjs} +3 -3
  49. package/lib/{index-pN0Dgjjf.mjs → index-CsdQttEt.mjs} +5 -5
  50. package/lib/{index-C9XIIFQK.mjs → index-Cu7gFSJv.mjs} +1 -1
  51. package/lib/{index-mXHkgOxH.mjs → index-Cx-ODuWg.mjs} +4 -4
  52. package/lib/{index-Cf_Tpbyo.mjs → index-D8AYsaEU.mjs} +5 -5
  53. package/lib/{index-CM_IP492.mjs → index-DDBLdcME.mjs} +6 -6
  54. package/lib/{index-BAuH_G93.mjs → index-DNcx7dMI.mjs} +5 -5
  55. package/lib/{index-l0sxQXRT.mjs → index-DRleG63r.mjs} +1 -1
  56. package/lib/{index-CfC3_uPF.mjs → index-DdvRmaTh.mjs} +7 -7
  57. package/lib/{index-BQ0RlDhv.mjs → index-DgIxcujP.mjs} +6 -6
  58. package/lib/{index-C1_un59H.js → index-DgerPSSh.js} +1 -1
  59. package/lib/{index-CCRPy0B_.mjs → index-DyvQhGPY.mjs} +2 -2
  60. package/lib/index-FrHiagMc.js +355 -0
  61. package/lib/{index-CIh7tJsi.js → index-IyP4Vr-d.js} +1 -1
  62. package/lib/{index-B1XGfrNH.mjs → index-aA-2Ygs3.mjs} +1 -1
  63. package/lib/{index-2f5GRlqp.mjs → index-rAnJYuJr.mjs} +1 -1
  64. package/lib/{index.es-DWXvLB7p.js → index.es-DRN2pshI.js} +1 -1
  65. package/lib/{index.es-C8hHvcxp.mjs → index.es-DlSoduAW.mjs} +7 -7
  66. package/lib/index.js +1 -1
  67. package/lib/index.mjs +1 -1
  68. package/lib/mayan.mjs +10 -10
  69. package/lib/{mint-DVxIczlI.mjs → mint-C3SdQH_S.mjs} +2 -2
  70. package/lib/ntt.mjs +10 -10
  71. package/lib/{platform-D-nUFU0e.mjs → platform-CUeBR_i4.mjs} +4 -4
  72. package/lib/{platform-PaIJsXKV.mjs → platform-Czq0KkFa.mjs} +4 -4
  73. package/lib/{platform-CbDx4hex.mjs → platform-Droe0nZu.mjs} +4 -4
  74. package/lib/{provider-jsonrpc-C_IZFSfB.mjs → provider-jsonrpc-CVWSLk8g.mjs} +2 -2
  75. package/lib/{sha3-DQQvDwj1.mjs → sha3-BMK6V2DM.mjs} +1 -1
  76. package/lib/{signer-CsMX8mEc.mjs → signer-CYkXKdE1.mjs} +2 -2
  77. package/lib/{solana-8Asmn6g_.mjs → solana-33GlUplS.mjs} +6 -6
  78. package/lib/{solana-BVfhsFxw.js → solana-Bbay1OHx.js} +1 -1
  79. package/lib/solana-Bs7_C3BS.mjs +18 -0
  80. package/lib/{solanaEmbed.esm-BSBPPQdh.js → solanaEmbed.esm-Du3QS4H_.js} +1 -1
  81. package/lib/{solanaEmbed.esm-Bv-y4R2t.mjs → solanaEmbed.esm-baNcElxT.mjs} +3 -3
  82. package/lib/src/config/tokens.d.ts +10 -3
  83. package/lib/src/config/tokens.d.ts.map +1 -1
  84. package/lib/src/routes/sdkv2/route.d.ts.map +1 -1
  85. package/lib/src/utils/coingecko.d.ts.map +1 -1
  86. package/lib/src/views/v2/Bridge/AssetPicker/TokenList.d.ts +0 -2
  87. package/lib/src/views/v2/Bridge/AssetPicker/TokenList.d.ts.map +1 -1
  88. package/lib/{sui-BSLo7-bI.mjs → sui-BJsKaZg2.mjs} +8 -8
  89. package/lib/{sui-ByGBX_7Z.js → sui-Crq4-j1d.js} +1 -1
  90. package/lib/{sui-CI_Sn1M4.mjs → sui-D0FrnfOj.mjs} +3 -3
  91. package/lib/{tokens-D9jV-Q5b.mjs → tokens-CF4wGtlH.mjs} +4 -4
  92. package/lib/{tokens-BcWAlkcp.js → tokens-Cz8rSlKv.js} +1 -1
  93. package/lib/{units-DP5zqyxn.mjs → units-YkCOGDr9.mjs} +2 -2
  94. package/lib/{unsignedTransaction-fSrwDjHx.mjs → unsignedTransaction-C0WXQMmv.mjs} +3 -3
  95. package/lib/{web3-DCo8oN-v.mjs → web3-B3Usc-Qj.mjs} +1 -1
  96. package/package.json +2 -2
  97. package/lib/constants-CYn5EZsI.js +0 -1
  98. package/lib/index-Bn2HXKJ4.js +0 -355
  99. package/lib/solana-C_0khyJw.mjs +0 -18
package/lib/hosted.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./constants-CYn5EZsI.js");function d(o,e={}){window.__CONNECT_CONFIG=e.config,window.__CONNECT_THEME=e.theme;const n=document.createElement("div");n.id="wormhole-connect";const c=e.version??s.CONNECT_VERSION,i=e.cdnBaseUrl??`https://cdn.jsdelivr.net/npm/@wormhole-foundation/wormhole-connect@${c}`,t=document.createElement("script");t.setAttribute("src",`${i}/dist/main.js`),t.setAttribute("type","module"),o.appendChild(n),o.appendChild(t)}exports.wormholeConnectHosted=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./constants-Ricf667V.js");function d(o,e={}){window.__CONNECT_CONFIG=e.config,window.__CONNECT_THEME=e.theme;const n=document.createElement("div");n.id="wormhole-connect";const c=e.version??s.CONNECT_VERSION,i=e.cdnBaseUrl??`https://cdn.jsdelivr.net/npm/@wormhole-foundation/wormhole-connect@${c}`,t=document.createElement("script");t.setAttribute("src",`${i}/dist/main.js`),t.setAttribute("type","module"),o.appendChild(n),o.appendChild(t)}exports.wormholeConnectHosted=d;
package/lib/hosted.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { a as d } from "./constants-B7vln_3S.mjs";
1
+ import { a as d } from "./constants-BpnA30ER.mjs";
2
2
  function r(o, t = {}) {
3
3
  window.__CONNECT_CONFIG = t.config, window.__CONNECT_THEME = t.theme;
4
4
  const n = document.createElement("div");
@@ -1,11 +1,11 @@
1
1
  var v = Object.defineProperty;
2
2
  var S = (a, e, t) => e in a ? v(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
3
3
  var i = (a, e, t) => S(a, typeof e != "symbol" ? e + "" : e, t);
4
- import { aN as I, aJ as f, aL as x, $, aP as m, cv as U, aA as E, _ as w, a3 as o, ca as k, k as c, a6 as T, d as F, aO as C, N as h } from "./address-Drr_9OcK.mjs";
5
- import { b as A, A as u, c as b, a as _, i as N } from "./address-Cj96wodd.mjs";
6
- import { A as O } from "./platform-PaIJsXKV.mjs";
4
+ import { aN as I, aJ as f, aL as x, $, aP as m, cv as U, aA as E, _ as w, a3 as o, ca as k, k as c, a7 as T, d as F, aO as C, N as h } from "./address-CBux52Na.mjs";
5
+ import { b as A, A as u, c as b, a as _, i as N } from "./address-BWXkejmE.mjs";
6
+ import { A as O } from "./platform-Czq0KkFa.mjs";
7
7
  import { A as W } from "./unsignedTransaction-BDOQhqcZ.mjs";
8
- import { r as Q } from "./chain-CNVMEdrk.mjs";
8
+ import { r as Q } from "./chain-sKZNJgPZ.mjs";
9
9
  const R = [
10
10
  { name: "tokenBridgeAddress", ...f },
11
11
  { name: "chain", ...x() },
@@ -1,13 +1,13 @@
1
1
  var Pt = Object.defineProperty;
2
2
  var _t = (e, t, r) => t in e ? Pt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
3
  var f = (e, t, r) => _t(e, typeof t != "symbol" ? t + "" : t, r);
4
- import { i as Wt, j as It, h as H, d as Z, B as Ut, k as Nt, l as Ft, m as ye, g as xt, S as zt, n as Ot, o as Lt } from "./index-BQ0RlDhv.mjs";
5
- import { ae as c, d as l, ar as A, as as le, au as z, aG as V, cz as Ge, cA as He, aw as Dt, av as qt, aH as Kt, aI as Vt, aq as O, an as E, aP as y, a0 as Gt, _ as dt, ap as Ht, aX as v, b1 as k, cv as Ce, aA as Zt, k as $, a6 as Be, ao as ae, b2 as L, $ as Yt, b3 as lt } from "./address-Drr_9OcK.mjs";
6
- import { P as ft, c as Qt } from "./index-l0sxQXRT.mjs";
7
- import { d as b, g as Se, n as Xt, a as Q } from "./account-CKUCmcgT.mjs";
8
- import { u as U, b as G, p as S } from "./web3-DCo8oN-v.mjs";
9
- import { a as oe, S as mt } from "./unsignedTransaction-fSrwDjHx.mjs";
10
- import { r as gt } from "./chain-CNVMEdrk.mjs";
4
+ import { i as Wt, j as It, h as H, d as Z, B as Ut, k as Nt, l as Ft, m as ye, g as xt, S as zt, n as Ot, o as Lt } from "./index-DgIxcujP.mjs";
5
+ import { ae as c, d as l, ar as A, as as le, au as z, aG as V, cz as Ge, cA as He, aw as Dt, av as qt, aH as Kt, aI as Vt, aq as O, an as E, aP as y, a0 as Gt, _ as dt, ap as Ht, aX as v, b1 as k, cv as Ce, aA as Zt, k as $, a7 as Be, ao as ae, b2 as L, $ as Yt, b3 as lt } from "./address-CBux52Na.mjs";
6
+ import { P as ft, c as Qt } from "./index-DRleG63r.mjs";
7
+ import { d as b, g as Se, n as Xt, a as Q } from "./account-BK8xMTUI.mjs";
8
+ import { u as U, b as G, p as S } from "./web3-B3Usc-Qj.mjs";
9
+ import { a as oe, S as mt } from "./unsignedTransaction-C0WXQMmv.mjs";
10
+ import { r as gt } from "./chain-sKZNJgPZ.mjs";
11
11
  const M = new c("TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA");
12
12
  new c("TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb");
13
13
  const Ae = new c("ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"), D = new c("So11111111111111111111111111111111111111112");
@@ -1,11 +1,11 @@
1
1
  var m = Object.defineProperty;
2
2
  var T = (c, e, t) => e in c ? m(c, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : c[e] = t;
3
3
  var a = (c, e, t) => T(c, typeof e != "symbol" ? e + "" : e, t);
4
- import { E as g, C as h } from "./platform-D-nUFU0e.mjs";
5
- import { I as v, C as M } from "./contract-DANWVftx.mjs";
6
- import { r as S } from "./chain-CNVMEdrk.mjs";
7
- import { aF as w, aR as r, aU as u, N as x, cy as I, a3 as C, aV as A, aW as G } from "./address-Drr_9OcK.mjs";
8
- import { c as F } from "./create-B9LwWha4.mjs";
4
+ import { E as g, C as h } from "./platform-CUeBR_i4.mjs";
5
+ import { I as v, C as M } from "./contract-BVaUamai.mjs";
6
+ import { r as S } from "./chain-sKZNJgPZ.mjs";
7
+ import { aF as w, aR as r, aU as u, N as x, cy as I, a3 as C, aV as A, aW as G } from "./address-CBux52Na.mjs";
8
+ import { c as F } from "./create-CQ6n4Ga8.mjs";
9
9
  import { E as U } from "./unsignedTransaction-C0V0UbsS.mjs";
10
10
  class y {
11
11
  constructor(e, t, b, f) {
@@ -1,11 +1,11 @@
1
1
  var Z = Object.defineProperty;
2
2
  var j = (t, e, s) => e in t ? Z(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
3
3
  var y = (t, e, s) => j(t, typeof e != "symbol" ? e + "" : e, s);
4
- import { ae as u, ar as Y, aG as I, au as ee, d as M, an as O, as as ne, aX as E, H as N, a3 as se, b1 as b, E as x, b2 as T, b4 as ae, ao as te, cu as B, b3 as ie } from "./address-Drr_9OcK.mjs";
5
- import { P as _, c as U, i as D } from "./index-l0sxQXRT.mjs";
6
- import { r as re } from "./chain-CNVMEdrk.mjs";
7
- import { p as R, u as me, b as oe } from "./web3-DCo8oN-v.mjs";
8
- import { a as ue, S as le } from "./unsignedTransaction-fSrwDjHx.mjs";
4
+ import { ae as u, ar as Y, aG as I, au as ee, d as M, an as O, as as ne, aX as E, H as N, a3 as se, b1 as b, E as x, b2 as T, b4 as ae, ao as te, cu as B, b3 as ie } from "./address-CBux52Na.mjs";
5
+ import { P as _, c as U, i as D } from "./index-DRleG63r.mjs";
6
+ import { r as re } from "./chain-sKZNJgPZ.mjs";
7
+ import { p as R, u as me, b as oe } from "./web3-B3Usc-Qj.mjs";
8
+ import { a as ue, S as le } from "./unsignedTransaction-C0WXQMmv.mjs";
9
9
  const h = new u("TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA");
10
10
  new u("TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb");
11
11
  const A = new u("ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL");
@@ -1,4 +1,4 @@
1
- "use strict";const K=require("./address-RcMobNYE.js"),Pe=require("./index-Bn2HXKJ4.js");var Xr={},cf={exports:{}},qi={};(function(e){e.fetch=i(K.commonjsGlobal.fetch)&&i(K.commonjsGlobal.ReadableStream),e.writableStream=i(K.commonjsGlobal.WritableStream),e.abortController=i(K.commonjsGlobal.AbortController);var t;function r(){if(t!==void 0)return t;if(K.commonjsGlobal.XMLHttpRequest){t=new K.commonjsGlobal.XMLHttpRequest;try{t.open("GET",K.commonjsGlobal.XDomainRequest?"/":"https://example.com")}catch{t=null}}else t=null;return t}function n(a){var o=r();if(!o)return!1;try{return o.responseType=a,o.responseType===a}catch{}return!1}e.arraybuffer=e.fetch||n("arraybuffer"),e.msstream=!e.fetch&&n("ms-stream"),e.mozchunkedarraybuffer=!e.fetch&&n("moz-chunked-arraybuffer"),e.overrideMimeType=e.fetch||(r()?i(r().overrideMimeType):!1);function i(a){return typeof a=="function"}t=null})(qi);var Jr={},wi={exports:{}},hf=Pe.eventsExports.EventEmitter,gn,ua;function ru(){if(ua)return gn;ua=1;function e(N,F){var j=Object.keys(N);if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(N);F&&(k=k.filter(function(I){return Object.getOwnPropertyDescriptor(N,I).enumerable})),j.push.apply(j,k)}return j}function t(N){for(var F=1;F<arguments.length;F++){var j=arguments[F]!=null?arguments[F]:{};F%2?e(Object(j),!0).forEach(function(k){r(N,k,j[k])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(j)):e(Object(j)).forEach(function(k){Object.defineProperty(N,k,Object.getOwnPropertyDescriptor(j,k))})}return N}function r(N,F,j){return F=o(F),F in N?Object.defineProperty(N,F,{value:j,enumerable:!0,configurable:!0,writable:!0}):N[F]=j,N}function n(N,F){if(!(N instanceof F))throw new TypeError("Cannot call a class as a function")}function i(N,F){for(var j=0;j<F.length;j++){var k=F[j];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(N,o(k.key),k)}}function a(N,F,j){return F&&i(N.prototype,F),Object.defineProperty(N,"prototype",{writable:!1}),N}function o(N){var F=f(N,"string");return typeof F=="symbol"?F:String(F)}function f(N,F){if(typeof N!="object"||N===null)return N;var j=N[Symbol.toPrimitive];if(j!==void 0){var k=j.call(N,F);if(typeof k!="object")return k;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(N)}var d=K.bufferPolyfill,l=d.Buffer,u=Pe.require$$3,w=u.inspect,g=w&&w.custom||"inspect";function S(N,F,j){l.prototype.copy.call(N,F,j)}return gn=function(){function N(){n(this,N),this.head=null,this.tail=null,this.length=0}return a(N,[{key:"push",value:function(j){var k={data:j,next:null};this.length>0?this.tail.next=k:this.head=k,this.tail=k,++this.length}},{key:"unshift",value:function(j){var k={data:j,next:this.head};this.length===0&&(this.tail=k),this.head=k,++this.length}},{key:"shift",value:function(){if(this.length!==0){var j=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,j}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(j){if(this.length===0)return"";for(var k=this.head,I=""+k.data;k=k.next;)I+=j+k.data;return I}},{key:"concat",value:function(j){if(this.length===0)return l.alloc(0);for(var k=l.allocUnsafe(j>>>0),I=this.head,R=0;I;)S(I.data,k,R),R+=I.data.length,I=I.next;return k}},{key:"consume",value:function(j,k){var I;return j<this.head.data.length?(I=this.head.data.slice(0,j),this.head.data=this.head.data.slice(j)):j===this.head.data.length?I=this.shift():I=k?this._getString(j):this._getBuffer(j),I}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(j){var k=this.head,I=1,R=k.data;for(j-=R.length;k=k.next;){var P=k.data,T=j>P.length?P.length:j;if(T===P.length?R+=P:R+=P.slice(0,j),j-=T,j===0){T===P.length?(++I,k.next?this.head=k.next:this.head=this.tail=null):(this.head=k,k.data=P.slice(T));break}++I}return this.length-=I,R}},{key:"_getBuffer",value:function(j){var k=l.allocUnsafe(j),I=this.head,R=1;for(I.data.copy(k),j-=I.data.length;I=I.next;){var P=I.data,T=j>P.length?P.length:j;if(P.copy(k,k.length-j,0,T),j-=T,j===0){T===P.length?(++R,I.next?this.head=I.next:this.head=this.tail=null):(this.head=I,I.data=P.slice(T));break}++R}return this.length-=R,k}},{key:g,value:function(j,k){return w(this,t(t({},k),{},{depth:0,customInspect:!1}))}}]),N}(),gn}function nu(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,K.dist.process.nextTick(Ei,this,e)):K.dist.process.nextTick(Ei,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(a){!t&&a?r._writableState?r._writableState.errorEmitted?K.dist.process.nextTick(Ir,r):(r._writableState.errorEmitted=!0,K.dist.process.nextTick(sa,r,a)):K.dist.process.nextTick(sa,r,a):t?(K.dist.process.nextTick(Ir,r),t(a)):K.dist.process.nextTick(Ir,r)}),this)}function sa(e,t){Ei(e,t),Ir(e)}function Ir(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function iu(){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 Ei(e,t){e.emit("error",t)}function au(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}var df={destroy:nu,undestroy:iu,errorOrDestroy:au},It={};function ou(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var pf={};function Be(e,t,r){r||(r=Error);function n(a,o,f){return typeof t=="string"?t:t(a,o,f)}var i=function(a){ou(o,a);function o(f,d,l){return a.call(this,n(f,d,l))||this}return o}(r);i.prototype.name=r.name,i.prototype.code=e,pf[e]=i}function ca(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(n){return String(n)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function fu(e,t,r){return e.substr(0,t.length)===t}function lu(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function uu(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}Be("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);Be("ERR_INVALID_ARG_TYPE",function(e,t,r){var n;typeof t=="string"&&fu(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";var i;if(lu(e," argument"))i="The ".concat(e," ").concat(n," ").concat(ca(t,"type"));else{var a=uu(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(a," ").concat(n," ").concat(ca(t,"type"))}return i+=". Received type ".concat(typeof r),i},TypeError);Be("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Be("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});Be("ERR_STREAM_PREMATURE_CLOSE","Premature close");Be("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});Be("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Be("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Be("ERR_STREAM_WRITE_AFTER_END","write after end");Be("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Be("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);Be("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");It.codes=pf;var su=It.codes.ERR_INVALID_OPT_VALUE;function cu(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function hu(e,t,r,n){var i=cu(t,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var a=n?r:"highWaterMark";throw new su(a,i)}return Math.floor(i)}return e.objectMode?16:16*1024}var yf={getHighWaterMark:hu},_n,ha;function vf(){if(ha)return _n;ha=1,_n=z;function e(c){var y=this;this.next=null,this.entry=null,this.finish=function(){E(y,c)}}var t;z.WritableState=q;var r={deprecate:Pe.requireBrowser()},n=hf,i=K.bufferPolyfill.Buffer,a=(typeof K.commonjsGlobal<"u"?K.commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function o(c){return i.from(c)}function f(c){return i.isBuffer(c)||c instanceof a}var d=df,l=yf,u=l.getHighWaterMark,w=It.codes,g=w.ERR_INVALID_ARG_TYPE,S=w.ERR_METHOD_NOT_IMPLEMENTED,N=w.ERR_MULTIPLE_CALLBACK,F=w.ERR_STREAM_CANNOT_PIPE,j=w.ERR_STREAM_DESTROYED,k=w.ERR_STREAM_NULL_VALUES,I=w.ERR_STREAM_WRITE_AFTER_END,R=w.ERR_UNKNOWN_ENCODING,P=d.errorOrDestroy;Pe.inherits_browserExports(z,n);function T(){}function q(c,y,m){t=t||qt(),c=c||{},typeof m!="boolean"&&(m=y instanceof t),this.objectMode=!!c.objectMode,m&&(this.objectMode=this.objectMode||!!c.writableObjectMode),this.highWaterMark=u(this,c,"writableHighWaterMark",m),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var M=c.decodeStrings===!1;this.decodeStrings=!M,this.defaultEncoding=c.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(U){ae(y,U)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=c.emitClose!==!1,this.autoDestroy=!!c.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}q.prototype.getBuffer=function(){for(var y=this.bufferedRequest,m=[];y;)m.push(y),y=y.next;return m},function(){try{Object.defineProperty(q.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var C;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(C=Function.prototype[Symbol.hasInstance],Object.defineProperty(z,Symbol.hasInstance,{value:function(y){return C.call(this,y)?!0:this!==z?!1:y&&y._writableState instanceof q}})):C=function(y){return y instanceof this};function z(c){t=t||qt();var y=this instanceof t;if(!y&&!C.call(z,this))return new z(c);this._writableState=new q(c,this,y),this.writable=!0,c&&(typeof c.write=="function"&&(this._write=c.write),typeof c.writev=="function"&&(this._writev=c.writev),typeof c.destroy=="function"&&(this._destroy=c.destroy),typeof c.final=="function"&&(this._final=c.final)),n.call(this)}z.prototype.pipe=function(){P(this,new F)};function x(c,y){var m=new I;P(c,m),K.dist.process.nextTick(y,m)}function re(c,y,m,M){var U;return m===null?U=new k:typeof m!="string"&&!y.objectMode&&(U=new g("chunk",["string","Buffer"],m)),U?(P(c,U),K.dist.process.nextTick(M,U),!1):!0}z.prototype.write=function(c,y,m){var M=this._writableState,U=!1,h=!M.objectMode&&f(c);return h&&!i.isBuffer(c)&&(c=o(c)),typeof y=="function"&&(m=y,y=null),h?y="buffer":y||(y=M.defaultEncoding),typeof m!="function"&&(m=T),M.ending?x(this,m):(h||re(this,M,c,m))&&(M.pendingcb++,U=b(this,M,h,c,y,m)),U},z.prototype.cork=function(){this._writableState.corked++},z.prototype.uncork=function(){var c=this._writableState;c.corked&&(c.corked--,!c.writing&&!c.corked&&!c.bufferProcessing&&c.bufferedRequest&&Z(this,c))},z.prototype.setDefaultEncoding=function(y){if(typeof y=="string"&&(y=y.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((y+"").toLowerCase())>-1))throw new R(y);return this._writableState.defaultEncoding=y,this},Object.defineProperty(z.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function J(c,y,m){return!c.objectMode&&c.decodeStrings!==!1&&typeof y=="string"&&(y=i.from(y,m)),y}Object.defineProperty(z.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function b(c,y,m,M,U,h){if(!m){var p=J(y,M,U);M!==p&&(m=!0,U="buffer",M=p)}var $=y.objectMode?1:M.length;y.length+=$;var V=y.length<y.highWaterMark;if(V||(y.needDrain=!0),y.writing||y.corked){var se=y.lastBufferedRequest;y.lastBufferedRequest={chunk:M,encoding:U,isBuf:m,callback:h,next:null},se?se.next=y.lastBufferedRequest:y.bufferedRequest=y.lastBufferedRequest,y.bufferedRequestCount+=1}else B(c,y,!1,$,M,U,h);return V}function B(c,y,m,M,U,h,p){y.writelen=M,y.writecb=p,y.writing=!0,y.sync=!0,y.destroyed?y.onwrite(new j("write")):m?c._writev(U,y.onwrite):c._write(U,h,y.onwrite),y.sync=!1}function Q(c,y,m,M,U){--y.pendingcb,m?(K.dist.process.nextTick(U,M),K.dist.process.nextTick(A,c,y),c._writableState.errorEmitted=!0,P(c,M)):(U(M),c._writableState.errorEmitted=!0,P(c,M),A(c,y))}function ne(c){c.writing=!1,c.writecb=null,c.length-=c.writelen,c.writelen=0}function ae(c,y){var m=c._writableState,M=m.sync,U=m.writecb;if(typeof U!="function")throw new N;if(ne(m),y)Q(c,m,M,y,U);else{var h=D(m)||c.destroyed;!h&&!m.corked&&!m.bufferProcessing&&m.bufferedRequest&&Z(c,m),M?K.dist.process.nextTick(ue,c,m,h,U):ue(c,m,h,U)}}function ue(c,y,m,M){m||ie(c,y),y.pendingcb--,M(),A(c,y)}function ie(c,y){y.length===0&&y.needDrain&&(y.needDrain=!1,c.emit("drain"))}function Z(c,y){y.bufferProcessing=!0;var m=y.bufferedRequest;if(c._writev&&m&&m.next){var M=y.bufferedRequestCount,U=new Array(M),h=y.corkedRequestsFree;h.entry=m;for(var p=0,$=!0;m;)U[p]=m,m.isBuf||($=!1),m=m.next,p+=1;U.allBuffers=$,B(c,y,!0,y.length,U,"",h.finish),y.pendingcb++,y.lastBufferedRequest=null,h.next?(y.corkedRequestsFree=h.next,h.next=null):y.corkedRequestsFree=new e(y),y.bufferedRequestCount=0}else{for(;m;){var V=m.chunk,se=m.encoding,oe=m.callback,de=y.objectMode?1:V.length;if(B(c,y,!1,de,V,se,oe),m=m.next,y.bufferedRequestCount--,y.writing)break}m===null&&(y.lastBufferedRequest=null)}y.bufferedRequest=m,y.bufferProcessing=!1}z.prototype._write=function(c,y,m){m(new S("_write()"))},z.prototype._writev=null,z.prototype.end=function(c,y,m){var M=this._writableState;return typeof c=="function"?(m=c,c=null,y=null):typeof y=="function"&&(m=y,y=null),c!=null&&this.write(c,y),M.corked&&(M.corked=1,this.uncork()),M.ending||v(this,M,m),this},Object.defineProperty(z.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function D(c){return c.ending&&c.length===0&&c.bufferedRequest===null&&!c.finished&&!c.writing}function W(c,y){c._final(function(m){y.pendingcb--,m&&P(c,m),y.prefinished=!0,c.emit("prefinish"),A(c,y)})}function _(c,y){!y.prefinished&&!y.finalCalled&&(typeof c._final=="function"&&!y.destroyed?(y.pendingcb++,y.finalCalled=!0,K.dist.process.nextTick(W,c,y)):(y.prefinished=!0,c.emit("prefinish")))}function A(c,y){var m=D(y);if(m&&(_(c,y),y.pendingcb===0&&(y.finished=!0,c.emit("finish"),y.autoDestroy))){var M=c._readableState;(!M||M.autoDestroy&&M.endEmitted)&&c.destroy()}return m}function v(c,y,m){y.ending=!0,A(c,y),m&&(y.finished?K.dist.process.nextTick(m):c.once("finish",m)),y.ended=!0,c.writable=!1}function E(c,y,m){var M=c.entry;for(c.entry=null;M;){var U=M.callback;y.pendingcb--,U(m),M=M.next}y.corkedRequestsFree.next=c}return Object.defineProperty(z.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(y){this._writableState&&(this._writableState.destroyed=y)}}),z.prototype.destroy=d.destroy,z.prototype._undestroy=d.undestroy,z.prototype._destroy=function(c,y){y(c)},_n}var bn,da;function qt(){if(da)return bn;da=1;var e=Object.keys||function(l){var u=[];for(var w in l)u.push(w);return u};bn=o;var t=_f(),r=vf();Pe.inherits_browserExports(o,t);for(var n=e(r.prototype),i=0;i<n.length;i++){var a=n[i];o.prototype[a]||(o.prototype[a]=r.prototype[a])}function o(l){if(!(this instanceof o))return new o(l);t.call(this,l),r.call(this,l),this.allowHalfOpen=!0,l&&(l.readable===!1&&(this.readable=!1),l.writable===!1&&(this.writable=!1),l.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",f)))}Object.defineProperty(o.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(o.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(o.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function f(){this._writableState.ended||K.dist.process.nextTick(d,this)}function d(l){l.end()}return Object.defineProperty(o.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(u){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=u,this._writableState.destroyed=u)}}),bn}var pa=It.codes.ERR_STREAM_PREMATURE_CLOSE;function du(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}function pu(){}function yu(e){return e.setHeader&&typeof e.abort=="function"}function gf(e,t,r){if(typeof t=="function")return gf(e,null,t);t||(t={}),r=du(r||pu);var n=t.readable||t.readable!==!1&&e.readable,i=t.writable||t.writable!==!1&&e.writable,a=function(){e.writable||f()},o=e._writableState&&e._writableState.finished,f=function(){i=!1,o=!0,n||r.call(e)},d=e._readableState&&e._readableState.endEmitted,l=function(){n=!1,d=!0,i||r.call(e)},u=function(N){r.call(e,N)},w=function(){var N;if(n&&!d)return(!e._readableState||!e._readableState.ended)&&(N=new pa),r.call(e,N);if(i&&!o)return(!e._writableState||!e._writableState.ended)&&(N=new pa),r.call(e,N)},g=function(){e.req.on("finish",f)};return yu(e)?(e.on("complete",f),e.on("abort",w),e.req?g():e.on("request",g)):i&&!e._writableState&&(e.on("end",a),e.on("close",a)),e.on("end",l),e.on("finish",f),t.error!==!1&&e.on("error",u),e.on("close",w),function(){e.removeListener("complete",f),e.removeListener("abort",w),e.removeListener("request",g),e.req&&e.req.removeListener("finish",f),e.removeListener("end",a),e.removeListener("close",a),e.removeListener("finish",f),e.removeListener("end",l),e.removeListener("error",u),e.removeListener("close",w)}}var zi=gf,mn,ya;function vu(){if(ya)return mn;ya=1;var e;function t(R,P,T){return P=r(P),P in R?Object.defineProperty(R,P,{value:T,enumerable:!0,configurable:!0,writable:!0}):R[P]=T,R}function r(R){var P=n(R,"string");return typeof P=="symbol"?P:String(P)}function n(R,P){if(typeof R!="object"||R===null)return R;var T=R[Symbol.toPrimitive];if(T!==void 0){var q=T.call(R,P);if(typeof q!="object")return q;throw new TypeError("@@toPrimitive must return a primitive value.")}return(P==="string"?String:Number)(R)}var i=zi,a=Symbol("lastResolve"),o=Symbol("lastReject"),f=Symbol("error"),d=Symbol("ended"),l=Symbol("lastPromise"),u=Symbol("handlePromise"),w=Symbol("stream");function g(R,P){return{value:R,done:P}}function S(R){var P=R[a];if(P!==null){var T=R[w].read();T!==null&&(R[l]=null,R[a]=null,R[o]=null,P(g(T,!1)))}}function N(R){K.dist.process.nextTick(S,R)}function F(R,P){return function(T,q){R.then(function(){if(P[d]){T(g(void 0,!0));return}P[u](T,q)},q)}}var j=Object.getPrototypeOf(function(){}),k=Object.setPrototypeOf((e={get stream(){return this[w]},next:function(){var P=this,T=this[f];if(T!==null)return Promise.reject(T);if(this[d])return Promise.resolve(g(void 0,!0));if(this[w].destroyed)return new Promise(function(x,re){K.dist.process.nextTick(function(){P[f]?re(P[f]):x(g(void 0,!0))})});var q=this[l],C;if(q)C=new Promise(F(q,this));else{var z=this[w].read();if(z!==null)return Promise.resolve(g(z,!1));C=new Promise(this[u])}return this[l]=C,C}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var P=this;return new Promise(function(T,q){P[w].destroy(null,function(C){if(C){q(C);return}T(g(void 0,!0))})})}),e),j),I=function(P){var T,q=Object.create(k,(T={},t(T,w,{value:P,writable:!0}),t(T,a,{value:null,writable:!0}),t(T,o,{value:null,writable:!0}),t(T,f,{value:null,writable:!0}),t(T,d,{value:P._readableState.endEmitted,writable:!0}),t(T,u,{value:function(z,x){var re=q[w].read();re?(q[l]=null,q[a]=null,q[o]=null,z(g(re,!1))):(q[a]=z,q[o]=x)},writable:!0}),T));return q[l]=null,i(P,function(C){if(C&&C.code!=="ERR_STREAM_PREMATURE_CLOSE"){var z=q[o];z!==null&&(q[l]=null,q[a]=null,q[o]=null,z(C)),q[f]=C;return}var x=q[a];x!==null&&(q[l]=null,q[a]=null,q[o]=null,x(g(void 0,!0))),q[d]=!0}),P.on("readable",N.bind(null,q)),q};return mn=I,mn}var wn,va;function gu(){return va||(va=1,wn=function(){throw new Error("Readable.from is not available in the browser")}),wn}var En,ga;function _f(){if(ga)return En;ga=1,En=x;var e;x.ReadableState=z,Pe.eventsExports.EventEmitter;var t=function(p,$){return p.listeners($).length},r=hf,n=K.bufferPolyfill.Buffer,i=(typeof K.commonjsGlobal<"u"?K.commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function a(h){return n.from(h)}function o(h){return n.isBuffer(h)||h instanceof i}var f=Pe.require$$3,d;f&&f.debuglog?d=f.debuglog("stream"):d=function(){};var l=ru(),u=df,w=yf,g=w.getHighWaterMark,S=It.codes,N=S.ERR_INVALID_ARG_TYPE,F=S.ERR_STREAM_PUSH_AFTER_EOF,j=S.ERR_METHOD_NOT_IMPLEMENTED,k=S.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,I,R,P;Pe.inherits_browserExports(x,r);var T=u.errorOrDestroy,q=["error","close","destroy","pause","resume"];function C(h,p,$){if(typeof h.prependListener=="function")return h.prependListener(p,$);!h._events||!h._events[p]?h.on(p,$):Array.isArray(h._events[p])?h._events[p].unshift($):h._events[p]=[$,h._events[p]]}function z(h,p,$){e=e||qt(),h=h||{},typeof $!="boolean"&&($=p instanceof e),this.objectMode=!!h.objectMode,$&&(this.objectMode=this.objectMode||!!h.readableObjectMode),this.highWaterMark=g(this,h,"readableHighWaterMark",$),this.buffer=new l,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=h.emitClose!==!1,this.autoDestroy=!!h.autoDestroy,this.destroyed=!1,this.defaultEncoding=h.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,h.encoding&&(I||(I=Pe.requireString_decoder().StringDecoder),this.decoder=new I(h.encoding),this.encoding=h.encoding)}function x(h){if(e=e||qt(),!(this instanceof x))return new x(h);var p=this instanceof e;this._readableState=new z(h,this,p),this.readable=!0,h&&(typeof h.read=="function"&&(this._read=h.read),typeof h.destroy=="function"&&(this._destroy=h.destroy)),r.call(this)}Object.defineProperty(x.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(p){this._readableState&&(this._readableState.destroyed=p)}}),x.prototype.destroy=u.destroy,x.prototype._undestroy=u.undestroy,x.prototype._destroy=function(h,p){p(h)},x.prototype.push=function(h,p){var $=this._readableState,V;return $.objectMode?V=!0:typeof h=="string"&&(p=p||$.defaultEncoding,p!==$.encoding&&(h=n.from(h,p),p=""),V=!0),re(this,h,p,!1,V)},x.prototype.unshift=function(h){return re(this,h,null,!0,!1)};function re(h,p,$,V,se){d("readableAddChunk",p);var oe=h._readableState;if(p===null)oe.reading=!1,ae(h,oe);else{var de;if(se||(de=b(oe,p)),de)T(h,de);else if(oe.objectMode||p&&p.length>0)if(typeof p!="string"&&!oe.objectMode&&Object.getPrototypeOf(p)!==n.prototype&&(p=a(p)),V)oe.endEmitted?T(h,new k):J(h,oe,p,!0);else if(oe.ended)T(h,new F);else{if(oe.destroyed)return!1;oe.reading=!1,oe.decoder&&!$?(p=oe.decoder.write(p),oe.objectMode||p.length!==0?J(h,oe,p,!1):Z(h,oe)):J(h,oe,p,!1)}else V||(oe.reading=!1,Z(h,oe))}return!oe.ended&&(oe.length<oe.highWaterMark||oe.length===0)}function J(h,p,$,V){p.flowing&&p.length===0&&!p.sync?(p.awaitDrain=0,h.emit("data",$)):(p.length+=p.objectMode?1:$.length,V?p.buffer.unshift($):p.buffer.push($),p.needReadable&&ue(h)),Z(h,p)}function b(h,p){var $;return!o(p)&&typeof p!="string"&&p!==void 0&&!h.objectMode&&($=new N("chunk",["string","Buffer","Uint8Array"],p)),$}x.prototype.isPaused=function(){return this._readableState.flowing===!1},x.prototype.setEncoding=function(h){I||(I=Pe.requireString_decoder().StringDecoder);var p=new I(h);this._readableState.decoder=p,this._readableState.encoding=this._readableState.decoder.encoding;for(var $=this._readableState.buffer.head,V="";$!==null;)V+=p.write($.data),$=$.next;return this._readableState.buffer.clear(),V!==""&&this._readableState.buffer.push(V),this._readableState.length=V.length,this};var B=1073741824;function Q(h){return h>=B?h=B:(h--,h|=h>>>1,h|=h>>>2,h|=h>>>4,h|=h>>>8,h|=h>>>16,h++),h}function ne(h,p){return h<=0||p.length===0&&p.ended?0:p.objectMode?1:h!==h?p.flowing&&p.length?p.buffer.head.data.length:p.length:(h>p.highWaterMark&&(p.highWaterMark=Q(h)),h<=p.length?h:p.ended?p.length:(p.needReadable=!0,0))}x.prototype.read=function(h){d("read",h),h=parseInt(h,10);var p=this._readableState,$=h;if(h!==0&&(p.emittedReadable=!1),h===0&&p.needReadable&&((p.highWaterMark!==0?p.length>=p.highWaterMark:p.length>0)||p.ended))return d("read: emitReadable",p.length,p.ended),p.length===0&&p.ended?m(this):ue(this),null;if(h=ne(h,p),h===0&&p.ended)return p.length===0&&m(this),null;var V=p.needReadable;d("need readable",V),(p.length===0||p.length-h<p.highWaterMark)&&(V=!0,d("length less than watermark",V)),p.ended||p.reading?(V=!1,d("reading or ended",V)):V&&(d("do read"),p.reading=!0,p.sync=!0,p.length===0&&(p.needReadable=!0),this._read(p.highWaterMark),p.sync=!1,p.reading||(h=ne($,p)));var se;return h>0?se=y(h,p):se=null,se===null?(p.needReadable=p.length<=p.highWaterMark,h=0):(p.length-=h,p.awaitDrain=0),p.length===0&&(p.ended||(p.needReadable=!0),$!==h&&p.ended&&m(this)),se!==null&&this.emit("data",se),se};function ae(h,p){if(d("onEofChunk"),!p.ended){if(p.decoder){var $=p.decoder.end();$&&$.length&&(p.buffer.push($),p.length+=p.objectMode?1:$.length)}p.ended=!0,p.sync?ue(h):(p.needReadable=!1,p.emittedReadable||(p.emittedReadable=!0,ie(h)))}}function ue(h){var p=h._readableState;d("emitReadable",p.needReadable,p.emittedReadable),p.needReadable=!1,p.emittedReadable||(d("emitReadable",p.flowing),p.emittedReadable=!0,K.dist.process.nextTick(ie,h))}function ie(h){var p=h._readableState;d("emitReadable_",p.destroyed,p.length,p.ended),!p.destroyed&&(p.length||p.ended)&&(h.emit("readable"),p.emittedReadable=!1),p.needReadable=!p.flowing&&!p.ended&&p.length<=p.highWaterMark,c(h)}function Z(h,p){p.readingMore||(p.readingMore=!0,K.dist.process.nextTick(D,h,p))}function D(h,p){for(;!p.reading&&!p.ended&&(p.length<p.highWaterMark||p.flowing&&p.length===0);){var $=p.length;if(d("maybeReadMore read 0"),h.read(0),$===p.length)break}p.readingMore=!1}x.prototype._read=function(h){T(this,new j("_read()"))},x.prototype.pipe=function(h,p){var $=this,V=this._readableState;switch(V.pipesCount){case 0:V.pipes=h;break;case 1:V.pipes=[V.pipes,h];break;default:V.pipes.push(h);break}V.pipesCount+=1,d("pipe count=%d opts=%j",V.pipesCount,p);var se=(!p||p.end!==!1)&&h!==K.dist.process.stdout&&h!==K.dist.process.stderr,oe=se?_e:G;V.endEmitted?K.dist.process.nextTick(oe):$.once("end",oe),h.on("unpipe",de);function de(ee,te){d("onunpipe"),ee===$&&te&&te.hasUnpiped===!1&&(te.hasUnpiped=!0,Te())}function _e(){d("onend"),h.end()}var H=W($);h.on("drain",H);var je=!1;function Te(){d("cleanup"),h.removeListener("close",s),h.removeListener("finish",O),h.removeListener("drain",H),h.removeListener("error",X),h.removeListener("unpipe",de),$.removeListener("end",_e),$.removeListener("end",G),$.removeListener("data",L),je=!0,V.awaitDrain&&(!h._writableState||h._writableState.needDrain)&&H()}$.on("data",L);function L(ee){d("ondata");var te=h.write(ee);d("dest.write",te),te===!1&&((V.pipesCount===1&&V.pipes===h||V.pipesCount>1&&U(V.pipes,h)!==-1)&&!je&&(d("false write response, pause",V.awaitDrain),V.awaitDrain++),$.pause())}function X(ee){d("onerror",ee),G(),h.removeListener("error",X),t(h,"error")===0&&T(h,ee)}C(h,"error",X);function s(){h.removeListener("finish",O),G()}h.once("close",s);function O(){d("onfinish"),h.removeListener("close",s),G()}h.once("finish",O);function G(){d("unpipe"),$.unpipe(h)}return h.emit("pipe",$),V.flowing||(d("pipe resume"),$.resume()),h};function W(h){return function(){var $=h._readableState;d("pipeOnDrain",$.awaitDrain),$.awaitDrain&&$.awaitDrain--,$.awaitDrain===0&&t(h,"data")&&($.flowing=!0,c(h))}}x.prototype.unpipe=function(h){var p=this._readableState,$={hasUnpiped:!1};if(p.pipesCount===0)return this;if(p.pipesCount===1)return h&&h!==p.pipes?this:(h||(h=p.pipes),p.pipes=null,p.pipesCount=0,p.flowing=!1,h&&h.emit("unpipe",this,$),this);if(!h){var V=p.pipes,se=p.pipesCount;p.pipes=null,p.pipesCount=0,p.flowing=!1;for(var oe=0;oe<se;oe++)V[oe].emit("unpipe",this,{hasUnpiped:!1});return this}var de=U(p.pipes,h);return de===-1?this:(p.pipes.splice(de,1),p.pipesCount-=1,p.pipesCount===1&&(p.pipes=p.pipes[0]),h.emit("unpipe",this,$),this)},x.prototype.on=function(h,p){var $=r.prototype.on.call(this,h,p),V=this._readableState;return h==="data"?(V.readableListening=this.listenerCount("readable")>0,V.flowing!==!1&&this.resume()):h==="readable"&&!V.endEmitted&&!V.readableListening&&(V.readableListening=V.needReadable=!0,V.flowing=!1,V.emittedReadable=!1,d("on readable",V.length,V.reading),V.length?ue(this):V.reading||K.dist.process.nextTick(A,this)),$},x.prototype.addListener=x.prototype.on,x.prototype.removeListener=function(h,p){var $=r.prototype.removeListener.call(this,h,p);return h==="readable"&&K.dist.process.nextTick(_,this),$},x.prototype.removeAllListeners=function(h){var p=r.prototype.removeAllListeners.apply(this,arguments);return(h==="readable"||h===void 0)&&K.dist.process.nextTick(_,this),p};function _(h){var p=h._readableState;p.readableListening=h.listenerCount("readable")>0,p.resumeScheduled&&!p.paused?p.flowing=!0:h.listenerCount("data")>0&&h.resume()}function A(h){d("readable nexttick read 0"),h.read(0)}x.prototype.resume=function(){var h=this._readableState;return h.flowing||(d("resume"),h.flowing=!h.readableListening,v(this,h)),h.paused=!1,this};function v(h,p){p.resumeScheduled||(p.resumeScheduled=!0,K.dist.process.nextTick(E,h,p))}function E(h,p){d("resume",p.reading),p.reading||h.read(0),p.resumeScheduled=!1,h.emit("resume"),c(h),p.flowing&&!p.reading&&h.read(0)}x.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function c(h){var p=h._readableState;for(d("flow",p.flowing);p.flowing&&h.read()!==null;);}x.prototype.wrap=function(h){var p=this,$=this._readableState,V=!1;h.on("end",function(){if(d("wrapped end"),$.decoder&&!$.ended){var de=$.decoder.end();de&&de.length&&p.push(de)}p.push(null)}),h.on("data",function(de){if(d("wrapped data"),$.decoder&&(de=$.decoder.write(de)),!($.objectMode&&de==null)&&!(!$.objectMode&&(!de||!de.length))){var _e=p.push(de);_e||(V=!0,h.pause())}});for(var se in h)this[se]===void 0&&typeof h[se]=="function"&&(this[se]=function(_e){return function(){return h[_e].apply(h,arguments)}}(se));for(var oe=0;oe<q.length;oe++)h.on(q[oe],this.emit.bind(this,q[oe]));return this._read=function(de){d("wrapped _read",de),V&&(V=!1,h.resume())},this},typeof Symbol=="function"&&(x.prototype[Symbol.asyncIterator]=function(){return R===void 0&&(R=vu()),R(this)}),Object.defineProperty(x.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(x.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(x.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(p){this._readableState&&(this._readableState.flowing=p)}}),x._fromList=y,Object.defineProperty(x.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function y(h,p){if(p.length===0)return null;var $;return p.objectMode?$=p.buffer.shift():!h||h>=p.length?(p.decoder?$=p.buffer.join(""):p.buffer.length===1?$=p.buffer.first():$=p.buffer.concat(p.length),p.buffer.clear()):$=p.buffer.consume(h,p.decoder),$}function m(h){var p=h._readableState;d("endReadable",p.endEmitted),p.endEmitted||(p.ended=!0,K.dist.process.nextTick(M,p,h))}function M(h,p){if(d("endReadableNT",h.endEmitted,h.length),!h.endEmitted&&h.length===0&&(h.endEmitted=!0,p.readable=!1,p.emit("end"),h.autoDestroy)){var $=p._writableState;(!$||$.autoDestroy&&$.finished)&&p.destroy()}}typeof Symbol=="function"&&(x.from=function(h,p){return P===void 0&&(P=gu()),P(x,h,p)});function U(h,p){for(var $=0,V=h.length;$<V;$++)if(h[$]===p)return $;return-1}return En}var bf=ot,Qr=It.codes,_u=Qr.ERR_METHOD_NOT_IMPLEMENTED,bu=Qr.ERR_MULTIPLE_CALLBACK,mu=Qr.ERR_TRANSFORM_ALREADY_TRANSFORMING,wu=Qr.ERR_TRANSFORM_WITH_LENGTH_0,en=qt();Pe.inherits_browserExports(ot,en);function Eu(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new bu);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function ot(e){if(!(this instanceof ot))return new ot(e);en.call(this,e),this._transformState={afterTransform:Eu.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",Su)}function Su(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(t,r){_a(e,t,r)}):_a(this,null,null)}ot.prototype.push=function(e,t){return this._transformState.needTransform=!1,en.prototype.push.call(this,e,t)};ot.prototype._transform=function(e,t,r){r(new _u("_transform()"))};ot.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};ot.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};ot.prototype._destroy=function(e,t){en.prototype._destroy.call(this,e,function(r){t(r)})};function _a(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new wu;if(e._transformState.transforming)throw new mu;return e.push(null)}var Ru=ar,mf=bf;Pe.inherits_browserExports(ar,mf);function ar(e){if(!(this instanceof ar))return new ar(e);mf.call(this,e)}ar.prototype._transform=function(e,t,r){r(null,e)};var Sn;function Au(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var wf=It.codes,Ou=wf.ERR_MISSING_ARGS,Tu=wf.ERR_STREAM_DESTROYED;function ba(e){if(e)throw e}function Iu(e){return e.setHeader&&typeof e.abort=="function"}function Pu(e,t,r,n){n=Au(n);var i=!1;e.on("close",function(){i=!0}),Sn===void 0&&(Sn=zi),Sn(e,{readable:t,writable:r},function(o){if(o)return n(o);i=!0,n()});var a=!1;return function(o){if(!i&&!a){if(a=!0,Iu(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();n(o||new Tu("pipe"))}}}function ma(e){e()}function Nu(e,t){return e.pipe(t)}function Du(e){return!e.length||typeof e[e.length-1]!="function"?ba:e.pop()}function Lu(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=Du(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Ou("streams");var i,a=t.map(function(o,f){var d=f<t.length-1,l=f>0;return Pu(o,d,l,function(u){i||(i=u),u&&a.forEach(ma),!d&&(a.forEach(ma),n(i))})});return t.reduce(Nu)}var Mu=Lu;(function(e,t){t=e.exports=_f(),t.Stream=t,t.Readable=t,t.Writable=vf(),t.Duplex=qt(),t.Transform=bf,t.PassThrough=Ru,t.finished=zi,t.pipeline=Mu})(wi,wi.exports);var Ef=wi.exports,wa=qi,ku=Pe.inherits_browserExports,Sf=Ef,mr=Jr.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},Zi=Jr.IncomingMessage=function(e,t,r,n){var i=this;if(Sf.Readable.call(i),i._mode=r,i.headers={},i.rawHeaders=[],i.trailers={},i.rawTrailers=[],i.on("end",function(){K.dist.process.nextTick(function(){i.emit("close")})}),r==="fetch"){let u=function(){o.read().then(function(w){if(!i._destroyed){if(n(w.done),w.done){i.push(null);return}i.push(K.dist.Buffer.from(w.value)),u()}}).catch(function(w){n(!0),i._destroyed||i.emit("error",w)})};if(i._fetchResponse=t,i.url=t.url,i.statusCode=t.status,i.statusMessage=t.statusText,t.headers.forEach(function(w,g){i.headers[g.toLowerCase()]=w,i.rawHeaders.push(g,w)}),wa.writableStream){var a=new WritableStream({write:function(w){return n(!1),new Promise(function(g,S){i._destroyed?S():i.push(K.dist.Buffer.from(w))?g():i._resumeFetch=g})},close:function(){n(!0),i._destroyed||i.push(null)},abort:function(w){n(!0),i._destroyed||i.emit("error",w)}});try{t.body.pipeTo(a).catch(function(w){n(!0),i._destroyed||i.emit("error",w)});return}catch{}}var o=t.body.getReader();u()}else{i._xhr=e,i._pos=0,i.url=e.responseURL,i.statusCode=e.status,i.statusMessage=e.statusText;var f=e.getAllResponseHeaders().split(/\r?\n/);if(f.forEach(function(u){var w=u.match(/^([^:]+):\s*(.*)/);if(w){var g=w[1].toLowerCase();g==="set-cookie"?(i.headers[g]===void 0&&(i.headers[g]=[]),i.headers[g].push(w[2])):i.headers[g]!==void 0?i.headers[g]+=", "+w[2]:i.headers[g]=w[2],i.rawHeaders.push(w[1],w[2])}}),i._charset="x-user-defined",!wa.overrideMimeType){var d=i.rawHeaders["mime-type"];if(d){var l=d.match(/;\s*charset=([^;])(;|$)/);l&&(i._charset=l[1].toLowerCase())}i._charset||(i._charset="utf-8")}}};ku(Zi,Sf.Readable);Zi.prototype._read=function(){var e=this,t=e._resumeFetch;t&&(e._resumeFetch=null,t())};Zi.prototype._onXHRProgress=function(e){var t=this,r=t._xhr,n=null;switch(t._mode){case"text":if(n=r.responseText,n.length>t._pos){var i=n.substr(t._pos);if(t._charset==="x-user-defined"){for(var a=K.dist.Buffer.alloc(i.length),o=0;o<i.length;o++)a[o]=i.charCodeAt(o)&255;t.push(a)}else t.push(i,t._charset);t._pos=n.length}break;case"arraybuffer":if(r.readyState!==mr.DONE||!r.response)break;n=r.response,t.push(K.dist.Buffer.from(new Uint8Array(n)));break;case"moz-chunked-arraybuffer":if(n=r.response,r.readyState!==mr.LOADING||!n)break;t.push(K.dist.Buffer.from(new Uint8Array(n)));break;case"ms-stream":if(n=r.response,r.readyState!==mr.LOADING)break;var f=new K.commonjsGlobal.MSStreamReader;f.onprogress=function(){f.result.byteLength>t._pos&&(t.push(K.dist.Buffer.from(new Uint8Array(f.result.slice(t._pos)))),t._pos=f.result.byteLength)},f.onload=function(){e(!0),t.push(null)},f.readAsArrayBuffer(n);break}t._xhr.readyState===mr.DONE&&t._mode!=="ms-stream"&&(e(!0),t.push(null))};var mt=qi,Fu=Pe.inherits_browserExports,Rf=Jr,Hi=Ef,ju=Rf.IncomingMessage,Ea=Rf.readyStates;function xu(e,t){return mt.fetch&&t?"fetch":mt.mozchunkedarraybuffer?"moz-chunked-arraybuffer":mt.msstream?"ms-stream":mt.arraybuffer&&e?"arraybuffer":"text"}var Le=cf.exports=function(e){var t=this;Hi.Writable.call(t),t._opts=e,t._body=[],t._headers={},e.auth&&t.setHeader("Authorization","Basic "+K.dist.Buffer.from(e.auth).toString("base64")),Object.keys(e.headers).forEach(function(i){t.setHeader(i,e.headers[i])});var r,n=!0;if(e.mode==="disable-fetch"||"requestTimeout"in e&&!mt.abortController)n=!1,r=!0;else if(e.mode==="prefer-streaming")r=!1;else if(e.mode==="allow-wrong-content-type")r=!mt.overrideMimeType;else if(!e.mode||e.mode==="default"||e.mode==="prefer-fast")r=!0;else throw new Error("Invalid value for opts.mode");t._mode=xu(r,n),t._fetchTimer=null,t._socketTimeout=null,t._socketTimer=null,t.on("finish",function(){t._onFinish()})};Fu(Le,Hi.Writable);Le.prototype.setHeader=function(e,t){var r=this,n=e.toLowerCase();Cu.indexOf(n)===-1&&(r._headers[n]={name:e,value:t})};Le.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null};Le.prototype.removeHeader=function(e){var t=this;delete t._headers[e.toLowerCase()]};Le.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t=e._opts;"timeout"in t&&t.timeout!==0&&e.setTimeout(t.timeout);var r=e._headers,n=null;t.method!=="GET"&&t.method!=="HEAD"&&(n=new Blob(e._body,{type:(r["content-type"]||{}).value||""}));var i=[];if(Object.keys(r).forEach(function(d){var l=r[d].name,u=r[d].value;Array.isArray(u)?u.forEach(function(w){i.push([l,w])}):i.push([l,u])}),e._mode==="fetch"){var a=null;if(mt.abortController){var o=new AbortController;a=o.signal,e._fetchAbortController=o,"requestTimeout"in t&&t.requestTimeout!==0&&(e._fetchTimer=K.commonjsGlobal.setTimeout(function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()},t.requestTimeout))}K.commonjsGlobal.fetch(e._opts.url,{method:e._opts.method,headers:i,body:n||void 0,mode:"cors",credentials:t.withCredentials?"include":"same-origin",signal:a}).then(function(d){e._fetchResponse=d,e._resetTimers(!1),e._connect()},function(d){e._resetTimers(!0),e._destroyed||e.emit("error",d)})}else{var f=e._xhr=new K.commonjsGlobal.XMLHttpRequest;try{f.open(e._opts.method,e._opts.url,!0)}catch(d){K.dist.process.nextTick(function(){e.emit("error",d)});return}"responseType"in f&&(f.responseType=e._mode),"withCredentials"in f&&(f.withCredentials=!!t.withCredentials),e._mode==="text"&&"overrideMimeType"in f&&f.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in t&&(f.timeout=t.requestTimeout,f.ontimeout=function(){e.emit("requestTimeout")}),i.forEach(function(d){f.setRequestHeader(d[0],d[1])}),e._response=null,f.onreadystatechange=function(){switch(f.readyState){case Ea.LOADING:case Ea.DONE:e._onXHRProgress();break}},e._mode==="moz-chunked-arraybuffer"&&(f.onprogress=function(){e._onXHRProgress()}),f.onerror=function(){e._destroyed||(e._resetTimers(!0),e.emit("error",new Error("XHR error")))};try{f.send(n)}catch(d){K.dist.process.nextTick(function(){e.emit("error",d)});return}}}};function $u(e){try{var t=e.status;return t!==null&&t!==0}catch{return!1}}Le.prototype._onXHRProgress=function(){var e=this;e._resetTimers(!1),!(!$u(e._xhr)||e._destroyed)&&(e._response||e._connect(),e._response._onXHRProgress(e._resetTimers.bind(e)))};Le.prototype._connect=function(){var e=this;e._destroyed||(e._response=new ju(e._xhr,e._fetchResponse,e._mode,e._resetTimers.bind(e)),e._response.on("error",function(t){e.emit("error",t)}),e.emit("response",e._response))};Le.prototype._write=function(e,t,r){var n=this;n._body.push(e),r()};Le.prototype._resetTimers=function(e){var t=this;K.commonjsGlobal.clearTimeout(t._socketTimer),t._socketTimer=null,e?(K.commonjsGlobal.clearTimeout(t._fetchTimer),t._fetchTimer=null):t._socketTimeout&&(t._socketTimer=K.commonjsGlobal.setTimeout(function(){t.emit("timeout")},t._socketTimeout))};Le.prototype.abort=Le.prototype.destroy=function(e){var t=this;t._destroyed=!0,t._resetTimers(!0),t._response&&(t._response._destroyed=!0),t._xhr?t._xhr.abort():t._fetchAbortController&&t._fetchAbortController.abort(),e&&t.emit("error",e)};Le.prototype.end=function(e,t,r){var n=this;typeof e=="function"&&(r=e,e=void 0),Hi.Writable.prototype.end.call(n,e,t,r)};Le.prototype.setTimeout=function(e,t){var r=this;t&&r.once("timeout",t),r._socketTimeout=e,r._resetTimers(!1)};Le.prototype.flushHeaders=function(){};Le.prototype.setNoDelay=function(){};Le.prototype.setSocketKeepAlive=function(){};var Cu=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"],Bu=cf.exports,Uu=zu,qu=Object.prototype.hasOwnProperty;function zu(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var n in r)qu.call(r,n)&&(e[n]=r[n])}return e}var Zu={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"},Si={exports:{}},Ur={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */Ur.exports;(function(e,t){(function(r){var n=t&&!t.nodeType&&t,i=e&&!e.nodeType&&e,a=typeof K.commonjsGlobal=="object"&&K.commonjsGlobal;(a.global===a||a.window===a||a.self===a)&&(r=a);var o,f=2147483647,d=36,l=1,u=26,w=38,g=700,S=72,N=128,F="-",j=/^xn--/,k=/[^\x20-\x7E]/,I=/[\x2E\u3002\uFF0E\uFF61]/g,R={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},P=d-l,T=Math.floor,q=String.fromCharCode,C;function z(D){throw new RangeError(R[D])}function x(D,W){for(var _=D.length,A=[];_--;)A[_]=W(D[_]);return A}function re(D,W){var _=D.split("@"),A="";_.length>1&&(A=_[0]+"@",D=_[1]),D=D.replace(I,".");var v=D.split("."),E=x(v,W).join(".");return A+E}function J(D){for(var W=[],_=0,A=D.length,v,E;_<A;)v=D.charCodeAt(_++),v>=55296&&v<=56319&&_<A?(E=D.charCodeAt(_++),(E&64512)==56320?W.push(((v&1023)<<10)+(E&1023)+65536):(W.push(v),_--)):W.push(v);return W}function b(D){return x(D,function(W){var _="";return W>65535&&(W-=65536,_+=q(W>>>10&1023|55296),W=56320|W&1023),_+=q(W),_}).join("")}function B(D){return D-48<10?D-22:D-65<26?D-65:D-97<26?D-97:d}function Q(D,W){return D+22+75*(D<26)-((W!=0)<<5)}function ne(D,W,_){var A=0;for(D=_?T(D/g):D>>1,D+=T(D/W);D>P*u>>1;A+=d)D=T(D/P);return T(A+(P+1)*D/(D+w))}function ae(D){var W=[],_=D.length,A,v=0,E=N,c=S,y,m,M,U,h,p,$,V,se;for(y=D.lastIndexOf(F),y<0&&(y=0),m=0;m<y;++m)D.charCodeAt(m)>=128&&z("not-basic"),W.push(D.charCodeAt(m));for(M=y>0?y+1:0;M<_;){for(U=v,h=1,p=d;M>=_&&z("invalid-input"),$=B(D.charCodeAt(M++)),($>=d||$>T((f-v)/h))&&z("overflow"),v+=$*h,V=p<=c?l:p>=c+u?u:p-c,!($<V);p+=d)se=d-V,h>T(f/se)&&z("overflow"),h*=se;A=W.length+1,c=ne(v-U,A,U==0),T(v/A)>f-E&&z("overflow"),E+=T(v/A),v%=A,W.splice(v++,0,E)}return b(W)}function ue(D){var W,_,A,v,E,c,y,m,M,U,h,p=[],$,V,se,oe;for(D=J(D),$=D.length,W=N,_=0,E=S,c=0;c<$;++c)h=D[c],h<128&&p.push(q(h));for(A=v=p.length,v&&p.push(F);A<$;){for(y=f,c=0;c<$;++c)h=D[c],h>=W&&h<y&&(y=h);for(V=A+1,y-W>T((f-_)/V)&&z("overflow"),_+=(y-W)*V,W=y,c=0;c<$;++c)if(h=D[c],h<W&&++_>f&&z("overflow"),h==W){for(m=_,M=d;U=M<=E?l:M>=E+u?u:M-E,!(m<U);M+=d)oe=m-U,se=d-U,p.push(q(Q(U+oe%se,0))),m=T(oe/se);p.push(q(Q(m,0))),E=ne(_,V,A==v),_=0,++A}++_,++W}return p.join("")}function ie(D){return re(D,function(W){return j.test(W)?ae(W.slice(4).toLowerCase()):W})}function Z(D){return re(D,function(W){return k.test(W)?"xn--"+ue(W):W})}if(o={version:"1.4.1",ucs2:{decode:J,encode:b},decode:ae,encode:ue,toASCII:Z,toUnicode:ie},n&&i)if(e.exports==n)i.exports=o;else for(C in o)o.hasOwnProperty(C)&&(n[C]=o[C]);else r.punycode=o})(K.commonjsGlobal)})(Ur,Ur.exports);var Af=Ur.exports,ft=TypeError,Wi=typeof Map=="function"&&Map.prototype,Rn=Object.getOwnPropertyDescriptor&&Wi?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,qr=Wi&&Rn&&typeof Rn.get=="function"?Rn.get:null,Sa=Wi&&Map.prototype.forEach,Gi=typeof Set=="function"&&Set.prototype,An=Object.getOwnPropertyDescriptor&&Gi?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,zr=Gi&&An&&typeof An.get=="function"?An.get:null,Ra=Gi&&Set.prototype.forEach,Hu=typeof WeakMap=="function"&&WeakMap.prototype,Qt=Hu?WeakMap.prototype.has:null,Wu=typeof WeakSet=="function"&&WeakSet.prototype,er=Wu?WeakSet.prototype.has:null,Gu=typeof WeakRef=="function"&&WeakRef.prototype,Aa=Gu?WeakRef.prototype.deref:null,Vu=Boolean.prototype.valueOf,Ku=Object.prototype.toString,Yu=Function.prototype.toString,Xu=String.prototype.match,Vi=String.prototype.slice,ht=String.prototype.replace,Ju=String.prototype.toUpperCase,Oa=String.prototype.toLowerCase,Of=RegExp.prototype.test,Ta=Array.prototype.concat,Qe=Array.prototype.join,Qu=Array.prototype.slice,Ia=Math.floor,Ri=typeof BigInt=="function"?BigInt.prototype.valueOf:null,On=Object.getOwnPropertySymbols,Ai=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,zt=typeof Symbol=="function"&&typeof Symbol.iterator=="object",tr=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===zt||!0)?Symbol.toStringTag:null,Tf=Object.prototype.propertyIsEnumerable,Pa=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Na(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Of.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-Ia(-e):Ia(e);if(n!==e){var i=String(n),a=Vi.call(t,i.length+1);return ht.call(i,r,"$&_")+"."+ht.call(ht.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return ht.call(t,r,"$&_")}var Oi=Pe.require$$3,Da=Oi.custom,La=Nf(Da)?Da:null,If={__proto__:null,double:'"',single:"'"},es={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},tn=function e(t,r,n,i){var a=r||{};if(it(a,"quoteStyle")&&!it(If,a.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(it(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var o=it(a,"customInspect")?a.customInspect:!0;if(typeof o!="boolean"&&o!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(it(a,"indent")&&a.indent!==null&&a.indent!==" "&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(it(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var f=a.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return Lf(t,a);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var d=String(t);return f?Na(t,d):d}if(typeof t=="bigint"){var l=String(t)+"n";return f?Na(t,l):l}var u=typeof a.depth>"u"?5:a.depth;if(typeof n>"u"&&(n=0),n>=u&&u>0&&typeof t=="object")return Ti(t)?"[Array]":"[Object]";var w=_s(a,n);if(typeof i>"u")i=[];else if(Df(i,t)>=0)return"[Circular]";function g(B,Q,ne){if(Q&&(i=Qu.call(i),i.push(Q)),ne){var ae={depth:a.depth};return it(a,"quoteStyle")&&(ae.quoteStyle=a.quoteStyle),e(B,ae,n+1,i)}return e(B,a,n+1,i)}if(typeof t=="function"&&!Ma(t)){var S=us(t),N=wr(t,g);return"[Function"+(S?": "+S:" (anonymous)")+"]"+(N.length>0?" { "+Qe.call(N,", ")+" }":"")}if(Nf(t)){var F=zt?ht.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Ai.call(t);return typeof t=="object"&&!zt?Yt(F):F}if(ys(t)){for(var j="<"+Oa.call(String(t.nodeName)),k=t.attributes||[],I=0;I<k.length;I++)j+=" "+k[I].name+"="+Pf(ts(k[I].value),"double",a);return j+=">",t.childNodes&&t.childNodes.length&&(j+="..."),j+="</"+Oa.call(String(t.nodeName))+">",j}if(Ti(t)){if(t.length===0)return"[]";var R=wr(t,g);return w&&!gs(R)?"["+Ii(R,w)+"]":"[ "+Qe.call(R,", ")+" ]"}if(ns(t)){var P=wr(t,g);return!("cause"in Error.prototype)&&"cause"in t&&!Tf.call(t,"cause")?"{ ["+String(t)+"] "+Qe.call(Ta.call("[cause]: "+g(t.cause),P),", ")+" }":P.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Qe.call(P,", ")+" }"}if(typeof t=="object"&&o){if(La&&typeof t[La]=="function"&&Oi)return Oi(t,{depth:u-n});if(o!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(ss(t)){var T=[];return Sa&&Sa.call(t,function(B,Q){T.push(g(Q,t,!0)+" => "+g(B,t))}),ka("Map",qr.call(t),T,w)}if(ds(t)){var q=[];return Ra&&Ra.call(t,function(B){q.push(g(B,t))}),ka("Set",zr.call(t),q,w)}if(cs(t))return Tn("WeakMap");if(ps(t))return Tn("WeakSet");if(hs(t))return Tn("WeakRef");if(as(t))return Yt(g(Number(t)));if(fs(t))return Yt(g(Ri.call(t)));if(os(t))return Yt(Vu.call(t));if(is(t))return Yt(g(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(typeof globalThis<"u"&&t===globalThis||typeof K.commonjsGlobal<"u"&&t===K.commonjsGlobal)return"{ [object globalThis] }";if(!rs(t)&&!Ma(t)){var C=wr(t,g),z=Pa?Pa(t)===Object.prototype:t instanceof Object||t.constructor===Object,x=t instanceof Object?"":"null prototype",re=!z&&tr&&Object(t)===t&&tr in t?Vi.call(gt(t),8,-1):x?"Object":"",J=z||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",b=J+(re||x?"["+Qe.call(Ta.call([],re||[],x||[]),": ")+"] ":"");return C.length===0?b+"{}":w?b+"{"+Ii(C,w)+"}":b+"{ "+Qe.call(C,", ")+" }"}return String(t)};function Pf(e,t,r){var n=r.quoteStyle||t,i=If[n];return i+e+i}function ts(e){return ht.call(String(e),/"/g,"&quot;")}function Pt(e){return!tr||!(typeof e=="object"&&(tr in e||typeof e[tr]<"u"))}function Ti(e){return gt(e)==="[object Array]"&&Pt(e)}function rs(e){return gt(e)==="[object Date]"&&Pt(e)}function Ma(e){return gt(e)==="[object RegExp]"&&Pt(e)}function ns(e){return gt(e)==="[object Error]"&&Pt(e)}function is(e){return gt(e)==="[object String]"&&Pt(e)}function as(e){return gt(e)==="[object Number]"&&Pt(e)}function os(e){return gt(e)==="[object Boolean]"&&Pt(e)}function Nf(e){if(zt)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Ai)return!1;try{return Ai.call(e),!0}catch{}return!1}function fs(e){if(!e||typeof e!="object"||!Ri)return!1;try{return Ri.call(e),!0}catch{}return!1}var ls=Object.prototype.hasOwnProperty||function(e){return e in this};function it(e,t){return ls.call(e,t)}function gt(e){return Ku.call(e)}function us(e){if(e.name)return e.name;var t=Xu.call(Yu.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function Df(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function ss(e){if(!qr||!e||typeof e!="object")return!1;try{qr.call(e);try{zr.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function cs(e){if(!Qt||!e||typeof e!="object")return!1;try{Qt.call(e,Qt);try{er.call(e,er)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function hs(e){if(!Aa||!e||typeof e!="object")return!1;try{return Aa.call(e),!0}catch{}return!1}function ds(e){if(!zr||!e||typeof e!="object")return!1;try{zr.call(e);try{qr.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function ps(e){if(!er||!e||typeof e!="object")return!1;try{er.call(e,er);try{Qt.call(e,Qt)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function ys(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function Lf(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Lf(Vi.call(e,0,t.maxStringLength),t)+n}var i=es[t.quoteStyle||"single"];i.lastIndex=0;var a=ht.call(ht.call(e,i,"\\$1"),/[\x00-\x1f]/g,vs);return Pf(a,"single",t)}function vs(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+Ju.call(t.toString(16))}function Yt(e){return"Object("+e+")"}function Tn(e){return e+" { ? }"}function ka(e,t,r,n){var i=n?Ii(r,n):Qe.call(r,", ");return e+" ("+t+") {"+i+"}"}function gs(e){for(var t=0;t<e.length;t++)if(Df(e[t],`
1
+ "use strict";const K=require("./address-RcMobNYE.js"),Pe=require("./index-FrHiagMc.js");var Xr={},cf={exports:{}},qi={};(function(e){e.fetch=i(K.commonjsGlobal.fetch)&&i(K.commonjsGlobal.ReadableStream),e.writableStream=i(K.commonjsGlobal.WritableStream),e.abortController=i(K.commonjsGlobal.AbortController);var t;function r(){if(t!==void 0)return t;if(K.commonjsGlobal.XMLHttpRequest){t=new K.commonjsGlobal.XMLHttpRequest;try{t.open("GET",K.commonjsGlobal.XDomainRequest?"/":"https://example.com")}catch{t=null}}else t=null;return t}function n(a){var o=r();if(!o)return!1;try{return o.responseType=a,o.responseType===a}catch{}return!1}e.arraybuffer=e.fetch||n("arraybuffer"),e.msstream=!e.fetch&&n("ms-stream"),e.mozchunkedarraybuffer=!e.fetch&&n("moz-chunked-arraybuffer"),e.overrideMimeType=e.fetch||(r()?i(r().overrideMimeType):!1);function i(a){return typeof a=="function"}t=null})(qi);var Jr={},wi={exports:{}},hf=Pe.eventsExports.EventEmitter,gn,ua;function ru(){if(ua)return gn;ua=1;function e(N,F){var j=Object.keys(N);if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(N);F&&(k=k.filter(function(I){return Object.getOwnPropertyDescriptor(N,I).enumerable})),j.push.apply(j,k)}return j}function t(N){for(var F=1;F<arguments.length;F++){var j=arguments[F]!=null?arguments[F]:{};F%2?e(Object(j),!0).forEach(function(k){r(N,k,j[k])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(j)):e(Object(j)).forEach(function(k){Object.defineProperty(N,k,Object.getOwnPropertyDescriptor(j,k))})}return N}function r(N,F,j){return F=o(F),F in N?Object.defineProperty(N,F,{value:j,enumerable:!0,configurable:!0,writable:!0}):N[F]=j,N}function n(N,F){if(!(N instanceof F))throw new TypeError("Cannot call a class as a function")}function i(N,F){for(var j=0;j<F.length;j++){var k=F[j];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(N,o(k.key),k)}}function a(N,F,j){return F&&i(N.prototype,F),Object.defineProperty(N,"prototype",{writable:!1}),N}function o(N){var F=f(N,"string");return typeof F=="symbol"?F:String(F)}function f(N,F){if(typeof N!="object"||N===null)return N;var j=N[Symbol.toPrimitive];if(j!==void 0){var k=j.call(N,F);if(typeof k!="object")return k;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(N)}var d=K.bufferPolyfill,l=d.Buffer,u=Pe.require$$3,w=u.inspect,g=w&&w.custom||"inspect";function S(N,F,j){l.prototype.copy.call(N,F,j)}return gn=function(){function N(){n(this,N),this.head=null,this.tail=null,this.length=0}return a(N,[{key:"push",value:function(j){var k={data:j,next:null};this.length>0?this.tail.next=k:this.head=k,this.tail=k,++this.length}},{key:"unshift",value:function(j){var k={data:j,next:this.head};this.length===0&&(this.tail=k),this.head=k,++this.length}},{key:"shift",value:function(){if(this.length!==0){var j=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,j}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(j){if(this.length===0)return"";for(var k=this.head,I=""+k.data;k=k.next;)I+=j+k.data;return I}},{key:"concat",value:function(j){if(this.length===0)return l.alloc(0);for(var k=l.allocUnsafe(j>>>0),I=this.head,R=0;I;)S(I.data,k,R),R+=I.data.length,I=I.next;return k}},{key:"consume",value:function(j,k){var I;return j<this.head.data.length?(I=this.head.data.slice(0,j),this.head.data=this.head.data.slice(j)):j===this.head.data.length?I=this.shift():I=k?this._getString(j):this._getBuffer(j),I}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(j){var k=this.head,I=1,R=k.data;for(j-=R.length;k=k.next;){var P=k.data,T=j>P.length?P.length:j;if(T===P.length?R+=P:R+=P.slice(0,j),j-=T,j===0){T===P.length?(++I,k.next?this.head=k.next:this.head=this.tail=null):(this.head=k,k.data=P.slice(T));break}++I}return this.length-=I,R}},{key:"_getBuffer",value:function(j){var k=l.allocUnsafe(j),I=this.head,R=1;for(I.data.copy(k),j-=I.data.length;I=I.next;){var P=I.data,T=j>P.length?P.length:j;if(P.copy(k,k.length-j,0,T),j-=T,j===0){T===P.length?(++R,I.next?this.head=I.next:this.head=this.tail=null):(this.head=I,I.data=P.slice(T));break}++R}return this.length-=R,k}},{key:g,value:function(j,k){return w(this,t(t({},k),{},{depth:0,customInspect:!1}))}}]),N}(),gn}function nu(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,K.dist.process.nextTick(Ei,this,e)):K.dist.process.nextTick(Ei,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(a){!t&&a?r._writableState?r._writableState.errorEmitted?K.dist.process.nextTick(Ir,r):(r._writableState.errorEmitted=!0,K.dist.process.nextTick(sa,r,a)):K.dist.process.nextTick(sa,r,a):t?(K.dist.process.nextTick(Ir,r),t(a)):K.dist.process.nextTick(Ir,r)}),this)}function sa(e,t){Ei(e,t),Ir(e)}function Ir(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function iu(){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 Ei(e,t){e.emit("error",t)}function au(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}var df={destroy:nu,undestroy:iu,errorOrDestroy:au},It={};function ou(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var pf={};function Be(e,t,r){r||(r=Error);function n(a,o,f){return typeof t=="string"?t:t(a,o,f)}var i=function(a){ou(o,a);function o(f,d,l){return a.call(this,n(f,d,l))||this}return o}(r);i.prototype.name=r.name,i.prototype.code=e,pf[e]=i}function ca(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(n){return String(n)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function fu(e,t,r){return e.substr(0,t.length)===t}function lu(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function uu(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}Be("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);Be("ERR_INVALID_ARG_TYPE",function(e,t,r){var n;typeof t=="string"&&fu(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";var i;if(lu(e," argument"))i="The ".concat(e," ").concat(n," ").concat(ca(t,"type"));else{var a=uu(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(a," ").concat(n," ").concat(ca(t,"type"))}return i+=". Received type ".concat(typeof r),i},TypeError);Be("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Be("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});Be("ERR_STREAM_PREMATURE_CLOSE","Premature close");Be("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});Be("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Be("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Be("ERR_STREAM_WRITE_AFTER_END","write after end");Be("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Be("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);Be("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");It.codes=pf;var su=It.codes.ERR_INVALID_OPT_VALUE;function cu(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function hu(e,t,r,n){var i=cu(t,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var a=n?r:"highWaterMark";throw new su(a,i)}return Math.floor(i)}return e.objectMode?16:16*1024}var yf={getHighWaterMark:hu},_n,ha;function vf(){if(ha)return _n;ha=1,_n=z;function e(c){var y=this;this.next=null,this.entry=null,this.finish=function(){E(y,c)}}var t;z.WritableState=q;var r={deprecate:Pe.requireBrowser()},n=hf,i=K.bufferPolyfill.Buffer,a=(typeof K.commonjsGlobal<"u"?K.commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function o(c){return i.from(c)}function f(c){return i.isBuffer(c)||c instanceof a}var d=df,l=yf,u=l.getHighWaterMark,w=It.codes,g=w.ERR_INVALID_ARG_TYPE,S=w.ERR_METHOD_NOT_IMPLEMENTED,N=w.ERR_MULTIPLE_CALLBACK,F=w.ERR_STREAM_CANNOT_PIPE,j=w.ERR_STREAM_DESTROYED,k=w.ERR_STREAM_NULL_VALUES,I=w.ERR_STREAM_WRITE_AFTER_END,R=w.ERR_UNKNOWN_ENCODING,P=d.errorOrDestroy;Pe.inherits_browserExports(z,n);function T(){}function q(c,y,m){t=t||qt(),c=c||{},typeof m!="boolean"&&(m=y instanceof t),this.objectMode=!!c.objectMode,m&&(this.objectMode=this.objectMode||!!c.writableObjectMode),this.highWaterMark=u(this,c,"writableHighWaterMark",m),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var M=c.decodeStrings===!1;this.decodeStrings=!M,this.defaultEncoding=c.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(U){ae(y,U)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=c.emitClose!==!1,this.autoDestroy=!!c.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}q.prototype.getBuffer=function(){for(var y=this.bufferedRequest,m=[];y;)m.push(y),y=y.next;return m},function(){try{Object.defineProperty(q.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var C;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(C=Function.prototype[Symbol.hasInstance],Object.defineProperty(z,Symbol.hasInstance,{value:function(y){return C.call(this,y)?!0:this!==z?!1:y&&y._writableState instanceof q}})):C=function(y){return y instanceof this};function z(c){t=t||qt();var y=this instanceof t;if(!y&&!C.call(z,this))return new z(c);this._writableState=new q(c,this,y),this.writable=!0,c&&(typeof c.write=="function"&&(this._write=c.write),typeof c.writev=="function"&&(this._writev=c.writev),typeof c.destroy=="function"&&(this._destroy=c.destroy),typeof c.final=="function"&&(this._final=c.final)),n.call(this)}z.prototype.pipe=function(){P(this,new F)};function x(c,y){var m=new I;P(c,m),K.dist.process.nextTick(y,m)}function re(c,y,m,M){var U;return m===null?U=new k:typeof m!="string"&&!y.objectMode&&(U=new g("chunk",["string","Buffer"],m)),U?(P(c,U),K.dist.process.nextTick(M,U),!1):!0}z.prototype.write=function(c,y,m){var M=this._writableState,U=!1,h=!M.objectMode&&f(c);return h&&!i.isBuffer(c)&&(c=o(c)),typeof y=="function"&&(m=y,y=null),h?y="buffer":y||(y=M.defaultEncoding),typeof m!="function"&&(m=T),M.ending?x(this,m):(h||re(this,M,c,m))&&(M.pendingcb++,U=b(this,M,h,c,y,m)),U},z.prototype.cork=function(){this._writableState.corked++},z.prototype.uncork=function(){var c=this._writableState;c.corked&&(c.corked--,!c.writing&&!c.corked&&!c.bufferProcessing&&c.bufferedRequest&&Z(this,c))},z.prototype.setDefaultEncoding=function(y){if(typeof y=="string"&&(y=y.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((y+"").toLowerCase())>-1))throw new R(y);return this._writableState.defaultEncoding=y,this},Object.defineProperty(z.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function J(c,y,m){return!c.objectMode&&c.decodeStrings!==!1&&typeof y=="string"&&(y=i.from(y,m)),y}Object.defineProperty(z.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function b(c,y,m,M,U,h){if(!m){var p=J(y,M,U);M!==p&&(m=!0,U="buffer",M=p)}var $=y.objectMode?1:M.length;y.length+=$;var V=y.length<y.highWaterMark;if(V||(y.needDrain=!0),y.writing||y.corked){var se=y.lastBufferedRequest;y.lastBufferedRequest={chunk:M,encoding:U,isBuf:m,callback:h,next:null},se?se.next=y.lastBufferedRequest:y.bufferedRequest=y.lastBufferedRequest,y.bufferedRequestCount+=1}else B(c,y,!1,$,M,U,h);return V}function B(c,y,m,M,U,h,p){y.writelen=M,y.writecb=p,y.writing=!0,y.sync=!0,y.destroyed?y.onwrite(new j("write")):m?c._writev(U,y.onwrite):c._write(U,h,y.onwrite),y.sync=!1}function Q(c,y,m,M,U){--y.pendingcb,m?(K.dist.process.nextTick(U,M),K.dist.process.nextTick(A,c,y),c._writableState.errorEmitted=!0,P(c,M)):(U(M),c._writableState.errorEmitted=!0,P(c,M),A(c,y))}function ne(c){c.writing=!1,c.writecb=null,c.length-=c.writelen,c.writelen=0}function ae(c,y){var m=c._writableState,M=m.sync,U=m.writecb;if(typeof U!="function")throw new N;if(ne(m),y)Q(c,m,M,y,U);else{var h=D(m)||c.destroyed;!h&&!m.corked&&!m.bufferProcessing&&m.bufferedRequest&&Z(c,m),M?K.dist.process.nextTick(ue,c,m,h,U):ue(c,m,h,U)}}function ue(c,y,m,M){m||ie(c,y),y.pendingcb--,M(),A(c,y)}function ie(c,y){y.length===0&&y.needDrain&&(y.needDrain=!1,c.emit("drain"))}function Z(c,y){y.bufferProcessing=!0;var m=y.bufferedRequest;if(c._writev&&m&&m.next){var M=y.bufferedRequestCount,U=new Array(M),h=y.corkedRequestsFree;h.entry=m;for(var p=0,$=!0;m;)U[p]=m,m.isBuf||($=!1),m=m.next,p+=1;U.allBuffers=$,B(c,y,!0,y.length,U,"",h.finish),y.pendingcb++,y.lastBufferedRequest=null,h.next?(y.corkedRequestsFree=h.next,h.next=null):y.corkedRequestsFree=new e(y),y.bufferedRequestCount=0}else{for(;m;){var V=m.chunk,se=m.encoding,oe=m.callback,de=y.objectMode?1:V.length;if(B(c,y,!1,de,V,se,oe),m=m.next,y.bufferedRequestCount--,y.writing)break}m===null&&(y.lastBufferedRequest=null)}y.bufferedRequest=m,y.bufferProcessing=!1}z.prototype._write=function(c,y,m){m(new S("_write()"))},z.prototype._writev=null,z.prototype.end=function(c,y,m){var M=this._writableState;return typeof c=="function"?(m=c,c=null,y=null):typeof y=="function"&&(m=y,y=null),c!=null&&this.write(c,y),M.corked&&(M.corked=1,this.uncork()),M.ending||v(this,M,m),this},Object.defineProperty(z.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function D(c){return c.ending&&c.length===0&&c.bufferedRequest===null&&!c.finished&&!c.writing}function W(c,y){c._final(function(m){y.pendingcb--,m&&P(c,m),y.prefinished=!0,c.emit("prefinish"),A(c,y)})}function _(c,y){!y.prefinished&&!y.finalCalled&&(typeof c._final=="function"&&!y.destroyed?(y.pendingcb++,y.finalCalled=!0,K.dist.process.nextTick(W,c,y)):(y.prefinished=!0,c.emit("prefinish")))}function A(c,y){var m=D(y);if(m&&(_(c,y),y.pendingcb===0&&(y.finished=!0,c.emit("finish"),y.autoDestroy))){var M=c._readableState;(!M||M.autoDestroy&&M.endEmitted)&&c.destroy()}return m}function v(c,y,m){y.ending=!0,A(c,y),m&&(y.finished?K.dist.process.nextTick(m):c.once("finish",m)),y.ended=!0,c.writable=!1}function E(c,y,m){var M=c.entry;for(c.entry=null;M;){var U=M.callback;y.pendingcb--,U(m),M=M.next}y.corkedRequestsFree.next=c}return Object.defineProperty(z.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(y){this._writableState&&(this._writableState.destroyed=y)}}),z.prototype.destroy=d.destroy,z.prototype._undestroy=d.undestroy,z.prototype._destroy=function(c,y){y(c)},_n}var bn,da;function qt(){if(da)return bn;da=1;var e=Object.keys||function(l){var u=[];for(var w in l)u.push(w);return u};bn=o;var t=_f(),r=vf();Pe.inherits_browserExports(o,t);for(var n=e(r.prototype),i=0;i<n.length;i++){var a=n[i];o.prototype[a]||(o.prototype[a]=r.prototype[a])}function o(l){if(!(this instanceof o))return new o(l);t.call(this,l),r.call(this,l),this.allowHalfOpen=!0,l&&(l.readable===!1&&(this.readable=!1),l.writable===!1&&(this.writable=!1),l.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",f)))}Object.defineProperty(o.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(o.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(o.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function f(){this._writableState.ended||K.dist.process.nextTick(d,this)}function d(l){l.end()}return Object.defineProperty(o.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(u){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=u,this._writableState.destroyed=u)}}),bn}var pa=It.codes.ERR_STREAM_PREMATURE_CLOSE;function du(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}function pu(){}function yu(e){return e.setHeader&&typeof e.abort=="function"}function gf(e,t,r){if(typeof t=="function")return gf(e,null,t);t||(t={}),r=du(r||pu);var n=t.readable||t.readable!==!1&&e.readable,i=t.writable||t.writable!==!1&&e.writable,a=function(){e.writable||f()},o=e._writableState&&e._writableState.finished,f=function(){i=!1,o=!0,n||r.call(e)},d=e._readableState&&e._readableState.endEmitted,l=function(){n=!1,d=!0,i||r.call(e)},u=function(N){r.call(e,N)},w=function(){var N;if(n&&!d)return(!e._readableState||!e._readableState.ended)&&(N=new pa),r.call(e,N);if(i&&!o)return(!e._writableState||!e._writableState.ended)&&(N=new pa),r.call(e,N)},g=function(){e.req.on("finish",f)};return yu(e)?(e.on("complete",f),e.on("abort",w),e.req?g():e.on("request",g)):i&&!e._writableState&&(e.on("end",a),e.on("close",a)),e.on("end",l),e.on("finish",f),t.error!==!1&&e.on("error",u),e.on("close",w),function(){e.removeListener("complete",f),e.removeListener("abort",w),e.removeListener("request",g),e.req&&e.req.removeListener("finish",f),e.removeListener("end",a),e.removeListener("close",a),e.removeListener("finish",f),e.removeListener("end",l),e.removeListener("error",u),e.removeListener("close",w)}}var zi=gf,mn,ya;function vu(){if(ya)return mn;ya=1;var e;function t(R,P,T){return P=r(P),P in R?Object.defineProperty(R,P,{value:T,enumerable:!0,configurable:!0,writable:!0}):R[P]=T,R}function r(R){var P=n(R,"string");return typeof P=="symbol"?P:String(P)}function n(R,P){if(typeof R!="object"||R===null)return R;var T=R[Symbol.toPrimitive];if(T!==void 0){var q=T.call(R,P);if(typeof q!="object")return q;throw new TypeError("@@toPrimitive must return a primitive value.")}return(P==="string"?String:Number)(R)}var i=zi,a=Symbol("lastResolve"),o=Symbol("lastReject"),f=Symbol("error"),d=Symbol("ended"),l=Symbol("lastPromise"),u=Symbol("handlePromise"),w=Symbol("stream");function g(R,P){return{value:R,done:P}}function S(R){var P=R[a];if(P!==null){var T=R[w].read();T!==null&&(R[l]=null,R[a]=null,R[o]=null,P(g(T,!1)))}}function N(R){K.dist.process.nextTick(S,R)}function F(R,P){return function(T,q){R.then(function(){if(P[d]){T(g(void 0,!0));return}P[u](T,q)},q)}}var j=Object.getPrototypeOf(function(){}),k=Object.setPrototypeOf((e={get stream(){return this[w]},next:function(){var P=this,T=this[f];if(T!==null)return Promise.reject(T);if(this[d])return Promise.resolve(g(void 0,!0));if(this[w].destroyed)return new Promise(function(x,re){K.dist.process.nextTick(function(){P[f]?re(P[f]):x(g(void 0,!0))})});var q=this[l],C;if(q)C=new Promise(F(q,this));else{var z=this[w].read();if(z!==null)return Promise.resolve(g(z,!1));C=new Promise(this[u])}return this[l]=C,C}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var P=this;return new Promise(function(T,q){P[w].destroy(null,function(C){if(C){q(C);return}T(g(void 0,!0))})})}),e),j),I=function(P){var T,q=Object.create(k,(T={},t(T,w,{value:P,writable:!0}),t(T,a,{value:null,writable:!0}),t(T,o,{value:null,writable:!0}),t(T,f,{value:null,writable:!0}),t(T,d,{value:P._readableState.endEmitted,writable:!0}),t(T,u,{value:function(z,x){var re=q[w].read();re?(q[l]=null,q[a]=null,q[o]=null,z(g(re,!1))):(q[a]=z,q[o]=x)},writable:!0}),T));return q[l]=null,i(P,function(C){if(C&&C.code!=="ERR_STREAM_PREMATURE_CLOSE"){var z=q[o];z!==null&&(q[l]=null,q[a]=null,q[o]=null,z(C)),q[f]=C;return}var x=q[a];x!==null&&(q[l]=null,q[a]=null,q[o]=null,x(g(void 0,!0))),q[d]=!0}),P.on("readable",N.bind(null,q)),q};return mn=I,mn}var wn,va;function gu(){return va||(va=1,wn=function(){throw new Error("Readable.from is not available in the browser")}),wn}var En,ga;function _f(){if(ga)return En;ga=1,En=x;var e;x.ReadableState=z,Pe.eventsExports.EventEmitter;var t=function(p,$){return p.listeners($).length},r=hf,n=K.bufferPolyfill.Buffer,i=(typeof K.commonjsGlobal<"u"?K.commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function a(h){return n.from(h)}function o(h){return n.isBuffer(h)||h instanceof i}var f=Pe.require$$3,d;f&&f.debuglog?d=f.debuglog("stream"):d=function(){};var l=ru(),u=df,w=yf,g=w.getHighWaterMark,S=It.codes,N=S.ERR_INVALID_ARG_TYPE,F=S.ERR_STREAM_PUSH_AFTER_EOF,j=S.ERR_METHOD_NOT_IMPLEMENTED,k=S.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,I,R,P;Pe.inherits_browserExports(x,r);var T=u.errorOrDestroy,q=["error","close","destroy","pause","resume"];function C(h,p,$){if(typeof h.prependListener=="function")return h.prependListener(p,$);!h._events||!h._events[p]?h.on(p,$):Array.isArray(h._events[p])?h._events[p].unshift($):h._events[p]=[$,h._events[p]]}function z(h,p,$){e=e||qt(),h=h||{},typeof $!="boolean"&&($=p instanceof e),this.objectMode=!!h.objectMode,$&&(this.objectMode=this.objectMode||!!h.readableObjectMode),this.highWaterMark=g(this,h,"readableHighWaterMark",$),this.buffer=new l,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=h.emitClose!==!1,this.autoDestroy=!!h.autoDestroy,this.destroyed=!1,this.defaultEncoding=h.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,h.encoding&&(I||(I=Pe.requireString_decoder().StringDecoder),this.decoder=new I(h.encoding),this.encoding=h.encoding)}function x(h){if(e=e||qt(),!(this instanceof x))return new x(h);var p=this instanceof e;this._readableState=new z(h,this,p),this.readable=!0,h&&(typeof h.read=="function"&&(this._read=h.read),typeof h.destroy=="function"&&(this._destroy=h.destroy)),r.call(this)}Object.defineProperty(x.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(p){this._readableState&&(this._readableState.destroyed=p)}}),x.prototype.destroy=u.destroy,x.prototype._undestroy=u.undestroy,x.prototype._destroy=function(h,p){p(h)},x.prototype.push=function(h,p){var $=this._readableState,V;return $.objectMode?V=!0:typeof h=="string"&&(p=p||$.defaultEncoding,p!==$.encoding&&(h=n.from(h,p),p=""),V=!0),re(this,h,p,!1,V)},x.prototype.unshift=function(h){return re(this,h,null,!0,!1)};function re(h,p,$,V,se){d("readableAddChunk",p);var oe=h._readableState;if(p===null)oe.reading=!1,ae(h,oe);else{var de;if(se||(de=b(oe,p)),de)T(h,de);else if(oe.objectMode||p&&p.length>0)if(typeof p!="string"&&!oe.objectMode&&Object.getPrototypeOf(p)!==n.prototype&&(p=a(p)),V)oe.endEmitted?T(h,new k):J(h,oe,p,!0);else if(oe.ended)T(h,new F);else{if(oe.destroyed)return!1;oe.reading=!1,oe.decoder&&!$?(p=oe.decoder.write(p),oe.objectMode||p.length!==0?J(h,oe,p,!1):Z(h,oe)):J(h,oe,p,!1)}else V||(oe.reading=!1,Z(h,oe))}return!oe.ended&&(oe.length<oe.highWaterMark||oe.length===0)}function J(h,p,$,V){p.flowing&&p.length===0&&!p.sync?(p.awaitDrain=0,h.emit("data",$)):(p.length+=p.objectMode?1:$.length,V?p.buffer.unshift($):p.buffer.push($),p.needReadable&&ue(h)),Z(h,p)}function b(h,p){var $;return!o(p)&&typeof p!="string"&&p!==void 0&&!h.objectMode&&($=new N("chunk",["string","Buffer","Uint8Array"],p)),$}x.prototype.isPaused=function(){return this._readableState.flowing===!1},x.prototype.setEncoding=function(h){I||(I=Pe.requireString_decoder().StringDecoder);var p=new I(h);this._readableState.decoder=p,this._readableState.encoding=this._readableState.decoder.encoding;for(var $=this._readableState.buffer.head,V="";$!==null;)V+=p.write($.data),$=$.next;return this._readableState.buffer.clear(),V!==""&&this._readableState.buffer.push(V),this._readableState.length=V.length,this};var B=1073741824;function Q(h){return h>=B?h=B:(h--,h|=h>>>1,h|=h>>>2,h|=h>>>4,h|=h>>>8,h|=h>>>16,h++),h}function ne(h,p){return h<=0||p.length===0&&p.ended?0:p.objectMode?1:h!==h?p.flowing&&p.length?p.buffer.head.data.length:p.length:(h>p.highWaterMark&&(p.highWaterMark=Q(h)),h<=p.length?h:p.ended?p.length:(p.needReadable=!0,0))}x.prototype.read=function(h){d("read",h),h=parseInt(h,10);var p=this._readableState,$=h;if(h!==0&&(p.emittedReadable=!1),h===0&&p.needReadable&&((p.highWaterMark!==0?p.length>=p.highWaterMark:p.length>0)||p.ended))return d("read: emitReadable",p.length,p.ended),p.length===0&&p.ended?m(this):ue(this),null;if(h=ne(h,p),h===0&&p.ended)return p.length===0&&m(this),null;var V=p.needReadable;d("need readable",V),(p.length===0||p.length-h<p.highWaterMark)&&(V=!0,d("length less than watermark",V)),p.ended||p.reading?(V=!1,d("reading or ended",V)):V&&(d("do read"),p.reading=!0,p.sync=!0,p.length===0&&(p.needReadable=!0),this._read(p.highWaterMark),p.sync=!1,p.reading||(h=ne($,p)));var se;return h>0?se=y(h,p):se=null,se===null?(p.needReadable=p.length<=p.highWaterMark,h=0):(p.length-=h,p.awaitDrain=0),p.length===0&&(p.ended||(p.needReadable=!0),$!==h&&p.ended&&m(this)),se!==null&&this.emit("data",se),se};function ae(h,p){if(d("onEofChunk"),!p.ended){if(p.decoder){var $=p.decoder.end();$&&$.length&&(p.buffer.push($),p.length+=p.objectMode?1:$.length)}p.ended=!0,p.sync?ue(h):(p.needReadable=!1,p.emittedReadable||(p.emittedReadable=!0,ie(h)))}}function ue(h){var p=h._readableState;d("emitReadable",p.needReadable,p.emittedReadable),p.needReadable=!1,p.emittedReadable||(d("emitReadable",p.flowing),p.emittedReadable=!0,K.dist.process.nextTick(ie,h))}function ie(h){var p=h._readableState;d("emitReadable_",p.destroyed,p.length,p.ended),!p.destroyed&&(p.length||p.ended)&&(h.emit("readable"),p.emittedReadable=!1),p.needReadable=!p.flowing&&!p.ended&&p.length<=p.highWaterMark,c(h)}function Z(h,p){p.readingMore||(p.readingMore=!0,K.dist.process.nextTick(D,h,p))}function D(h,p){for(;!p.reading&&!p.ended&&(p.length<p.highWaterMark||p.flowing&&p.length===0);){var $=p.length;if(d("maybeReadMore read 0"),h.read(0),$===p.length)break}p.readingMore=!1}x.prototype._read=function(h){T(this,new j("_read()"))},x.prototype.pipe=function(h,p){var $=this,V=this._readableState;switch(V.pipesCount){case 0:V.pipes=h;break;case 1:V.pipes=[V.pipes,h];break;default:V.pipes.push(h);break}V.pipesCount+=1,d("pipe count=%d opts=%j",V.pipesCount,p);var se=(!p||p.end!==!1)&&h!==K.dist.process.stdout&&h!==K.dist.process.stderr,oe=se?_e:G;V.endEmitted?K.dist.process.nextTick(oe):$.once("end",oe),h.on("unpipe",de);function de(ee,te){d("onunpipe"),ee===$&&te&&te.hasUnpiped===!1&&(te.hasUnpiped=!0,Te())}function _e(){d("onend"),h.end()}var H=W($);h.on("drain",H);var je=!1;function Te(){d("cleanup"),h.removeListener("close",s),h.removeListener("finish",O),h.removeListener("drain",H),h.removeListener("error",X),h.removeListener("unpipe",de),$.removeListener("end",_e),$.removeListener("end",G),$.removeListener("data",L),je=!0,V.awaitDrain&&(!h._writableState||h._writableState.needDrain)&&H()}$.on("data",L);function L(ee){d("ondata");var te=h.write(ee);d("dest.write",te),te===!1&&((V.pipesCount===1&&V.pipes===h||V.pipesCount>1&&U(V.pipes,h)!==-1)&&!je&&(d("false write response, pause",V.awaitDrain),V.awaitDrain++),$.pause())}function X(ee){d("onerror",ee),G(),h.removeListener("error",X),t(h,"error")===0&&T(h,ee)}C(h,"error",X);function s(){h.removeListener("finish",O),G()}h.once("close",s);function O(){d("onfinish"),h.removeListener("close",s),G()}h.once("finish",O);function G(){d("unpipe"),$.unpipe(h)}return h.emit("pipe",$),V.flowing||(d("pipe resume"),$.resume()),h};function W(h){return function(){var $=h._readableState;d("pipeOnDrain",$.awaitDrain),$.awaitDrain&&$.awaitDrain--,$.awaitDrain===0&&t(h,"data")&&($.flowing=!0,c(h))}}x.prototype.unpipe=function(h){var p=this._readableState,$={hasUnpiped:!1};if(p.pipesCount===0)return this;if(p.pipesCount===1)return h&&h!==p.pipes?this:(h||(h=p.pipes),p.pipes=null,p.pipesCount=0,p.flowing=!1,h&&h.emit("unpipe",this,$),this);if(!h){var V=p.pipes,se=p.pipesCount;p.pipes=null,p.pipesCount=0,p.flowing=!1;for(var oe=0;oe<se;oe++)V[oe].emit("unpipe",this,{hasUnpiped:!1});return this}var de=U(p.pipes,h);return de===-1?this:(p.pipes.splice(de,1),p.pipesCount-=1,p.pipesCount===1&&(p.pipes=p.pipes[0]),h.emit("unpipe",this,$),this)},x.prototype.on=function(h,p){var $=r.prototype.on.call(this,h,p),V=this._readableState;return h==="data"?(V.readableListening=this.listenerCount("readable")>0,V.flowing!==!1&&this.resume()):h==="readable"&&!V.endEmitted&&!V.readableListening&&(V.readableListening=V.needReadable=!0,V.flowing=!1,V.emittedReadable=!1,d("on readable",V.length,V.reading),V.length?ue(this):V.reading||K.dist.process.nextTick(A,this)),$},x.prototype.addListener=x.prototype.on,x.prototype.removeListener=function(h,p){var $=r.prototype.removeListener.call(this,h,p);return h==="readable"&&K.dist.process.nextTick(_,this),$},x.prototype.removeAllListeners=function(h){var p=r.prototype.removeAllListeners.apply(this,arguments);return(h==="readable"||h===void 0)&&K.dist.process.nextTick(_,this),p};function _(h){var p=h._readableState;p.readableListening=h.listenerCount("readable")>0,p.resumeScheduled&&!p.paused?p.flowing=!0:h.listenerCount("data")>0&&h.resume()}function A(h){d("readable nexttick read 0"),h.read(0)}x.prototype.resume=function(){var h=this._readableState;return h.flowing||(d("resume"),h.flowing=!h.readableListening,v(this,h)),h.paused=!1,this};function v(h,p){p.resumeScheduled||(p.resumeScheduled=!0,K.dist.process.nextTick(E,h,p))}function E(h,p){d("resume",p.reading),p.reading||h.read(0),p.resumeScheduled=!1,h.emit("resume"),c(h),p.flowing&&!p.reading&&h.read(0)}x.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function c(h){var p=h._readableState;for(d("flow",p.flowing);p.flowing&&h.read()!==null;);}x.prototype.wrap=function(h){var p=this,$=this._readableState,V=!1;h.on("end",function(){if(d("wrapped end"),$.decoder&&!$.ended){var de=$.decoder.end();de&&de.length&&p.push(de)}p.push(null)}),h.on("data",function(de){if(d("wrapped data"),$.decoder&&(de=$.decoder.write(de)),!($.objectMode&&de==null)&&!(!$.objectMode&&(!de||!de.length))){var _e=p.push(de);_e||(V=!0,h.pause())}});for(var se in h)this[se]===void 0&&typeof h[se]=="function"&&(this[se]=function(_e){return function(){return h[_e].apply(h,arguments)}}(se));for(var oe=0;oe<q.length;oe++)h.on(q[oe],this.emit.bind(this,q[oe]));return this._read=function(de){d("wrapped _read",de),V&&(V=!1,h.resume())},this},typeof Symbol=="function"&&(x.prototype[Symbol.asyncIterator]=function(){return R===void 0&&(R=vu()),R(this)}),Object.defineProperty(x.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(x.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(x.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(p){this._readableState&&(this._readableState.flowing=p)}}),x._fromList=y,Object.defineProperty(x.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function y(h,p){if(p.length===0)return null;var $;return p.objectMode?$=p.buffer.shift():!h||h>=p.length?(p.decoder?$=p.buffer.join(""):p.buffer.length===1?$=p.buffer.first():$=p.buffer.concat(p.length),p.buffer.clear()):$=p.buffer.consume(h,p.decoder),$}function m(h){var p=h._readableState;d("endReadable",p.endEmitted),p.endEmitted||(p.ended=!0,K.dist.process.nextTick(M,p,h))}function M(h,p){if(d("endReadableNT",h.endEmitted,h.length),!h.endEmitted&&h.length===0&&(h.endEmitted=!0,p.readable=!1,p.emit("end"),h.autoDestroy)){var $=p._writableState;(!$||$.autoDestroy&&$.finished)&&p.destroy()}}typeof Symbol=="function"&&(x.from=function(h,p){return P===void 0&&(P=gu()),P(x,h,p)});function U(h,p){for(var $=0,V=h.length;$<V;$++)if(h[$]===p)return $;return-1}return En}var bf=ot,Qr=It.codes,_u=Qr.ERR_METHOD_NOT_IMPLEMENTED,bu=Qr.ERR_MULTIPLE_CALLBACK,mu=Qr.ERR_TRANSFORM_ALREADY_TRANSFORMING,wu=Qr.ERR_TRANSFORM_WITH_LENGTH_0,en=qt();Pe.inherits_browserExports(ot,en);function Eu(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new bu);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function ot(e){if(!(this instanceof ot))return new ot(e);en.call(this,e),this._transformState={afterTransform:Eu.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",Su)}function Su(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(t,r){_a(e,t,r)}):_a(this,null,null)}ot.prototype.push=function(e,t){return this._transformState.needTransform=!1,en.prototype.push.call(this,e,t)};ot.prototype._transform=function(e,t,r){r(new _u("_transform()"))};ot.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};ot.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};ot.prototype._destroy=function(e,t){en.prototype._destroy.call(this,e,function(r){t(r)})};function _a(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new wu;if(e._transformState.transforming)throw new mu;return e.push(null)}var Ru=ar,mf=bf;Pe.inherits_browserExports(ar,mf);function ar(e){if(!(this instanceof ar))return new ar(e);mf.call(this,e)}ar.prototype._transform=function(e,t,r){r(null,e)};var Sn;function Au(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var wf=It.codes,Ou=wf.ERR_MISSING_ARGS,Tu=wf.ERR_STREAM_DESTROYED;function ba(e){if(e)throw e}function Iu(e){return e.setHeader&&typeof e.abort=="function"}function Pu(e,t,r,n){n=Au(n);var i=!1;e.on("close",function(){i=!0}),Sn===void 0&&(Sn=zi),Sn(e,{readable:t,writable:r},function(o){if(o)return n(o);i=!0,n()});var a=!1;return function(o){if(!i&&!a){if(a=!0,Iu(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();n(o||new Tu("pipe"))}}}function ma(e){e()}function Nu(e,t){return e.pipe(t)}function Du(e){return!e.length||typeof e[e.length-1]!="function"?ba:e.pop()}function Lu(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=Du(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Ou("streams");var i,a=t.map(function(o,f){var d=f<t.length-1,l=f>0;return Pu(o,d,l,function(u){i||(i=u),u&&a.forEach(ma),!d&&(a.forEach(ma),n(i))})});return t.reduce(Nu)}var Mu=Lu;(function(e,t){t=e.exports=_f(),t.Stream=t,t.Readable=t,t.Writable=vf(),t.Duplex=qt(),t.Transform=bf,t.PassThrough=Ru,t.finished=zi,t.pipeline=Mu})(wi,wi.exports);var Ef=wi.exports,wa=qi,ku=Pe.inherits_browserExports,Sf=Ef,mr=Jr.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},Zi=Jr.IncomingMessage=function(e,t,r,n){var i=this;if(Sf.Readable.call(i),i._mode=r,i.headers={},i.rawHeaders=[],i.trailers={},i.rawTrailers=[],i.on("end",function(){K.dist.process.nextTick(function(){i.emit("close")})}),r==="fetch"){let u=function(){o.read().then(function(w){if(!i._destroyed){if(n(w.done),w.done){i.push(null);return}i.push(K.dist.Buffer.from(w.value)),u()}}).catch(function(w){n(!0),i._destroyed||i.emit("error",w)})};if(i._fetchResponse=t,i.url=t.url,i.statusCode=t.status,i.statusMessage=t.statusText,t.headers.forEach(function(w,g){i.headers[g.toLowerCase()]=w,i.rawHeaders.push(g,w)}),wa.writableStream){var a=new WritableStream({write:function(w){return n(!1),new Promise(function(g,S){i._destroyed?S():i.push(K.dist.Buffer.from(w))?g():i._resumeFetch=g})},close:function(){n(!0),i._destroyed||i.push(null)},abort:function(w){n(!0),i._destroyed||i.emit("error",w)}});try{t.body.pipeTo(a).catch(function(w){n(!0),i._destroyed||i.emit("error",w)});return}catch{}}var o=t.body.getReader();u()}else{i._xhr=e,i._pos=0,i.url=e.responseURL,i.statusCode=e.status,i.statusMessage=e.statusText;var f=e.getAllResponseHeaders().split(/\r?\n/);if(f.forEach(function(u){var w=u.match(/^([^:]+):\s*(.*)/);if(w){var g=w[1].toLowerCase();g==="set-cookie"?(i.headers[g]===void 0&&(i.headers[g]=[]),i.headers[g].push(w[2])):i.headers[g]!==void 0?i.headers[g]+=", "+w[2]:i.headers[g]=w[2],i.rawHeaders.push(w[1],w[2])}}),i._charset="x-user-defined",!wa.overrideMimeType){var d=i.rawHeaders["mime-type"];if(d){var l=d.match(/;\s*charset=([^;])(;|$)/);l&&(i._charset=l[1].toLowerCase())}i._charset||(i._charset="utf-8")}}};ku(Zi,Sf.Readable);Zi.prototype._read=function(){var e=this,t=e._resumeFetch;t&&(e._resumeFetch=null,t())};Zi.prototype._onXHRProgress=function(e){var t=this,r=t._xhr,n=null;switch(t._mode){case"text":if(n=r.responseText,n.length>t._pos){var i=n.substr(t._pos);if(t._charset==="x-user-defined"){for(var a=K.dist.Buffer.alloc(i.length),o=0;o<i.length;o++)a[o]=i.charCodeAt(o)&255;t.push(a)}else t.push(i,t._charset);t._pos=n.length}break;case"arraybuffer":if(r.readyState!==mr.DONE||!r.response)break;n=r.response,t.push(K.dist.Buffer.from(new Uint8Array(n)));break;case"moz-chunked-arraybuffer":if(n=r.response,r.readyState!==mr.LOADING||!n)break;t.push(K.dist.Buffer.from(new Uint8Array(n)));break;case"ms-stream":if(n=r.response,r.readyState!==mr.LOADING)break;var f=new K.commonjsGlobal.MSStreamReader;f.onprogress=function(){f.result.byteLength>t._pos&&(t.push(K.dist.Buffer.from(new Uint8Array(f.result.slice(t._pos)))),t._pos=f.result.byteLength)},f.onload=function(){e(!0),t.push(null)},f.readAsArrayBuffer(n);break}t._xhr.readyState===mr.DONE&&t._mode!=="ms-stream"&&(e(!0),t.push(null))};var mt=qi,Fu=Pe.inherits_browserExports,Rf=Jr,Hi=Ef,ju=Rf.IncomingMessage,Ea=Rf.readyStates;function xu(e,t){return mt.fetch&&t?"fetch":mt.mozchunkedarraybuffer?"moz-chunked-arraybuffer":mt.msstream?"ms-stream":mt.arraybuffer&&e?"arraybuffer":"text"}var Le=cf.exports=function(e){var t=this;Hi.Writable.call(t),t._opts=e,t._body=[],t._headers={},e.auth&&t.setHeader("Authorization","Basic "+K.dist.Buffer.from(e.auth).toString("base64")),Object.keys(e.headers).forEach(function(i){t.setHeader(i,e.headers[i])});var r,n=!0;if(e.mode==="disable-fetch"||"requestTimeout"in e&&!mt.abortController)n=!1,r=!0;else if(e.mode==="prefer-streaming")r=!1;else if(e.mode==="allow-wrong-content-type")r=!mt.overrideMimeType;else if(!e.mode||e.mode==="default"||e.mode==="prefer-fast")r=!0;else throw new Error("Invalid value for opts.mode");t._mode=xu(r,n),t._fetchTimer=null,t._socketTimeout=null,t._socketTimer=null,t.on("finish",function(){t._onFinish()})};Fu(Le,Hi.Writable);Le.prototype.setHeader=function(e,t){var r=this,n=e.toLowerCase();Cu.indexOf(n)===-1&&(r._headers[n]={name:e,value:t})};Le.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null};Le.prototype.removeHeader=function(e){var t=this;delete t._headers[e.toLowerCase()]};Le.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t=e._opts;"timeout"in t&&t.timeout!==0&&e.setTimeout(t.timeout);var r=e._headers,n=null;t.method!=="GET"&&t.method!=="HEAD"&&(n=new Blob(e._body,{type:(r["content-type"]||{}).value||""}));var i=[];if(Object.keys(r).forEach(function(d){var l=r[d].name,u=r[d].value;Array.isArray(u)?u.forEach(function(w){i.push([l,w])}):i.push([l,u])}),e._mode==="fetch"){var a=null;if(mt.abortController){var o=new AbortController;a=o.signal,e._fetchAbortController=o,"requestTimeout"in t&&t.requestTimeout!==0&&(e._fetchTimer=K.commonjsGlobal.setTimeout(function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()},t.requestTimeout))}K.commonjsGlobal.fetch(e._opts.url,{method:e._opts.method,headers:i,body:n||void 0,mode:"cors",credentials:t.withCredentials?"include":"same-origin",signal:a}).then(function(d){e._fetchResponse=d,e._resetTimers(!1),e._connect()},function(d){e._resetTimers(!0),e._destroyed||e.emit("error",d)})}else{var f=e._xhr=new K.commonjsGlobal.XMLHttpRequest;try{f.open(e._opts.method,e._opts.url,!0)}catch(d){K.dist.process.nextTick(function(){e.emit("error",d)});return}"responseType"in f&&(f.responseType=e._mode),"withCredentials"in f&&(f.withCredentials=!!t.withCredentials),e._mode==="text"&&"overrideMimeType"in f&&f.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in t&&(f.timeout=t.requestTimeout,f.ontimeout=function(){e.emit("requestTimeout")}),i.forEach(function(d){f.setRequestHeader(d[0],d[1])}),e._response=null,f.onreadystatechange=function(){switch(f.readyState){case Ea.LOADING:case Ea.DONE:e._onXHRProgress();break}},e._mode==="moz-chunked-arraybuffer"&&(f.onprogress=function(){e._onXHRProgress()}),f.onerror=function(){e._destroyed||(e._resetTimers(!0),e.emit("error",new Error("XHR error")))};try{f.send(n)}catch(d){K.dist.process.nextTick(function(){e.emit("error",d)});return}}}};function $u(e){try{var t=e.status;return t!==null&&t!==0}catch{return!1}}Le.prototype._onXHRProgress=function(){var e=this;e._resetTimers(!1),!(!$u(e._xhr)||e._destroyed)&&(e._response||e._connect(),e._response._onXHRProgress(e._resetTimers.bind(e)))};Le.prototype._connect=function(){var e=this;e._destroyed||(e._response=new ju(e._xhr,e._fetchResponse,e._mode,e._resetTimers.bind(e)),e._response.on("error",function(t){e.emit("error",t)}),e.emit("response",e._response))};Le.prototype._write=function(e,t,r){var n=this;n._body.push(e),r()};Le.prototype._resetTimers=function(e){var t=this;K.commonjsGlobal.clearTimeout(t._socketTimer),t._socketTimer=null,e?(K.commonjsGlobal.clearTimeout(t._fetchTimer),t._fetchTimer=null):t._socketTimeout&&(t._socketTimer=K.commonjsGlobal.setTimeout(function(){t.emit("timeout")},t._socketTimeout))};Le.prototype.abort=Le.prototype.destroy=function(e){var t=this;t._destroyed=!0,t._resetTimers(!0),t._response&&(t._response._destroyed=!0),t._xhr?t._xhr.abort():t._fetchAbortController&&t._fetchAbortController.abort(),e&&t.emit("error",e)};Le.prototype.end=function(e,t,r){var n=this;typeof e=="function"&&(r=e,e=void 0),Hi.Writable.prototype.end.call(n,e,t,r)};Le.prototype.setTimeout=function(e,t){var r=this;t&&r.once("timeout",t),r._socketTimeout=e,r._resetTimers(!1)};Le.prototype.flushHeaders=function(){};Le.prototype.setNoDelay=function(){};Le.prototype.setSocketKeepAlive=function(){};var Cu=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"],Bu=cf.exports,Uu=zu,qu=Object.prototype.hasOwnProperty;function zu(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var n in r)qu.call(r,n)&&(e[n]=r[n])}return e}var Zu={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"},Si={exports:{}},Ur={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */Ur.exports;(function(e,t){(function(r){var n=t&&!t.nodeType&&t,i=e&&!e.nodeType&&e,a=typeof K.commonjsGlobal=="object"&&K.commonjsGlobal;(a.global===a||a.window===a||a.self===a)&&(r=a);var o,f=2147483647,d=36,l=1,u=26,w=38,g=700,S=72,N=128,F="-",j=/^xn--/,k=/[^\x20-\x7E]/,I=/[\x2E\u3002\uFF0E\uFF61]/g,R={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},P=d-l,T=Math.floor,q=String.fromCharCode,C;function z(D){throw new RangeError(R[D])}function x(D,W){for(var _=D.length,A=[];_--;)A[_]=W(D[_]);return A}function re(D,W){var _=D.split("@"),A="";_.length>1&&(A=_[0]+"@",D=_[1]),D=D.replace(I,".");var v=D.split("."),E=x(v,W).join(".");return A+E}function J(D){for(var W=[],_=0,A=D.length,v,E;_<A;)v=D.charCodeAt(_++),v>=55296&&v<=56319&&_<A?(E=D.charCodeAt(_++),(E&64512)==56320?W.push(((v&1023)<<10)+(E&1023)+65536):(W.push(v),_--)):W.push(v);return W}function b(D){return x(D,function(W){var _="";return W>65535&&(W-=65536,_+=q(W>>>10&1023|55296),W=56320|W&1023),_+=q(W),_}).join("")}function B(D){return D-48<10?D-22:D-65<26?D-65:D-97<26?D-97:d}function Q(D,W){return D+22+75*(D<26)-((W!=0)<<5)}function ne(D,W,_){var A=0;for(D=_?T(D/g):D>>1,D+=T(D/W);D>P*u>>1;A+=d)D=T(D/P);return T(A+(P+1)*D/(D+w))}function ae(D){var W=[],_=D.length,A,v=0,E=N,c=S,y,m,M,U,h,p,$,V,se;for(y=D.lastIndexOf(F),y<0&&(y=0),m=0;m<y;++m)D.charCodeAt(m)>=128&&z("not-basic"),W.push(D.charCodeAt(m));for(M=y>0?y+1:0;M<_;){for(U=v,h=1,p=d;M>=_&&z("invalid-input"),$=B(D.charCodeAt(M++)),($>=d||$>T((f-v)/h))&&z("overflow"),v+=$*h,V=p<=c?l:p>=c+u?u:p-c,!($<V);p+=d)se=d-V,h>T(f/se)&&z("overflow"),h*=se;A=W.length+1,c=ne(v-U,A,U==0),T(v/A)>f-E&&z("overflow"),E+=T(v/A),v%=A,W.splice(v++,0,E)}return b(W)}function ue(D){var W,_,A,v,E,c,y,m,M,U,h,p=[],$,V,se,oe;for(D=J(D),$=D.length,W=N,_=0,E=S,c=0;c<$;++c)h=D[c],h<128&&p.push(q(h));for(A=v=p.length,v&&p.push(F);A<$;){for(y=f,c=0;c<$;++c)h=D[c],h>=W&&h<y&&(y=h);for(V=A+1,y-W>T((f-_)/V)&&z("overflow"),_+=(y-W)*V,W=y,c=0;c<$;++c)if(h=D[c],h<W&&++_>f&&z("overflow"),h==W){for(m=_,M=d;U=M<=E?l:M>=E+u?u:M-E,!(m<U);M+=d)oe=m-U,se=d-U,p.push(q(Q(U+oe%se,0))),m=T(oe/se);p.push(q(Q(m,0))),E=ne(_,V,A==v),_=0,++A}++_,++W}return p.join("")}function ie(D){return re(D,function(W){return j.test(W)?ae(W.slice(4).toLowerCase()):W})}function Z(D){return re(D,function(W){return k.test(W)?"xn--"+ue(W):W})}if(o={version:"1.4.1",ucs2:{decode:J,encode:b},decode:ae,encode:ue,toASCII:Z,toUnicode:ie},n&&i)if(e.exports==n)i.exports=o;else for(C in o)o.hasOwnProperty(C)&&(n[C]=o[C]);else r.punycode=o})(K.commonjsGlobal)})(Ur,Ur.exports);var Af=Ur.exports,ft=TypeError,Wi=typeof Map=="function"&&Map.prototype,Rn=Object.getOwnPropertyDescriptor&&Wi?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,qr=Wi&&Rn&&typeof Rn.get=="function"?Rn.get:null,Sa=Wi&&Map.prototype.forEach,Gi=typeof Set=="function"&&Set.prototype,An=Object.getOwnPropertyDescriptor&&Gi?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,zr=Gi&&An&&typeof An.get=="function"?An.get:null,Ra=Gi&&Set.prototype.forEach,Hu=typeof WeakMap=="function"&&WeakMap.prototype,Qt=Hu?WeakMap.prototype.has:null,Wu=typeof WeakSet=="function"&&WeakSet.prototype,er=Wu?WeakSet.prototype.has:null,Gu=typeof WeakRef=="function"&&WeakRef.prototype,Aa=Gu?WeakRef.prototype.deref:null,Vu=Boolean.prototype.valueOf,Ku=Object.prototype.toString,Yu=Function.prototype.toString,Xu=String.prototype.match,Vi=String.prototype.slice,ht=String.prototype.replace,Ju=String.prototype.toUpperCase,Oa=String.prototype.toLowerCase,Of=RegExp.prototype.test,Ta=Array.prototype.concat,Qe=Array.prototype.join,Qu=Array.prototype.slice,Ia=Math.floor,Ri=typeof BigInt=="function"?BigInt.prototype.valueOf:null,On=Object.getOwnPropertySymbols,Ai=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,zt=typeof Symbol=="function"&&typeof Symbol.iterator=="object",tr=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===zt||!0)?Symbol.toStringTag:null,Tf=Object.prototype.propertyIsEnumerable,Pa=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Na(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Of.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-Ia(-e):Ia(e);if(n!==e){var i=String(n),a=Vi.call(t,i.length+1);return ht.call(i,r,"$&_")+"."+ht.call(ht.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return ht.call(t,r,"$&_")}var Oi=Pe.require$$3,Da=Oi.custom,La=Nf(Da)?Da:null,If={__proto__:null,double:'"',single:"'"},es={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},tn=function e(t,r,n,i){var a=r||{};if(it(a,"quoteStyle")&&!it(If,a.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(it(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var o=it(a,"customInspect")?a.customInspect:!0;if(typeof o!="boolean"&&o!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(it(a,"indent")&&a.indent!==null&&a.indent!==" "&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(it(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var f=a.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return Lf(t,a);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var d=String(t);return f?Na(t,d):d}if(typeof t=="bigint"){var l=String(t)+"n";return f?Na(t,l):l}var u=typeof a.depth>"u"?5:a.depth;if(typeof n>"u"&&(n=0),n>=u&&u>0&&typeof t=="object")return Ti(t)?"[Array]":"[Object]";var w=_s(a,n);if(typeof i>"u")i=[];else if(Df(i,t)>=0)return"[Circular]";function g(B,Q,ne){if(Q&&(i=Qu.call(i),i.push(Q)),ne){var ae={depth:a.depth};return it(a,"quoteStyle")&&(ae.quoteStyle=a.quoteStyle),e(B,ae,n+1,i)}return e(B,a,n+1,i)}if(typeof t=="function"&&!Ma(t)){var S=us(t),N=wr(t,g);return"[Function"+(S?": "+S:" (anonymous)")+"]"+(N.length>0?" { "+Qe.call(N,", ")+" }":"")}if(Nf(t)){var F=zt?ht.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Ai.call(t);return typeof t=="object"&&!zt?Yt(F):F}if(ys(t)){for(var j="<"+Oa.call(String(t.nodeName)),k=t.attributes||[],I=0;I<k.length;I++)j+=" "+k[I].name+"="+Pf(ts(k[I].value),"double",a);return j+=">",t.childNodes&&t.childNodes.length&&(j+="..."),j+="</"+Oa.call(String(t.nodeName))+">",j}if(Ti(t)){if(t.length===0)return"[]";var R=wr(t,g);return w&&!gs(R)?"["+Ii(R,w)+"]":"[ "+Qe.call(R,", ")+" ]"}if(ns(t)){var P=wr(t,g);return!("cause"in Error.prototype)&&"cause"in t&&!Tf.call(t,"cause")?"{ ["+String(t)+"] "+Qe.call(Ta.call("[cause]: "+g(t.cause),P),", ")+" }":P.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Qe.call(P,", ")+" }"}if(typeof t=="object"&&o){if(La&&typeof t[La]=="function"&&Oi)return Oi(t,{depth:u-n});if(o!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(ss(t)){var T=[];return Sa&&Sa.call(t,function(B,Q){T.push(g(Q,t,!0)+" => "+g(B,t))}),ka("Map",qr.call(t),T,w)}if(ds(t)){var q=[];return Ra&&Ra.call(t,function(B){q.push(g(B,t))}),ka("Set",zr.call(t),q,w)}if(cs(t))return Tn("WeakMap");if(ps(t))return Tn("WeakSet");if(hs(t))return Tn("WeakRef");if(as(t))return Yt(g(Number(t)));if(fs(t))return Yt(g(Ri.call(t)));if(os(t))return Yt(Vu.call(t));if(is(t))return Yt(g(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(typeof globalThis<"u"&&t===globalThis||typeof K.commonjsGlobal<"u"&&t===K.commonjsGlobal)return"{ [object globalThis] }";if(!rs(t)&&!Ma(t)){var C=wr(t,g),z=Pa?Pa(t)===Object.prototype:t instanceof Object||t.constructor===Object,x=t instanceof Object?"":"null prototype",re=!z&&tr&&Object(t)===t&&tr in t?Vi.call(gt(t),8,-1):x?"Object":"",J=z||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",b=J+(re||x?"["+Qe.call(Ta.call([],re||[],x||[]),": ")+"] ":"");return C.length===0?b+"{}":w?b+"{"+Ii(C,w)+"}":b+"{ "+Qe.call(C,", ")+" }"}return String(t)};function Pf(e,t,r){var n=r.quoteStyle||t,i=If[n];return i+e+i}function ts(e){return ht.call(String(e),/"/g,"&quot;")}function Pt(e){return!tr||!(typeof e=="object"&&(tr in e||typeof e[tr]<"u"))}function Ti(e){return gt(e)==="[object Array]"&&Pt(e)}function rs(e){return gt(e)==="[object Date]"&&Pt(e)}function Ma(e){return gt(e)==="[object RegExp]"&&Pt(e)}function ns(e){return gt(e)==="[object Error]"&&Pt(e)}function is(e){return gt(e)==="[object String]"&&Pt(e)}function as(e){return gt(e)==="[object Number]"&&Pt(e)}function os(e){return gt(e)==="[object Boolean]"&&Pt(e)}function Nf(e){if(zt)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Ai)return!1;try{return Ai.call(e),!0}catch{}return!1}function fs(e){if(!e||typeof e!="object"||!Ri)return!1;try{return Ri.call(e),!0}catch{}return!1}var ls=Object.prototype.hasOwnProperty||function(e){return e in this};function it(e,t){return ls.call(e,t)}function gt(e){return Ku.call(e)}function us(e){if(e.name)return e.name;var t=Xu.call(Yu.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function Df(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function ss(e){if(!qr||!e||typeof e!="object")return!1;try{qr.call(e);try{zr.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function cs(e){if(!Qt||!e||typeof e!="object")return!1;try{Qt.call(e,Qt);try{er.call(e,er)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function hs(e){if(!Aa||!e||typeof e!="object")return!1;try{return Aa.call(e),!0}catch{}return!1}function ds(e){if(!zr||!e||typeof e!="object")return!1;try{zr.call(e);try{qr.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function ps(e){if(!er||!e||typeof e!="object")return!1;try{er.call(e,er);try{Qt.call(e,Qt)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function ys(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function Lf(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Lf(Vi.call(e,0,t.maxStringLength),t)+n}var i=es[t.quoteStyle||"single"];i.lastIndex=0;var a=ht.call(ht.call(e,i,"\\$1"),/[\x00-\x1f]/g,vs);return Pf(a,"single",t)}function vs(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+Ju.call(t.toString(16))}function Yt(e){return"Object("+e+")"}function Tn(e){return e+" { ? }"}function ka(e,t,r,n){var i=n?Ii(r,n):Qe.call(r,", ");return e+" ("+t+") {"+i+"}"}function gs(e){for(var t=0;t<e.length;t++)if(Df(e[t],`
2
2
  `)>=0)return!1;return!0}function _s(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=Qe.call(Array(e.indent+1)," ");else return null;return{base:r,prev:Qe.call(Array(t+1),r)}}function Ii(e,t){if(e.length===0)return"";var r=`
3
3
  `+t.prev+t.base;return r+Qe.call(e,","+r)+`
4
4
  `+t.prev}function wr(e,t){var r=Ti(e),n=[];if(r){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=it(e,i)?t(e[i],e):""}var a=typeof On=="function"?On(e):[],o;if(zt){o={};for(var f=0;f<a.length;f++)o["$"+a[f]]=a[f]}for(var d in e)it(e,d)&&(r&&String(Number(d))===d&&d<e.length||zt&&o["$"+d]instanceof Symbol||(Of.call(/[^\w$]/,d)?n.push(t(d,e)+": "+t(e[d],e)):n.push(d+": "+t(e[d],e))));if(typeof On=="function")for(var l=0;l<a.length;l++)Tf.call(e,a[l])&&n.push("["+t(a[l])+"]: "+t(e[a[l]],e));return n}var bs=tn,ms=ft,rn=function(e,t,r){for(var n=e,i;(i=n.next)!=null;n=i)if(i.key===t)return n.next=i.next,r||(i.next=e.next,e.next=i),i},ws=function(e,t){if(e){var r=rn(e,t);return r&&r.value}},Es=function(e,t,r){var n=rn(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},Ss=function(e,t){return e?!!rn(e,t):!1},Rs=function(e,t){if(e)return rn(e,t,!0)},As=function(){var t,r={assert:function(n){if(!r.has(n))throw new ms("Side channel does not contain "+bs(n))},delete:function(n){var i=t&&t.next,a=Rs(t,n);return a&&i&&i===a&&(t=void 0),!!a},get:function(n){return ws(t,n)},has:function(n){return Ss(t,n)},set:function(n,i){t||(t={next:void 0}),Es(t,n,i)}};return r},Ki=Object,Os=Error,Ts=EvalError,Is=RangeError,Ps=ReferenceError,Mf=SyntaxError,Ns=URIError,Ds=Math.abs,Ls=Math.floor,Ms=Math.max,ks=Math.min,Fs=Math.pow,js=Math.round,xs=Number.isNaN||function(t){return t!==t},$s=xs,Cs=function(t){return $s(t)||t===0?t:t<0?-1:1},Bs=Object.getOwnPropertyDescriptor,Pr=Bs;if(Pr)try{Pr([],"length")}catch{Pr=null}var Ht=Pr,Nr=Object.defineProperty||!1;if(Nr)try{Nr({},"a",{value:1})}catch{Nr=!1}var nn=Nr,Yi=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(var a in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var f=Object.getOwnPropertyDescriptor(t,r);if(f.value!==i||f.enumerable!==!0)return!1}return!0},In,Fa;function Us(){if(Fa)return In;Fa=1;var e=typeof Symbol<"u"&&Symbol,t=Yi;return In=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},In}var Pn,ja;function kf(){return ja||(ja=1,Pn=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Pn}var Nn,xa;function Ff(){if(xa)return Nn;xa=1;var e=Ki;return Nn=e.getPrototypeOf||null,Nn}var Dn,$a;function qs(){if($a)return Dn;$a=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,n="[object Function]",i=function(d,l){for(var u=[],w=0;w<d.length;w+=1)u[w]=d[w];for(var g=0;g<l.length;g+=1)u[g+d.length]=l[g];return u},a=function(d,l){for(var u=[],w=l,g=0;w<d.length;w+=1,g+=1)u[g]=d[w];return u},o=function(f,d){for(var l="",u=0;u<f.length;u+=1)l+=f[u],u+1<f.length&&(l+=d);return l};return Dn=function(d){var l=this;if(typeof l!="function"||t.apply(l)!==n)throw new TypeError(e+l);for(var u=a(arguments,1),w,g=function(){if(this instanceof w){var k=l.apply(this,i(u,arguments));return Object(k)===k?k:this}return l.apply(d,i(u,arguments))},S=r(0,l.length-u.length),N=[],F=0;F<S;F++)N[F]="$"+F;if(w=Function("binder","return function ("+o(N,",")+"){ return binder.apply(this,arguments); }")(g),l.prototype){var j=function(){};j.prototype=l.prototype,w.prototype=new j,j.prototype=null}return w},Dn}var Ln,Ca;function cr(){if(Ca)return Ln;Ca=1;var e=qs();return Ln=Function.prototype.bind||e,Ln}var Mn,Ba;function Xi(){return Ba||(Ba=1,Mn=Function.prototype.call),Mn}var kn,Ua;function Ji(){return Ua||(Ua=1,kn=Function.prototype.apply),kn}var zs=typeof Reflect<"u"&&Reflect&&Reflect.apply,Zs=cr(),Hs=Ji(),Ws=Xi(),Gs=zs,jf=Gs||Zs.call(Ws,Hs),Vs=cr(),Ks=ft,Ys=Xi(),Xs=jf,Qi=function(t){if(t.length<1||typeof t[0]!="function")throw new Ks("a function is required");return Xs(Vs,Ys,t)},Fn,qa;function Js(){if(qa)return Fn;qa=1;var e=Qi,t=Ht,r;try{r=[].__proto__===Array.prototype}catch(o){if(!o||typeof o!="object"||!("code"in o)||o.code!=="ERR_PROTO_ACCESS")throw o}var n=!!r&&t&&t(Object.prototype,"__proto__"),i=Object,a=i.getPrototypeOf;return Fn=n&&typeof n.get=="function"?e([n.get]):typeof a=="function"?function(f){return a(f==null?f:i(f))}:!1,Fn}var jn,za;function xf(){if(za)return jn;za=1;var e=kf(),t=Ff(),r=Js();return jn=e?function(i){return e(i)}:t?function(i){if(!i||typeof i!="object"&&typeof i!="function")throw new TypeError("getProto: not an object");return t(i)}:r?function(i){return r(i)}:null,jn}var xn,Za;function $f(){if(Za)return xn;Za=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=cr();return xn=r.call(e,t),xn}var pe,Qs=Ki,ec=Os,tc=Ts,rc=Is,nc=Ps,Zt=Mf,Bt=ft,ic=Ns,ac=Ds,oc=Ls,fc=Ms,lc=ks,uc=Fs,sc=js,cc=Cs,Cf=Function,$n=function(e){try{return Cf('"use strict"; return ('+e+").constructor;")()}catch{}},or=Ht,hc=nn,Cn=function(){throw new Bt},dc=or?function(){try{return arguments.callee,Cn}catch{try{return or(arguments,"callee").get}catch{return Cn}}}():Cn,Lt=Us()(),Ie=xf(),pc=Ff(),yc=kf(),Bf=Ji(),hr=Xi(),xt={},vc=typeof Uint8Array>"u"||!Ie?pe:Ie(Uint8Array),St={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?pe:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?pe:ArrayBuffer,"%ArrayIteratorPrototype%":Lt&&Ie?Ie([][Symbol.iterator]()):pe,"%AsyncFromSyncIteratorPrototype%":pe,"%AsyncFunction%":xt,"%AsyncGenerator%":xt,"%AsyncGeneratorFunction%":xt,"%AsyncIteratorPrototype%":xt,"%Atomics%":typeof Atomics>"u"?pe:Atomics,"%BigInt%":typeof BigInt>"u"?pe:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?pe:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?pe:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?pe:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":ec,"%eval%":eval,"%EvalError%":tc,"%Float32Array%":typeof Float32Array>"u"?pe:Float32Array,"%Float64Array%":typeof Float64Array>"u"?pe:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?pe:FinalizationRegistry,"%Function%":Cf,"%GeneratorFunction%":xt,"%Int8Array%":typeof Int8Array>"u"?pe:Int8Array,"%Int16Array%":typeof Int16Array>"u"?pe:Int16Array,"%Int32Array%":typeof Int32Array>"u"?pe:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Lt&&Ie?Ie(Ie([][Symbol.iterator]())):pe,"%JSON%":typeof JSON=="object"?JSON:pe,"%Map%":typeof Map>"u"?pe:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Lt||!Ie?pe:Ie(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Qs,"%Object.getOwnPropertyDescriptor%":or,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?pe:Promise,"%Proxy%":typeof Proxy>"u"?pe:Proxy,"%RangeError%":rc,"%ReferenceError%":nc,"%Reflect%":typeof Reflect>"u"?pe:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?pe:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Lt||!Ie?pe:Ie(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?pe:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Lt&&Ie?Ie(""[Symbol.iterator]()):pe,"%Symbol%":Lt?Symbol:pe,"%SyntaxError%":Zt,"%ThrowTypeError%":dc,"%TypedArray%":vc,"%TypeError%":Bt,"%Uint8Array%":typeof Uint8Array>"u"?pe:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?pe:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?pe:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?pe:Uint32Array,"%URIError%":ic,"%WeakMap%":typeof WeakMap>"u"?pe:WeakMap,"%WeakRef%":typeof WeakRef>"u"?pe:WeakRef,"%WeakSet%":typeof WeakSet>"u"?pe:WeakSet,"%Function.prototype.call%":hr,"%Function.prototype.apply%":Bf,"%Object.defineProperty%":hc,"%Object.getPrototypeOf%":pc,"%Math.abs%":ac,"%Math.floor%":oc,"%Math.max%":fc,"%Math.min%":lc,"%Math.pow%":uc,"%Math.round%":sc,"%Math.sign%":cc,"%Reflect.getPrototypeOf%":yc};if(Ie)try{null.error}catch(e){var gc=Ie(Ie(e));St["%Error.prototype%"]=gc}var _c=function e(t){var r;if(t==="%AsyncFunction%")r=$n("async function () {}");else if(t==="%GeneratorFunction%")r=$n("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=$n("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&Ie&&(r=Ie(i.prototype))}return St[t]=r,r},Ha={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},dr=cr(),Zr=$f(),bc=dr.call(hr,Array.prototype.concat),mc=dr.call(Bf,Array.prototype.splice),Wa=dr.call(hr,String.prototype.replace),Hr=dr.call(hr,String.prototype.slice),wc=dr.call(hr,RegExp.prototype.exec),Ec=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Sc=/\\(\\)?/g,Rc=function(t){var r=Hr(t,0,1),n=Hr(t,-1);if(r==="%"&&n!=="%")throw new Zt("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Zt("invalid intrinsic syntax, expected opening `%`");var i=[];return Wa(t,Ec,function(a,o,f,d){i[i.length]=f?Wa(d,Sc,"$1"):o||a}),i},Ac=function(t,r){var n=t,i;if(Zr(Ha,n)&&(i=Ha[n],n="%"+i[0]+"%"),Zr(St,n)){var a=St[n];if(a===xt&&(a=_c(n)),typeof a>"u"&&!r)throw new Bt("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:a}}throw new Zt("intrinsic "+t+" does not exist!")},pr=function(t,r){if(typeof t!="string"||t.length===0)throw new Bt("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Bt('"allowMissing" argument must be a boolean');if(wc(/^%?[^%]*%?$/,t)===null)throw new Zt("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Rc(t),i=n.length>0?n[0]:"",a=Ac("%"+i+"%",r),o=a.name,f=a.value,d=!1,l=a.alias;l&&(i=l[0],mc(n,bc([0,1],l)));for(var u=1,w=!0;u<n.length;u+=1){var g=n[u],S=Hr(g,0,1),N=Hr(g,-1);if((S==='"'||S==="'"||S==="`"||N==='"'||N==="'"||N==="`")&&S!==N)throw new Zt("property names with quotes must have matching quotes");if((g==="constructor"||!w)&&(d=!0),i+="."+g,o="%"+i+"%",Zr(St,o))f=St[o];else if(f!=null){if(!(g in f)){if(!r)throw new Bt("base intrinsic for "+t+" exists, but the property is not available.");return}if(or&&u+1>=n.length){var F=or(f,g);w=!!F,w&&"get"in F&&!("originalValue"in F.get)?f=F.get:f=f[g]}else w=Zr(f,g),f=f[g];w&&!d&&(St[o]=f)}}return f},Uf=pr,qf=Qi,Oc=qf([Uf("%String.prototype.indexOf%")]),_t=function(t,r){var n=Uf(t,!!r);return typeof n=="function"&&Oc(t,".prototype.")>-1?qf([n]):n},Tc=pr,yr=_t,Ic=tn,Pc=ft,Ga=Tc("%Map%",!0),Nc=yr("Map.prototype.get",!0),Dc=yr("Map.prototype.set",!0),Lc=yr("Map.prototype.has",!0),Mc=yr("Map.prototype.delete",!0),kc=yr("Map.prototype.size",!0),zf=!!Ga&&function(){var t,r={assert:function(n){if(!r.has(n))throw new Pc("Side channel does not contain "+Ic(n))},delete:function(n){if(t){var i=Mc(t,n);return kc(t)===0&&(t=void 0),i}return!1},get:function(n){if(t)return Nc(t,n)},has:function(n){return t?Lc(t,n):!1},set:function(n,i){t||(t=new Ga),Dc(t,n,i)}};return r},Fc=pr,an=_t,jc=tn,Er=zf,xc=ft,Mt=Fc("%WeakMap%",!0),$c=an("WeakMap.prototype.get",!0),Cc=an("WeakMap.prototype.set",!0),Bc=an("WeakMap.prototype.has",!0),Uc=an("WeakMap.prototype.delete",!0),qc=Mt?function(){var t,r,n={assert:function(i){if(!n.has(i))throw new xc("Side channel does not contain "+jc(i))},delete:function(i){if(Mt&&i&&(typeof i=="object"||typeof i=="function")){if(t)return Uc(t,i)}else if(Er&&r)return r.delete(i);return!1},get:function(i){return Mt&&i&&(typeof i=="object"||typeof i=="function")&&t?$c(t,i):r&&r.get(i)},has:function(i){return Mt&&i&&(typeof i=="object"||typeof i=="function")&&t?Bc(t,i):!!r&&r.has(i)},set:function(i,a){Mt&&i&&(typeof i=="object"||typeof i=="function")?(t||(t=new Mt),Cc(t,i,a)):Er&&(r||(r=Er()),r.set(i,a))}};return n}:Er,zc=ft,Zc=tn,Hc=As,Wc=zf,Gc=qc,Vc=Gc||Wc||Hc,Kc=function(){var t,r={assert:function(n){if(!r.has(n))throw new zc("Side channel does not contain "+Zc(n))},delete:function(n){return!!t&&t.delete(n)},get:function(n){return t&&t.get(n)},has:function(n){return!!t&&t.has(n)},set:function(n,i){t||(t=Vc()),t.set(n,i)}};return r},Yc=String.prototype.replace,Xc=/%20/g,Bn={RFC1738:"RFC1738",RFC3986:"RFC3986"},ea={default:Bn.RFC3986,formatters:{RFC1738:function(e){return Yc.call(e,Xc,"+")},RFC3986:function(e){return String(e)}},RFC1738:Bn.RFC1738,RFC3986:Bn.RFC3986},Jc=ea,Un=Object.prototype.hasOwnProperty,bt=Array.isArray,Ke=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),Qc=function(t){for(;t.length>1;){var r=t.pop(),n=r.obj[r.prop];if(bt(n)){for(var i=[],a=0;a<n.length;++a)typeof n[a]<"u"&&i.push(n[a]);r.obj[r.prop]=i}}},Zf=function(t,r){for(var n=r&&r.plainObjects?{__proto__:null}:{},i=0;i<t.length;++i)typeof t[i]<"u"&&(n[i]=t[i]);return n},eh=function e(t,r,n){if(!r)return t;if(typeof r!="object"&&typeof r!="function"){if(bt(t))t.push(r);else if(t&&typeof t=="object")(n&&(n.plainObjects||n.allowPrototypes)||!Un.call(Object.prototype,r))&&(t[r]=!0);else return[t,r];return t}if(!t||typeof t!="object")return[t].concat(r);var i=t;return bt(t)&&!bt(r)&&(i=Zf(t,n)),bt(t)&&bt(r)?(r.forEach(function(a,o){if(Un.call(t,o)){var f=t[o];f&&typeof f=="object"&&a&&typeof a=="object"?t[o]=e(f,a,n):t.push(a)}else t[o]=a}),t):Object.keys(r).reduce(function(a,o){var f=r[o];return Un.call(a,o)?a[o]=e(a[o],f,n):a[o]=f,a},i)},th=function(t,r){return Object.keys(r).reduce(function(n,i){return n[i]=r[i],n},t)},rh=function(e,t,r){var n=e.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},qn=1024,nh=function(t,r,n,i,a){if(t.length===0)return t;var o=t;if(typeof t=="symbol"?o=Symbol.prototype.toString.call(t):typeof t!="string"&&(o=String(t)),n==="iso-8859-1")return escape(o).replace(/%u[0-9a-f]{4}/gi,function(S){return"%26%23"+parseInt(S.slice(2),16)+"%3B"});for(var f="",d=0;d<o.length;d+=qn){for(var l=o.length>=qn?o.slice(d,d+qn):o,u=[],w=0;w<l.length;++w){var g=l.charCodeAt(w);if(g===45||g===46||g===95||g===126||g>=48&&g<=57||g>=65&&g<=90||g>=97&&g<=122||a===Jc.RFC1738&&(g===40||g===41)){u[u.length]=l.charAt(w);continue}if(g<128){u[u.length]=Ke[g];continue}if(g<2048){u[u.length]=Ke[192|g>>6]+Ke[128|g&63];continue}if(g<55296||g>=57344){u[u.length]=Ke[224|g>>12]+Ke[128|g>>6&63]+Ke[128|g&63];continue}w+=1,g=65536+((g&1023)<<10|l.charCodeAt(w)&1023),u[u.length]=Ke[240|g>>18]+Ke[128|g>>12&63]+Ke[128|g>>6&63]+Ke[128|g&63]}f+=u.join("")}return f},ih=function(t){for(var r=[{obj:{o:t},prop:"o"}],n=[],i=0;i<r.length;++i)for(var a=r[i],o=a.obj[a.prop],f=Object.keys(o),d=0;d<f.length;++d){var l=f[d],u=o[l];typeof u=="object"&&u!==null&&n.indexOf(u)===-1&&(r.push({obj:o,prop:l}),n.push(u))}return Qc(r),t},ah=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},oh=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},fh=function(t,r){return[].concat(t,r)},lh=function(t,r){if(bt(t)){for(var n=[],i=0;i<t.length;i+=1)n.push(r(t[i]));return n}return r(t)},Hf={arrayToObject:Zf,assign:th,combine:fh,compact:ih,decode:rh,encode:nh,isBuffer:oh,isRegExp:ah,maybeMap:lh,merge:eh},Wf=Kc,Dr=Hf,rr=ea,uh=Object.prototype.hasOwnProperty,Gf={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,r){return t+"["+r+"]"},repeat:function(t){return t}},Je=Array.isArray,sh=Array.prototype.push,Vf=function(e,t){sh.apply(e,Je(t)?t:[t])},ch=Date.prototype.toISOString,Va=rr.default,Ae={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Dr.encode,encodeValuesOnly:!1,filter:void 0,format:Va,formatter:rr.formatters[Va],indices:!1,serializeDate:function(t){return ch.call(t)},skipNulls:!1,strictNullHandling:!1},hh=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},zn={},dh=function e(t,r,n,i,a,o,f,d,l,u,w,g,S,N,F,j,k,I){for(var R=t,P=I,T=0,q=!1;(P=P.get(zn))!==void 0&&!q;){var C=P.get(t);if(T+=1,typeof C<"u"){if(C===T)throw new RangeError("Cyclic object value");q=!0}typeof P.get(zn)>"u"&&(T=0)}if(typeof u=="function"?R=u(r,R):R instanceof Date?R=S(R):n==="comma"&&Je(R)&&(R=Dr.maybeMap(R,function(D){return D instanceof Date?S(D):D})),R===null){if(o)return l&&!j?l(r,Ae.encoder,k,"key",N):r;R=""}if(hh(R)||Dr.isBuffer(R)){if(l){var z=j?r:l(r,Ae.encoder,k,"key",N);return[F(z)+"="+F(l(R,Ae.encoder,k,"value",N))]}return[F(r)+"="+F(String(R))]}var x=[];if(typeof R>"u")return x;var re;if(n==="comma"&&Je(R))j&&l&&(R=Dr.maybeMap(R,l)),re=[{value:R.length>0?R.join(",")||null:void 0}];else if(Je(u))re=u;else{var J=Object.keys(R);re=w?J.sort(w):J}var b=d?String(r).replace(/\./g,"%2E"):String(r),B=i&&Je(R)&&R.length===1?b+"[]":b;if(a&&Je(R)&&R.length===0)return B+"[]";for(var Q=0;Q<re.length;++Q){var ne=re[Q],ae=typeof ne=="object"&&ne&&typeof ne.value<"u"?ne.value:R[ne];if(!(f&&ae===null)){var ue=g&&d?String(ne).replace(/\./g,"%2E"):String(ne),ie=Je(R)?typeof n=="function"?n(B,ue):B:B+(g?"."+ue:"["+ue+"]");I.set(t,T);var Z=Wf();Z.set(zn,I),Vf(x,e(ae,ie,n,i,a,o,f,d,n==="comma"&&j&&Je(R)?null:l,u,w,g,S,N,F,j,k,Z))}}return x},ph=function(t){if(!t)return Ae;if(typeof t.allowEmptyArrays<"u"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.encodeDotInKeys<"u"&&typeof t.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=t.charset||Ae.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=rr.default;if(typeof t.format<"u"){if(!uh.call(rr.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var i=rr.formatters[n],a=Ae.filter;(typeof t.filter=="function"||Je(t.filter))&&(a=t.filter);var o;if(t.arrayFormat in Gf?o=t.arrayFormat:"indices"in t?o=t.indices?"indices":"repeat":o=Ae.arrayFormat,"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var f=typeof t.allowDots>"u"?t.encodeDotInKeys===!0?!0:Ae.allowDots:!!t.allowDots;return{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:Ae.addQueryPrefix,allowDots:f,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:Ae.allowEmptyArrays,arrayFormat:o,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Ae.charsetSentinel,commaRoundTrip:!!t.commaRoundTrip,delimiter:typeof t.delimiter>"u"?Ae.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:Ae.encode,encodeDotInKeys:typeof t.encodeDotInKeys=="boolean"?t.encodeDotInKeys:Ae.encodeDotInKeys,encoder:typeof t.encoder=="function"?t.encoder:Ae.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:Ae.encodeValuesOnly,filter:a,format:n,formatter:i,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:Ae.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:Ae.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Ae.strictNullHandling}},yh=function(e,t){var r=e,n=ph(t),i,a;typeof n.filter=="function"?(a=n.filter,r=a("",r)):Je(n.filter)&&(a=n.filter,i=a);var o=[];if(typeof r!="object"||r===null)return"";var f=Gf[n.arrayFormat],d=f==="comma"&&n.commaRoundTrip;i||(i=Object.keys(r)),n.sort&&i.sort(n.sort);for(var l=Wf(),u=0;u<i.length;++u){var w=i[u],g=r[w];n.skipNulls&&g===null||Vf(o,dh(g,w,f,d,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,l))}var S=o.join(n.delimiter),N=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?N+="utf8=%26%2310003%3B&":N+="utf8=%E2%9C%93&"),S.length>0?N+S:""},Rt=Hf,Pi=Object.prototype.hasOwnProperty,Ka=Array.isArray,Se={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Rt.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},vh=function(e){return e.replace(/&#(\d+);/g,function(t,r){return String.fromCharCode(parseInt(r,10))})},Kf=function(e,t,r){if(e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&r>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(t.arrayLimit===1?"":"s")+" allowed in an array.");return e},gh="utf8=%26%2310003%3B",_h="utf8=%E2%9C%93",bh=function(t,r){var n={__proto__:null},i=r.ignoreQueryPrefix?t.replace(/^\?/,""):t;i=i.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var a=r.parameterLimit===1/0?void 0:r.parameterLimit,o=i.split(r.delimiter,r.throwOnLimitExceeded?a+1:a);if(r.throwOnLimitExceeded&&o.length>a)throw new RangeError("Parameter limit exceeded. Only "+a+" parameter"+(a===1?"":"s")+" allowed.");var f=-1,d,l=r.charset;if(r.charsetSentinel)for(d=0;d<o.length;++d)o[d].indexOf("utf8=")===0&&(o[d]===_h?l="utf-8":o[d]===gh&&(l="iso-8859-1"),f=d,d=o.length);for(d=0;d<o.length;++d)if(d!==f){var u=o[d],w=u.indexOf("]="),g=w===-1?u.indexOf("="):w+1,S,N;g===-1?(S=r.decoder(u,Se.decoder,l,"key"),N=r.strictNullHandling?null:""):(S=r.decoder(u.slice(0,g),Se.decoder,l,"key"),N=Rt.maybeMap(Kf(u.slice(g+1),r,Ka(n[S])?n[S].length:0),function(j){return r.decoder(j,Se.decoder,l,"value")})),N&&r.interpretNumericEntities&&l==="iso-8859-1"&&(N=vh(String(N))),u.indexOf("[]=")>-1&&(N=Ka(N)?[N]:N);var F=Pi.call(n,S);F&&r.duplicates==="combine"?n[S]=Rt.combine(n[S],N):(!F||r.duplicates==="last")&&(n[S]=N)}return n},mh=function(e,t,r,n){var i=0;if(e.length>0&&e[e.length-1]==="[]"){var a=e.slice(0,-1).join("");i=Array.isArray(t)&&t[a]?t[a].length:0}for(var o=n?t:Kf(t,r,i),f=e.length-1;f>=0;--f){var d,l=e[f];if(l==="[]"&&r.parseArrays)d=r.allowEmptyArrays&&(o===""||r.strictNullHandling&&o===null)?[]:Rt.combine([],o);else{d=r.plainObjects?{__proto__:null}:{};var u=l.charAt(0)==="["&&l.charAt(l.length-1)==="]"?l.slice(1,-1):l,w=r.decodeDotInKeys?u.replace(/%2E/g,"."):u,g=parseInt(w,10);!r.parseArrays&&w===""?d={0:o}:!isNaN(g)&&l!==w&&String(g)===w&&g>=0&&r.parseArrays&&g<=r.arrayLimit?(d=[],d[g]=o):w!=="__proto__"&&(d[w]=o)}o=d}return o},wh=function(t,r,n,i){if(t){var a=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,o=/(\[[^[\]]*])/,f=/(\[[^[\]]*])/g,d=n.depth>0&&o.exec(a),l=d?a.slice(0,d.index):a,u=[];if(l){if(!n.plainObjects&&Pi.call(Object.prototype,l)&&!n.allowPrototypes)return;u.push(l)}for(var w=0;n.depth>0&&(d=f.exec(a))!==null&&w<n.depth;){if(w+=1,!n.plainObjects&&Pi.call(Object.prototype,d[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(d[1])}if(d){if(n.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");u.push("["+a.slice(d.index)+"]")}return mh(u,r,n,i)}},Eh=function(t){if(!t)return Se;if(typeof t.allowEmptyArrays<"u"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.decodeDotInKeys<"u"&&typeof t.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(t.decoder!==null&&typeof t.decoder<"u"&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof t.throwOnLimitExceeded<"u"&&typeof t.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var r=typeof t.charset>"u"?Se.charset:t.charset,n=typeof t.duplicates>"u"?Se.duplicates:t.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var i=typeof t.allowDots>"u"?t.decodeDotInKeys===!0?!0:Se.allowDots:!!t.allowDots;return{allowDots:i,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:Se.allowEmptyArrays,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:Se.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:Se.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:Se.arrayLimit,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Se.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:Se.comma,decodeDotInKeys:typeof t.decodeDotInKeys=="boolean"?t.decodeDotInKeys:Se.decodeDotInKeys,decoder:typeof t.decoder=="function"?t.decoder:Se.decoder,delimiter:typeof t.delimiter=="string"||Rt.isRegExp(t.delimiter)?t.delimiter:Se.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:Se.depth,duplicates:n,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:Se.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:Se.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:Se.plainObjects,strictDepth:typeof t.strictDepth=="boolean"?!!t.strictDepth:Se.strictDepth,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Se.strictNullHandling,throwOnLimitExceeded:typeof t.throwOnLimitExceeded=="boolean"?t.throwOnLimitExceeded:!1}},Sh=function(e,t){var r=Eh(t);if(e===""||e===null||typeof e>"u")return r.plainObjects?{__proto__:null}:{};for(var n=typeof e=="string"?bh(e,r):e,i=r.plainObjects?{__proto__:null}:{},a=Object.keys(n),o=0;o<a.length;++o){var f=a[o],d=wh(f,n[f],r,typeof e=="string");i=Rt.merge(i,d,r)}return r.allowSparse===!0?i:Rt.compact(i)},Rh=yh,Ah=Sh,Oh=ea,Th={formats:Oh,parse:Ah,stringify:Rh};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=Af,n=Th;function i(L){return L&&typeof L=="object"&&"default"in L?L:{default:L}}var a=i(r),o=i(n),f=a.default;function d(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var l=/^([a-z0-9.+-]+:)/i,u=/:[0-9]*$/,w=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,g=["<",">",'"',"`"," ","\r",`
@@ -1,11 +1,11 @@
1
1
  var A = Object.defineProperty;
2
2
  var B = (d, e, s) => e in d ? A(d, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : d[e] = s;
3
3
  var o = (d, e, s) => B(d, typeof e != "symbol" ? e + "" : e, s);
4
- import { N as g, l as p, O as u, P as w } from "./chunk-IMTC3J2M-B7fKwIuX.mjs";
5
- import { a1 as S, E as I, b4 as U, aO as D, a3 as f, H as l, cu as T } from "./address-Drr_9OcK.mjs";
6
- import { A as E } from "./platform-PaIJsXKV.mjs";
4
+ import { N as g, l as p, O as u, P as w } from "./chunk-IMTC3J2M-DKLPKqnP.mjs";
5
+ import { a1 as S, E as I, b4 as U, aO as D, a3 as f, H as l, cu as T } from "./address-CBux52Na.mjs";
6
+ import { A as E } from "./platform-Czq0KkFa.mjs";
7
7
  import { A as R } from "./unsignedTransaction-BDOQhqcZ.mjs";
8
- import { r as $ } from "./chain-CNVMEdrk.mjs";
8
+ import { r as $ } from "./chain-sKZNJgPZ.mjs";
9
9
  const N = [
10
10
  [
11
11
  "Mainnet",
@@ -1,10 +1,10 @@
1
1
  var m = Object.defineProperty;
2
2
  var d = (a, e, t) => e in a ? m(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
3
3
  var o = (a, e, t) => d(a, typeof e != "symbol" ? e + "" : e, t);
4
- import { aP as h, _ as w, a3 as p } from "./address-Drr_9OcK.mjs";
5
- import { A as g } from "./platform-PaIJsXKV.mjs";
6
- import { c as u } from "./create-B9LwWha4.mjs";
7
- import { r as l } from "./chain-CNVMEdrk.mjs";
4
+ import { aP as h, _ as w, a3 as p } from "./address-CBux52Na.mjs";
5
+ import { A as g } from "./platform-Czq0KkFa.mjs";
6
+ import { c as u } from "./create-CQ6n4Ga8.mjs";
7
+ import { r as l } from "./chain-sKZNJgPZ.mjs";
8
8
  class i {
9
9
  constructor(e, t, r, s) {
10
10
  o(this, "network");
@@ -1,12 +1,12 @@
1
1
  var oe = Object.defineProperty;
2
2
  var se = (m, t, e) => t in m ? oe(m, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : m[t] = e;
3
3
  var h = (m, t, e) => se(m, typeof t != "symbol" ? t + "" : t, e);
4
- import { g as F, e as N, i as $, b as I, f as b, T as _, a as C, p as ae, h as ie, j as R, S as M, k as Q, l as ce, m as x, n as de, o as le } from "./platform-CbDx4hex.mjs";
5
- import { i as V, o as ge, q as X, r as S, S as O, u as ue, k as fe, v as pe, w as he, p as K } from "./address-B9anhmbU.mjs";
6
- import "./index-BAuH_G93.mjs";
7
- import { aF as we, cv as D, _ as H, aA as ye, aP as j, k as v, v as me, a6 as G, aO as ke, N as W, a4 as be, a3 as U, $ as Ie, a0 as L } from "./address-Drr_9OcK.mjs";
4
+ import { g as F, e as N, i as $, b as I, f as b, T as _, a as C, p as ae, h as ie, j as R, S as M, k as Q, l as ce, m as x, n as de, o as le } from "./platform-Droe0nZu.mjs";
5
+ import { i as V, o as ge, q as X, r as S, S as O, u as ue, k as fe, v as pe, w as he, p as K } from "./address-DKHa7TFU.mjs";
6
+ import "./index-DNcx7dMI.mjs";
7
+ import { aF as we, cv as D, _ as H, aA as ye, aP as j, k as v, v as me, a7 as G, aO as ke, N as W, a4 as be, a3 as U, $ as Ie, a0 as L } from "./address-CBux52Na.mjs";
8
8
  import { S as Z } from "./unsignedTransaction-BD81leu1.mjs";
9
- import { r as ee } from "./chain-CNVMEdrk.mjs";
9
+ import { r as ee } from "./chain-sKZNJgPZ.mjs";
10
10
  const Y = async (m, t, e) => {
11
11
  var d, r, n;
12
12
  if (!V(e))
@@ -1,5 +1,5 @@
1
- import { a as J } from "./sha3-DQQvDwj1.mjs";
2
- import { aX as Z } from "./address-Drr_9OcK.mjs";
1
+ import { a as J } from "./sha3-BMK6V2DM.mjs";
2
+ import { aX as Z } from "./address-CBux52Na.mjs";
3
3
  const j = "logger/5.8.0";
4
4
  let F = !1, k = !1;
5
5
  const U = { debug: 1, default: 2, info: 2, warning: 3, error: 4, off: 5 };
@@ -1,5 +1,5 @@
1
- import { V as _e, X as or, d as ne, g as Qr } from "./address-Drr_9OcK.mjs";
2
- import { q as yf, t as zi, u as ou, v as vt, w as ha, x as fu } from "./index-DiulRNyF.mjs";
1
+ import { V as _e, X as or, d as ne, g as Qr } from "./address-CBux52Na.mjs";
2
+ import { q as yf, t as zi, u as ou, v as vt, w as ha, x as fu } from "./index-ByaMu-qS.mjs";
3
3
  var Zi = {}, vf = { exports: {} }, Hi = {};
4
4
  (function(e) {
5
5
  e.fetch = i(_e.fetch) && i(_e.ReadableStream), e.writableStream = i(_e.WritableStream), e.abortController = i(_e.AbortController);