UNPKG

@ragsters/raggie-wallet-connector

Version:

This is a React component built by the CryptoRaggies team to enable any React website to easily connect to popular Cardano wallets. The user's choice of wallet is persisted to local storage and the wallet connector will automatically reconnect the previou

1,349 lines (1,347 loc) 9.47 MB
import * as IA from "react"; import oI, { useState as nA, Fragment as Jh, createContext as yE, useContext as FB, useRef as XA, useEffect as fA, useMemo as Kh, useCallback as jA, useLayoutEffect as hw, useId as Yh, forwardRef as BI, cloneElement as Ii, createElement as qQ, Children as pa } from "react"; import * as KM from "react-dom"; import YM, { flushSync as RM, createPortal as rM } from "react-dom"; var lD = { exports: {} }, ti = {}; /** * @license React * react-jsx-runtime.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var La; function nM() { if (La) return ti; La = 1; var E = oI, A = Symbol.for("react.element"), I = Symbol.for("react.fragment"), Q = Object.prototype.hasOwnProperty, B = E.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, C = { key: !0, ref: !0, __self: !0, __source: !0 }; function a(o, k, G) { var t, c = {}, M = null, e = null; G !== void 0 && (M = "" + G), k.key !== void 0 && (M = "" + k.key), k.ref !== void 0 && (e = k.ref); for (t in k) Q.call(k, t) && !C.hasOwnProperty(t) && (c[t] = k[t]); if (o && o.defaultProps) for (t in k = o.defaultProps, k) c[t] === void 0 && (c[t] = k[t]); return { $$typeof: A, type: o, key: M, ref: e, props: c, _owner: B.current }; } return ti.Fragment = I, ti.jsx = a, ti.jsxs = a, ti; } var hi = {}; /** * @license React * react-jsx-runtime.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var da; function UM() { return da || (da = 1, process.env.NODE_ENV !== "production" && function() { var E = oI, A = Symbol.for("react.element"), I = Symbol.for("react.portal"), Q = Symbol.for("react.fragment"), B = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), o = Symbol.for("react.context"), k = Symbol.for("react.forward_ref"), G = Symbol.for("react.suspense"), t = Symbol.for("react.suspense_list"), c = Symbol.for("react.memo"), M = Symbol.for("react.lazy"), e = Symbol.for("react.offscreen"), K = Symbol.iterator, Y = "@@iterator"; function U(L) { if (L === null || typeof L != "object") return null; var n = K && L[K] || L[Y]; return typeof n == "function" ? n : null; } var q = E.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; function H(L) { { for (var n = arguments.length, W = new Array(n > 1 ? n - 1 : 0), $ = 1; $ < n; $++) W[$ - 1] = arguments[$]; _("error", L, W); } } function _(L, n, W) { { var $ = q.ReactDebugCurrentFrame, wA = $.getStackAddendum(); wA !== "" && (n += "%s", W = W.concat([wA])); var NA = W.map(function(KA) { return String(KA); }); NA.unshift("Warning: " + n), Function.prototype.apply.call(console[L], console, NA); } } var f = !1, x = !1, b = !1, v = !1, V = !1, AA; AA = Symbol.for("react.module.reference"); function aA(L) { return !!(typeof L == "string" || typeof L == "function" || L === Q || L === C || V || L === B || L === G || L === t || v || L === e || f || x || b || typeof L == "object" && L !== null && (L.$$typeof === M || L.$$typeof === c || L.$$typeof === a || L.$$typeof === o || L.$$typeof === k || // This needs to include all possible module reference object // types supported by any Flight configuration anywhere since // we don't know which Flight build this will end up being used // with. L.$$typeof === AA || L.getModuleId !== void 0)); } function kA(L, n, W) { var $ = L.displayName; if ($) return $; var wA = n.displayName || n.name || ""; return wA !== "" ? W + "(" + wA + ")" : W; } function sA(L) { return L.displayName || "Context"; } function QA(L) { if (L == null) return null; if (typeof L.tag == "number" && H("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof L == "function") return L.displayName || L.name || null; if (typeof L == "string") return L; switch (L) { case Q: return "Fragment"; case I: return "Portal"; case C: return "Profiler"; case B: return "StrictMode"; case G: return "Suspense"; case t: return "SuspenseList"; } if (typeof L == "object") switch (L.$$typeof) { case o: var n = L; return sA(n) + ".Consumer"; case a: var W = L; return sA(W._context) + ".Provider"; case k: return kA(L, L.render, "ForwardRef"); case c: var $ = L.displayName || null; return $ !== null ? $ : QA(L.type) || "Memo"; case M: { var wA = L, NA = wA._payload, KA = wA._init; try { return QA(KA(NA)); } catch { return null; } } } return null; } var gA = Object.assign, EA = 0, Z, iA, X, P, hA, GA, rA; function zA() { } zA.__reactDisabledLog = !0; function AI() { { if (EA === 0) { Z = console.log, iA = console.info, X = console.warn, P = console.error, hA = console.group, GA = console.groupCollapsed, rA = console.groupEnd; var L = { configurable: !0, enumerable: !0, value: zA, writable: !0 }; Object.defineProperties(console, { info: L, log: L, warn: L, error: L, group: L, groupCollapsed: L, groupEnd: L }); } EA++; } } function eA() { { if (EA--, EA === 0) { var L = { configurable: !0, enumerable: !0, writable: !0 }; Object.defineProperties(console, { log: gA({}, L, { value: Z }), info: gA({}, L, { value: iA }), warn: gA({}, L, { value: X }), error: gA({}, L, { value: P }), group: gA({}, L, { value: hA }), groupCollapsed: gA({}, L, { value: GA }), groupEnd: gA({}, L, { value: rA }) }); } EA < 0 && H("disabledDepth fell below zero. This is a bug in React. Please file an issue."); } } var YA = q.ReactCurrentDispatcher, FA; function UA(L, n, W) { { if (FA === void 0) try { throw Error(); } catch (wA) { var $ = wA.stack.trim().match(/\n( *(at )?)/); FA = $ && $[1] || ""; } return ` ` + FA + L; } } var JA = !1, yA; { var vA = typeof WeakMap == "function" ? WeakMap : Map; yA = new vA(); } function QI(L, n) { if (!L || JA) return ""; { var W = yA.get(L); if (W !== void 0) return W; } var $; JA = !0; var wA = Error.prepareStackTrace; Error.prepareStackTrace = void 0; var NA; NA = YA.current, YA.current = null, AI(); try { if (n) { var KA = function() { throw Error(); }; if (Object.defineProperty(KA.prototype, "props", { set: function() { throw Error(); } }), typeof Reflect == "object" && Reflect.construct) { try { Reflect.construct(KA, []); } catch (vI) { $ = vI; } Reflect.construct(L, [], KA); } else { try { KA.call(); } catch (vI) { $ = vI; } L.call(KA.prototype); } } else { try { throw Error(); } catch (vI) { $ = vI; } L(); } } catch (vI) { if (vI && $ && typeof vI.stack == "string") { for (var cA = vI.stack.split(` `), qA = $.stack.split(` `), bA = cA.length - 1, mA = qA.length - 1; bA >= 1 && mA >= 0 && cA[bA] !== qA[mA]; ) mA--; for (; bA >= 1 && mA >= 0; bA--, mA--) if (cA[bA] !== qA[mA]) { if (bA !== 1 || mA !== 1) do if (bA--, mA--, mA < 0 || cA[bA] !== qA[mA]) { var EI = ` ` + cA[bA].replace(" at new ", " at "); return L.displayName && EI.includes("<anonymous>") && (EI = EI.replace("<anonymous>", L.displayName)), typeof L == "function" && yA.set(L, EI), EI; } while (bA >= 1 && mA >= 0); break; } } } finally { JA = !1, YA.current = NA, eA(), Error.prepareStackTrace = wA; } var hI = L ? L.displayName || L.name : "", HC = hI ? UA(hI) : ""; return typeof L == "function" && yA.set(L, HC), HC; } function ZA(L, n, W) { return QI(L, !1); } function DI(L) { var n = L.prototype; return !!(n && n.isReactComponent); } function kI(L, n, W) { if (L == null) return ""; if (typeof L == "function") return QI(L, DI(L)); if (typeof L == "string") return UA(L); switch (L) { case G: return UA("Suspense"); case t: return UA("SuspenseList"); } if (typeof L == "object") switch (L.$$typeof) { case k: return ZA(L.render); case c: return kI(L.type, n, W); case M: { var $ = L, wA = $._payload, NA = $._init; try { return kI(NA(wA), n, W); } catch { } } } return ""; } var FI = Object.prototype.hasOwnProperty, wI = {}, uI = q.ReactDebugCurrentFrame; function RI(L) { if (L) { var n = L._owner, W = kI(L.type, L._source, n ? n.type : null); uI.setExtraStackFrame(W); } else uI.setExtraStackFrame(null); } function VI(L, n, W, $, wA) { { var NA = Function.call.bind(FI); for (var KA in L) if (NA(L, KA)) { var cA = void 0; try { if (typeof L[KA] != "function") { var qA = Error(($ || "React class") + ": " + W + " type `" + KA + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof L[KA] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); throw qA.name = "Invariant Violation", qA; } cA = L[KA](n, KA, $, W, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); } catch (bA) { cA = bA; } cA && !(cA instanceof Error) && (RI(wA), H("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", $ || "React class", W, KA, typeof cA), RI(null)), cA instanceof Error && !(cA.message in wI) && (wI[cA.message] = !0, RI(wA), H("Failed %s type: %s", W, cA.message), RI(null)); } } } var Gg = Array.isArray; function OA(L) { return Gg(L); } function Yg(L) { { var n = typeof Symbol == "function" && Symbol.toStringTag, W = n && L[Symbol.toStringTag] || L.constructor.name || "Object"; return W; } } function bQ(L) { try { return XI(L), !1; } catch { return !0; } } function XI(L) { return "" + L; } function oC(L) { if (bQ(L)) return H("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Yg(L)), XI(L); } var S = q.ReactCurrentOwner, y = { key: !0, ref: !0, __self: !0, __source: !0 }, F, l; function u(L) { if (FI.call(L, "ref")) { var n = Object.getOwnPropertyDescriptor(L, "ref").get; if (n && n.isReactWarning) return !1; } return L.ref !== void 0; } function z(L) { if (FI.call(L, "key")) { var n = Object.getOwnPropertyDescriptor(L, "key").get; if (n && n.isReactWarning) return !1; } return L.key !== void 0; } function DA(L, n) { typeof L.ref == "string" && S.current; } function TA(L, n) { { var W = function() { F || (F = !0, H("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", n)); }; W.isReactWarning = !0, Object.defineProperty(L, "key", { get: W, configurable: !0 }); } } function NI(L, n) { { var W = function() { l || (l = !0, H("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", n)); }; W.isReactWarning = !0, Object.defineProperty(L, "ref", { get: W, configurable: !0 }); } } var sI = function(L, n, W, $, wA, NA, KA) { var cA = { // This tag allows us to uniquely identify this as a React Element $$typeof: A, // Built-in properties that belong on the element type: L, key: n, ref: W, props: KA, // Record the component responsible for creating this element. _owner: NA }; return cA._store = {}, Object.defineProperty(cA._store, "validated", { configurable: !1, enumerable: !1, writable: !0, value: !1 }), Object.defineProperty(cA, "_self", { configurable: !1, enumerable: !1, writable: !1, value: $ }), Object.defineProperty(cA, "_source", { configurable: !1, enumerable: !1, writable: !1, value: wA }), Object.freeze && (Object.freeze(cA.props), Object.freeze(cA)), cA; }; function cI(L, n, W, $, wA) { { var NA, KA = {}, cA = null, qA = null; W !== void 0 && (oC(W), cA = "" + W), z(n) && (oC(n.key), cA = "" + n.key), u(n) && (qA = n.ref, DA(n, wA)); for (NA in n) FI.call(n, NA) && !y.hasOwnProperty(NA) && (KA[NA] = n[NA]); if (L && L.defaultProps) { var bA = L.defaultProps; for (NA in bA) KA[NA] === void 0 && (KA[NA] = bA[NA]); } if (cA || qA) { var mA = typeof L == "function" ? L.displayName || L.name || "Unknown" : L; cA && TA(KA, mA), qA && NI(KA, mA); } return sI(L, cA, qA, wA, $, S.current, KA); } } var gI = q.ReactCurrentOwner, SC = q.ReactDebugCurrentFrame; function zI(L) { if (L) { var n = L._owner, W = kI(L.type, L._source, n ? n.type : null); SC.setExtraStackFrame(W); } else SC.setExtraStackFrame(null); } var kg; kg = !1; function Tg(L) { return typeof L == "object" && L !== null && L.$$typeof === A; } function qC() { { if (gI.current) { var L = QA(gI.current.type); if (L) return ` Check the render method of \`` + L + "`."; } return ""; } } function KE(L) { return ""; } var mQ = {}; function YE(L) { { var n = qC(); if (!n) { var W = typeof L == "string" ? L : L.displayName || L.name; W && (n = ` Check the top-level render call using <` + W + ">."); } return n; } } function xQ(L, n) { { if (!L._store || L._store.validated || L.key != null) return; L._store.validated = !0; var W = YE(n); if (mQ[W]) return; mQ[W] = !0; var $ = ""; L && L._owner && L._owner !== gI.current && ($ = " It was passed a child from " + QA(L._owner.type) + "."), zI(L), H('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', W, $), zI(null); } } function rB(L, n) { { if (typeof L != "object") return; if (OA(L)) for (var W = 0; W < L.length; W++) { var $ = L[W]; Tg($) && xQ($, n); } else if (Tg(L)) L._store && (L._store.validated = !0); else if (L) { var wA = U(L); if (typeof wA == "function" && wA !== L.entries) for (var NA = wA.call(L), KA; !(KA = NA.next()).done; ) Tg(KA.value) && xQ(KA.value, n); } } } function RE(L) { { var n = L.type; if (n == null || typeof n == "string") return; var W; if (typeof n == "function") W = n.propTypes; else if (typeof n == "object" && (n.$$typeof === k || // Note: Memo only checks outer props here. // Inner props are checked in the reconciler. n.$$typeof === c)) W = n.propTypes; else return; if (W) { var $ = QA(n); VI(W, L.props, "prop", $, L); } else if (n.PropTypes !== void 0 && !kg) { kg = !0; var wA = QA(n); H("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", wA || "Unknown"); } typeof n.getDefaultProps == "function" && !n.getDefaultProps.isReactClassApproved && H("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."); } } function ki(L) { { for (var n = Object.keys(L.props), W = 0; W < n.length; W++) { var $ = n[W]; if ($ !== "children" && $ !== "key") { zI(L), H("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", $), zI(null); break; } } L.ref !== null && (zI(L), H("Invalid attribute `ref` supplied to `React.Fragment`."), zI(null)); } } function jQ(L, n, W, $, wA, NA) { { var KA = aA(L); if (!KA) { var cA = ""; (L === void 0 || typeof L == "object" && L !== null && Object.keys(L).length === 0) && (cA += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."); var qA = KE(); qA ? cA += qA : cA += qC(); var bA; L === null ? bA = "null" : OA(L) ? bA = "array" : L !== void 0 && L.$$typeof === A ? (bA = "<" + (QA(L.type) || "Unknown") + " />", cA = " Did you accidentally export a JSX literal instead of a component?") : bA = typeof L, H("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", bA, cA); } var mA = cI(L, n, W, wA, NA); if (mA == null) return mA; if (KA) { var EI = n.children; if (EI !== void 0) if ($) if (OA(EI)) { for (var hI = 0; hI < EI.length; hI++) rB(EI[hI], L); Object.freeze && Object.freeze(EI); } else H("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."); else rB(EI, L); } return L === Q ? ki(mA) : RE(mA), mA; } } function rE(L, n, W) { return jQ(L, n, W, !0); } function si(L, n, W) { return jQ(L, n, W, !1); } var m = si, tA = rE; hi.Fragment = Q, hi.jsx = m, hi.jsxs = tA; }()), hi; } process.env.NODE_ENV === "production" ? lD.exports = nM() : lD.exports = UM(); var r = lD.exports, wg = {}, po = {}; po.byteLength = HM; po.toByteArray = LM; po.fromByteArray = lM; var NC = [], _g = [], SM = typeof Uint8Array < "u" ? Uint8Array : Array, GD = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; for (var nE = 0, qM = GD.length; nE < qM; ++nE) NC[nE] = GD[nE], _g[GD.charCodeAt(nE)] = nE; _g[45] = 62; _g[95] = 63; function Rh(E) { var A = E.length; if (A % 4 > 0) throw new Error("Invalid string. Length must be a multiple of 4"); var I = E.indexOf("="); I === -1 && (I = A); var Q = I === A ? 0 : 4 - I % 4; return [I, Q]; } function HM(E) { var A = Rh(E), I = A[0], Q = A[1]; return (I + Q) * 3 / 4 - Q; } function pM(E, A, I) { return (A + I) * 3 / 4 - I; } function LM(E) { var A, I = Rh(E), Q = I[0], B = I[1], C = new SM(pM(E, Q, B)), a = 0, o = B > 0 ? Q - 4 : Q, k; for (k = 0; k < o; k += 4) A = _g[E.charCodeAt(k)] << 18 | _g[E.charCodeAt(k + 1)] << 12 | _g[E.charCodeAt(k + 2)] << 6 | _g[E.charCodeAt(k + 3)], C[a++] = A >> 16 & 255, C[a++] = A >> 8 & 255, C[a++] = A & 255; return B === 2 && (A = _g[E.charCodeAt(k)] << 2 | _g[E.charCodeAt(k + 1)] >> 4, C[a++] = A & 255), B === 1 && (A = _g[E.charCodeAt(k)] << 10 | _g[E.charCodeAt(k + 1)] << 4 | _g[E.charCodeAt(k + 2)] >> 2, C[a++] = A >> 8 & 255, C[a++] = A & 255), C; } function dM(E) { return NC[E >> 18 & 63] + NC[E >> 12 & 63] + NC[E >> 6 & 63] + NC[E & 63]; } function _M(E, A, I) { for (var Q, B = [], C = A; C < I; C += 3) Q = (E[C] << 16 & 16711680) + (E[C + 1] << 8 & 65280) + (E[C + 2] & 255), B.push(dM(Q)); return B.join(""); } function lM(E) { for (var A, I = E.length, Q = I % 3, B = [], C = 16383, a = 0, o = I - Q; a < o; a += C) B.push(_M(E, a, a + C > o ? o : a + C)); return Q === 1 ? (A = E[I - 1], B.push( NC[A >> 2] + NC[A << 4 & 63] + "==" )) : Q === 2 && (A = (E[I - 2] << 8) + E[I - 1], B.push( NC[A >> 10] + NC[A >> 4 & 63] + NC[A << 2 & 63] + "=" )), B.join(""); } var Nw = {}; /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ Nw.read = function(E, A, I, Q, B) { var C, a, o = B * 8 - Q - 1, k = (1 << o) - 1, G = k >> 1, t = -7, c = I ? B - 1 : 0, M = I ? -1 : 1, e = E[A + c]; for (c += M, C = e & (1 << -t) - 1, e >>= -t, t += o; t > 0; C = C * 256 + E[A + c], c += M, t -= 8) ; for (a = C & (1 << -t) - 1, C >>= -t, t += Q; t > 0; a = a * 256 + E[A + c], c += M, t -= 8) ; if (C === 0) C = 1 - G; else { if (C === k) return a ? NaN : (e ? -1 : 1) * (1 / 0); a = a + Math.pow(2, Q), C = C - G; } return (e ? -1 : 1) * a * Math.pow(2, C - Q); }; Nw.write = function(E, A, I, Q, B, C) { var a, o, k, G = C * 8 - B - 1, t = (1 << G) - 1, c = t >> 1, M = B === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, e = Q ? 0 : C - 1, K = Q ? 1 : -1, Y = A < 0 || A === 0 && 1 / A < 0 ? 1 : 0; for (A = Math.abs(A), isNaN(A) || A === 1 / 0 ? (o = isNaN(A) ? 1 : 0, a = t) : (a = Math.floor(Math.log(A) / Math.LN2), A * (k = Math.pow(2, -a)) < 1 && (a--, k *= 2), a + c >= 1 ? A += M / k : A += M * Math.pow(2, 1 - c), A * k >= 2 && (a++, k /= 2), a + c >= t ? (o = 0, a = t) : a + c >= 1 ? (o = (A * k - 1) * Math.pow(2, B), a = a + c) : (o = A * Math.pow(2, c - 1) * Math.pow(2, B), a = 0)); B >= 8; E[I + e] = o & 255, e += K, o /= 256, B -= 8) ; for (a = a << B | o, G += B; G > 0; E[I + e] = a & 255, e += K, a /= 256, G -= 8) ; E[I + e - K] |= Y * 128; }; /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh <https://feross.org> * @license MIT */ (function(E) { const A = po, I = Nw, Q = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null; E.Buffer = o, E.SlowBuffer = H, E.INSPECT_MAX_BYTES = 50; const B = 2147483647; E.kMaxLength = B, o.TYPED_ARRAY_SUPPORT = C(), !o.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error( "This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support." ); function C() { try { const S = new Uint8Array(1), y = { foo: function() { return 42; } }; return Object.setPrototypeOf(y, Uint8Array.prototype), Object.setPrototypeOf(S, y), S.foo() === 42; } catch { return !1; } } Object.defineProperty(o.prototype, "parent", { enumerable: !0, get: function() { if (o.isBuffer(this)) return this.buffer; } }), Object.defineProperty(o.prototype, "offset", { enumerable: !0, get: function() { if (o.isBuffer(this)) return this.byteOffset; } }); function a(S) { if (S > B) throw new RangeError('The value "' + S + '" is invalid for option "size"'); const y = new Uint8Array(S); return Object.setPrototypeOf(y, o.prototype), y; } function o(S, y, F) { if (typeof S == "number") { if (typeof y == "string") throw new TypeError( 'The "string" argument must be of type string. Received type number' ); return c(S); } return k(S, y, F); } o.poolSize = 8192; function k(S, y, F) { if (typeof S == "string") return M(S, y); if (ArrayBuffer.isView(S)) return K(S); if (S == null) throw new TypeError( "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof S ); if (OA(S, ArrayBuffer) || S && OA(S.buffer, ArrayBuffer) || typeof SharedArrayBuffer < "u" && (OA(S, SharedArrayBuffer) || S && OA(S.buffer, SharedArrayBuffer))) return Y(S, y, F); if (typeof S == "number") throw new TypeError( 'The "value" argument must not be of type number. Received type number' ); const l = S.valueOf && S.valueOf(); if (l != null && l !== S) return o.from(l, y, F); const u = U(S); if (u) return u; if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof S[Symbol.toPrimitive] == "function") return o.from(S[Symbol.toPrimitive]("string"), y, F); throw new TypeError( "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof S ); } o.from = function(S, y, F) { return k(S, y, F); }, Object.setPrototypeOf(o.prototype, Uint8Array.prototype), Object.setPrototypeOf(o, Uint8Array); function G(S) { if (typeof S != "number") throw new TypeError('"size" argument must be of type number'); if (S < 0) throw new RangeError('The value "' + S + '" is invalid for option "size"'); } function t(S, y, F) { return G(S), S <= 0 ? a(S) : y !== void 0 ? typeof F == "string" ? a(S).fill(y, F) : a(S).fill(y) : a(S); } o.alloc = function(S, y, F) { return t(S, y, F); }; function c(S) { return G(S), a(S < 0 ? 0 : q(S) | 0); } o.allocUnsafe = function(S) { return c(S); }, o.allocUnsafeSlow = function(S) { return c(S); }; function M(S, y) { if ((typeof y != "string" || y === "") && (y = "utf8"), !o.isEncoding(y)) throw new TypeError("Unknown encoding: " + y); const F = _(S, y) | 0; let l = a(F); const u = l.write(S, y); return u !== F && (l = l.slice(0, u)), l; } function e(S) { const y = S.length < 0 ? 0 : q(S.length) | 0, F = a(y); for (let l = 0; l < y; l += 1) F[l] = S[l] & 255; return F; } function K(S) { if (OA(S, Uint8Array)) { const y = new Uint8Array(S); return Y(y.buffer, y.byteOffset, y.byteLength); } return e(S); } function Y(S, y, F) { if (y < 0 || S.byteLength < y) throw new RangeError('"offset" is outside of buffer bounds'); if (S.byteLength < y + (F || 0)) throw new RangeError('"length" is outside of buffer bounds'); let l; return y === void 0 && F === void 0 ? l = new Uint8Array(S) : F === void 0 ? l = new Uint8Array(S, y) : l = new Uint8Array(S, y, F), Object.setPrototypeOf(l, o.prototype), l; } function U(S) { if (o.isBuffer(S)) { const y = q(S.length) | 0, F = a(y); return F.length === 0 || S.copy(F, 0, 0, y), F; } if (S.length !== void 0) return typeof S.length != "number" || Yg(S.length) ? a(0) : e(S); if (S.type === "Buffer" && Array.isArray(S.data)) return e(S.data); } function q(S) { if (S >= B) throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + B.toString(16) + " bytes"); return S | 0; } function H(S) { return +S != S && (S = 0), o.alloc(+S); } o.isBuffer = function(y) { return y != null && y._isBuffer === !0 && y !== o.prototype; }, o.compare = function(y, F) { if (OA(y, Uint8Array) && (y = o.from(y, y.offset, y.byteLength)), OA(F, Uint8Array) && (F = o.from(F, F.offset, F.byteLength)), !o.isBuffer(y) || !o.isBuffer(F)) throw new TypeError( 'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array' ); if (y === F) return 0; let l = y.length, u = F.length; for (let z = 0, DA = Math.min(l, u); z < DA; ++z) if (y[z] !== F[z]) { l = y[z], u = F[z]; break; } return l < u ? -1 : u < l ? 1 : 0; }, o.isEncoding = function(y) { switch (String(y).toLowerCase()) { case "hex": case "utf8": case "utf-8": case "ascii": case "latin1": case "binary": case "base64": case "ucs2": case "ucs-2": case "utf16le": case "utf-16le": return !0; default: return !1; } }, o.concat = function(y, F) { if (!Array.isArray(y)) throw new TypeError('"list" argument must be an Array of Buffers'); if (y.length === 0) return o.alloc(0); let l; if (F === void 0) for (F = 0, l = 0; l < y.length; ++l) F += y[l].length; const u = o.allocUnsafe(F); let z = 0; for (l = 0; l < y.length; ++l) { let DA = y[l]; if (OA(DA, Uint8Array)) z + DA.length > u.length ? (o.isBuffer(DA) || (DA = o.from(DA)), DA.copy(u, z)) : Uint8Array.prototype.set.call( u, DA, z ); else if (o.isBuffer(DA)) DA.copy(u, z); else throw new TypeError('"list" argument must be an Array of Buffers'); z += DA.length; } return u; }; function _(S, y) { if (o.isBuffer(S)) return S.length; if (ArrayBuffer.isView(S) || OA(S, ArrayBuffer)) return S.byteLength; if (typeof S != "string") throw new TypeError( 'The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof S ); const F = S.length, l = arguments.length > 2 && arguments[2] === !0; if (!l && F === 0) return 0; let u = !1; for (; ; ) switch (y) { case "ascii": case "latin1": case "binary": return F; case "utf8": case "utf-8": return wI(S).length; case "ucs2": case "ucs-2": case "utf16le": case "utf-16le": return F * 2; case "hex": return F >>> 1; case "base64": return VI(S).length; default: if (u) return l ? -1 : wI(S).length; y = ("" + y).toLowerCase(), u = !0; } } o.byteLength = _; function f(S, y, F) { let l = !1; if ((y === void 0 || y < 0) && (y = 0), y > this.length || ((F === void 0 || F > this.length) && (F = this.length), F <= 0) || (F >>>= 0, y >>>= 0, F <= y)) return ""; for (S || (S = "utf8"); ; ) switch (S) { case "hex": return P(this, y, F); case "utf8": case "utf-8": return gA(this, y, F); case "ascii": return iA(this, y, F); case "latin1": case "binary": return X(this, y, F); case "base64": return QA(this, y, F); case "ucs2": case "ucs-2": case "utf16le": case "utf-16le": return hA(this, y, F); default: if (l) throw new TypeError("Unknown encoding: " + S); S = (S + "").toLowerCase(), l = !0; } } o.prototype._isBuffer = !0; function x(S, y, F) { const l = S[y]; S[y] = S[F], S[F] = l; } o.prototype.swap16 = function() { const y = this.length; if (y % 2 !== 0) throw new RangeError("Buffer size must be a multiple of 16-bits"); for (let F = 0; F < y; F += 2) x(this, F, F + 1); return this; }, o.prototype.swap32 = function() { const y = this.length; if (y % 4 !== 0) throw new RangeError("Buffer size must be a multiple of 32-bits"); for (let F = 0; F < y; F += 4) x(this, F, F + 3), x(this, F + 1, F + 2); return this; }, o.prototype.swap64 = function() { const y = this.length; if (y % 8 !== 0) throw new RangeError("Buffer size must be a multiple of 64-bits"); for (let F = 0; F < y; F += 8) x(this, F, F + 7), x(this, F + 1, F + 6), x(this, F + 2, F + 5), x(this, F + 3, F + 4); return this; }, o.prototype.toString = function() { const y = this.length; return y === 0 ? "" : arguments.length === 0 ? gA(this, 0, y) : f.apply(this, arguments); }, o.prototype.toLocaleString = o.prototype.toString, o.prototype.equals = function(y) { if (!o.isBuffer(y)) throw new TypeError("Argument must be a Buffer"); return this === y ? !0 : o.compare(this, y) === 0; }, o.prototype.inspect = function() { let y = ""; const F = E.INSPECT_MAX_BYTES; return y = this.toString("hex", 0, F).replace(/(.{2})/g, "$1 ").trim(), this.length > F && (y += " ... "), "<Buffer " + y + ">"; }, Q && (o.prototype[Q] = o.prototype.inspect), o.prototype.compare = function(y, F, l, u, z) { if (OA(y, Uint8Array) && (y = o.from(y, y.offset, y.byteLength)), !o.isBuffer(y)) throw new TypeError( 'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof y ); if (F === void 0 && (F = 0), l === void 0 && (l = y ? y.length : 0), u === void 0 && (u = 0), z === void 0 && (z = this.length), F < 0 || l > y.length || u < 0 || z > this.length) throw new RangeError("out of range index"); if (u >= z && F >= l) return 0; if (u >= z) return -1; if (F >= l) return 1; if (F >>>= 0, l >>>= 0, u >>>= 0, z >>>= 0, this === y) return 0; let DA = z - u, TA = l - F; const NI = Math.min(DA, TA), sI = this.slice(u, z), cI = y.slice(F, l); for (let gI = 0; gI < NI; ++gI) if (sI[gI] !== cI[gI]) { DA = sI[gI], TA = cI[gI]; break; } return DA < TA ? -1 : TA < DA ? 1 : 0; }; function b(S, y, F, l, u) { if (S.length === 0) return -1; if (typeof F == "string" ? (l = F, F = 0) : F > 2147483647 ? F = 2147483647 : F < -2147483648 && (F = -2147483648), F = +F, Yg(F) && (F = u ? 0 : S.length - 1), F < 0 && (F = S.length + F), F >= S.length) { if (u) return -1; F = S.length - 1; } else if (F < 0) if (u) F = 0; else return -1; if (typeof y == "string" && (y = o.from(y, l)), o.isBuffer(y)) return y.length === 0 ? -1 : v(S, y, F, l, u); if (typeof y == "number") return y = y & 255, typeof Uint8Array.prototype.indexOf == "function" ? u ? Uint8Array.prototype.indexOf.call(S, y, F) : Uint8Array.prototype.lastIndexOf.call(S, y, F) : v(S, [y], F, l, u); throw new TypeError("val must be string, number or Buffer"); } function v(S, y, F, l, u) { let z = 1, DA = S.length, TA = y.length; if (l !== void 0 && (l = String(l).toLowerCase(), l === "ucs2" || l === "ucs-2" || l === "utf16le" || l === "utf-16le")) { if (S.length < 2 || y.length < 2) return -1; z = 2, DA /= 2, TA /= 2, F /= 2; } function NI(cI, gI) { return z === 1 ? cI[gI] : cI.readUInt16BE(gI * z); } let sI; if (u) { let cI = -1; for (sI = F; sI < DA; sI++) if (NI(S, sI) === NI(y, cI === -1 ? 0 : sI - cI)) { if (cI === -1 && (cI = sI), sI - cI + 1 === TA) return cI * z; } else cI !== -1 && (sI -= sI - cI), cI = -1; } else for (F + TA > DA && (F = DA - TA), sI = F; sI >= 0; sI--) { let cI = !0; for (let gI = 0; gI < TA; gI++) if (NI(S, sI + gI) !== NI(y, gI)) { cI = !1; break; } if (cI) return sI; } return -1; } o.prototype.includes = function(y, F, l) { return this.indexOf(y, F, l) !== -1; }, o.prototype.indexOf = function(y, F, l) { return b(this, y, F, l, !0); }, o.prototype.lastIndexOf = function(y, F, l) { return b(this, y, F, l, !1); }; function V(S, y, F, l) { F = Number(F) || 0; const u = S.length - F; l ? (l = Number(l), l > u && (l = u)) : l = u; const z = y.length; l > z / 2 && (l = z / 2); let DA; for (DA = 0; DA < l; ++DA) { const TA = parseInt(y.substr(DA * 2, 2), 16); if (Yg(TA)) return DA; S[F + DA] = TA; } return DA; } function AA(S, y, F, l) { return Gg(wI(y, S.length - F), S, F, l); } function aA(S, y, F, l) { return Gg(uI(y), S, F, l); } function kA(S, y, F, l) { return Gg(VI(y), S, F, l); } function sA(S, y, F, l) { return Gg(RI(y, S.length - F), S, F, l); } o.prototype.write = function(y, F, l, u) { if (F === void 0) u = "utf8", l = this.length, F = 0; else if (l === void 0 && typeof F == "string") u = F, l = this.length, F = 0; else if (isFinite(F)) F = F >>> 0, isFinite(l) ? (l = l >>> 0, u === void 0 && (u = "utf8")) : (u = l, l = void 0); else throw new Error( "Buffer.write(string, encoding, offset[, length]) is no longer supported" ); const z = this.length - F; if ((l === void 0 || l > z) && (l = z), y.length > 0 && (l < 0 || F < 0) || F > this.length) throw new RangeError("Attempt to write outside buffer bounds"); u || (u = "utf8"); let DA = !1; for (; ; ) switch (u) { case "hex": return V(this, y, F, l); case "utf8": case "utf-8": return AA(this, y, F, l); case "ascii": case "latin1": case "binary": return aA(this, y, F, l); case "base64": return kA(this, y, F, l); case "ucs2": case "ucs-2": case "utf16le": case "utf-16le": return sA(this, y, F, l); default: if (DA) throw new TypeError("Unknown encoding: " + u); u = ("" + u).toLowerCase(), DA = !0; } }, o.prototype.toJSON = function() { return { type: "Buffer", data: Array.prototype.slice.call(this._arr || this, 0) }; }; function QA(S, y, F) { return y === 0 && F === S.length ? A.fromByteArray(S) : A.fromByteArray(S.slice(y, F)); } function gA(S, y, F) { F = Math.min(S.length, F); const l = []; let u = y; for (; u < F; ) { const z = S[u]; let DA = null, TA = z > 239 ? 4 : z > 223 ? 3 : z > 191 ? 2 : 1; if (u + TA <= F) { let NI, sI, cI, gI; switch (TA) { case 1: z < 128 && (DA = z); break; case 2: NI = S[u + 1], (NI & 192) === 128 && (gI = (z & 31) << 6 | NI & 63, gI > 127 && (DA = gI)); break; case 3: NI = S[u + 1], sI = S[u + 2], (NI & 192) === 128 && (sI & 192) === 128 && (gI = (z & 15) << 12 | (NI & 63) << 6 | sI & 63, gI > 2047 && (gI < 55296 || gI > 57343) && (DA = gI)); break; case 4: NI = S[u + 1], sI = S[u + 2], cI = S[u + 3], (NI & 192) === 128 && (sI & 192) === 128 && (cI & 192) === 128 && (gI = (z & 15) << 18 | (NI & 63) << 12 | (sI & 63) << 6 | cI & 63, gI > 65535 && gI < 1114112 && (DA = gI)); } } DA === null ? (DA = 65533, TA = 1) : DA > 65535 && (DA -= 65536, l.push(DA >>> 10 & 1023 | 55296), DA = 56320 | DA & 1023), l.push(DA), u += TA; } return Z(l); } const EA = 4096; function Z(S) { const y = S.length; if (y <= EA) return String.fromCharCode.apply(String, S); let F = "", l = 0; for (; l < y; ) F += String.fromCharCode.apply( String, S.slice(l, l += EA) ); return F; } function iA(S, y, F) { let l = ""; F = Math.min(S.length, F); for (let u = y; u < F; ++u) l += String.fromCharCode(S[u] & 127); return l; } function X(S, y, F) { let l = ""; F = Math.min(S.length, F); for (let u = y; u < F; ++u) l += String.fromCharCode(S[u]); return l; } function P(S, y, F) { const l = S.length; (!y || y < 0) && (y = 0), (!F || F < 0 || F > l) && (F = l); let u = ""; for (let z = y; z < F; ++z) u += bQ[S[z]]; return u; } function hA(S, y, F) { const l = S.slice(y, F); let u = ""; for (let z = 0; z < l.length - 1; z += 2) u += String.fromCharCode(l[z] + l[z + 1] * 256); return u; } o.prototype.slice = function(y, F) { const l = this.length; y = ~~y, F = F === void 0 ? l : ~~F, y < 0 ? (y += l, y < 0 && (y = 0)) : y > l && (y = l), F < 0 ? (F += l, F < 0 && (F = 0)) : F > l && (F = l), F < y && (F = y); const u = this.subarray(y, F); return Object.setPrototypeOf(u, o.prototype), u; }; function GA(S, y, F) { if (S % 1 !== 0 || S < 0) throw new RangeError("offset is not uint"); if (S + y > F) throw new RangeError("Trying to access beyond buffer length"); } o.prototype.readUintLE = o.prototype.readUIntLE = function(y, F, l) { y = y >>> 0, F = F >>> 0, l || GA(y, F, this.length); let u = this[y], z = 1, DA = 0; for (; ++DA < F && (z *= 256); ) u += this[y + DA] * z; return u; }, o.prototype.readUintBE = o.prototype.readUIntBE = function(y, F, l) { y = y >>> 0, F = F >>> 0, l || GA(y, F, this.length); let u = this[y + --F], z = 1; for (; F > 0 && (z *= 256); ) u += this[y + --F] * z; return u; }, o.prototype.readUint8 = o.prototype.readUInt8 = function(y, F) { return y = y >>> 0, F || GA(y, 1, this.length), this[y]; }, o.prototype.readUint16LE = o.prototype.readUInt16LE = function(y, F) { return y = y >>> 0, F || GA(y, 2, this.length), this[y] | this[y + 1] << 8; }, o.prototype.readUint16BE = o.prototype.readUInt16BE = function(y, F) { return y = y >>> 0, F || GA(y, 2, this.length), this[y] << 8 | this[y + 1]; }, o.prototype.readUint32LE = o.prototype.readUInt32LE = function(y, F) { return y = y >>> 0, F || GA(y, 4, this.length), (this[y] | this[y + 1] << 8 | this[y + 2] << 16) + this[y + 3] * 16777216; }, o.prototype.readUint32BE = o.prototype.readUInt32BE = function(y, F) { return y = y >>> 0, F || GA(y, 4, this.length), this[y] * 16777216 + (this[y + 1] << 16 | this[y + 2] << 8 | this[y + 3]); }, o.prototype.readBigUInt64LE = XI(function(y) { y = y >>> 0, ZA(y, "offset"); const F = this[y], l = this[y + 7]; (F === void 0 || l === void 0) && DI(y, this.length - 8); const u = F + this[++y] * 2 ** 8 + this[++y] * 2 ** 16 + this[++y] * 2 ** 24, z = this[++y] + this[++y] * 2 ** 8 + this[++y] * 2 ** 16 + l * 2 ** 24; return BigInt(u) + (BigInt(z) << BigInt(32)); }), o.prototype.readBigUInt64BE = XI(function(y) { y = y >>> 0, ZA(y, "offset"); const F = this[y], l = this[y + 7]; (F === void 0 || l === void 0) && DI(y, this.length - 8); const u = F * 2 ** 24 + this[++y] * 2 ** 16 + this[++y] * 2 ** 8 + this[++y], z = this[++y] * 2 ** 24 + this[++y] * 2 ** 16 + this[++y] * 2 ** 8 + l; return (BigInt(u) << BigInt(32)) + BigInt(z); }), o.prototype.readIntLE = function(y, F, l) { y = y >>> 0, F = F >>> 0, l || GA(y, F, this.length); let u = this[y], z = 1, DA = 0; for (; ++DA < F && (z *= 256); ) u += this[y + DA] * z; return z *= 128, u >= z && (u -= Math.pow(2, 8 * F)), u; }, o.prototype.readIntBE = function(y, F, l) { y = y >>> 0, F = F >>> 0, l || GA(y, F, this.length); let u = F, z = 1, DA = this[y + --u]; for (; u > 0 && (z *= 256); ) DA += this[y + --u] * z; return z *= 128, DA >= z && (DA -= Math.pow(2, 8 * F)), DA; }, o.prototype.readInt8 = function(y, F) { return y = y >>> 0, F || GA(y, 1, this.length), this[y] & 128 ? (255 - this[y] + 1) * -1 : this[y]; }, o.prototype.readInt16LE = function(y, F) { y = y >>> 0, F || GA(y, 2, this.length); const l = this[y] | this[y + 1] << 8; return l & 32768 ? l | 4294901760 : l; }, o.prototype.readInt16BE = function(y, F) { y = y >>> 0, F || GA(y, 2, this.length); const l = this[y + 1] | this[y] << 8; return l & 32768 ? l | 4294901760 : l; }, o.prototype.readInt32LE = function(y, F) { return y = y >>> 0, F || GA(y, 4, this.length), this[y] | this[y + 1] << 8 | this[y + 2] << 16 | this[y + 3] << 24; }, o.prototype.readInt32BE = function(y, F) { return y = y >>> 0, F || GA(y, 4, this.length), this[y] << 24 | this[y + 1] << 16 | this[y + 2] << 8 | this[y + 3]; }, o.prototype.readBigInt64LE = XI(function(y) { y = y >>> 0, ZA(y, "offset"); const F = this[y], l = this[y + 7]; (F === void 0 || l === void 0) && DI(y, this.length - 8); const u = this[y + 4] + this[y + 5] * 2 ** 8 + this[y + 6] * 2 ** 16 + (l << 24); return (BigInt(u) << BigInt(32)) + BigInt(F + this[++y] * 2 ** 8 + this[++y] * 2 ** 16 + this[++y] * 2 ** 24); }), o.prototype.readBigInt64BE = XI(function(y) { y = y >>> 0, ZA(y, "offset"); const F = this[y], l = this[y + 7]; (F === void 0 || l === void 0) && DI(y, this.length - 8); const u = (F << 24) + // Overflow this[++y] * 2 ** 16 + this[++y] * 2 ** 8 + this[++y]; return (BigInt(u) << BigInt(32)) + BigInt(this[++y] * 2 ** 24 + this[++y] * 2 ** 16 + this[++y] * 2 ** 8 + l); }), o.prototype.readFloatLE = function(y, F) { return y = y >>> 0, F || GA(y, 4, this.length), I.read(this, y, !0, 23, 4); }, o.prototype.readFloatBE = function(y, F) { return y = y >>> 0, F || GA(y, 4, this.length), I.read(this, y, !1, 23, 4); }, o.prototype.readDoubleLE = function(y, F) { return y = y >>> 0, F || GA(y, 8, this.length), I.read(this, y, !0, 52, 8); }, o.prototype.readDoubleBE = function(y, F) { return y = y >>> 0, F || GA(y, 8, this.length), I.read(this, y, !1, 52, 8); }; function rA(S, y, F, l, u, z) { if (!o.isBuffer(S)) throw new TypeError('"buffer" argument must be a Buffer instance'); if (y > u || y < z) throw new RangeError('"value" argument is out of bounds'); if (F + l > S.length) throw new RangeError("Index out of range"); } o.prototype.writeUintLE = o.prototype.writeUIntLE = function(y, F, l, u) { if (y = +y, F = F >>> 0, l = l >>> 0, !u) { const TA = Math.pow(2, 8 * l) - 1; rA(this, y, F, l, TA, 0); } let z = 1, DA = 0; for (this[F] = y & 255; ++DA < l && (z *= 256); ) this[F + DA] = y / z & 255; return F + l; }, o.prototype.writeUintBE = o.prototype.writeUIntBE = function(y, F, l, u) { if (y = +y, F = F >>> 0, l = l >>> 0, !u) { const TA = Math.pow(2, 8 * l) - 1; rA(this, y, F, l, TA, 0); } let z = l - 1, DA = 1; for (this[F + z] = y & 255; --z >= 0 && (DA *= 256); ) this[F + z] = y / DA & 255; return F + l; }, o.prototype.writeUint8 = o.prototype.writeUInt8 = function(y, F, l) { return y = +y, F = F >>> 0, l || rA(this, y, F, 1, 255, 0), this[F] = y & 255, F + 1; }, o.prototype.writeUint16LE = o.prototype.writeUInt16LE = function(y, F, l) { return y = +y, F = F >>> 0, l || rA(this, y, F, 2, 65535, 0), this[F] = y & 255, this[F + 1] = y >>> 8, F + 2; }, o.prototype.writeUint16BE = o.prototype.writeUInt16BE = function(y, F, l) { return y = +y, F = F >>> 0, l || rA(this, y, F, 2, 65535, 0), this[F] = y >>> 8, this[F + 1] = y & 255, F + 2; }, o.prototype.writeUint32LE = o.prototype.writeUInt32LE = function(y, F, l) { return y = +y, F = F >>> 0, l || rA(this, y, F, 4, 4294967295, 0), this[F + 3] = y >>> 24, this[F + 2] = y >>> 16, this[F + 1] = y >>> 8, this[F] = y & 255, F + 4; }, o.prototype.writeUint32BE = o.prototype.writeUInt32BE = function(y, F, l) { return y = +y, F = F >>> 0, l || rA(this, y, F, 4, 4294967295, 0), this[F] = y >>> 24, this[F + 1] = y >>> 16, this[F + 2] = y >>> 8, this[F + 3] = y & 255, F + 4; }; function zA(S, y, F, l, u) { QI(y, l, u, S, F, 7); let z = Number(y & BigInt(4294967295)); S[F++] = z, z = z >> 8, S[F++] = z, z = z >> 8, S[F++] = z, z = z >> 8, S[F++] = z; let DA = Number(y >> BigInt(32) & BigInt(4294967295)); return S[F++] = DA, DA = DA >> 8, S[F++] = DA, DA = DA >> 8, S[F++] = DA, DA = DA >> 8, S[F++] = DA, F; } function AI(S, y, F, l, u) { QI(y, l, u, S, F, 7); let z = Number(y & BigInt(4294967295)); S[F + 7] = z, z = z >> 8, S[F + 6] = z,