PageSourceSearch

https://eth-message-signer.vercel.app/assets/index-bf3c81e8.js

js eth-message-signer.vercel.app collected 2026-10-03 06:54:31 UTC 2,816,633 bytes, 57,417 lines download raw bytes

vendor: 38,023 bytes, lines 1-1180
1var _a4;
2function _mergeNamespaces(n2, m2) {
3  for (var i = 0; i < m2.length; i++) {
4    const e2 = m2[i];
5    if (typeof e2 !== "string" && !Array.isArray(e2)) {
6      for (const k2 in e2) {
7        if (k2 !== "default" && !(k2 in n2)) {
8          const d2 = Object.getOwnPropertyDescriptor(e2, k2);
9          if (d2) {
10            Object.defineProperty(n2, k2, d2.get ? d2 : {
11              enumerable: true,
12              get: () => e2[k2]
13            });
14          }
15        }
16      }
17    }
18  }
19  return Object.freeze(Object.defineProperty(n2, Symbol.toStringTag, { value: "Module" }));
20}
21(function polyfill() {
22  const relList = document.createElement("link").relList;
23  if (relList && relList.supports && relList.supports("modulepreload")) {
24    return;
25  }
26  for (const link of document.querySelectorAll('link[rel="modulepreload"]')) {
27    processPreload(link);
28  }
29  new MutationObserver((mutations) => {
30    for (const mutation of mutations) {
31      if (mutation.type !== "childList") {
32        continue;
33      }
34      for (const node2 of mutation.addedNodes) {
35        if (node2.tagName === "LINK" && node2.rel === "modulepreload")
36          processPreload(node2);
37      }
38    }
39  }).observe(document, { childList: true, subtree: true });
40  function getFetchOpts(script) {
41    const fetchOpts = {};
42    if (script.integrity)
43      fetchOpts.integrity = script.integrity;
44    if (script.referrerpolicy)
45      fetchOpts.referrerPolicy = script.referrerpolicy;
46    if (script.crossorigin === "use-credentials")
47      fetchOpts.credentials = "include";
48    else if (script.crossorigin === "anonymous")
49      fetchOpts.credentials = "omit";
50    else
51      fetchOpts.credentials = "same-origin";
52    return fetchOpts;
53  }
54  function processPreload(link) {
55    if (link.ep)
56      return;
57    link.ep = true;
58    const fetchOpts = getFetchOpts(link);
59    fetch(link.href, fetchOpts);
60  }
61})();
62var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
63function getDefaultExportFromCjs(x2) {
64  return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
65}
66var jsxRuntimeExports = {};
67var jsxRuntime = {
68  get exports() {
69    return jsxRuntimeExports;
70  },
71  set exports(v2) {
72    jsxRuntimeExports = v2;
73  }
74};
75var reactJsxRuntime_production_min = {};
76var reactExports = {};
77var react = {
78  get exports() {
79    return reactExports;
80  },
81  set exports(v2) {
82    reactExports = v2;
83  }
84};
85var react_production_min = {};
86/**
87 * @license React
88 * react.production.min.js
89 *
90 * Copyright (c) Facebook, Inc. and its affiliates.
91 *
92 * This source code is licensed under the MIT license found in the
93 * LICENSE file in the root directory of this source tree.
94 */
95var l$2 = Symbol.for("react.element"), n$2 = Symbol.for("react.portal"), p$3 = Symbol.for("react.fragment"), q$2 = Symbol.for("react.strict_mode"), r$2 = Symbol.for("react.profiler"), t$2 = Symbol.for("react.provider"), u = Symbol.for("react.context"), v$2 = Symbol.for("react.forward_ref"), w$1 = Symbol.for("react.suspense"), x$1 = Symbol.for("react.memo"), y$1 = Symbol.for("react.lazy"), z$2 = Symbol.iterator;
96function A$2(a) {
97  if (null === a || "object" !== typeof a)
98    return null;
99  a = z$2 && a[z$2] || a["@@iterator"];
100  return "function" === typeof a ? a : null;
101}
102var B$1 = { isMounted: function() {
103  return false;
104}, enqueueForceUpdate: function() {
105}, enqueueReplaceState: function() {
106}, enqueueSetState: function() {
107} }, C$1 = Object.assign, D$1 = {};
108function E$1(a, b2, e2) {
109  this.props = a;
110  this.context = b2;
111  this.refs = D$1;
112  this.updater = e2 || B$1;
113}
114E$1.prototype.isReactComponent = {};
115E$1.prototype.setState = function(a, b2) {
116  if ("object" !== typeof a && "function" !== typeof a && null != a)
117    throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
118  this.updater.enqueueSetState(this, a, b2, "setState");
119};
120E$1.prototype.forceUpdate = function(a) {
121  this.updater.enqueueForceUpdate(this, a, "forceUpdate");
122};
123function F() {
124}
125F.prototype = E$1.prototype;
126function G$1(a, b2, e2) {
127  this.props = a;
128  this.context = b2;
129  this.refs = D$1;
130  this.updater = e2 || B$1;
131}
132var H$1 = G$1.prototype = new F();
133H$1.constructor = G$1;
134C$1(H$1, E$1.prototype);
135H$1.isPureReactComponent = true;
136var I$1 = Array.isArray, J = Object.prototype.hasOwnProperty, K$1 = { current: null }, L$1 = { key: true, ref: true, __self: true, __source: true };
137function M$1(a, b2, e2) {
138  var d2, c2 = {}, k2 = null, h2 = null;
139  if (null != b2)
140    for (d2 in void 0 !== b2.ref && (h2 = b2.ref), void 0 !== b2.key && (k2 = "" + b2.key), b2)
141      J.call(b2, d2) && !L$1.hasOwnProperty(d2) && (c2[d2] = b2[d2]);
142  var g2 = arguments.length - 2;
143  if (1 === g2)
144    c2.children = e2;
145  else if (1 < g2) {
146    for (var f2 = Array(g2), m2 = 0; m2 < g2; m2++)
147      f2[m2] = arguments[m2 + 2];
148    c2.children = f2;
149  }
150  if (a && a.defaultProps)
151    for (d2 in g2 = a.defaultProps, g2)
152      void 0 === c2[d2] && (c2[d2] = g2[d2]);
153  return { $$typeof: l$2, type: a, key: k2, ref: h2, props: c2, _owner: K$1.current };
154}
155function N$1(a, b2) {
156  return { $$typeof: l$2, type: a.type, key: b2, ref: a.ref, props: a.props, _owner: a._owner };
157}
158function O$1(a) {
159  return "object" === typeof a && null !== a && a.$$typeof === l$2;
160}
161function escape$3(a) {
162  var b2 = { "=": "=0", ":": "=2" };
163  return "$" + a.replace(/[=:]/g, function(a2) {
164    return b2[a2];
165  });
166}
167var P$1 = /\/+/g;
168function Q$1(a, b2) {
169  return "object" === typeof a && null !== a && null != a.key ? escape$3("" + a.key) : b2.toString(36);
170}
171function R$1(a, b2, e2, d2, c2) {
172  var k2 = typeof a;
173  if ("undefined" === k2 || "boolean" === k2)
174    a = null;
175  var h2 = false;
176  if (null === a)
177    h2 = true;
178  else
179    switch (k2) {
180      case "string":
181      case "number":
182        h2 = true;
183        break;
184      case "object":
185        switch (a.$$typeof) {
186          case l$2:
187          case n$2:
188            h2 = true;
189        }
190    }
191  if (h2)
192    return h2 = a, c2 = c2(h2), a = "" === d2 ? "." + Q$1(h2, 0) : d2, I$1(c2) ? (e2 = "", null != a && (e2 = a.replace(P$1, "$&/") + "/"), R$1(c2, b2, e2, "", function(a2) {
193      return a2;
194    })) : null != c2 && (O$1(c2) && (c2 = N$1(c2, e2 + (!c2.key || h2 && h2.key === c2.key ? "" : ("" + c2.key).replace(P$1, "$&/") + "/") + a)), b2.push(c2)), 1;
195  h2 = 0;
196  d2 = "" === d2 ? "." : d2 + ":";
197  if (I$1(a))
198    for (var g2 = 0; g2 < a.length; g2++) {
199      k2 = a[g2];
200      var f2 = d2 + Q$1(k2, g2);
201      h2 += R$1(k2, b2, e2, f2, c2);
202    }
203  else if (f2 = A$2(a), "function" === typeof f2)
204    for (a = f2.call(a), g2 = 0; !(k2 = a.next()).done; )
205      k2 = k2.value, f2 = d2 + Q$1(k2, g2++), h2 += R$1(k2, b2, e2, f2, c2);
206  else if ("object" === k2)
207    throw b2 = String(a), Error("Objects are not valid as a React child (found: " + ("[object Object]" === b2 ? "object with keys {" + Object.keys(a).join(", ") + "}" : b2) + "). If you meant to render a collection of children, use an array instead.");
208  return h2;
209}
210function S$1(a, b2, e2) {
211  if (null == a)
212    return a;
213  var d2 = [], c2 = 0;
214  R$1(a, d2, "", "", function(a2) {
215    return b2.call(e2, a2, c2++);
216  });
217  return d2;
218}
219function T$1(a) {
220  if (-1 === a._status) {
221    var b2 = a._result;
222    b2 = b2();
223    b2.then(function(b3) {
224      if (0 === a._status || -1 === a._status)
225        a._status = 1, a._result = b3;
226    }, function(b3) {
227      if (0 === a._status || -1 === a._status)
228        a._status = 2, a._result = b3;
229    });
230    -1 === a._status && (a._status = 0, a._result = b2);
231  }
232  if (1 === a._status)
233    return a._result.default;
234  throw a._result;
235}
236var U$1 = { current: null }, V$1 = { transition: null }, W$1 = { ReactCurrentDispatcher: U$1, ReactCurrentBatchConfig: V$1, ReactCurrentOwner: K$1 };
237react_production_min.Children = { map: S$1, forEach: function(a, b2, e2) {
238  S$1(a, function() {
239    b2.apply(this, arguments);
240  }, e2);
241}, count: function(a) {
242  var b2 = 0;
243  S$1(a, function() {
244    b2++;
245  });
246  return b2;
247}, toArray: function(a) {
248  return S$1(a, function(a2) {
249    return a2;
250  }) || [];
251}, only: function(a) {
252  if (!O$1(a))
253    throw Error("React.Children.only expected to receive a single React element child.");
254  return a;
255} };
256react_production_min.Component = E$1;
257react_production_min.Fragment = p$3;
258react_production_min.Profiler = r$2;
259react_production_min.PureComponent = G$1;
260react_production_min.StrictMode = q$2;
261react_production_min.Suspense = w$1;
262react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = W$1;
263react_production_min.cloneElement = function(a, b2, e2) {
264  if (null === a || void 0 === a)
265    throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + a + ".");
266  var d2 = C$1({}, a.props), c2 = a.key, k2 = a.ref, h2 = a._owner;
267  if (null != b2) {
268    void 0 !== b2.ref && (k2 = b2.ref, h2 = K$1.current);
269    void 0 !== b2.key && (c2 = "" + b2.key);
270    if (a.type && a.type.defaultProps)
271      var g2 = a.type.defaultProps;
272    for (f2 in b2)
273      J.call(b2, f2) && !L$1.hasOwnProperty(f2) && (d2[f2] = void 0 === b2[f2] && void 0 !== g2 ? g2[f2] : b2[f2]);
274  }
275  var f2 = arguments.length - 2;
276  if (1 === f2)
277    d2.children = e2;
278  else if (1 < f2) {
279    g2 = Array(f2);
280    for (var m2 = 0; m2 < f2; m2++)
281      g2[m2] = arguments[m2 + 2];
282    d2.children = g2;
283  }
284  return { $$typeof: l$2, type: a.type, key: c2, ref: k2, props: d2, _owner: h2 };
285};
286react_production_min.createContext = function(a) {
287  a = { $$typeof: u, _currentValue: a, _currentValue2: a, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null };
288  a.Provider = { $$typeof: t$2, _context: a };
289  return a.Consumer = a;
290};
291react_production_min.createElement = M$1;
292react_production_min.createFactory = function(a) {
293  var b2 = M$1.bind(null, a);
294  b2.type = a;
295  return b2;
296};
297react_production_min.createRef = function() {
298  return { current: null };
299};
300react_production_min.forwardRef = function(a) {
301  return { $$typeof: v$2, render: a };
302};
303react_production_min.isValidElement = O$1;
304react_production_min.lazy = function(a) {
305  return { $$typeof: y$1, _payload: { _status: -1, _result: a }, _init: T$1 };
306};
307react_production_min.memo = function(a, b2) {
308  return { $$typeof: x$1, type: a, compare: void 0 === b2 ? null : b2 };
309};
310react_production_min.startTransition = function(a) {
311  var b2 = V$1.transition;
312  V$1.transition = {};
313  try {
314    a();
315  } finally {
316    V$1.transition = b2;
317  }
318};
319react_production_min.unstable_act = function() {
320  throw Error("act(...) is not supported in production builds of React.");
321};
322react_production_min.useCallback = function(a, b2) {
323  return U$1.current.useCallback(a, b2);
324};
325react_production_min.useContext = function(a) {
326  return U$1.current.useContext(a);
327};
328react_production_min.useDebugValue = function() {
329};
330react_production_min.useDeferredValue = function(a) {
331  return U$1.current.useDeferredValue(a);
332};
333react_production_min.useEffect = function(a, b2) {
334  return U$1.current.useEffect(a, b2);
335};
336react_production_min.useId = function() {
337  return U$1.current.useId();
338};
339react_production_min.useImperativeHandle = function(a, b2, e2) {
340  return U$1.current.useImperativeHandle(a, b2, e2);
341};
342react_production_min.useInsertionEffect = function(a, b2) {
343  return U$1.current.useInsertionEffect(a, b2);
344};
345react_production_min.useLayoutEffect = function(a, b2) {
346  return U$1.current.useLayoutEffect(a, b2);
347};
348react_production_min.useMemo = function(a, b2) {
349  return U$1.current.useMemo(a, b2);
350};
351react_production_min.useReducer = function(a, b2, e2) {
352  return U$1.current.useReducer(a, b2, e2);
353};
354react_production_min.useRef = function(a) {
355  return U$1.current.useRef(a);
356};
357react_production_min.useState = function(a) {
358  return U$1.current.useState(a);
359};
360react_production_min.useSyncExternalStore = function(a, b2, e2) {
361  return U$1.current.useSyncExternalStore(a, b2, e2);
362};
363react_production_min.useTransition = function() {
364  return U$1.current.useTransition();
365};
366react_production_min.version = "18.2.0";
367(function(module) {
368  {
369    module.exports = react_production_min;
370  }
371})(react);
372const React$1 = /* @__PURE__ */ getDefaultExportFromCjs(reactExports);
373const React$2 = /* @__PURE__ */ _mergeNamespaces({
374  __proto__: null,
375  default: React$1
376}, [reactExports]);
377/**
378 * @license React
379 * react-jsx-runtime.production.min.js
380 *
381 * Copyright (c) Facebook, Inc. and its affiliates.
382 *
383 * This source code is licensed under the MIT license found in the
384 * LICENSE file in the root directory of this source tree.
385 */
386var f$1 = reactExports, k$1 = Symbol.for("react.element"), l$1 = Symbol.for("react.fragment"), m$2 = Object.prototype.hasOwnProperty, n$1 = f$1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p$2 = { key: true, ref: true, __self: true, __source: true };
387function q$1(c2, a, g2) {
388  var b2, d2 = {}, e2 = null, h2 = null;
389  void 0 !== g2 && (e2 = "" + g2);
390  void 0 !== a.key && (e2 = "" + a.key);
391  void 0 !== a.ref && (h2 = a.ref);
392  for (b2 in a)
393    m$2.call(a, b2) && !p$2.hasOwnProperty(b2) && (d2[b2] = a[b2]);
394  if (c2 && c2.defaultProps)
395    for (b2 in a = c2.defaultProps, a)
396      void 0 === d2[b2] && (d2[b2] = a[b2]);
397  return { $$typeof: k$1, type: c2, key: e2, ref: h2, props: d2, _owner: n$1.current };
398}
399reactJsxRuntime_production_min.Fragment = l$1;
400reactJsxRuntime_production_min.jsx = q$1;
401reactJsxRuntime_production_min.jsxs = q$1;
402(function(module) {
403  {
404    module.exports = reactJsxRuntime_production_min;
405  }
406})(jsxRuntime);
407const Fragment = jsxRuntimeExports.Fragment;
408const jsx = jsxRuntimeExports.jsx;
409const jsxs = jsxRuntimeExports.jsxs;
410const global$1 = typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {};
411function sheetForTag(tag) {
412  if (tag.sheet) {
413    return tag.sheet;
414  }
415  for (var i = 0; i < document.styleSheets.length; i++) {
416    if (document.styleSheets[i].ownerNode === tag) {
417      return document.styleSheets[i];
418    }
419  }
420}
421function createStyleElement(options) {
422  var tag = document.createElement("style");
423  tag.setAttribute("data-emotion", options.key);
424  if (options.nonce !== void 0) {
425    tag.setAttribute("nonce", options.nonce);
426  }
427  tag.appendChild(document.createTextNode(""));
428  tag.setAttribute("data-s", "");
429  return tag;
430}
431var StyleSheet = /* @__PURE__ */ function() {
432  function StyleSheet2(options) {
433    var _this = this;
434    this._insertTag = function(tag) {
435      var before;
436      if (_this.tags.length === 0) {
437        if (_this.insertionPoint) {
438          before = _this.insertionPoint.nextSibling;
439        } else if (_this.prepend) {
440          before = _this.container.firstChild;
441        } else {
442          before = _this.before;
443        }
444      } else {
445        before = _this.tags[_this.tags.length - 1].nextSibling;
446      }
447      _this.container.insertBefore(tag, before);
448      _this.tags.push(tag);
449    };
450    this.isSpeedy = options.speedy === void 0 ? true : options.speedy;
451    this.tags = [];
452    this.ctr = 0;
453    this.nonce = options.nonce;
454    this.key = options.key;
455    this.container = options.container;
456    this.prepend = options.prepend;
457    this.insertionPoint = options.insertionPoint;
458    this.before = null;
459  }
460  var _proto = StyleSheet2.prototype;
461  _proto.hydrate = function hydrate(nodes) {
462    nodes.forEach(this._insertTag);
463  };
464  _proto.insert = function insert(rule) {
465    if (this.ctr % (this.isSpeedy ? 65e3 : 1) === 0) {
466      this._insertTag(createStyleElement(this));
467    }
468    var tag = this.tags[this.tags.length - 1];
469    if (this.isSpeedy) {
470      var sheet = sheetForTag(tag);
471      try {
472        sheet.insertRule(rule, sheet.cssRules.length);
473      } catch (e2) {
474      }
475    } else {
476      tag.appendChild(document.createTextNode(rule));
477    }
478    this.ctr++;
479  };
480  _proto.flush = function flush() {
481    this.tags.forEach(function(tag) {
482      return tag.parentNode && tag.parentNode.removeChild(tag);
483    });
484    this.tags = [];
485    this.ctr = 0;
486  };
487  return StyleSheet2;
488}();
489var MS = "-ms-";
490var MOZ = "-moz-";
491var WEBKIT = "-webkit-";
492var COMMENT = "comm";
493var RULESET = "rule";
494var DECLARATION = "decl";
495var IMPORT = "@import";
496var KEYFRAMES = "@keyframes";
497var abs = Math.abs;
498var from = String.fromCharCode;
499var assign = Object.assign;
500function hash$1(value, length2) {
501  return charat(value, 0) ^ 45 ? (((length2 << 2 ^ charat(value, 0)) << 2 ^ charat(value, 1)) << 2 ^ charat(value, 2)) << 2 ^ charat(value, 3) : 0;
502}
503function trim(value) {
504  return value.trim();
505}
506function match(value, pattern) {
507  return (value = pattern.exec(value)) ? value[0] : value;
508}
509function replace(value, pattern, replacement) {
510  return value.replace(pattern, replacement);
511}
512function indexof(value, search) {
513  return value.indexOf(search);
514}
515function charat(value, index) {
516  return value.charCodeAt(index) | 0;
517}
518function substr(value, begin, end) {
519  return value.slice(begin, end);
520}
521function strlen(value) {
522  return value.length;
523}
524function sizeof(value) {
525  return value.length;
526}
527function append(value, array) {
528  return array.push(value), value;
529}
530function combine(array, callback) {
531  return array.map(callback).join("");
532}
533var line = 1;
534var column = 1;
535var length = 0;
536var position$1 = 0;
537var character = 0;
538var characters = "";
539function node(value, root2, parent, type, props, children, length2) {
540  return { value, root: root2, parent, type, props, children, line, column, length: length2, return: "" };
541}
542function copy(root2, props) {
543  return assign(node("", null, null, "", null, null, 0), root2, { length: -root2.length }, props);
544}
545function char() {
546  return character;
547}
548function prev() {
549  character = position$1 > 0 ? charat(characters, --position$1) : 0;
550  if (column--, character === 10)
551    column = 1, line--;
552  return character;
553}
554function next() {
555  character = position$1 < length ? charat(characters, position$1++) : 0;
556  if (column++, character === 10)
557    column = 1, line++;
558  return character;
559}
560function peek() {
561  return charat(characters, position$1);
562}
563function caret() {
564  return position$1;
565}
566function slice(begin, end) {
567  return substr(characters, begin, end);
568}
569function token(type) {
570  switch (type) {
571    case 0:
572    case 9:
573    case 10:
574    case 13:
575    case 32:
576      return 5;
577    case 33:
578    case 43:
579    case 44:
580    case 47:
581    case 62:
582    case 64:
583    case 126:
584    case 59:
585    case 123:
586    case 125:
587      return 4;
588    case 58:
589      return 3;
590    case 34:
591    case 39:
592    case 40:
593    case 91:
594      return 2;
595    case 41:
596    case 93:
597      return 1;
598  }
599  return 0;
600}
601function alloc(value) {
602  return line = column = 1, length = strlen(characters = value), position$1 = 0, [];
603}
604function dealloc(value) {
605  return characters = "", value;
606}
607function delimit(type) {
608  return trim(slice(position$1 - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)));
609}
610function whitespace(type) {
611  while (character = peek())
612    if (character < 33)
613      next();
614    else
615      break;
616  return token(type) > 2 || token(character) > 3 ? "" : " ";
617}
618function escaping(index, count) {
619  while (--count && next())
620    if (character < 48 || character > 102 || character > 57 && character < 65 || character > 70 && character < 97)
621      break;
622  return slice(index, caret() + (count < 6 && peek() == 32 && next() == 32));
623}
624function delimiter(type) {
625  while (next())
626    switch (character) {
627      case type:
628        return position$1;
629      case 34:
630      case 39:
631        if (type !== 34 && type !== 39)
632          delimiter(character);
633        break;
634      case 40:
635        if (type === 41)
636          delimiter(type);
637        break;
638      case 92:
639        next();
640        break;
641    }
642  return position$1;
643}
644function commenter(type, index) {
645  while (next())
646    if (type + character === 47 + 10)
647      break;
648    else if (type + character === 42 + 42 && peek() === 47)
649      break;
650  return "/*" + slice(index, position$1 - 1) + "*" + from(type === 47 ? type : next());
651}
652function identifier(index) {
653  while (!token(peek()))
654    next();
655  return slice(index, position$1);
656}
657function compile(value) {
658  return dealloc(parse$1("", null, null, null, [""], value = alloc(value), 0, [0], value));
659}
660function parse$1(value, root2, parent, rule, rules, rulesets, pseudo, points, declarations) {
661  var index = 0;
662  var offset = 0;
663  var length2 = pseudo;
664  var atrule = 0;
665  var property = 0;
666  var previous = 0;
667  var variable = 1;
668  var scanning = 1;
669  var ampersand = 1;
670  var character2 = 0;
671  var type = "";
672  var props = rules;
673  var children = rulesets;
674  var reference = rule;
675  var characters2 = type;
676  while (scanning)
677    switch (previous = character2, character2 = next()) {
678      case 40:
679        if (previous != 108 && charat(characters2, length2 - 1) == 58) {
680          if (indexof(characters2 += replace(delimit(character2), "&", "&\f"), "&\f") != -1)
681            ampersand = -1;
682          break;
683        }
684      case 34:
685      case 39:
686      case 91:
687        characters2 += delimit(character2);
688        break;
689      case 9:
690      case 10:
691      case 13:
692      case 32:
693        characters2 += whitespace(previous);
694        break;
695      case 92:
696        characters2 += escaping(caret() - 1, 7);
697        continue;
698      case 47:
699        switch (peek()) {
700          case 42:
701          case 47:
702            append(comment(commenter(next(), caret()), root2, parent), declarations);
703            break;
704          default:
705            characters2 += "/";
706        }
707        break;
708      case 123 * variable:
709        points[index++] = strlen(characters2) * ampersand;
710      case 125 * variable:
711      case 59:
712      case 0:
713        switch (character2) {
714          case 0:
715          case 125:
716            scanning = 0;
717          case 59 + offset:
718            if (property > 0 && strlen(characters2) - length2)
719              append(property > 32 ? declaration(characters2 + ";", rule, parent, length2 - 1) : declaration(replace(characters2, " ", "") + ";", rule, parent, length2 - 2), declarations);
720            break;
721          case 59:
722            characters2 += ";";
723          default:
724            append(reference = ruleset(characters2, root2, parent, index, offset, rules, points, type, props = [], children = [], length2), rulesets);
725            if (character2 === 123)
726              if (offset === 0)
727                parse$1(characters2, root2, reference, reference, props, rulesets, length2, points, children);
728              else
729                switch (atrule === 99 && charat(characters2, 3) === 110 ? 100 : atrule) {
730                  case 100:
731                  case 109:
732                  case 115:
733                    parse$1(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length2), children), rules, children, length2, points, rule ? props : children);
734                    break;
735                  default:
736                    parse$1(characters2, reference, reference, reference, [""], children, 0, points, children);
737                }
738        }
739        index = offset = property = 0, variable = ampersand = 1, type = characters2 = "", length2 = pseudo;
740        break;
741      case 58:
742        length2 = 1 + strlen(characters2), property = previous;
743      default:
744        if (variable < 1) {
745          if (character2 == 123)
746            --variable;
747          else if (character2 == 125 && variable++ == 0 && prev() == 125)
748            continue;
749        }
750        switch (characters2 += from(character2), character2 * variable) {
751          case 38:
752            ampersand = offset > 0 ? 1 : (characters2 += "\f", -1);
753            break;
754          case 44:
755            points[index++] = (strlen(characters2) - 1) * ampersand, ampersand = 1;
756            break;
757          case 64:
758            if (peek() === 45)
759              characters2 += delimit(next());
760            atrule = peek(), offset = length2 = strlen(type = characters2 += identifier(caret())), character2++;
761            break;
762          case 45:
763            if (previous === 45 && strlen(characters2) == 2)
764              variable = 0;
765        }
766    }
767  return rulesets;
768}
769function ruleset(value, root2, parent, index, offset, rules, points, type, props, children, length2) {
770  var post = offset - 1;
771  var rule = offset === 0 ? rules : [""];
772  var size2 = sizeof(rule);
773  for (var i = 0, j = 0, k2 = 0; i < index; ++i)
774    for (var x2 = 0, y2 = substr(value, post + 1, post = abs(j = points[i])), z2 = value; x2 < size2; ++x2)
775      if (z2 = trim(j > 0 ? rule[x2] + " " + y2 : replace(y2, /&\f/g, rule[x2])))
776        props[k2++] = z2;
777  return node(value, root2, parent, offset === 0 ? RULESET : type, props, children, length2);
778}
779function comment(value, root2, parent) {
780  return node(value, root2, parent, COMMENT, from(char()), substr(value, 2, -2), 0);
781}
782function declaration(value, root2, parent, length2) {
783  return node(value, root2, parent, DECLARATION, substr(value, 0, length2), substr(value, length2 + 1, -1), length2);
784}
785function serialize(children, callback) {
786  var output = "";
787  var length2 = sizeof(children);
788  for (var i = 0; i < length2; i++)
789    output += callback(children[i], i, children, callback) || "";
790  return output;
791}
792function stringify(element, index, children, callback) {
793  switch (element.type) {
794    case IMPORT:
795    case DECLARATION:
796      return element.return = element.return || element.value;
797    case COMMENT:
798      return "";
799    case KEYFRAMES:
800      return element.return = element.value + "{" + serialize(element.children, callback) + "}";
801    case RULESET:
802      element.value = element.props.join(",");
803  }
804  return strlen(children = serialize(element.children, callback)) ? element.return = element.value + "{" + children + "}" : "";
805}
806function middleware(collection) {
807  var length2 = sizeof(collection);
808  return function(element, index, children, callback) {
809    var output = "";
810    for (var i = 0; i < length2; i++)
811      output += collection[i](element, index, children, callback) || "";
812    return output;
813  };
814}
815function rulesheet(callback) {
816  return function(element) {
817    if (!element.root) {
818      if (element = element.return)
819        callback(element);
820    }
821  };
822}
823var weakMemoize = function weakMemoize2(func) {
824  var cache = /* @__PURE__ */ new WeakMap();
825  return function(arg) {
826    if (cache.has(arg)) {
827      return cache.get(arg);
828    }
829    var ret = func(arg);
830    cache.set(arg, ret);
831    return ret;
832  };
833};
834function memoize$2(fn) {
835  var cache = /* @__PURE__ */ Object.create(null);
836  return function(arg) {
837    if (cache[arg] === void 0)
838      cache[arg] = fn(arg);
839    return cache[arg];
840  };
841}
842var identifierWithPointTracking = function identifierWithPointTracking2(begin, points, index) {
843  var previous = 0;
844  var character2 = 0;
845  while (true) {
846    previous = character2;
847    character2 = peek();
848    if (previous === 38 && character2 === 12) {
849      points[index] = 1;
850    }
851    if (token(character2)) {
852      break;
853    }
854    next();
855  }
856  return slice(begin, position$1);
857};
858var toRules = function toRules2(parsed, points) {
859  var index = -1;
860  var character2 = 44;
861  do {
862    switch (token(character2)) {
863      case 0:
864        if (character2 === 38 && peek() === 12) {
865          points[index] = 1;
866        }
867        parsed[index] += identifierWithPointTracking(position$1 - 1, points, index);
868        break;
869      case 2:
870        parsed[index] += delimit(character2);
871        break;
872      case 4:
873        if (character2 === 44) {
874          parsed[++index] = peek() === 58 ? "&\f" : "";
875          points[index] = parsed[index].length;
876          break;
877        }
878      default:
879        parsed[index] += from(character2);
880    }
881  } while (character2 = next());
882  return parsed;
883};
884var getRules = function getRules2(value, points) {
885  return dealloc(toRules(alloc(value), points));
886};
887var fixedElements = /* @__PURE__ */ new WeakMap();
888var compat = function compat2(element) {
889  if (element.type !== "rule" || !element.parent || // positive .length indicates that this rule contains pseudo
890  // negative .length indicates that this rule has been already prefixed
891  element.length < 1) {
892    return;
893  }
894  var value = element.value, parent = element.parent;
895  var isImplicitRule = element.column === parent.column && element.line === parent.line;
896  while (parent.type !== "rule") {
897    parent = parent.parent;
898    if (!parent)
899      return;
900  }
901  if (element.props.length === 1 && value.charCodeAt(0) !== 58 && !fixedElements.get(parent)) {
902    return;
903  }
904  if (isImplicitRule) {
905    return;
906  }
907  fixedElements.set(element, true);
908  var points = [];
909  var rules = getRules(value, points);
910  var parentRules = parent.props;
911  for (var i = 0, k2 = 0; i < rules.length; i++) {
912    for (var j = 0; j < parentRules.length; j++, k2++) {
913      element.props[k2] = points[i] ? rules[i].replace(/&\f/g, parentRules[j]) : parentRules[j] + " " + rules[i];
914    }
915  }
916};
917var removeLabel = function removeLabel2(element) {
918  if (element.type === "decl") {
919    var value = element.value;
920    if (
921      // charcode for l
922      value.charCodeAt(0) === 108 && // charcode for b
923      value.charCodeAt(2) === 98
924    ) {
925      element["return"] = "";
926      element.value = "";
927    }
928  }
929};
930function prefix(value, length2) {
931  switch (hash$1(value, length2)) {
932    case 5103:
933      return WEBKIT + "print-" + value + value;
934    case 5737:
935    case 4201:
936    case 3177:
937    case 3433:
938    case 1641:
939    case 4457:
940    case 2921:
941    case 5572:
942    case 6356:
943    case 5844:
944    case 3191:
945    case 6645:
946    case 3005:
947    case 6391:
948    case 5879:
949    case 5623:
950    case 6135:
951    case 4599:
952    case 4855:
953    case 4215:
954    case 6389:
955    case 5109:
956    case 5365:
957    case 5621:
958    case 3829:
959      return WEBKIT + value + value;
960    case 5349:
961    case 4246:
962    case 4810:
963    case 6968:
964    case 2756:
965      return WEBKIT + value + MOZ + value + MS + value + value;
966    case 6828:
967    case 4268:
968      return WEBKIT + value + MS + value + value;
969    case 6165:
970      return WEBKIT + value + MS + "flex-" + value + value;
971    case 5187:
972      return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + "box-$1$2" + MS + "flex-$1$2") + value;
973    case 5443:
974      return WEBKIT + value + MS + "flex-item-" + replace(value, /flex-|-self/, "") + value;
975    case 4675:
976      return WEBKIT + value + MS + "flex-line-pack" + replace(value, /align-content|flex-|-self/, "") + value;
977    case 5548:
978      return WEBKIT + value + MS + replace(value, "shrink", "negative") + value;
979    case 5292:
980      return WEBKIT + value + MS + replace(value, "basis", "preferred-size") + value;
981    case 6060:
982      return WEBKIT + "box-" + replace(value, "-grow", "") + WEBKIT + value + MS + replace(value, "grow", "positive") + value;
983    case 4554:
984      return WEBKIT + replace(value, /([^-])(transform)/g, "$1" + WEBKIT + "$2") + value;
985    case 6187:
986      return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + "$1"), /(image-set)/, WEBKIT + "$1"), value, "") + value;
987    case 5495:
988    case 3959:
989      return replace(value, /(image-set\([^]*)/, WEBKIT + "$1$`$1");
990    case 4968:
991      return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + "box-pack:$3" + MS + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + WEBKIT + value + value;
992    case 4095:
993    case 3583:
994    case 4068:
995    case 2532:
996      return replace(value, /(.+)-inline(.+)/, WEBKIT + "$1$2") + value;
997    case 8116:
998    case 7059:
999    case 5753:
1000    case 5535:
1001    case 5445:
1002    case 5701:
1003    case 4933:
1004    case 4677:
1005    case 5533:
1006    case 5789:
1007    case 5021:
1008    case 4765:
1009      if (strlen(value) - 1 - length2 > 6)
1010        switch (charat(value, length2 + 1)) {
1011          case 109:
1012            if (charat(value, length2 + 4) !== 45)
1013              break;
1014          case 102:
1015            return replace(value, /(.+:)(.+)-([^]+)/, "$1" + WEBKIT + "$2-$3$1" + MOZ + (charat(value, length2 + 3) == 108 ? "$3" : "$2-$3")) + value;
1016          case 115:
1017            return ~indexof(value, "stretch") ? prefix(replace(value, "stretch", "fill-available"), length2) + value : value;
1018        }
1019      break;
1020    case 4949:
1021      if (charat(value, length2 + 1) !== 115)
1022        break;
1023    case 6444:
1024      switch (charat(value, strlen(value) - 3 - (~indexof(value, "!important") && 10))) {
1025        case 107:
1026          return replace(value, ":", ":" + WEBKIT) + value;
1027        case 101:
1028          return replace(value, /(.+:)([^;!]+)(;|!.+)?/, "$1" + WEBKIT + (charat(value, 14) === 45 ? "inline-" : "") + "box$3$1" + WEBKIT + "$2$3$1" + MS + "$2box$3") + value;
1029      }
1030      break;
1031    case 5936:
1032      switch (charat(value, length2 + 11)) {
1033        case 114:
1034          return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb") + value;
1035        case 108:
1036          return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb-rl") + value;
1037        case 45:
1038          return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "lr") + value;
1039      }
1040      return WEBKIT + value + MS + value + value;
1041  }
1042  return value;
1043}
1044var prefixer = function prefixer2(element, index, children, callback) {
1045  if (element.length > -1) {
1046    if (!element["return"])
1047      switch (element.type) {
1048        case DECLARATION:
1049          element["return"] = prefix(element.value, element.length);
1050          break;
1051        case KEYFRAMES:
1052          return serialize([copy(element, {
1053            value: replace(element.value, "@", "@" + WEBKIT)
1054          })], callback);
1055        case RULESET:
1056          if (element.length)
1057            return combine(element.props, function(value) {
1058              switch (match(value, /(::plac\w+|:read-\w+)/)) {
1059                case ":read-only":
1060                case ":read-write":
1061                  return serialize([copy(element, {
1062                    props: [replace(value, /:(read-\w+)/, ":" + MOZ + "$1")]
1063                  })], callback);
1064                case "::placeholder":
1065                  return serialize([copy(element, {
1066                    props: [replace(value, /:(plac\w+)/, ":" + WEBKIT + "input-$1")]
1067                  }), copy(element, {
1068                    props: [replace(value, /:(plac\w+)/, ":" + MOZ + "$1")]
1069                  }), copy(element, {
1070                    props: [replace(value, /:(plac\w+)/, MS + "input-$1")]
1071                  })], callback);
1072              }
1073              return "";
1074            });
1075      }
1076  }
1077};
1078var defaultStylisPlugins = [prefixer];
1079var createCache = function createCache2(options) {
1080  var key = options.key;
1081  if (key === "css") {
1082    var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])");
1083    Array.prototype.forEach.call(ssrStyles, function(node2) {
1084      var dataEmotionAttribute = node2.getAttribute("data-emotion");
1085      if (dataEmotionAttribute.indexOf(" ") === -1) {
1086        return;
1087      }
1088      document.head.appendChild(node2);
1089      node2.setAttribute("data-s", "");
1090    });
1091  }
1092  var stylisPlugins = options.stylisPlugins || defaultStylisPlugins;
1093  var inserted = {};
1094  var container2;
1095  var nodesToHydrate = [];
1096  {
1097    container2 = options.container || document.head;
1098    Array.prototype.forEach.call(
1099      // this means we will ignore elements which don't have a space in them which
1100      // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
1101      document.querySelectorAll('style[data-emotion^="' + key + ' "]'),
1102      function(node2) {
1103        var attrib = node2.getAttribute("data-emotion").split(" ");
1104        for (var i = 1; i < attrib.length; i++) {
1105          inserted[attrib[i]] = true;
1106        }
1107        nodesToHydrate.push(node2);
1108      }
1109    );
1110  }
1111  var _insert;
1112  var omnipresentPlugins = [compat, removeLabel];
1113  {
1114    var currentSheet;
1115    var finalizingPlugins = [stringify, rulesheet(function(rule) {
1116      currentSheet.insert(rule);
1117    })];
1118    var serializer = middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));
1119    var stylis = function stylis2(styles2) {
1120      return serialize(compile(styles2), serializer);
1121    };
1122    _insert = function insert(selector, serialized, sheet, shouldCache) {
1123      currentSheet = sheet;
1124      stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
1125      if (shouldCache) {
1126        cache.inserted[serialized.name] = true;
1127      }
1128    };
1129  }
1130  var cache = {
1131    key,
1132    sheet: new StyleSheet({
1133      key,
1134      container: container2,
1135      nonce: options.nonce,
1136      speedy: options.speedy,
1137      prepend: options.prepend,
1138      insertionPoint: options.insertionPoint
1139    }),
1140    nonce: options.nonce,
1141    inserted,
1142    registered: {},
1143    insert: _insert
1144  };
1145  cache.sheet.hydrate(nodesToHydrate);
1146  return cache;
1147};
1148function _extends$3() {
1149  _extends$3 = Object.assign ? Object.assign.bind() : function(target) {
1150    for (var i = 1; i < arguments.length; i++) {
1151      var source = arguments[i];
1152      for (var key in source) {
1153        if (Object.prototype.hasOwnProperty.call(source, key)) {
1154          target[key] = source[key];
1155        }
1156      }
1157    }
1158    return target;
1159  };
1160  return _extends$3.apply(this, arguments);
1161}
1162var reactIsExports = {};
1163var reactIs$1 = {
1164  get exports() {
1165    return reactIsExports;
1166  },
1167  set exports(v2) {
1168    reactIsExports = v2;
1169  }
1170};
1171var reactIs_production_min = {};
1172/** @license React v16.13.1
1173 * react-is.production.min.js
1174 *
1175 * Copyright (c) Facebook, Inc. and its affiliates.
1176 *
1177 * This source code is licensed under the MIT license found in the
1178 * LICENSE file in the root directory of this source tree.
1179 */
1180var b = "function" === typeof Symbol && Symbol.for, c = b ? Symbol.for("react.element") : 60103, d = b ? Symbol.for("react.portal") : 60106, e = b ? Symbol.for("react.fragment") : 60107, f = b ? Symbol.for("react.strict_mode") : 60108, g = b ? Symbol.for("react.profiler") 
1180: 60114, h = b ? Symbol.for("react.provider") : 60109, k = b ? Symbol.for("react.context") : 60110, l = b ? Symbol.for("react.async_mode") : 60111, m$1 = b ? Symbol.for("react.concurrent_mode") : 60111, n = b ? Symbol.for("react.forward_ref") : 60112, p$1 = b ? Symbol.for("react.suspense") : 60113, q = b ? Symbol.for("react.suspense_list") : 60120, r$1 = b ? Symbol.for("react.memo") : 60115, t$1 = b ? Symbol.for("react.lazy") : 60116, v$1 = b ? Symbol.for("react.block") : 60121, w = b ? Symbol.for("react.fundamental") : 60117, x = b ? Symbol.for("react.responder") : 60118, y = b ? Symbol.for("react.scope") : 60119;
1181function z$1(a) {
1182  if ("object" === typeof a && null !== a) {
1183    var u2 = a.$$typeof;
1184    switch (u2) {
1185      case c:
1186        switch (a = a.type, a) {
1187          case l:
1188          case m$1:
1189          case e:
1190          case g:
1191          case f:
1192          case p$1:
1193            return a;
1194          default:
1195            switch (a = a && a.$$typeof, a) {
1196              case k:
1197              case n:
1198              case t$1:
1199              case r$1:
1200              case h:
1201                return a;
1202              default:
1203                return u2;
1204            }
1205        }
1206      case d:
1207        return u2;
1208    }
1209  }
1210}
1211function A$1(a) {
1212  return z$1(a) === m$1;
1213}
1214reactIs_production_min.AsyncMode = l;
1215reactIs_production_min.ConcurrentMode = m$1;
1216reactIs_production_min.ContextConsumer = k;
1217reactIs_production_min.ContextProvider = h;
1218reactIs_production_min.Element = c;
1219reactIs_production_min.ForwardRef = n;
1220reactIs_production_min.Fragment = e;
1221reactIs_production_min.Lazy = t$1;
1222reactIs_production_min.Memo = r$1;
1223reactIs_production_min.Portal = d;
1224reactIs_production_min.Profiler = g;
1225reactIs_production_min.StrictMode = f;
1226reactIs_production_min.Suspense = p$1;
1227reactIs_production_min.isAsyncMode = function(a) {
1228  return A$1(a) || z$1(a) === l;
1229};
1230reactIs_production_min.isConcurrentMode = A$1;
1231reactIs_production_min.isContextConsumer = function(a) {
1232  return z$1(a) === k;
1233};
1234reactIs_production_min.isContextProvider = function(a) {
1235  return z$1(a) === h;
1236};
1237reactIs_production_min.isElement = function(a) {
1238  return "object" === typeof a && null !== a && a.$$typeof === c;
1239};
1240reactIs_production_min.isForwardRef = function(a) {
1241  return z$1(a) === n;
1242};
1243reactIs_production_min.isFragment = function(a) {
1244  return z$1(a) === e;
1245};
1246reactIs_production_min.isLazy = function(a) {
1247  return z$1(a) === t$1;
1248};
1249reactIs_production_min.isMemo = function(a) {
1250  return z$1(a) === r$1;
1251};
1252reactIs_production_min.isPortal = function(a) {
1253  return z$1(a) === d;
1254};
1255reactIs_production_min.isProfiler = function(a) {
1256  return z$1(a) === g;
1257};
1258reactIs_production_min.isStrictMode = function(a) {
1259  return z$1(a) === f;
1260};
1261reactIs_production_min.isSuspense = function(a) {
1262  return z$1(a) === p$1;
1263};
1264reactIs_production_min.isValidElementType = function(a) {
1265  return "string" === typeof a || "function" === typeof a || a === e || a === m$1 || a === g || a === f || a === p$1 || a === q || "object" === typeof a && null !== a && (a.$$typeof === t$1 || a.$$typeof === r$1 || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v$1);
1266};
1267reactIs_production_min.typeOf = z$1;
1268(function(module) {
1269  {
1270    module.exports = reactIs_production_min;
1271  }
1272})(reactIs$1);
1273var reactIs = reactIsExports;
1274var FORWARD_REF_STATICS = {
1275  "$$typeof": true,
1276  render: true,
1277  defaultProps: true,
1278  displayName: true,
1279  propTypes: true
1280};
1281var MEMO_STATICS = {
1282  "$$typeof": true,
1283  compare: true,
1284  defaultProps: true,
1285  displayName: true,
1286  propTypes: true,
1287  type: true
1288};
1289var TYPE_STATICS = {};
1290TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
1291TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
1292var isBrowser$1 = true;
1293function getRegisteredStyles(registered, registeredStyles, classNames2) {
1294  var rawClassName = "";
1295  classNames2.split(" ").forEach(function(className) {
1296    if (registered[className] !== void 0) {
1297      registeredStyles.push(registered[className] + ";");
1298    } else {
1299      rawClassName += className + " ";
1300    }
1301  });
1302  return rawClassName;
1303}
1304var registerStyles = function registerStyles2(cache, serialized, isStringTag) {
1305  var className = cache.key + "-" + serialized.name;
1306  if (
1307    // we only need to add the styles to the registered cache if the
vendor: 8,869 bytes, lines 1308-1581
1308    // class name could be used further down
1309    // the tree but if it's a string tag, we know it won't
1310    // so we don't have to add it to registered cache.
1311    // this improves memory usage since we can avoid storing the whole style string
1312    (isStringTag === false || // we need to always store it if we're in compat mode and
1313    // in node since emotion-server relies on whether a style is in
1314    // the registered cache to know whether a style is global or not
1315    // also, note that this check will be dead code eliminated in the browser
1316    isBrowser$1 === false) && cache.registered[className] === void 0
1317  ) {
1318    cache.registered[className] = serialized.styles;
1319  }
1320};
1321var insertStyles = function insertStyles2(cache, serialized, isStringTag) {
1322  registerStyles(cache, serialized, isStringTag);
1323  var className = cache.key + "-" + serialized.name;
1324  if (cache.inserted[serialized.name] === void 0) {
1325    var current = serialized;
1326    do {
1327      cache.insert(serialized === current ? "." + className : "", current, cache.sheet, true);
1328      current = current.next;
1329    } while (current !== void 0);
1330  }
1331};
1332function murmur2(str) {
1333  var h2 = 0;
1334  var k2, i = 0, len = str.length;
1335  for (; len >= 4; ++i, len -= 4) {
1336    k2 = str.charCodeAt(i) & 255 | (str.charCodeAt(++i) & 255) << 8 | (str.charCodeAt(++i) & 255) << 16 | (str.charCodeAt(++i) & 255) << 24;
1337    k2 = /* Math.imul(k, m): */
1338    (k2 & 65535) * 1540483477 + ((k2 >>> 16) * 59797 << 16);
1339    k2 ^= /* k >>> r: */
1340    k2 >>> 24;
1341    h2 = /* Math.imul(k, m): */
1342    (k2 & 65535) * 1540483477 + ((k2 >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
1343    (h2 & 65535) * 1540483477 + ((h2 >>> 16) * 59797 << 16);
1344  }
1345  switch (len) {
1346    case 3:
1347      h2 ^= (str.charCodeAt(i + 2) & 255) << 16;
1348    case 2:
1349      h2 ^= (str.charCodeAt(i + 1) & 255) << 8;
1350    case 1:
1351      h2 ^= str.charCodeAt(i) & 255;
1352      h2 = /* Math.imul(h, m): */
1353      (h2 & 65535) * 1540483477 + ((h2 >>> 16) * 59797 << 16);
1354  }
1355  h2 ^= h2 >>> 13;
1356  h2 = /* Math.imul(h, m): */
1357  (h2 & 65535) * 1540483477 + ((h2 >>> 16) * 59797 << 16);
1358  return ((h2 ^ h2 >>> 15) >>> 0).toString(36);
1359}
1360var unitlessKeys = {
1361  animationIterationCount: 1,
1362  borderImageOutset: 1,
1363  borderImageSlice: 1,
1364  borderImageWidth: 1,
1365  boxFlex: 1,
1366  boxFlexGroup: 1,
1367  boxOrdinalGroup: 1,
1368  columnCount: 1,
1369  columns: 1,
1370  flex: 1,
1371  flexGrow: 1,
1372  flexPositive: 1,
1373  flexShrink: 1,
1374  flexNegative: 1,
1375  flexOrder: 1,
1376  gridRow: 1,
1377  gridRowEnd: 1,
1378  gridRowSpan: 1,
1379  gridRowStart: 1,
1380  gridColumn: 1,
1381  gridColumnEnd: 1,
1382  gridColumnSpan: 1,
1383  gridColumnStart: 1,
1384  msGridRow: 1,
1385  msGridRowSpan: 1,
1386  msGridColumn: 1,
1387  msGridColumnSpan: 1,
1388  fontWeight: 1,
1389  lineHeight: 1,
1390  opacity: 1,
1391  order: 1,
1392  orphans: 1,
1393  tabSize: 1,
1394  widows: 1,
1395  zIndex: 1,
1396  zoom: 1,
1397  WebkitLineClamp: 1,
1398  // SVG-related properties
1399  fillOpacity: 1,
1400  floodOpacity: 1,
1401  stopOpacity: 1,
1402  strokeDasharray: 1,
1403  strokeDashoffset: 1,
1404  strokeMiterlimit: 1,
1405  strokeOpacity: 1,
1406  strokeWidth: 1
1407};
1408var hyphenateRegex = /[A-Z]|^ms/g;
1409var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;
1410var isCustomProperty = function isCustomProperty2(property) {
1411  return property.charCodeAt(1) === 45;
1412};
1413var isProcessableValue = function isProcessableValue2(value) {
1414  return value != null && typeof value !== "boolean";
1415};
1416var processStyleName = /* @__PURE__ */ memoize$2(function(styleName) {
1417  return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, "-$&").toLowerCase();
1418});
1419var processStyleValue = function processStyleValue2(key, value) {
1420  switch (key) {
1421    case "animation":
1422    case "animationName": {
1423      if (typeof value === "string") {
1424        return value.replace(animationRegex, function(match2, p1, p2) {
1425          cursor = {
1426            name: p1,
1427            styles: p2,
1428            next: cursor
1429          };
1430          return p1;
1431        });
1432      }
1433    }
1434  }
1435  if (unitlessKeys[key] !== 1 && !isCustomProperty(key) && typeof value === "number" && value !== 0) {
1436    return value + "px";
1437  }
1438  return value;
1439};
1440var noComponentSelectorMessage = "Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";
1441function handleInterpolation(mergedProps, registered, interpolation) {
1442  if (interpolation == null) {
1443    return "";
1444  }
1445  if (interpolation.__emotion_styles !== void 0) {
1446    return interpolation;
1447  }
1448  switch (typeof interpolation) {
1449    case "boolean": {
1450      return "";
1451    }
1452    case "object": {
1453      if (interpolation.anim === 1) {
1454        cursor = {
1455          name: interpolation.name,
1456          styles: interpolation.styles,
1457          next: cursor
1458        };
1459        return interpolation.name;
1460      }
1461      if (interpolation.styles !== void 0) {
1462        var next2 = interpolation.next;
1463        if (next2 !== void 0) {
1464          while (next2 !== void 0) {
1465            cursor = {
1466              name: next2.name,
1467              styles: next2.styles,
1468              next: cursor
1469            };
1470            next2 = next2.next;
1471          }
1472        }
1473        var styles2 = interpolation.styles + ";";
1474        return styles2;
1475      }
1476      return createStringFromObject(mergedProps, registered, interpolation);
1477    }
1478    case "function": {
1479      if (mergedProps !== void 0) {
1480        var previousCursor = cursor;
1481        var result = interpolation(mergedProps);
1482        cursor = previousCursor;
1483        return handleInterpolation(mergedProps, registered, result);
1484      }
1485      break;
1486    }
1487  }
1488  if (registered == null) {
1489    return interpolation;
1490  }
1491  var cached = registered[interpolation];
1492  return cached !== void 0 ? cached : interpolation;
1493}
1494function createStringFromObject(mergedProps, registered, obj) {
1495  var string = "";
1496  if (Array.isArray(obj)) {
1497    for (var i = 0; i < obj.length; i++) {
1498      string += handleInterpolation(mergedProps, registered, obj[i]) + ";";
1499    }
1500  } else {
1501    for (var _key in obj) {
1502      var value = obj[_key];
1503      if (typeof value !== "object") {
1504        if (registered != null && registered[value] !== void 0) {
1505          string += _key + "{" + registered[value] + "}";
1506        } else if (isProcessableValue(value)) {
1507          string += processStyleName(_key) + ":" + processStyleValue(_key, value) + ";";
1508        }
1509      } else {
1510        if (_key === "NO_COMPONENT_SELECTOR" && false) {
1511          throw new Error(noComponentSelectorMessage);
1512        }
1513        if (Array.isArray(value) && typeof value[0] === "string" && (registered == null || registered[value[0]] === void 0)) {
1514          for (var _i = 0; _i < value.length; _i++) {
1515            if (isProcessableValue(value[_i])) {
1516              string += processStyleName(_key) + ":" + processStyleValue(_key, value[_i]) + ";";
1517            }
1518          }
1519        } else {
1520          var interpolated = handleInterpolation(mergedProps, registered, value);
1521          switch (_key) {
1522            case "animation":
1523            case "animationName": {
1524              string += processStyleName(_key) + ":" + interpolated + ";";
1525              break;
1526            }
1527            default: {
1528              string += _key + "{" + interpolated + "}";
1529            }
1530          }
1531        }
1532      }
1533    }
1534  }
1535  return string;
1536}
1537var labelPattern = /label:\s*([^\s;\n{]+)\s*(;|$)/g;
1538var cursor;
1539var serializeStyles = function serializeStyles2(args, registered, mergedProps) {
1540  if (args.length === 1 && typeof args[0] === "object" && args[0] !== null && args[0].styles !== void 0) {
1541    return args[0];
1542  }
1543  var stringMode = true;
1544  var styles2 = "";
1545  cursor = void 0;
1546  var strings = args[0];
1547  if (strings == null || strings.raw === void 0) {
1548    stringMode = false;
1549    styles2 += handleInterpolation(mergedProps, registered, strings);
1550  } else {
1551    styles2 += strings[0];
1552  }
1553  for (var i = 1; i < args.length; i++) {
1554    styles2 += handleInterpolation(mergedProps, registered, args[i]);
1555    if (stringMode) {
1556      styles2 += strings[i];
1557    }
1558  }
1559  labelPattern.lastIndex = 0;
1560  var identifierName = "";
1561  var match2;
1562  while ((match2 = labelPattern.exec(styles2)) !== null) {
1563    identifierName += "-" + // $FlowFixMe we know it's not null
1564    match2[1];
1565  }
1566  var name2 = murmur2(styles2) + identifierName;
1567  return {
1568    name: name2,
1569    styles: styles2,
1570    next: cursor
1571  };
1572};
1573var syncFallback = function syncFallback2(create) {
1574  return create();
1575};
1576var useInsertionEffect = React$2["useInsertionEffect"] ? React$2["useInsertionEffect"] : false;
1577var useInsertionEffectAlwaysWithSyncFallback = useInsertionEffect || syncFallback;
1578var useInsertionEffectWithLayoutFallback = useInsertionEffect || reactExports.useLayoutEffect;
1579var EmotionCacheContext = /* @__PURE__ */ reactExports.createContext(
1580  // we're doing this to avoid preconstruct's dead code elimination in this one case
1581  // because this module is primarily intended for the browser and n
1581ode
1582  // but it's also required in react native and similar environments sometimes
1583  // and we could have a special build just for that
1584  // but this is much easier and the native packages
1585  // might use a different theme context in the future anyway
1586  typeof HTMLElement !== "undefined" ? /* @__PURE__ */ createCache({
1587    key: "css"
1588  }) : null
1589);
1590EmotionCacheContext.Provider;
1591var withEmotionCache = function withEmotionCache2(func) {
1592  return /* @__PURE__ */ reactExports.forwardRef(function(props, ref) {
1593    var cache = reactExports.useContext(EmotionCacheContext);
1594    return func(props, cache, ref);
1595  });
1596};
1597var ThemeContext = /* @__PURE__ */ reactExports.createContext({});
1598var getTheme$1 = function getTheme(outerTheme, theme2) {
1599  if (typeof theme2 === "function") {
1600    var mergedTheme = theme2(outerTheme);
1601    return mergedTheme;
1602  }
1603  return _extends$3({}, outerTheme, theme2);
1604};
1605var createCacheWithTheme = /* @__PURE__ */ weakMemoize(function(outerTheme) {
1606  return weakMemoize(function(theme2) {
1607    return getTheme$1(outerTheme, theme2);
1608  });
1609});
1610var ThemeProvider$1 = function ThemeProvider(props) {
1611  var theme2 = reactExports.useContext(ThemeContext);
1612  if (props.theme !== theme2) {
1613    theme2 = createCacheWithTheme(theme2)(props.theme);
1614  }
1615  return /* @__PURE__ */ reactExports.createElement(ThemeContext.Provider, {
1616    value: theme2
1617  }, props.children);
1618};
1619var Global = /* @__PURE__ */ withEmotionCache(function(props, cache) {
1620  var styles2 = props.styles;
1621  var serialized = serializeStyles([styles2], void 0, reactExports.useContext(ThemeContext));
1622  var sheetRef = reactExports.useRef();
1623  useInsertionEffectWithLayoutFallback(function() {
1624    var key = cache.key + "-global";
1625    var sheet = new cache.sheet.constructor({
1626      key,
1627      nonce: cache.sheet.nonce,
1628      container: cache.sheet.container,
1629      speedy: cache.sheet.isSpeedy
1630    });
1631    var rehydrating = false;
1632    var node2 = document.querySelector('style[data-emotion="' + key + " " + serialized.name + '"]');
1633    if (cache.sheet.tags.length) {
1634      sheet.before = cache.sheet.tags[0];
1635    }
1636    if (node2 !== null) {
1637      rehydrating = true;
1638      node2.setAttribute("data-emotion", key);
1639      sheet.hydrate([node2]);
1640    }
1641    sheetRef.current = [sheet, rehydrating];
1642    return function() {
1643      sheet.flush();
1644    };
1645  }, [cache]);
1646  useInsertionEffectWithLayoutFallback(function() {
1647    var sheetRefCurrent = sheetRef.current;
1648    var sheet = sheetRefCurrent[0], rehydrating = sheetRefCurrent[1];
1649    if (rehydrating) {
1650      sheetRefCurrent[1] = false;
1651      return;
1652    }
1653    if (serialized.next !== void 0) {
1654      insertStyles(cache, serialized.next, true);
1655    }
1656    if (sheet.tags.length) {
1657      var element = sheet.tags[sheet.tags.length - 1].nextElementSibling;
1658      sheet.before = element;
1659      sheet.flush();
1660    }
1661    cache.insert("", serialized, sheet, false);
1662  }, [cache, serialized.name]);
1663  return null;
1664});
1665function css$1() {
1666  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1667    args[_key] = arguments[_key];
1668  }
1669  return serializeStyles(args);
1670}
1671var keyframes$1 = function keyframes() {
1672  var insertable = css$1.apply(void 0, arguments);
1673  var name2 = "animation-" + insertable.name;
1674  return {
1675    name: name2,
1676    styles: "@keyframes " + name2 + "{" + insertable.styles + "}",
1677    anim: 1,
1678    toString: function toString() {
1679      return "_EMO_" + this.name + "_" + this.styles + "_EMO_";
1680    }
1681  };
1682};
1683var vhPolyfill = `
1684  :root {
1685    --chakra-vh: 100vh;
1686  }
1687
1688  @supports (height: -webkit-fill-available) {
1689    :root {
1690      --chakra-vh: -webkit-fill-available;
1691    }
1692  }
1693
1694  @supports (height: -moz-fill-available) {
1695    :root {
1696      --chakra-vh: -moz-fill-available;
1697    }
1698  }
1699
1700  @supports (height: 100dvh) {
1701    :root {
1702      --chakra-vh: 100dvh;
1703    }
1704  }
1705`;
1706var CSSPolyfill = () => /* @__PURE__ */ jsx(Global, { styles: vhPolyfill });
1707var CSSReset = () => /* @__PURE__ */ jsx(
1708  Global,
1709  {
1710    styles: `
1711      html {
1712        line-height: 1.5;
1713        -webkit-text-size-adjust: 100%;
1714        font-family: system-ui, sans-serif;
1715        -webkit-font-smoothing: antialiased;
1716        text-rendering: optimizeLegibility;
1717        -moz-osx-font-smoothing: grayscale;
1718        touch-action: manipulation;
1719      }
1720
1721      body {
1722        position: relative;
1723        min-height: 100%;
1724        font-feature-settings: 'kern';
1725      }
1726
1727      *,
1728      *::before,
1729      *::after {
1730        border-width: 0;
1731        border-style: solid;
1732        box-sizing: border-box;
1733      }
1734
1735      main {
1736        display: block;
1737      }
1738
1739      hr {
1740        border-top-width: 1px;
1741        box-sizing: content-box;
1742        height: 0;
1743        overflow: visible;
1744      }
1745
1746      pre,
1747      code,
1748      kbd,
1749      samp {
1750        font-family: SFMono-Regular,  Menlo, Monaco, Consolas, monospace;
1751        font-size: 1em;
1752      }
1753
1754      a {
1755        background-color: transparent;
1756        color: inherit;
1757        text-decoration: inherit;
1758      }
1759
1760      abbr[title] {
1761        border-bottom: none;
1762        text-decoration: underline;
1763        -webkit-text-decoration: underline dotted;
1764        text-decoration: underline dotted;
1765      }
1766
1767      b,
1768      strong {
1769        font-weight: bold;
1770      }
1771
1772      small {
1773        font-size: 80%;
1774      }
1775
1776      sub,
1777      sup {
1778        font-size: 75%;
1779        line-height: 0;
1780        position: relative;
1781        vertical-align: baseline;
1782      }
1783
1784      sub {
1785        bottom: -0.25em;
1786      }
1787
1788      sup {
1789        top: -0.5em;
1790      }
1791
1792      img {
1793        border-style: none;
1794      }
1795
1796      button,
1797      input,
1798      optgroup,
1799      select,
1800      textarea {
1801        font-family: inherit;
1802        font-size: 100%;
1803        line-height: 1.15;
1804        margin: 0;
1805      }
1806
1807      button,
1808      input {
1809        overflow: visible;
1810      }
1811
1812      button,
1813      select {
1814        text-transform: none;
1815      }
1816
1817      button::-moz-focus-inner,
1818      [type="button"]::-moz-focus-inner,
1819      [type="reset"]::-moz-focus-inner,
1820      [type="submit"]::-moz-focus-inner {
1821        border-style: none;
1822        padding: 0;
1823      }
1824
1825      fieldset {
1826        padding: 0.35em 0.75em 0.625em;
1827      }
1828
1829      legend {
1830        box-sizing: border-box;
1831        color: inherit;
1832        display: table;
1833        max-width: 100%;
1834        padding: 0;
1835        white-space: normal;
1836      }
1837
1838      progress {
1839        vertical-align: baseline;
1840      }
1841
1842      textarea {
1843        overflow: auto;
1844      }
1845
1846      [type="checkbox"],
1847      [type="radio"] {
1848        box-sizing: border-box;
1849        padding: 0;
1850      }
1851
1852      [type="number"]::-webkit-inner-spin-button,
1853      [type="number"]::-webkit-outer-spin-button {
1854        -webkit-appearance: none !important;
1855      }
1856
1857      input[type="number"] {
1858        -moz-appearance: textfield;
1859      }
1860
1861      [type="search"] {
1862        -webkit-appearance: textfield;
1863        outline-offset: -2px;
1864      }
1865
1866      [type="search"]::-webkit-search-decoration {
1867        -webkit-appearance: none !important;
1868      }
1869
1870      ::-webkit-file-upload-button {
1871        -webkit-appearance: button;
1872        font: inherit;
1873      }
1874
1875      details {
1876        display: block;
1877      }
1878
1879      summary {
1880        display: list-item;
1881      }
1882
1883      template {
1884        display: none;
1885      }
1886
1887      [hidden] {
1888        display: none !important;
1889      }
1890
1891      body,
1892      blockquote,
1893      dl,
1894      dd,
1895      h1,
1896      h2,
1897      h3,
1898      h4,
1899      h5,
1900      h6,
1901      hr,
1902      figure,
1903      p,
1904      pre {
1905        margin: 0;
1906      }
1907
1908      button {
1909        background: transparent;
1910        padding: 0;
1911      }
1912
1913      fieldset {
1914        margin: 0;
1915        padding: 0;
1916      }
1917
1918      ol,
1919      ul {
1920        margin: 0;
1921        padding: 0;
1922      }
1923
1924      textarea {
1925        resize: vertical;
1926      }
1927
1928      button,
1929      [role="button"] {
1930        cursor: pointer;
1931      }
1932
1933      button::-moz-focus-inner {
1934        border: 0 !important;
1935      }
1936
1937      table {
1938        border-collapse: collapse;
1939      }
1940
1941      h1,
1942      h2,
1943      h3,
1944      h4,
1945      h5,
1946      h6 {
1947        font-size: inherit;
1948        font-weight: inherit;
1949      }
1950
1951      button,
1952      input,
1953      optgroup,
1954      select,
1955      textarea {
1956        padding: 0;
1957        line-height: inherit;
1958        color: inherit;
1959      }
1960
1961      img,
1962      svg,
1963      video,
1964      canvas,
1965      audio,
1966      iframe,
1967      embed,
1968      object {
1969        display: block;
1970      }
1971
1972      img,
1973      video {
1974        max-width: 100%;
1975        height: auto;
1976      }
1977
1978      [data-js-focus-visible] :focus:not([data-focus-visible-added]):not
1978([data-focus-visible-disabled]) {
1979        outline: none;
1980        box-shadow: none;
1981      }
1982
1983      select::-ms-expand {
1984        display: none;
1985      }
1986
1987      ${vhPolyfill}
1988    `
1989  }
1990);
1991function getErrorMessage(hook, provider) {
1992  return `${hook} returned \`undefined\`. Seems you forgot to wrap component within ${provider}`;
1993}
1994function createContext$1(options = {}) {
1995  const {
1996    name: name2,
1997    strict = true,
1998    hookName = "useContext",
1999    providerName = "Provider",
2000    errorMessage
2001  } = options;
2002  const Context = reactExports.createContext(void 0);
2003  Context.displayName = name2;
2004  function useContext() {
2005    var _a5;
2006    const context = reactExports.useContext(Context);
2007    if (!context && strict) {
2008      const error = new Error(
2009        errorMessage != null ? errorMessage : getErrorMessage(hookName, providerName)
2010      );
2011      error.name = "ContextError";
2012      (_a5 = Error.captureStackTrace) == null ? void 0 : _a5.call(Error, error, useContext);
2013      throw error;
2014    }
2015    return context;
2016  }
2017  return [Context.Provider, useContext, Context];
2018}
2019var [PortalManagerContextProvider, usePortalManager] = createContext$1({
2020  strict: false,
2021  name: "PortalManagerContext"
2022});
2023function PortalManager(props) {
2024  const { children, zIndex } = props;
2025  return /* @__PURE__ */ jsx(PortalManagerContextProvider, { value: { zIndex }, children });
2026}
2027PortalManager.displayName = "PortalManager";
2028var useSafeLayoutEffect = Boolean(globalThis == null ? void 0 : globalThis.document) ? reactExports.useLayoutEffect : reactExports.useEffect;
2029var reactDomExports = {};
2030var reactDom = {
2031  get exports() {
2032    return reactDomExports;
2033  },
2034  set exports(v2) {
2035    reactDomExports = v2;
2036  }
2037};
2038var reactDom_production_min = {};
2039var schedulerExports = {};
2040var scheduler = {
2041  get exports() {
2042    return schedulerExports;
2043  },
2044  set exports(v2) {
2045    schedulerExports = v2;
2046  }
2047};
2048var scheduler_production_min = {};
2049/**
2050 * @license React
2051 * scheduler.production.min.js
2052 *
2053 * Copyright (c) Facebook, Inc. and its affiliates.
2054 *
2055 * This source code is licensed under the MIT license found in the
2056 * LICENSE file in the root directory of this source tree.
2057 */
2058(function(exports) {
2059  function f2(a, b2) {
2060    var c2 = a.length;
2061    a.push(b2);
2062    a:
2063      for (; 0 < c2; ) {
2064        var d2 = c2 - 1 >>> 1, e2 = a[d2];
2065        if (0 < g2(e2, b2))
2066          a[d2] = b2, a[c2] = e2, c2 = d2;
2067        else
2068          break a;
2069      }
2070  }
2071  function h2(a) {
2072    return 0 === a.length ? null : a[0];
2073  }
2074  function k2(a) {
2075    if (0 === a.length)
2076      return null;
2077    var b2 = a[0], c2 = a.pop();
2078    if (c2 !== b2) {
2079      a[0] = c2;
2080      a:
2081        for (var d2 = 0, e2 = a.length, w2 = e2 >>> 1; d2 < w2; ) {
2082          var m2 = 2 * (d2 + 1) - 1, C2 = a[m2], n2 = m2 + 1, x2 = a[n2];
2083          if (0 > g2(C2, c2))
2084            n2 < e2 && 0 > g2(x2, C2) ? (a[d2] = x2, a[n2] = c2, d2 = n2) : (a[d2] = C2, a[m2] = c2, d2 = m2);
2085          else if (n2 < e2 && 0 > g2(x2, c2))
2086            a[d2] = x2, a[n2] = c2, d2 = n2;
2087          else
2088            break a;
2089        }
2090    }
2091    return b2;
2092  }
2093  function g2(a, b2) {
2094    var c2 = a.sortIndex - b2.sortIndex;
2095    return 0 !== c2 ? c2 : a.id - b2.id;
2096  }
2097  if ("object" === typeof performance && "function" === typeof performance.now) {
2098    var l2 = performance;
2099    exports.unstable_now = function() {
2100      return l2.now();
2101    };
2102  } else {
2103    var p2 = Date, q2 = p2.now();
2104    exports.unstable_now = function() {
2105      return p2.now() - q2;
2106    };
2107  }
2108  var r2 = [], t2 = [], u2 = 1, v2 = null, y2 = 3, z2 = false, A2 = false, B2 = false, D2 = "function" === typeof setTimeout ? setTimeout : null, E2 = "function" === typeof clearTimeout ? clearTimeout : null, F2 = "undefined" !== typeof setImmediate ? setImmediate : null;
2109  "undefined" !== typeof navigator && void 0 !== navigator.scheduling && void 0 !== navigator.scheduling.isInputPending && navigator.scheduling.isInputPending.bind(navigator.scheduling);
2110  function G2(a) {
2111    for (var b2 = h2(t2); null !== b2; ) {
2112      if (null === b2.callback)
2113        k2(t2);
2114      else if (b2.startTime <= a)
2115        k2(t2), b2.sortIndex = b2.expirationTime, f2(r2, b2);
2116      else
2117        break;
2118      b2 = h2(t2);
2119    }
2120  }
2121  function H2(a) {
2122    B2 = false;
vendor: 210,015 bytes, lines 2123-9166
2123    G2(a);
2124    if (!A2)
2125      if (null !== h2(r2))
2126        A2 = true, I2(J2);
2127      else {
2128        var b2 = h2(t2);
2129        null !== b2 && K2(H2, b2.startTime - a);
2130      }
2131  }
2132  function J2(a, b2) {
2133    A2 = false;
2134    B2 && (B2 = false, E2(L2), L2 = -1);
2135    z2 = true;
2136    var c2 = y2;
2137    try {
2138      G2(b2);
2139      for (v2 = h2(r2); null !== v2 && (!(v2.expirationTime > b2) || a && !M2()); ) {
2140        var d2 = v2.callback;
2141        if ("function" === typeof d2) {
2142          v2.callback = null;
2143          y2 = v2.priorityLevel;
2144          var e2 = d2(v2.expirationTime <= b2);
2145          b2 = exports.unstable_now();
2146          "function" === typeof e2 ? v2.callback = e2 : v2 === h2(r2) && k2(r2);
2147          G2(b2);
2148        } else
2149          k2(r2);
2150        v2 = h2(r2);
2151      }
2152      if (null !== v2)
2153        var w2 = true;
2154      else {
2155        var m2 = h2(t2);
2156        null !== m2 && K2(H2, m2.startTime - b2);
2157        w2 = false;
2158      }
2159      return w2;
2160    } finally {
2161      v2 = null, y2 = c2, z2 = false;
2162    }
2163  }
2164  var N2 = false, O2 = null, L2 = -1, P2 = 5, Q2 = -1;
2165  function M2() {
2166    return exports.unstable_now() - Q2 < P2 ? false : true;
2167  }
2168  function R2() {
2169    if (null !== O2) {
2170      var a = exports.unstable_now();
2171      Q2 = a;
2172      var b2 = true;
2173      try {
2174        b2 = O2(true, a);
2175      } finally {
2176        b2 ? S2() : (N2 = false, O2 = null);
2177      }
2178    } else
2179      N2 = false;
2180  }
2181  var S2;
2182  if ("function" === typeof F2)
2183    S2 = function() {
2184      F2(R2);
2185    };
2186  else if ("undefined" !== typeof MessageChannel) {
2187    var T2 = new MessageChannel(), U2 = T2.port2;
2188    T2.port1.onmessage = R2;
2189    S2 = function() {
2190      U2.postMessage(null);
2191    };
2192  } else
2193    S2 = function() {
2194      D2(R2, 0);
2195    };
2196  function I2(a) {
2197    O2 = a;
2198    N2 || (N2 = true, S2());
2199  }
2200  function K2(a, b2) {
2201    L2 = D2(function() {
2202      a(exports.unstable_now());
2203    }, b2);
2204  }
2205  exports.unstable_IdlePriority = 5;
2206  exports.unstable_ImmediatePriority = 1;
2207  exports.unstable_LowPriority = 4;
2208  exports.unstable_NormalPriority = 3;
2209  exports.unstable_Profiling = null;
2210  exports.unstable_UserBlockingPriority = 2;
2211  exports.unstable_cancelCallback = function(a) {
2212    a.callback = null;
2213  };
2214  exports.unstable_continueExecution = function() {
2215    A2 || z2 || (A2 = true, I2(J2));
2216  };
2217  exports.unstable_forceFrameRate = function(a) {
2218    0 > a || 125 < a ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : P2 = 0 < a ? Math.floor(1e3 / a) : 5;
2219  };
2220  exports.unstable_getCurrentPriorityLevel = function() {
2221    return y2;
2222  };
2223  exports.unstable_getFirstCallbackNode = function() {
2224    return h2(r2);
2225  };
2226  exports.unstable_next = function(a) {
2227    switch (y2) {
2228      case 1:
2229      case 2:
2230      case 3:
2231        var b2 = 3;
2232        break;
2233      default:
2234        b2 = y2;
2235    }
2236    var c2 = y2;
2237    y2 = b2;
2238    try {
2239      return a();
2240    } finally {
2241      y2 = c2;
2242    }
2243  };
2244  exports.unstable_pauseExecution = function() {
2245  };
2246  exports.unstable_requestPaint = function() {
2247  };
2248  exports.unstable_runWithPriority = function(a, b2) {
2249    switch (a) {
2250      case 1:
2251      case 2:
2252      case 3:
2253      case 4:
2254      case 5:
2255        break;
2256      default:
2257        a = 3;
2258    }
2259    var c2 = y2;
2260    y2 = a;
2261    try {
2262      return b2();
2263    } finally {
2264      y2 = c2;
2265    }
2266  };
2267  exports.unstable_scheduleCallback = function(a, b2, c2) {
2268    var d2 = exports.unstable_now();
2269    "object" === typeof c2 && null !== c2 ? (c2 = c2.delay, c2 = "number" === typeof c2 && 0 < c2 ? d2 + c2 : d2) : c2 = d2;
2270    switch (a) {
2271      case 1:
2272        var e2 = -1;
2273        break;
2274      case 2:
2275        e2 = 250;
2276        break;
2277      case 5:
2278        e2 = 1073741823;
2279        break;
2280      case 4:
2281        e2 = 1e4;
2282        break;
2283      default:
2284        e2 = 5e3;
2285    }
2286    e2 = c2 + e2;
2287    a = { id: u2++, callback: b2, priorityLevel: a, startTime: c2, expirationTime: e2, sortIndex: -1 };
2288    c2 > d2 ? (a.sortIndex = c2, f2(t2, a), null === h2(r2) && a === h2(t2) && (B2 ? (E2(L2), L2 = -1) : B2 = true, K2(H2, c2 - d2))) : (a.sortIndex = e2, f2(r2, a), A2 || z2 || (A2 = true, I2(J2)));
2289    return a;
2290  };
2291  exports.unstable_shouldYield = M2;
2292  exports.unstable_wrapCallback = function(a) {
2293    var b2 = y2;
2294    return function() {
2295      var c2 = y2;
2296      y2 = b2;
2297      try {
2298        return a.apply(this, arguments);
2299      } finally {
2300        y2 = c2;
2301      }
2302    };
2303  };
2304})(scheduler_production_min);
2305(function(module) {
2306  {
2307    module.exports = scheduler_production_min;
2308  }
2309})(scheduler);
2310/**
2311 * @license React
2312 * react-dom.production.min.js
2313 *
2314 * Copyright (c) Facebook, Inc. and its affiliates.
2315 *
2316 * This source code is licensed under the MIT license found in the
2317 * LICENSE file in the root directory of this source tree.
2318 */
2319var aa = reactExports, ca = schedulerExports;
2320function p(a) {
2321  for (var b2 = "https://reactjs.org/docs/error-decoder.html?invariant=" + a, c2 = 1; c2 < arguments.length; c2++)
2322    b2 += "&args[]=" + encodeURIComponent(arguments[c2]);
2323  return "Minified React error #" + a + "; visit " + b2 + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
2324}
2325var da = /* @__PURE__ */ new Set(), ea = {};
2326function fa(a, b2) {
2327  ha(a, b2);
2328  ha(a + "Capture", b2);
2329}
2330function ha(a, b2) {
2331  ea[a] = b2;
2332  for (a = 0; a < b2.length; a++)
2333    da.add(b2[a]);
2334}
2335var ia = !("undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement), ja = Object.prototype.hasOwnProperty, ka = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, la = {}, ma = {};
2336function oa(a) {
2337  if (ja.call(ma, a))
2338    return true;
2339  if (ja.call(la, a))
2340    return false;
2341  if (ka.test(a))
2342    return ma[a] = true;
2343  la[a] = true;
2344  return false;
2345}
2346function pa(a, b2, c2, d2) {
2347  if (null !== c2 && 0 === c2.type)
2348    return false;
2349  switch (typeof b2) {
2350    case "function":
2351    case "symbol":
2352      return true;
2353    case "boolean":
2354      if (d2)
2355        return false;
2356      if (null !== c2)
2357        return !c2.acceptsBooleans;
2358      a = a.toLowerCase().slice(0, 5);
2359      return "data-" !== a && "aria-" !== a;
2360    default:
2361      return false;
2362  }
2363}
2364function qa(a, b2, c2, d2) {
2365  if (null === b2 || "undefined" === typeof b2 || pa(a, b2, c2, d2))
2366    return true;
2367  if (d2)
2368    return false;
2369  if (null !== c2)
2370    switch (c2.type) {
2371      case 3:
2372        return !b2;
2373      case 4:
2374        return false === b2;
2375      case 5:
2376        return isNaN(b2);
2377      case 6:
2378        return isNaN(b2) || 1 > b2;
2379    }
2380  return false;
2381}
2382function v(a, b2, c2, d2, e2, f2, g2) {
2383  this.acceptsBooleans = 2 === b2 || 3 === b2 || 4 === b2;
2384  this.attributeName = d2;
2385  this.attributeNamespace = e2;
2386  this.mustUseProperty = c2;
2387  this.propertyName = a;
2388  this.type = b2;
2389  this.sanitizeURL = f2;
2390  this.removeEmptyString = g2;
2391}
2392var z = {};
2393"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a) {
2394  z[a] = new v(a, 0, false, a, null, false, false);
2395});
2396[["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(a) {
2397  var b2 = a[0];
2398  z[b2] = new v(b2, 1, false, a[1], null, false, false);
2399});
2400["contentEditable", "draggable", "spellCheck", "value"].forEach(function(a) {
2401  z[a] = new v(a, 2, false, a.toLowerCase(), null, false, false);
2402});
2403["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(a) {
2404  z[a] = new v(a, 2, false, a, null, false, false);
2405});
2406"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a) {
2407  z[a] = new v(a, 3, false, a.toLowerCase(), null, false, false);
2408});
2409["checked", "multiple", "muted", "selected"].forEach(function(a) {
2410  z[a] = new v(a, 3, true, a, null, false, false);
2411});
2412["capture", "download"].forEach(function(a) {
2413  z[a] = new v(a, 4, false, a, null, false, false);
2414});
2415["cols", "rows", "size", "span"].forEach(function(a) {
2416  z[a] = new v(a, 6, false, a, null, false, false);
2417});
2418["rowSpan", "start"].forEach(function(a) {
2419  z[a] = new v(a, 5, false, a.toLowerCase(), null, false, false);
2420});
2421var ra = /[\-:]([a-z])/g;
2422function sa(a) {
2423  return a[1].toUpperCase();
2424}
2425"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a) {
2426  var b2 = a.replace(
2427    ra,
2428    sa
2429  );
2430  z[b2] = new v(b2, 1, false, a, null, false, false);
2431});
2432"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a) {
2433  var b2 = a.replace(ra, sa);
2434  z[b2] = new v(b2, 1, false, a, "http://www.w3.org/1999/xlink", false, false);
2435});
2436["xml:base", "xml:lang", "xml:space"].forEach(function(a) {
2437  var b2 = a.replace(ra, sa);
2438  z[b2] = new v(b2, 1, false, a, "http://www.w3.org/XML/1998/namespace", false, false);
2439});
2440["tabIndex", "crossOrigin"].forEach(function(a) {
2441  z[a] = new v(a, 1, false, a.toLowerCase(), null, false, false);
2442});
2443z.xlinkHref = new v("xlinkHref", 1, false, "xlink:href", "http://www.w3.org/1999/xlink", true, false);
2444["src", "href", "action", "formAction"].forEach(function(a) {
2445  z[a] = new v(a, 1, false, a.toLowerCase(), null, true, true);
2446});
2447function ta(a, b2, c2, d2) {
2448  var e2 = z.hasOwnProperty(b2) ? z[b2] : null;
2449  if (null !== e2 ? 0 !== e2.type : d2 || !(2 < b2.length) || "o" !== b2[0] && "O" !== b2[0] || "n" !== b2[1] && "N" !== b2[1])
2450    qa(b2, c2, e2, d2) && (c2 = null), d2 || null === e2 ? oa(b2) && (null === c2 ? a.removeAttribute(b2) : a.setAttribute(b2, "" + c2)) : e2.mustUseProperty ? a[e2.propertyName] = null === c2 ? 3 === e2.type ? false : "" : c2 : (b2 = e2.attributeName, d2 = e2.attributeNamespace, null === c2 ? a.removeAttribute(b2) : (e2 = e2.type, c2 = 3 === e2 || 4 === e2 && true === c2 ? "" : "" + c2, d2 ? a.setAttributeNS(d2, b2, c2) : a.setAttribute(b2, c2)));
2451}
2452var ua = aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, va = Symbol.for("react.element"), wa = Symbol.for("react.portal"), ya = Symbol.for("react.fragment"), za = Symbol.for("react.strict_mode"), Aa = Symbol.for("react.profiler"), Ba = Symbol.for("react.provider"), Ca = Symbol.for("react.context"), Da = Symbol.for("react.forward_ref"), Ea = Symbol.for("react.suspense"), Fa = Symbol.for("react.suspense_list"), Ga = Symbol.for("react.memo"), Ha = Symbol.for("react.lazy");
2453var Ia = Symbol.for("react.offscreen");
2454var Ja = Symbol.iterator;
2455function Ka(a) {
2456  if (null === a || "object" !== typeof a)
2457    return null;
2458  a = Ja && a[Ja] || a["@@iterator"];
2459  return "function" === typeof a ? a : null;
2460}
2461var A = Object.assign, La;
2462function Ma(a) {
2463  if (void 0 === La)
2464    try {
2465      throw Error();
2466    } catch (c2) {
2467      var b2 = c2.stack.trim().match(/\n( *(at )?)/);
2468      La = b2 && b2[1] || "";
2469    }
2470  return "\n" + La + a;
2471}
2472var Na = false;
2473function Oa(a, b2) {
2474  if (!a || Na)
2475    return "";
2476  Na = true;
2477  var c2 = Error.prepareStackTrace;
2478  Error.prepareStackTrace = void 0;
2479  try {
2480    if (b2)
2481      if (b2 = function() {
2482        throw Error();
2483      }, Object.defineProperty(b2.prototype, "props", { set: function() {
2484        throw Error();
2485      } }), "object" === typeof Reflect && Reflect.construct) {
2486        try {
2487          Reflect.construct(b2, []);
2488        } catch (l2) {
2489          var d2 = l2;
2490        }
2491        Reflect.construct(a, [], b2);
2492      } else {
2493        try {
2494          b2.call();
2495        } catch (l2) {
2496          d2 = l2;
2497        }
2498        a.call(b2.prototype);
2499      }
2500    else {
2501      try {
2502        throw Error();
2503      } catch (l2) {
2504        d2 = l2;
2505      }
2506      a();
2507    }
2508  } catch (l2) {
2509    if (l2 && d2 && "string" === typeof l2.stack) {
2510      for (var e2 = l2.stack.split("\n"), f2 = d2.stack.split("\n"), g2 = e2.length - 1, h2 = f2.length - 1; 1 <= g2 && 0 <= h2 && e2[g2] !== f2[h2]; )
2511        h2--;
2512      for (; 1 <= g2 && 0 <= h2; g2--, h2--)
2513        if (e2[g2] !== f2[h2]) {
2514          if (1 !== g2 || 1 !== h2) {
2515            do
2516              if (g2--, h2--, 0 > h2 || e2[g2] !== f2[h2]) {
2517                var k2 = "\n" + e2[g2].replace(" at new ", " at ");
2518                a.displayName && k2.includes("<anonymous>") && (k2 = k2.replace("<anonymous>", a.displayName));
2519                return k2;
2520              }
2521            while (1 <= g2 && 0 <= h2);
2522          }
2523          break;
2524        }
2525    }
2526  } finally {
2527    Na = false, Error.prepareStackTrace = c2;
2528  }
2529  return (a = a ? a.displayName || a.name : "") ? Ma(a) : "";
2530}
2531function Pa(a) {
2532  switch (a.tag) {
2533    case 5:
2534      return Ma(a.type);
2535    case 16:
2536      return Ma("Lazy");
2537    case 13:
2538      return Ma("Suspense");
2539    case 19:
2540      return Ma("SuspenseList");
2541    case 0:
2542    case 2:
2543    case 15:
2544      return a = Oa(a.type, false), a;
2545    case 11:
2546      return a = Oa(a.type.render, false), a;
2547    case 1:
2548      return a = Oa(a.type, true), a;
2549    default:
2550      return "";
2551  }
2552}
2553function Qa(a) {
2554  if (null == a)
2555    return null;
2556  if ("function" === typeof a)
2557    return a.displayName || a.name || null;
2558  if ("string" === typeof a)
2559    return a;
2560  switch (a) {
2561    case ya:
2562      return "Fragment";
2563    case wa:
2564      return "Portal";
2565    case Aa:
2566      return "Profiler";
2567    case za:
2568      return "StrictMode";
2569    case Ea:
2570      return "Suspense";
2571    case Fa:
2572      return "SuspenseList";
2573  }
2574  if ("object" === typeof a)
2575    switch (a.$$typeof) {
2576      case Ca:
2577        return (a.displayName || "Context") + ".Consumer";
2578      case Ba:
2579        return (a._context.displayName || "Context") + ".Provider";
2580      case Da:
2581        var b2 = a.render;
2582        a = a.displayName;
2583        a || (a = b2.displayName || b2.name || "", a = "" !== a ? "ForwardRef(" + a + ")" : "ForwardRef");
2584        return a;
2585      case Ga:
2586        return b2 = a.displayName || null, null !== b2 ? b2 : Qa(a.type) || "Memo";
2587      case Ha:
2588        b2 = a._payload;
2589        a = a._init;
2590        try {
2591          return Qa(a(b2));
2592        } catch (c2) {
2593        }
2594    }
2595  return null;
2596}
2597function Ra(a) {
2598  var b2 = a.type;
2599  switch (a.tag) {
2600    case 24:
2601      return "Cache";
2602    case 9:
2603      return (b2.displayName || "Context") + ".Consumer";
2604    case 10:
2605      return (b2._context.displayName || "Context") + ".Provider";
2606    case 18:
2607      return "DehydratedFragment";
2608    case 11:
2609      return a = b2.render, a = a.displayName || a.name || "", b2.displayName || ("" !== a ? "ForwardRef(" + a + ")" : "ForwardRef");
2610    case 7:
2611      return "Fragment";
2612    case 5:
2613      return b2;
2614    case 4:
2615      return "Portal";
2616    case 3:
2617      return "Root";
2618    case 6:
2619      return "Text";
2620    case 16:
2621      return Qa(b2);
2622    case 8:
2623      return b2 === za ? "StrictMode" : "Mode";
2624    case 22:
2625      return "Offscreen";
2626    case 12:
2627      return "Profiler";
2628    case 21:
2629      return "Scope";
2630    case 13:
2631      return "Suspense";
2632    case 19:
2633      return "SuspenseList";
2634    case 25:
2635      return "TracingMarker";
2636    case 1:
2637    case 0:
2638    case 17:
2639    case 2:
2640    case 14:
2641    case 15:
2642      if ("function" === typeof b2)
2643        return b2.displayName || b2.name || null;
2644      if ("string" === typeof b2)
2645        return b2;
2646  }
2647  return null;
2648}
2649function Sa(a) {
2650  switch (typeof a) {
2651    case "boolean":
2652    case "number":
2653    case "string":
2654    case "undefined":
2655      return a;
2656    case "object":
2657      return a;
2658    default:
2659      return "";
2660  }
2661}
2662function Ta(a) {
2663  var b2 = a.type;
2664  return (a = a.nodeName) && "input" === a.toLowerCase() && ("checkbox" === b2 || "radio" === b2);
2665}
2666function Ua(a) {
2667  var b2 = Ta(a) ? "checked" : "value", c2 = Object.getOwnPropertyDescriptor(a.constructor.prototype, b2), d2 = "" + a[b2];
2668  if (!a.hasOwnProperty(b2) && "undefined" !== typeof c2 && "function" === typeof c2.get && "function" === typeof c2.set) {
2669    var e2 = c2.get, f2 = c2.set;
2670    Object.defineProperty(a, b2, { configurable: true, get: function() {
2671      return e2.call(this);
2672    }, set: function(a2) {
2673      d2 = "" + a2;
2674      f2.call(this, a2);
2675    } });
2676    Object.defineProperty(a, b2, { enumerable: c2.enumerable });
2677    return { getValue: function() {
2678      return d2;
2679    }, setValue: function(a2) {
2680      d2 = "" + a2;
2681    }, stopTracking: function() {
2682      a._valueTracker = null;
2683      delete a[b2];
2684    } };
2685  }
2686}
2687function Va(a) {
2688  a._valueTracker || (a._valueTracker = Ua(a));
2689}
2690function Wa(a) {
2691  if (!a)
2692    return false;
2693  var b2 = a._valueTracker;
2694  if (!b2)
2695    return true;
2696  var c2 = b2.getValue();
2697  var d2 = "";
2698  a && (d2 = Ta(a) ? a.checked ? "true" : "false" : a.value);
2699  a = d2;
2700  return a !== c2 ? (b2.setValue(a), true) : false;
2701}
2702function Xa(a) {
2703  a = a || ("undefined" !== typeof document ? document : void 0);
2704  if ("undefined" === typeof a)
2705    return null;
2706  try {
2707    return a.activeElement || a.body;
2708  } catch (b2) {
2709    return a.body;
2710  }
2711}
2712function Ya(a, b2) {
2713  var c2 = b2.checked;
2714  return A({}, b2, { defaultChecked: void 0, defaultValue: void 0, value: void 0, checked: null != c2 ? c2 : a._wrapperState.initialChecked });
2715}
2716function Za(a, b2) {
2717  var c2 = null == b2.defaultValue ? "" : b2.defaultValue, d2 = null != b2.checked ? b2.checked : b2.defaultChecked;
2718  c2 = Sa(null != b2.value ? b2.value : c2);
2719  a._wrapperState = { initialChecked: d2, initialValue: c2, controlled: "checkbox" === b2.type || "radio" === b2.type ? null != b2.checked : null != b2.value };
2720}
2721function ab(a, b2) {
2722  b2 = b2.checked;
2723  null != b2 && ta(a, "checked", b2, false);
2724}
2725function bb(a, b2) {
2726  ab(a, b2);
2727  var c2 = Sa(b2.value), d2 = b2.type;
2728  if (null != c2)
2729    if ("number" === d2) {
2730      if (0 === c2 && "" === a.value || a.value != c2)
2731        a.value = "" + c2;
2732    } else
2733      a.value !== "" + c2 && (a.value = "" + c2);
2734  else if ("submit" === d2 || "reset" === d2) {
2735    a.removeAttribute("value");
2736    return;
2737  }
2738  b2.hasOwnProperty("value") ? cb(a, b2.type, c2) : b2.hasOwnProperty("defaultValue") && cb(a, b2.type, Sa(b2.defaultValue));
2739  null == b2.checked && null != b2.defaultChecked && (a.defaultChecked = !!b2.defaultChecked);
2740}
2741function db(a, b2, c2) {
2742  if (b2.hasOwnProperty("value") || b2.hasOwnProperty("defaultValue")) {
2743    var d2 = b2.type;
2744    if (!("submit" !== d2 && "reset" !== d2 || void 0 !== b2.value && null !== b2.value))
2745      return;
2746    b2 = "" + a._wrapperState.initialValue;
2747    c2 || b2 === a.value || (a.value = b2);
2748    a.defaultValue = b2;
2749  }
2750  c2 = a.name;
2751  "" !== c2 && (a.name = "");
2752  a.defaultChecked = !!a._wrapperState.initialChecked;
2753  "" !== c2 && (a.name = c2);
2754}
2755function cb(a, b2, c2) {
2756  if ("number" !== b2 || Xa(a.ownerDocument) !== a)
2757    null == c2 ? a.defaultValue = "" + a._wrapperState.initialValue : a.defaultValue !== "" + c2 && (a.defaultValue = "" + c2);
2758}
2759var eb = Array.isArray;
2760function fb(a, b2, c2, d2) {
2761  a = a.options;
2762  if (b2) {
2763    b2 = {};
2764    for (var e2 = 0; e2 < c2.length; e2++)
2765      b2["$" + c2[e2]] = true;
2766    for (c2 = 0; c2 < a.length; c2++)
2767      e2 = b2.hasOwnProperty("$" + a[c2].value), a[c2].selected !== e2 && (a[c2].selected = e2), e2 && d2 && (a[c2].defaultSelected = true);
2768  } else {
2769    c2 = "" + Sa(c2);
2770    b2 = null;
2771    for (e2 = 0; e2 < a.length; e2++) {
2772      if (a[e2].value === c2) {
2773        a[e2].selected = true;
2774        d2 && (a[e2].defaultSelected = true);
2775        return;
2776      }
2777      null !== b2 || a[e2].disabled || (b2 = a[e2]);
2778    }
2779    null !== b2 && (b2.selected = true);
2780  }
2781}
2782function gb(a, b2) {
2783  if (null != b2.dangerouslySetInnerHTML)
2784    throw Error(p(91));
2785  return A({}, b2, { value: void 0, defaultValue: void 0, children: "" + a._wrapperState.initialValue });
2786}
2787function hb(a, b2) {
2788  var c2 = b2.value;
2789  if (null == c2) {
2790    c2 = b2.children;
2791    b2 = b2.defaultValue;
2792    if (null != c2) {
2793      if (null != b2)
2794        throw Error(p(92));
2795      if (eb(c2)) {
2796        if (1 < c2.length)
2797          throw Error(p(93));
2798        c2 = c2[0];
2799      }
2800      b2 = c2;
2801    }
2802    null == b2 && (b2 = "");
2803    c2 = b2;
2804  }
2805  a._wrapperState = { initialValue: Sa(c2) };
2806}
2807function ib(a, b2) {
2808  var c2 = Sa(b2.value), d2 = Sa(b2.defaultValue);
2809  null != c2 && (c2 = "" + c2, c2 !== a.value && (a.value = c2), null == b2.defaultValue && a.defaultValue !== c2 && (a.defaultValue = c2));
2810  null != d2 && (a.defaultValue = "" + d2);
2811}
2812function jb(a) {
2813  var b2 = a.textContent;
2814  b2 === a._wrapperState.initialValue && "" !== b2 && null !== b2 && (a.value = b2);
2815}
2816function kb(a) {
2817  switch (a) {
2818    case "svg":
2819      return "http://www.w3.org/2000/svg";
2820    case "math":
2821      return "http://www.w3.org/1998/Math/MathML";
2822    default:
2823      return "http://www.w3.org/1999/xhtml";
2824  }
2825}
2826function lb(a, b2) {
2827  return null == a || "http://www.w3.org/1999/xhtml" === a ? kb(b2) : "http://www.w3.org/2000/svg" === a && "foreignObject" === b2 ? "http://www.w3.org/1999/xhtml" : a;
2828}
2829var mb, nb = function(a) {
2830  return "undefined" !== typeof MSApp && MSApp.execUnsafeLocalFunction ? function(b2, c2, d2, e2) {
2831    MSApp.execUnsafeLocalFunction(function() {
2832      return a(b2, c2, d2, e2);
2833    });
2834  } : a;
2835}(function(a, b2) {
2836  if ("http://www.w3.org/2000/svg" !== a.namespaceURI || "innerHTML" in a)
2837    a.innerHTML = b2;
2838  else {
2839    mb = mb || document.createElement("div");
2840    mb.innerHTML = "<svg>" + b2.valueOf().toString() + "</svg>";
2841    for (b2 = mb.firstChild; a.firstChild; )
2842      a.removeChild(a.firstChild);
2843    for (; b2.firstChild; )
2844      a.appendChild(b2.firstChild);
2845  }
2846});
2847function ob(a, b2) {
2848  if (b2) {
2849    var c2 = a.firstChild;
2850    if (c2 && c2 === a.lastChild && 3 === c2.nodeType) {
2851      c2.nodeValue = b2;
2852      return;
2853    }
2854  }
2855  a.textContent = b2;
2856}
2857var pb = {
2858  animationIterationCount: true,
2859  aspectRatio: true,
2860  borderImageOutset: true,
2861  borderImageSlice: true,
2862  borderImageWidth: true,
2863  boxFlex: true,
2864  boxFlexGroup: true,
2865  boxOrdinalGroup: true,
2866  columnCount: true,
2867  columns: true,
2868  flex: true,
2869  flexGrow: true,
2870  flexPositive: true,
2871  flexShrink: true,
2872  flexNegative: true,
2873  flexOrder: true,
2874  gridArea: true,
2875  gridRow: true,
2876  gridRowEnd: true,
2877  gridRowSpan: true,
2878  gridRowStart: true,
2879  gridColumn: true,
2880  gridColumnEnd: true,
2881  gridColumnSpan: true,
2882  gridColumnStart: true,
2883  fontWeight: true,
2884  lineClamp: true,
2885  lineHeight: true,
2886  opacity: true,
2887  order: true,
2888  orphans: true,
2889  tabSize: true,
2890  widows: true,
2891  zIndex: true,
2892  zoom: true,
2893  fillOpacity: true,
2894  floodOpacity: true,
2895  stopOpacity: true,
2896  strokeDasharray: true,
2897  strokeDashoffset: true,
2898  strokeMiterlimit: true,
2899  strokeOpacity: true,
2900  strokeWidth: true
2901}, qb = ["Webkit", "ms", "Moz", "O"];
2902Object.keys(pb).forEach(function(a) {
2903  qb.forEach(function(b2) {
2904    b2 = b2 + a.charAt(0).toUpperCase() + a.substring(1);
2905    pb[b2] = pb[a];
2906  });
2907});
2908function rb(a, b2, c2) {
2909  return null == b2 || "boolean" === typeof b2 || "" === b2 ? "" : c2 || "number" !== typeof b2 || 0 === b2 || pb.hasOwnProperty(a) && pb[a] ? ("" + b2).trim() : b2 + "px";
2910}
2911function sb(a, b2) {
2912  a = a.style;
2913  for (var c2 in b2)
2914    if (b2.hasOwnProperty(c2)) {
2915      var d2 = 0 === c2.indexOf("--"), e2 = rb(c2, b2[c2], d2);
2916      "float" === c2 && (c2 = "cssFloat");
2917      d2 ? a.setProperty(c2, e2) : a[c2] = e2;
2918    }
2919}
2920var tb = A({ menuitem: true }, { area: true, base: true, br: true, col: true, embed: true, hr: true, img: true, input: true, keygen: true, link: true, meta: true, param: true, source: true, track: true, wbr: true });
2921function ub(a, b2) {
2922  if (b2) {
2923    if (tb[a] && (null != b2.children || null != b2.dangerouslySetInnerHTML))
2924      throw Error(p(137, a));
2925    if (null != b2.dangerouslySetInnerHTML) {
2926      if (null != b2.children)
2927        throw Error(p(60));
2928      if ("object" !== typeof b2.dangerouslySetInnerHTML || !("__html" in b2.dangerouslySetInnerHTML))
2929        throw Error(p(61));
2930    }
2931    if (null != b2.style && "object" !== typeof b2.style)
2932      throw Error(p(62));
2933  }
2934}
2935function vb(a, b2) {
2936  if (-1 === a.indexOf("-"))
2937    return "string" === typeof b2.is;
2938  switch (a) {
2939    case "annotation-xml":
2940    case "color-profile":
2941    case "font-face":
2942    case "font-face-src":
2943    case "font-face-uri":
2944    case "font-face-format":
2945    case "font-face-name":
2946    case "missing-glyph":
2947      return false;
2948    default:
2949      return true;
2950  }
2951}
2952var wb = null;
2953function xb(a) {
2954  a = a.target || a.srcElement || window;
2955  a.correspondingUseElement && (a = a.correspondingUseElement);
2956  return 3 === a.nodeType ? a.parentNode : a;
2957}
2958var yb = null, zb = null, Ab = null;
2959function Bb(a) {
2960  if (a = Cb(a)) {
2961    if ("function" !== typeof yb)
2962      throw Error(p(280));
2963    var b2 = a.stateNode;
2964    b2 && (b2 = Db(b2), yb(a.stateNode, a.type, b2));
2965  }
2966}
2967function Eb(a) {
2968  zb ? Ab ? Ab.push(a) : Ab = [a] : zb = a;
2969}
2970function Fb() {
2971  if (zb) {
2972    var a = zb, b2 = Ab;
2973    Ab = zb = null;
2974    Bb(a);
2975    if (b2)
2976      for (a = 0; a < b2.length; a++)
2977        Bb(b2[a]);
2978  }
2979}
2980function Gb(a, b2) {
2981  return a(b2);
2982}
2983function Hb() {
2984}
2985var Ib = false;
2986function Jb(a, b2, c2) {
2987  if (Ib)
2988    return a(b2, c2);
2989  Ib = true;
2990  try {
2991    return Gb(a, b2, c2);
2992  } finally {
2993    if (Ib = false, null !== zb || null !== Ab)
2994      Hb(), Fb();
2995  }
2996}
2997function Kb(a, b2) {
2998  var c2 = a.stateNode;
2999  if (null === c2)
3000    return null;
3001  var d2 = Db(c2);
3002  if (null === d2)
3003    return null;
3004  c2 = d2[b2];
3005  a:
3006    switch (b2) {
3007      case "onClick":
3008      case "onClickCapture":
3009      case "onDoubleClick":
3010      case "onDoubleClickCapture":
3011      case "onMouseDown":
3012      case "onMouseDownCapture":
3013      case "onMouseMove":
3014      case "onMouseMoveCapture":
3015      case "onMouseUp":
3016      case "onMouseUpCapture":
3017      case "onMouseEnter":
3018        (d2 = !d2.disabled) || (a = a.type, d2 = !("button" === a || "input" === a || "select" === a || "textarea" === a));
3019        a = !d2;
3020        break a;
3021      default:
3022        a = false;
3023    }
3024  if (a)
3025    return null;
3026  if (c2 && "function" !== typeof c2)
3027    throw Error(p(231, b2, typeof c2));
3028  return c2;
3029}
3030var Lb = false;
3031if (ia)
3032  try {
3033    var Mb = {};
3034    Object.defineProperty(Mb, "passive", { get: function() {
3035      Lb = true;
3036    } });
3037    window.addEventListener("test", Mb, Mb);
3038    window.removeEventListener("test", Mb, Mb);
3039  } catch (a) {
3040    Lb = false;
3041  }
3042function Nb(a, b2, c2, d2, e2, f2, g2, h2, k2) {
3043  var l2 = Array.prototype.slice.call(arguments, 3);
3044  try {
3045    b2.apply(c2, l2);
3046  } catch (m2) {
3047    this.onError(m2);
3048  }
3049}
3050var Ob = false, Pb = null, Qb = false, Rb = null, Sb = { onError: function(a) {
3051  Ob = true;
3052  Pb = a;
3053} };
3054function Tb(a, b2, c2, d2, e2, f2, g2, h2, k2) {
3055  Ob = false;
3056  Pb = null;
3057  Nb.apply(Sb, arguments);
3058}
3059function Ub(a, b2, c2, d2, e2, f2, g2, h2, k2) {
3060  Tb.apply(this, arguments);
3061  if (Ob) {
3062    if (Ob) {
3063      var l2 = Pb;
3064      Ob = false;
3065      Pb = null;
3066    } else
3067      throw Error(p(198));
3068    Qb || (Qb = true, Rb = l2);
3069  }
3070}
3071function Vb(a) {
3072  var b2 = a, c2 = a;
3073  if (a.alternate)
3074    for (; b2.return; )
3075      b2 = b2.return;
3076  else {
3077    a = b2;
3078    do
3079      b2 = a, 0 !== (b2.flags & 4098) && (c2 = b2.return), a = b2.return;
3080    while (a);
3081  }
3082  return 3 === b2.tag ? c2 : null;
3083}
3084function Wb(a) {
3085  if (13 === a.tag) {
3086    var b2 = a.memoizedState;
3087    null === b2 && (a = a.alternate, null !== a && (b2 = a.memoizedState));
3088    if (null !== b2)
3089      return b2.dehydrated;
3090  }
3091  return null;
3092}
3093function Xb(a) {
3094  if (Vb(a) !== a)
3095    throw Error(p(188));
3096}
3097function Yb(a) {
3098  var b2 = a.alternate;
3099  if (!b2) {
3100    b2 = Vb(a);
3101    if (null === b2)
3102      throw Error(p(188));
3103    return b2 !== a ? null : a;
3104  }
3105  for (var c2 = a, d2 = b2; ; ) {
3106    var e2 = c2.return;
3107    if (null === e2)
3108      break;
3109    var f2 = e2.alternate;
3110    if (null === f2) {
3111      d2 = e2.return;
3112      if (null !== d2) {
3113        c2 = d2;
3114        continue;
3115      }
3116      break;
3117    }
3118    if (e2.child === f2.child) {
3119      for (f2 = e2.child; f2; ) {
3120        if (f2 === c2)
3121          return Xb(e2), a;
3122        if (f2 === d2)
3123          return Xb(e2), b2;
3124        f2 = f2.sibling;
3125      }
3126      throw Error(p(188));
3127    }
3128    if (c2.return !== d2.return)
3129      c2 = e2, d2 = f2;
3130    else {
3131      for (var g2 = false, h2 = e2.child; h2; ) {
3132        if (h2 === c2) {
3133          g2 = true;
3134          c2 = e2;
3135          d2 = f2;
3136          break;
3137        }
3138        if (h2 === d2) {
3139          g2 = true;
3140          d2 = e2;
3141          c2 = f2;
3142          break;
3143        }
3144        h2 = h2.sibling;
3145      }
3146      if (!g2) {
3147        for (h2 = f2.child; h2; ) {
3148          if (h2 === c2) {
3149            g2 = true;
3150            c2 = f2;
3151            d2 = e2;
3152            break;
3153          }
3154          if (h2 === d2) {
3155            g2 = true;
3156            d2 = f2;
3157            c2 = e2;
3158            break;
3159          }
3160          h2 = h2.sibling;
3161        }
3162        if (!g2)
3163          throw Error(p(189));
3164      }
3165    }
3166    if (c2.alternate !== d2)
3167      throw Error(p(190));
3168  }
3169  if (3 !== c2.tag)
3170    throw Error(p(188));
3171  return c2.stateNode.current === c2 ? a : b2;
3172}
3173function Zb(a) {
3174  a = Yb(a);
3175  return null !== a ? $b(a) : null;
3176}
3177function $b(a) {
3178  if (5 === a.tag || 6 === a.tag)
3179    return a;
3180  for (a = a.child; null !== a; ) {
3181    var b2 = $b(a);
3182    if (null !== b2)
3183      return b2;
3184    a = a.sibling;
3185  }
3186  return null;
3187}
3188var ac = ca.unstable_scheduleCallback, bc = ca.unstable_cancelCallback, cc = ca.unstable_shouldYield, dc = ca.unstable_requestPaint, B = ca.unstable_now, ec = ca.unstable_getCurrentPriorityLevel, fc = ca.unstable_ImmediatePriority, gc = ca.unstable_UserBlockingPriority, hc = ca.unstable_NormalPriority, ic = ca.unstable_LowPriority, jc = ca.unstable_IdlePriority, kc = null, lc = null;
3189function mc(a) {
3190  if (lc && "function" === typeof lc.onCommitFiberRoot)
3191    try {
3192      lc.onCommitFiberRoot(kc, a, void 0, 128 === (a.current.flags & 128));
3193    } catch (b2) {
3194    }
3195}
3196var oc = Math.clz32 ? Math.clz32 : nc, pc = Math.log, qc = Math.LN2;
3197function nc(a) {
3198  a >>>= 0;
3199  return 0 === a ? 32 : 31 - (pc(a) / qc | 0) | 0;
3200}
3201var rc = 64, sc = 4194304;
3202function tc(a) {
3203  switch (a & -a) {
3204    case 1:
3205      return 1;
3206    case 2:
3207      return 2;
3208    case 4:
3209      return 4;
3210    case 8:
3211      return 8;
3212    case 16:
3213      return 16;
3214    case 32:
3215      return 32;
3216    case 64:
3217    case 128:
3218    case 256:
3219    case 512:
3220    case 1024:
3221    case 2048:
3222    case 4096:
3223    case 8192:
3224    case 16384:
3225    case 32768:
3226    case 65536:
3227    case 131072:
3228    case 262144:
3229    case 524288:
3230    case 1048576:
3231    case 2097152:
3232      return a & 4194240;
3233    case 4194304:
3234    case 8388608:
3235    case 16777216:
3236    case 33554432:
3237    case 67108864:
3238      return a & 130023424;
3239    case 134217728:
3240      return 134217728;
3241    case 268435456:
3242      return 268435456;
3243    case 536870912:
3244      return 536870912;
3245    case 1073741824:
3246      return 1073741824;
3247    default:
3248      return a;
3249  }
3250}
3251function uc(a, b2) {
3252  var c2 = a.pendingLanes;
3253  if (0 === c2)
3254    return 0;
3255  var d2 = 0, e2 = a.suspendedLanes, f2 = a.pingedLanes, g2 = c2 & 268435455;
3256  if (0 !== g2) {
3257    var h2 = g2 & ~e2;
3258    0 !== h2 ? d2 = tc(h2) : (f2 &= g2, 0 !== f2 && (d2 = tc(f2)));
3259  } else
3260    g2 = c2 & ~e2, 0 !== g2 ? d2 = tc(g2) : 0 !== f2 && (d2 = tc(f2));
3261  if (0 === d2)
3262    return 0;
3263  if (0 !== b2 && b2 !== d2 && 0 === (b2 & e2) && (e2 = d2 & -d2, f2 = b2 & -b2, e2 >= f2 || 16 === e2 && 0 !== (f2 & 4194240)))
3264    return b2;
3265  0 !== (d2 & 4) && (d2 |= c2 & 16);
3266  b2 = a.entangledLanes;
3267  if (0 !== b2)
3268    for (a = a.entanglements, b2 &= d2; 0 < b2; )
3269      c2 = 31 - oc(b2), e2 = 1 << c2, d2 |= a[c2], b2 &= ~e2;
3270  return d2;
3271}
3272function vc(a, b2) {
3273  switch (a) {
3274    case 1:
3275    case 2:
3276    case 4:
3277      return b2 + 250;
3278    case 8:
3279    case 16:
3280    case 32:
3281    case 64:
3282    case 128:
3283    case 256:
3284    case 512:
3285    case 1024:
3286    case 2048:
3287    case 4096:
3288    case 8192:
3289    case 16384:
3290    case 32768:
3291    case 65536:
3292    case 131072:
3293    case 262144:
3294    case 524288:
3295    case 1048576:
3296    case 2097152:
3297      return b2 + 5e3;
3298    case 4194304:
3299    case 8388608:
3300    case 16777216:
3301    case 33554432:
3302    case 67108864:
3303      return -1;
3304    case 134217728:
3305    case 268435456:
3306    case 536870912:
3307    case 1073741824:
3308      return -1;
3309    default:
3310      return -1;
3311  }
3312}
3313function wc(a, b2) {
3314  for (var c2 = a.suspendedLanes, d2 = a.pingedLanes, e2 = a.expirationTimes, f2 = a.pendingLanes; 0 < f2; ) {
3315    var g2 = 31 - oc(f2), h2 = 1 << g2, k2 = e2[g2];
3316    if (-1 === k2) {
3317      if (0 === (h2 & c2) || 0 !== (h2 & d2))
3318        e2[g2] = vc(h2, b2);
3319    } else
3320      k2 <= b2 && (a.expiredLanes |= h2);
3321    f2 &= ~h2;
3322  }
3323}
3324function xc(a) {
3325  a = a.pendingLanes & -1073741825;
3326  return 0 !== a ? a : a & 1073741824 ? 1073741824 : 0;
3327}
3328function yc() {
3329  var a = rc;
3330  rc <<= 1;
3331  0 === (rc & 4194240) && (rc = 64);
3332  return a;
3333}
3334function zc(a) {
3335  for (var b2 = [], c2 = 0; 31 > c2; c2++)
3336    b2.push(a);
3337  return b2;
3338}
3339function Ac(a, b2, c2) {
3340  a.pendingLanes |= b2;
3341  536870912 !== b2 && (a.suspendedLanes = 0, a.pingedLanes = 0);
3342  a = a.eventTimes;
3343  b2 = 31 - oc(b2);
3344  a[b2] = c2;
3345}
3346function Bc(a, b2) {
3347  var c2 = a.pendingLanes & ~b2;
3348  a.pendingLanes = b2;
3349  a.suspendedLanes = 0;
3350  a.pingedLanes = 0;
3351  a.expiredLanes &= b2;
3352  a.mutableReadLanes &= b2;
3353  a.entangledLanes &= b2;
3354  b2 = a.entanglements;
3355  var d2 = a.eventTimes;
3356  for (a = a.expirationTimes; 0 < c2; ) {
3357    var e2 = 31 - oc(c2), f2 = 1 << e2;
3358    b2[e2] = 0;
3359    d2[e2] = -1;
3360    a[e2] = -1;
3361    c2 &= ~f2;
3362  }
3363}
3364function Cc(a, b2) {
3365  var c2 = a.entangledLanes |= b2;
3366  for (a = a.entanglements; c2; ) {
3367    var d2 = 31 - oc(c2), e2 = 1 << d2;
3368    e2 & b2 | a[d2] & b2 && (a[d2] |= b2);
3369    c2 &= ~e2;
3370  }
3371}
3372var C = 0;
3373function Dc(a) {
3374  a &= -a;
3375  return 1 < a ? 4 < a ? 0 !== (a & 268435455) ? 16 : 536870912 : 4 : 1;
3376}
3377var Ec, Fc, Gc, Hc, Ic, Jc = false, Kc = [], Lc = null, Mc = null, Nc = null, Oc = /* @__PURE__ */ new Map(), Pc = /* @__PURE__ */ new Map(), Qc = [], Rc = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");
3378function Sc(a, b2) {
3379  switch (a) {
3380    case "focusin":
3381    case "focusout":
3382      Lc = null;
3383      break;
3384    case "dragenter":
3385    case "dragleave":
3386      Mc = null;
3387      break;
3388    case "mouseover":
3389    case "mouseout":
3390      Nc = null;
3391      break;
3392    case "pointerover":
3393    case "pointerout":
3394      Oc.delete(b2.pointerId);
3395      break;
3396    case "gotpointercapture":
3397    case "lostpointercapture":
3398      Pc.delete(b2.pointerId);
3399  }
3400}
3401function Tc(a, b2, c2, d2, e2, f2) {
3402  if (null === a || a.nativeEvent !== f2)
3403    return a = { blockedOn: b2, domEventName: c2, eventSystemFlags: d2, nativeEvent: f2, targetContainers: [e2] }, null !== b2 && (b2 = Cb(b2), null !== b2 && Fc(b2)), a;
3404  a.eventSystemFlags |= d2;
3405  b2 = a.targetContainers;
3406  null !== e2 && -1 === b2.indexOf(e2) && b2.push(e2);
3407  return a;
3408}
3409function Uc(a, b2, c2, d2, e2) {
3410  switch (b2) {
3411    case "focusin":
3412      return Lc = Tc(Lc, a, b2, c2, d2, e2), true;
3413    case "dragenter":
3414      return Mc = Tc(Mc, a, b2, c2, d2, e2), true;
3415    case "mouseover":
3416      return Nc = Tc(Nc, a, b2, c2, d2, e2), true;
3417    case "pointerover":
3418      var f2 = e2.pointerId;
3419      Oc.set(f2, Tc(Oc.get(f2) || null, a, b2, c2, d2, e2));
3420      return true;
3421    case "gotpointercapture":
3422      return f2 = e2.pointerId, Pc.set(f2, Tc(Pc.get(f2) || null, a, b2, c2, d2, e2)), true;
3423  }
3424  return false;
3425}
3426function Vc(a) {
3427  var b2 = Wc(a.target);
3428  if (null !== b2) {
3429    var c2 = Vb(b2);
3430    if (null !== c2) {
3431      if (b2 = c2.tag, 13 === b2) {
3432        if (b2 = Wb(c2), null !== b2) {
3433          a.blockedOn = b2;
3434          Ic(a.priority, function() {
3435            Gc(c2);
3436          });
3437          return;
3438        }
3439      } else if (3 === b2 && c2.stateNode.current.memoizedState.isDehydrated) {
3440        a.blockedOn = 3 === c2.tag ? c2.stateNode.containerInfo : null;
3441        return;
3442      }
3443    }
3444  }
3445  a.blockedOn = null;
3446}
3447function Xc(a) {
3448  if (null !== a.blockedOn)
3449    return false;
3450  for (var b2 = a.targetContainers; 0 < b2.length; ) {
3451    var c2 = Yc(a.domEventName, a.eventSystemFlags, b2[0], a.nativeEvent);
3452    if (null === c2) {
3453      c2 = a.nativeEvent;
3454      var d2 = new c2.constructor(c2.type, c2);
3455      wb = d2;
3456      c2.target.dispatchEvent(d2);
3457      wb = null;
3458    } else
3459      return b2 = Cb(c2), null !== b2 && Fc(b2), a.blockedOn = c2, false;
3460    b2.shift();
3461  }
3462  return true;
3463}
3464function Zc(a, b2, c2) {
3465  Xc(a) && c2.delete(b2);
3466}
3467function $c() {
3468  Jc = false;
3469  null !== Lc && Xc(Lc) && (Lc = null);
3470  null !== Mc && Xc(Mc) && (Mc = null);
3471  null !== Nc && Xc(Nc) && (Nc = null);
3472  Oc.forEach(Zc);
3473  Pc.forEach(Zc);
3474}
3475function ad(a, b2) {
3476  a.blockedOn === b2 && (a.blockedOn = null, Jc || (Jc = true, ca.unstable_scheduleCallback(ca.unstable_NormalPriority, $c)));
3477}
3478function bd(a) {
3479  function b2(b3) {
3480    return ad(b3, a);
3481  }
3482  if (0 < Kc.length) {
3483    ad(Kc[0], a);
3484    for (var c2 = 1; c2 < Kc.length; c2++) {
3485      var d2 = Kc[c2];
3486      d2.blockedOn === a && (d2.blockedOn = null);
3487    }
3488  }
3489  null !== Lc && ad(Lc, a);
3490  null !== Mc && ad(Mc, a);
3491  null !== Nc && ad(Nc, a);
3492  Oc.forEach(b2);
3493  Pc.forEach(b2);
3494  for (c2 = 0; c2 < Qc.length; c2++)
3495    d2 = Qc[c2], d2.blockedOn === a && (d2.blockedOn = null);
3496  for (; 0 < Qc.length && (c2 = Qc[0], null === c2.blockedOn); )
3497    Vc(c2), null === c2.blockedOn && Qc.shift();
3498}
3499var cd = ua.ReactCurrentBatchConfig, dd = true;
3500function ed(a, b2, c2, d2) {
3501  var e2 = C, f2 = cd.transition;
3502  cd.transition = null;
3503  try {
3504    C = 1, fd(a, b2, c2, d2);
3505  } finally {
3506    C = e2, cd.transition = f2;
3507  }
3508}
3509function gd(a, b2, c2, d2) {
3510  var e2 = C, f2 = cd.transition;
3511  cd.transition = null;
3512  try {
3513    C = 4, fd(a, b2, c2, d2);
3514  } finally {
3515    C = e2, cd.transition = f2;
3516  }
3517}
3518function fd(a, b2, c2, d2) {
3519  if (dd) {
3520    var e2 = Yc(a, b2, c2, d2);
3521    if (null === e2)
3522      hd(a, b2, d2, id$2, c2), Sc(a, d2);
3523    else if (Uc(e2, a, b2, c2, d2))
3524      d2.stopPropagation();
3525    else if (Sc(a, d2), b2 & 4 && -1 < Rc.indexOf(a)) {
3526      for (; null !== e2; ) {
3527        var f2 = Cb(e2);
3528        null !== f2 && Ec(f2);
3529        f2 = Yc(a, b2, c2, d2);
3530        null === f2 && hd(a, b2, d2, id$2, c2);
3531        if (f2 === e2)
3532          break;
3533        e2 = f2;
3534      }
3535      null !== e2 && d2.stopPropagation();
3536    } else
3537      hd(a, b2, d2, null, c2);
3538  }
3539}
3540var id$2 = null;
3541function Yc(a, b2, c2, d2) {
3542  id$2 = null;
3543  a = xb(d2);
3544  a = Wc(a);
3545  if (null !== a)
3546    if (b2 = Vb(a), null === b2)
3547      a = null;
3548    else if (c2 = b2.tag, 13 === c2) {
3549      a = Wb(b2);
3550      if (null !== a)
3551        return a;
3552      a = null;
3553    } else if (3 === c2) {
3554      if (b2.stateNode.current.memoizedState.isDehydrated)
3555        return 3 === b2.tag ? b2.stateNode.containerInfo : null;
3556      a = null;
3557    } else
3558      b2 !== a && (a = null);
3559  id$2 = a;
3560  return null;
3561}
3562function jd(a) {
3563  switch (a) {
3564    case "cancel":
3565    case "click":
3566    case "close":
3567    case "contextmenu":
3568    case "copy":
3569    case "cut":
3570    case "auxclick":
3571    case "dblclick":
3572    case "dragend":
3573    case "dragstart":
3574    case "drop":
3575    case "focusin":
3576    case "focusout":
3577    case "input":
3578    case "invalid":
3579    case "keydown":
3580    case "keypress":
3581    case "keyup":
3582    case "mousedown":
3583    case "mouseup":
3584    case "paste":
3585    case "pause":
3586    case "play":
3587    case "pointercancel":
3588    case "pointerdown":
3589    case "pointerup":
3590    case "ratechange":
3591    case "reset":
3592    case "resize":
3593    case "seeked":
3594    case "submit":
3595    case "touchcancel":
3596    case "touchend":
3597    case "touchstart":
3598    case "volumechange":
3599    case "change":
3600    case "selectionchange":
3601    case "textInput":
3602    case "compositionstart":
3603    case "compositionend":
3604    case "compositionupdate":
3605    case "beforeblur":
3606    case "afterblur":
3607    case "beforeinput":
3608    case "blur":
3609    case "fullscreenchange":
3610    case "focus":
3611    case "hashchange":
3612    case "popstate":
3613    case "select":
3614    case "selectstart":
3615      return 1;
3616    case "drag":
3617    case "dragenter":
3618    case "dragexit":
3619    case "dragleave":
3620    case "dragover":
3621    case "mousemove":
3622    case "mouseout":
3623    case "mouseover":
3624    case "pointermove":
3625    case "pointerout":
3626    case "pointerover":
3627    case "scroll":
3628    case "toggle":
3629    case "touchmove":
3630    case "wheel":
3631    case "mouseenter":
3632    case "mouseleave":
3633    case "pointerenter":
3634    case "pointerleave":
3635      return 4;
3636    case "message":
3637      switch (ec()) {
3638        case fc:
3639          return 1;
3640        case gc:
3641          return 4;
3642        case hc:
3643        case ic:
3644          return 16;
3645        case jc:
3646          return 536870912;
3647        default:
3648          return 16;
3649      }
3650    default:
3651      return 16;
3652  }
3653}
3654var kd = null, ld = null, md = null;
3655function nd() {
3656  if (md)
3657    return md;
3658  var a, b2 = ld, c2 = b2.length, d2, e2 = "value" in kd ? kd.value : kd.textContent, f2 = e2.length;
3659  for (a = 0; a < c2 && b2[a] === e2[a]; a++)
3660    ;
3661  var g2 = c2 - a;
3662  for (d2 = 1; d2 <= g2 && b2[c2 - d2] === e2[f2 - d2]; d2++)
3663    ;
3664  return md = e2.slice(a, 1 < d2 ? 1 - d2 : void 0);
3665}
3666function od(a) {
3667  var b2 = a.keyCode;
3668  "charCode" in a ? (a = a.charCode, 0 === a && 13 === b2 && (a = 13)) : a = b2;
3669  10 === a && (a = 13);
3670  return 32 <= a || 13 === a ? a : 0;
3671}
3672function pd() {
3673  return true;
3674}
3675function qd() {
3676  return false;
3677}
3678function rd(a) {
3679  function b2(b3, d2, e2, f2, g2) {
3680    this._reactName = b3;
3681    this._targetInst = e2;
3682    this.type = d2;
3683    this.nativeEvent = f2;
3684    this.target = g2;
3685    this.currentTarget = null;
3686    for (var c2 in a)
3687      a.hasOwnProperty(c2) && (b3 = a[c2], this[c2] = b3 ? b3(f2) : f2[c2]);
3688    this.isDefaultPrevented = (null != f2.defaultPrevented ? f2.defaultPrevented : false === f2.returnValue) ? pd : qd;
3689    this.isPropagationStopped = qd;
3690    return this;
3691  }
3692  A(b2.prototype, { preventDefault: function() {
3693    this.defaultPrevented = true;
3694    var a2 = this.nativeEvent;
3695    a2 && (a2.preventDefault ? a2.preventDefault() : "unknown" !== typeof a2.returnValue && (a2.returnValue = false), this.isDefaultPrevented = pd);
3696  }, stopPropagation: function() {
3697    var a2 = this.nativeEvent;
3698    a2 && (a2.stopPropagation ? a2.stopPropagation() : "unknown" !== typeof a2.cancelBubble && (a2.cancelBubble = true), this.isPropagationStopped = pd);
3699  }, persist: function() {
3700  }, isPersistent: pd });
3701  return b2;
3702}
3703var sd = { eventPhase: 0, bubbles: 0, cancelable: 0, timeStamp: function(a) {
3704  return a.timeStamp || Date.now();
3705}, defaultPrevented: 0, isTrusted: 0 }, td = rd(sd), ud = A({}, sd, { view: 0, detail: 0 }), vd = rd(ud), wd, xd, yd, Ad = A({}, ud, { screenX: 0, screenY: 0, clientX: 0, clientY: 0, pageX: 0, pageY: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, getModifierState: zd, button: 0, buttons: 0, relatedTarget: function(a) {
3706  return void 0 === a.relatedTarget ? a.fromElement === a.srcElement ? a.toElement : a.fromElement : a.relatedTarget;
3707}, movementX: function(a) {
3708  if ("movementX" in a)
3709    return a.movementX;
3710  a !== yd && (yd && "mousemove" === a.type ? (wd = a.screenX - yd.screenX, xd = a.screenY - yd.screenY) : xd = wd = 0, yd = a);
3711  return wd;
3712}, movementY: function(a) {
3713  return "movementY" in a ? a.movementY : xd;
3714} }), Bd = rd(Ad), Cd = A({}, Ad, { dataTransfer: 0 }), Dd = rd(Cd), Ed = A({}, ud, { relatedTarget: 0 }), Fd = rd(Ed), Gd = A({}, sd, { animationName: 0, elapsedTime: 0, pseudoElement: 0 }), Hd = rd(Gd), Id = A({}, sd, { clipboardData: function(a) {
3715  return "clipboardData" in a ? a.clipboardData : window.clipboardData;
3716} }), Jd = rd(Id), Kd = A({}, sd, { data: 0 }), Ld = rd(Kd), Md = {
3717  Esc: "Escape",
3718  Spacebar: " ",
3719  Left: "ArrowLeft",
3720  Up: "ArrowUp",
3721  Right: "ArrowRight",
3722  Down: "ArrowDown",
3723  Del: "Delete",
3724  Win: "OS",
3725  Menu: "ContextMenu",
3726  Apps: "ContextMenu",
3727  Scroll: "ScrollLock",
3728  MozPrintableKey: "Unidentified"
3729}, Nd = {
3730  8: "Backspace",
3731  9: "Tab",
3732  12: "Clear",
3733  13: "Enter",
3734  16: "Shift",
3735  17: "Control",
3736  18: "Alt",
3737  19: "Pause",
3738  20: "CapsLock",
3739  27: "Escape",
3740  32: " ",
3741  33: "PageUp",
3742  34: "PageDown",
3743  35: "End",
3744  36: "Home",
3745  37: "ArrowLeft",
3746  38: "ArrowUp",
3747  39: "ArrowRight",
3748  40: "ArrowDown",
3749  45: "Insert",
3750  46: "Delete",
3751  112: "F1",
3752  113: "F2",
3753  114: "F3",
3754  115: "F4",
3755  116: "F5",
3756  117: "F6",
3757  118: "F7",
3758  119: "F8",
3759  120: "F9",
3760  121: "F10",
3761  122: "F11",
3762  123: "F12",
3763  144: "NumLock",
3764  145: "ScrollLock",
3765  224: "Meta"
3766}, Od = { Alt: "altKey", Control: "ctrlKey", Meta: "metaKey", Shift: "shiftKey" };
3767function Pd(a) {
3768  var b2 = this.nativeEvent;
3769  return b2.getModifierState ? b2.getModifierState(a) : (a = Od[a]) ? !!b2[a] : false;
3770}
3771function zd() {
3772  return Pd;
3773}
3774var Qd = A({}, ud, { key: function(a) {
3775  if (a.key) {
3776    var b2 = Md[a.key] || a.key;
3777    if ("Unidentified" !== b2)
3778      return b2;
3779  }
3780  return "keypress" === a.type ? (a = od(a), 13 === a ? "Enter" : String.fromCharCode(a)) : "keydown" === a.type || "keyup" === a.type ? Nd[a.keyCode] || "Unidentified" : "";
3781}, code: 0, location: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, repeat: 0, locale: 0, getModifierState: zd, charCode: function(a) {
3782  return "keypress" === a.type ? od(a) : 0;
3783}, keyCode: function(a) {
3784  return "keydown" === a.type || "keyup" === a.type ? a.keyCode : 0;
3785}, which: function(a) {
3786  return "keypress" === a.type ? od(a) : "keydown" === a.type || "keyup" === a.type ? a.keyCode : 0;
3787} }), Rd = rd(Qd), Sd = A({}, Ad, { pointerId: 0, width: 0, height: 0, pressure: 0, tangentialPressure: 0, tiltX: 0, tiltY: 0, twist: 0, pointerType: 0, isPrimary: 0 }), Td = rd(Sd), Ud = A({}, ud, { touches: 0, targetTouches: 0, changedTouches: 0, altKey: 0, metaKey: 0, ctrlKey: 0, shiftKey: 0, getModifierState: zd }), Vd = rd(Ud), Wd = A({}, sd, { propertyName: 0, elapsedTime: 0, pseudoElement: 0 }), Xd = rd(Wd), Yd = A({}, Ad, {
3788  deltaX: function(a) {
3789    return "deltaX" in a ? a.deltaX : "wheelDeltaX" in a ? -a.wheelDeltaX : 0;
3790  },
3791  deltaY: function(a) {
3792    return "deltaY" in a ? a.deltaY : "wheelDeltaY" in a ? -a.wheelDeltaY : "wheelDelta" in a ? -a.wheelDelta : 0;
3793  },
3794  deltaZ: 0,
3795  deltaMode: 0
3796}), Zd = rd(Yd), $d = [9, 13, 27, 32], ae = ia && "CompositionEvent" in window, be = null;
3797ia && "documentMode" in document && (be = document.documentMode);
3798var ce = ia && "TextEvent" in window && !be, de = ia && (!ae || be && 8 < be && 11 >= be), ee = String.fromCharCode(32), fe = false;
3799function ge(a, b2) {
3800  switch (a) {
3801    case "keyup":
3802      return -1 !== $d.indexOf(b2.keyCode);
3803    case "keydown":
3804      return 229 !== b2.keyCode;
3805    case "keypress":
3806    case "mousedown":
3807    case "focusout":
3808      return true;
3809    default:
3810      return false;
3811  }
3812}
3813function he(a) {
3814  a = a.detail;
3815  return "object" === typeof a && "data" in a ? a.data : null;
3816}
3817var ie = false;
3818function je(a, b2) {
3819  switch (a) {
3820    case "compositionend":
3821      return he(b2);
3822    case "keypress":
3823      if (32 !== b2.which)
3824        return null;
3825      fe = true;
3826      return ee;
3827    case "textInput":
3828      return a = b2.data, a === ee && fe ? null : a;
3829    default:
3830      return null;
3831  }
3832}
3833function ke(a, b2) {
3834  if (ie)
3835    return "compositionend" === a || !ae && ge(a, b2) ? (a = nd(), md = ld = kd = null, ie = false, a) : null;
3836  switch (a) {
3837    case "paste":
3838      return null;
3839    case "keypress":
3840      if (!(b2.ctrlKey || b2.altKey || b2.metaKey) || b2.ctrlKey && b2.altKey) {
3841        if (b2.char && 1 < b2.char.length)
3842          return b2.char;
3843        if (b2.which)
3844          return String.fromCharCode(b2.which);
3845      }
3846      return null;
3847    case "compositionend":
3848      return de && "ko" !== b2.locale ? null : b2.data;
3849    default:
3850      return null;
3851  }
3852}
3853var le = { color: true, date: true, datetime: true, "datetime-local": true, email: true, month: true, number: true, password: true, range: true, search: true, tel: true, text: true, time: true, url: true, week: true };
3854function me(a) {
3855  var b2 = a && a.nodeName && a.nodeName.toLowerCase();
3856  return "input" === b2 ? !!le[a.type] : "textarea" === b2 ? true : false;
3857}
3858function ne(a, b2, c2, d2) {
3859  Eb(d2);
3860  b2 = oe(b2, "onChange");
3861  0 < b2.length && (c2 = new td("onChange", "change", null, c2, d2), a.push({ event: c2, listeners: b2 }));
3862}
3863var pe = null, qe = null;
3864function re(a) {
3865  se(a, 0);
3866}
3867function te(a) {
3868  var b2 = ue(a);
3869  if (Wa(b2))
3870    return a;
3871}
3872function ve(a, b2) {
3873  if ("change" === a)
3874    return b2;
3875}
3876var we = false;
3877if (ia) {
3878  var xe;
3879  if (ia) {
3880    var ye = "oninput" in document;
3881    if (!ye) {
3882      var ze = document.createElement("div");
3883      ze.setAttribute("oninput", "return;");
3884      ye = "function" === typeof ze.oninput;
3885    }
3886    xe = ye;
3887  } else
3888    xe = false;
3889  we = xe && (!document.documentMode || 9 < document.documentMode);
3890}
3891function Ae() {
3892  pe && (pe.detachEvent("onpropertychange", Be), qe = pe = null);
3893}
3894function Be(a) {
3895  if ("value" === a.propertyName && te(qe)) {
3896    var b2 = [];
3897    ne(b2, qe, a, xb(a));
3898    Jb(re, b2);
3899  }
3900}
3901function Ce(a, b2, c2) {
3902  "focusin" === a ? (Ae(), pe = b2, qe = c2, pe.attachEvent("onpropertychange", Be)) : "focusout" === a && Ae();
3903}
3904function De(a) {
3905  if ("selectionchange" === a || "keyup" === a || "keydown" === a)
3906    return te(qe);
3907}
3908function Ee(a, b2) {
3909  if ("click" === a)
3910    return te(b2);
3911}
3912function Fe(a, b2) {
3913  if ("input" === a || "change" === a)
3914    return te(b2);
3915}
3916function Ge(a, b2) {
3917  return a === b2 && (0 !== a || 1 / a === 1 / b2) || a !== a && b2 !== b2;
3918}
3919var He = "function" === typeof Object.is ? Object.is : Ge;
3920function Ie(a, b2) {
3921  if (He(a, b2))
3922    return true;
3923  if ("object" !== typeof a || null === a || "object" !== typeof b2 || null === b2)
3924    return false;
3925  var c2 = Object.keys(a), d2 = Object.keys(b2);
3926  if (c2.length !== d2.length)
3927    return false;
3928  for (d2 = 0; d2 < c2.length; d2++) {
3929    var e2 = c2[d2];
3930    if (!ja.call(b2, e2) || !He(a[e2], b2[e2]))
3931      return false;
3932  }
3933  return true;
3934}
3935function Je(a) {
3936  for (; a && a.firstChild; )
3937    a = a.firstChild;
3938  return a;
3939}
3940function Ke(a, b2) {
3941  var c2 = Je(a);
3942  a = 0;
3943  for (var d2; c2; ) {
3944    if (3 === c2.nodeType) {
3945      d2 = a + c2.textContent.length;
3946      if (a <= b2 && d2 >= b2)
3947        return { node: c2, offset: b2 - a };
3948      a = d2;
3949    }
3950    a: {
3951      for (; c2; ) {
3952        if (c2.nextSibling) {
3953          c2 = c2.nextSibling;
3954          break a;
3955        }
3956        c2 = c2.parentNode;
3957      }
3958      c2 = void 0;
3959    }
3960    c2 = Je(c2);
3961  }
3962}
3963function Le(a, b2) {
3964  return a && b2 ? a === b2 ? true : a && 3 === a.nodeType ? false : b2 && 3 === b2.nodeType ? Le(a, b2.parentNode) : "contains" in a ? a.contains(b2) : a.compareDocumentPosition ? !!(a.compareDocumentPosition(b2) & 16) : false : false;
3965}
3966function Me() {
3967  for (var a = window, b2 = Xa(); b2 instanceof a.HTMLIFrameElement; ) {
3968    try {
3969      var c2 = "string" === typeof b2.contentWindow.location.href;
3970    } catch (d2) {
3971      c2 = false;
3972    }
3973    if (c2)
3974      a = b2.contentWindow;
3975    else
3976      break;
3977    b2 = Xa(a.document);
3978  }
3979  return b2;
3980}
3981function Ne(a) {
3982  var b2 = a && a.nodeName && a.nodeName.toLowerCase();
3983  return b2 && ("input" === b2 && ("text" === a.type || "search" === a.type || "tel" === a.type || "url" === a.type || "password" === a.type) || "textarea" === b2 || "true" === a.contentEditable);
3984}
3985function Oe(a) {
3986  var b2 = Me(), c2 = a.focusedElem, d2 = a.selectionRange;
3987  if (b2 !== c2 && c2 && c2.ownerDocument && Le(c2.ownerDocument.documentElement, c2)) {
3988    if (null !== d2 && Ne(c2)) {
3989      if (b2 = d2.start, a = d2.end, void 0 === a && (a = b2), "selectionStart" in c2)
3990        c2.selectionStart = b2, c2.selectionEnd = Math.min(a, c2.value.length);
3991      else if (a = (b2 = c2.ownerDocument || document) && b2.defaultView || window, a.getSelection) {
3992        a = a.getSelection();
3993        var e2 = c2.textContent.length, f2 = Math.min(d2.start, e2);
3994        d2 = void 0 === d2.end ? f2 : Math.min(d2.end, e2);
3995        !a.extend && f2 > d2 && (e2 = d2, d2 = f2, f2 = e2);
3996        e2 = Ke(c2, f2);
3997        var g2 = Ke(
3998          c2,
3999          d2
4000        );
4001        e2 && g2 && (1 !== a.rangeCount || a.anchorNode !== e2.node || a.anchorOffset !== e2.offset || a.focusNode !== g2.node || a.focusOffset !== g2.offset) && (b2 = b2.createRange(), b2.setStart(e2.node, e2.offset), a.removeAllRanges(), f2 > d2 ? (a.addRange(b2), a.extend(g2.node, g2.offset)) : (b2.setEnd(g2.node, g2.offset), a.addRange(b2)));
4002      }
4003    }
4004    b2 = [];
4005    for (a = c2; a = a.parentNode; )
4006      1 === a.nodeType && b2.push({ element: a, left: a.scrollLeft, top: a.scrollTop });
4007    "function" === typeof c2.focus && c2.focus();
4008    for (c2 = 0; c2 < b2.length; c2++)
4009      a = b2[c2], a.element.scrollLeft = a.left, a.element.scrollTop = a.top;
4010  }
4011}
4012var Pe = ia && "documentMode" in document && 11 >= document.documentMode, Qe = null, Re = null, Se = null, Te = false;
4013function Ue(a, b2, c2) {
4014  var d2 = c2.window === c2 ? c2.document : 9 === c2.nodeType ? c2 : c2.ownerDocument;
4015  Te || null == Qe || Qe !== Xa(d2) || (d2 = Qe, "selectionStart" in d2 && Ne(d2) ? d2 = { start: d2.selectionStart, end: d2.selectionEnd } : (d2 = (d2.ownerDocument && d2.ownerDocument.defaultView || window).getSelection(), d2 = { anchorNode: d2.anchorNode, anchorOffset: d2.anchorOffset, focusNode: d2.focusNode, focusOffset: d2.focusOffset }), Se && Ie(Se, d2) || (Se = d2, d2 = oe(Re, "onSelect"), 0 < d2.length && (b2 = new td("onSelect", "select", null, b2, c2), a.push({ event: b2, listeners: d2 }), b2.target = Qe)));
4016}
4017function Ve(a, b2) {
4018  var c2 = {};
4019  c2[a.toLowerCase()] = b2.toLowerCase();
4020  c2["Webkit" + a] = "webkit" + b2;
4021  c2["Moz" + a] = "moz" + b2;
4022  return c2;
4023}
4024var We = { animationend: Ve("Animation", "AnimationEnd"), animationiteration: Ve("Animation", "AnimationIteration"), animationstart: Ve("Animation", "AnimationStart"), transitionend: Ve("Transition", "TransitionEnd") }, Xe = {}, Ye = {};
4025ia && (Ye = document.createElement("div").style, "AnimationEvent" in window || (delete We.animationend.animation, delete We.animationiteration.animation, delete We.animationstart.animation), "TransitionEvent" in window || delete We.transitionend.transition);
4026function Ze(a) {
4027  if (Xe[a])
4028    return Xe[a];
4029  if (!We[a])
4030    return a;
4031  var b2 = We[a], c2;
4032  for (c2 in b2)
4033    if (b2.hasOwnProperty(c2) && c2 in Ye)
4034      return Xe[a] = b2[c2];
4035  return a;
4036}
4037var $e = Ze("animationend"), af = Ze("animationiteration"), bf = Ze("animationstart"), cf = Ze("transitionend"), df = /* @__PURE__ */ new Map(), ef = "abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");
4038function ff(a, b2) {
4039  df.set(a, b2);
4040  fa(b2, [a]);
4041}
4042for (var gf = 0; gf < ef.length; gf++) {
4043  var hf = ef[gf], jf = hf.toLowerCase(), kf = hf[0].toUpperCase() + hf.slice(1);
4044  ff(jf, "on" + kf);
4045}
4046ff($e, "onAnimationEnd");
4047ff(af, "onAnimationIteration");
4048ff(bf, "onAnimationStart");
4049ff("dblclick", "onDoubleClick");
4050ff("focusin", "onFocus");
4051ff("focusout", "onBlur");
4052ff(cf, "onTransitionEnd");
4053ha("onMouseEnter", ["mouseout", "mouseover"]);
4054ha("onMouseLeave", ["mouseout", "mouseover"]);
4055ha("onPointerEnter", ["pointerout", "pointerover"]);
4056ha("onPointerLeave", ["pointerout", "pointerover"]);
4057fa("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" "));
4058fa("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));
4059fa("onBeforeInput", ["compositionend", "keypress", "textInput", "paste"]);
4060fa("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" "));
4061fa("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" "));
4062fa("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" "));
4063var lf = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "), mf = new Set("cancel close invalid load scroll toggle".split(" ").concat(lf));
4064function nf(a, b2, c2) {
4065  var d2 = a.type || "unknown-event";
4066  a.currentTarget = c2;
4067  Ub(d2, b2, void 0, a);
4068  a.currentTarget = null;
4069}
4070function se(a, b2) {
4071  b2 = 0 !== (b2 & 4);
4072  for (var c2 = 0; c2 < a.length; c2++) {
4073    var d2 = a[c2], e2 = d2.event;
4074    d2 = d2.listeners;
4075    a: {
4076      var f2 = void 0;
4077      if (b2)
4078        for (var g2 = d2.length - 1; 0 <= g2; g2--) {
4079          var h2 = d2[g2], k2 = h2.instance, l2 = h2.currentTarget;
4080          h2 = h2.listener;
4081          if (k2 !== f2 && e2.isPropagationStopped())
4082            break a;
4083          nf(e2, h2, l2);
4084          f2 = k2;
4085        }
4086      else
4087        for (g2 = 0; g2 < d2.length; g2++) {
4088          h2 = d2[g2];
4089          k2 = h2.instance;
4090          l2 = h2.currentTarget;
4091          h2 = h2.listener;
4092          if (k2 !== f2 && e2.isPropagationStopped())
4093            break a;
4094          nf(e2, h2, l2);
4095          f2 = k2;
4096        }
4097    }
4098  }
4099  if (Qb)
4100    throw a = Rb, Qb = false, Rb = null, a;
4101}
4102function D(a, b2) {
4103  var c2 = b2[of];
4104  void 0 === c2 && (c2 = b2[of] = /* @__PURE__ */ new Set());
4105  var d2 = a + "__bubble";
4106  c2.has(d2) || (pf(b2, a, 2, false), c2.add(d2));
4107}
4108function qf(a, b2, c2) {
4109  var d2 = 0;
4110  b2 && (d2 |= 4);
4111  pf(c2, a, d2, b2);
4112}
4113var rf = "_reactListening" + Math.random().toString(36).slice(2);
4114function sf(a) {
4115  if (!a[rf]) {
4116    a[rf] = true;
4117    da.forEach(function(b3) {
4118      "selectionchange" !== b3 && (mf.has(b3) || qf(b3, false, a), qf(b3, true, a));
4119    });
4120    var b2 = 9 === a.nodeType ? a : a.ownerDocument;
4121    null === b2 || b2[rf] || (b2[rf] = true, qf("selectionchange", false, b2));
4122  }
4123}
4124function pf(a, b2, c2, d2) {
4125  switch (jd(b2)) {
4126    case 1:
4127      var e2 = ed;
4128      break;
4129    case 4:
4130      e2 = gd;
4131      break;
4132    default:
4133      e2 = fd;
4134  }
4135  c2 = e2.bind(null, b2, c2, a);
4136  e2 = void 0;
4137  !Lb || "touchstart" !== b2 && "touchmove" !== b2 && "wheel" !== b2 || (e2 = true);
4138  d2 ? void 0 !== e2 ? a.addEventListener(b2, c2, { capture: true, passive: e2 }) : a.addEventListener(b2, c2, true) : void 0 !== e2 ? a.addEventListener(b2, c2, { passive: e2 }) : a.addEventListener(b2, c2, false);
4139}
4140function hd(a, b2, c2, d2, e2) {
4141  var f2 = d2;
4142  if (0 === (b2 & 1) && 0 === (b2 & 2) && null !== d2)
4143    a:
4144      for (; ; ) {
4145        if (null === d2)
4146          return;
4147        var g2 = d2.tag;
4148        if (3 === g2 || 4 === g2) {
4149          var h2 = d2.stateNode.containerInfo;
4150          if (h2 === e2 || 8 === h2.nodeType && h2.parentNode === e2)
4151            break;
4152          if (4 === g2)
4153            for (g2 = d2.return; null !== g2; ) {
4154              var k2 = g2.tag;
4155              if (3 === k2 || 4 === k2) {
4156                if (k2 = g2.stateNode.containerInfo, k2 === e2 || 8 === k2.nodeType && k2.parentNode === e2)
4157                  return;
4158              }
4159              g2 = g2.return;
4160            }
4161          for (; null !== h2; ) {
4162            g2 = Wc(h2);
4163            if (null === g2)
4164              return;
4165            k2 = g2.tag;
4166            if (5 === k2 || 6 === k2) {
4167              d2 = f2 = g2;
4168              continue a;
4169            }
4170            h2 = h2.parentNode;
4171          }
4172        }
4173        d2 = d2.return;
4174      }
4175  Jb(function() {
4176    var d3 = f2, e3 = xb(c2), g3 = [];
4177    a: {
4178      var h3 = df.get(a);
4179      if (void 0 !== h3) {
4180        var k3 = td, n2 = a;
4181        switch (a) {
4182          case "keypress":
4183            if (0 === od(c2))
4184              break a;
4185          case "keydown":
4186          case "keyup":
4187            k3 = Rd;
4188            break;
4189          case "focusin":
4190            n2 = "focus";
4191            k3 = Fd;
4192            break;
4193          case "focusout":
4194            n2 = "blur";
4195            k3 = Fd;
4196            break;
4197          case "beforeblur":
4198          case "afterblur":
4199            k3 = Fd;
4200            break;
4201          case "click":
4202            if (2 === c2.button)
4203              break a;
4204          case "auxclick":
4205          case "dblclick":
4206          case "mousedown":
4207          case "mousemove":
4208          case "mouseup":
4209          case "mouseout":
4210          case "mouseover":
4211          case "contextmenu":
4212            k3 = Bd;
4213            break;
4214          case "drag":
4215          case "dragend":
4216          case "dragenter":
4217          case "dragexit":
4218          case "dragleave":
4219          case "dragover":
4220          case "dragstart":
4221          case "drop":
4222            k3 = Dd;
4223            break;
4224          case "touchcancel":
4225          case "touchend":
4226          case "touchmove":
4227          case "touchstart":
4228            k3 = Vd;
4229            break;
4230          case $e:
4231          case af:
4232          case bf:
4233            k3 = Hd;
4234            break;
4235          case cf:
4236            k3 = Xd;
4237            break;
4238          case "scroll":
4239            k3 = vd;
4240            break;
4241          case "wheel":
4242            k3 = Zd;
4243            break;
4244          case "copy":
4245          case "cut":
4246          case "paste":
4247            k3 = Jd;
4248            break;
4249          case "gotpointercapture":
4250          case "lostpointercapture":
4251          case "pointercancel":
4252          case "pointerdown":
4253          case "pointermove":
4254          case "pointerout":
4255          case "pointerover":
4256          case "pointerup":
4257            k3 = Td;
4258        }
4259        var t2 = 0 !== (b2 & 4), J2 = !t2 && "scroll" === a, x2 = t2 ? null !== h3 ? h3 + "Capture" : null : h3;
4260        t2 = [];
4261        for (var w2 = d3, u2; null !== w2; ) {
4262          u2 = w2;
4263          var F2 = u2.stateNode;
4264          5 === u2.tag && null !== F2 && (u2 = F2, null !== x2 && (F2 = Kb(w2, x2), null != F2 && t2.push(tf(w2, F2, u2))));
4265          if (J2)
4266            break;
4267          w2 = w2.return;
4268        }
4269        0 < t2.length && (h3 = new k3(h3, n2, null, c2, e3), g3.push({ event: h3, listeners: t2 }));
4270      }
4271    }
4272    if (0 === (b2 & 7)) {
4273      a: {
4274        h3 = "mouseover" === a || "pointerover" === a;
4275        k3 = "mouseout" === a || "pointerout" === a;
4276        if (h3 && c2 !== wb && (n2 = c2.relatedTarget || c2.fromElement) && (Wc(n2) || n2[uf]))
4277          break a;
4278        if (k3 || h3) {
4279          h3 = e3.window === e3 ? e3 : (h3 = e3.ownerDocument) ? h3.defaultView || h3.parentWindow : window;
4280          if (k3) {
4281            if (n2 = c2.relatedTarget || c2.toElement, k3 = d3, n2 = n2 ? Wc(n2) : null, null !== n2 && (J2 = Vb(n2), n2 !== J2 || 5 !== n2.tag && 6 !== n2.tag))
4282              n2 = null;
4283          } else
4284            k3 = null, n2 = d3;
4285          if (k3 !== n2) {
4286            t2 = Bd;
4287            F2 = "onMouseLeave";
4288            x2 = "onMouseEnter";
4289            w2 = "mouse";
4290            if ("pointerout" === a || "pointerover" === a)
4291              t2 = Td, F2 = "onPointerLeave", x2 = "onPointerEnter", w2 = "pointer";
4292            J2 = null == k3 ? h3 : ue(k3);
4293            u2 = null == n2 ? h3 : ue(n2);
4294            h3 = new t2(F2, w2 + "leave", k3, c2, e3);
4295            h3.target = J2;
4296            h3.relatedTarget = u2;
4297            F2 = null;
4298            Wc(e3) === d3 && (t2 = new t2(x2, w2 + "enter", n2, c2, e3), t2.target = u2, t2.relatedTarget = J2, F2 = t2);
4299            J2 = F2;
4300            if (k3 && n2)
4301              b: {
4302                t2 = k3;
4303                x2 = n2;
4304                w2 = 0;
4305                for (u2 = t2; u2; u2 = vf(u2))
4306                  w2++;
4307                u2 = 0;
4308                for (F2 = x2; F2; F2 = vf(F2))
4309                  u2++;
4310                for (; 0 < w2 - u2; )
4311                  t2 = vf(t2), w2--;
4312                for (; 0 < u2 - w2; )
4313                  x2 = vf(x2), u2--;
4314                for (; w2--; ) {
4315                  if (t2 === x2 || null !== x2 && t2 === x2.alternate)
4316                    break b;
4317                  t2 = vf(t2);
4318                  x2 = vf(x2);
4319                }
4320                t2 = null;
4321              }
4322            else
4323              t2 = null;
4324            null !== k3 && wf(g3, h3, k3, t2, false);
4325            null !== n2 && null !== J2 && wf(g3, J2, n2, t2, true);
4326          }
4327        }
4328      }
4329      a: {
4330        h3 = d3 ? ue(d3) : window;
4331        k3 = h3.nodeName && h3.nodeName.toLowerCase();
4332        if ("select" === k3 || "input" === k3 && "file" === h3.type)
4333          var na = ve;
4334        else if (me(h3))
4335          if (we)
4336            na = Fe;
4337          else {
4338            na = De;
4339            var xa = Ce;
4340          }
4341        else
4342          (k3 = h3.nodeName) && "input" === k3.toLowerCase() && ("checkbox" === h3.type || "radio" === h3.type) && (na = Ee);
4343        if (na && (na = na(a, d3))) {
4344          ne(g3, na, c2, e3);
4345          break a;
4346        }
4347        xa && xa(a, h3, d3);
4348        "focusout" === a && (xa = h3._wrapperState) && xa.controlled && "number" === h3.type && cb(h3, "number", h3.value);
4349      }
4350      xa = d3 ? ue(d3) : window;
4351      switch (a) {
4352        case "focusin":
4353          if (me(xa) || "true" === xa.contentEditable)
4354            Qe = xa, Re = d3, Se = null;
4355          break;
4356        case "focusout":
4357          Se = Re = Qe = null;
4358          break;
4359        case "mousedown":
4360          Te = true;
4361          break;
4362        case "contextmenu":
4363        case "mouseup":
4364        case "dragend":
4365          Te = false;
4366          Ue(g3, c2, e3);
4367          break;
4368        case "selectionchange":
4369          if (Pe)
4370            break;
4371        case "keydown":
4372        case "keyup":
4373          Ue(g3, c2, e3);
4374      }
4375      var $a;
4376      if (ae)
4377        b: {
4378          switch (a) {
4379            case "compositionstart":
4380              var ba = "onCompositionStart";
4381              break b;
4382            case "compositionend":
4383              ba = "onCompositionEnd";
4384              break b;
4385            case "compositionupdate":
4386              ba = "onCompositionUpdate";
4387              break b;
4388          }
4389          ba = void 0;
4390        }
4391      else
4392        ie ? ge(a, c2) && (ba = "onCompositionEnd") : "keydown" === a && 229 === c2.keyCode && (ba = "onCompositionStart");
4393      ba && (de && "ko" !== c2.locale && (ie || "onCompositionStart" !== ba ? "onCompositionEnd" === ba && ie && ($a = nd()) : (kd = e3, ld = "value" in kd ? kd.value : kd.textContent, ie = true)), xa = oe(d3, ba), 0 < xa.length && (ba = new Ld(ba, a, null, c2, e3), g3.push({ event: ba, listeners: xa }), $a ? ba.data = $a : ($a = he(c2), null !== $a && (ba.data = $a))));
4394      if ($a = ce ? je(a, c2) : ke(a, c2))
4395        d3 = oe(d3, "onBeforeInput"), 0 < d3.length && (e3 = new Ld("onBeforeInput", "beforeinput", null, c2, e3), g3.push({ event: e3, listeners: d3 }), e3.data = $a);
4396    }
4397    se(g3, b2);
4398  });
4399}
4400function tf(a, b2, c2) {
4401  return { instance: a, listener: b2, currentTarget: c2 };
4402}
4403function oe(a, b2) {
4404  for (var c2 = b2 + "Capture", d2 = []; null !== a; ) {
4405    var e2 = a, f2 = e2.stateNode;
4406    5 === e2.tag && null !== f2 && (e2 = f2, f2 = Kb(a, c2), null != f2 && d2.unshift(tf(a, f2, e2)), f2 = Kb(a, b2), null != f2 && d2.push(tf(a, f2, e2)));
4407    a = a.return;
4408  }
4409  return d2;
4410}
4411function vf(a) {
4412  if (null === a)
4413    return null;
4414  do
4415    a = a.return;
4416  while (a && 5 !== a.tag);
4417  return a ? a : null;
4418}
4419function wf(a, b2, c2, d2, e2) {
4420  for (var f2 = b2._reactName, g2 = []; null !== c2 && c2 !== d2; ) {
4421    var h2 = c2, k2 = h2.alternate, l2 = h2.stateNode;
4422    if (null !== k2 && k2 === d2)
4423      break;
4424    5 === h2.tag && null !== l2 && (h2 = l2, e2 ? (k2 = Kb(c2, f2), null != k2 && g2.unshift(tf(c2, k2, h2))) : e2 || (k2 = Kb(c2, f2), null != k2 && g2.push(tf(c2, k2, h2))));
4425    c2 = c2.return;
4426  }
4427  0 !== g2.length && a.push({ event: b2, listeners: g2 });
4428}
4429var xf = /\r\n?/g, yf = /\u0000|\uFFFD/g;
4430function zf(a) {
4431  return ("string" === typeof a ? a : "" + a).replace(xf, "\n").replace(yf, "");
4432}
4433function Af(a, b2, c2) {
4434  b2 = zf(b2);
4435  if (zf(a) !== b2 && c2)
4436    throw Error(p(425));
4437}
4438function Bf() {
4439}
4440var Cf = null, Df = null;
4441function Ef(a, b2) {
4442  return "textarea" === a || "noscript" === a || "string" === typeof b2.children || "number" === typeof b2.children || "object" === typeof b2.dangerouslySetInnerHTML && null !== b2.dangerouslySetInnerHTML && null != b2.dangerouslySetInnerHTML.__html;
4443}
4444var Ff = "function" === typeof setTimeout ? setTimeout : void 0, Gf = "function" === typeof clearTimeout ? clearTimeout : void 0, Hf = "function" === typeof Promise ? Promise : void 0, Jf = "function" === typeof queueMicrotask ? queueMicrotask : "undefined" !== typeof Hf ? function(a) {
4445  return Hf.resolve(null).then(a).catch(If);
4446} : Ff;
4447function If(a) {
4448  setTimeout(function() {
4449    throw a;
4450  });
4451}
4452function Kf(a, b2) {
4453  var c2 = b2, d2 = 0;
4454  do {
4455    var e2 = c2.nextSibling;
4456    a.removeChild(c2);
4457    if (e2 && 8 === e2.nodeType)
4458      if (c2 = e2.data, "/$" === c2) {
4459        if (0 === d2) {
4460          a.removeChild(e2);
4461          bd(b2);
4462          return;
4463        }
4464        d2--;
4465      } else
4466        "$" !== c2 && "$?" !== c2 && "$!" !== c2 || d2++;
4467    c2 = e2;
4468  } while (c2);
4469  bd(b2);
4470}
4471function Lf(a) {
4472  for (; null != a; a = a.nextSibling) {
4473    var b2 = a.nodeType;
4474    if (1 === b2 || 3 === b2)
4475      break;
4476    if (8 === b2) {
4477      b2 = a.data;
4478      if ("$" === b2 || "$!" === b2 || "$?" === b2)
4479        break;
4480      if ("/$" === b2)
4481        return null;
4482    }
4483  }
4484  return a;
4485}
4486function Mf(a) {
4487  a = a.previousSibling;
4488  for (var b2 = 0; a; ) {
4489    if (8 === a.nodeType) {
4490      var c2 = a.data;
4491      if ("$" === c2 || "$!" === c2 || "$?" === c2) {
4492        if (0 === b2)
4493          return a;
4494        b2--;
4495      } else
4496        "/$" === c2 && b2++;
4497    }
4498    a = a.previousSibling;
4499  }
4500  return null;
4501}
4502var Nf = Math.random().toString(36).slice(2), Of = "__reactFiber$" + Nf, Pf = "__reactProps$" + Nf, uf = "__reactContainer$" + Nf, of = "__reactEvents$" + Nf, Qf = "__reactListeners$" + Nf, Rf = "__reactHandles$" + Nf;
4503function Wc(a) {
4504  var b2 = a[Of];
4505  if (b2)
4506    return b2;
4507  for (var c2 = a.parentNode; c2; ) {
4508    if (b2 = c2[uf] || c2[Of]) {
4509      c2 = b2.alternate;
4510      if (null !== b2.child || null !== c2 && null !== c2.child)
4511        for (a = Mf(a); null !== a; ) {
4512          if (c2 = a[Of])
4513            return c2;
4514          a = Mf(a);
4515        }
4516      return b2;
4517    }
4518    a = c2;
4519    c2 = a.parentNode;
4520  }
4521  return null;
4522}
4523function Cb(a) {
4524  a = a[Of] || a[uf];
4525  return !a || 5 !== a.tag && 6 !== a.tag && 13 !== a.tag && 3 !== a.tag ? null : a;
4526}
4527function ue(a) {
4528  if (5 === a.tag || 6 === a.tag)
4529    return a.stateNode;
4530  throw Error(p(33));
4531}
4532function Db(a) {
4533  return a[Pf] || null;
4534}
4535var Sf = [], Tf = -1;
4536function Uf(a) {
4537  return { current: a };
4538}
4539function E(a) {
4540  0 > Tf || (a.current = Sf[Tf], Sf[Tf] = null, Tf--);
4541}
4542function G(a, b2) {
4543  Tf++;
4544  Sf[Tf] = a.current;
4545  a.current = b2;
4546}
4547var Vf = {}, H = Uf(Vf), Wf = Uf(false), Xf = Vf;
4548function Yf(a, b2) {
4549  var c2 = a.type.contextTypes;
4550  if (!c2)
4551    return Vf;
4552  var d2 = a.stateNode;
4553  if (d2 && d2.__reactInternalMemoizedUnmaskedChildContext === b2)
4554    return d2.__reactInternalMemoizedMaskedChildContext;
4555  var e2 = {}, f2;
4556  for (f2 in c2)
4557    e2[f2] = b2[f2];
4558  d2 && (a = a.stateNode, a.__reactInternalMemoizedUnmaskedChildContext = b2, a.__reactInternalMemoizedMaskedChildContext = e2);
4559  return e2;
4560}
4561function Zf(a) {
4562  a = a.childContextTypes;
4563  return null !== a && void 0 !== a;
4564}
4565function $f() {
4566  E(Wf);
4567  E(H);
4568}
4569function ag(a, b2, c2) {
4570  if (H.current !== Vf)
4571    throw Error(p(168));
4572  G(H, b2);
4573  G(Wf, c2);
4574}
4575function bg(a, b2, c2) {
4576  var d2 = a.stateNode;
4577  b2 = b2.childContextTypes;
4578  if ("function" !== typeof d2.getChildContext)
4579    return c2;
4580  d2 = d2.getChildContext();
4581  for (var e2 in d2)
4582    if (!(e2 in b2))
4583      throw Error(p(108, Ra(a) || "Unknown", e2));
4584  return A({}, c2, d2);
4585}
4586function cg(a) {
4587  a = (a = a.stateNode) && a.__reactInternalMemoizedMergedChildContext || Vf;
4588  Xf = H.current;
4589  G(H, a);
4590  G(Wf, Wf.current);
4591  return true;
4592}
4593function dg(a, b2, c2) {
4594  var d2 = a.stateNode;
4595  if (!d2)
4596    throw Error(p(169));
4597  c2 ? (a = bg(a, b2, Xf), d2.__reactInternalMemoizedMergedChildContext = a, E(Wf), E(H), G(H, a)) : E(Wf);
4598  G(Wf, c2);
4599}
4600var eg = null, fg = false, gg = false;
4601function hg(a) {
4602  null === eg ? eg = [a] : eg.push(a);
4603}
4604function ig(a) {
4605  fg = true;
4606  hg(a);
4607}
4608function jg() {
4609  if (!gg && null !== eg) {
4610    gg = true;
4611    var a = 0, b2 = C;
4612    try {
4613      var c2 = eg;
4614      for (C = 1; a < c2.length; a++) {
4615        var d2 = c2[a];
4616        do
4617          d2 = d2(true);
4618        while (null !== d2);
4619      }
4620      eg = null;
4621      fg = false;
4622    } catch (e2) {
4623      throw null !== eg && (eg = eg.slice(a + 1)), ac(fc, jg), e2;
4624    } finally {
4625      C = b2, gg = false;
4626    }
4627  }
4628  return null;
4629}
4630var kg = [], lg = 0, mg = null, ng = 0, og = [], pg = 0, qg = null, rg = 1, sg = "";
4631function tg(a, b2) {
4632  kg[lg++] = ng;
4633  kg[lg++] = mg;
4634  mg = a;
4635  ng = b2;
4636}
4637function ug(a, b2, c2) {
4638  og[pg++] = rg;
4639  og[pg++] = sg;
4640  og[pg++] = qg;
4641  qg = a;
4642  var d2 = rg;
4643  a = sg;
4644  var e2 = 32 - oc(d2) - 1;
4645  d2 &= ~(1 << e2);
4646  c2 += 1;
4647  var f2 = 32 - oc(b2) + e2;
4648  if (30 < f2) {
4649    var g2 = e2 - e2 % 5;
4650    f2 = (d2 & (1 << g2) - 1).toString(32);
4651    d2 >>= g2;
4652    e2 -= g2;
4653    rg = 1 << 32 - oc(b2) + e2 | c2 << e2 | d2;
4654    sg = f2 + a;
4655  } else
4656    rg = 1 << f2 | c2 << e2 | d2, sg = a;
4657}
4658function vg(a) {
4659  null !== a.return && (tg(a, 1), ug(a, 1, 0));
4660}
4661function wg(a) {
4662  for (; a === mg; )
4663    mg = kg[--lg], kg[lg] = null, ng = kg[--lg], kg[lg] = null;
4664  for (; a === qg; )
4665    qg = og[--pg], og[pg] = null, sg = og[--pg], og[pg] = null, rg = og[--pg], og[pg] = null;
4666}
4667var xg = null, yg = null, I = false, zg = null;
4668function Ag(a, b2) {
4669  var c2 = Bg(5, null, null, 0);
4670  c2.elementType = "DELETED";
4671  c2.stateNode = b2;
4672  c2.return = a;
4673  b2 = a.deletions;
4674  null === b2 ? (a.deletions = [c2], a.flags |= 16) : b2.push(c2);
4675}
4676function Cg(a, b2) {
4677  switch (a.tag) {
4678    case 5:
4679      var c2 = a.type;
4680      b2 = 1 !== b2.nodeType || c2.toLowerCase() !== b2.nodeName.toLowerCase() ? null : b2;
4681      return null !== b2 ? (a.stateNode = b2, xg = a, yg = Lf(b2.firstChild), true) : false;
4682    case 6:
4683      return b2 = "" === a.pendingProps || 3 !== b2.nodeType ? null : b2, null !== b2 ? (a.stateNode = b2, xg = a, yg = null, true) : false;
4684    case 13:
4685      return b2 = 8 !== b2.nodeType ? null : b2, null !== b2 ? (c2 = null !== qg ? { id: rg, overflow: sg } : null, a.memoizedState = { dehydrated: b2, treeContext: c2, retryLane: 1073741824 }, c2 = Bg(18, null, null, 0), c2.stateNode = b2, c2.return = a, a.child = c2, xg = a, yg = null, true) : false;
4686    default:
4687      return false;
4688  }
4689}
4690function Dg(a) {
4691  return 0 !== (a.mode & 1) && 0 === (a.flags & 128);
4692}
4693function Eg(a) {
4694  if (I) {
4695    var b2 = yg;
4696    if (b2) {
4697      var c2 = b2;
4698      if (!Cg(a, b2)) {
4699        if (Dg(a))
4700          throw Error(p(418));
4701        b2 = Lf(c2.nextSibling);
4702        var d2 = xg;
4703        b2 && Cg(a, b2) ? Ag(d2, c2) : (a.flags = a.flags & -4097 | 2, I = false, xg = a);
4704      }
4705    } else {
4706      if (Dg(a))
4707        throw Error(p(418));
4708      a.flags = a.flags & -4097 | 2;
4709      I = false;
4710      xg = a;
4711    }
4712  }
4713}
4714function Fg(a) {
4715  for (a = a.return; null !== a && 5 !== a.tag && 3 !== a.tag && 13 !== a.tag; )
4716    a = a.return;
4717  xg = a;
4718}
4719function Gg(a) {
4720  if (a !== xg)
4721    return false;
4722  if (!I)
4723    return Fg(a), I = true, false;
4724  var b2;
4725  (b2 = 3 !== a.tag) && !(b2 = 5 !== a.tag) && (b2 = a.type, b2 = "head" !== b2 && "body" !== b2 && !Ef(a.type, a.memoizedProps));
4726  if (b2 && (b2 = yg)) {
4727    if (Dg(a))
4728      throw Hg(), Error(p(418));
4729    for (; b2; )
4730      Ag(a, b2), b2 = Lf(b2.nextSibling);
4731  }
4732  Fg(a);
4733  if (13 === a.tag) {
4734    a = a.memoizedState;
4735    a = null !== a ? a.dehydrated : null;
4736    if (!a)
4737      throw Error(p(317));
4738    a: {
4739      a = a.nextSibling;
4740      for (b2 = 0; a; ) {
4741        if (8 === a.nodeType) {
4742          var c2 = a.data;
4743          if ("/$" === c2) {
4744            if (0 === b2) {
4745              yg = Lf(a.nextSibling);
4746              break a;
4747            }
4748            b2--;
4749          } else
4750            "$" !== c2 && "$!" !== c2 && "$?" !== c2 || b2++;
4751        }
4752        a = a.nextSibling;
4753      }
4754      yg = null;
4755    }
4756  } else
4757    yg = xg ? Lf(a.stateNode.nextSibling) : null;
4758  return true;
4759}
4760function Hg() {
4761  for (var a = yg; a; )
4762    a = Lf(a.nextSibling);
4763}
4764function Ig() {
4765  yg = xg = null;
4766  I = false;
4767}
4768function Jg(a) {
4769  null === zg ? zg = [a] : zg.push(a);
4770}
4771var Kg = ua.ReactCurrentBatchConfig;
4772function Lg(a, b2) {
4773  if (a && a.defaultProps) {
4774    b2 = A({}, b2);
4775    a = a.defaultProps;
4776    for (var c2 in a)
4777      void 0 === b2[c2] && (b2[c2] = a[c2]);
4778    return b2;
4779  }
4780  return b2;
4781}
4782var Mg = Uf(null), Ng = null, Og = null, Pg = null;
4783function Qg() {
4784  Pg = Og = Ng = null;
4785}
4786function Rg(a) {
4787  var b2 = Mg.current;
4788  E(Mg);
4789  a._currentValue = b2;
4790}
4791function Sg(a, b2, c2) {
4792  for (; null !== a; ) {
4793    var d2 = a.alternate;
4794    (a.childLanes & b2) !== b2 ? (a.childLanes |= b2, null !== d2 && (d2.childLanes |= b2)) : null !== d2 && (d2.childLanes & b2) !== b2 && (d2.childLanes |= b2);
4795    if (a === c2)
4796      break;
4797    a = a.return;
4798  }
4799}
4800function Tg(a, b2) {
4801  Ng = a;
4802  Pg = Og = null;
4803  a = a.dependencies;
4804  null !== a && null !== a.firstContext && (0 !== (a.lanes & b2) && (Ug = true), a.firstContext = null);
4805}
4806function Vg(a) {
4807  var b2 = a._currentValue;
4808  if (Pg !== a)
4809    if (a = { context: a, memoizedValue: b2, next: null }, null === Og) {
4810      if (null === Ng)
4811        throw Error(p(308));
4812      Og = a;
4813      Ng.dependencies = { lanes: 0, firstContext: a };
4814    } else
4815      Og = Og.next = a;
4816  return b2;
4817}
4818var Wg = null;
4819function Xg(a) {
4820  null === Wg ? Wg = [a] : Wg.push(a);
4821}
4822function Yg(a, b2, c2, d2) {
4823  var e2 = b2.interleaved;
4824  null === e2 ? (c2.next = c2, Xg(b2)) : (c2.next = e2.next, e2.next = c2);
4825  b2.interleaved = c2;
4826  return Zg(a, d2);
4827}
4828function Zg(a, b2) {
4829  a.lanes |= b2;
4830  var c2 = a.alternate;
4831  null !== c2 && (c2.lanes |= b2);
4832  c2 = a;
4833  for (a = a.return; null !== a; )
4834    a.childLanes |= b2, c2 = a.alternate, null !== c2 && (c2.childLanes |= b2), c2 = a, a = a.return;
4835  return 3 === c2.tag ? c2.stateNode : null;
4836}
4837var $g = false;
4838function ah(a) {
4839  a.updateQueue = { baseState: a.memoizedState, firstBaseUpdate: null, lastBaseUpdate: null, shared: { pending: null, interleaved: null, lanes: 0 }, effects: null };
4840}
4841function bh(a, b2) {
4842  a = a.updateQueue;
4843  b2.updateQueue === a && (b2.updateQueue = { baseState: a.baseState, firstBaseUpdate: a.firstBaseUpdate, lastBaseUpdate: a.lastBaseUpdate, shared: a.shared, effects: a.effects });
4844}
4845function ch(a, b2) {
4846  return { eventTime: a, lane: b2, tag: 0, payload: null, callback: null, next: null };
4847}
4848function dh(a, b2, c2) {
4849  var d2 = a.updateQueue;
4850  if (null === d2)
4851    return null;
4852  d2 = d2.shared;
4853  if (0 !== (K & 2)) {
4854    var e2 = d2.pending;
4855    null === e2 ? b2.next = b2 : (b2.next = e2.next, e2.next = b2);
4856    d2.pending = b2;
4857    return Zg(a, c2);
4858  }
4859  e2 = d2.interleaved;
4860  null === e2 ? (b2.next = b2, Xg(d2)) : (b2.next = e2.next, e2.next = b2);
4861  d2.interleaved = b2;
4862  return Zg(a, c2);
4863}
4864function eh(a, b2, c2) {
4865  b2 = b2.updateQueue;
4866  if (null !== b2 && (b2 = b2.shared, 0 !== (c2 & 4194240))) {
4867    var d2 = b2.lanes;
4868    d2 &= a.pendingLanes;
4869    c2 |= d2;
4870    b2.lanes = c2;
4871    Cc(a, c2);
4872  }
4873}
4874function fh(a, b2) {
4875  var c2 = a.updateQueue, d2 = a.alternate;
4876  if (null !== d2 && (d2 = d2.updateQueue, c2 === d2)) {
4877    var e2 = null, f2 = null;
4878    c2 = c2.firstBaseUpdate;
4879    if (null !== c2) {
4880      do {
4881        var g2 = { eventTime: c2.eventTime, lane: c2.lane, tag: c2.tag, payload: c2.payload, callback: c2.callback, next: null };
4882        null === f2 ? e2 = f2 = g2 : f2 = f2.next = g2;
4883        c2 = c2.next;
4884      } while (null !== c2);
4885      null === f2 ? e2 = f2 = b2 : f2 = f2.next = b2;
4886    } else
4887      e2 = f2 = b2;
4888    c2 = { baseState: d2.baseState, firstBaseUpdate: e2, lastBaseUpdate: f2, shared: d2.shared, effects: d2.effects };
4889    a.updateQueue = c2;
4890    return;
4891  }
4892  a = c2.lastBaseUpdate;
4893  null === a ? c2.firstBaseUpdate = b2 : a.next = b2;
4894  c2.lastBaseUpdate = b2;
4895}
4896function gh(a, b2, c2, d2) {
4897  var e2 = a.updateQueue;
4898  $g = false;
4899  var f2 = e2.firstBaseUpdate, g2 = e2.lastBaseUpdate, h2 = e2.shared.pending;
4900  if (null !== h2) {
4901    e2.shared.pending = null;
4902    var k2 = h2, l2 = k2.next;
4903    k2.next = null;
4904    null === g2 ? f2 = l2 : g2.next = l2;
4905    g2 = k2;
4906    var m2 = a.alternate;
4907    null !== m2 && (m2 = m2.updateQueue, h2 = m2.lastBaseUpdate, h2 !== g2 && (null === h2 ? m2.firstBaseUpdate = l2 : h2.next = l2, m2.lastBaseUpdate = k2));
4908  }
4909  if (null !== f2) {
4910    var q2 = e2.baseState;
4911    g2 = 0;
4912    m2 = l2 = k2 = null;
4913    h2 = f2;
4914    do {
4915      var r2 = h2.lane, y2 = h2.eventTime;
4916      if ((d2 & r2) === r2) {
4917        null !== m2 && (m2 = m2.next = {
4918          eventTime: y2,
4919          lane: 0,
4920          tag: h2.tag,
4921          payload: h2.payload,
4922          callback: h2.callback,
4923          next: null
4924        });
4925        a: {
4926          var n2 = a, t2 = h2;
4927          r2 = b2;
4928          y2 = c2;
4929          switch (t2.tag) {
4930            case 1:
4931              n2 = t2.payload;
4932              if ("function" === typeof n2) {
4933                q2 = n2.call(y2, q2, r2);
4934                break a;
4935              }
4936              q2 = n2;
4937              break a;
4938            case 3:
4939              n2.flags = n2.flags & -65537 | 128;
4940            case 0:
4941              n2 = t2.payload;
4942              r2 = "function" === typeof n2 ? n2.call(y2, q2, r2) : n2;
4943              if (null === r2 || void 0 === r2)
4944                break a;
4945              q2 = A({}, q2, r2);
4946              break a;
4947            case 2:
4948              $g = true;
4949          }
4950        }
4951        null !== h2.callback && 0 !== h2.lane && (a.flags |= 64, r2 = e2.effects, null === r2 ? e2.effects = [h2] : r2.push(h2));
4952      } else
4953        y2 = { eventTime: y2, lane: r2, tag: h2.tag, payload: h2.payload, callback: h2.callback, next: null }, null === m2 ? (l2 = m2 = y2, k2 = q2) : m2 = m2.next = y2, g2 |= r2;
4954      h2 = h2.next;
4955      if (null === h2)
4956        if (h2 = e2.shared.pending, null === h2)
4957          break;
4958        else
4959          r2 = h2, h2 = r2.next, r2.next = null, e2.lastBaseUpdate = r2, e2.shared.pending = null;
4960    } while (1);
4961    null === m2 && (k2 = q2);
4962    e2.baseState = k2;
4963    e2.firstBaseUpdate = l2;
4964    e2.lastBaseUpdate = m2;
4965    b2 = e2.shared.interleaved;
4966    if (null !== b2) {
4967      e2 = b2;
4968      do
4969        g2 |= e2.lane, e2 = e2.next;
4970      while (e2 !== b2);
4971    } else
4972      null === f2 && (e2.shared.lanes = 0);
4973    hh |= g2;
4974    a.lanes = g2;
4975    a.memoizedState = q2;
4976  }
4977}
4978function ih(a, b2, c2) {
4979  a = b2.effects;
4980  b2.effects = null;
4981  if (null !== a)
4982    for (b2 = 0; b2 < a.length; b2++) {
4983      var d2 = a[b2], e2 = d2.callback;
4984      if (null !== e2) {
4985        d2.callback = null;
4986        d2 = c2;
4987        if ("function" !== typeof e2)
4988          throw Error(p(191, e2));
4989        e2.call(d2);
4990      }
4991    }
4992}
4993var jh = new aa.Component().refs;
4994function kh(a, b2, c2, d2) {
4995  b2 = a.memoizedState;
4996  c2 = c2(d2, b2);
4997  c2 = null === c2 || void 0 === c2 ? b2 : A({}, b2, c2);
4998  a.memoizedState = c2;
4999  0 === a.lanes && (a.updateQueue.baseState = c2);
5000}
5001var nh = { isMounted: function(a) {
5002  return (a = a._reactInternals) ? Vb(a) === a : false;
5003}, enqueueSetState: function(a, b2, c2) {
5004  a = a._reactInternals;
5005  var d2 = L(), e2 = lh(a), f2 = ch(d2, e2);
5006  f2.payload = b2;
5007  void 0 !== c2 && null !== c2 && (f2.callback = c2);
5008  b2 = dh(a, f2, e2);
5009  null !== b2 && (mh(b2, a, e2, d2), eh(b2, a, e2));
5010}, enqueueReplaceState: function(a, b2, c2) {
5011  a = a._reactInternals;
5012  var d2 = L(), e2 = lh(a), f2 = ch(d2, e2);
5013  f2.tag = 1;
5014  f2.payload = b2;
5015  void 0 !== c2 && null !== c2 && (f2.callback = c2);
5016  b2 = dh(a, f2, e2);
5017  null !== b2 && (mh(b2, a, e2, d2), eh(b2, a, e2));
5018}, enqueueForceUpdate: function(a, b2) {
5019  a = a._reactInternals;
5020  var c2 = L(), d2 = lh(a), e2 = ch(c2, d2);
5021  e2.tag = 2;
5022  void 0 !== b2 && null !== b2 && (e2.callback = b2);
5023  b2 = dh(a, e2, d2);
5024  null !== b2 && (mh(b2, a, d2, c2), eh(b2, a, d2));
5025} };
5026function oh(a, b2, c2, d2, e2, f2, g2) {
5027  a = a.stateNode;
5028  return "function" === typeof a.shouldComponentUpdate ? a.shouldComponentUpdate(d2, f2, g2) : b2.prototype && b2.prototype.isPureReactComponent ? !Ie(c2, d2) || !Ie(e2, f2) : true;
5029}
5030function ph(a, b2, c2) {
5031  var d2 = false, e2 = Vf;
5032  var f2 = b2.contextType;
5033  "object" === typeof f2 && null !== f2 ? f2 = Vg(f2) : (e2 = Zf(b2) ? Xf : H.current, d2 = b2.contextTypes, f2 = (d2 = null !== d2 && void 0 !== d2) ? Yf(a, e2) : Vf);
5034  b2 = new b2(c2, f2);
5035  a.memoizedState = null !== b2.state && void 0 !== b2.state ? b2.state : null;
5036  b2.updater = nh;
5037  a.stateNode = b2;
5038  b2._reactInternals = a;
5039  d2 && (a = a.stateNode, a.__reactInternalMemoizedUnmaskedChildContext = e2, a.__reactInternalMemoizedMaskedChildContext = f2);
5040  return b2;
5041}
5042function qh(a, b2, c2, d2) {
5043  a = b2.state;
5044  "function" === typeof b2.componentWillReceiveProps && b2.componentWillReceiveProps(c2, d2);
5045  "function" === typeof b2.UNSAFE_componentWillReceiveProps && b2.UNSAFE_componentWillReceiveProps(c2, d2);
5046  b2.state !== a && nh.enqueueReplaceState(b2, b2.state, null);
5047}
5048function rh(a, b2, c2, d2) {
5049  var e2 = a.stateNode;
5050  e2.props = c2;
5051  e2.state = a.memoizedState;
5052  e2.refs = jh;
5053  ah(a);
5054  var f2 = b2.contextType;
5055  "object" === typeof f2 && null !== f2 ? e2.context = Vg(f2) : (f2 = Zf(b2) ? Xf : H.current, e2.context = Yf(a, f2));
5056  e2.state = a.memoizedState;
5057  f2 = b2.getDerivedStateFromProps;
5058  "function" === typeof f2 && (kh(a, b2, f2, c2), e2.state = a.memoizedState);
5059  "function" === typeof b2.getDerivedStateFromProps || "function" === typeof e2.getSnapshotBeforeUpdate || "function" !== typeof e2.UNSAFE_componentWillMount && "function" !== typeof e2.componentWillMount || (b2 = e2.state, "function" === typeof e2.componentWillMount && e2.componentWillMount(), "function" === typeof e2.UNSAFE_componentWillMount && e2.UNSAFE_componentWillMount(), b2 !== e2.state && nh.enqueueReplaceState(e2, e2.state, null), gh(a, c2, e2, d2), e2.state = a.memoizedState);
5060  "function" === typeof e2.componentDidMount && (a.flags |= 4194308);
5061}
5062function sh(a, b2, c2) {
5063  a = c2.ref;
5064  if (null !== a && "function" !== typeof a && "object" !== typeof a) {
5065    if (c2._owner) {
5066      c2 = c2._owner;
5067      if (c2) {
5068        if (1 !== c2.tag)
5069          throw Error(p(309));
5070        var d2 = c2.stateNode;
5071      }
5072      if (!d2)
5073        throw Error(p(147, a));
5074      var e2 = d2, f2 = "" + a;
5075      if (null !== b2 && null !== b2.ref && "function" === typeof b2.ref && b2.ref._stringRef === f2)
5076        return b2.ref;
5077      b2 = function(a2) {
5078        var b3 = e2.refs;
5079        b3 === jh && (b3 = e2.refs = {});
5080        null === a2 ? delete b3[f2] : b3[f2] = a2;
5081      };
5082      b2._stringRef = f2;
5083      return b2;
5084    }
5085    if ("string" !== typeof a)
5086      throw Error(p(284));
5087    if (!c2._owner)
5088      throw Error(p(290, a));
5089  }
5090  return a;
5091}
5092function th(a, b2) {
5093  a = Object.prototype.toString.call(b2);
5094  throw Error(p(31, "[object Object]" === a ? "object with keys {" + Object.keys(b2).join(", ") + "}" : a));
5095}
5096function uh(a) {
5097  var b2 = a._init;
5098  return b2(a._payload);
5099}
5100function vh$1(a) {
5101  function b2(b3, c3) {
5102    if (a) {
5103      var d3 = b3.deletions;
5104      null === d3 ? (b3.deletions = [c3], b3.flags |= 16) : d3.push(c3);
5105    }
5106  }
5107  function c2(c3, d3) {
5108    if (!a)
5109      return null;
5110    for (; null !== d3; )
5111      b2(c3, d3), d3 = d3.sibling;
5112    return null;
5113  }
5114  function d2(a2, b3) {
5115    for (a2 = /* @__PURE__ */ new Map(); null !== b3; )
5116      null !== b3.key ? a2.set(b3.key, b3) : a2.set(b3.index, b3), b3 = b3.sibling;
5117    return a2;
5118  }
5119  function e2(a2, b3) {
5120    a2 = wh(a2, b3);
5121    a2.index = 0;
5122    a2.sibling = null;
5123    return a2;
5124  }
5125  function f2(b3, c3, d3) {
5126    b3.index = d3;
5127    if (!a)
5128      return b3.flags |= 1048576, c3;
5129    d3 = b3.alternate;
5130    if (null !== d3)
5131      return d3 = d3.index, d3 < c3 ? (b3.flags |= 2, c3) : d3;
5132    b3.flags |= 2;
5133    return c3;
5134  }
5135  function g2(b3) {
5136    a && null === b3.alternate && (b3.flags |= 2);
5137    return b3;
5138  }
5139  function h2(a2, b3, c3, d3) {
5140    if (null === b3 || 6 !== b3.tag)
5141      return b3 = xh(c3, a2.mode, d3), b3.return = a2, b3;
5142    b3 = e2(b3, c3);
5143    b3.return = a2;
5144    return b3;
5145  }
5146  function k2(a2, b3, c3, d3) {
5147    var f3 = c3.type;
5148    if (f3 === ya)
5149      return m2(a2, b3, c3.props.children, d3, c3.key);
5150    if (null !== b3 && (b3.elementType === f3 || "object" === typeof f3 && null !== f3 && f3.$$typeof === Ha && uh(f3) === b3.type))
5151      return d3 = e2(b3, c3.props), d3.ref = sh(a2, b3, c3), d3.return = a2, d3;
5152    d3 = yh(c3.type, c3.key, c3.props, null, a2.mode, d3);
5153    d3.ref = sh(a2, b3, c3);
5154    d3.return = a2;
5155    return d3;
5156  }
5157  function l2(a2, b3, c3, d3) {
5158    if (null === b3 || 4 !== b3.tag || b3.stateNode.containerInfo !== c3.containerInfo || b3.stateNode.implementation !== c3.implementation)
5159      return b3 = zh(c3, a2.mode, d3), b3.return = a2, b3;
5160    b3 = e2(b3, c3.children || []);
5161    b3.return = a2;
5162    return b3;
5163  }
5164  function m2(a2, b3, c3, d3, f3) {
5165    if (null === b3 || 7 !== b3.tag)
5166      return b3 = Ah(c3, a2.mode, d3, f3), b3.return = a2, b3;
5167    b3 = e2(b3, c3);
5168    b3.return = a2;
5169    return b3;
5170  }
5171  function q2(a2, b3, c3) {
5172    if ("string" === typeof b3 && "" !== b3 || "number" === typeof b3)
5173      return b3 = xh("" + b3, a2.mode, c3), b3.return = a2, b3;
5174    if ("object" === typeof b3 && null !== b3) {
5175      switch (b3.$$typeof) {
5176        case va:
5177          return c3 = yh(b3.type, b3.key, b3.props, null, a2.mode, c3), c3.ref = sh(a2, null, b3), c3.return = a2, c3;
5178        case wa:
5179          return b3 = zh(b3, a2.mode, c3), b3.return = a2, b3;
5180        case Ha:
5181          var d3 = b3._init;
5182          return q2(a2, d3(b3._payload), c3);
5183      }
5184      if (eb(b3) || Ka(b3))
5185        return b3 = Ah(b3, a2.mode, c3, null), b3.return = a2, b3;
5186      th(a2, b3);
5187    }
5188    return null;
5189  }
5190  function r2(a2, b3, c3, d3) {
5191    var e3 = null !== b3 ? b3.key : null;
5192    if ("string" === typeof c3 && "" !== c3 || "number" === typeof c3)
5193      return null !== e3 ? null : h2(a2, b3, "" + c3, d3);
5194    if ("object" === typeof c3 && null !== c3) {
5195      switch (c3.$$typeof) {
5196        case va:
5197          return c3.key === e3 ? k2(a2, b3, c3, d3) : null;
5198        case wa:
5199          return c3.key === e3 ? l2(a2, b3, c3, d3) : null;
5200        case Ha:
5201          return e3 = c3._init, r2(
5202            a2,
5203            b3,
5204            e3(c3._payload),
5205            d3
5206          );
5207      }
5208      if (eb(c3) || Ka(c3))
5209        return null !== e3 ? null : m2(a2, b3, c3, d3, null);
5210      th(a2, c3);
5211    }
5212    return null;
5213  }
5214  function y2(a2, b3, c3, d3, e3) {
5215    if ("string" === typeof d3 && "" !== d3 || "number" === typeof d3)
5216      return a2 = a2.get(c3) || null, h2(b3, a2, "" + d3, e3);
5217    if ("object" === typeof d3 && null !== d3) {
5218      switch (d3.$$typeof) {
5219        case va:
5220          return a2 = a2.get(null === d3.key ? c3 : d3.key) || null, k2(b3, a2, d3, e3);
5221        case wa:
5222          return a2 = a2.get(null === d3.key ? c3 : d3.key) || null, l2(b3, a2, d3, e3);
5223        case Ha:
5224          var f3 = d3._init;
5225          return y2(a2, b3, c3, f3(d3._payload), e3);
5226      }
5227      if (eb(d3) || Ka(d3))
5228        return a2 = a2.get(c3) || null, m2(b3, a2, d3, e3, null);
5229      th(b3, d3);
5230    }
5231    return null;
5232  }
5233  function n2(e3, g3, h3, k3) {
5234    for (var l3 = null, m3 = null, u2 = g3, w2 = g3 = 0, x2 = null; null !== u2 && w2 < h3.length; w2++) {
5235      u2.index > w2 ? (x2 = u2, u2 = null) : x2 = u2.sibling;
5236      var n3 = r2(e3, u2, h3[w2], k3);
5237      if (null === n3) {
5238        null === u2 && (u2 = x2);
5239        break;
5240      }
5241      a && u2 && null === n3.alternate && b2(e3, u2);
5242      g3 = f2(n3, g3, w2);
5243      null === m3 ? l3 = n3 : m3.sibling = n3;
5244      m3 = n3;
5245      u2 = x2;
5246    }
5247    if (w2 === h3.length)
5248      return c2(e3, u2), I && tg(e3, w2), l3;
5249    if (null === u2) {
5250      for (; w2 < h3.length; w2++)
5251        u2 = q2(e3, h3[w2], k3), null !== u2 && (g3 = f2(u2, g3, w2), null === m3 ? l3 = u2 : m3.sibling = u2, m3 = u2);
5252      I && tg(e3, w2);
5253      return l3;
5254    }
5255    for (u2 = d2(e3, u2); w2 < h3.length; w2++)
5256      x2 = y2(u2, e3, w2, h3[w2], k3), null !== x2 && (a && null !== x2.alternate && u2.delete(null === x2.key ? w2 : x2.key), g3 = f2(x2, g3, w2), null === m3 ? l3 = x2 : m3.sibling = x2, m3 = x2);
5257    a && u2.forEach(function(a2) {
5258      return b2(e3, a2);
5259    });
5260    I && tg(e3, w2);
5261    return l3;
5262  }
5263  function t2(e3, g3, h3, k3) {
5264    var l3 = Ka(h3);
5265    if ("function" !== typeof l3)
5266      throw Error(p(150));
5267    h3 = l3.call(h3);
5268    if (null == h3)
5269      throw Error(p(151));
5270    for (var u2 = l3 = null, m3 = g3, w2 = g3 = 0, x2 = null, n3 = h3.next(); null !== m3 && !n3.done; w2++, n3 = h3.next()) {
5271      m3.index > w2 ? (x2 = m3, m3 = null) : x2 = m3.sibling;
5272      var t3 = r2(e3, m3, n3.value, k3);
5273      if (null === t3) {
5274        null === m3 && (m3 = x2);
5275        break;
5276      }
5277      a && m3 && null === t3.alternate && b2(e3, m3);
5278      g3 = f2(t3, g3, w2);
5279      null === u2 ? l3 = t3 : u2.sibling = t3;
5280      u2 = t3;
5281      m3 = x2;
5282    }
5283    if (n3.done)
5284      return c2(
5285        e3,
5286        m3
5287      ), I && tg(e3, w2), l3;
5288    if (null === m3) {
5289      for (; !n3.done; w2++, n3 = h3.next())
5290        n3 = q2(e3, n3.value, k3), null !== n3 && (g3 = f2(n3, g3, w2), null === u2 ? l3 = n3 : u2.sibling = n3, u2 = n3);
5291      I && tg(e3, w2);
5292      return l3;
5293    }
5294    for (m3 = d2(e3, m3); !n3.done; w2++, n3 = h3.next())
5295      n3 = y2(m3, e3, w2, n3.value, k3), null !== n3 && (a && null !== n3.alternate && m3.delete(null === n3.key ? w2 : n3.key), g3 = f2(n3, g3, w2), null === u2 ? l3 = n3 : u2.sibling = n3, u2 = n3);
5296    a && m3.forEach(function(a2) {
5297      return b2(e3, a2);
5298    });
5299    I && tg(e3, w2);
5300    return l3;
5301  }
5302  function J2(a2, d3, f3, h3) {
5303    "object" === typeof f3 && null !== f3 && f3.type === ya && null === f3.key && (f3 = f3.props.children);
5304    if ("object" === typeof f3 && null !== f3) {
5305      switch (f3.$$typeof) {
5306        case va:
5307          a: {
5308            for (var k3 = f3.key, l3 = d3; null !== l3; ) {
5309              if (l3.key === k3) {
5310                k3 = f3.type;
5311                if (k3 === ya) {
5312                  if (7 === l3.tag) {
5313                    c2(a2, l3.sibling);
5314                    d3 = e2(l3, f3.props.children);
5315                    d3.return = a2;
5316                    a2 = d3;
5317                    break a;
5318                  }
5319                } else if (l3.elementType === k3 || "object" === typeof k3 && null !== k3 && k3.$$typeof === Ha && uh(k3) === l3.type) {
5320                  c2(a2, l3.sibling);
5321                  d3 = e2(l3, f3.props);
5322                  d3.ref = sh(a2, l3, f3);
5323                  d3.return = a2;
5324                  a2 = d3;
5325                  break a;
5326                }
5327                c2(a2, l3);
5328                break;
5329              } else
5330                b2(a2, l3);
5331              l3 = l3.sibling;
5332            }
5333            f3.type === ya ? (d3 = Ah(f3.props.children, a2.mode, h3, f3.key), d3.return = a2, a2 = d3) : (h3 = yh(f3.type, f3.key, f3.props, null, a2.mode, h3), h3.ref = sh(a2, d3, f3), h3.return = a2, a2 = h3);
5334          }
5335          return g2(a2);
5336        case wa:
5337          a: {
5338            for (l3 = f3.key; null !== d3; ) {
5339              if (d3.key === l3)
5340                if (4 === d3.tag && d3.stateNode.containerInfo === f3.containerInfo && d3.stateNode.implementation === f3.implementation) {
5341                  c2(a2, d3.sibling);
5342                  d3 = e2(d3, f3.children || []);
5343                  d3.return = a2;
5344                  a2 = d3;
5345                  break a;
5346                } else {
5347                  c2(a2, d3);
5348                  break;
5349                }
5350              else
5351                b2(a2, d3);
5352              d3 = d3.sibling;
5353            }
5354            d3 = zh(f3, a2.mode, h3);
5355            d3.return = a2;
5356            a2 = d3;
5357          }
5358          return g2(a2);
5359        case Ha:
5360          return l3 = f3._init, J2(a2, d3, l3(f3._payload), h3);
5361      }
5362      if (eb(f3))
5363        return n2(a2, d3, f3, h3);
5364      if (Ka(f3))
5365        return t2(a2, d3, f3, h3);
5366      th(a2, f3);
5367    }
5368    return "string" === typeof f3 && "" !== f3 || "number" === typeof f3 ? (f3 = "" + f3, null !== d3 && 6 === d3.tag ? (c2(a2, d3.sibling), d3 = e2(d3, f3), d3.return = a2, a2 = d3) : (c2(a2, d3), d3 = xh(f3, a2.mode, h3), d3.return = a2, a2 = d3), g2(a2)) : c2(a2, d3);
5369  }
5370  return J2;
5371}
5372var Bh = vh$1(true), Ch = vh$1(false), Dh = {}, Eh = Uf(Dh), Fh = Uf(Dh), Gh = Uf(Dh);
5373function Hh(a) {
5374  if (a === Dh)
5375    throw Error(p(174));
5376  return a;
5377}
5378function Ih(a, b2) {
5379  G(Gh, b2);
5380  G(Fh, a);
5381  G(Eh, Dh);
5382  a = b2.nodeType;
5383  switch (a) {
5384    case 9:
5385    case 11:
5386      b2 = (b2 = b2.documentElement) ? b2.namespaceURI : lb(null, "");
5387      break;
5388    default:
5389      a = 8 === a ? b2.parentNode : b2, b2 = a.namespaceURI || null, a = a.tagName, b2 = lb(b2, a);
5390  }
5391  E(Eh);
5392  G(Eh, b2);
5393}
5394function Jh() {
5395  E(Eh);
5396  E(Fh);
5397  E(Gh);
5398}
5399function Kh(a) {
5400  Hh(Gh.current);
5401  var b2 = Hh(Eh.current);
5402  var c2 = lb(b2, a.type);
5403  b2 !== c2 && (G(Fh, a), G(Eh, c2));
5404}
5405function Lh(a) {
5406  Fh.current === a && (E(Eh), E(Fh));
5407}
5408var M = Uf(0);
5409function Mh(a) {
5410  for (var b2 = a; null !== b2; ) {
5411    if (13 === b2.tag) {
5412      var c2 = b2.memoizedState;
5413      if (null !== c2 && (c2 = c2.dehydrated, null === c2 || "$?" === c2.data || "$!" === c2.data))
5414        return b2;
5415    } else if (19 === b2.tag && void 0 !== b2.memoizedProps.revealOrder) {
5416      if (0 !== (b2.flags & 128))
5417        return b2;
5418    } else if (null !== b2.child) {
5419      b2.child.return = b2;
5420      b2 = b2.child;
5421      continue;
5422    }
5423    if (b2 === a)
5424      break;
5425    for (; null === b2.sibling; ) {
5426      if (null === b2.return || b2.return === a)
5427        return null;
5428      b2 = b2.return;
5429    }
5430    b2.sibling.return = b2.return;
5431    b2 = b2.sibling;
5432  }
5433  return null;
5434}
5435var Nh = [];
5436function Oh() {
5437  for (var a = 0; a < Nh.length; a++)
5438    Nh[a]._workInProgressVersionPrimary = null;
5439  Nh.length = 0;
5440}
5441var Ph = ua.ReactCurrentDispatcher, Qh = ua.ReactCurrentBatchConfig, Rh = 0, N = null, O = null, P = null, Sh = false, Th = false, Uh = 0, Vh = 0;
5442function Q() {
5443  throw Error(p(321));
5444}
5445function Wh(a, b2) {
5446  if (null === b2)
5447    return false;
5448  for (var c2 = 0; c2 < b2.length && c2 < a.length; c2++)
5449    if (!He(a[c2], b2[c2]))
5450      return false;
5451  return true;
5452}
5453function Xh(a, b2, c2, d2, e2, f2) {
5454  Rh = f2;
5455  N = b2;
5456  b2.memoizedState = null;
5457  b2.updateQueue = null;
5458  b2.lanes = 0;
5459  Ph.current = null === a || null === a.memoizedState ? Yh : Zh;
5460  a = c2(d2, e2);
5461  if (Th) {
5462    f2 = 0;
5463    do {
5464      Th = false;
5465      Uh = 0;
5466      if (25 <= f2)
5467        throw Error(p(301));
5468      f2 += 1;
5469      P = O = null;
5470      b2.updateQueue = null;
5471      Ph.current = $h;
5472      a = c2(d2, e2);
5473    } while (Th);
5474  }
5475  Ph.current = ai;
5476  b2 = null !== O && null !== O.next;
5477  Rh = 0;
5478  P = O = N = null;
5479  Sh = false;
5480  if (b2)
5481    throw Error(p(300));
5482  return a;
5483}
5484function bi() {
5485  var a = 0 !== Uh;
5486  Uh = 0;
5487  return a;
5488}
5489function ci() {
5490  var a = { memoizedState: null, baseState: null, baseQueue: null, queue: null, next: null };
5491  null === P ? N.memoizedState = P = a : P = P.next = a;
5492  return P;
5493}
5494function di() {
5495  if (null === O) {
5496    var a = N.alternate;
5497    a = null !== a ? a.memoizedState : null;
5498  } else
5499    a = O.next;
5500  var b2 = null === P ? N.memoizedState : P.next;
5501  if (null !== b2)
5502    P = b2, O = a;
5503  else {
5504    if (null === a)
5505      throw Error(p(310));
5506    O = a;
5507    a = { memoizedState: O.memoizedState, baseState: O.baseState, baseQueue: O.baseQueue, queue: O.queue, next: null };
5508    null === P ? N.memoizedState = P = a : P = P.next = a;
5509  }
5510  return P;
5511}
5512function ei(a, b2) {
5513  return "function" === typeof b2 ? b2(a) : b2;
5514}
5515function fi(a) {
5516  var b2 = di(), c2 = b2.queue;
5517  if (null === c2)
5518    throw Error(p(311));
5519  c2.lastRenderedReducer = a;
5520  var d2 = O, e2 = d2.baseQueue, f2 = c2.pending;
5521  if (null !== f2) {
5522    if (null !== e2) {
5523      var g2 = e2.next;
5524      e2.next = f2.next;
5525      f2.next = g2;
5526    }
5527    d2.baseQueue = e2 = f2;
5528    c2.pending = null;
5529  }
5530  if (null !== e2) {
5531    f2 = e2.next;
5532    d2 = d2.baseState;
5533    var h2 = g2 = null, k2 = null, l2 = f2;
5534    do {
5535      var m2 = l2.lane;
5536      if ((Rh & m2) === m2)
5537        null !== k2 && (k2 = k2.next = { lane: 0, action: l2.action, hasEagerState: l2.hasEagerState, eagerState: l2.eagerState, next: null }), d2 = l2.hasEagerState ? l2.eagerState : a(d2, l2.action);
5538      else {
5539        var q2 = {
5540          lane: m2,
5541          action: l2.action,
5542          hasEagerState: l2.hasEagerState,
5543          eagerState: l2.eagerState,
5544          next: null
5545        };
5546        null === k2 ? (h2 = k2 = q2, g2 = d2) : k2 = k2.next = q2;
5547        N.lanes |= m2;
5548        hh |= m2;
5549      }
5550      l2 = l2.next;
5551    } while (null !== l2 && l2 !== f2);
5552    null === k2 ? g2 = d2 : k2.next = h2;
5553    He(d2, b2.memoizedState) || (Ug = true);
5554    b2.memoizedState = d2;
5555    b2.baseState = g2;
5556    b2.baseQueue = k2;
5557    c2.lastRenderedState = d2;
5558  }
5559  a = c2.interleaved;
5560  if (null !== a) {
5561    e2 = a;
5562    do
5563      f2 = e2.lane, N.lanes |= f2, hh |= f2, e2 = e2.next;
5564    while (e2 !== a);
5565  } else
5566    null === e2 && (c2.lanes = 0);
5567  return [b2.memoizedState, c2.dispatch];
5568}
5569function gi(a) {
5570  var b2 = di(), c2 = b2.queue;
5571  if (null === c2)
5572    throw Error(p(311));
5573  c2.lastRenderedReducer = a;
5574  var d2 = c2.dispatch, e2 = c2.pending, f2 = b2.memoizedState;
5575  if (null !== e2) {
5576    c2.pending = null;
5577    var g2 = e2 = e2.next;
5578    do
5579      f2 = a(f2, g2.action), g2 = g2.next;
5580    while (g2 !== e2);
5581    He(f2, b2.memoizedState) || (Ug = true);
5582    b2.memoizedState = f2;
5583    null === b2.baseQueue && (b2.baseState = f2);
5584    c2.lastRenderedState = f2;
5585  }
5586  return [f2, d2];
5587}
5588function hi() {
5589}
5590function ii(a, b2) {
5591  var c2 = N, d2 = di(), e2 = b2(), f2 = !He(d2.memoizedState, e2);
5592  f2 && (d2.memoizedState = e2, Ug = true);
5593  d2 = d2.queue;
5594  ji(ki.bind(null, c2, d2, a), [a]);
5595  if (d2.getSnapshot !== b2 || f2 || null !== P && P.memoizedState.tag & 1) {
5596    c2.flags |= 2048;
5597    li(9, mi.bind(null, c2, d2, e2, b2), void 0, null);
5598    if (null === R)
5599      throw Error(p(349));
5600    0 !== (Rh & 30) || ni(c2, b2, e2);
5601  }
5602  return e2;
5603}
5604function ni(a, b2, c2) {
5605  a.flags |= 16384;
5606  a = { getSnapshot: b2, value: c2 };
5607  b2 = N.updateQueue;
5608  null === b2 ? (b2 = { lastEffect: null, stores: null }, N.updateQueue = b2, b2.stores = [a]) : (c2 = b2.stores, null === c2 ? b2.stores = [a] : c2.push(a));
5609}
5610function mi(a, b2, c2, d2) {
5611  b2.value = c2;
5612  b2.getSnapshot = d2;
5613  oi(b2) && pi(a);
5614}
5615function ki(a, b2, c2) {
5616  return c2(function() {
5617    oi(b2) && pi(a);
5618  });
5619}
5620function oi(a) {
5621  var b2 = a.getSnapshot;
5622  a = a.value;
5623  try {
5624    var c2 = b2();
5625    return !He(a, c2);
5626  } catch (d2) {
5627    return true;
5628  }
5629}
5630function pi(a) {
5631  var b2 = Zg(a, 1);
5632  null !== b2 && mh(b2, a, 1, -1);
5633}
5634function qi(a) {
5635  var b2 = ci();
5636  "function" === typeof a && (a = a());
5637  b2.memoizedState = b2.baseState = a;
5638  a = { pending: null, interleaved: null, lanes: 0, dispatch: null, lastRenderedReducer: ei, lastRenderedState: a };
5639  b2.queue = a;
5640  a = a.dispatch = ri.bind(null, N, a);
5641  return [b2.memoizedState, a];
5642}
5643function li(a, b2, c2, d2) {
5644  a = { tag: a, create: b2, destroy: c2, deps: d2, next: null };
5645  b2 = N.updateQueue;
5646  null === b2 ? (b2 = { lastEffect: null, stores: null }, N.updateQueue = b2, b2.lastEffect = a.next = a) : (c2 = b2.lastEffect, null === c2 ? b2.lastEffect = a.next = a : (d2 = c2.next, c2.next = a, a.next = d2, b2.lastEffect = a));
5647  return a;
5648}
5649function si() {
5650  return di().memoizedState;
5651}
5652function ti(a, b2, c2, d2) {
5653  var e2 = ci();
5654  N.flags |= a;
5655  e2.memoizedState = li(1 | b2, c2, void 0, void 0 === d2 ? null : d2);
5656}
5657function ui(a, b2, c2, d2) {
5658  var e2 = di();
5659  d2 = void 0 === d2 ? null : d2;
5660  var f2 = void 0;
5661  if (null !== O) {
5662    var g2 = O.memoizedState;
5663    f2 = g2.destroy;
5664    if (null !== d2 && Wh(d2, g2.deps)) {
5665      e2.memoizedState = li(b2, c2, f2, d2);
5666      return;
5667    }
5668  }
5669  N.flags |= a;
5670  e2.memoizedState = li(1 | b2, c2, f2, d2);
5671}
5672function vi(a, b2) {
5673  return ti(8390656, 8, a, b2);
5674}
5675function ji(a, b2) {
5676  return ui(2048, 8, a, b2);
5677}
5678function wi(a, b2) {
5679  return ui(4, 2, a, b2);
5680}
5681function xi(a, b2) {
5682  return ui(4, 4, a, b2);
5683}
5684function yi(a, b2) {
5685  if ("function" === typeof b2)
5686    return a = a(), b2(a), function() {
5687      b2(null);
5688    };
5689  if (null !== b2 && void 0 !== b2)
5690    return a = a(), b2.current = a, function() {
5691      b2.current = null;
5692    };
5693}
5694function zi(a, b2, c2) {
5695  c2 = null !== c2 && void 0 !== c2 ? c2.concat([a]) : null;
5696  return ui(4, 4, yi.bind(null, b2, a), c2);
5697}
5698function Ai() {
5699}
5700function Bi(a, b2) {
5701  var c2 = di();
5702  b2 = void 0 === b2 ? null : b2;
5703  var d2 = c2.memoizedState;
5704  if (null !== d2 && null !== b2 && Wh(b2, d2[1]))
5705    return d2[0];
5706  c2.memoizedState = [a, b2];
5707  return a;
5708}
5709function Ci(a, b2) {
5710  var c2 = di();
5711  b2 = void 0 === b2 ? null : b2;
5712  var d2 = c2.memoizedState;
5713  if (null !== d2 && null !== b2 && Wh(b2, d2[1]))
5714    return d2[0];
5715  a = a();
5716  c2.memoizedState = [a, b2];
5717  return a;
5718}
5719function Di(a, b2, c2) {
5720  if (0 === (Rh & 21))
5721    return a.baseState && (a.baseState = false, Ug = true), a.memoizedState = c2;
5722  He(c2, b2) || (c2 = yc(), N.lanes |= c2, hh |= c2, a.baseState = true);
5723  return b2;
5724}
5725function Ei(a, b2) {
5726  var c2 = C;
5727  C = 0 !== c2 && 4 > c2 ? c2 : 4;
5728  a(true);
5729  var d2 = Qh.transition;
5730  Qh.transition = {};
5731  try {
5732    a(false), b2();
5733  } finally {
5734    C = c2, Qh.transition = d2;
5735  }
5736}
5737function Fi() {
5738  return di().memoizedState;
5739}
5740function Gi(a, b2, c2) {
5741  var d2 = lh(a);
5742  c2 = { lane: d2, action: c2, hasEagerState: false, eagerState: null, next: null };
5743  if (Hi(a))
5744    Ii(b2, c2);
5745  else if (c2 = Yg(a, b2, c2, d2), null !== c2) {
5746    var e2 = L();
5747    mh(c2, a, d2, e2);
5748    Ji(c2, b2, d2);
5749  }
5750}
5751function ri(a, b2, c2) {
5752  var d2 = lh(a), e2 = { lane: d2, action: c2, hasEagerState: false, eagerState: null, next: null };
5753  if (Hi(a))
5754    Ii(b2, e2);
5755  else {
5756    var f2 = a.alternate;
5757    if (0 === a.lanes && (null === f2 || 0 === f2.lanes) && (f2 = b2.lastRenderedReducer, null !== f2))
5758      try {
5759        var g2 = b2.lastRenderedState, h2 = f2(g2, c2);
5760        e2.hasEagerState = true;
5761        e2.eagerState = h2;
5762        if (He(h2, g2)) {
5763          var k2 = b2.interleaved;
5764          null === k2 ? (e2.next = e2, Xg(b2)) : (e2.next = k2.next, k2.next = e2);
5765          b2.interleaved = e2;
5766          return;
5767        }
5768      } catch (l2) {
5769      } finally {
5770      }
5771    c2 = Yg(a, b2, e2, d2);
5772    null !== c2 && (e2 = L(), mh(c2, a, d2, e2), Ji(c2, b2, d2));
5773  }
5774}
5775function Hi(a) {
5776  var b2 = a.alternate;
5777  return a === N || null !== b2 && b2 === N;
5778}
5779function Ii(a, b2) {
5780  Th = Sh = true;
5781  var c2 = a.pending;
5782  null === c2 ? b2.next = b2 : (b2.next = c2.next, c2.next = b2);
5783  a.pending = b2;
5784}
5785function Ji(a, b2, c2) {
5786  if (0 !== (c2 & 4194240)) {
5787    var d2 = b2.lanes;
5788    d2 &= a.pendingLanes;
5789    c2 |= d2;
5790    b2.lanes = c2;
5791    Cc(a, c2);
5792  }
5793}
5794var ai = { readContext: Vg, useCallback: Q, useContext: Q, useEffect: Q, useImperativeHandle: Q, useInsertionEffect: Q, useLayoutEffect: Q, useMemo: Q, useReducer: Q, useRef: Q, useState: Q, useDebugValue: Q, useDeferredValue: Q, useTransition: Q, useMutableSource: Q, useSyncExternalStore: Q, useId: Q, unstable_isNewReconciler: false }, Yh = { readContext: Vg, useCallback: function(a, b2) {
5795  ci().memoizedState = [a, void 0 === b2 ? null : b2];
5796  return a;
5797}, useContext: Vg, useEffect: vi, useImperativeHandle: function(a, b2, c2) {
5798  c2 = null !== c2 && void 0 !== c2 ? c2.concat([a]) : null;
5799  return ti(
5800    4194308,
5801    4,
5802    yi.bind(null, b2, a),
5803    c2
5804  );
5805}, useLayoutEffect: function(a, b2) {
5806  return ti(4194308, 4, a, b2);
5807}, useInsertionEffect: function(a, b2) {
5808  return ti(4, 2, a, b2);
5809}, useMemo: function(a, b2) {
5810  var c2 = ci();
5811  b2 = void 0 === b2 ? null : b2;
5812  a = a();
5813  c2.memoizedState = [a, b2];
5814  return a;
5815}, useReducer: function(a, b2, c2) {
5816  var d2 = ci();
5817  b2 = void 0 !== c2 ? c2(b2) : b2;
5818  d2.memoizedState = d2.baseState = b2;
5819  a = { pending: null, interleaved: null, lanes: 0, dispatch: null, lastRenderedReducer: a, lastRenderedState: b2 };
5820  d2.queue = a;
5821  a = a.dispatch = Gi.bind(null, N, a);
5822  return [d2.memoizedState, a];
5823}, useRef: function(a) {
5824  var b2 = ci();
5825  a = { current: a };
5826  return b2.memoizedState = a;
5827}, useState: qi, useDebugValue: Ai, useDeferredValue: function(a) {
5828  return ci().memoizedState = a;
5829}, useTransition: function() {
5830  var a = qi(false), b2 = a[0];
5831  a = Ei.bind(null, a[1]);
5832  ci().memoizedState = a;
5833  return [b2, a];
5834}, useMutableSource: function() {
5835}, useSyncExternalStore: function(a, b2, c2) {
5836  var d2 = N, e2 = ci();
5837  if (I) {
5838    if (void 0 === c2)
5839      throw Error(p(407));
5840    c2 = c2();
5841  } else {
5842    c2 = b2();
5843    if (null === R)
5844      throw Error(p(349));
5845    0 !== (Rh & 30) || ni(d2, b2, c2);
5846  }
5847  e2.memoizedState = c2;
5848  var f2 = { value: c2, getSnapshot: b2 };
5849  e2.queue = f2;
5850  vi(ki.bind(
5851    null,
5852    d2,
5853    f2,
5854    a
5855  ), [a]);
5856  d2.flags |= 2048;
5857  li(9, mi.bind(null, d2, f2, c2, b2), void 0, null);
5858  return c2;
5859}, useId: function() {
5860  var a = ci(), b2 = R.identifierPrefix;
5861  if (I) {
5862    var c2 = sg;
5863    var d2 = rg;
5864    c2 = (d2 & ~(1 << 32 - oc(d2) - 1)).toString(32) + c2;
5865    b2 = ":" + b2 + "R" + c2;
5866    c2 = Uh++;
5867    0 < c2 && (b2 += "H" + c2.toString(32));
5868    b2 += ":";
5869  } else
5870    c2 = Vh++, b2 = ":" + b2 + "r" + c2.toString(32) + ":";
5871  return a.memoizedState = b2;
5872}, unstable_isNewReconciler: false }, Zh = {
5873  readContext: Vg,
5874  useCallback: Bi,
5875  useContext: Vg,
5876  useEffect: ji,
5877  useImperativeHandle: zi,
5878  useInsertionEffect: wi,
5879  useLayoutEffect: xi,
5880  useMemo: Ci,
5881  useReducer: fi,
5882  useRef: si,
5883  useState: function() {
5884    return fi(ei);
5885  },
5886  useDebugValue: Ai,
5887  useDeferredValue: function(a) {
5888    var b2 = di();
5889    return Di(b2, O.memoizedState, a);
5890  },
5891  useTransition: function() {
5892    var a = fi(ei)[0], b2 = di().memoizedState;
5893    return [a, b2];
5894  },
5895  useMutableSource: hi,
5896  useSyncExternalStore: ii,
5897  useId: Fi,
5898  unstable_isNewReconciler: false
5899}, $h = { readContext: Vg, useCallback: Bi, useContext: Vg, useEffect: ji, useImperativeHandle: zi, useInsertionEffect: wi, useLayoutEffect: xi, useMemo: Ci, useReducer: gi, useRef: si, useState: function() {
5900  return gi(ei);
5901}, useDebugValue: Ai, useDeferredValue: function(a) {
5902  var b2 = di();
5903  return null === O ? b2.memoizedState = a : Di(b2, O.memoizedState, a);
5904}, useTransition: function() {
5905  var a = gi(ei)[0], b2 = di().memoizedState;
5906  return [a, b2];
5907}, useMutableSource: hi, useSyncExternalStore: ii, useId: Fi, unstable_isNewReconciler: false };
5908function Ki(a, b2) {
5909  try {
5910    var c2 = "", d2 = b2;
5911    do
5912      c2 += Pa(d2), d2 = d2.return;
5913    while (d2);
5914    var e2 = c2;
5915  } catch (f2) {
5916    e2 = "\nError generating stack: " + f2.message + "\n" + f2.stack;
5917  }
5918  return { value: a, source: b2, stack: e2, digest: null };
5919}
5920function Li(a, b2, c2) {
5921  return { value: a, source: null, stack: null != c2 ? c2 : null, digest: null != b2 ? b2 : null };
5922}
5923function Mi(a, b2) {
5924  try {
5925    console.error(b2.value);
5926  } catch (c2) {
5927    setTimeout(function() {
5928      throw c2;
5929    });
5930  }
5931}
5932var Ni = "function" === typeof WeakMap ? WeakMap : Map;
5933function Oi(a, b2, c2) {
5934  c2 = ch(-1, c2);
5935  c2.tag = 3;
5936  c2.payload = { element: null };
5937  var d2 = b2.value;
5938  c2.callback = function() {
5939    Pi || (Pi = true, Qi = d2);
5940    Mi(a, b2);
5941  };
5942  return c2;
5943}
5944function Ri(a, b2, c2) {
5945  c2 = ch(-1, c2);
5946  c2.tag = 3;
5947  var d2 = a.type.getDerivedStateFromError;
5948  if ("function" === typeof d2) {
5949    var e2 = b2.value;
5950    c2.payload = function() {
5951      return d2(e2);
5952    };
5953    c2.callback = function() {
5954      Mi(a, b2);
5955    };
5956  }
5957  var f2 = a.stateNode;
5958  null !== f2 && "function" === typeof f2.componentDidCatch && (c2.callback = function() {
5959    Mi(a, b2);
5960    "function" !== typeof d2 && (null === Si ? Si = /* @__PURE__ */ new Set([this]) : Si.add(this));
5961    var c3 = b2.stack;
5962    this.componentDidCatch(b2.value, { componentStack: null !== c3 ? c3 : "" });
5963  });
5964  return c2;
5965}
5966function Ti(a, b2, c2) {
5967  var d2 = a.pingCache;
5968  if (null === d2) {
5969    d2 = a.pingCache = new Ni();
5970    var e2 = /* @__PURE__ */ new Set();
5971    d2.set(b2, e2);
5972  } else
5973    e2 = d2.get(b2), void 0 === e2 && (e2 = /* @__PURE__ */ new Set(), d2.set(b2, e2));
5974  e2.has(c2) || (e2.add(c2), a = Ui.bind(null, a, b2, c2), b2.then(a, a));
5975}
5976function Vi(a) {
5977  do {
5978    var b2;
5979    if (b2 = 13 === a.tag)
5980      b2 = a.memoizedState, b2 = null !== b2 ? null !== b2.dehydrated ? true : false : true;
5981    if (b2)
5982      return a;
5983    a = a.return;
5984  } while (null !== a);
5985  return null;
5986}
5987function Wi(a, b2, c2, d2, e2) {
5988  if (0 === (a.mode & 1))
5989    return a === b2 ? a.flags |= 65536 : (a.flags |= 128, c2.flags |= 131072, c2.flags &= -52805, 1 === c2.tag && (null === c2.alternate ? c2.tag = 17 : (b2 = ch(-1, 1), b2.tag = 2, dh(c2, b2, 1))), c2.lanes |= 1), a;
5990  a.flags |= 65536;
5991  a.lanes = e2;
5992  return a;
5993}
5994var Xi = ua.ReactCurrentOwner, Ug = false;
5995function Yi(a, b2, c2, d2) {
5996  b2.child = null === a ? Ch(b2, null, c2, d2) : Bh(b2, a.child, c2, d2);
5997}
5998function Zi(a, b2, c2, d2, e2) {
5999  c2 = c2.render;
6000  var f2 = b2.ref;
6001  Tg(b2, e2);
6002  d2 = Xh(a, b2, c2, d2, f2, e2);
6003  c2 = bi();
6004  if (null !== a && !Ug)
6005    return b2.updateQueue = a.updateQueue, b2.flags &= -2053, a.lanes &= ~e2, $i(a, b2, e2);
6006  I && c2 && vg(b2);
6007  b2.flags |= 1;
6008  Yi(a, b2, d2, e2);
6009  return b2.child;
6010}
6011function aj(a, b2, c2, d2, e2) {
6012  if (null === a) {
6013    var f2 = c2.type;
6014    if ("function" === typeof f2 && !bj(f2) && void 0 === f2.defaultProps && null === c2.compare && void 0 === c2.defaultProps)
6015      return b2.tag = 15, b2.type = f2, cj(a, b2, f2, d2, e2);
6016    a = yh(c2.type, null, d2, b2, b2.mode, e2);
6017    a.ref = b2.ref;
6018    a.return = b2;
6019    return b2.child = a;
6020  }
6021  f2 = a.child;
6022  if (0 === (a.lanes & e2)) {
6023    var g2 = f2.memoizedProps;
6024    c2 = c2.compare;
6025    c2 = null !== c2 ? c2 : Ie;
6026    if (c2(g2, d2) && a.ref === b2.ref)
6027      return $i(a, b2, e2);
6028  }
6029  b2.flags |= 1;
6030  a = wh(f2, d2);
6031  a.ref = b2.ref;
6032  a.return = b2;
6033  return b2.child = a;
6034}
6035function cj(a, b2, c2, d2, e2) {
6036  if (null !== a) {
6037    var f2 = a.memoizedProps;
6038    if (Ie(f2, d2) && a.ref === b2.ref)
6039      if (Ug = false, b2.pendingProps = d2 = f2, 0 !== (a.lanes & e2))
6040        0 !== (a.flags & 131072) && (Ug = true);
6041      else
6042        return b2.lanes = a.lanes, $i(a, b2, e2);
6043  }
6044  return dj(a, b2, c2, d2, e2);
6045}
6046function ej(a, b2, c2) {
6047  var d2 = b2.pendingProps, e2 = d2.children, f2 = null !== a ? a.memoizedState : null;
6048  if ("hidden" === d2.mode)
6049    if (0 === (b2.mode & 1))
6050      b2.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }, G(fj, gj), gj |= c2;
6051    else {
6052      if (0 === (c2 & 1073741824))
6053        return a = null !== f2 ? f2.baseLanes | c2 : c2, b2.lanes = b2.childLanes = 1073741824, b2.memoizedState = { baseLanes: a, cachePool: null, transitions: null }, b2.updateQueue = null, G(fj, gj), gj |= a, null;
6054      b2.memoizedState = { baseLanes: 0, cachePool: null, transitions: null };
6055      d2 = null !== f2 ? f2.baseLanes : c2;
6056      G(fj, gj);
6057      gj |= d2;
6058    }
6059  else
6060    null !== f2 ? (d2 = f2.baseLanes | c2, b2.memoizedState = null) : d2 = c2, G(fj, gj), gj |= d2;
6061  Yi(a, b2, e2, c2);
6062  return b2.child;
6063}
6064function hj(a, b2) {
6065  var c2 = b2.ref;
6066  if (null === a && null !== c2 || null !== a && a.ref !== c2)
6067    b2.flags |= 512, b2.flags |= 2097152;
6068}
6069function dj(a, b2, c2, d2, e2) {
6070  var f2 = Zf(c2) ? Xf : H.current;
6071  f2 = Yf(b2, f2);
6072  Tg(b2, e2);
6073  c2 = Xh(a, b2, c2, d2, f2, e2);
6074  d2 = bi();
6075  if (null !== a && !Ug)
6076    return b2.updateQueue = a.updateQueue, b2.flags &= -2053, a.lanes &= ~e2, $i(a, b2, e2);
6077  I && d2 && vg(b2);
6078  b2.flags |= 1;
6079  Yi(a, b2, c2, e2);
6080  return b2.child;
6081}
6082function ij(a, b2, c2, d2, e2) {
6083  if (Zf(c2)) {
6084    var f2 = true;
6085    cg(b2);
6086  } else
6087    f2 = false;
6088  Tg(b2, e2);
6089  if (null === b2.stateNode)
6090    jj(a, b2), ph(b2, c2, d2), rh(b2, c2, d2, e2), d2 = true;
6091  else if (null === a) {
6092    var g2 = b2.stateNode, h2 = b2.memoizedProps;
6093    g2.props = h2;
6094    var k2 = g2.context, l2 = c2.contextType;
6095    "object" === typeof l2 && null !== l2 ? l2 = Vg(l2) : (l2 = Zf(c2) ? Xf : H.current, l2 = Yf(b2, l2));
6096    var m2 = c2.getDerivedStateFromProps, q2 = "function" === typeof m2 || "function" === typeof g2.getSnapshotBeforeUpdate;
6097    q2 || "function" !== typeof g2.UNSAFE_componentWillReceiveProps && "function" !== typeof g2.componentWillReceiveProps || (h2 !== d2 || k2 !== l2) && qh(b2, g2, d2, l2);
6098    $g = false;
6099    var r2 = b2.memoizedState;
6100    g2.state = r2;
6101    gh(b2, d2, g2, e2);
6102    k2 = b2.memoizedState;
6103    h2 !== d2 || r2 !== k2 || Wf.current || $g ? ("function" === typeof m2 && (kh(b2, c2, m2, d2), k2 = b2.memoizedState), (h2 = $g || oh(b2, c2, h2, d2, r2, k2, l2)) ? (q2 || "function" !== typeof g2.UNSAFE_componentWillMount && "function" !== typeof g2.componentWillMount || ("function" === typeof g2.componentWillMount && g2.componentWillMount(), "function" === typeof g2.UNSAFE_componentWillMount && g2.UNSAFE_componentWillMount()), "function" === typeof g2.componentDidMount && (b2.flags |= 4194308)) : ("function" === typeof g2.componentDidMount && (b2.flags |= 4194308), b2.memoizedProps = d2, b2.memoizedState = k2), g2.props = d2, g2.state = k2, g2.context = l2, d2 = h2) : ("function" === typeof g2.componentDidMount && (b2.flags |= 4194308), d2 = false);
6104  } else {
6105    g2 = b2.stateNode;
6106    bh(a, b2);
6107    h2 = b2.memoizedProps;
6108    l2 = b2.type === b2.elementType ? h2 : Lg(b2.type, h2);
6109    g2.props = l2;
6110    q2 = b2.pendingProps;
6111    r2 = g2.context;
6112    k2 = c2.contextType;
6113    "object" === typeof k2 && null !== k2 ? k2 = Vg(k2) : (k2 = Zf(c2) ? Xf : H.current, k2 = Yf(b2, k2));
6114    var y2 = c2.getDerivedStateFromProps;
6115    (m2 = "function" === typeof y2 || "function" === typeof g2.getSnapshotBeforeUpdate) || "function" !== typeof g2.UNSAFE_componentWillReceiveProps && "function" !== typeof g2.componentWillReceiveProps || (h2 !== q2 || r2 !== k2) && qh(b2, g2, d2, k2);
6116    $g = false;
6117    r2 = b2.memoizedState;
6118    g2.state = r2;
6119    gh(b2, d2, g2, e2);
6120    var n2 = b2.memoizedState;
6121    h2 !== q2 || r2 !== n2 || Wf.current || $g ? ("function" === typeof y2 && (kh(b2, c2, y2, d2), n2 = b2.memoizedState), (l2 = $g || oh(b2, c2, l2, d2, r2, n2, k2) || false) ? (m2 || "function" !== typeof g2.UNSAFE_componentWillUpdate && "function" !== typeof g2.componentWillUpdate || ("function" === typeof g2.componentWillUpdate && g2.componentWillUpdate(d2, n2, k2), "function" === typeof g2.UNSAFE_componentWillUpdate && g2.UNSAFE_componentWillUpdate(d2, n2, k2)), "function" === typeof g2.componentDidUpdate && (b2.flags |= 4), "function" === typeof g2.getSnapshotBeforeUpdate && (b2.flags |= 1024)) : ("function" !== typeof g2.componentDidUpdate || h2 === a.memoizedProps && r2 === a.memoizedState || (b2.flags |= 4), "function" !== typeof g2.getSnapshotBeforeUpdate || h2 === a.memoizedProps && r2 === a.memoizedState || (b2.flags |= 1024), b2.memoizedProps = d2, b2.memoizedState = n2), g2.props = d2, g2.state = n2, g2.context = k2, d2 = l2) : ("function" !== typeof g2.componentDidUpdate || h2 === a.memoizedProps && r2 === a.memoizedState || (b2.flags |= 4), "function" !== typeof g2.getSnapshotBeforeUpdate || h2 === a.memoizedProps && r2 === a.memoizedState || (b2.flags |= 1024), d2 = false);
6122  }
6123  return kj(a, b2, c2, d2, f2, e2);
6124}
6125function kj(a, b2, c2, d2, e2, f2) {
6126  hj(a, b2);
6127  var g2 = 0 !== (b2.flags & 128);
6128  if (!d2 && !g2)
6129    return e2 && dg(b2, c2, false), $i(a, b2, f2);
6130  d2 = b2.stateNode;
6131  Xi.current = b2;
6132  var h2 = g2 && "function" !== typeof c2.getDerivedStateFromError ? null : d2.render();
6133  b2.flags |= 1;
6134  null !== a && g2 ? (b2.child = Bh(b2, a.child, null, f2), b2.child = Bh(b2, null, h2, f2)) : Yi(a, b2, h2, f2);
6135  b2.memoizedState = d2.state;
6136  e2 && dg(b2, c2, true);
6137  return b2.child;
6138}
6139function lj(a) {
6140  var b2 = a.stateNode;
6141  b2.pendingContext ? ag(a, b2.pendingContext, b2.pendingContext !== b2.context) : b2.context && ag(a, b2.context, false);
6142  Ih(a, b2.containerInfo);
6143}
6144function mj(a, b2, c2, d2, e2) {
6145  Ig();
6146  Jg(e2);
6147  b2.flags |= 256;
6148  Yi(a, b2, c2, d2);
6149  return b2.child;
6150}
6151var nj = { dehydrated: null, treeContext: null, retryLane: 0 };
6152function oj(a) {
6153  return { baseLanes: a, cachePool: null, transitions: null };
6154}
6155function pj(a, b2, c2) {
6156  var d2 = b2.pendingProps, e2 = M.current, f2 = false, g2 = 0 !== (b2.flags & 128), h2;
6157  (h2 = g2) || (h2 = null !== a && null === a.memoizedState ? false : 0 !== (e2 & 2));
6158  if (h2)
6159    f2 = true, b2.flags &= -129;
6160  else if (null === a || null !== a.memoizedState)
6161    e2 |= 1;
6162  G(M, e2 & 1);
6163  if (null === a) {
6164    Eg(b2);
6165    a = b2.memoizedState;
6166    if (null !== a && (a = a.dehydrated, null !== a))
6167      return 0 === (b2.mode & 1) ? b2.lanes = 1 : "$!" === a.data ? b2.lanes = 8 : b2.lanes = 1073741824, null;
6168    g2 = d2.children;
6169    a = d2.fallback;
6170    return f2 ? (d2 = b2.mode, f2 = b2.child, g2 = { mode: "hidden", children: g2 }, 0 === (d2 & 1) && null !== f2 ? (f2.childLanes = 0, f2.pendingProps = g2) : f2 = qj(g2, d2, 0, null), a = Ah(a, d2, c2, null), f2.return = b2, a.return = b2, f2.sibling = a, b2.child = f2, b2.child.memoizedState = oj(c2), b2.memoizedState = nj, a) : rj(b2, g2);
6171  }
6172  e2 = a.memoizedState;
6173  if (null !== e2 && (h2 = e2.dehydrated, null !== h2))
6174    return sj(a, b2, g2, d2, h2, e2, c2);
6175  if (f2) {
6176    f2 = d2.fallback;
6177    g2 = b2.mode;
6178    e2 = a.child;
6179    h2 = e2.sibling;
6180    var k2 = { mode: "hidden", children: d2.children };
6181    0 === (g2 & 1) && b2.child !== e2 ? (d2 = b2.child, d2.childLanes = 0, d2.pendingProps = k2, b2.deletions = null) : (d2 = wh(e2, k2), d2.subtreeFlags = e2.subtreeFlags & 14680064);
6182    null !== h2 ? f2 = wh(h2, f2) : (f2 = Ah(f2, g2, c2, null), f2.flags |= 2);
6183    f2.return = b2;
6184    d2.return = b2;
6185    d2.sibling = f2;
6186    b2.child = d2;
6187    d2 = f2;
6188    f2 = b2.child;
6189    g2 = a.child.memoizedState;
6190    g2 = null === g2 ? oj(c2) : { baseLanes: g2.baseLanes | c2, cachePool: null, transitions: g2.transitions };
6191    f2.memoizedState = g2;
6192    f2.childLanes = a.childLanes & ~c2;
6193    b2.memoizedState = nj;
6194    return d2;
6195  }
6196  f2 = a.child;
6197  a = f2.sibling;
6198  d2 = wh(f2, { mode: "visible", children: d2.children });
6199  0 === (b2.mode & 1) && (d2.lanes = c2);
6200  d2.return = b2;
6201  d2.sibling = null;
6202  null !== a && (c2 = b2.deletions, null === c2 ? (b2.deletions = [a], b2.flags |= 16) : c2.push(a));
6203  b2.child = d2;
6204  b2.memoizedState = null;
6205  return d2;
6206}
6207function rj(a, b2) {
6208  b2 = qj({ mode: "visible", children: b2 }, a.mode, 0, null);
6209  b2.return = a;
6210  return a.child = b2;
6211}
6212function tj(a, b2, c2, d2) {
6213  null !== d2 && Jg(d2);
6214  Bh(b2, a.child, null, c2);
6215  a = rj(b2, b2.pendingProps.children);
6216  a.flags |= 2;
6217  b2.memoizedState = null;
6218  return a;
6219}
6220function sj(a, b2, c2, d2, e2, f2, g2) {
6221  if (c2) {
6222    if (b2.flags & 256)
6223      return b2.flags &= -257, d2 = Li(Error(p(422))), tj(a, b2, g2, d2);
6224    if (null !== b2.memoizedState)
6225      return b2.child = a.child, b2.flags |= 128, null;
6226    f2 = d2.fallback;
6227    e2 = b2.mode;
6228    d2 = qj({ mode: "visible", children: d2.children }, e2, 0, null);
6229    f2 = Ah(f2, e2, g2, null);
6230    f2.flags |= 2;
6231    d2.return = b2;
6232    f2.return = b2;
6233    d2.sibling = f2;
6234    b2.child = d2;
6235    0 !== (b2.mode & 1) && Bh(b2, a.child, null, g2);
6236    b2.child.memoizedState = oj(g2);
6237    b2.memoizedState = nj;
6238    return f2;
6239  }
6240  if (0 === (b2.mode & 1))
6241    return tj(a, b2, g2, null);
6242  if ("$!" === e2.data) {
6243    d2 = e2.nextSibling && e2.nextSibling.dataset;
6244    if (d2)
6245      var h2 = d2.dgst;
6246    d2 = h2;
6247    f2 = Error(p(419));
6248    d2 = Li(f2, d2, void 0);
6249    return tj(a, b2, g2, d2);
6250  }
6251  h2 = 0 !== (g2 & a.childLanes);
6252  if (Ug || h2) {
6253    d2 = R;
6254    if (null !== d2) {
6255      switch (g2 & -g2) {
6256        case 4:
6257          e2 = 2;
6258          break;
6259        case 16:
6260          e2 = 8;
6261          break;
6262        case 64:
6263        case 128:
6264        case 256:
6265        case 512:
6266        case 1024:
6267        case 2048:
6268        case 4096:
6269        case 8192:
6270        case 16384:
6271        case 32768:
6272        case 65536:
6273        case 131072:
6274        case 262144:
6275        case 524288:
6276        case 1048576:
6277        case 2097152:
6278        case 4194304:
6279        case 8388608:
6280        case 16777216:
6281        case 33554432:
6282        case 67108864:
6283          e2 = 32;
6284          break;
6285        case 536870912:
6286          e2 = 268435456;
6287          break;
6288        default:
6289          e2 = 0;
6290      }
6291      e2 = 0 !== (e2 & (d2.suspendedLanes | g2)) ? 0 : e2;
6292      0 !== e2 && e2 !== f2.retryLane && (f2.retryLane = e2, Zg(a, e2), mh(d2, a, e2, -1));
6293    }
6294    uj();
6295    d2 = Li(Error(p(421)));
6296    return tj(a, b2, g2, d2);
6297  }
6298  if ("$?" === e2.data)
6299    return b2.flags |= 128, b2.child = a.child, b2 = vj.bind(null, a), e2._reactRetry = b2, null;
6300  a = f2.treeContext;
6301  yg = Lf(e2.nextSibling);
6302  xg = b2;
6303  I = true;
6304  zg = null;
6305  null !== a && (og[pg++] = rg, og[pg++] = sg, og[pg++] = qg, rg = a.id, sg = a.overflow, qg = b2);
6306  b2 = rj(b2, d2.children);
6307  b2.flags |= 4096;
6308  return b2;
6309}
6310function wj(a, b2, c2) {
6311  a.lanes |= b2;
6312  var d2 = a.alternate;
6313  null !== d2 && (d2.lanes |= b2);
6314  Sg(a.return, b2, c2);
6315}
6316function xj(a, b2, c2, d2, e2) {
6317  var f2 = a.memoizedState;
6318  null === f2 ? a.memoizedState = { isBackwards: b2, rendering: null, renderingStartTime: 0, last: d2, tail: c2, tailMode: e2 } : (f2.isBackwards = b2, f2.rendering = null, f2.renderingStartTime = 0, f2.last = d2, f2.tail = c2, f2.tailMode = e2);
6319}
6320function yj(a, b2, c2) {
6321  var d2 = b2.pendingProps, e2 = d2.revealOrder, f2 = d2.tail;
6322  Yi(a, b2, d2.children, c2);
6323  d2 = M.current;
6324  if (0 !== (d2 & 2))
6325    d2 = d2 & 1 | 2, b2.flags |= 128;
6326  else {
6327    if (null !== a && 0 !== (a.flags & 128))
6328      a:
6329        for (a = b2.child; null !== a; ) {
6330          if (13 === a.tag)
6331            null !== a.memoizedState && wj(a, c2, b2);
6332          else if (19 === a.tag)
6333            wj(a, c2, b2);
6334          else if (null !== a.child) {
6335            a.child.return = a;
6336            a = a.child;
6337            continue;
6338          }
6339          if (a === b2)
6340            break a;
6341          for (; null === a.sibling; ) {
6342            if (null === a.return || a.return === b2)
6343              break a;
6344            a = a.return;
6345          }
6346          a.sibling.return = a.return;
6347          a = a.sibling;
6348        }
6349    d2 &= 1;
6350  }
6351  G(M, d2);
6352  if (0 === (b2.mode & 1))
6353    b2.memoizedState = null;
6354  else
6355    switch (e2) {
6356      case "forwards":
6357        c2 = b2.child;
6358        for (e2 = null; null !== c2; )
6359          a = c2.alternate, null !== a && null === Mh(a) && (e2 = c2), c2 = c2.sibling;
6360        c2 = e2;
6361        null === c2 ? (e2 = b2.child, b2.child = null) : (e2 = c2.sibling, c2.sibling = null);
6362        xj(b2, false, e2, c2, f2);
6363        break;
6364      case "backwards":
6365        c2 = null;
6366        e2 = b2.child;
6367        for (b2.child = null; null !== e2; ) {
6368          a = e2.alternate;
6369          if (null !== a && null === Mh(a)) {
6370            b2.child = e2;
6371            break;
6372          }
6373          a = e2.sibling;
6374          e2.sibling = c2;
6375          c2 = e2;
6376          e2 = a;
6377        }
6378        xj(b2, true, c2, null, f2);
6379        break;
6380      case "together":
6381        xj(b2, false, null, null, void 0);
6382        break;
6383      default:
6384        b2.memoizedState = null;
6385    }
6386  return b2.child;
6387}
6388function jj(a, b2) {
6389  0 === (b2.mode & 1) && null !== a && (a.alternate = null, b2.alternate = null, b2.flags |= 2);
6390}
6391function $i(a, b2, c2) {
6392  null !== a && (b2.dependencies = a.dependencies);
6393  hh |= b2.lanes;
6394  if (0 === (c2 & b2.childLanes))
6395    return null;
6396  if (null !== a && b2.child !== a.child)
6397    throw Error(p(153));
6398  if (null !== b2.child) {
6399    a = b2.child;
6400    c2 = wh(a, a.pendingProps);
6401    b2.child = c2;
6402    for (c2.return = b2; null !== a.sibling; )
6403      a = a.sibling, c2 = c2.sibling = wh(a, a.pendingProps), c2.return = b2;
6404    c2.sibling = null;
6405  }
6406  return b2.child;
6407}
6408function zj(a, b2, c2) {
6409  switch (b2.tag) {
6410    case 3:
6411      lj(b2);
6412      Ig();
6413      break;
6414    case 5:
6415      Kh(b2);
6416      break;
6417    case 1:
6418      Zf(b2.type) && cg(b2);
6419      break;
6420    case 4:
6421      Ih(b2, b2.stateNode.containerInfo);
6422      break;
6423    case 10:
6424      var d2 = b2.type._context, e2 = b2.memoizedProps.value;
6425      G(Mg, d2._currentValue);
6426      d2._currentValue = e2;
6427      break;
6428    case 13:
6429      d2 = b2.memoizedState;
6430      if (null !== d2) {
6431        if (null !== d2.dehydrated)
6432          return G(M, M.current & 1), b2.flags |= 128, null;
6433        if (0 !== (c2 & b2.child.childLanes))
6434          return pj(a, b2, c2);
6435        G(M, M.current & 1);
6436        a = $i(a, b2, c2);
6437        return null !== a ? a.sibling : null;
6438      }
6439      G(M, M.current & 1);
6440      break;
6441    case 19:
6442      d2 = 0 !== (c2 & b2.childLanes);
6443      if (0 !== (a.flags & 128)) {
6444        if (d2)
6445          return yj(a, b2, c2);
6446        b2.flags |= 128;
6447      }
6448      e2 = b2.memoizedState;
6449      null !== e2 && (e2.rendering = null, e2.tail = null, e2.lastEffect = null);
6450      G(M, M.current);
6451      if (d2)
6452        break;
6453      else
6454        return null;
6455    case 22:
6456    case 23:
6457      return b2.lanes = 0, ej(a, b2, c2);
6458  }
6459  return $i(a, b2, c2);
6460}
6461var Aj, Bj, Cj, Dj;
6462Aj = function(a, b2) {
6463  for (var c2 = b2.child; null !== c2; ) {
6464    if (5 === c2.tag || 6 === c2.tag)
6465      a.appendChild(c2.stateNode);
6466    else if (4 !== c2.tag && null !== c2.child) {
6467      c2.child.return = c2;
6468      c2 = c2.child;
6469      continue;
6470    }
6471    if (c2 === b2)
6472      break;
6473    for (; null === c2.sibling; ) {
6474      if (null === c2.return || c2.return === b2)
6475        return;
6476      c2 = c2.return;
6477    }
6478    c2.sibling.return = c2.return;
6479    c2 = c2.sibling;
6480  }
6481};
6482Bj = function() {
6483};
6484Cj = function(a, b2, c2, d2) {
6485  var e2 = a.memoizedProps;
6486  if (e2 !== d2) {
6487    a = b2.stateNode;
6488    Hh(Eh.current);
6489    var f2 = null;
6490    switch (c2) {
6491      case "input":
6492        e2 = Ya(a, e2);
6493        d2 = Ya(a, d2);
6494        f2 = [];
6495        break;
6496      case "select":
6497        e2 = A({}, e2, { value: void 0 });
6498        d2 = A({}, d2, { value: void 0 });
6499        f2 = [];
6500        break;
6501      case "textarea":
6502        e2 = gb(a, e2);
6503        d2 = gb(a, d2);
6504        f2 = [];
6505        break;
6506      default:
6507        "function" !== typeof e2.onClick && "function" === typeof d2.onClick && (a.onclick = Bf);
6508    }
6509    ub(c2, d2);
6510    var g2;
6511    c2 = null;
6512    for (l2 in e2)
6513      if (!d2.hasOwnProperty(l2) && e2.hasOwnProperty(l2) && null != e2[l2])
6514        if ("style" === l2) {
6515          var h2 = e2[l2];
6516          for (g2 in h2)
6517            h2.hasOwnProperty(g2) && (c2 || (c2 = {}), c2[g2] = "");
6518        } else
6519          "dangerouslySetInnerHTML" !== l2 && "children" !== l2 && "suppressContentEditableWarning" !== l2 && "suppressHydrationWarning" !== l2 && "autoFocus" !== l2 && (ea.hasOwnProperty(l2) ? f2 || (f2 = []) : (f2 = f2 || []).push(l2, null));
6520    for (l2 in d2) {
6521      var k2 = d2[l2];
6522      h2 = null != e2 ? e2[l2] : void 0;
6523      if (d2.hasOwnProperty(l2) && k2 !== h2 && (null != k2 || null != h2))
6524        if ("style" === l2)
6525          if (h2) {
6526            for (g2 in h2)
6527              !h2.hasOwnProperty(g2) || k2 && k2.hasOwnProperty(g2) || (c2 || (c2 = {}), c2[g2] = "");
6528            for (g2 in k2)
6529              k2.hasOwnProperty(g2) && h2[g2] !== k2[g2] && (c2 || (c2 = {}), c2[g2] = k2[g2]);
6530          } else
6531            c2 || (f2 || (f2 = []), f2.push(
6532              l2,
6533              c2
6534            )), c2 = k2;
6535        else
6536          "dangerouslySetInnerHTML" === l2 ? (k2 = k2 ? k2.__html : void 0, h2 = h2 ? h2.__html : void 0, null != k2 && h2 !== k2 && (f2 = f2 || []).push(l2, k2)) : "children" === l2 ? "string" !== typeof k2 && "number" !== typeof k2 || (f2 = f2 || []).push(l2, "" + k2) : "suppressContentEditableWarning" !== l2 && "suppressHydrationWarning" !== l2 && (ea.hasOwnProperty(l2) ? (null != k2 && "onScroll" === l2 && D("scroll", a), f2 || h2 === k2 || (f2 = [])) : (f2 = f2 || []).push(l2, k2));
6537    }
6538    c2 && (f2 = f2 || []).push("style", c2);
6539    var l2 = f2;
6540    if (b2.updateQueue = l2)
6541      b2.flags |= 4;
6542  }
6543};
6544Dj = function(a, b2, c2, d2) {
6545  c2 !== d2 && (b2.flags |= 4);
6546};
6547function Ej(a, b2) {
6548  if (!I)
6549    switch (a.tailMode) {
6550      case "hidden":
6551        b2 = a.tail;
6552        for (var c2 = null; null !== b2; )
6553          null !== b2.alternate && (c2 = b2), b2 = b2.sibling;
6554        null === c2 ? a.tail = null : c2.sibling = null;
6555        break;
6556      case "collapsed":
6557        c2 = a.tail;
6558        for (var d2 = null; null !== c2; )
6559          null !== c2.alternate && (d2 = c2), c2 = c2.sibling;
6560        null === d2 ? b2 || null === a.tail ? a.tail = null : a.tail.sibling = null : d2.sibling = null;
6561    }
6562}
6563function S(a) {
6564  var b2 = null !== a.alternate && a.alternate.child === a.child, c2 = 0, d2 = 0;
6565  if (b2)
6566    for (var e2 = a.child; null !== e2; )
6567      c2 |= e2.lanes | e2.childLanes, d2 |= e2.subtreeFlags & 14680064, d2 |= e2.flags & 14680064, e2.return = a, e2 = e2.sibling;
6568  else
6569    for (e2 = a.child; null !== e2; )
6570      c2 |= e2.lanes | e2.childLanes, d2 |= e2.subtreeFlags, d2 |= e2.flags, e2.return = a, e2 = e2.sibling;
6571  a.subtreeFlags |= d2;
6572  a.childLanes = c2;
6573  return b2;
6574}
6575function Fj(a, b2, c2) {
6576  var d2 = b2.pendingProps;
6577  wg(b2);
6578  switch (b2.tag) {
6579    case 2:
6580    case 16:
6581    case 15:
6582    case 0:
6583    case 11:
6584    case 7:
6585    case 8:
6586    case 12:
6587    case 9:
6588    case 14:
6589      return S(b2), null;
6590    case 1:
6591      return Zf(b2.type) && $f(), S(b2), null;
6592    case 3:
6593      d2 = b2.stateNode;
6594      Jh();
6595      E(Wf);
6596      E(H);
6597      Oh();
6598      d2.pendingContext && (d2.context = d2.pendingContext, d2.pendingContext = null);
6599      if (null === a || null === a.child)
6600        Gg(b2) ? b2.flags |= 4 : null === a || a.memoizedState.isDehydrated && 0 === (b2.flags & 256) || (b2.flags |= 1024, null !== zg && (Gj(zg), zg = null));
6601      Bj(a, b2);
6602      S(b2);
6603      return null;
6604    case 5:
6605      Lh(b2);
6606      var e2 = Hh(Gh.current);
6607      c2 = b2.type;
6608      if (null !== a && null != b2.stateNode)
6609        Cj(a, b2, c2, d2, e2), a.ref !== b2.ref && (b2.flags |= 512, b2.flags |= 2097152);
6610      else {
6611        if (!d2) {
6612          if (null === b2.stateNode)
6613            throw Error(p(166));
6614          S(b2);
6615          return null;
6616        }
6617        a = Hh(Eh.current);
6618        if (Gg(b2)) {
6619          d2 = b2.stateNode;
6620          c2 = b2.type;
6621          var f2 = b2.memoizedProps;
6622          d2[Of] = b2;
6623          d2[Pf] = f2;
6624          a = 0 !== (b2.mode & 1);
6625          switch (c2) {
6626            case "dialog":
6627              D("cancel", d2);
6628              D("close", d2);
6629              break;
6630            case "iframe":
6631            case "object":
6632            case "embed":
6633              D("load", d2);
6634              break;
6635            case "video":
6636            case "audio":
6637              for (e2 = 0; e2 < lf.length; e2++)
6638                D(lf[e2], d2);
6639              break;
6640            case "source":
6641              D("error", d2);
6642              break;
6643            case "img":
6644            case "image":
6645            case "link":
6646              D(
6647                "error",
6648                d2
6649              );
6650              D("load", d2);
6651              break;
6652            case "details":
6653              D("toggle", d2);
6654              break;
6655            case "input":
6656              Za(d2, f2);
6657              D("invalid", d2);
6658              break;
6659            case "select":
6660              d2._wrapperState = { wasMultiple: !!f2.multiple };
6661              D("invalid", d2);
6662              break;
6663            case "textarea":
6664              hb(d2, f2), D("invalid", d2);
6665          }
6666          ub(c2, f2);
6667          e2 = null;
6668          for (var g2 in f2)
6669            if (f2.hasOwnProperty(g2)) {
6670              var h2 = f2[g2];
6671              "children" === g2 ? "string" === typeof h2 ? d2.textContent !== h2 && (true !== f2.suppressHydrationWarning && Af(d2.textContent, h2, a), e2 = ["children", h2]) : "number" === typeof h2 && d2.textContent !== "" + h2 && (true !== f2.suppressHydrationWarning && Af(
6672                d2.textContent,
6673                h2,
6674                a
6675              ), e2 = ["children", "" + h2]) : ea.hasOwnProperty(g2) && null != h2 && "onScroll" === g2 && D("scroll", d2);
6676            }
6677          switch (c2) {
6678            case "input":
6679              Va(d2);
6680              db(d2, f2, true);
6681              break;
6682            case "textarea":
6683              Va(d2);
6684              jb(d2);
6685              break;
6686            case "select":
6687            case "option":
6688              break;
6689            default:
6690              "function" === typeof f2.onClick && (d2.onclick = Bf);
6691          }
6692          d2 = e2;
6693          b2.updateQueue = d2;
6694          null !== d2 && (b2.flags |= 4);
6695        } else {
6696          g2 = 9 === e2.nodeType ? e2 : e2.ownerDocument;
6697          "http://www.w3.org/1999/xhtml" === a && (a = kb(c2));
6698          "http://www.w3.org/1999/xhtml" === a ? "script" === c2 ? (a = g2.createElement("div"), a.innerHTML = "<script><\/script>", a = a.removeChild(a.firstChild)) : "string" === typeof d2.is ? a = g2.createElement(c2, { is: d2.is }) : (a = g2.createElement(c2), "select" === c2 && (g2 = a, d2.multiple ? g2.multiple = true : d2.size && (g2.size = d2.size))) : a = g2.createElementNS(a, c2);
6699          a[Of] = b2;
6700          a[Pf] = d2;
6701          Aj(a, b2, false, false);
6702          b2.stateNode = a;
6703          a: {
6704            g2 = vb(c2, d2);
6705            switch (c2) {
6706              case "dialog":
6707                D("cancel", a);
6708                D("close", a);
6709                e2 = d2;
6710                break;
6711              case "iframe":
6712              case "object":
6713              case "embed":
6714                D("load", a);
6715                e2 = d2;
6716                break;
6717              case "video":
6718              case "audio":
6719                for (e2 = 0; e2 < lf.length; e2++)
6720                  D(lf[e2], a);
6721                e2 = d2;
6722                break;
6723              case "source":
6724                D("error", a);
6725                e2 = d2;
6726                break;
6727              case "img":
6728              case "image":
6729              case "link":
6730                D(
6731                  "error",
6732                  a
6733                );
6734                D("load", a);
6735                e2 = d2;
6736                break;
6737              case "details":
6738                D("toggle", a);
6739                e2 = d2;
6740                break;
6741              case "input":
6742                Za(a, d2);
6743                e2 = Ya(a, d2);
6744                D("invalid", a);
6745                break;
6746              case "option":
6747                e2 = d2;
6748                break;
6749              case "select":
6750                a._wrapperState = { wasMultiple: !!d2.multiple };
6751                e2 = A({}, d2, { value: void 0 });
6752                D("invalid", a);
6753                break;
6754              case "textarea":
6755                hb(a, d2);
6756                e2 = gb(a, d2);
6757                D("invalid", a);
6758                break;
6759              default:
6760                e2 = d2;
6761            }
6762            ub(c2, e2);
6763            h2 = e2;
6764            for (f2 in h2)
6765              if (h2.hasOwnProperty(f2)) {
6766                var k2 = h2[f2];
6767                "style" === f2 ? sb(a, k2) : "dangerouslySetInnerHTML" === f2 ? (k2 = k2 ? k2.__html : void 0, null != k2 && nb(a, k2)) : "children" === f2 ? "string" === typeof k2 ? ("textarea" !== c2 || "" !== k2) && ob(a, k2) : "number" === typeof k2 && ob(a, "" + k2) : "suppressContentEditableWarning" !== f2 && "suppressHydrationWarning" !== f2 && "autoFocus" !== f2 && (ea.hasOwnProperty(f2) ? null != k2 && "onScroll" === f2 && D("scroll", a) : null != k2 && ta(a, f2, k2, g2));
6768              }
6769            switch (c2) {
6770              case "input":
6771                Va(a);
6772                db(a, d2, false);
6773                break;
6774              case "textarea":
6775                Va(a);
6776                jb(a);
6777                break;
6778              case "option":
6779                null != d2.value && a.setAttribute("value", "" + Sa(d2.value));
6780                break;
6781              case "select":
6782                a.multiple = !!d2.multiple;
6783                f2 = d2.value;
6784                null != f2 ? fb(a, !!d2.multiple, f2, false) : null != d2.defaultValue && fb(
6785                  a,
6786                  !!d2.multiple,
6787                  d2.defaultValue,
6788                  true
6789                );
6790                break;
6791              default:
6792                "function" === typeof e2.onClick && (a.onclick = Bf);
6793            }
6794            switch (c2) {
6795              case "button":
6796              case "input":
6797              case "select":
6798              case "textarea":
6799                d2 = !!d2.autoFocus;
6800                break a;
6801              case "img":
6802                d2 = true;
6803                break a;
6804              default:
6805                d2 = false;
6806            }
6807          }
6808          d2 && (b2.flags |= 4);
6809        }
6810        null !== b2.ref && (b2.flags |= 512, b2.flags |= 2097152);
6811      }
6812      S(b2);
6813      return null;
6814    case 6:
6815      if (a && null != b2.stateNode)
6816        Dj(a, b2, a.memoizedProps, d2);
6817      else {
6818        if ("string" !== typeof d2 && null === b2.stateNode)
6819          throw Error(p(166));
6820        c2 = Hh(Gh.current);
6821        Hh(Eh.current);
6822        if (Gg(b2)) {
6823          d2 = b2.stateNode;
6824          c2 = b2.memoizedProps;
6825          d2[Of] = b2;
6826          if (f2 = d2.nodeValue !== c2) {
6827            if (a = xg, null !== a)
6828              switch (a.tag) {
6829                case 3:
6830                  Af(d2.nodeValue, c2, 0 !== (a.mode & 1));
6831                  break;
6832                case 5:
6833                  true !== a.memoizedProps.suppressHydrationWarning && Af(d2.nodeValue, c2, 0 !== (a.mode & 1));
6834              }
6835          }
6836          f2 && (b2.flags |= 4);
6837        } else
6838          d2 = (9 === c2.nodeType ? c2 : c2.ownerDocument).createTextNode(d2), d2[Of] = b2, b2.stateNode = d2;
6839      }
6840      S(b2);
6841      return null;
6842    case 13:
6843      E(M);
6844      d2 = b2.memoizedState;
6845      if (null === a || null !== a.memoizedState && null !== a.memoizedState.dehydrated) {
6846        if (I && null !== yg && 0 !== (b2.mode & 1) && 0 === (b2.flags & 128))
6847          Hg(), Ig(), b2.flags |= 98560, f2 = false;
6848        else if (f2 = Gg(b2), null !== d2 && null !== d2.dehydrated) {
6849          if (null === a) {
6850            if (!f2)
6851              throw Error(p(318));
6852            f2 = b2.memoizedState;
6853            f2 = null !== f2 ? f2.dehydrated : null;
6854            if (!f2)
6855              throw Error(p(317));
6856            f2[Of] = b2;
6857          } else
6858            Ig(), 0 === (b2.flags & 128) && (b2.memoizedState = null), b2.flags |= 4;
6859          S(b2);
6860          f2 = false;
6861        } else
6862          null !== zg && (Gj(zg), zg = null), f2 = true;
6863        if (!f2)
6864          return b2.flags & 65536 ? b2 : null;
6865      }
6866      if (0 !== (b2.flags & 128))
6867        return b2.lanes = c2, b2;
6868      d2 = null !== d2;
6869      d2 !== (null !== a && null !== a.memoizedState) && d2 && (b2.child.flags |= 8192, 0 !== (b2.mode & 1) && (null === a || 0 !== (M.current & 1) ? 0 === T && (T = 3) : uj()));
6870      null !== b2.updateQueue && (b2.flags |= 4);
6871      S(b2);
6872      return null;
6873    case 4:
6874      return Jh(), Bj(a, b2), null === a && sf(b2.stateNode.containerInfo), S(b2), null;
6875    case 10:
6876      return Rg(b2.type._context), S(b2), null;
6877    case 17:
6878      return Zf(b2.type) && $f(), S(b2), null;
6879    case 19:
6880      E(M);
6881      f2 = b2.memoizedState;
6882      if (null === f2)
6883        return S(b2), null;
6884      d2 = 0 !== (b2.flags & 128);
6885      g2 = f2.rendering;
6886      if (null === g2)
6887        if (d2)
6888          Ej(f2, false);
6889        else {
6890          if (0 !== T || null !== a && 0 !== (a.flags & 128))
6891            for (a = b2.child; null !== a; ) {
6892              g2 = Mh(a);
6893              if (null !== g2) {
6894                b2.flags |= 128;
6895                Ej(f2, false);
6896                d2 = g2.updateQueue;
6897                null !== d2 && (b2.updateQueue = d2, b2.flags |= 4);
6898                b2.subtreeFlags = 0;
6899                d2 = c2;
6900                for (c2 = b2.child; null !== c2; )
6901                  f2 = c2, a = d2, f2.flags &= 14680066, g2 = f2.alternate, null === g2 ? (f2.childLanes = 0, f2.lanes = a, f2.child = null, f2.subtreeFlags = 0, f2.memoizedProps = null, f2.memoizedState = null, f2.updateQueue = null, f2.dependencies = null, f2.stateNode = null) : (f2.childLanes = g2.childLanes, f2.lanes = g2.lanes, f2.child = g2.child, f2.subtreeFlags = 0, f2.deletions = null, f2.memoizedProps = g2.memoizedProps, f2.memoizedState = g2.memoizedState, f2.updateQueue = g2.updateQueue, f2.type = g2.type, a = g2.dependencies, f2.dependencies = null === a ? null : { lanes: a.lanes, firstContext: a.firstContext }), c2 = c2.sibling;
6902                G(M, M.current & 1 | 2);
6903                return b2.child;
6904              }
6905              a = a.sibling;
6906            }
6907          null !== f2.tail && B() > Hj && (b2.flags |= 128, d2 = true, Ej(f2, false), b2.lanes = 4194304);
6908        }
6909      else {
6910        if (!d2)
6911          if (a = Mh(g2), null !== a) {
6912            if (b2.flags |= 128, d2 = true, c2 = a.updateQueue, null !== c2 && (b2.updateQueue = c2, b2.flags |= 4), Ej(f2, true), null === f2.tail && "hidden" === f2.tailMode && !g2.alternate && !I)
6913              return S(b2), null;
6914          } else
6915            2 * B() - f2.renderingStartTime > Hj && 1073741824 !== c2 && (b2.flags |= 128, d2 = true, Ej(f2, false), b2.lanes = 4194304);
6916        f2.isBackwards ? (g2.sibling = b2.child, b2.child = g2) : (c2 = f2.last, null !== c2 ? c2.sibling = g2 : b2.child = g2, f2.last = g2);
6917      }
6918      if (null !== f2.tail)
6919        return b2 = f2.tail, f2.rendering = b2, f2.tail = b2.sibling, f2.renderingStartTime = B(), b2.sibling = null, c2 = M.current, G(M, d2 ? c2 & 1 | 2 : c2 & 1), b2;
6920      S(b2);
6921      return null;
6922    case 22:
6923    case 23:
6924      return Ij(), d2 = null !== b2.memoizedState, null !== a && null !== a.memoizedState !== d2 && (b2.flags |= 8192), d2 && 0 !== (b2.mode & 1) ? 0 !== (gj & 1073741824) && (S(b2), b2.subtreeFlags & 6 && (b2.flags |= 8192)) : S(b2), null;
6925    case 24:
6926      return null;
6927    case 25:
6928      return null;
6929  }
6930  throw Error(p(156, b2.tag));
6931}
6932function Jj(a, b2) {
6933  wg(b2);
6934  switch (b2.tag) {
6935    case 1:
6936      return Zf(b2.type) && $f(), a = b2.flags, a & 65536 ? (b2.flags = a & -65537 | 128, b2) : null;
6937    case 3:
6938      return Jh(), E(Wf), E(H), Oh(), a = b2.flags, 0 !== (a & 65536) && 0 === (a & 128) ? (b2.flags = a & -65537 | 128, b2) : null;
6939    case 5:
6940      return Lh(b2), null;
6941    case 13:
6942      E(M);
6943      a = b2.memoizedState;
6944      if (null !== a && null !== a.dehydrated) {
6945        if (null === b2.alternate)
6946          throw Error(p(340));
6947        Ig();
6948      }
6949      a = b2.flags;
6950      return a & 65536 ? (b2.flags = a & -65537 | 128, b2) : null;
6951    case 19:
6952      return E(M), null;
6953    case 4:
6954      return Jh(), null;
6955    case 10:
6956      return Rg(b2.type._context), null;
6957    case 22:
6958    case 23:
6959      return Ij(), null;
6960    case 24:
6961      return null;
6962    default:
6963      return null;
6964  }
6965}
6966var Kj = false, U = false, Lj = "function" === typeof WeakSet ? WeakSet : Set, V = null;
6967function Mj(a, b2) {
6968  var c2 = a.ref;
6969  if (null !== c2)
6970    if ("function" === typeof c2)
6971      try {
6972        c2(null);
6973      } catch (d2) {
6974        W(a, b2, d2);
6975      }
6976    else
6977      c2.current = null;
6978}
6979function Nj(a, b2, c2) {
6980  try {
6981    c2();
6982  } catch (d2) {
6983    W(a, b2, d2);
6984  }
6985}
6986var Oj = false;
6987function Pj(a, b2) {
6988  Cf = dd;
6989  a = Me();
6990  if (Ne(a)) {
6991    if ("selectionStart" in a)
6992      var c2 = { start: a.selectionStart, end: a.selectionEnd };
6993    else
6994      a: {
6995        c2 = (c2 = a.ownerDocument) && c2.defaultView || window;
6996        var d2 = c2.getSelection && c2.getSelection();
6997        if (d2 && 0 !== d2.rangeCount) {
6998          c2 = d2.anchorNode;
6999          var e2 = d2.anchorOffset, f2 = d2.focusNode;
7000          d2 = d2.focusOffset;
7001          try {
7002            c2.nodeType, f2.nodeType;
7003          } catch (F2) {
7004            c2 = null;
7005            break a;
7006          }
7007          var g2 = 0, h2 = -1, k2 = -1, l2 = 0, m2 = 0, q2 = a, r2 = null;
7008          b:
7009            for (; ; ) {
7010              for (var y2; ; ) {
7011                q2 !== c2 || 0 !== e2 && 3 !== q2.nodeType || (h2 = g2 + e2);
7012                q2 !== f2 || 0 !== d2 && 3 !== q2.nodeType || (k2 = g2 + d2);
7013                3 === q2.nodeType && (g2 += q2.nodeValue.length);
7014                if (null === (y2 = q2.firstChild))
7015                  break;
7016                r2 = q2;
7017                q2 = y2;
7018              }
7019              for (; ; ) {
7020                if (q2 === a)
7021                  break b;
7022                r2 === c2 && ++l2 === e2 && (h2 = g2);
7023                r2 === f2 && ++m2 === d2 && (k2 = g2);
7024                if (null !== (y2 = q2.nextSibling))
7025                  break;
7026                q2 = r2;
7027                r2 = q2.parentNode;
7028              }
7029              q2 = y2;
7030            }
7031          c2 = -1 === h2 || -1 === k2 ? null : { start: h2, end: k2 };
7032        } else
7033          c2 = null;
7034      }
7035    c2 = c2 || { start: 0, end: 0 };
7036  } else
7037    c2 = null;
7038  Df = { focusedElem: a, selectionRange: c2 };
7039  dd = false;
7040  for (V = b2; null !== V; )
7041    if (b2 = V, a = b2.child, 0 !== (b2.subtreeFlags & 1028) && null !== a)
7042      a.return = b2, V = a;
7043    else
7044      for (; null !== V; ) {
7045        b2 = V;
7046        try {
7047          var n2 = b2.alternate;
7048          if (0 !== (b2.flags & 1024))
7049            switch (b2.tag) {
7050              case 0:
7051              case 11:
7052              case 15:
7053                break;
7054              case 1:
7055                if (null !== n2) {
7056                  var t2 = n2.memoizedProps, J2 = n2.memoizedState, x2 = b2.stateNode, w2 = x2.getSnapshotBeforeUpdate(b2.elementType === b2.type ? t2 : Lg(b2.type, t2), J2);
7057                  x2.__reactInternalSnapshotBeforeUpdate = w2;
7058                }
7059                break;
7060              case 3:
7061                var u2 = b2.stateNode.containerInfo;
7062                1 === u2.nodeType ? u2.textContent = "" : 9 === u2.nodeType && u2.documentElement && u2.removeChild(u2.documentElement);
7063                break;
7064              case 5:
7065              case 6:
7066              case 4:
7067              case 17:
7068                break;
7069              default:
7070                throw Error(p(163));
7071            }
7072        } catch (F2) {
7073          W(b2, b2.return, F2);
7074        }
7075        a = b2.sibling;
7076        if (null !== a) {
7077          a.return = b2.return;
7078          V = a;
7079          break;
7080        }
7081        V = b2.return;
7082      }
7083  n2 = Oj;
7084  Oj = false;
7085  return n2;
7086}
7087function Qj(a, b2, c2) {
7088  var d2 = b2.updateQueue;
7089  d2 = null !== d2 ? d2.lastEffect : null;
7090  if (null !== d2) {
7091    var e2 = d2 = d2.next;
7092    do {
7093      if ((e2.tag & a) === a) {
7094        var f2 = e2.destroy;
7095        e2.destroy = void 0;
7096        void 0 !== f2 && Nj(b2, c2, f2);
7097      }
7098      e2 = e2.next;
7099    } while (e2 !== d2);
7100  }
7101}
7102function Rj(a, b2) {
7103  b2 = b2.updateQueue;
7104  b2 = null !== b2 ? b2.lastEffect : null;
7105  if (null !== b2) {
7106    var c2 = b2 = b2.next;
7107    do {
7108      if ((c2.tag & a) === a) {
7109        var d2 = c2.create;
7110        c2.destroy = d2();
7111      }
7112      c2 = c2.next;
7113    } while (c2 !== b2);
7114  }
7115}
7116function Sj(a) {
7117  var b2 = a.ref;
7118  if (null !== b2) {
7119    var c2 = a.stateNode;
7120    switch (a.tag) {
7121      case 5:
7122        a = c2;
7123        break;
7124      default:
7125        a = c2;
7126    }
7127    "function" === typeof b2 ? b2(a) : b2.current = a;
7128  }
7129}
7130function Tj(a) {
7131  var b2 = a.alternate;
7132  null !== b2 && (a.alternate = null, Tj(b2));
7133  a.child = null;
7134  a.deletions = null;
7135  a.sibling = null;
7136  5 === a.tag && (b2 = a.stateNode, null !== b2 && (delete b2[Of], delete b2[Pf], delete b2[of], delete b2[Qf], delete b2[Rf]));
7137  a.stateNode = null;
7138  a.return = null;
7139  a.dependencies = null;
7140  a.memoizedProps = null;
7141  a.memoizedState = null;
7142  a.pendingProps = null;
7143  a.stateNode = null;
7144  a.updateQueue = null;
7145}
7146function Uj(a) {
7147  return 5 === a.tag || 3 === a.tag || 4 === a.tag;
7148}
7149function Vj(a) {
7150  a:
7151    for (; ; ) {
7152      for (; null === a.sibling; ) {
7153        if (null === a.return || Uj(a.return))
7154          return null;
7155        a = a.return;
7156      }
7157      a.sibling.return = a.return;
7158      for (a = a.sibling; 5 !== a.tag && 6 !== a.tag && 18 !== a.tag; ) {
7159        if (a.flags & 2)
7160          continue a;
7161        if (null === a.child || 4 === a.tag)
7162          continue a;
7163        else
7164          a.child.return = a, a = a.child;
7165      }
7166      if (!(a.flags & 2))
7167        return a.stateNode;
7168    }
7169}
7170function Wj(a, b2, c2) {
7171  var d2 = a.tag;
7172  if (5 === d2 || 6 === d2)
7173    a = a.stateNode, b2 ? 8 === c2.nodeType ? c2.parentNode.insertBefore(a, b2) : c2.insertBefore(a, b2) : (8 === c2.nodeType ? (b2 = c2.parentNode, b2.insertBefore(a, c2)) : (b2 = c2, b2.appendChild(a)), c2 = c2._reactRootContainer, null !== c2 && void 0 !== c2 || null !== b2.onclick || (b2.onclick = Bf));
7174  else if (4 !== d2 && (a = a.child, null !== a))
7175    for (Wj(a, b2, c2), a = a.sibling; null !== a; )
7176      Wj(a, b2, c2), a = a.sibling;
7177}
7178function Xj(a, b2, c2) {
7179  var d2 = a.tag;
7180  if (5 === d2 || 6 === d2)
7181    a = a.stateNode, b2 ? c2.insertBefore(a, b2) : c2.appendChild(a);
7182  else if (4 !== d2 && (a = a.child, null !== a))
7183    for (Xj(a, b2, c2), a = a.sibling; null !== a; )
7184      Xj(a, b2, c2), a = a.sibling;
7185}
7186var X = null, Yj = false;
7187function Zj(a, b2, c2) {
7188  for (c2 = c2.child; null !== c2; )
7189    ak(a, b2, c2), c2 = c2.sibling;
7190}
7191function ak(a, b2, c2) {
7192  if (lc && "function" === typeof lc.onCommitFiberUnmount)
7193    try {
7194      lc.onCommitFiberUnmount(kc, c2);
7195    } catch (h2) {
7196    }
7197  switch (c2.tag) {
7198    case 5:
7199      U || Mj(c2, b2);
7200    case 6:
7201      var d2 = X, e2 = Yj;
7202      X = null;
7203      Zj(a, b2, c2);
7204      X = d2;
7205      Yj = e2;
7206      null !== X && (Yj ? (a = X, c2 = c2.stateNode, 8 === a.nodeType ? a.parentNode.removeChild(c2) : a.removeChild(c2)) : X.removeChild(c2.stateNode));
7207      break;
7208    case 18:
7209      null !== X && (Yj ? (a = X, c2 = c2.stateNode, 8 === a.nodeType ? Kf(a.parentNode, c2) : 1 === a.nodeType && Kf(a, c2), bd(a)) : Kf(X, c2.stateNode));
7210      break;
7211    case 4:
7212      d2 = X;
7213      e2 = Yj;
7214      X = c2.stateNode.containerInfo;
7215      Yj = true;
7216      Zj(a, b2, c2);
7217      X = d2;
7218      Yj = e2;
7219      break;
7220    case 0:
7221    case 11:
7222    case 14:
7223    case 15:
7224      if (!U && (d2 = c2.updateQueue, null !== d2 && (d2 = d2.lastEffect, null !== d2))) {
7225        e2 = d2 = d2.next;
7226        do {
7227          var f2 = e2, g2 = f2.destroy;
7228          f2 = f2.tag;
7229          void 0 !== g2 && (0 !== (f2 & 2) ? Nj(c2, b2, g2) : 0 !== (f2 & 4) && Nj(c2, b2, g2));
7230          e2 = e2.next;
7231        } while (e2 !== d2);
7232      }
7233      Zj(a, b2, c2);
7234      break;
7235    case 1:
7236      if (!U && (Mj(c2, b2), d2 = c2.stateNode, "function" === typeof d2.componentWillUnmount))
7237        try {
7238          d2.props = c2.memoizedProps, d2.state = c2.memoizedState, d2.componentWillUnmount();
7239        } catch (h2) {
7240          W(c2, b2, h2);
7241        }
7242      Zj(a, b2, c2);
7243      break;
7244    case 21:
7245      Zj(a, b2, c2);
7246      break;
7247    case 22:
7248      c2.mode & 1 ? (U = (d2 = U) || null !== c2.memoizedState, Zj(a, b2, c2), U = d2) : Zj(a, b2, c2);
7249      break;
7250    default:
7251      Zj(a, b2, c2);
7252  }
7253}
7254function bk(a) {
7255  var b2 = a.updateQueue;
7256  if (null !== b2) {
7257    a.updateQueue = null;
7258    var c2 = a.stateNode;
7259    null === c2 && (c2 = a.stateNode = new Lj());
7260    b2.forEach(function(b3) {
7261      var d2 = ck.bind(null, a, b3);
7262      c2.has(b3) || (c2.add(b3), b3.then(d2, d2));
7263    });
7264  }
7265}
7266function dk(a, b2) {
7267  var c2 = b2.deletions;
7268  if (null !== c2)
7269    for (var d2 = 0; d2 < c2.length; d2++) {
7270      var e2 = c2[d2];
7271      try {
7272        var f2 = a, g2 = b2, h2 = g2;
7273        a:
7274          for (; null !== h2; ) {
7275            switch (h2.tag) {
7276              case 5:
7277                X = h2.stateNode;
7278                Yj = false;
7279                break a;
7280              case 3:
7281                X = h2.stateNode.containerInfo;
7282                Yj = true;
7283                break a;
7284              case 4:
7285                X = h2.stateNode.containerInfo;
7286                Yj = true;
7287                break a;
7288            }
7289            h2 = h2.return;
7290          }
7291        if (null === X)
7292          throw Error(p(160));
7293        ak(f2, g2, e2);
7294        X = null;
7295        Yj = false;
7296        var k2 = e2.alternate;
7297        null !== k2 && (k2.return = null);
7298        e2.return = null;
7299      } catch (l2) {
7300        W(e2, b2, l2);
7301      }
7302    }
7303  if (b2.subtreeFlags & 12854)
7304    for (b2 = b2.child; null !== b2; )
7305      ek(b2, a), b2 = b2.sibling;
7306}
7307function ek(a, b2) {
7308  var c2 = a.alternate, d2 = a.flags;
7309  switch (a.tag) {
7310    case 0:
7311    case 11:
7312    case 14:
7313    case 15:
7314      dk(b2, a);
7315      fk(a);
7316      if (d2 & 4) {
7317        try {
7318          Qj(3, a, a.return), Rj(3, a);
7319        } catch (t2) {
7320          W(a, a.return, t2);
7321        }
7322        try {
7323          Qj(5, a, a.return);
7324        } catch (t2) {
7325          W(a, a.return, t2);
7326        }
7327      }
7328      break;
7329    case 1:
7330      dk(b2, a);
7331      fk(a);
7332      d2 & 512 && null !== c2 && Mj(c2, c2.return);
7333      break;
7334    case 5:
7335      dk(b2, a);
7336      fk(a);
7337      d2 & 512 && null !== c2 && Mj(c2, c2.return);
7338      if (a.flags & 32) {
7339        var e2 = a.stateNode;
7340        try {
7341          ob(e2, "");
7342        } catch (t2) {
7343          W(a, a.return, t2);
7344        }
7345      }
7346      if (d2 & 4 && (e2 = a.stateNode, null != e2)) {
7347        var f2 = a.memoizedProps, g2 = null !== c2 ? c2.memoizedProps : f2, h2 = a.type, k2 = a.updateQueue;
7348        a.updateQueue = null;
7349        if (null !== k2)
7350          try {
7351            "input" === h2 && "radio" === f2.type && null != f2.name && ab(e2, f2);
7352            vb(h2, g2);
7353            var l2 = vb(h2, f2);
7354            for (g2 = 0; g2 < k2.length; g2 += 2) {
7355              var m2 = k2[g2], q2 = k2[g2 + 1];
7356              "style" === m2 ? sb(e2, q2) : "dangerouslySetInnerHTML" === m2 ? nb(e2, q2) : "children" === m2 ? ob(e2, q2) : ta(e2, m2, q2, l2);
7357            }
7358            switch (h2) {
7359              case "input":
7360                bb(e2, f2);
7361                break;
7362              case "textarea":
7363                ib(e2, f2);
7364                break;
7365              case "select":
7366                var r2 = e2._wrapperState.wasMultiple;
7367                e2._wrapperState.wasMultiple = !!f2.multiple;
7368                var y2 = f2.value;
7369                null != y2 ? fb(e2, !!f2.multiple, y2, false) : r2 !== !!f2.multiple && (null != f2.defaultValue ? fb(
7370                  e2,
7371                  !!f2.multiple,
7372                  f2.defaultValue,
7373                  true
7374                ) : fb(e2, !!f2.multiple, f2.multiple ? [] : "", false));
7375            }
7376            e2[Pf] = f2;
7377          } catch (t2) {
7378            W(a, a.return, t2);
7379          }
7380      }
7381      break;
7382    case 6:
7383      dk(b2, a);
7384      fk(a);
7385      if (d2 & 4) {
7386        if (null === a.stateNode)
7387          throw Error(p(162));
7388        e2 = a.stateNode;
7389        f2 = a.memoizedProps;
7390        try {
7391          e2.nodeValue = f2;
7392        } catch (t2) {
7393          W(a, a.return, t2);
7394        }
7395      }
7396      break;
7397    case 3:
7398      dk(b2, a);
7399      fk(a);
7400      if (d2 & 4 && null !== c2 && c2.memoizedState.isDehydrated)
7401        try {
7402          bd(b2.containerInfo);
7403        } catch (t2) {
7404          W(a, a.return, t2);
7405        }
7406      break;
7407    case 4:
7408      dk(b2, a);
7409      fk(a);
7410      break;
7411    case 13:
7412      dk(b2, a);
7413      fk(a);
7414      e2 = a.child;
7415      e2.flags & 8192 && (f2 = null !== e2.memoizedState, e2.stateNode.isHidden = f2, !f2 || null !== e2.alternate && null !== e2.alternate.memoizedState || (gk = B()));
7416      d2 & 4 && bk(a);
7417      break;
7418    case 22:
7419      m2 = null !== c2 && null !== c2.memoizedState;
7420      a.mode & 1 ? (U = (l2 = U) || m2, dk(b2, a), U = l2) : dk(b2, a);
7421      fk(a);
7422      if (d2 & 8192) {
7423        l2 = null !== a.memoizedState;
7424        if ((a.stateNode.isHidden = l2) && !m2 && 0 !== (a.mode & 1))
7425          for (V = a, m2 = a.child; null !== m2; ) {
7426            for (q2 = V = m2; null !== V; ) {
7427              r2 = V;
7428              y2 = r2.child;
7429              switch (r2.tag) {
7430                case 0:
7431                case 11:
7432                case 14:
7433                case 15:
7434                  Qj(4, r2, r2.return);
7435                  break;
7436                case 1:
7437                  Mj(r2, r2.return);
7438                  var n2 = r2.stateNode;
7439                  if ("function" === typeof n2.componentWillUnmount) {
7440                    d2 = r2;
7441                    c2 = r2.return;
7442                    try {
7443                      b2 = d2, n2.props = b2.memoizedProps, n2.state = b2.memoizedState, n2.componentWillUnmount();
7444                    } catch (t2) {
7445                      W(d2, c2, t2);
7446                    }
7447                  }
7448                  break;
7449                case 5:
7450                  Mj(r2, r2.return);
7451                  break;
7452                case 22:
7453                  if (null !== r2.memoizedState) {
7454                    hk(q2);
7455                    continue;
7456                  }
7457              }
7458              null !== y2 ? (y2.return = r2, V = y2) : hk(q2);
7459            }
7460            m2 = m2.sibling;
7461          }
7462        a:
7463          for (m2 = null, q2 = a; ; ) {
7464            if (5 === q2.tag) {
7465              if (null === m2) {
7466                m2 = q2;
7467                try {
7468                  e2 = q2.stateNode, l2 ? (f2 = e2.style, "function" === typeof f2.setProperty ? f2.setProperty("display", "none", "important") : f2.display = "none") : (h2 = q2.stateNode, k2 = q2.memoizedProps.style, g2 = void 0 !== k2 && null !== k2 && k2.hasOwnProperty("display") ? k2.display : null, h2.style.display = rb("display", g2));
7469                } catch (t2) {
7470                  W(a, a.return, t2);
7471                }
7472              }
7473            } else if (6 === q2.tag) {
7474              if (null === m2)
7475                try {
7476                  q2.stateNode.nodeValue = l2 ? "" : q2.memoizedProps;
7477                } catch (t2) {
7478                  W(a, a.return, t2);
7479                }
7480            } else if ((22 !== q2.tag && 23 !== q2.tag || null === q2.memoizedState || q2 === a) && null !== q2.child) {
7481              q2.child.return = q2;
7482              q2 = q2.child;
7483              continue;
7484            }
7485            if (q2 === a)
7486              break a;
7487            for (; null === q2.sibling; ) {
7488              if (null === q2.return || q2.return === a)
7489                break a;
7490              m2 === q2 && (m2 = null);
7491              q2 = q2.return;
7492            }
7493            m2 === q2 && (m2 = null);
7494            q2.sibling.return = q2.return;
7495            q2 = q2.sibling;
7496          }
7497      }
7498      break;
7499    case 19:
7500      dk(b2, a);
7501      fk(a);
7502      d2 & 4 && bk(a);
7503      break;
7504    case 21:
7505      break;
7506    default:
7507      dk(
7508        b2,
7509        a
7510      ), fk(a);
7511  }
7512}
7513function fk(a) {
7514  var b2 = a.flags;
7515  if (b2 & 2) {
7516    try {
7517      a: {
7518        for (var c2 = a.return; null !== c2; ) {
7519          if (Uj(c2)) {
7520            var d2 = c2;
7521            break a;
7522          }
7523          c2 = c2.return;
7524        }
7525        throw Error(p(160));
7526      }
7527      switch (d2.tag) {
7528        case 5:
7529          var e2 = d2.stateNode;
7530          d2.flags & 32 && (ob(e2, ""), d2.flags &= -33);
7531          var f2 = Vj(a);
7532          Xj(a, f2, e2);
7533          break;
7534        case 3:
7535        case 4:
7536          var g2 = d2.stateNode.containerInfo, h2 = Vj(a);
7537          Wj(a, h2, g2);
7538          break;
7539        default:
7540          throw Error(p(161));
7541      }
7542    } catch (k2) {
7543      W(a, a.return, k2);
7544    }
7545    a.flags &= -3;
7546  }
7547  b2 & 4096 && (a.flags &= -4097);
7548}
7549function ik(a, b2, c2) {
7550  V = a;
7551  jk(a);
7552}
7553function jk(a, b2, c2) {
7554  for (var d2 = 0 !== (a.mode & 1); null !== V; ) {
7555    var e2 = V, f2 = e2.child;
7556    if (22 === e2.tag && d2) {
7557      var g2 = null !== e2.memoizedState || Kj;
7558      if (!g2) {
7559        var h2 = e2.alternate, k2 = null !== h2 && null !== h2.memoizedState || U;
7560        h2 = Kj;
7561        var l2 = U;
7562        Kj = g2;
7563        if ((U = k2) && !l2)
7564          for (V = e2; null !== V; )
7565            g2 = V, k2 = g2.child, 22 === g2.tag && null !== g2.memoizedState ? kk(e2) : null !== k2 ? (k2.return = g2, V = k2) : kk(e2);
7566        for (; null !== f2; )
7567          V = f2, jk(f2), f2 = f2.sibling;
7568        V = e2;
7569        Kj = h2;
7570        U = l2;
7571      }
7572      lk(a);
7573    } else
7574      0 !== (e2.subtreeFlags & 8772) && null !== f2 ? (f2.return = e2, V = f2) : lk(a);
7575  }
7576}
7577function lk(a) {
7578  for (; null !== V; ) {
7579    var b2 = V;
7580    if (0 !== (b2.flags & 8772)) {
7581      var c2 = b2.alternate;
7582      try {
7583        if (0 !== (b2.flags & 8772))
7584          switch (b2.tag) {
7585            case 0:
7586            case 11:
7587            case 15:
7588              U || Rj(5, b2);
7589              break;
7590            case 1:
7591              var d2 = b2.stateNode;
7592              if (b2.flags & 4 && !U)
7593                if (null === c2)
7594                  d2.componentDidMount();
7595                else {
7596                  var e2 = b2.elementType === b2.type ? c2.memoizedProps : Lg(b2.type, c2.memoizedProps);
7597                  d2.componentDidUpdate(e2, c2.memoizedState, d2.__reactInternalSnapshotBeforeUpdate);
7598                }
7599              var f2 = b2.updateQueue;
7600              null !== f2 && ih(b2, f2, d2);
7601              break;
7602            case 3:
7603              var g2 = b2.updateQueue;
7604              if (null !== g2) {
7605                c2 = null;
7606                if (null !== b2.child)
7607                  switch (b2.child.tag) {
7608                    case 5:
7609                      c2 = b2.child.stateNode;
7610                      break;
7611                    case 1:
7612                      c2 = b2.child.stateNode;
7613                  }
7614                ih(b2, g2, c2);
7615              }
7616              break;
7617            case 5:
7618              var h2 = b2.stateNode;
7619              if (null === c2 && b2.flags & 4) {
7620                c2 = h2;
7621                var k2 = b2.memoizedProps;
7622                switch (b2.type) {
7623                  case "button":
7624                  case "input":
7625                  case "select":
7626                  case "textarea":
7627                    k2.autoFocus && c2.focus();
7628                    break;
7629                  case "img":
7630                    k2.src && (c2.src = k2.src);
7631                }
7632              }
7633              break;
7634            case 6:
7635              break;
7636            case 4:
7637              break;
7638            case 12:
7639              break;
7640            case 13:
7641              if (null === b2.memoizedState) {
7642                var l2 = b2.alternate;
7643                if (null !== l2) {
7644                  var m2 = l2.memoizedState;
7645                  if (null !== m2) {
7646                    var q2 = m2.dehydrated;
7647                    null !== q2 && bd(q2);
7648                  }
7649                }
7650              }
7651              break;
7652            case 19:
7653            case 17:
7654            case 21:
7655            case 22:
7656            case 23:
7657            case 25:
7658              break;
7659            default:
7660              throw Error(p(163));
7661          }
7662        U || b2.flags & 512 && Sj(b2);
7663      } catch (r2) {
7664        W(b2, b2.return, r2);
7665      }
7666    }
7667    if (b2 === a) {
7668      V = null;
7669      break;
7670    }
7671    c2 = b2.sibling;
7672    if (null !== c2) {
7673      c2.return = b2.return;
7674      V = c2;
7675      break;
7676    }
7677    V = b2.return;
7678  }
7679}
7680function hk(a) {
7681  for (; null !== V; ) {
7682    var b2 = V;
7683    if (b2 === a) {
7684      V = null;
7685      break;
7686    }
7687    var c2 = b2.sibling;
7688    if (null !== c2) {
7689      c2.return = b2.return;
7690      V = c2;
7691      break;
7692    }
7693    V = b2.return;
7694  }
7695}
7696function kk(a) {
7697  for (; null !== V; ) {
7698    var b2 = V;
7699    try {
7700      switch (b2.tag) {
7701        case 0:
7702        case 11:
7703        case 15:
7704          var c2 = b2.return;
7705          try {
7706            Rj(4, b2);
7707          } catch (k2) {
7708            W(b2, c2, k2);
7709          }
7710          break;
7711        case 1:
7712          var d2 = b2.stateNode;
7713          if ("function" === typeof d2.componentDidMount) {
7714            var e2 = b2.return;
7715            try {
7716              d2.componentDidMount();
7717            } catch (k2) {
7718              W(b2, e2, k2);
7719            }
7720          }
7721          var f2 = b2.return;
7722          try {
7723            Sj(b2);
7724          } catch (k2) {
7725            W(b2, f2, k2);
7726          }
7727          break;
7728        case 5:
7729          var g2 = b2.return;
7730          try {
7731            Sj(b2);
7732          } catch (k2) {
7733            W(b2, g2, k2);
7734          }
7735      }
7736    } catch (k2) {
7737      W(b2, b2.return, k2);
7738    }
7739    if (b2 === a) {
7740      V = null;
7741      break;
7742    }
7743    var h2 = b2.sibling;
7744    if (null !== h2) {
7745      h2.return = b2.return;
7746      V = h2;
7747      break;
7748    }
7749    V = b2.return;
7750  }
7751}
7752var mk = Math.ceil, nk = ua.ReactCurrentDispatcher, ok = ua.ReactCurrentOwner, pk = ua.ReactCurrentBatchConfig, K = 0, R = null, Y = null, Z = 0, gj = 0, fj = Uf(0), T = 0, qk = null, hh = 0, rk = 0, sk = 0, tk = null, uk = null, gk = 0, Hj = Infinity, vk = null, Pi = false, Qi = null, Si = null, wk = false, xk = null, yk = 0, zk = 0, Ak = null, Bk = -1, Ck = 0;
7753function L() {
7754  return 0 !== (K & 6) ? B() : -1 !== Bk ? Bk : Bk = B();
7755}
7756function lh(a) {
7757  if (0 === (a.mode & 1))
7758    return 1;
7759  if (0 !== (K & 2) && 0 !== Z)
7760    return Z & -Z;
7761  if (null !== Kg.transition)
7762    return 0 === Ck && (Ck = yc()), Ck;
7763  a = C;
7764  if (0 !== a)
7765    return a;
7766  a = window.event;
7767  a = void 0 === a ? 16 : jd(a.type);
7768  return a;
7769}
7770function mh(a, b2, c2, d2) {
7771  if (50 < zk)
7772    throw zk = 0, Ak = null, Error(p(185));
7773  Ac(a, c2, d2);
7774  if (0 === (K & 2) || a !== R)
7775    a === R && (0 === (K & 2) && (rk |= c2), 4 === T && Dk(a, Z)), Ek(a, d2), 1 === c2 && 0 === K && 0 === (b2.mode & 1) && (Hj = B() + 500, fg && jg());
7776}
7777function Ek(a, b2) {
7778  var c2 = a.callbackNode;
7779  wc(a, b2);
7780  var d2 = uc(a, a === R ? Z : 0);
7781  if (0 === d2)
7782    null !== c2 && bc(c2), a.callbackNode = null, a.callbackPriority = 0;
7783  else if (b2 = d2 & -d2, a.callbackPriority !== b2) {
7784    null != c2 && bc(c2);
7785    if (1 === b2)
7786      0 === a.tag ? ig(Fk.bind(null, a)) : hg(Fk.bind(null, a)), Jf(function() {
7787        0 === (K & 6) && jg();
7788      }), c2 = null;
7789    else {
7790      switch (Dc(d2)) {
7791        case 1:
7792          c2 = fc;
7793          break;
7794        case 4:
7795          c2 = gc;
7796          break;
7797        case 16:
7798          c2 = hc;
7799          break;
7800        case 536870912:
7801          c2 = jc;
7802          break;
7803        default:
7804          c2 = hc;
7805      }
7806      c2 = Gk(c2, Hk.bind(null, a));
7807    }
7808    a.callbackPriority = b2;
7809    a.callbackNode = c2;
7810  }
7811}
7812function Hk(a, b2) {
7813  Bk = -1;
7814  Ck = 0;
7815  if (0 !== (K & 6))
7816    throw Error(p(327));
7817  var c2 = a.callbackNode;
7818  if (Ik() && a.callbackNode !== c2)
7819    return null;
7820  var d2 = uc(a, a === R ? Z : 0);
7821  if (0 === d2)
7822    return null;
7823  if (0 !== (d2 & 30) || 0 !== (d2 & a.expiredLanes) || b2)
7824    b2 = Jk(a, d2);
7825  else {
7826    b2 = d2;
7827    var e2 = K;
7828    K |= 2;
7829    var f2 = Kk();
7830    if (R !== a || Z !== b2)
7831      vk = null, Hj = B() + 500, Lk(a, b2);
7832    do
7833      try {
7834        Mk();
7835        break;
7836      } catch (h2) {
7837        Nk(a, h2);
7838      }
7839    while (1);
7840    Qg();
7841    nk.current = f2;
7842    K = e2;
7843    null !== Y ? b2 = 0 : (R = null, Z = 0, b2 = T);
7844  }
7845  if (0 !== b2) {
7846    2 === b2 && (e2 = xc(a), 0 !== e2 && (d2 = e2, b2 = Ok(a, e2)));
7847    if (1 === b2)
7848      throw c2 = qk, Lk(a, 0), Dk(a, d2), Ek(a, B()), c2;
7849    if (6 === b2)
7850      Dk(a, d2);
7851    else {
7852      e2 = a.current.alternate;
7853      if (0 === (d2 & 30) && !Pk(e2) && (b2 = Jk(a, d2), 2 === b2 && (f2 = xc(a), 0 !== f2 && (d2 = f2, b2 = Ok(a, f2))), 1 === b2))
7854        throw c2 = qk, Lk(a, 0), Dk(a, d2), Ek(a, B()), c2;
7855      a.finishedWork = e2;
7856      a.finishedLanes = d2;
7857      switch (b2) {
7858        case 0:
7859        case 1:
7860          throw Error(p(345));
7861        case 2:
7862          Qk(a, uk, vk);
7863          break;
7864        case 3:
7865          Dk(a, d2);
7866          if ((d2 & 130023424) === d2 && (b2 = gk + 500 - B(), 10 < b2)) {
7867            if (0 !== uc(a, 0))
7868              break;
7869            e2 = a.suspendedLanes;
7870            if ((e2 & d2) !== d2) {
7871              L();
7872              a.pingedLanes |= a.suspendedLanes & e2;
7873              break;
7874            }
7875            a.timeoutHandle = Ff(Qk.bind(null, a, uk, vk), b2);
7876            break;
7877          }
7878          Qk(a, uk, vk);
7879          break;
7880        case 4:
7881          Dk(a, d2);
7882          if ((d2 & 4194240) === d2)
7883            break;
7884          b2 = a.eventTimes;
7885          for (e2 = -1; 0 < d2; ) {
7886            var g2 = 31 - oc(d2);
7887            f2 = 1 << g2;
7888            g2 = b2[g2];
7889            g2 > e2 && (e2 = g2);
7890            d2 &= ~f2;
7891          }
7892          d2 = e2;
7893          d2 = B() - d2;
7894          d2 = (120 > d2 ? 120 : 480 > d2 ? 480 : 1080 > d2 ? 1080 : 1920 > d2 ? 1920 : 3e3 > d2 ? 3e3 : 4320 > d2 ? 4320 : 1960 * mk(d2 / 1960)) - d2;
7895          if (10 < d2) {
7896            a.timeoutHandle = Ff(Qk.bind(null, a, uk, vk), d2);
7897            break;
7898          }
7899          Qk(a, uk, vk);
7900          break;
7901        case 5:
7902          Qk(a, uk, vk);
7903          break;
7904        default:
7905          throw Error(p(329));
7906      }
7907    }
7908  }
7909  Ek(a, B());
7910  return a.callbackNode === c2 ? Hk.bind(null, a) : null;
7911}
7912function Ok(a, b2) {
7913  var c2 = tk;
7914  a.current.memoizedState.isDehydrated && (Lk(a, b2).flags |= 256);
7915  a = Jk(a, b2);
7916  2 !== a && (b2 = uk, uk = c2, null !== b2 && Gj(b2));
7917  return a;
7918}
7919function Gj(a) {
7920  null === uk ? uk = a : uk.push.apply(uk, a);
7921}
7922function Pk(a) {
7923  for (var b2 = a; ; ) {
7924    if (b2.flags & 16384) {
7925      var c2 = b2.updateQueue;
7926      if (null !== c2 && (c2 = c2.stores, null !== c2))
7927        for (var d2 = 0; d2 < c2.length; d2++) {
7928          var e2 = c2[d2], f2 = e2.getSnapshot;
7929          e2 = e2.value;
7930          try {
7931            if (!He(f2(), e2))
7932              return false;
7933          } catch (g2) {
7934            return false;
7935          }
7936        }
7937    }
7938    c2 = b2.child;
7939    if (b2.subtreeFlags & 16384 && null !== c2)
7940      c2.return = b2, b2 = c2;
7941    else {
7942      if (b2 === a)
7943        break;
7944      for (; null === b2.sibling; ) {
7945        if (null === b2.return || b2.return === a)
7946          return true;
7947        b2 = b2.return;
7948      }
7949      b2.sibling.return = b2.return;
7950      b2 = b2.sibling;
7951    }
7952  }
7953  return true;
7954}
7955function Dk(a, b2) {
7956  b2 &= ~sk;
7957  b2 &= ~rk;
7958  a.suspendedLanes |= b2;
7959  a.pingedLanes &= ~b2;
7960  for (a = a.expirationTimes; 0 < b2; ) {
7961    var c2 = 31 - oc(b2), d2 = 1 << c2;
7962    a[c2] = -1;
7963    b2 &= ~d2;
7964  }
7965}
7966function Fk(a) {
7967  if (0 !== (K & 6))
7968    throw Error(p(327));
7969  Ik();
7970  var b2 = uc(a, 0);
7971  if (0 === (b2 & 1))
7972    return Ek(a, B()), null;
7973  var c2 = Jk(a, b2);
7974  if (0 !== a.tag && 2 === c2) {
7975    var d2 = xc(a);
7976    0 !== d2 && (b2 = d2, c2 = Ok(a, d2));
7977  }
7978  if (1 === c2)
7979    throw c2 = qk, Lk(a, 0), Dk(a, b2), Ek(a, B()), c2;
7980  if (6 === c2)
7981    throw Error(p(345));
7982  a.finishedWork = a.current.alternate;
7983  a.finishedLanes = b2;
7984  Qk(a, uk, vk);
7985  Ek(a, B());
7986  return null;
7987}
7988function Rk(a, b2) {
7989  var c2 = K;
7990  K |= 1;
7991  try {
7992    return a(b2);
7993  } finally {
7994    K = c2, 0 === K && (Hj = B() + 500, fg && jg());
7995  }
7996}
7997function Sk(a) {
7998  null !== xk && 0 === xk.tag && 0 === (K & 6) && Ik();
7999  var b2 = K;
8000  K |= 1;
8001  var c2 = pk.transition, d2 = C;
8002  try {
8003    if (pk.transition = null, C = 1, a)
8004      return a();
8005  } finally {
8006    C = d2, pk.transition = c2, K = b2, 0 === (K & 6) && jg();
8007  }
8008}
8009function Ij() {
8010  gj = fj.current;
8011  E(fj);
8012}
8013function Lk(a, b2) {
8014  a.finishedWork = null;
8015  a.finishedLanes = 0;
8016  var c2 = a.timeoutHandle;
8017  -1 !== c2 && (a.timeoutHandle = -1, Gf(c2));
8018  if (null !== Y)
8019    for (c2 = Y.return; null !== c2; ) {
8020      var d2 = c2;
8021      wg(d2);
8022      switch (d2.tag) {
8023        case 1:
8024          d2 = d2.type.childContextTypes;
8025          null !== d2 && void 0 !== d2 && $f();
8026          break;
8027        case 3:
8028          Jh();
8029          E(Wf);
8030          E(H);
8031          Oh();
8032          break;
8033        case 5:
8034          Lh(d2);
8035          break;
8036        case 4:
8037          Jh();
8038          break;
8039        case 13:
8040          E(M);
8041          break;
8042        case 19:
8043          E(M);
8044          break;
8045        case 10:
8046          Rg(d2.type._context);
8047          break;
8048        case 22:
8049        case 23:
8050          Ij();
8051      }
8052      c2 = c2.return;
8053    }
8054  R = a;
8055  Y = a = wh(a.current, null);
8056  Z = gj = b2;
8057  T = 0;
8058  qk = null;
8059  sk = rk = hh = 0;
8060  uk = tk = null;
8061  if (null !== Wg) {
8062    for (b2 = 0; b2 < Wg.length; b2++)
8063      if (c2 = Wg[b2], d2 = c2.interleaved, null !== d2) {
8064        c2.interleaved = null;
8065        var e2 = d2.next, f2 = c2.pending;
8066        if (null !== f2) {
8067          var g2 = f2.next;
8068          f2.next = e2;
8069          d2.next = g2;
8070        }
8071        c2.pending = d2;
8072      }
8073    Wg = null;
8074  }
8075  return a;
8076}
8077function Nk(a, b2) {
8078  do {
8079    var c2 = Y;
8080    try {
8081      Qg();
8082      Ph.current = ai;
8083      if (Sh) {
8084        for (var d2 = N.memoizedState; null !== d2; ) {
8085          var e2 = d2.queue;
8086          null !== e2 && (e2.pending = null);
8087          d2 = d2.next;
8088        }
8089        Sh = false;
8090      }
8091      Rh = 0;
8092      P = O = N = null;
8093      Th = false;
8094      Uh = 0;
8095      ok.current = null;
8096      if (null === c2 || null === c2.return) {
8097        T = 1;
8098        qk = b2;
8099        Y = null;
8100        break;
8101      }
8102      a: {
8103        var f2 = a, g2 = c2.return, h2 = c2, k2 = b2;
8104        b2 = Z;
8105        h2.flags |= 32768;
8106        if (null !== k2 && "object" === typeof k2 && "function" === typeof k2.then) {
8107          var l2 = k2, m2 = h2, q2 = m2.tag;
8108          if (0 === (m2.mode & 1) && (0 === q2 || 11 === q2 || 15 === q2)) {
8109            var r2 = m2.alternate;
8110            r2 ? (m2.updateQueue = r2.updateQueue, m2.memoizedState = r2.memoizedState, m2.lanes = r2.lanes) : (m2.updateQueue = null, m2.memoizedState = null);
8111          }
8112          var y2 = Vi(g2);
8113          if (null !== y2) {
8114            y2.flags &= -257;
8115            Wi(y2, g2, h2, f2, b2);
8116            y2.mode & 1 && Ti(f2, l2, b2);
8117            b2 = y2;
8118            k2 = l2;
8119            var n2 = b2.updateQueue;
8120            if (null === n2) {
8121              var t2 = /* @__PURE__ */ new Set();
8122              t2.add(k2);
8123              b2.updateQueue = t2;
8124            } else
8125              n2.add(k2);
8126            break a;
8127          } else {
8128            if (0 === (b2 & 1)) {
8129              Ti(f2, l2, b2);
8130              uj();
8131              break a;
8132            }
8133            k2 = Error(p(426));
8134          }
8135        } else if (I && h2.mode & 1) {
8136          var J2 = Vi(g2);
8137          if (null !== J2) {
8138            0 === (J2.flags & 65536) && (J2.flags |= 256);
8139            Wi(J2, g2, h2, f2, b2);
8140            Jg(Ki(k2, h2));
8141            break a;
8142          }
8143        }
8144        f2 = k2 = Ki(k2, h2);
8145        4 !== T && (T = 2);
8146        null === tk ? tk = [f2] : tk.push(f2);
8147        f2 = g2;
8148        do {
8149          switch (f2.tag) {
8150            case 3:
8151              f2.flags |= 65536;
8152              b2 &= -b2;
8153              f2.lanes |= b2;
8154              var x2 = Oi(f2, k2, b2);
8155              fh(f2, x2);
8156              break a;
8157            case 1:
8158              h2 = k2;
8159              var w2 = f2.type, u2 = f2.stateNode;
8160              if (0 === (f2.flags & 128) && ("function" === typeof w2.getDerivedStateFromError || null !== u2 && "function" === typeof u2.componentDidCatch && (null === Si || !Si.has(u2)))) {
8161                f2.flags |= 65536;
8162                b2 &= -b2;
8163                f2.lanes |= b2;
8164                var F2 = Ri(f2, h2, b2);
8165                fh(f2, F2);
8166                break a;
8167              }
8168          }
8169          f2 = f2.return;
8170        } while (null !== f2);
8171      }
8172      Tk(c2);
8173    } catch (na) {
8174      b2 = na;
8175      Y === c2 && null !== c2 && (Y = c2 = c2.return);
8176      continue;
8177    }
8178    break;
8179  } while (1);
8180}
8181function Kk() {
8182  var a = nk.current;
8183  nk.current = ai;
8184  return null === a ? ai : a;
8185}
8186function uj() {
8187  if (0 === T || 3 === T || 2 === T)
8188    T = 4;
8189  null === R || 0 === (hh & 268435455) && 0 === (rk & 268435455) || Dk(R, Z);
8190}
8191function Jk(a, b2) {
8192  var c2 = K;
8193  K |= 2;
8194  var d2 = Kk();
8195  if (R !== a || Z !== b2)
8196    vk = null, Lk(a, b2);
8197  do
8198    try {
8199      Uk();
8200      break;
8201    } catch (e2) {
8202      Nk(a, e2);
8203    }
8204  while (1);
8205  Qg();
8206  K = c2;
8207  nk.current = d2;
8208  if (null !== Y)
8209    throw Error(p(261));
8210  R = null;
8211  Z = 0;
8212  return T;
8213}
8214function Uk() {
8215  for (; null !== Y; )
8216    Vk(Y);
8217}
8218function Mk() {
8219  for (; null !== Y && !cc(); )
8220    Vk(Y);
8221}
8222function Vk(a) {
8223  var b2 = Wk(a.alternate, a, gj);
8224  a.memoizedProps = a.pendingProps;
8225  null === b2 ? Tk(a) : Y = b2;
8226  ok.current = null;
8227}
8228function Tk(a) {
8229  var b2 = a;
8230  do {
8231    var c2 = b2.alternate;
8232    a = b2.return;
8233    if (0 === (b2.flags & 32768)) {
8234      if (c2 = Fj(c2, b2, gj), null !== c2) {
8235        Y = c2;
8236        return;
8237      }
8238    } else {
8239      c2 = Jj(c2, b2);
8240      if (null !== c2) {
8241        c2.flags &= 32767;
8242        Y = c2;
8243        return;
8244      }
8245      if (null !== a)
8246        a.flags |= 32768, a.subtreeFlags = 0, a.deletions = null;
8247      else {
8248        T = 6;
8249        Y = null;
8250        return;
8251      }
8252    }
8253    b2 = b2.sibling;
8254    if (null !== b2) {
8255      Y = b2;
8256      return;
8257    }
8258    Y = b2 = a;
8259  } while (null !== b2);
8260  0 === T && (T = 5);
8261}
8262function Qk(a, b2, c2) {
8263  var d2 = C, e2 = pk.transition;
8264  try {
8265    pk.transition = null, C = 1, Xk(a, b2, c2, d2);
8266  } finally {
8267    pk.transition = e2, C = d2;
8268  }
8269  return null;
8270}
8271function Xk(a, b2, c2, d2) {
8272  do
8273    Ik();
8274  while (null !== xk);
8275  if (0 !== (K & 6))
8276    throw Error(p(327));
8277  c2 = a.finishedWork;
8278  var e2 = a.finishedLanes;
8279  if (null === c2)
8280    return null;
8281  a.finishedWork = null;
8282  a.finishedLanes = 0;
8283  if (c2 === a.current)
8284    throw Error(p(177));
8285  a.callbackNode = null;
8286  a.callbackPriority = 0;
8287  var f2 = c2.lanes | c2.childLanes;
8288  Bc(a, f2);
8289  a === R && (Y = R = null, Z = 0);
8290  0 === (c2.subtreeFlags & 2064) && 0 === (c2.flags & 2064) || wk || (wk = true, Gk(hc, function() {
8291    Ik();
8292    return null;
8293  }));
8294  f2 = 0 !== (c2.flags & 15990);
8295  if (0 !== (c2.subtreeFlags & 15990) || f2) {
8296    f2 = pk.transition;
8297    pk.transition = null;
8298    var g2 = C;
8299    C = 1;
8300    var h2 = K;
8301    K |= 4;
8302    ok.current = null;
8303    Pj(a, c2);
8304    ek(c2, a);
8305    Oe(Df);
8306    dd = !!Cf;
8307    Df = Cf = null;
8308    a.current = c2;
8309    ik(c2);
8310    dc();
8311    K = h2;
8312    C = g2;
8313    pk.transition = f2;
8314  } else
8315    a.current = c2;
8316  wk && (wk = false, xk = a, yk = e2);
8317  f2 = a.pendingLanes;
8318  0 === f2 && (Si = null);
8319  mc(c2.stateNode);
8320  Ek(a, B());
8321  if (null !== b2)
8322    for (d2 = a.onRecoverableError, c2 = 0; c2 < b2.length; c2++)
8323      e2 = b2[c2], d2(e2.value, { componentStack: e2.stack, digest: e2.digest });
8324  if (Pi)
8325    throw Pi = false, a = Qi, Qi = null, a;
8326  0 !== (yk & 1) && 0 !== a.tag && Ik();
8327  f2 = a.pendingLanes;
8328  0 !== (f2 & 1) ? a === Ak ? zk++ : (zk = 0, Ak = a) : zk = 0;
8329  jg();
8330  return null;
8331}
8332function Ik() {
8333  if (null !== xk) {
8334    var a = Dc(yk), b2 = pk.transition, c2 = C;
8335    try {
8336      pk.transition = null;
8337      C = 16 > a ? 16 : a;
8338      if (null === xk)
8339        var d2 = false;
8340      else {
8341        a = xk;
8342        xk = null;
8343        yk = 0;
8344        if (0 !== (K & 6))
8345          throw Error(p(331));
8346        var e2 = K;
8347        K |= 4;
8348        for (V = a.current; null !== V; ) {
8349          var f2 = V, g2 = f2.child;
8350          if (0 !== (V.flags & 16)) {
8351            var h2 = f2.deletions;
8352            if (null !== h2) {
8353              for (var k2 = 0; k2 < h2.length; k2++) {
8354                var l2 = h2[k2];
8355                for (V = l2; null !== V; ) {
8356                  var m2 = V;
8357                  switch (m2.tag) {
8358                    case 0:
8359                    case 11:
8360                    case 15:
8361                      Qj(8, m2, f2);
8362                  }
8363                  var q2 = m2.child;
8364                  if (null !== q2)
8365                    q2.return = m2, V = q2;
8366                  else
8367                    for (; null !== V; ) {
8368                      m2 = V;
8369                      var r2 = m2.sibling, y2 = m2.return;
8370                      Tj(m2);
8371                      if (m2 === l2) {
8372                        V = null;
8373                        break;
8374                      }
8375                      if (null !== r2) {
8376                        r2.return = y2;
8377                        V = r2;
8378                        break;
8379                      }
8380                      V = y2;
8381                    }
8382                }
8383              }
8384              var n2 = f2.alternate;
8385              if (null !== n2) {
8386                var t2 = n2.child;
8387                if (null !== t2) {
8388                  n2.child = null;
8389                  do {
8390                    var J2 = t2.sibling;
8391                    t2.sibling = null;
8392                    t2 = J2;
8393                  } while (null !== t2);
8394                }
8395              }
8396              V = f2;
8397            }
8398          }
8399          if (0 !== (f2.subtreeFlags & 2064) && null !== g2)
8400            g2.return = f2, V = g2;
8401          else
8402            b:
8403              for (; null !== V; ) {
8404                f2 = V;
8405                if (0 !== (f2.flags & 2048))
8406                  switch (f2.tag) {
8407                    case 0:
8408                    case 11:
8409                    case 15:
8410                      Qj(9, f2, f2.return);
8411                  }
8412                var x2 = f2.sibling;
8413                if (null !== x2) {
8414                  x2.return = f2.return;
8415                  V = x2;
8416                  break b;
8417                }
8418                V = f2.return;
8419              }
8420        }
8421        var w2 = a.current;
8422        for (V = w2; null !== V; ) {
8423          g2 = V;
8424          var u2 = g2.child;
8425          if (0 !== (g2.subtreeFlags & 2064) && null !== u2)
8426            u2.return = g2, V = u2;
8427          else
8428            b:
8429              for (g2 = w2; null !== V; ) {
8430                h2 = V;
8431                if (0 !== (h2.flags & 2048))
8432                  try {
8433                    switch (h2.tag) {
8434                      case 0:
8435                      case 11:
8436                      case 15:
8437                        Rj(9, h2);
8438                    }
8439                  } catch (na) {
8440                    W(h2, h2.return, na);
8441                  }
8442                if (h2 === g2) {
8443                  V = null;
8444                  break b;
8445                }
8446                var F2 = h2.sibling;
8447                if (null !== F2) {
8448                  F2.return = h2.return;
8449                  V = F2;
8450                  break b;
8451                }
8452                V = h2.return;
8453              }
8454        }
8455        K = e2;
8456        jg();
8457        if (lc && "function" === typeof lc.onPostCommitFiberRoot)
8458          try {
8459            lc.onPostCommitFiberRoot(kc, a);
8460          } catch (na) {
8461          }
8462        d2 = true;
8463      }
8464      return d2;
8465    } finally {
8466      C = c2, pk.transition = b2;
8467    }
8468  }
8469  return false;
8470}
8471function Yk(a, b2, c2) {
8472  b2 = Ki(c2, b2);
8473  b2 = Oi(a, b2, 1);
8474  a = dh(a, b2, 1);
8475  b2 = L();
8476  null !== a && (Ac(a, 1, b2), Ek(a, b2));
8477}
8478function W(a, b2, c2) {
8479  if (3 === a.tag)
8480    Yk(a, a, c2);
8481  else
8482    for (; null !== b2; ) {
8483      if (3 === b2.tag) {
8484        Yk(b2, a, c2);
8485        break;
8486      } else if (1 === b2.tag) {
8487        var d2 = b2.stateNode;
8488        if ("function" === typeof b2.type.getDerivedStateFromError || "function" === typeof d2.componentDidCatch && (null === Si || !Si.has(d2))) {
8489          a = Ki(c2, a);
8490          a = Ri(b2, a, 1);
8491          b2 = dh(b2, a, 1);
8492          a = L();
8493          null !== b2 && (Ac(b2, 1, a), Ek(b2, a));
8494          break;
8495        }
8496      }
8497      b2 = b2.return;
8498    }
8499}
8500function Ui(a, b2, c2) {
8501  var d2 = a.pingCache;
8502  null !== d2 && d2.delete(b2);
8503  b2 = L();
8504  a.pingedLanes |= a.suspendedLanes & c2;
8505  R === a && (Z & c2) === c2 && (4 === T || 3 === T && (Z & 130023424) === Z && 500 > B() - gk ? Lk(a, 0) : sk |= c2);
8506  Ek(a, b2);
8507}
8508function Zk(a, b2) {
8509  0 === b2 && (0 === (a.mode & 1) ? b2 = 1 : (b2 = sc, sc <<= 1, 0 === (sc & 130023424) && (sc = 4194304)));
8510  var c2 = L();
8511  a = Zg(a, b2);
8512  null !== a && (Ac(a, b2, c2), Ek(a, c2));
8513}
8514function vj(a) {
8515  var b2 = a.memoizedState, c2 = 0;
8516  null !== b2 && (c2 = b2.retryLane);
8517  Zk(a, c2);
8518}
8519function ck(a, b2) {
8520  var c2 = 0;
8521  switch (a.tag) {
8522    case 13:
8523      var d2 = a.stateNode;
8524      var e2 = a.memoizedState;
8525      null !== e2 && (c2 = e2.retryLane);
8526      break;
8527    case 19:
8528      d2 = a.stateNode;
8529      break;
8530    default:
8531      throw Error(p(314));
8532  }
8533  null !== d2 && d2.delete(b2);
8534  Zk(a, c2);
8535}
8536var Wk;
8537Wk = function(a, b2, c2) {
8538  if (null !== a)
8539    if (a.memoizedProps !== b2.pendingProps || Wf.current)
8540      Ug = true;
8541    else {
8542      if (0 === (a.lanes & c2) && 0 === (b2.flags & 128))
8543        return Ug = false, zj(a, b2, c2);
8544      Ug = 0 !== (a.flags & 131072) ? true : false;
8545    }
8546  else
8547    Ug = false, I && 0 !== (b2.flags & 1048576) && ug(b2, ng, b2.index);
8548  b2.lanes = 0;
8549  switch (b2.tag) {
8550    case 2:
8551      var d2 = b2.type;
8552      jj(a, b2);
8553      a = b2.pendingProps;
8554      var e2 = Yf(b2, H.current);
8555      Tg(b2, c2);
8556      e2 = Xh(null, b2, d2, a, e2, c2);
8557      var f2 = bi();
8558      b2.flags |= 1;
8559      "object" === typeof e2 && null !== e2 && "function" === typeof e2.render && void 0 === e2.$$typeof ? (b2.tag = 1, b2.memoizedState = null, b2.updateQueue = null, Zf(d2) ? (f2 = true, cg(b2)) : f2 = false, b2.memoizedState = null !== e2.state && void 0 !== e2.state ? e2.state : null, ah(b2), e2.updater = nh, b2.stateNode = e2, e2._reactInternals = b2, rh(b2, d2, a, c2), b2 = kj(null, b2, d2, true, f2, c2)) : (b2.tag = 0, I && f2 && vg(b2), Yi(null, b2, e2, c2), b2 = b2.child);
8560      return b2;
8561    case 16:
8562      d2 = b2.elementType;
8563      a: {
8564        jj(a, b2);
8565        a = b2.pendingProps;
8566        e2 = d2._init;
8567        d2 = e2(d2._payload);
8568        b2.type = d2;
8569        e2 = b2.tag = $k(d2);
8570        a = Lg(d2, a);
8571        switch (e2) {
8572          case 0:
8573            b2 = dj(null, b2, d2, a, c2);
8574            break a;
8575          case 1:
8576            b2 = ij(null, b2, d2, a, c2);
8577            break a;
8578          case 11:
8579            b2 = Zi(null, b2, d2, a, c2);
8580            break a;
8581          case 14:
8582            b2 = aj(null, b2, d2, Lg(d2.type, a), c2);
8583            break a;
8584        }
8585        throw Error(p(
8586          306,
8587          d2,
8588          ""
8589        ));
8590      }
8591      return b2;
8592    case 0:
8593      return d2 = b2.type, e2 = b2.pendingProps, e2 = b2.elementType === d2 ? e2 : Lg(d2, e2), dj(a, b2, d2, e2, c2);
8594    case 1:
8595      return d2 = b2.type, e2 = b2.pendingProps, e2 = b2.elementType === d2 ? e2 : Lg(d2, e2), ij(a, b2, d2, e2, c2);
8596    case 3:
8597      a: {
8598        lj(b2);
8599        if (null === a)
8600          throw Error(p(387));
8601        d2 = b2.pendingProps;
8602        f2 = b2.memoizedState;
8603        e2 = f2.element;
8604        bh(a, b2);
8605        gh(b2, d2, null, c2);
8606        var g2 = b2.memoizedState;
8607        d2 = g2.element;
8608        if (f2.isDehydrated)
8609          if (f2 = { element: d2, isDehydrated: false, cache: g2.cache, pendingSuspenseBoundaries: g2.pendingSuspenseBoundaries, transitions: g2.transitions }, b2.updateQueue.baseState = f2, b2.memoizedState = f2, b2.flags & 256) {
8610            e2 = Ki(Error(p(423)), b2);
8611            b2 = mj(a, b2, d2, c2, e2);
8612            break a;
8613          } else if (d2 !== e2) {
8614            e2 = Ki(Error(p(424)), b2);
8615            b2 = mj(a, b2, d2, c2, e2);
8616            break a;
8617          } else
8618            for (yg = Lf(b2.stateNode.containerInfo.firstChild), xg = b2, I = true, zg = null, c2 = Ch(b2, null, d2, c2), b2.child = c2; c2; )
8619              c2.flags = c2.flags & -3 | 4096, c2 = c2.sibling;
8620        else {
8621          Ig();
8622          if (d2 === e2) {
8623            b2 = $i(a, b2, c2);
8624            break a;
8625          }
8626          Yi(a, b2, d2, c2);
8627        }
8628        b2 = b2.child;
8629      }
8630      return b2;
8631    case 5:
8632      return Kh(b2), null === a && Eg(b2), d2 = b2.type, e2 = b2.pendingProps, f2 = null !== a ? a.memoizedProps : null, g2 = e2.children, Ef(d2, e2) ? g2 = null : null !== f2 && Ef(d2, f2) && (b2.flags |= 32), hj(a, b2), Yi(a, b2, g2, c2), b2.child;
8633    case 6:
8634      return null === a && Eg(b2), null;
8635    case 13:
8636      return pj(a, b2, c2);
8637    case 4:
8638      return Ih(b2, b2.stateNode.containerInfo), d2 = b2.pendingProps, null === a ? b2.child = Bh(b2, null, d2, c2) : Yi(a, b2, d2, c2), b2.child;
8639    case 11:
8640      return d2 = b2.type, e2 = b2.pendingProps, e2 = b2.elementType === d2 ? e2 : Lg(d2, e2), Zi(a, b2, d2, e2, c2);
8641    case 7:
8642      return Yi(a, b2, b2.pendingProps, c2), b2.child;
8643    case 8:
8644      return Yi(a, b2, b2.pendingProps.children, c2), b2.child;
8645    case 12:
8646      return Yi(a, b2, b2.pendingProps.children, c2), b2.child;
8647    case 10:
8648      a: {
8649        d2 = b2.type._context;
8650        e2 = b2.pendingProps;
8651        f2 = b2.memoizedProps;
8652        g2 = e2.value;
8653        G(Mg, d2._currentValue);
8654        d2._currentValue = g2;
8655        if (null !== f2)
8656          if (He(f2.value, g2)) {
8657            if (f2.children === e2.children && !Wf.current) {
8658              b2 = $i(a, b2, c2);
8659              break a;
8660            }
8661          } else
8662            for (f2 = b2.child, null !== f2 && (f2.return = b2); null !== f2; ) {
8663              var h2 = f2.dependencies;
8664              if (null !== h2) {
8665                g2 = f2.child;
8666                for (var k2 = h2.firstContext; null !== k2; ) {
8667                  if (k2.context === d2) {
8668                    if (1 === f2.tag) {
8669                      k2 = ch(-1, c2 & -c2);
8670                      k2.tag = 2;
8671                      var l2 = f2.updateQueue;
8672                      if (null !== l2) {
8673                        l2 = l2.shared;
8674                        var m2 = l2.pending;
8675                        null === m2 ? k2.next = k2 : (k2.next = m2.next, m2.next = k2);
8676                        l2.pending = k2;
8677                      }
8678                    }
8679                    f2.lanes |= c2;
8680                    k2 = f2.alternate;
8681                    null !== k2 && (k2.lanes |= c2);
8682                    Sg(
8683                      f2.return,
8684                      c2,
8685                      b2
8686                    );
8687                    h2.lanes |= c2;
8688                    break;
8689                  }
8690                  k2 = k2.next;
8691                }
8692              } else if (10 === f2.tag)
8693                g2 = f2.type === b2.type ? null : f2.child;
8694              else if (18 === f2.tag) {
8695                g2 = f2.return;
8696                if (null === g2)
8697                  throw Error(p(341));
8698                g2.lanes |= c2;
8699                h2 = g2.alternate;
8700                null !== h2 && (h2.lanes |= c2);
8701                Sg(g2, c2, b2);
8702                g2 = f2.sibling;
8703              } else
8704                g2 = f2.child;
8705              if (null !== g2)
8706                g2.return = f2;
8707              else
8708                for (g2 = f2; null !== g2; ) {
8709                  if (g2 === b2) {
8710                    g2 = null;
8711                    break;
8712                  }
8713                  f2 = g2.sibling;
8714                  if (null !== f2) {
8715                    f2.return = g2.return;
8716                    g2 = f2;
8717                    break;
8718                  }
8719                  g2 = g2.return;
8720                }
8721              f2 = g2;
8722            }
8723        Yi(a, b2, e2.children, c2);
8724        b2 = b2.child;
8725      }
8726      return b2;
8727    case 9:
8728      return e2 = b2.type, d2 = b2.pendingProps.children, Tg(b2, c2), e2 = Vg(e2), d2 = d2(e2), b2.flags |= 1, Yi(a, b2, d2, c2), b2.child;
8729    case 14:
8730      return d2 = b2.type, e2 = Lg(d2, b2.pendingProps), e2 = Lg(d2.type, e2), aj(a, b2, d2, e2, c2);
8731    case 15:
8732      return cj(a, b2, b2.type, b2.pendingProps, c2);
8733    case 17:
8734      return d2 = b2.type, e2 = b2.pendingProps, e2 = b2.elementType === d2 ? e2 : Lg(d2, e2), jj(a, b2), b2.tag = 1, Zf(d2) ? (a = true, cg(b2)) : a = false, Tg(b2, c2), ph(b2, d2, e2), rh(b2, d2, e2, c2), kj(null, b2, d2, true, a, c2);
8735    case 19:
8736      return yj(a, b2, c2);
8737    case 22:
8738      return ej(a, b2, c2);
8739  }
8740  throw Error(p(156, b2.tag));
8741};
8742function Gk(a, b2) {
8743  return ac(a, b2);
8744}
8745function al(a, b2, c2, d2) {
8746  this.tag = a;
8747  this.key = c2;
8748  this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null;
8749  this.index = 0;
8750  this.ref = null;
8751  this.pendingProps = b2;
8752  this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null;
8753  this.mode = d2;
8754  this.subtreeFlags = this.flags = 0;
8755  this.deletions = null;
8756  this.childLanes = this.lanes = 0;
8757  this.alternate = null;
8758}
8759function Bg(a, b2, c2, d2) {
8760  return new al(a, b2, c2, d2);
8761}
8762function bj(a) {
8763  a = a.prototype;
8764  return !(!a || !a.isReactComponent);
8765}
8766function $k(a) {
8767  if ("function" === typeof a)
8768    return bj(a) ? 1 : 0;
8769  if (void 0 !== a && null !== a) {
8770    a = a.$$typeof;
8771    if (a === Da)
8772      return 11;
8773    if (a === Ga)
8774      return 14;
8775  }
8776  return 2;
8777}
8778function wh(a, b2) {
8779  var c2 = a.alternate;
8780  null === c2 ? (c2 = Bg(a.tag, b2, a.key, a.mode), c2.elementType = a.elementType, c2.type = a.type, c2.stateNode = a.stateNode, c2.alternate = a, a.alternate = c2) : (c2.pendingProps = b2, c2.type = a.type, c2.flags = 0, c2.subtreeFlags = 0, c2.deletions = null);
8781  c2.flags = a.flags & 14680064;
8782  c2.childLanes = a.childLanes;
8783  c2.lanes = a.lanes;
8784  c2.child = a.child;
8785  c2.memoizedProps = a.memoizedProps;
8786  c2.memoizedState = a.memoizedState;
8787  c2.updateQueue = a.updateQueue;
8788  b2 = a.dependencies;
8789  c2.dependencies = null === b2 ? null : { lanes: b2.lanes, firstContext: b2.firstContext };
8790  c2.sibling = a.sibling;
8791  c2.index = a.index;
8792  c2.ref = a.ref;
8793  return c2;
8794}
8795function yh(a, b2, c2, d2, e2, f2) {
8796  var g2 = 2;
8797  d2 = a;
8798  if ("function" === typeof a)
8799    bj(a) && (g2 = 1);
8800  else if ("string" === typeof a)
8801    g2 = 5;
8802  else
8803    a:
8804      switch (a) {
8805        case ya:
8806          return Ah(c2.children, e2, f2, b2);
8807        case za:
8808          g2 = 8;
8809          e2 |= 8;
8810          break;
8811        case Aa:
8812          return a = Bg(12, c2, b2, e2 | 2), a.elementType = Aa, a.lanes = f2, a;
8813        case Ea:
8814          return a = Bg(13, c2, b2, e2), a.elementType = Ea, a.lanes = f2, a;
8815        case Fa:
8816          return a = Bg(19, c2, b2, e2), a.elementType = Fa, a.lanes = f2, a;
8817        case Ia:
8818          return qj(c2, e2, f2, b2);
8819        default:
8820          if ("object" === typeof a && null !== a)
8821            switch (a.$$typeof) {
8822              case Ba:
8823                g2 = 10;
8824                break a;
8825              case Ca:
8826                g2 = 9;
8827                break a;
8828              case Da:
8829                g2 = 11;
8830                break a;
8831              case Ga:
8832                g2 = 14;
8833                break a;
8834              case Ha:
8835                g2 = 16;
8836                d2 = null;
8837                break a;
8838            }
8839          throw Error(p(130, null == a ? a : typeof a, ""));
8840      }
8841  b2 = Bg(g2, c2, b2, e2);
8842  b2.elementType = a;
8843  b2.type = d2;
8844  b2.lanes = f2;
8845  return b2;
8846}
8847function Ah(a, b2, c2, d2) {
8848  a = Bg(7, a, d2, b2);
8849  a.lanes = c2;
8850  return a;
8851}
8852function qj(a, b2, c2, d2) {
8853  a = Bg(22, a, d2, b2);
8854  a.elementType = Ia;
8855  a.lanes = c2;
8856  a.stateNode = { isHidden: false };
8857  return a;
8858}
8859function xh(a, b2, c2) {
8860  a = Bg(6, a, null, b2);
8861  a.lanes = c2;
8862  return a;
8863}
8864function zh(a, b2, c2) {
8865  b2 = Bg(4, null !== a.children ? a.children : [], a.key, b2);
8866  b2.lanes = c2;
8867  b2.stateNode = { containerInfo: a.containerInfo, pendingChildren: null, implementation: a.implementation };
8868  return b2;
8869}
8870function bl(a, b2, c2, d2, e2) {
8871  this.tag = b2;
8872  this.containerInfo = a;
8873  this.finishedWork = this.pingCache = this.current = this.pendingChildren = null;
8874  this.timeoutHandle = -1;
8875  this.callbackNode = this.pendingContext = this.context = null;
8876  this.callbackPriority = 0;
8877  this.eventTimes = zc(0);
8878  this.expirationTimes = zc(-1);
8879  this.entangledLanes = this.finishedLanes = this.mutableReadLanes = this.expiredLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0;
8880  this.entanglements = zc(0);
8881  this.identifierPrefix = d2;
8882  this.onRecoverableError = e2;
8883  this.mutableSourceEagerHydrationData = null;
8884}
8885function cl(a, b2, c2, d2, e2, f2, g2, h2, k2) {
8886  a = new bl(a, b2, c2, h2, k2);
8887  1 === b2 ? (b2 = 1, true === f2 && (b2 |= 8)) : b2 = 0;
8888  f2 = Bg(3, null, null, b2);
8889  a.current = f2;
8890  f2.stateNode = a;
8891  f2.memoizedState = { element: d2, isDehydrated: c2, cache: null, transitions: null, pendingSuspenseBoundaries: null };
8892  ah(f2);
8893  return a;
8894}
8895function dl(a, b2, c2) {
8896  var d2 = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;
8897  return { $$typeof: wa, key: null == d2 ? null : "" + d2, children: a, containerInfo: b2, implementation: c2 };
8898}
8899function el(a) {
8900  if (!a)
8901    return Vf;
8902  a = a._reactInternals;
8903  a: {
8904    if (Vb(a) !== a || 1 !== a.tag)
8905      throw Error(p(170));
8906    var b2 = a;
8907    do {
8908      switch (b2.tag) {
8909        case 3:
8910          b2 = b2.stateNode.context;
8911          break a;
8912        case 1:
8913          if (Zf(b2.type)) {
8914            b2 = b2.stateNode.__reactInternalMemoizedMergedChildContext;
8915            break a;
8916          }
8917      }
8918      b2 = b2.return;
8919    } while (null !== b2);
8920    throw Error(p(171));
8921  }
8922  if (1 === a.tag) {
8923    var c2 = a.type;
8924    if (Zf(c2))
8925      return bg(a, c2, b2);
8926  }
8927  return b2;
8928}
8929function fl(a, b2, c2, d2, e2, f2, g2, h2, k2) {
8930  a = cl(c2, d2, true, a, e2, f2, g2, h2, k2);
8931  a.context = el(null);
8932  c2 = a.current;
8933  d2 = L();
8934  e2 = lh(c2);
8935  f2 = ch(d2, e2);
8936  f2.callback = void 0 !== b2 && null !== b2 ? b2 : null;
8937  dh(c2, f2, e2);
8938  a.current.lanes = e2;
8939  Ac(a, e2, d2);
8940  Ek(a, d2);
8941  return a;
8942}
8943function gl(a, b2, c2, d2) {
8944  var e2 = b2.current, f2 = L(), g2 = lh(e2);
8945  c2 = el(c2);
8946  null === b2.context ? b2.context = c2 : b2.pendingContext = c2;
8947  b2 = ch(f2, g2);
8948  b2.payload = { element: a };
8949  d2 = void 0 === d2 ? null : d2;
8950  null !== d2 && (b2.callback = d2);
8951  a = dh(e2, b2, g2);
8952  null !== a && (mh(a, e2, g2, f2), eh(a, e2, g2));
8953  return g2;
8954}
8955function hl(a) {
8956  a = a.current;
8957  if (!a.child)
8958    return null;
8959  switch (a.child.tag) {
8960    case 5:
8961      return a.child.stateNode;
8962    default:
8963      return a.child.stateNode;
8964  }
8965}
8966function il(a, b2) {
8967  a = a.memoizedState;
8968  if (null !== a && null !== a.dehydrated) {
8969    var c2 = a.retryLane;
8970    a.retryLane = 0 !== c2 && c2 < b2 ? c2 : b2;
8971  }
8972}
8973function jl(a, b2) {
8974  il(a, b2);
8975  (a = a.alternate) && il(a, b2);
8976}
8977function kl() {
8978  return null;
8979}
8980var ll = "function" === typeof reportError ? reportError : function(a) {
8981  console.error(a);
8982};
8983function ml(a) {
8984  this._internalRoot = a;
8985}
8986nl.prototype.render = ml.prototype.render = function(a) {
8987  var b2 = this._internalRoot;
8988  if (null === b2)
8989    throw Error(p(409));
8990  gl(a, b2, null, null);
8991};
8992nl.prototype.unmount = ml.prototype.unmount = function() {
8993  var a = this._internalRoot;
8994  if (null !== a) {
8995    this._internalRoot = null;
8996    var b2 = a.containerInfo;
8997    Sk(function() {
8998      gl(null, a, null, null);
8999    });
9000    b2[uf] = null;
9001  }
9002};
9003function nl(a) {
9004  this._internalRoot = a;
9005}
9006nl.prototype.unstable_scheduleHydration = function(a) {
9007  if (a) {
9008    var b2 = Hc();
9009    a = { blockedOn: null, target: a, priority: b2 };
9010    for (var c2 = 0; c2 < Qc.length && 0 !== b2 && b2 < Qc[c2].priority; c2++)
9011      ;
9012    Qc.splice(c2, 0, a);
9013    0 === c2 && Vc(a);
9014  }
9015};
9016function ol(a) {
9017  return !(!a || 1 !== a.nodeType && 9 !== a.nodeType && 11 !== a.nodeType);
9018}
9019function pl(a) {
9020  return !(!a || 1 !== a.nodeType && 9 !== a.nodeType && 11 !== a.nodeType && (8 !== a.nodeType || " react-mount-point-unstable " !== a.nodeValue));
9021}
9022function ql() {
9023}
9024function rl(a, b2, c2, d2, e2) {
9025  if (e2) {
9026    if ("function" === typeof d2) {
9027      var f2 = d2;
9028      d2 = function() {
9029        var a2 = hl(g2);
9030        f2.call(a2);
9031      };
9032    }
9033    var g2 = fl(b2, d2, a, 0, null, false, false, "", ql);
9034    a._reactRootContainer = g2;
9035    a[uf] = g2.current;
9036    sf(8 === a.nodeType ? a.parentNode : a);
9037    Sk();
9038    return g2;
9039  }
9040  for (; e2 = a.lastChild; )
9041    a.removeChild(e2);
9042  if ("function" === typeof d2) {
9043    var h2 = d2;
9044    d2 = function() {
9045      var a2 = hl(k2);
9046      h2.call(a2);
9047    };
9048  }
9049  var k2 = cl(a, 0, false, null, null, false, false, "", ql);
9050  a._reactRootContainer = k2;
9051  a[uf] = k2.current;
9052  sf(8 === a.nodeType ? a.parentNode : a);
9053  Sk(function() {
9054    gl(b2, k2, c2, d2);
9055  });
9056  return k2;
9057}
9058function sl(a, b2, c2, d2, e2) {
9059  var f2 = c2._reactRootContainer;
9060  if (f2) {
9061    var g2 = f2;
9062    if ("function" === typeof e2) {
9063      var h2 = e2;
9064      e2 = function() {
9065        var a2 = hl(g2);
9066        h2.call(a2);
9067      };
9068    }
9069    gl(b2, g2, a, e2);
9070  } else
9071    g2 = rl(c2, b2, a, e2, d2);
9072  return hl(g2);
9073}
9074Ec = function(a) {
9075  switch (a.tag) {
9076    case 3:
9077      var b2 = a.stateNode;
9078      if (b2.current.memoizedState.isDehydrated) {
9079        var c2 = tc(b2.pendingLanes);
9080        0 !== c2 && (Cc(b2, c2 | 1), Ek(b2, B()), 0 === (K & 6) && (Hj = B() + 500, jg()));
9081      }
9082      break;
9083    case 13:
9084      Sk(function() {
9085        var b3 = Zg(a, 1);
9086        if (null !== b3) {
9087          var c3 = L();
9088          mh(b3, a, 1, c3);
9089        }
9090      }), jl(a, 1);
9091  }
9092};
9093Fc = function(a) {
9094  if (13 === a.tag) {
9095    var b2 = Zg(a, 134217728);
9096    if (null !== b2) {
9097      var c2 = L();
9098      mh(b2, a, 134217728, c2);
9099    }
9100    jl(a, 134217728);
9101  }
9102};
9103Gc = function(a) {
9104  if (13 === a.tag) {
9105    var b2 = lh(a), c2 = Zg(a, b2);
9106    if (null !== c2) {
9107      var d2 = L();
9108      mh(c2, a, b2, d2);
9109    }
9110    jl(a, b2);
9111  }
9112};
9113Hc = function() {
9114  return C;
9115};
9116Ic = function(a, b2) {
9117  var c2 = C;
9118  try {
9119    return C = a, b2();
9120  } finally {
9121    C = c2;
9122  }
9123};
9124yb = function(a, b2, c2) {
9125  switch (b2) {
9126    case "input":
9127      bb(a, c2);
9128      b2 = c2.name;
9129      if ("radio" === c2.type && null != b2) {
9130        for (c2 = a; c2.parentNode; )
9131          c2 = c2.parentNode;
9132        c2 = c2.querySelectorAll("input[name=" + JSON.stringify("" + b2) + '][type="radio"]');
9133        for (b2 = 0; b2 < c2.length; b2++) {
9134          var d2 = c2[b2];
9135          if (d2 !== a && d2.form === a.form) {
9136            var e2 = Db(d2);
9137            if (!e2)
9138              throw Error(p(90));
9139            Wa(d2);
9140            bb(d2, e2);
9141          }
9142        }
9143      }
9144      break;
9145    case "textarea":
9146      ib(a, c2);
9147      break;
9148    case "select":
9149      b2 = c2.value, null != b2 && fb(a, !!c2.multiple, b2, false);
9150  }
9151};
9152Gb = Rk;
9153Hb = Sk;
9154var tl = { usingClientEntryPoint: false, Events: [Cb, ue, Db, Eb, Fb, Rk] }, ul = { findFiberByHostInstance: Wc, bundleType: 0, version: "18.2.0", rendererPackageName: "react-dom" };
9155var vl = { bundleType: ul.bundleType, version: ul.version, rendererPackageName: ul.rendererPackageName, rendererConfig: ul.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, overrideProps: null, overridePropsDeletePath: null, overridePropsRenamePath: null, setErrorHandler: null, setSuspenseHandler: null, scheduleUpdate: null, currentDispatcherRef: ua.ReactCurrentDispatcher, findHostInstanceByFiber: function(a) {
9156  a = Zb(a);
9157  return null === a ? null : a.stateNode;
9158}, findFiberByHostInstance: ul.findFiberByHostInstance || kl, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, reconcilerVersion: "18.2.0-next-9e3b772b8-20220608" };
9159if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
9160  var wl = __REACT_DEVTOOLS_GLOBAL_HOOK__;
9161  if (!wl.isDisabled && wl.supportsFiber)
9162    try {
9163      kc = wl.inject(vl), lc = wl;
9164    } catch (a) {
9165    }
9166}
9167reactDom_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = tl;
9168reactDom_production_min.createPortal = function(a, b2) {
9169  var c2 = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;
9170  if (!ol(b2))
9171    throw Error(p(200));
9172  return dl(a, b2, null, c2);
9173};
9174reactDom_production_min.createRoot = function(a, b2) {
9175  if (!ol(a))
9176    throw Error(p(299));
9177  var c2 = false, d2 = "", e2 = ll;
9178  null !== b2 && void 0 !== b2 && (true === b2.unstable_strictMode && (c2 = true), void 0 !== b2.identifierPrefix && (d2 = b2.identifierPrefix), void 0 !== b2.onRecoverableError && (e2 = b2.onRecoverableError));
9179  b2 = cl(a, 1, false, null, null, c2, false, d2, e2);
9180  a[uf] = b2.current;
9181  sf(8 === a.nodeType ? a.parentNode : a);
9182  return new ml(b2);
9183};
9184reactDom_production_min.findDOMNode = function(a) {
9185  if (null == a)
9186    return null;
9187  if (1 === a.nodeType)
9188    return a;
9189  var b2 = a._reactInternals;
9190  if (void 0 === b2) {
9191    if ("function" === typeof a.render)
9192      throw Error(p(188));
9193    a = Object.keys(a).join(",");
9194    throw Error(p(268, a));
9195  }
9196  a = Zb(b2);
9197  a = null === a ? null : a.stateNode;
9198  return a;
9199};
9200reactDom_production_min.flushSync = function(a) {
9201  return Sk(a);
9202};
9203reactDom_production_min.hydrate = function(a, b2, c2) {
9204  if (!pl(b2))
9205    throw Error(p(200));
9206  return sl(null, a, b2, true, c2);
9207};
9208reactDom_production_min.hydrateRoot = function(a, b2, c2) {
9209  if (!ol(a))
9210    throw Error(p(405));
9211  var d2 = null != c2 && c2.hydratedSources || null, e2 = false, f2 = "", g2 = ll;
9212  null !== c2 && void 0 !== c2 && (true === c2.unstable_strictMode && (e2 = true), void 0 !== c2.identifierPrefix && (f2 = c2.identifierPrefix), void 0 !== c2.onRecoverableError && (g2 = c2.onRecoverableError));
9213  b2 = fl(b2, null, a, 1, null != c2 ? c2 : null, e2, false, f2, g2);
9214  a[uf] = b2.current;
9215  sf(a);
9216  if (d2)
9217    for (a = 0; a < d2.length; a++)
9218      c2 = d2[a], e2 = c2._getVersion, e2 = e2(c2._source), null == b2.mutableSourceEagerHydrationData ? b2.mutableSourceEagerHydrationData = [c2, e2] : b2.mutableSourceEagerHydrationData.push(
9219        c2,
9220        e2
9221      );
9222  return new nl(b2);
9223};
9224reactDom_production_min.render = function(a, b2, c2) {
9225  if (!pl(b2))
9226    throw Error(p(200));
9227  return sl(null, a, b2, false, c2);
9228};
9229reactDom_production_min.unmountComponentAtNode = function(a) {
9230  if (!pl(a))
9231    throw Error(p(40));
9232  return a._reactRootContainer ? (Sk(function() {
9233    sl(null, null, a, false, function() {
9234      a._reactRootContainer = null;
9235      a[uf] = null;
9236    });
9237  }), true) : false;
9238};
9239reactDom_production_min.unstable_batchedUpdates = Rk;
9240reactDom_production_min.unstable_renderSubtreeIntoContainer = function(a, b2, c2, d2) {
9241  if (!pl(c2))
9242    throw Error(p(200));
9243  if (null == a || void 0 === a._reactInternals)
9244    throw Error(p(38));
9245  return sl(a, b2, c2, false, d2);
9246};
9247reactDom_production_min.version = "18.2.0-next-9e3b772b8-20220608";
9248(function(module) {
9249  function checkDCE() {
9250    if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === "undefined" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== "function") {
9251      return;
9252    }
9253    try {
9254      __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
9255    } catch (err) {
9256      console.error(err);
9257    }
9258  }
9259  {
9260    checkDCE();
9261    module.exports = reactDom_production_min;
9262  }
9263})(reactDom);
9264var [PortalContextProvider, usePortalContext] = createContext$1({
9265  strict: false,
9266  name: "PortalContext"
9267});
9268var PORTAL_CLASSNAME = "chakra-portal";
9269var PORTAL_SELECTOR = `.chakra-portal`;
9270var Container = (props) => /* @__PURE__ */ jsx(
9271  "div",
9272  {
9273    className: "chakra-portal-zIndex",
9274    style: {
9275      position: "absolute",
9276      zIndex: props.zIndex,
9277      top: 0,
9278      left: 0,
9279      right: 0
9280    },
9281    children: props.children
9282  }
9283);
9284var DefaultPortal = (props) => {
9285  const { appendToParentPortal, children } = props;
9286  const [tempNode, setTempNode] = reactExports.useState(null);
9287  const portal = reactExports.useRef(null);
9288  const [, forceUpdate] = reactExports.useState({});
9289  reactExports.useEffect(() => forceUpdate({}), []);
9290  const parentPortal = usePortalContext();
9291  const manager = usePortalManager();
9292  useSafeLayoutEffect(() => {
9293    if (!tempNode)
9294      return;
9295    const doc = tempNode.ownerDocument;
9296    const host = appendToParentPortal ? parentPortal != null ? parentPortal : doc.body : doc.body;
9297    if (!host)
9298      return;
9299    portal.current = doc.createElement("div");
9300    portal.current.className = PORTAL_CLASSNAME;
9301    host.appendChild(portal.current);
9302    forceUpdate({});
9303    const portalNode = portal.current;
9304    return () => {
9305      if (host.contains(portalNode)) {
9306        host.removeChild(portalNode);
9307      }
9308    };
9309  }, [tempNode]);
9310  const _children = (manager == null ? void 0 : manager.zIndex) ? /* @__PURE__ */ jsx(Container, { zIndex: manager == null ? void 0 : manager.zIndex, children }) : children;
9311  return portal.current ? reactDomExports.createPortal(
9312    /* @__PURE__ */ jsx(PortalContextProvider, { value: portal.current, children: _children }),
9313    portal.current
9314  ) : /* @__PURE__ */ jsx(
9315    "span",
9316    {
9317      ref: (el2) => {
9318        if (el2)
9319          setTempNode(el2);
9320      }
9321    }
9322  );
9323};
9324var ContainerPortal = (props) => {
9325  const { children, containerRef, appendToParentPortal } = props;
9326  const containerEl = containerRef.current;
9327  const host = containerEl != null ? containerEl : typeof window !== "undefined" ? document.body : void 0;
9328  const portal = reactExports.useMemo(() => {
9329    const node2 = containerEl == null ? void 0 : containerEl.ownerDocument.createElement("div");
9330    if (node2)
9331      node2.className = PORTAL_CLASSNAME;
9332    return node2;
9333  }, [containerEl]);
9334  const [, forceUpdate] = reactExports.useState({});
9335  useSafeLayoutEffect(() => forceUpdate({}), []);
9336  useSafeLayoutEffect(() => {
9337    if (!portal || !host)
9338      return;
9339    host.appendChild(portal);
9340    return () => {
9341      host.removeChild(portal);
9342    };
9343  }, [portal, host]);
9344  if (host && portal) {
9345    return reactDomExports.createPortal(
9346      /* @__PURE__ */ jsx(PortalContextProvider, { value: appendToParentPortal ? portal : null, children }),
9347      portal
9348    );
9349  }
9350  return null;
9351};
9352function Portal(props) {
9353  const portalProps = {
9354    appendToParentPortal: true,
9355    ...props
9356  };
9357  const { containerRef, ...rest } = portalProps;
9358  return containerRef ? /* @__PURE__ */ jsx(ContainerPortal, { containerRef, ...rest }) : /* @__PURE__ */ jsx(DefaultPortal, { ...rest });
9359}
9360Portal.className = PORTAL_CLASSNAME;
9361Portal.selector = PORTAL_SELECTOR;
9362Portal.displayName = "Portal";
9363function useTheme() {
9364  const theme2 = reactExports.useContext(
9365    ThemeContext
9366  );
9367  if (!theme2) {
9368    throw Error(
9369      "useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`"
9370    );
9371  }
9372  return theme2;
9373}
9374var ColorModeContext = reactExports.createContext({});
9375ColorModeContext.displayName = "ColorModeContext";
9376function useColorMode() {
9377  const context = reactExports.useContext(ColorModeContext);
9378  if (context === void 0) {
9379    throw new Error("useColorMode must be used within a ColorModeProvider");
9380  }
9381  return context;
9382}
9383var classNames = {
9384  light: "chakra-ui-light",
9385  dark: "chakra-ui-dark"
9386};
9387function getColorModeUtils(options = {}) {
9388  const { preventTransition = true } = options;
9389  const utils = {
9390    setDataset: (value) => {
9391      const cleanup = preventTransition ? utils.preventTransition() : void 0;
9392      document.documentElement.dataset.theme = value;
9393      document.documentElement.style.colorScheme = value;
9394      cleanup == null ? void 0 : cleanup();
9395    },
9396    setClassName(dark) {
9397      document.body.classList.add(dark ? classNames.dark : classNames.light);
9398      document.body.classList.remove(dark ? classNames.light : classNames.dark);
9399    },
9400    query() {
9401      return window.matchMedia("(prefers-color-scheme: dark)");
9402    },
9403    getSystemTheme(fallback) {
9404      var _a5;
9405      const dark = (_a5 = utils.query().matches) != null ? _a5 : fallback === "dark";
9406      return dark ? "dark" : "light";
9407    },
9408    addListener(fn) {
9409      const mql = utils.query();
9410      const listener = (e2) => {
9411        fn(e2.matches ? "dark" : "light");
9412      };
9413      if (typeof mql.addListener === "function")
9414        mql.addListener(listener);
9415      else
9416        mql.addEventListener("change", listener);
9417      return () => {
9418        if (typeof mql.removeListener === "function")
9419          mql.removeListener(listener);
9420        else
9421          mql.removeEventListener("change", listener);
9422      };
9423    },
9424    preventTransition() {
9425      const css2 = document.createElement("style");
9426      css2.appendChild(
9427        document.createTextNode(
9428          `*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`
9429        )
9430      );
9431      document.head.appendChild(css2);
9432      return () => {
9433        (() => window.getComputedStyle(document.body))();
9434        requestAnimationFrame(() => {
9435          requestAnimationFrame(() => {
9436            document.head.removeChild(css2);
9437          });
9438        });
9439      };
9440    }
9441  };
9442  return utils;
9443}
9444var STORAGE_KEY = "chakra-ui-color-mode";
9445function createLocalStorageManager(key) {
9446  return {
9447    ssr: false,
9448    type: "localStorage",
9449    get(init) {
9450      if (!(globalThis == null ? void 0 : globalThis.document))
9451        return init;
9452      let value;
9453      try {
9454        value = localStorage.getItem(key) || init;
9455      } catch (e2) {
9456      }
9457      return value || init;
9458    },
9459    set(value) {
9460      try {
9461        localStorage.setItem(key, value);
9462      } catch (e2) {
9463      }
9464    }
9465  };
9466}
9467var localStorageManager = createLocalStorageManager(STORAGE_KEY);
9468var noop$1 = () => {
9469};
9470function getTheme2(manager, fallback) {
9471  return manager.type === "cookie" && manager.ssr ? manager.get(fallback) : fallback;
9472}
9473function ColorModeProvider(props) {
9474  const {
9475    value,
9476    children,
9477    options: {
9478      useSystemColorMode,
9479      initialColorMode,
9480      disableTransitionOnChange
9481    } = {},
9482    colorModeManager = localStorageManager
9483  } = props;
9484  const defaultColorMode = initialColorMode === "dark" ? "dark" : "light";
9485  const [colorMode, rawSetColorMode] = reactExports.useState(
9486    () => getTheme2(colorModeManager, defaultColorMode)
9487  );
9488  const [resolvedColorMode, setResolvedColorMode] = reactExports.useState(
9489    () => getTheme2(colorModeManager)
9490  );
9491  const { getSystemTheme, setClassName, setDataset, addListener } = reactExports.useMemo(
9492    () => getColorModeUtils({ preventTransition: disableTransitionOnChange }),
9493    [disableTransitionOnChange]
9494  );
9495  const resolvedValue = initialColorMode === "system" && !colorMode ? resolvedColorMode : colorMode;
9496  const setColorMode = reactExports.useCallback(
9497    (value2) => {
9498      const resolved = value2 === "system" ? getSystemTheme() : value2;
9499      rawSetColorMode(resolved);
9500      setClassName(resolved === "dark");
9501      setDataset(resolved);
9502      colorModeManager.set(resolved);
9503    },
9504    [colorModeManager, getSystemTheme, setClassName, setDataset]
9505  );
9506  useSafeLayoutEffect(() => {
9507    if (initialColorMode === "system") {
9508      setResolvedColorMode(getSystemTheme());
9509    }
9510  }, []);
9511  reactExports.useEffect(() => {
9512    const managerValue = colorModeManager.get();
9513    if (managerValue) {
9514      setColorMode(managerValue);
9515      return;
9516    }
9517    if (initialColorMode === "system") {
9518      setColorMode("system");
9519      return;
9520    }
9521    setColorMode(defaultColorMode);
9522  }, [colorModeManager, defaultColorMode, initialColorMode, setColorMode]);
9523  const toggleColorMode = reactExports.useCallback(() => {
9524    setColorMode(resolvedValue === "dark" ? "light" : "dark");
9525  }, [resolvedValue, setColorMode]);
9526  reactExports.useEffect(() => {
9527    if (!useSystemColorMode)
9528      return;
9529    return addListener(setColorMode);
9530  }, [useSystemColorMode, addListener, setColorMode]);
9531  const context = reactExports.useMemo(
9532    () => ({
9533      colorMode: value != null ? value : resolvedValue,
9534      toggleColorMode: value ? noop$1 : toggleColorMode,
9535      setColorMode: value ? noop$1 : setColorMode,
9536      forced: value !== void 0
9537    }),
9538    [resolvedValue, toggleColorMode, setColorMode, value]
9539  );
9540  return /* @__PURE__ */ jsx(ColorModeContext.Provider, { value: context, children });
9541}
9542ColorModeProvider.displayName = "ColorModeProvider";
9543var VALID_VALUES = /* @__PURE__ */ new Set(["dark", "light", "system"]);
9544function normalize$1(initialColorMode) {
9545  let value = initialColorMode;
9546  if (!VALID_VALUES.has(value))
9547    value = "light";
9548  return value;
9549}
9550function getScriptSrc(props = {}) {
9551  const {
9552    initialColorMode = "light",
9553    type = "localStorage",
9554    storageKey: key = "chakra-ui-color-mode"
9555  } = props;
9556  const init = normalize$1(initialColorMode);
9557  const isCookie = type === "cookie";
9558  const cookieScript = `(function(){try{var a=function(o){var l="(prefers-color-scheme: dark)",v=window.matchMedia(l).matches?"dar
9558k":"light",e=o==="system"?v:o,d=document.documentElement,m=document.body,i="chakra-ui-light",n="chakra-ui-dark",s=e==="dark";return m.classList.add(s?n:i),m.classList.remove(s?i:n),d.style.colorScheme=e,d.dataset.theme=e,e},u=a,h="${init}",r="${key}",t=document.cookie.match(new RegExp("(^| )".concat(r,"=([^;]+)"))),c=t?t[2]:null;c?a(c):document.cookie="".concat(r,"=").concat(a(h),"; max-age=31536000; path=/")}catch(a){}})();
9559  `;
9560  const localStorageScript = `(function(){try{var a=function(c){var v="(prefers-color-scheme: dark)",h=window.matchMedia(v).matches?"dark":"light",r=c==="system"?h:c,o=document.documentElement,s=document.body,l="chakra-ui-light",d="chakra-ui-dark",i=r==="dark";return s.classList.add(i?d:l),s.classList.remove(i?l:d),o.style.colorScheme=r,o.dataset.theme=r,r},n=a,m="${init}",e="${key}",t=localStorage.getItem(e);t?a(t):localStorage.setItem(e,a(m))}catch(a){}})();
9561  `;
9562  const fn = isCookie ? cookieScript : localStorageScript;
9563  return `!${fn}`.trim();
9564}
9565function ColorModeScript(props = {}) {
9566  const { nonce } = props;
9567  return /* @__PURE__ */ jsx(
9568    "script",
9569    {
9570      id: "chakra-script",
9571      nonce,
9572      dangerouslySetInnerHTML: { __html: getScriptSrc(props) }
9573    }
9574  );
9575}
9576function useChakra() {
9577  const colorModeResult = useColorMode();
9578  const theme2 = useTheme();
9579  return { ...colorModeResult, theme: theme2 };
9580}
9581var cx = (...classNames2) => classNames2.filter(Boolean).join(" ");
9582function isObject(value) {
9583  const type = typeof value;
9584  return value != null && (type === "object" || type === "function") && !Array.isArray(value);
9585}
9586function runIfFn$2(valueOrFn, ...args) {
9587  return isFunction$3(valueOrFn) ? valueOrFn(...args) : valueOrFn;
9588}
9589var isFunction$3 = (value) => typeof value === "function";
9590var dataAttr = (condition) => condition ? "" : void 0;
9591var ariaAttr = (condition) => condition ? true : void 0;
9592function callAllHandlers(...fns) {
9593  return function func(event) {
9594    fns.some((fn) => {
9595      fn == null ? void 0 : fn(event);
9596      return event == null ? void 0 : event.defaultPrevented;
9597    });
9598  };
9599}
9600var lodash_mergewithExports = {};
9601var lodash_mergewith = {
9602  get exports() {
9603    return lodash_mergewithExports;
9604  },
9605  set exports(v2) {
9606    lodash_mergewithExports = v2;
9607  }
9608};
9609(function(module, exports) {
9610  var LARGE_ARRAY_SIZE = 200;
9611  var HASH_UNDEFINED = "__lodash_hash_undefined__";
9612  var HOT_COUNT = 800, HOT_SPAN = 16;
9613  var MAX_SAFE_INTEGER = 9007199254740991;
9614  var argsTag = "[object Arguments]", arrayTag = "[object Array]", asyncTag = "[object AsyncFunction]", boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", mapTag = "[object Map]", numberTag = "[object Number]", nullTag = "[object Null]", objectTag = "[object Object]", proxyTag = "[object Proxy]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", undefinedTag = "[object Undefined]", weakMapTag = "[object WeakMap]";
9615  var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]";
9616  var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
9617  var reIsHostCtor = /^\[object .+?Constructor\]$/;
9618  var reIsUint = /^(?:0|[1-9]\d*)$/;
9619  var typedArrayTags = {};
9620  typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
9621  typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;
vendor: 19,850 bytes, lines 9622-10207
9622  var freeGlobal = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
9623  var freeSelf = typeof self == "object" && self && self.Object === Object && self;
9624  var root2 = freeGlobal || freeSelf || Function("return this")();
9625  var freeExports = exports && !exports.nodeType && exports;
9626  var freeModule = freeExports && true && module && !module.nodeType && module;
9627  var moduleExports = freeModule && freeModule.exports === freeExports;
9628  var freeProcess = moduleExports && freeGlobal.process;
9629  var nodeUtil = function() {
9630    try {
9631      var types2 = freeModule && freeModule.require && freeModule.require("util").types;
9632      if (types2) {
9633        return types2;
9634      }
9635      return freeProcess && freeProcess.binding && freeProcess.binding("util");
9636    } catch (e2) {
9637    }
9638  }();
9639  var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
9640  function apply(func, thisArg, args) {
9641    switch (args.length) {
9642      case 0:
9643        return func.call(thisArg);
9644      case 1:
9645        return func.call(thisArg, args[0]);
9646      case 2:
9647        return func.call(thisArg, args[0], args[1]);
9648      case 3:
9649        return func.call(thisArg, args[0], args[1], args[2]);
9650    }
9651    return func.apply(thisArg, args);
9652  }
9653  function baseTimes(n2, iteratee) {
9654    var index = -1, result = Array(n2);
9655    while (++index < n2) {
9656      result[index] = iteratee(index);
9657    }
9658    return result;
9659  }
9660  function baseUnary(func) {
9661    return function(value) {
9662      return func(value);
9663    };
9664  }
9665  function getValue(object, key) {
9666    return object == null ? void 0 : object[key];
9667  }
9668  function overArg(func, transform2) {
9669    return function(arg) {
9670      return func(transform2(arg));
9671    };
9672  }
9673  var arrayProto = Array.prototype, funcProto = Function.prototype, objectProto = Object.prototype;
9674  var coreJsData = root2["__core-js_shared__"];
9675  var funcToString = funcProto.toString;
9676  var hasOwnProperty2 = objectProto.hasOwnProperty;
9677  var maskSrcKey = function() {
9678    var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
9679    return uid ? "Symbol(src)_1." + uid : "";
9680  }();
9681  var nativeObjectToString = objectProto.toString;
9682  var objectCtorString = funcToString.call(Object);
9683  var reIsNative = RegExp(
9684    "^" + funcToString.call(hasOwnProperty2).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
9685  );
9686  var Buffer = moduleExports ? root2.Buffer : void 0, Symbol2 = root2.Symbol, Uint8Array2 = root2.Uint8Array, allocUnsafe = Buffer ? Buffer.allocUnsafe : void 0, getPrototype = overArg(Object.getPrototypeOf, Object), objectCreate = Object.create, propertyIsEnumerable = objectProto.propertyIsEnumerable, splice = arrayProto.splice, symToStringTag = Symbol2 ? Symbol2.toStringTag : void 0;
9687  var defineProperty = function() {
9688    try {
9689      var func = getNative(Object, "defineProperty");
9690      func({}, "", {});
9691      return func;
9692    } catch (e2) {
9693    }
9694  }();
9695  var nativeIsBuffer = Buffer ? Buffer.isBuffer : void 0, nativeMax = Math.max, nativeNow = Date.now;
9696  var Map2 = getNative(root2, "Map"), nativeCreate = getNative(Object, "create");
9697  var baseCreate = function() {
9698    function object() {
9699    }
9700    return function(proto) {
9701      if (!isObject2(proto)) {
9702        return {};
9703      }
9704      if (objectCreate) {
9705        return objectCreate(proto);
9706      }
9707      object.prototype = proto;
9708      var result = new object();
9709      object.prototype = void 0;
9710      return result;
9711    };
9712  }();
9713  function Hash(entries) {
9714    var index = -1, length2 = entries == null ? 0 : entries.length;
9715    this.clear();
9716    while (++index < length2) {
9717      var entry = entries[index];
9718      this.set(entry[0], entry[1]);
9719    }
9720  }
9721  function hashClear() {
9722    this.__data__ = nativeCreate ? nativeCreate(null) : {};
9723    this.size = 0;
9724  }
9725  function hashDelete(key) {
9726    var result = this.has(key) && delete this.__data__[key];
9727    this.size -= result ? 1 : 0;
9728    return result;
9729  }
9730  function hashGet(key) {
9731    var data = this.__data__;
9732    if (nativeCreate) {
9733      var result = data[key];
9734      return result === HASH_UNDEFINED ? void 0 : result;
9735    }
9736    return hasOwnProperty2.call(data, key) ? data[key] : void 0;
9737  }
9738  function hashHas(key) {
9739    var data = this.__data__;
9740    return nativeCreate ? data[key] !== void 0 : hasOwnProperty2.call(data, key);
9741  }
9742  function hashSet(key, value) {
9743    var data = this.__data__;
9744    this.size += this.has(key) ? 0 : 1;
9745    data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value;
9746    return this;
9747  }
9748  Hash.prototype.clear = hashClear;
9749  Hash.prototype["delete"] = hashDelete;
9750  Hash.prototype.get = hashGet;
9751  Hash.prototype.has = hashHas;
9752  Hash.prototype.set = hashSet;
9753  function ListCache(entries) {
9754    var index = -1, length2 = entries == null ? 0 : entries.length;
9755    this.clear();
9756    while (++index < length2) {
9757      var entry = entries[index];
9758      this.set(entry[0], entry[1]);
9759    }
9760  }
9761  function listCacheClear() {
9762    this.__data__ = [];
9763    this.size = 0;
9764  }
9765  function listCacheDelete(key) {
9766    var data = this.__data__, index = assocIndexOf(data, key);
9767    if (index < 0) {
9768      return false;
9769    }
9770    var lastIndex = data.length - 1;
9771    if (index == lastIndex) {
9772      data.pop();
9773    } else {
9774      splice.call(data, index, 1);
9775    }
9776    --this.size;
9777    return true;
9778  }
9779  function listCacheGet(key) {
9780    var data = this.__data__, index = assocIndexOf(data, key);
9781    return index < 0 ? void 0 : data[index][1];
9782  }
9783  function listCacheHas(key) {
9784    return assocIndexOf(this.__data__, key) > -1;
9785  }
9786  function listCacheSet(key, value) {
9787    var data = this.__data__, index = assocIndexOf(data, key);
9788    if (index < 0) {
9789      ++this.size;
9790      data.push([key, value]);
9791    } else {
9792      data[index][1] = value;
9793    }
9794    return this;
9795  }
9796  ListCache.prototype.clear = listCacheClear;
9797  ListCache.prototype["delete"] = listCacheDelete;
9798  ListCache.prototype.get = listCacheGet;
9799  ListCache.prototype.has = listCacheHas;
9800  ListCache.prototype.set = listCacheSet;
9801  function MapCache(entries) {
9802    var index = -1, length2 = entries == null ? 0 : entries.length;
9803    this.clear();
9804    while (++index < length2) {
9805      var entry = entries[index];
9806      this.set(entry[0], entry[1]);
9807    }
9808  }
9809  function mapCacheClear() {
9810    this.size = 0;
9811    this.__data__ = {
9812      "hash": new Hash(),
9813      "map": new (Map2 || ListCache)(),
9814      "string": new Hash()
9815    };
9816  }
9817  function mapCacheDelete(key) {
9818    var result = getMapData(this, key)["delete"](key);
9819    this.size -= result ? 1 : 0;
9820    return result;
9821  }
9822  function mapCacheGet(key) {
9823    return getMapData(this, key).get(key);
9824  }
9825  function mapCacheHas(key) {
9826    return getMapData(this, key).has(key);
9827  }
9828  function mapCacheSet(key, value) {
9829    var data = getMapData(this, key), size2 = data.size;
9830    data.set(key, value);
9831    this.size += data.size == size2 ? 0 : 1;
9832    return this;
9833  }
9834  MapCache.prototype.clear = mapCacheClear;
9835  MapCache.prototype["delete"] = mapCacheDelete;
9836  MapCache.prototype.get = mapCacheGet;
9837  MapCache.prototype.has = mapCacheHas;
9838  MapCache.prototype.set = mapCacheSet;
9839  function Stack(entries) {
9840    var data = this.__data__ = new ListCache(entries);
9841    this.size = data.size;
9842  }
9843  function stackClear() {
9844    this.__data__ = new ListCache();
9845    this.size = 0;
9846  }
9847  function stackDelete(key) {
9848    var data = this.__data__, result = data["delete"](key);
9849    this.size = data.size;
9850    return result;
9851  }
9852  function stackGet(key) {
9853    return this.__data__.get(key);
9854  }
9855  function stackHas(key) {
9856    return this.__data__.has(key);
9857  }
9858  function stackSet(key, value) {
9859    var data = this.__data__;
9860    if (data instanceof ListCache) {
9861      var pairs = data.__data__;
9862      if (!Map2 || pairs.length < LARGE_ARRAY_SIZE - 1) {
9863        pairs.push([key, value]);
9864        this.size = ++data.size;
9865        return this;
9866      }
9867      data = this.__data__ = new MapCache(pairs);
9868    }
9869    data.set(key, value);
9870    this.size = data.size;
9871    return this;
9872  }
9873  Stack.prototype.clear = stackClear;
9874  Stack.prototype["delete"] = stackDelete;
9875  Stack.prototype.get = stackGet;
9876  Stack.prototype.has = stackHas;
9877  Stack.prototype.set = stackSet;
9878  function arrayLikeKeys(value, inherited) {
9879    var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length2 = result.length;
9880    for (var key in value) {
9881      if ((inherited || hasOwnProperty2.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
9882      (key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
9883      isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
9884      isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
9885      isIndex(key, length2)))) {
9886        result.push(key);
9887      }
9888    }
9889    return result;
9890  }
9891  function assignMergeValue(object, key, value) {
9892    if (value !== void 0 && !eq(object[key], value) || value === void 0 && !(key in object)) {
9893      baseAssignValue(object, key, value);
9894    }
9895  }
9896  function assignValue(object, key, value) {
9897    var objValue = object[key];
9898    if (!(hasOwnProperty2.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) {
9899      baseAssignValue(object, key, value);
9900    }
9901  }
9902  function assocIndexOf(array, key) {
9903    var length2 = array.length;
9904    while (length2--) {
9905      if (eq(array[length2][0], key)) {
9906        return length2;
9907      }
9908    }
9909    return -1;
9910  }
9911  function baseAssignValue(object, key, value) {
9912    if (key == "__proto__" && defineProperty) {
9913      defineProperty(object, key, {
9914        "configurable": true,
9915        "enumerable": true,
9916        "value": value,
9917        "writable": true
9918      });
9919    } else {
9920      object[key] = value;
9921    }
9922  }
9923  var baseFor = createBaseFor();
9924  function baseGetTag(value) {
9925    if (value == null) {
9926      return value === void 0 ? undefinedTag : nullTag;
9927    }
9928    return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
9929  }
9930  function baseIsArguments(value) {
9931    return isObjectLike(value) && baseGetTag(value) == argsTag;
9932  }
9933  function baseIsNative(value) {
9934    if (!isObject2(value) || isMasked(value)) {
9935      return false;
9936    }
9937    var pattern = isFunction2(value) ? reIsNative : reIsHostCtor;
9938    return pattern.test(toSource(value));
9939  }
9940  function baseIsTypedArray(value) {
9941    return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
9942  }
9943  function baseKeysIn(object) {
9944    if (!isObject2(object)) {
9945      return nativeKeysIn(object);
9946    }
9947    var isProto = isPrototype(object), result = [];
9948    for (var key in object) {
9949      if (!(key == "constructor" && (isProto || !hasOwnProperty2.call(object, key)))) {
9950        result.push(key);
9951      }
9952    }
9953    return result;
9954  }
9955  function baseMerge(object, source, srcIndex, customizer, stack) {
9956    if (object === source) {
9957      return;
9958    }
9959    baseFor(source, function(srcValue, key) {
9960      stack || (stack = new Stack());
9961      if (isObject2(srcValue)) {
9962        baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
9963      } else {
9964        var newValue = customizer ? customizer(safeGet(object, key), srcValue, key + "", object, source, stack) : void 0;
9965        if (newValue === void 0) {
9966          newValue = srcValue;
9967        }
9968        assignMergeValue(object, key, newValue);
9969      }
9970    }, keysIn);
9971  }
9972  function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
9973    var objValue = safeGet(object, key), srcValue = safeGet(source, key), stacked = stack.get(srcValue);
9974    if (stacked) {
9975      assignMergeValue(object, key, stacked);
9976      return;
9977    }
9978    var newValue = customizer ? customizer(objValue, srcValue, key + "", object, source, stack) : void 0;
9979    var isCommon = newValue === void 0;
9980    if (isCommon) {
9981      var isArr = isArray(srcValue), isBuff = !isArr && isBuffer(srcValue), isTyped = !isArr && !isBuff && isTypedArray(srcValue);
9982      newValue = srcValue;
9983      if (isArr || isBuff || isTyped) {
9984        if (isArray(objValue)) {
9985          newValue = objValue;
9986        } else if (isArrayLikeObject(objValue)) {
9987          newValue = copyArray(objValue);
9988        } else if (isBuff) {
9989          isCommon = false;
9990          newValue = cloneBuffer(srcValue, true);
9991        } else if (isTyped) {
9992          isCommon = false;
9993          newValue = cloneTypedArray(srcValue, true);
9994        } else {
9995          newValue = [];
9996        }
9997      } else if (isPlainObject(srcValue) || isArguments(srcValue)) {
9998        newValue = objValue;
9999        if (isArguments(objValue)) {
10000          newValue = toPlainObject(objValue);
10001        } else if (!isObject2(objValue) || isFunction2(objValue)) {
10002          newValue = initCloneObject(srcValue);
10003        }
10004      } else {
10005        isCommon = false;
10006      }
10007    }
10008    if (isCommon) {
10009      stack.set(srcValue, newValue);
10010      mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
10011      stack["delete"](srcValue);
10012    }
10013    assignMergeValue(object, key, newValue);
10014  }
10015  function baseRest(func, start) {
10016    return setToString(overRest(func, start, identity), func + "");
10017  }
10018  var baseSetToString = !defineProperty ? identity : function(func, string) {
10019    return defineProperty(func, "toString", {
10020      "configurable": true,
10021      "enumerable": false,
10022      "value": constant(string),
10023      "writable": true
10024    });
10025  };
10026  function cloneBuffer(buffer, isDeep) {
10027    if (isDeep) {
10028      return buffer.slice();
10029    }
10030    var length2 = buffer.length, result = allocUnsafe ? allocUnsafe(length2) : new buffer.constructor(length2);
10031    buffer.copy(result);
10032    return result;
10033  }
10034  function cloneArrayBuffer(arrayBuffer) {
10035    var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
10036    new Uint8Array2(result).set(new Uint8Array2(arrayBuffer));
10037    return result;
10038  }
10039  function cloneTypedArray(typedArray, isDeep) {
10040    var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
10041    return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
10042  }
10043  function copyArray(source, array) {
10044    var index = -1, length2 = source.length;
10045    array || (array = Array(length2));
10046    while (++index < length2) {
10047      array[index] = source[index];
10048    }
10049    return array;
10050  }
10051  function copyObject(source, props, object, customizer) {
10052    var isNew = !object;
10053    object || (object = {});
10054    var index = -1, length2 = props.length;
10055    while (++index < length2) {
10056      var key = props[index];
10057      var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0;
10058      if (newValue === void 0) {
10059        newValue = source[key];
10060      }
10061      if (isNew) {
10062        baseAssignValue(object, key, newValue);
10063      } else {
10064        assignValue(object, key, newValue);
10065      }
10066    }
10067    return object;
10068  }
10069  function createAssigner(assigner) {
10070    return baseRest(function(object, sources) {
10071      var index = -1, length2 = sources.length, customizer = length2 > 1 ? sources[length2 - 1] : void 0, guard2 = length2 > 2 ? sources[2] : void 0;
10072      customizer = assigner.length > 3 && typeof customizer == "function" ? (length2--, customizer) : void 0;
10073      if (guard2 && isIterateeCall(sources[0], sources[1], guard2)) {
10074        customizer = length2 < 3 ? void 0 : customizer;
10075        length2 = 1;
10076      }
10077      object = Object(object);
10078      while (++index < length2) {
10079        var source = sources[index];
10080        if (source) {
10081          assigner(object, source, index, customizer);
10082        }
10083      }
10084      return object;
10085    });
10086  }
10087  function createBaseFor(fromRight) {
10088    return function(object, iteratee, keysFunc) {
10089      var index = -1, iterable = Object(object), props = keysFunc(object), length2 = props.length;
10090      while (length2--) {
10091        var key = props[fromRight ? length2 : ++index];
10092        if (iteratee(iterable[key], key, iterable) === false) {
10093          break;
10094        }
10095      }
10096      return object;
10097    };
10098  }
10099  function getMapData(map, key) {
10100    var data = map.__data__;
10101    return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
10102  }
10103  function getNative(object, key) {
10104    var value = getValue(object, key);
10105    return baseIsNative(value) ? value : void 0;
10106  }
10107  function getRawTag(value) {
10108    var isOwn = hasOwnProperty2.call(value, symToStringTag), tag = value[symToStringTag];
10109    try {
10110      value[symToStringTag] = void 0;
10111      var unmasked = true;
10112    } catch (e2) {
10113    }
10114    var result = nativeObjectToString.call(value);
10115    if (unmasked) {
10116      if (isOwn) {
10117        value[symToStringTag] = tag;
10118      } else {
10119        delete value[symToStringTag];
10120      }
10121    }
10122    return result;
10123  }
10124  function initCloneObject(object) {
10125    return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {};
10126  }
10127  function isIndex(value, length2) {
10128    var type = typeof value;
10129    length2 = length2 == null ? MAX_SAFE_INTEGER : length2;
10130    return !!length2 && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length2);
10131  }
10132  function isIterateeCall(value, index, object) {
10133    if (!isObject2(object)) {
10134      return false;
10135    }
10136    var type = typeof index;
10137    if (type == "number" ? isArrayLike(object) && isIndex(index, object.length) : type == "string" && index in object) {
10138      return eq(object[index], value);
10139    }
10140    return false;
10141  }
10142  function isKeyable(value) {
10143    var type = typeof value;
10144    return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
10145  }
10146  function isMasked(func) {
10147    return !!maskSrcKey && maskSrcKey in func;
10148  }
10149  function isPrototype(value) {
10150    var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto;
10151    return value === proto;
10152  }
10153  function nativeKeysIn(object) {
10154    var result = [];
10155    if (object != null) {
10156      for (var key in Object(object)) {
10157        result.push(key);
10158      }
10159    }
10160    return result;
10161  }
10162  function objectToString(value) {
10163    return nativeObjectToString.call(value);
10164  }
10165  function overRest(func, start, transform2) {
10166    start = nativeMax(start === void 0 ? func.length - 1 : start, 0);
10167    return function() {
10168      var args = arguments, index = -1, length2 = nativeMax(args.length - start, 0), array = Array(length2);
10169      while (++index < length2) {
10170        array[index] = args[start + index];
10171      }
10172      index = -1;
10173      var otherArgs = Array(start + 1);
10174      while (++index < start) {
10175        otherArgs[index] = args[index];
10176      }
10177      otherArgs[start] = transform2(array);
10178      return apply(func, this, otherArgs);
10179    };
10180  }
10181  function safeGet(object, key) {
10182    if (key === "constructor" && typeof object[key] === "function") {
10183      return;
10184    }
10185    if (key == "__proto__") {
10186      return;
10187    }
10188    return object[key];
10189  }
10190  var setToString = shortOut(baseSetToString);
10191  function shortOut(func) {
10192    var count = 0, lastCalled = 0;
10193    return function() {
10194      var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled);
10195      lastCalled = stamp;
10196      if (remaining > 0) {
10197        if (++count >= HOT_COUNT) {
10198          return arguments[0];
10199        }
10200      } else {
10201        count = 0;
10202      }
10203      return func.apply(void 0, arguments);
10204    };
10205  }
10206  function toSource(func) {
10207    if (func != null) {
10208      try {
10209        return funcToString.call(func);
10210      } catch (e2) {
10211      }
10212      try {
10213        return func + "";
10214      } catch (e2) {
10215      }
10216    }
10217    return "";
10218  }
10219  function eq(value, other) {
10220    return value === other || value !== value && other !== other;
10221  }
10222  var isArguments = baseIsArguments(function() {
10223    return arguments;
10224  }()) ? baseIsArguments : function(value) {
10225    return isObjectLike(value) && hasOwnProperty2.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
10226  };
10227  var isArray = Array.isArray;
10228  function isArrayLike(value) {
10229    return value != null && isLength(value.length) && !isFunction2(value);
10230  }
10231  function isArrayLikeObject(value) {
10232    return isObjectLike(value) && isArrayLike(value);
10233  }
10234  var isBuffer = nativeIsBuffer || stubFalse;
10235  function isFunction2(value) {
10236    if (!isObject2(value)) {
10237      return false;
10238    }
10239    var tag = baseGetTag(value);
10240    return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
10241  }
10242  function isLength(value) {
10243    return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
10244  }
10245  function isObject2(value) {
10246    var type = typeof value;
10247    return value != null && (type == "object" || type == "function");
10248  }
10249  function isObjectLike(value) {
10250    return value != null && typeof value == "object";
10251  }
10252  function isPlainObject(value) {
10253    if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
10254      return false;
10255    }
10256    var proto = getPrototype(value);
10257    if (proto === null) {
10258      return true;
10259    }
10260    var Ctor = hasOwnProperty2.call(proto, "constructor") && proto.constructor;
10261    return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
10262  }
10263  var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
10264  function toPlainObject(value) {
10265    return copyObject(value, keysIn(value));
10266  }
10267  function keysIn(object) {
10268    return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
10269  }
10270  var mergeWith2 = createAssigner(function(object, source, srcIndex, customizer) {
10271    baseMerge(object, source, srcIndex, customizer);
10272  });
10273  function constant(value) {
10274    return function() {
10275      return value;
10276    };
10277  }
10278  function identity(value) {
10279    return value;
10280  }
10281  function stubFalse() {
10282    return false;
10283  }
10284  module.exports = mergeWith2;
10285})(lodash_mergewith, lodash_mergewithExports);
10286const mergeWith = lodash_mergewithExports;
10287var isImportant = (value) => /!(important)?$/.test(value);
10288var withoutImportant = (value) => typeof value === "string" ? value.replace(/!(important)?$/, "").trim() : value;
10289var tokenToCSSVar = (scale2, value) => (theme2) => {
10290  const valueStr = String(value);
10291  const important = isImportant(valueStr);
10292  const valueWithoutImportant = withoutImportant(valueStr);
10293  const key = scale2 ? `${scale2}.${valueWithoutImportant}` : valueWithoutImportant;
10294  let transformed = isObject(theme2.__cssMap) && key in theme2.__cssMap ? theme2.__cssMap[key].varRef : value;
10295  transformed = withoutImportant(transformed);
10296  return important ? `${transformed} !important` : transformed;
10297};
10298function createTransform(options) {
10299  const { scale: scale2, transform: transform2, compose } = options;
10300  const fn = (value, theme2) => {
10301    var _a5;
10302    const _value = tokenToCSSVar(scale2, value)(theme2);
10303    let result = (_a5 = transform2 == null ? void 0 : transform2(_value, theme2)) != null ? _a5 : _value;
10304    if (compose) {
10305      result = compose(result, theme2);
10306    }
10307    return result;
10308  };
10309  return fn;
10310}
10311var pipe$2 = (...fns) => (v2) => fns.reduce((a, b2) => b2(a), v2);
10312function toConfig(scale2, transform2) {
10313  return (property) => {
10314    const result = { property, scale: scale2 };
10315    result.transform = createTransform({
10316      scale: scale2,
10317      transform: transform2
10318    });
10319    return result;
10320  };
10321}
10322var getRtl = ({ rtl, ltr }) => (theme2) => theme2.direction === "rtl" ? rtl : ltr;
10323function logical(options) {
10324  const { property, scale: scale2, transform: transform2 } = options;
10325  return {
10326    scale: scale2,
10327    property: getRtl(property),
10328    transform: scale2 ? createTransform({
10329      scale: scale2,
10330      compose: transform2
10331    }) : transform2
10332  };
10333}
10334var transformTemplate = [
10335  "rotate(var(--chakra-rotate, 0))",
10336  "scaleX(var(--chakra-scale-x, 1))",
10337  "scaleY(var(--chakra-scale-y, 1))",
10338  "skewX(var(--chakra-skew-x, 0))",
10339  "skewY(var(--chakra-skew-y, 0))"
10340];
10341function getTransformTemplate() {
10342  return [
10343    "translateX(var(--chakra-translate-x, 0))",
10344    "translateY(var(--chakra-translate-y, 0))",
10345    ...transformTemplate
10346  ].join(" ");
10347}
10348function getTransformGpuTemplate() {
10349  return [
10350    "translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",
10351    ...transformTemplate
10352  ].join(" ");
10353}
10354var filterTemplate = {
10355  "--chakra-blur": "var(--chakra-empty,/*!*/ /*!*/)",
10356  "--chakra-brightness": "var(--chakra-empty,/*!*/ /*!*/)",
10357  "--chakra-contrast": "var(--chakra-empty,/*!*/ /*!*/)",
10358  "--chakra-grayscale": "var(--chakra-empty,/*!*/ /*!*/)",
10359  "--chakra-hue-rotate": "var(--chakra-empty,/*!*/ /*!*/)",
10360  "--chakra-invert": "var(--chakra-empty,/*!*/ /*!*/)",
10361  "--chakra-saturate": "var(--chakra-empty,/*!*/ /*!*/)",
10362  "--chakra-sepia": "var(--chakra-empty,/*!*/ /*!*/)",
10363  "--chakra-drop-shadow": "var(--chakra-empty,/*!*/ /*!*/)",
10364  filter: [
10365    "var(--chakra-blur)",
10366    "var(--chakra-brightness)",
10367    "var(--chakra-contrast)",
10368    "var(--chakra-grayscale)",
10369    "var(--chakra-hue-rotate)",
10370    "var(--chakra-invert)",
10371    "var(--chakra-saturate)",
10372    "var(--chakra-sepia)",
10373    "var(--chakra-drop-shadow)"
10374  ].join(" ")
10375};
10376var backdropFilterTemplate = {
10377  backdropFilter: [
10378    "var(--chakra-backdrop-blur)",
10379    "var(--chakra-backdrop-brightness)",
10380    "var(--chakra-backdrop-contrast)",
10381    "var(--chakra-backdrop-grayscale)",
10382    "var(--chakra-backdrop-hue-rotate)",
10383    "var(--chakra-backdrop-invert)",
10384    "var(--chakra-backdrop-opacity)",
10385    "var(--chakra-backdrop-saturate)",
10386    "var(--chakra-backdrop-sepia)"
10387  ].join(" "),
10388  "--chakra-backdrop-blur": "var(--chakra-empty,/*!*/ /*!*/)",
10389  "--chakra-backdrop-brightness": "var(--chakra-empty,/*!*/ /*!*/)",
10390  "--chakra-backdrop-contrast": "var(--chakra-empty,/*!*/ /*!*/)",
10391  "--chakra-backdrop-grayscale": "var(--chakra-empty,/*!*/ /*!*/)",
10392  "--chakra-backdrop-hue-rotate": "var(--chakra-empty,/*!*/ /*!*/)",
10393  "--chakra-backdrop-invert": "var(--chakra-empty,/*!*/ /*!*/)",
10394  "--chakra-backdrop-opacity": "var(--chakra-empty,/*!*/ /*!*/)",
10395  "--chakra-backdrop-saturate": "var(--chakra-empty,/*!*/ /*!*/)",
10396  "--chakra-backdrop-sepia": "var(--chakra-empty,/*!*/ /*!*/)"
10397};
10398function getRingTemplate(value) {
10399  return {
10400    "--chakra-ring-offset-shadow": `var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)`,
10401    "--chakra-ring-shadow": `var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)`,
10402    "--chakra-ring-width": value,
10403    boxShadow: [
10404      `var(--chakra-ring-offset-shadow)`,
10405      `var(--chakra-ring-shadow)`,
10406      `var(--chakra-shadow, 0 0 #0000)`
10407    ].join(", ")
10408  };
10409}
10410var flexDirectionTemplate = {
10411  "row-reverse": {
10412    space: "--chakra-space-x-reverse",
10413    divide: "--chakra-divide-x-reverse"
10414  },
10415  "column-reverse": {
10416    space: "--chakra-space-y-reverse",
10417    divide: "--chakra-divide-y-reverse"
10418  }
10419};
10420var owlSelector = "& > :not(style) ~ :not(style)";
10421var spaceXTemplate = {
10422  [owlSelector]: {
10423    marginInlineStart: "calc(var(--chakra-space-x) * calc(1 - var(--chakra-space-x-reverse)))",
10424    marginInlineEnd: "calc(var(--chakra-space-x) * var(--chakra-space-x-reverse))"
10425  }
10426};
10427var spaceYTemplate = {
10428  [owlSelector]: {
10429    marginTop: "calc(var(--chakra-space-y) * calc(1 - var(--chakra-space-y-reverse)))",
10430    marginBottom: "calc(var(--chakra-space-y) * var(--chakra-space-y-reverse))"
10431  }
10432};
10433var directionMap = {
10434  "to-t": "to top",
10435  "to-tr": "to top right",
10436  "to-r": "to right",
10437  "to-br": "to bottom right",
10438  "to-b": "to bottom",
10439  "to-bl": "to bottom left",
10440  "to-l": "to left",
10441  "to-tl": "to top left"
10442};
10443var valueSet = new Set(Object.values(directionMap));
10444var globalSet = /* @__PURE__ */ new Set([
10445  "none",
10446  "-moz-initial",
10447  "inherit",
10448  "initial",
10449  "revert",
10450  "unset"
10451]);
10452var trimSpace = (str) => str.trim();
10453function parseGradient(value, theme2) {
10454  var _a5, _b3;
10455  if (value == null || globalSet.has(value))
10456    return value;
10457  const regex = /(?<type>^[a-z-A-Z]+)\((?<values>(.*))\)/g;
10458  const { type, values } = (_b3 = (_a5 = regex.exec(value)) == null ? void 0 : _a5.groups) != null ? _b3 : {};
10459  if (!type || !values)
10460    return value;
10461  const _type = type.includes("-gradient") ? type : `${type}-gradient`;
10462  const [maybeDirection, ...stops] = values.split(",").map(trimSpace).filter(
10462Boolean);
10463  if ((stops == null ? void 0 : stops.length) === 0)
10464    return value;
10465  const direction2 = maybeDirection in directionMap ? directionMap[maybeDirection] : maybeDirection;
10466  stops.unshift(direction2);
10467  const _values = stops.map((stop) => {
10468    if (valueSet.has(stop))
10469      return stop;
10470    const firstStop = stop.indexOf(" ");
10471    const [_color, _stop] = firstStop !== -1 ? [stop.substr(0, firstStop), stop.substr(firstStop + 1)] : [stop];
10472    const _stopOrFunc = isCSSFunction(_stop) ? _stop : _stop && _stop.split(" ");
10473    const key = `colors.${_color}`;
10474    const color2 = key in theme2.__cssMap ? theme2.__cssMap[key].varRef : _color;
10475    return _stopOrFunc ? [
10476      color2,
10477      ...Array.isArray(_stopOrFunc) ? _stopOrFunc : [_stopOrFunc]
10478    ].join(" ") : color2;
10479  });
10480  return `${_type}(${_values.join(", ")})`;
10481}
10482var isCSSFunction = (value) => {
10483  return typeof value === "string" && value.includes("(") && value.includes(")");
10484};
10485var gradientTransform = (value, theme2) => parseGradient(value, theme2 != null ? theme2 : {});
10486function isCssVar(value) {
10487  return /^var\(--.+\)$/.test(value);
10488}
10489var analyzeCSSValue = (value) => {
10490  const num = parseFloat(value.toString());
10491  const unit = value.toString().replace(String(num), "");
10492  return { unitless: !unit, value: num, unit };
10493};
10494var wrap = (str) => (value) => `${str}(${value})`;
10495var transformFunctions = {
10496  filter(value) {
10497    return value !== "auto" ? value : filterTemplate;
10498  },
10499  backdropFilter(value) {
10500    return value !== "auto" ? value : backdropFilterTemplate;
10501  },
10502  ring(value) {
10503    return getRingTemplate(transformFunctions.px(value));
10504  },
10505  bgClip(value) {
10506    return value === "text" ? { color: "transparent", backgroundClip: "text" } : { backgroundClip: value };
10507  },
10508  transform(value) {
10509    if (value === "auto")
10510      return getTransformTemplate();
10511    if (value === "auto-gpu")
10512      return getTransformGpuTemplate();
10513    return value;
10514  },
10515  vh(value) {
10516    return value === "$100vh" ? "var(--chakra-vh)" : value;
10517  },
10518  px(value) {
10519    if (value == null)
10520      return value;
10521    const { unitless } = analyzeCSSValue(value);
10522    return unitless || typeof value === "number" ? `${value}px` : value;
10523  },
10524  fraction(value) {
10525    return !(typeof value === "number") || value > 1 ? value : `${value * 100}%`;
10526  },
10527  float(value, theme2) {
10528    const map = { left: "right", right: "left" };
10529    return theme2.direction === "rtl" ? map[value] : value;
10530  },
10531  degree(value) {
10532    if (isCssVar(value) || value == null)
10533      return value;
10534    const unitless = typeof value === "string" && !value.endsWith("deg");
10535    return typeof value === "number" || unitless ? `${value}deg` : value;
10536  },
10537  gradient: gradientTransform,
10538  blur: wrap("blur"),
10539  opacity: wrap("opacity"),
10540  brightness: wrap("brightness"),
10541  contrast: wrap("contrast"),
10542  dropShadow: wrap("drop-shadow"),
10543  grayscale: wrap("grayscale"),
10544  hueRotate: wrap("hue-rotate"),
10545  invert: wrap("invert"),
10546  saturate: wrap("saturate"),
10547  sepia: wrap("sepia"),
10548  bgImage(value) {
10549    if (value == null)
10550      return value;
10551    const prevent = isCSSFunction(value) || globalSet.has(value);
10552    return !prevent ? `url(${value})` : value;
10553  },
10554  outline(value) {
10555    const isNoneOrZero = String(value) === "0" || String(value) === "none";
10556    return value !== null && isNoneOrZero ? { outline: "2px solid transparent", outlineOffset: "2px" } : { outline: value };
10557  },
10558  flexDirection(value) {
10559    var _a5;
10560    const { space: space2, divide: divide2 } = (_a5 = flexDirectionTemplate[value]) != null ? _a5 : {};
10561    const result = { flexDirection: value };
10562    if (space2)
10563      result[space2] = 1;
10564    if (divide2)
10565      result[divide2] = 1;
10566    return result;
10567  }
10568};
10569var t = {
10570  borderWidths: toConfig("borderWidths"),
10571  borderStyles: toConfig("borderStyles"),
10572  colors: toConfig("colors"),
10573  borders: toConfig("borders"),
10574  radii: toConfig("radii", transformFunctions.px),
10575  space: toConfig("space", pipe$2(transformFunctions.vh, transformFunctions.px)),
10576  spaceT: toConfig("space", pipe$2(transformFunctions.vh, transformFunctions.px)),
10577  degreeT(property) {
10578    return { property, transform: transformFunctions.degree };
10579  },
10580  prop(property, scale2, transform2) {
10581    return {
10582      property,
10583      scale: scale2,
10584      ...scale2 && {
10585        transform: createTransform({ scale: scale2, transform: transform2 })
10586      }
10587    };
10588  },
10589  propT(property, transform2) {
10590    return { property, transform: transform2 };
10591  },
10592  sizes: toConfig("sizes", pipe$2(transformFunctions.vh, transformFunctions.px)),
10593  sizesT: toConfig("sizes", pipe$2(transformFunctions.vh, transformFunctions.fraction)),
10594  shadows: toConfig("shadows"),
10595  logical,
10596  blur: toConfig("blur", transformFunctions.blur)
10597};
10598var background = {
10599  background: t.colors("background"),
10600  backgroundColor: t.colors("backgroundColor"),
10601  backgroundImage: t.propT("backgroundImage", transformFunctions.bgImage),
10602  backgroundSize: true,
10603  backgroundPosition: true,
10604  backgroundRepeat: true,
10605  backgroundAttachment: true,
10606  backgroundClip: { transform: transformFunctions.bgClip },
10607  bgSize: t.prop("backgroundSize"),
10608  bgPosition: t.prop("backgroundPosition"),
10609  bg: t.colors("background"),
10610  bgColor: t.colors("backgroundColor"),
10611  bgPos: t.prop("backgroundPosition"),
10612  bgRepeat: t.prop("backgroundRepeat"),
10613  bgAttachment: t.prop("backgroundAttachment"),
10614  bgGradient: t.propT("backgroundImage", transformFunctions.gradient),
10615  bgClip: { transform: transformFunctions.bgClip }
10616};
10617Object.assign(background, {
10618  bgImage: background.backgroundImage,
10619  bgImg: background.backgroundImage
10620});
10621var border = {
10622  border: t.borders("border"),
10623  borderWidth: t.borderWidths("borderWidth"),
10624  borderStyle: t.borderStyles("borderStyle"),
10625  borderColor: t.colors("borderColor"),
10626  borderRadius: t.radii("borderRadius"),
10627  borderTop: t.borders("borderTop"),
10628  borderBlockStart: t.borders("borderBlockStart"),
10629  borderTopLeftRadius: t.radii("borderTopLeftRadius"),
10630  borderStartStartRadius: t.logical({
10631    scale: "radii",
10632    property: {
10633      ltr: "borderTopLeftRadius",
10634      rtl: "borderTopRightRadius"
10635    }
10636  }),
10637  borderEndStartRadius: t.logical({
10638    scale: "radii",
10639    property: {
10640      ltr: "borderBottomLeftRadius",
10641      rtl: "borderBottomRightRadius"
10642    }
10643  }),
10644  borderTopRightRadius: t.radii("borderTopRightRadius"),
10645  borderStartEndRadius: t.logical({
10646    scale: "radii",
10647    property: {
10648      ltr: "borderTopRightRadius",
10649      rtl: "borderTopLeftRadius"
10650    }
10651  }),
10652  borderEndEndRadius: t.logical({
10653    scale: "radii",
10654    property: {
10655      ltr: "borderBottomRightRadius",
10656      rtl: "borderBottomLeftRadius"
10657    }
10658  }),
10659  borderRight: t.borders("borderRight"),
10660  borderInlineEnd: t.borders("borderInlineEnd"),
10661  borderBottom: t.borders("borderBottom"),
10662  borderBlockEnd: t.borders("borderBlockEnd"),
10663  borderBottomLeftRadius: t.radii("borderBottomLeftRadius"),
10664  borderBottomRightRadius: t.radii("borderBottomRightRadius"),
10665  borderLeft: t.borders("borderLeft"),
10666  borderInlineStart: {
10667    property: "borderInlineStart",
10668    scale: "borders"
10669  },
10670  borderInlineStartRadius: t.logical({
10671    scale: "radii",
10672    property: {
10673      ltr: ["borderTopLeftRadius", "borderBottomLeftRadius"],
10674      rtl: ["borderTopRightRadius", "borderBottomRightRadius"]
10675    }
10676  }),
10677  borderInlineEndRadius: t.logical({
10678    scale: "radii",
10679    property: {
10680      ltr: ["borderTopRightRadius", "borderBottomRightRadius"],
10681      rtl: ["borderTopLeftRadius", "borderBottomLeftRadius"]
10682    }
10683  }),
10684  borderX: t.borders(["borderLeft", "borderRight"]),
10685  borderInline: t.borders("borderInline"),
10686  borderY: t.borders(["borderTop", "borderBottom"]),
10687  borderBlock: t.borders("borderBlock"),
10688  borderTopWidth: t.borderWidths("borderTopWidth"),
10689  borderBlockStartWidth: t.borderWidths("borderBlockStartWidth"),
10690  borderTopColor: t.colors("borderTopColor"),
10691  borderBlockStartColor: t.colors("borderBlockStartColor"),
10692  borderTopStyle: t.borderStyles("borderTopStyle"),
10693  borderBlockStartStyle: t.borderStyles("borderBlockStartStyle"),
10694  borderBottomWidth: t.borderWidths("borderBottomWidth"),
10695  borderBlockEndWidth: t.borderWidths("borderBlockEndWidth"),
10696  borderBottomColor: t.colors("borderBottomColor"),
10697  borderBlockEndColor: t.colors("borderBlockEndColor"),
10698  borderBottomStyle: t.borderStyles("borderBottomStyle"),
10699  borderBlockEndStyle: t.borderStyles("borderBlockEndStyle"),
10700  borderLeftWidth: t.borderWidths("borderLeftWidth"),
10701  borderInlineStartWidth: t.borderWidths("borderInlineStartWidth"),
10702  borderLeftColor: t.colors("borderLeftColor"),
10703  borderInlineStartColor: t.colors("borderInlineStartColor"),
10704  borderLeftStyle: t.borderStyles("borderLeftStyle"),
10705  borderInlineStartStyle: t.borderStyles("borderInlineStartStyle"),
10706  borderRightWidth: t.borderWidths("borderRightWidth"),
10707  borderInlineEndWidth: t.borderWidths("borderInlineEndWidth"),
10708  borderRightColor: t.colors("borderRightColor"),
10709  borderInlineEndColor: t.colors("borderInlineEndColor"),
10710  borderRightStyle: t.borderStyles("borderRightStyle"),
10711  borderInlineEndStyle: t.borderStyles("borderInlineEndStyle"),
10712  borderTopRadius: t.radii(["borderTopLeftRadius", "borderTopRightRadius"]),
10713  borderBottomRadius: t.radii([
10714    "borderBottomLeftRadius",
10715    "borderBottomRightRadius"
10716  ]),
10717  borderLeftRadius: t.radii(["borderTopLeftRadius", "borderBottomLeftRadius"]),
10718  borderRightRadius: t.radii([
10719    "borderTopRightRadius",
10720    "borderBottomRightRadius"
10721  ])
10722};
10723Object.assign(border, {
10724  rounded: border.borderRadius,
10725  roundedTop: border.borderTopRadius,
10726  roundedTopLeft: border.borderTopLeftRadius,
10727  roundedTopRight: border.borderTopRightRadius,
10728  roundedTopStart: border.borderStartStartRadius,
10729  roundedTopEnd: border.borderStartEndRadius,
10730  roundedBottom: border.borderBottomRadius,
10731  roundedBottomLeft: border.borderBottomLeftRadius,
10732  roundedBottomRight: border.borderBottomRightRadius,
10733  roundedBottomStart: border.borderEndStartRadius,
10734  roundedBottomEnd: border.borderEndEndRadius,
10735  roundedLeft: border.borderLeftRadius,
10736  roundedRight: border.borderRightRadius,
10737  roundedStart: border.borderInlineStartRadius,
10738  roundedEnd: border.borderInlineEndRadius,
10739  borderStart: border.borderInlineStart,
10740  borderEnd: border.borderInlineEnd,
10741  borderTopStartRadius: border.borderStartStartRadius,
10742  borderTopEndRadius: border.borderStartEndRadius,
10743  borderBottomStartRadius: border.borderEndStartRadius,
10744  borderBottomEndRadius: border.borderEndEndRadius,
10745  borderStartRadius: border.borderInlineStartRadius,
10746  borderEndRadius: border.borderInlineEndRadius,
10747  borderStartWidth: border.borderInlineStartWidth,
10748  borderEndWidth: border.borderInlineEndWidth,
10749  borderStartColor: border.borderInlineStartColor,
10750  borderEndColor: border.borderInlineEndColor,
10751  borderStartStyle: border.borderInlineStartStyle,
10752  borderEndStyle: border.borderInlineEndStyle
10753});
10754var color$1 = {
10755  color: t.colors("color"),
10756  textColor: t.colors("color"),
10757  fill: t.colors("fill"),
10758  stroke: t.colors("stroke")
10759};
10760var effect = {
10761  boxShadow: t.shadows("boxShadow"),
10762  mixBlendMode: true,
10763  blendMode: t.prop("mixBlendMode"),
10764  backgroundBlendMode: true,
10765  bgBlendMode: t.prop("backgroundBlendMode"),
10766  opacity: true
10767};
10768Object.assign(effect, {
10769  shadow: effect.boxShadow
10770});
10771var filter$1 = {
10772  filter: { transform: transformFunctions.filter },
10773  blur: t.blur("--chakra-blur"),
10774  brightness: t.propT("--chakra-brightness", transformFunctions.brightness),
10775  contrast: t.propT("--chakra-contrast", transformFunctions.contrast),
10776  hueRotate: t.degreeT("--chakra-hue-rotate"),
10777  invert: t.propT("--chakra-invert", transformFunctions.invert),
10778  saturate: t.propT("--chakra-saturate", transformFunctions.saturate),
10779  dropShadow: t.propT("--chakra-drop-shadow", transformFunctions.dropShadow),
10780  backdropFilter: { transform: transformFunctions.backdropFilter },
10781  backdropBlur: t.blur("--chakra-backdrop-blur"),
10782  backdropBrightness: t.propT(
10783    "--chakra-backdrop-brightness",
10784    transformFunctions.brightness
10785  ),
10786  backdropContrast: t.propT("--chakra-backdrop-contrast", transformFunctions.contrast),
10787  backdropHueRotate: t.degreeT("--chakra-backdrop-hue-rotate"),
10788  backdropInvert: t.propT("--chakra-backdrop-invert", transformFunctions.invert),
10789  backdropSaturate: t.propT("--chakra-backdrop-saturate", transformFunctions.saturate)
10790};
10791var flexbox = {
10792  alignItems: true,
10793  alignContent: true,
10794  justifyItems: true,
10795  justifyContent: true,
10796  flexWrap: true,
10797  flexDirection: { transform: transformFunctions.flexDirection },
10798  experimental_spaceX: {
10799    static: spaceXTemplate,
10800    transform: createTransform({
10801      scale: "space",
10802      transform: (value) => value !== null ? { "--chakra-space-x": value } : null
10803    })
10804  },
10805  experimental_spaceY: {
10806    static: spaceYTemplate,
10807    transform: createTransform({
10808      scale: "space",
10809      transform: (value) => value != null ? { "--chakra-space-y": value } : null
10810    })
10811  },
10812  flex: true,
10813  flexFlow: true,
10814  flexGrow: true,
10815  flexShrink: true,
10816  flexBasis: t.sizes("flexBasis"),
10817  justifySelf: true,
10818  alignSelf: true,
10819  order: true,
10820  placeItems: true,
10821  placeContent: true,
10822  placeSelf: true,
10823  gap: t.space("gap"),
10824  rowGap: t.space("rowGap"),
10825  columnGap: t.space("columnGap")
10826};
10827Object.assign(flexbox, {
10828  flexDir: flexbox.flexDirection
10829});
10830var grid = {
10831  gridGap: t.space("gridGap"),
10832  gridColumnGap: t.space("gridColumnGap"),
10833  gridRowGap: t.space("gridRowGap"),
10834  gridColumn: true,
10835  gridRow: true,
10836  gridAutoFlow: true,
10837  gridAutoColumns: true,
10838  gridColumnStart: true,
10839  gridColumnEnd: true,
10840  gridRowStart: true,
10841  gridRowEnd: true,
10842  gridAutoRows: true,
10843  gridTemplate: true,
10844  gridTemplateColumns: true,
10845  gridTemplateRows: true,
10846  gridTemplateAreas: true,
10847  gridArea: true
10848};
10849var interactivity = {
10850  appearance: true,
10851  cursor: true,
10852  resize: true,
10853  userSelect: true,
10854  pointerEvents: true,
10855  outline: { transform: transformFunctions.outline },
10856  outlineOffset: true,
10857  outlineColor: t.colors("outlineColor")
10858};
10859var layout = {
10860  width: t.sizesT("width"),
10861  inlineSize: t.sizesT("inlineSize"),
10862  height: t.sizes("height"),
10863  blockSize: t.sizes("blockSize"),
10864  boxSize: t.sizes(["width", "height"]),
10865  minWidth: t.sizes("minWidth"),
10866  minInlineSize: t.sizes("minInlineSize"),
10867  minHeight: t.sizes("minHeight"),
10868  minBlockSize: t.sizes("minBlockSize"),
10869  maxWidth: t.sizes("maxWidth"),
10870  maxInlineSize: t.sizes("maxInlineSize"),
10871  maxHeight: t.sizes("maxHeight"),
10872  maxBlockSize: t.sizes("maxBlockSize"),
10873  overflow: true,
10874  overflowX: true,
10875  overflowY: true,
10876  overscrollBehavior: true,
10877  overscrollBehaviorX: true,
10878  overscrollBehaviorY: true,
10879  display: true,
10880  verticalAlign: true,
10881  boxSizing: true,
10882  boxDecorationBreak: true,
10883  float: t.propT("float", transformFunctions.float),
10884  objectFit: true,
10885  objectPosition: true,
10886  visibility: true,
10887  isolation: true
10888};
10889Object.assign(layout, {
10890  w: layout.width,
10891  h: layout.height,
10892  minW: layout.minWidth,
10893  maxW: layout.maxWidth,
10894  minH: layout.minHeight,
10895  maxH: layout.maxHeight,
10896  overscroll: layout.overscrollBehavior,
10897  overscrollX: layout.overscrollBehaviorX,
10898  overscrollY: layout.overscrollBehaviorY
10899});
10900var list = {
10901  listStyleType: true,
10902  listStylePosition: true,
10903  listStylePos: t.prop("listStylePosition"),
10904  listStyleImage: true,
10905  listStyleImg: t.prop("listStyleImage")
10906};
10907function get$1(obj, path, fallback, index) {
10908  const key = typeof path === "string" ? path.split(".") : [path];
10909  for (index = 0; index < key.length; index += 1) {
10910    if (!obj)
10911      break;
10912    obj = obj[key[index]];
10913  }
10914  return obj === void 0 ? fallback : obj;
10915}
10916var memoize$1 = (fn) => {
10917  const cache = /* @__PURE__ */ new WeakMap();
10918  const memoizedFn = (obj, path, fallback, index) => {
10919    if (typeof obj === "undefined") {
10920      return fn(obj, path, fallback);
10921    }
10922    if (!cache.has(obj)) {
10923      cache.set(obj, /* @__PURE__ */ new Map());
10924    }
10925    const map = cache.get(obj);
10926    if (map.has(path)) {
10927      return map.get(path);
10928    }
10929    const value = fn(obj, path, fallback, index);
10930    map.set(path, value);
10931    return value;
10932  };
10933  return memoizedFn;
10934};
10935var memoizedGet$1 = memoize$1(get$1);
10936var srOnly = {
10937  border: "0px",
10938  clip: "rect(0, 0, 0, 0)",
10939  width: "1px",
10940  height: "1px",
10941  margin: "-1px",
10942  padding: "0px",
10943  overflow: "hidden",
10944  whiteSpace: "nowrap",
10945  position: "absolute"
10946};
10947var srFocusable = {
10948  position: "static",
10949  width: "auto",
10950  height: "auto",
10951  clip: "auto",
10952  padding: "0",
10953  margin: "0",
10954  overflow: "visible",
10955  whiteSpace: "normal"
10956};
10957var getWithPriority = (theme2, key, styles2) => {
10958  const result = {};
10959  const obj = memoizedGet$1(theme2, key, {});
10960  for (const prop in obj) {
10961    const isInStyles = prop in styles2 && styles2[prop] != null;
10962    if (!isInStyles)
10963      result[prop] = obj[prop];
10964  }
10965  return result;
10966};
10967var others = {
10968  srOnly: {
10969    transform(value) {
10970      if (value === true)
10971        return srOnly;
10972      if (value === "focusable")
10973        return srFocusable;
10974      return {};
10975    }
10976  },
10977  layerStyle: {
10978    processResult: true,
10979    transform: (value, theme2, styles2) => getWithPriority(theme2, `layerStyles.${value}`, styles2)
10980  },
10981  textStyle: {
10982    processResult: true,
10983    transform: (value, theme2, styles2) => getWithPriority(theme2, `textStyles.${value}`, styles2)
10984  },
10985  apply: {
10986    processResult: true,
10987    transform: (value, theme2, styles2) => getWithPriority(theme2, value, styles2)
10988  }
10989};
10990var position = {
10991  position: true,
10992  pos: t.prop("position"),
10993  zIndex: t.prop("zIndex", "zIndices"),
10994  inset: t.spaceT("inset"),
10995  insetX: t.spaceT(["left", "right"]),
10996  insetInline: t.spaceT("insetInline"),
10997  insetY: t.spaceT(["top", "bottom"]),
10998  insetBlock: t.spaceT("insetBlock"),
10999  top: t.spaceT("top"),
11000  insetBlockStart: t.spaceT("insetBlockStart"),
11001  bottom: t.spaceT("bottom"),
11002  insetBlockEnd: t.spaceT("insetBlockEnd"),
11003  left: t.spaceT("left"),
11004  insetInlineStart: t.logical({
11005    scale: "space",
11006    property: { ltr: "left", rtl: "right" }
11007  }),
11008  right: t.spaceT("right"),
11009  insetInlineEnd: t.logical({
11010    scale: "space",
11011    property: { ltr: "right", rtl: "left" }
11012  })
11013};
11014Object.assign(position, {
11015  insetStart: position.insetInlineStart,
11016  insetEnd: position.insetInlineEnd
11017});
11018var ring = {
11019  ring: { transform: transformFunctions.ring },
11020  ringColor: t.colors("--chakra-ring-color"),
11021  ringOffset: t.prop("--chakra-ring-offset-width"),
11022  ringOffsetColor: t.colors("--chakra-ring-offset-color"),
11023  ringInset: t.prop("--chakra-ring-inset")
11024};
11025var space = {
11026  margin: t.spaceT("margin"),
11027  marginTop: t.spaceT("marginTop"),
11028  marginBlockStart: t.spaceT("marginBlockStart"),
11029  marginRight: t.spaceT("marginRight"),
11030  marginInlineEnd: t.spaceT("marginInlineEnd"),
11031  marginBottom: t.spaceT("marginBottom"),
11032  marginBlockEnd: t.spaceT("marginBlockEnd"),
11033  marginLeft: t.spaceT("marginLeft"),
11034  marginInlineStart: t.spaceT("marginInlineStart"),
11035  marginX: t.spaceT(["marginInlineStart", "marginInlineEnd"]),
11036  marginInline: t.spaceT("marginInline"),
11037  marginY: t.spaceT(["marginTop", "marginBottom"]),
11038  marginBlock: t.spaceT("marginBlock"),
11039  padding: t.space("padding"),
11040  paddingTop: t.space("paddingTop"),
11041  paddingBlockStart: t.space("paddingBlockStart"),
11042  paddingRight: t.space("paddingRight"),
11043  paddingBottom: t.space("paddingBottom"),
11044  paddingBlockEnd: t.space("paddingBlockEnd"),
11045  paddingLeft: t.space("paddingLeft"),
11046  paddingInlineStart: t.space("paddingInlineStart"),
11047  paddingInlineEnd: t.space("paddingInlineEnd"),
11048  paddingX: t.space(["paddingInlineStart", "paddingInlineEnd"]),
11049  paddingInline: t.space("paddingInline"),
11050  paddingY: t.space(["paddingTop", "paddingBottom"]),
11051  paddingBlock: t.space("paddingBlock")
11052};
11053Object.assign(space, {
11054  m: space.margin,
11055  mt: space.marginTop,
11056  mr: space.marginRight,
11057  me: space.marginInlineEnd,
11058  marginEnd: space.marginInlineEnd,
11059  mb: space.marginBottom,
11060  ml: space.marginLeft,
11061  ms: space.marginInlineStart,
11062  marginStart: space.marginInlineStart,
11063  mx: space.marginX,
11064  my: space.marginY,
11065  p: space.padding,
11066  pt: space.paddingTop,
11067  py: space.paddingY,
11068  px: space.paddingX,
11069  pb: space.paddingBottom,
11070  pl: space.paddingLeft,
11071  ps: space.paddingInlineStart,
11072  paddingStart: space.paddingInlineStart,
11073  pr: space.paddingRight,
11074  pe: space.paddingInlineEnd,
11075  paddingEnd: space.paddingInlineEnd
11076});
11077var textDecoration = {
11078  textDecorationColor: t.colors("textDecorationColor"),
11079  textDecoration: true,
11080  textDecor: { property: "textDecoration" },
11081  textDecorationLine: true,
11082  textDecorationStyle: true,
11083  textDecorationThickness: true,
11084  textUnderlineOffset: true,
11085  textShadow: t.shadows("textShadow")
11086};
11087var transform = {
11088  clipPath: true,
11089  transform: t.propT("transform", transformFunctions.transform),
11090  transformOrigin: true,
11091  translateX: t.spaceT("--chakra-translate-x"),
11092  translateY: t.spaceT("--chakra-translate-y"),
11093  skewX: t.degreeT("--chakra-skew-x"),
11094  skewY: t.degreeT("--chakra-skew-y"),
11095  scaleX: t.prop("--chakra-scale-x"),
11096  scaleY: t.prop("--chakra-scale-y"),
11097  scale: t.prop(["--chakra-scale-x", "--chakra-scale-y"]),
11098  rotate: t.degreeT("--chakra-rotate")
11099};
11100var transition$1 = {
11101  transition: true,
11102  transitionDelay: true,
11103  animation: true,
11104  willChange: true,
11105  transitionDuration: t.prop("transitionDuration", "transition.duration"),
11106  transitionProperty: t.prop("transitionProperty", "transition.property"),
11107  transitionTimingFunction: t.prop(
11108    "transitionTimingFunction",
11109    "transition.easing"
11110  )
11111};
11112var typography$1 = {
11113  fontFamily: t.prop("fontFamily", "fonts"),
11114  fontSize: t.prop("fontSize", "fontSizes", transformFunctions.px),
11115  fontWeight: t.prop("fontWeight", "fontWeights"),
11116  lineHeight: t.prop("lineHeight", "lineHeights"),
11117  letterSpacing: t.prop("letterSpacing", "letterSpacings"),
11118  textAlign: true,
11119  fontStyle: true,
11120  textIndent: true,
11121  wordBreak: true,
11122  overflowWrap: true,
11123  textOverflow: true,
11124  textTransform: true,
11125  whiteSpace: true,
11126  isTruncated: {
11127    transform(value) {
11128      if (value === true) {
11129        return {
11130          overflow: "hidden",
11131          textOverflow: "ellipsis",
11132          whiteSpace: "nowrap"
11133        };
11134      }
11135    }
11136  },
11137  noOfLines: {
11138    static: {
11139      overflow: "hidden",
11140      textOverflow: "ellipsis",
11141      display: "-webkit-box",
11142      WebkitBoxOrient: "vertical",
11143      WebkitLineClamp: "var(--chakra-line-clamp)"
11144    },
11145    property: "--chakra-line-clamp"
11146  }
11147};
11148var scroll = {
11149  scrollBehavior: true,
11150  scrollSnapAlign: true,
11151  scrollSnapStop: true,
11152  scrollSnapType: true,
11153  scrollMargin: t.spaceT("scrollMargin"),
11154  scrollMarginTop: t.spaceT("scrollMarginTop"),
11155  scrollMarginBottom: t.spaceT("scrollMarginBottom"),
11156  scrollMarginLeft: t.spaceT("scrollMarginLeft"),
11157  scrollMarginRight: t.spaceT("scrollMarginRight"),
11158  scrollMarginX: t.spaceT(["scrollMarginLeft", "scrollMarginRight"]),
11159  scrollMarginY: t.spaceT(["scrollMarginTop", "scrollMarginBottom"]),
11160  scrollPadding: t.spaceT("scrollPadding"),
11161  scrollPaddingTop: t.spaceT("scrollPaddingTop"),
11162  scrollPaddingBottom: t.spaceT("scrollPaddingBottom"),
11163  scrollPaddingLeft: t.spaceT("scrollPaddingLeft"),
11164  scrollPaddingRight: t.spaceT("scrollPaddingRight"),
11165  scrollPaddingX: t.spaceT(["scrollPaddingLeft", "scrollPaddingRight"]),
11166  scrollPaddingY: t.spaceT(["scrollPaddingTop", "scrollPaddingBottom"])
11167};
11168function resolveReference(operand) {
11169  if (isObject(operand) && operand.reference) {
11170    return operand.reference;
11171  }
11172  return String(operand);
11173}
11174var toExpression = (operator, ...operands) => operands.map(resolveReference).join(` ${operator} `).replace(/calc/g, "");
11175var add$1 = (...operands) => `calc(${toExpression("+", ...operands)})`;
11176var subtract$1 = (...operands) => `calc(${toExpression("-", ...operands)})`;
11177var multiply$1 = (...operands) => `calc(${toExpression("*", ...operands)})`;
11178var divide$1 = (...operands) => `calc(${toExpression("/", ...operands)})`;
11179var negate$1 = (x2) => {
11180  const value = resolveReference(x2);
11181  if (value != null && !Number.isNaN(parseFloat(value))) {
11182    return String(value).startsWith("-") ? String(value).slice(1) : `-${value}`;
11183  }
11184  return multiply$1(value, -1);
11185};
11186var calc$1 = Object.assign(
11187  (x2) => ({
11188    add: (...operands) => calc$1(add$1(x2, ...operands)),
11189    subtract: (...operands) => calc$1(subtract$1(x2, ...operands)),
11190    multiply: (...operands) => calc$1(multiply$1(x2, ...operands)),
11191    divide: (...operands) => calc$1(divide$1(x2, ...operands)),
11192    negate: () => calc$1(negate$1(x2)),
11193    toString: () => x2.toString()
11194  }),
11195  {
11196    add: add$1,
11197    subtract: subtract$1,
11198    multiply: multiply$1,
11199    divide: divide$1,
11200    negate: negate$1
11201  }
11202);
11203function replaceWhiteSpace$1(value, replaceValue = "-") {
11204  return value.replace(/\s+/g, replaceValue);
11205}
11206function escape$2(value) {
11207  const valueStr = replaceWhiteSpace$1(value.toString());
11208  return escapeSymbol(escapeDot(valueStr));
11209}
11210function escapeDot(value) {
11211  if (value.includes("\\."))
11212    return value;
11213  const isDecimal2 = !Number.isInteger(parseFloat(value.toString()));
11214  return isDecimal2 ? value.replace(".", `\\.`) : value;
11215}
11216function escapeSymbol(value) {
11217  return value.replace(/[!-,/:-@[-^`{-~]/g, "\\$&");
11218}
11219function addPrefix$1(value, prefix2 = "") {
11220  return [prefix2, value].filter(Boolean).join("-");
11221}
11222function toVarReference(name2, fallback) {
11223  return `var(${name2}${fallback ? `, ${fallback}` : ""})`;
11224}
11225function toVarDefinition(value, prefix2 = "") {
11226  return escape$2(`--${addPrefix$1(value, prefix2)}`);
11227}
11228function cssVar$1(name2, fallback, cssVarPrefix) {
11229  const cssVariable = toVarDefinition(name2, cssVarPrefix);
11230  return {
11231    variable: cssVariable,
11232    reference: toVarReference(cssVariable, fallback)
11233  };
11234}
11235function getLastItem(array) {
11236  const length2 = array == null ? 0 : array.length;
11237  return length2 ? array[length2 - 1] : void 0;
11238}
11239function analyzeCSSValue2(value) {
11240  const num = parseFloat(value.toString());
11241  const unit = value.toString().replace(String(num), "");
11242  return { unitless: !unit, value: num, unit };
11243}
11244function px$1(value) {
11245  if (value == null)
11246    return value;
11247  const { unitless } = analyzeCSSValue2(value);
11248  return unitless || typeof value === "number" ? `${value}px` : value;
11249}
11250var sortByBreakpointValue = (a, b2) => parseInt(a[1], 10) > parseInt(b2[1], 10) ? 1 : -1;
11251var sortBps = (breakpoints2) => Object.fromEntries(Object.entries(breakpoints2).sort(sortByBreakpointValue));
11252function normalize(breakpoints2) {
11253  const sorted = sortBps(breakpoints2);
11254  return Object.assign(Object.values(sorted), sorted);
11255}
11256function keys(breakpoints2) {
11257  const value = Object.keys(sortBps(breakpoints2));
11258  return new Set(value);
11259}
11260function subtract2(value) {
11261  var _a5;
11262  if (!value)
11263    return value;
11264  value = (_a5 = px$1(value)) != null ? _a5 : value;
11265  const OFFSET = -0.02;
11266  return typeof value === "number" ? `${value + OFFSET}` : value.replace(/(\d+\.?\d*)/u, (m2) => `${parseFloat(m2) + OFFSET}`);
11267}
11268function toMediaQueryString(min, max) {
11269  const query = ["@media screen"];
11270  if (min)
11271    query.push("and", `(min-width: ${px$1(min)})`);
11272  if (max)
11273    query.push("and", `(max-width: ${px$1(max)})`);
11274  return query.join(" ");
11275}
11276function analyzeBreakpoints(breakpoints2) {
11277  var _a5;
11278  if (!breakpoints2)
11279    return null;
11280  breakpoints2.base = (_a5 = breakpoints2.base) != null ? _a5 : "0px";
11281  const normalized = normalize(breakpoints2);
11282  const queries = Object.entries(breakpoints2).sort(sortByBreakpointValue).map(([breakpoint, minW], index, entry) => {
11283    var _a22;
11284    let [, maxW] = (_a22 = entry[index + 1]) != null ? _a22 : [];
11285    maxW = parseFloat(maxW) > 0 ? subtract2(maxW) : void 0;
11286    return {
11287      _minW: subtract2(minW),
11288      breakpoint,
11289      minW,
11290      maxW,
11291      maxWQuery: toMediaQueryString(null, maxW),
11292      minWQuery: toMediaQueryString(minW),
11293      minMaxQuery: toMediaQueryString(minW, maxW)
11294    };
11295  });
11296  const _keys = keys(breakpoints2);
11297  const _keysArr = Array.from(_keys.values());
11298  return {
11299    keys: _keys,
11300    normalized,
11301    isResponsive(test2) {
11302      const keys2 = Object.keys(test2);
11303      return keys2.length > 0 && keys2.every((key) => _keys.has(key));
11304    },
11305    asObject: sortBps(breakpoints2),
11306    asArray: normalize(breakpoints2),
11307    details: queries,
11308    media: [
11309      null,
11310      ...normalized.map((minW) => toMediaQueryString(minW)).slice(1)
11311    ],
11312    toArrayValue(test2) {
11313      if (!isObject(test2)) {
11314        throw new Error("toArrayValue: value must be an object");
11315      }
11316      const result = _keysArr.map((bp) => {
11317        var _a22;
11318        return (_a22 = test2[bp]) != null ? _a22 : null;
11319      });
11320      while (getLastItem(result) === null) {
11321        result.pop();
11322      }
11323      return result;
11324    },
11325    toObjectValue(test2) {
11326      if (!Array.isArray(test2)) {
11327        throw new Error("toObjectValue: value must be an array");
11328      }
11329      return test2.reduce((acc, value, index) => {
11330        const key = _keysArr[index];
11331        if (key != null && value != null)
11332          acc[key] = value;
11333        return acc;
11334      }, {});
11335    }
11336  };
11337}
11338var state = {
11339  hover: (str, post) => `${str}:hover ${post}, ${str}[data-hover] ${post}`,
11340  focus: (str, post) => `${str}:focus ${post}, ${str}[data-focus] ${post}`,
11341  focusVisible: (str, post) => `${str}:focus-visible ${post}`,
11342  focusWithin: (str, post) => `${str}:focus-within ${post}`,
11343  active: (str, post) => `${str}:active ${post}, ${str}[data-active] ${post}`,
11344  disabled: (str, post) => `${str}:disabled ${post}, ${str}[data-disabled] ${post}`,
11345  invalid: (str, post) => `${str}:invalid ${post}, ${str}[data-invalid] ${post}`,
11346  checked: (str, post) => `${str}:checked ${post}, ${str}[data-checked] ${post}`,
11347  indeterminate: (str, post) => `${str}:indeterminate ${post}, ${str}[aria-checked=mixed] ${post}, ${str}[data-indeterminate] ${post}`,
11348  readOnly: (str, post) => `${str}:read-only ${post}, ${str}[readonly] ${post}, ${str}[data-read-only] ${post}`,
11349  expanded: (str, post) => `${str}:read-only ${post}, ${str}[aria-expanded=true] ${post}, ${str}[data-expanded] ${post}`,
11350  placeholderShown: (str, post) => `${str}:placeholder-shown ${post}`
11351};
11352var toGroup = (fn) => merge((v2) => fn(v2, "&"), "[role=group]", "[data-group]", ".group");
11353var toPeer = (fn) => merge((v2) =>
11353 fn(v2, "~ &"), "[data-peer]", ".peer");
11354var merge = (fn, ...selectors) => selectors.map(fn).join(", ");
11355var pseudoSelectors = {
11356  _hover: "&:hover, &[data-hover]",
11357  _active: "&:active, &[data-active]",
11358  _focus: "&:focus, &[data-focus]",
11359  _highlighted: "&[data-highlighted]",
11360  _focusWithin: "&:focus-within",
11361  _focusVisible: "&:focus-visible, &[data-focus-visible]",
11362  _disabled: "&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",
11363  _readOnly: "&[aria-readonly=true], &[readonly], &[data-readonly]",
11364  _before: "&::before",
11365  _after: "&::after",
11366  _empty: "&:empty",
11367  _expanded: "&[aria-expanded=true], &[data-expanded]",
11368  _checked: "&[aria-checked=true], &[data-checked]",
11369  _grabbed: "&[aria-grabbed=true], &[data-grabbed]",
11370  _pressed: "&[aria-pressed=true], &[data-pressed]",
11371  _invalid: "&[aria-invalid=true], &[data-invalid]",
11372  _valid: "&[data-valid], &[data-state=valid]",
11373  _loading: "&[data-loading], &[aria-busy=true]",
11374  _selected: "&[aria-selected=true], &[data-selected]",
11375  _hidden: "&[hidden], &[data-hidden]",
11376  _autofill: "&:-webkit-autofill",
11377  _even: "&:nth-of-type(even)",
11378  _odd: "&:nth-of-type(odd)",
11379  _first: "&:first-of-type",
11380  _last: "&:last-of-type",
11381  _notFirst: "&:not(:first-of-type)",
11382  _notLast: "&:not(:last-of-type)",
11383  _visited: "&:visited",
11384  _activeLink: "&[aria-current=page]",
11385  _activeStep: "&[aria-current=step]",
11386  _indeterminate: "&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",
11387  _groupHover: toGroup(state.hover),
11388  _peerHover: toPeer(state.hover),
11389  _groupFocus: toGroup(state.focus),
11390  _peerFocus: toPeer(state.focus),
11391  _groupFocusVisible: toGroup(state.focusVisible),
11392  _peerFocusVisible: toPeer(state.focusVisible),
11393  _groupActive: toGroup(state.active),
11394  _peerActive: toPeer(state.active),
11395  _groupDisabled: toGroup(state.disabled),
11396  _peerDisabled: toPeer(state.disabled),
11397  _groupInvalid: toGroup(state.invalid),
11398  _peerInvalid: toPeer(state.invalid),
11399  _groupChecked: toGroup(state.checked),
11400  _peerChecked: toPeer(state.checked),
11401  _groupFocusWithin: toGroup(state.focusWithin),
11402  _peerFocusWithin: toPeer(state.focusWithin),
11403  _peerPlaceholderShown: toPeer(state.placeholderShown),
11404  _placeholder: "&::placeholder",
11405  _placeholderShown: "&:placeholder-shown",
11406  _fullScreen: "&:fullscreen",
11407  _selection: "&::selection",
11408  _rtl: "[dir=rtl] &, &[dir=rtl]",
11409  _ltr: "[dir=ltr] &, &[dir=ltr]",
11410  _mediaDark: "@media (prefers-color-scheme: dark)",
11411  _mediaReduceMotion: "@media (prefers-reduced-motion: reduce)",
11412  _dark: ".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",
11413  _light: ".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]"
11414};
11415var pseudoPropNames = Object.keys(
11416  pseudoSelectors
11417);
11418function tokenToCssVar(token2, prefix2) {
11419  return cssVar$1(String(token2).replace(/\./g, "-"), void 0, prefix2);
11420}
11421function createThemeVars(flatTokens, options) {
11422  let cssVars = {};
11423  const cssMap = {};
11424  for (const [token2, tokenValue] of Object.entries(flatTokens)) {
11425    const { isSemantic, value } = tokenValue;
11426    const { variable, reference } = tokenToCssVar(token2, options == null ? void 0 : options.cssVarPrefix);
11427    if (!isSemantic) {
11428      if (token2.startsWith("space")) {
11429        const keys2 = token2.split(".");
11430        const [firstKey, ...referenceKeys] = keys2;
11431        const negativeLookupKey = `${firstKey}.-${referenceKeys.join(".")}`;
11432        const negativeValue = calc$1.negate(value);
11433        const negatedReference = calc$1.negate(reference);
11434        cssMap[negativeLookupKey] = {
11435          value: negativeValue,
11436          var: variable,
11437          varRef: negatedReference
11438        };
11439      }
11440      cssVars[variable] = value;
11441      cssMap[token2] = {
11442        value,
11443        var: variable,
11444        varRef: reference
11445      };
11446      continue;
11447    }
11448    const lookupToken = (maybeToken) => {
11449      const scale2 = String(token2).split(".")[0];
11450      const withScale = [scale2, maybeToken].join(".");
11451      const resolvedTokenValue = flatTokens[withScale];
11452      if (!resolvedTokenValue)
11453        return maybeToken;
11454      const { reference: reference2 } = tokenToCssVar(withScale, options == null ? void 0 : options.cssVarPrefix);
11455      return reference2;
11456    };
11457    const normalizedValue = isObject(value) ? value : { default: value };
11458    cssVars = mergeWith(
11459      cssVars,
11460      Object.entries(normalizedValue).reduce(
11461        (acc, [conditionAlias, conditionValue]) => {
11462          var _a5, _b3;
11463          const maybeReference = lookupToken(conditionValue);
11464          if (conditionAlias === "default") {
11465            acc[variable] = maybeReference;
11466            return acc;
11467          }
11468          const conditionSelector = (_b3 = (_a5 = pseudoSelectors) == null ? void 0 : _a5[conditionAlias]) != null ? _b3 : conditionAlias;
11469          acc[conditionSelector] = { [variable]: maybeReference };
11470          return acc;
11471        },
11472        {}
11473      )
11474    );
11475    cssMap[token2] = {
11476      value: reference,
11477      var: variable,
11478      varRef: reference
11479    };
11480  }
11481  return {
11482    cssVars,
11483    cssMap
11484  };
11485}
11486function omit$2(object, keysToOmit = []) {
11487  const clone = Object.assign({}, object);
11488  for (const key of keysToOmit) {
11489    if (key in clone) {
11490      delete clone[key];
11491    }
11492  }
11493  return clone;
11494}
11495function pick(object, keysToPick) {
11496  const result = {};
11497  for (const key of keysToPick) {
11498    if (key in object) {
11499      result[key] = object[key];
11500    }
11501  }
11502  return result;
11503}
11504var tokens = [
11505  "colors",
11506  "borders",
11507  "borderWidths",
11508  "borderStyles",
11509  "fonts",
11510  "fontSizes",
11511  "fontWeights",
11512  "letterSpacings",
11513  "lineHeights",
11514  "radii",
11515  "space",
11516  "shadows",
11517  "sizes",
11518  "zIndices",
11519  "transition",
11520  "blur"
11521];
11522function extractTokens(theme2) {
11523  const _tokens = tokens;
11524  return pick(theme2, _tokens);
11525}
11526function extractSemanticTokens(theme2) {
11527  return theme2.semanticTokens;
11528}
11529function omitVars(rawTheme) {
11530  const { __cssMap, __cssVars, __breakpoints, ...cleanTheme } = rawTheme;
11531  return cleanTheme;
11532}
11533function flattenTokens({
11534  tokens: tokens2,
11535  semanticTokens: semanticTokens2
11536}) {
11537  var _a5, _b3;
11538  const tokenEntries = Object.entries((_a5 = flatten(tokens2)) != null ? _a5 : {}).map(
11539    ([token2, value]) => {
11540      const enhancedToken = { isSemantic: false, value };
11541      return [token2, enhancedToken];
11542    }
11543  );
11544  const semanticTokenEntries = Object.entries(
11545    (_b3 = flatten(semanticTokens2, 1)) != null ? _b3 : {}
11546  ).map(([token2, value]) => {
11547    const enhancedToken = { isSemantic: true, value };
11548    return [token2, enhancedToken];
11549  });
11550  return Object.fromEntries([
11551    ...tokenEntries,
11552    ...semanticTokenEntries
11553  ]);
11554}
11555function flatten(target, maxDepth = Infinity) {
11556  if (!isObject(target) && !Array.isArray(target) || !maxDepth) {
11557    return target;
11558  }
11559  return Object.entries(target).reduce((result, [key, value]) => {
11560    if (isObject(value) || Array.isArray(value)) {
11561      Object.entries(flatten(value, maxDepth - 1)).forEach(
11562        ([childKey, childValue]) => {
11563          result[`${key}.${childKey}`] = childValue;
11564        }
11565      );
11566    } else {
11567      result[key] = value;
11568    }
11569    return result;
11570  }, {});
11571}
11572function toCSSVar(rawTheme) {
11573  var _a5;
11574  const theme2 = omitVars(rawTheme);
11575  const tokens2 = extractTokens(theme2);
11576  const semanticTokens2 = extractSemanticTokens(theme2);
11577  const flatTokens = flattenTokens({ tokens: tokens2, semanticTokens: semanticTokens2 });
11578  const cssVarPrefix = (_a5 = theme2.config) == null ? void 0 : _a5.cssVarPrefix;
11579  const {
11580    cssMap,
11581    cssVars
11582  } = createThemeVars(flatTokens, { cssVarPrefix });
11583  const defaultCssVars = {
11584    "--chakra-ring-inset": "var(--chakra-empty,/*!*/ /*!*/)",
11585    "--chakra-ring-offset-width": "0px",
11586    "--chakra-ring-offset-color": "#fff",
11587    "--chakra-ring-color": "rgba(66, 153, 225, 0.6)",
11588    "--chakra-ring-offset-shadow": "0 0 #0000",
11589    "--chakra-ring-shadow": "0 0 #0000",
11590    "--chakra-space-x-reverse": "0",
11591    "--chakra-space-y-reverse": "0"
11592  };
11593  Object.assign(theme2, {
11594    __cssVars: { ...defaultCssVars, ...cssVars },
11595    __cssMap: cssMap,
11596    __breakpoints: analyzeBreakpoints(theme2.breakpoints)
11597  });
11598  return theme2;
11599}
11600var systemProps = mergeWith(
11601  {},
11602  background,
11603  border,
11604  color$1,
11605  flexbox,
11606  layout,
11607  filter$1,
11608  ring,
11609  interactivity,
11610  grid,
11611  others,
11612  position,
11613  effect,
11614  space,
11615  scroll,
11616  typography$1,
11617  textDecoration,
11618  transform,
11619  list,
11620  transition$1
11621);
11622Object.assign({}, space, layout, flexbox, grid, position);
11623var propNames = [...Object.keys(systemProps), ...pseudoPropNames];
11624var styleProps = { ...systemProps, ...pseudoSelectors };
11625var isStyleProp = (prop) => prop in styleProps;
11626var expandResponsive = (styles2) => (theme2) => {
11627  if (!theme2.__breakpoints)
11628    return styles2;
11629  const { isResponsive, toArrayValue, media: medias } = theme2.__breakpoints;
11630  const computedStyles = {};
11631  for (const key in styles2) {
11632    let value = runIfFn$2(styles2[key], theme2);
11633    if (value == null)
11634      continue;
11635    value = isObject(value) && isResponsive(value) ? toArrayValue(value) : value;
11636    if (!Array.isArray(value)) {
11637      computedStyles[key] = value;
11638      continue;
11639    }
11640    const queries = value.slice(0, medias.length).length;
11641    for (let index = 0; index < queries; index += 1) {
11642      const media = medias == null ? void 0 : medias[index];
11643      if (!media) {
11644        computedStyles[key] = value[index];
11645        continue;
11646      }
11647      computedStyles[media] = computedStyles[media] || {};
11648      if (value[index] == null) {
11649        continue;
11650      }
11651      computedStyles[media][key] = value[index];
11652    }
11653  }
11654  return computedStyles;
11655};
11656function splitByComma(value) {
11657  const chunks = [];
11658  let chunk = "";
11659  let inParens = false;
11660  for (let i = 0; i < value.length; i++) {
11661    const char2 = value[i];
11662    if (char2 === "(") {
11663      inParens = true;
11664      chunk += char2;
11665    } else if (char2 === ")") {
11666      inParens = false;
11667      chunk += char2;
11668    } else if (char2 === "," && !inParens) {
11669      chunks.push(chunk);
11670      chunk = "";
11671    } else {
11672      chunk += char2;
11673    }
11674  }
11675  chunk = chunk.trim();
11676  if (chunk) {
11677    chunks.push(chunk);
11678  }
11679  return chunks;
11680}
11681function isCssVar2(value) {
11682  return /^var\(--.+\)$/.test(value);
11683}
11684var isCSSVariableTokenValue = (key, value) => key.startsWith("--") && typeof value === "string" && !isCssVar2(value);
11685var resolveTokenValue = (theme2, value) => {
11686  var _a5, _b3;
11687  if (value == null)
11688    return value;
11689  const getVar = (val) => {
11690    var _a22, _b22;
11691    return (_b22 = (_a22 = theme2.__cssMap) == null ? void 0 : _a22[val]) == null ? void 0 : _b22.varRef;
11692  };
11693  const getValue = (val) => {
11694    var _a22;
11695    return (_a22 = getVar(val)) != null ? _a22 : val;
11696  };
11697  const [tokenValue, fallbackValue] = splitByComma(value);
11698  value = (_b3 = (_a5 = getVar(tokenValue)) != null ? _a5 : getValue(fallbackValue)) != null ? _b3 : getValue(value);
11699  return value;
11700};
11701function getCss(options) {
11702  const { configs = {}, pseudos = {}, theme: theme2 } = options;
11703  const css2 = (stylesOrFn, nested = false) => {
11704    var _a5, _b3, _c2;
11705    const _styles = runIfFn$2(stylesOrFn, theme2);
11706    const styles2 = expandResponsive(_styles)(theme2);
11707    let computedStyles = {};
11708    for (let key in styles2) {
11709      const valueOrFn = styles2[key];
11710      let value = runIfFn$2(valueOrFn, theme2);
11711      if (key in pseudos) {
11712        key = pseudos[key];
11713      }
11714      if (isCSSVariableTokenValue(key, value)) {
11715        value = resolveTokenValue(theme2, value);
11716      }
11717      let config2 = configs[key];
11718      if (config2 === true) {
11719        config2 = { property: key };
11720      }
11721      if (isObject(value)) {
11722        computedStyles[key] = (_a5 = computedStyles[key]) != null ? _a5 : {};
11723        computedStyles[key] = mergeWith(
11724          {},
11725          computedStyles[key],
11726          css2(value, true)
11727        );
11728        continue;
11729      }
11730      let rawValue = (_c2 = (_b3 = config2 == null ? void 0 : config2.transform) == null ? void 0 : _b3.call(config2, value, theme2, _styles)) != null ? _c2 : value;
11731      rawValue = (config2 == null ? void 0 : config2.processResult) ? css2(rawValue, true) : rawValue;
11732      const configProperty = runIfFn$2(config2 == null ? void 0 : config2.property, theme2);
11733      if (!nested && (config2 == null ? void 0 : config2.static)) {
11734        const staticStyles = runIfFn$2(config2.static, theme2);
11735        computedStyles = mergeWith({}, computedStyles, staticStyles);
11736      }
11737      if (configProperty && Array.isArray(configProperty)) {
11738        for (const property of configProperty) {
11739          computedStyles[property] = rawValue;
11740        }
11741        continue;
11742      }
11743      if (configProperty) {
11744        if (configProperty === "&" && isObject(rawValue)) {
11745          computedStyles = mergeWith({}, computedStyles, rawValue);
11746        } else {
11747          computedStyles[configProperty] = rawValue;
11748        }
11749        continue;
11750      }
11751      if (isObject(rawValue)) {
11752        computedStyles = mergeWith({}, computedStyles, rawValue);
11753        continue;
11754      }
11755      computedStyles[key] = rawValue;
11756    }
11757    return computedStyles;
11758  };
11759  return css2;
11760}
11761var css = (styles2) => (theme2) => {
11762  const cssFn = getCss({
11763    theme: theme2,
11764    pseudos: pseudoSelectors,
11765    configs: systemProps
11766  });
11767  return cssFn(styles2);
11768};
11769function defineStyle(styles2) {
11770  return styles2;
11771}
11772function defineStyleConfig(config2) {
11773  return config2;
11774}
11775function createMultiStyleConfigHelpers(parts) {
11776  return {
11777    definePartsStyle(config2) {
11778      return config2;
11779    },
11780    defineMultiStyleConfig(config2) {
11781      return { parts, ...config2 };
11782    }
11783  };
11784}
11785function normalize2(value, toArray) {
11786  if (Array.isArray(value))
11787    return value;
11788  if (isObject(value))
11789    return toArray(value);
11790  if (value != null)
11791    return [value];
11792}
11793function getNextIndex(values, i) {
11794  for (let j = i + 1; j < values.length; j++) {
11795    if (values[j] != null)
11796      return j;
11797  }
11798  return -1;
11799}
11800function createResolver(theme2) {
11801  const breakpointUtil = theme2.__breakpoints;
11802  return function resolver(config2, prop, value, props) {
11803    var _a5, _b3;
11804    if (!breakpointUtil)
11805      return;
11806    const result = {};
11807    const normalized = normalize2(value, breakpointUtil.toArrayValue);
11808    if (!normalized)
11809      return result;
11810    const len = normalized.length;
11811    const isSingle = len === 1;
11812    const isMultipart = !!config2.parts;
11813    for (let i = 0; i < len; i++) {
11814      const key = breakpointUtil.details[i];
11815      const nextKey = breakpointUtil.details[getNextIndex(normalized, i)];
11816      const query = toMediaQueryString(key.minW, nextKey == null ? void 0 : nextKey._minW);
11817      const styles2 = runIfFn$2((_a5 = config2[prop]) == null ? void 0 : _a5[normalized[i]], props);
11818      if (!styles2)
11819        continue;
11820      if (isMultipart) {
11821        (_b3 = config2.parts) == null ? void 0 : _b3.forEach((part) => {
11822          mergeWith(result, {
11823            [part]: isSingle ? styles2[part] : { [query]: styles2[part] }
11824          });
11825        });
11826        continue;
11827      }
11828      if (!isMultipart) {
11829        if (isSingle)
11830          mergeWith(result, styles2);
11831        else
11832          result[query] = styles2;
11833        continue;
11834      }
11835      result[query] = styles2;
11836    }
11837    return result;
11838  };
11839}
11840function resolveStyleConfig(config2) {
11841  return (props) => {
11842    var _a5;
11843    const { variant, size: size2, theme: theme2 } = props;
11844    const recipe = createResolver(theme2);
11845    return mergeWith(
11846      {},
11847      runIfFn$2((_a5 = config2.baseStyle) != null ? _a5 : {}, props),
11848      recipe(config2, "sizes", size2, props),
11849      recipe(config2, "variants", variant, props)
11850    );
11851  };
11852}
11853function omitThemingProps(props) {
11854  return omit$2(props, ["styleConfig", "size", "variant", "colorScheme"]);
11855}
11856var requiredChakraThemeKeys = [
11857  "borders",
11858  "breakpoints",
11859  "colors",
11860  "components",
11861  "config",
11862  "direction",
11863  "fonts",
11864  "fontSizes",
11865  "fontWeights",
11866  "letterSpacings",
11867  "lineHeights",
11868  "radii",
11869  "shadows",
11870  "sizes",
11871  "space",
11872  "styles",
11873  "transition",
11874  "zIndices"
11875];
11876function isChakraTheme(unit) {
11877  if (!isObject(unit)) {
11878    return false;
11879  }
11880  return requiredChakraThemeKeys.every(
11881    (propertyName) => Object.prototype.hasOwnProperty.call(unit, propertyName)
11882  );
11883}
11884var zIndices = {
11885  hide: -1,
11886  auto: "auto",
11887  base: 0,
11888  docked: 10,
11889  dropdown: 1e3,
11890  sticky: 1100,
11891  banner: 1200,
11892  overlay: 1300,
11893  modal: 1400,
11894  popover: 1500,
11895  skipLink: 1600,
11896  toast: 1700,
11897  tooltip: 1800
11898};
11899var z_index_default = zIndices;
11900var breakpoints = {
11901  base: "0em",
11902  sm: "30em",
11903  md: "48em",
11904  lg: "62em",
11905  xl: "80em",
11906  "2xl": "96em"
11907};
11908var breakpoints_default = breakpoints;
11909var colors = {
11910  transparent: "transparent",
11911  current: "currentColor",
11912  black: "#000000",
11913  white: "#FFFFFF",
11914  whiteAlpha: {
11915    50: "rgba(255, 255, 255, 0.04)",
11916    100: "rgba(255, 255, 255, 0.06)",
11917    200: "rgba(255, 255, 255, 0.08)",
11918    300: "rgba(255, 255, 255, 0.16)",
11919    400: "rgba(255, 255, 255, 0.24)",
11920    500: "rgba(255, 255, 255, 0.36)",
11921    600: "rgba(255, 255, 255, 0.48)",
11922    700: "rgba(255, 255, 255, 0.64)",
11923    800: "rgba(255, 255, 255, 0.80)",
11924    900: "rgba(255, 255, 255, 0.92)"
11925  },
11926  blackAlpha: {
11927    50: "rgba(0, 0, 0, 0.04)",
11928    100: "rgba(0, 0, 0, 0.06)",
11929    200: "rgba(0, 0, 0, 0.08)",
11930    300: "rgba(0, 0, 0, 0.16)",
11931    400: "rgba(0, 0, 0, 0.24)",
11932    500: "rgba(0, 0, 0, 0.36)",
11933    600: "rgba(0, 0, 0, 0.48)",
11934    700: "rgba(0, 0, 0, 0.64)",
11935    800: "rgba(0, 0, 0, 0.80)",
11936    900: "rgba(0, 0, 0, 0.92)"
11937  },
11938  gray: {
11939    50: "#F7FAFC",
11940    100: "#EDF2F7",
11941    200: "#E2E8F0",
11942    300: "#CBD5E0",
11943    400: "#A0AEC0",
11944    500: "#718096",
11945    600: "#4A5568",
11946    700: "#2D3748",
11947    800: "#1A202C",
11948    900: "#171923"
11949  },
11950  red: {
11951    50: "#FFF5F5",
11952    100: "#FED7D7",
11953    200: "#FEB2B2",
11954    300: "#FC8181",
11955    400: "#F56565",
11956    500: "#E53E3E",
11957    600: "#C53030",
11958    700: "#9B2C2C",
11959    800: "#822727",
11960    900: "#63171B"
11961  },
11962  orange: {
11963    50: "#FFFAF0",
11964    100: "#FEEBC8",
11965    200: "#FBD38D",
11966    300: "#F6AD55",
11967    400: "#ED8936",
11968    500: "#DD6B20",
11969    600: "#C05621",
11970    700: "#9C4221",
11971    800: "#7B341E",
11972    900: "#652B19"
11973  },
11974  yellow: {
11975    50: "#FFFFF0",
11976    100: "#FEFCBF",
11977    200: "#FAF089",
11978    300: "#F6E05E",
11979    400: "#ECC94B",
11980    500: "#D69E2E",
11981    600: "#B7791F",
11982    700: "#975A16",
11983    800: "#744210",
11984    900: "#5F370E"
11985  },
11986  green: {
11987    50: "#F0FFF4",
11988    100: "#C6F6D5",
11989    200: "#9AE6B4",
11990    300: "#68D391",
11991    400: "#48BB78",
11992    500: "#38A169",
11993    600: "#2F855A",
11994    700: "#276749",
11995    800: "#22543D",
11996    900: "#1C4532"
11997  },
11998  teal: {
11999    50: "#E6FFFA",
12000    100: "#B2F5EA",
12001    200: "#81E6D9",
12002    300: "#4FD1C5",
12003    400: "#38B2AC",
12004    500: "#319795",
12005    600: "#2C7A7B",
12006    700: "#285E61",
12007    800: "#234E52",
12008    900: "#1D4044"
12009  },
12010  blue: {
12011    50: "#ebf8ff",
12012    100: "#bee3f8",
12013    200: "#90cdf4",
12014    300: "#63b3ed",
12015    400: "#4299e1",
12016    500: "#3182ce",
12017    600: "#2b6cb0",
12018    700: "#2c5282",
12019    800: "#2a4365",
12020    900: "#1A365D"
12021  },
12022  cyan: {
12023    50: "#EDFDFD",
12024    100: "#C4F1F9",
12025    200: "#9DECF9",
12026    300: "#76E4F7",
12027    400: "#0BC5EA",
12028    500: "#00B5D8",
12029    600: "#00A3C4",
12030    700: "#0987A0",
12031    800: "#086F83",
12032    900: "#065666"
12033  },
12034  purple: {
12035    50: "#FAF5FF",
12036    100: "#E9D8FD",
12037    200: "#D6BCFA",
12038    300: "#B794F4",
12039    400: "#9F7AEA",
12040    500: "#805AD5",
12041    600: "#6B46C1",
12042    700: "#553C9A",
12043    800: "#44337A",
12044    900: "#322659"
12045  },
12046  pink: {
12047    50: "#FFF5F7",
12048    100: "#FED7E2",
12049    200: "#FBB6CE",
12050    300: "#F687B3",
12051    400: "#ED64A6",
12052    500: "#D53F8C",
12053    600: "#B83280",
12054    700: "#97266D",
12055    800: "#702459",
12056    900: "#521B41"
12057  },
12058  linkedin: {
12059    50: "#E8F4F9",
12060    100: "#CFEDFB",
12061    200: "#9BDAF3",
12062    300: "#68C7EC",
12063    400: "#34B3E4",
12064    500: "#00A0DC",
12065    600: "#008CC9",
12066    700: "#0077B5",
12067    800: "#005E93",
12068    900: "#004471"
12069  },
12070  facebook: {
12071    50: "#E8F4F9",
12072    100: "#D9DEE9",
12073    200: "#B7C2DA",
12074    300: "#6482C0",
12075    400: "#4267B2",
12076    500: "#385898",
12077    600: "#314E89",
12078    700: "#29487D",
12079    800: "#223B67",
12080    900: "#1E355B"
12081  },
12082  messenger: {
12083    50: "#D0E6FF",
12084    100: "#B9DAFF",
12085    200: "#A2CDFF",
12086    300: "#7AB8FF",
12087    400: "#2E90FF",
12088    500: "#0078FF",
12089    600: "#0063D1",
12090    700: "#0052AC",
12091    800: "#003C7E",
12092    900: "#002C5C"
12093  },
12094  whatsapp: {
12095    50: "#dffeec",
12096    100: "#b9f5d0",
12097    200: "#90edb3",
12098    300: "#65e495",
12099    400: "#3cdd78",
12100    500: "#22c35e",
12101    600: "#179848",
12102    700: "#0c6c33",
12103    800: "#01421c",
12104    900: "#001803"
12105  },
12106  twitter: {
12107    50: "#E5F4FD",
12108    100: "#C8E9FB",
12109    200: "#A8DCFA",
12110    300: "#83CDF7",
12111    400: "#57BBF5",
12112    500: "#1DA1F2",
12113    600: "#1A94DA",
12114    700: "#1681BF",
12115    800: "#136B9E",
12116    900: "#0D4D71"
12117  },
12118  telegram: {
12119    50: "#E3F2F9",
12120    100: "#C5E4F3",
12121    200: "#A2D4EC",
12122    300: "#7AC1E4",
12123    400: "#47A9DA",
12124    500: "#0088CC",
12125    600: "#007AB8",
12126    700: "#006BA1",
12127    800: "#005885",
12128    900: "#003F5E"
12129  }
12130};
12131var colors_default = colors;
12132var radii = {
12133  none: "0",
12134  sm: "0.125rem",
12135  base: "0.25rem",
12136  md: "0.375rem",
12137  lg: "0.5rem",
12138  xl: "0.75rem",
12139  "2xl": "1rem",
12140  "3xl": "1.5rem",
12141  full: "9999px"
12142};
12143var radius_default = radii;
12144var shadows = {
12145  xs: "0 0 0 1px rgba(0, 0, 0, 0.05)",
12146  sm: "0 1px 2px 0 rgba(0, 0, 0, 0.05)",
12147  base: "0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",
12148  md: "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",
12149  lg: "0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",
12150  xl: "0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)",
12151  "2xl": "0 25px 50px -12px rgba(0, 0, 0, 0.25)",
12152  outline: "0 0 0 3px rgba(66, 153, 225, 0.6)",
12153  inner: "inset 0 2px 4px 0 rgba(0,0,0,0.06)",
12154  none: "none",
12155  "dark-lg": "rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"
12156};
12157var shadows_default = shadows;
12158var transitionProperty = {
12159  common: "background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",
12160  colors: "background-color, border-color, color, fill, stroke",
12161  dimensions: "width, height",
12162  position: "left, right, top, bottom",
12163  background: "background-color, background-image, background-position"
12164};
12165var transitionTimingFunction = {
12166  "ease-in": "cubic-bezier(0.4, 0, 1, 1)",
12167  "ease-out": "cubic-bezier(0, 0, 0.2, 1)",
12168  "ease-in-out": "cubic-bezier(0.4, 0, 0.2, 1)"
12169};
12170var transitionDuration = {
12171  "ultra-fast": "50ms",
12172  faster: "100ms",
12173  fast: "150ms",
12174  normal: "200ms",
12175  slow: "300ms",
12176  slower: "400ms",
12177  "ultra-slow": "500ms"
12178};
12179var transition = {
12180  property: transitionProperty,
12181  easing: transitionTimingFunction,
12182  duration: transitionDuration
12183};
12184var transition_default = transition;
12185var blur = {
12186  none: 0,
12187  sm: "4px",
12188  base: "8px",
12189  md: "12px",
12190  lg: "16px",
12191  xl: "24px",
12192  "2xl": "40px",
12193  "3xl": "64px"
12194};
12195var blur_default = blur;
12196var borders$1 = {
12197  none: 0,
12198  "1px": "1px solid",
12199  "2px": "2px solid",
12200  "4px": "4px solid",
12201  "8px": "8px solid"
12202};
12203var borders_default = borders$1;
12204var typography = {
12205  letterSpacings: {
12206    tighter: "-0.05em",
12207    tight: "-0.025em",
12208    normal: "0",
12209    wide: "0.025em",
12210    wider: "0.05em",
12211    widest: "0.1em"
12212  },
12213  lineHeights: {
12214    normal: "normal",
12215    none: 1,
12216    shorter: 1.25,
12217    short: 1.375,
12218    base: 1.5,
12219    tall: 1.625,
12220    taller: "2",
12221    "3": ".75rem",
12222    "4": "1rem",
12223    "5": "1.25rem",
12224    "6": "1.5rem",
12225    "7": "1.75rem",
12226    "8": "2rem",
12227    "9": "2.25rem",
12228    "10": "2.5rem"
12229  },
12230  fontWeights: {
12231    hairline: 100,
12232    thin: 200,
12233    light: 300,
12234    normal: 400,
12235    medium: 500,
12236    semibold: 600,
12237    bold: 700,
12238    extrabold: 800,
12239    black: 900
12240  },
12241  fonts: {
12242    heading: `-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"`,
12243    body: `-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"`,
12244    mono: `SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace`
12245  },
12246  fontSizes: {
12247    "3xs": "0.45rem",
12248    "2xs": "0.625rem",
12249    xs: "0.75rem",
12250    sm: "0.875rem",
12251    md: "1rem",
12252    lg: "1.125rem",
12253    xl: "1.25rem",
12254    "2xl": "1.5rem",
12255    "3xl": "1.875rem",
12256    "4xl": "2.25rem",
12257    "5xl": "3rem",
12258    "6xl": "3.75rem",
12259    "7xl": "4.5rem",
12260    "8xl": "6rem",
12261    "9xl": "8rem"
12262  }
12263};
12264var typography_default = typography;
12265var spacing = {
12266  px: "1px",
12267  0.5: "0.125rem",
12268  1: "0.25rem",
12269  1.5: "0.375rem",
12270  2: "0.5rem",
12271  2.5: "0.625rem",
12272  3: "0.75rem",
12273  3.5: "0.875rem",
12274  4: "1rem",
12275  5: "1.25rem",
12276  6: "1.5rem",
12277  7: "1.75rem",
12278  8: "2rem",
12279  9: "2.25rem",
12280  10: "2.5rem",
12281  12: "3rem",
12282  14: "3.5rem",
12283  16: "4rem",
12284  20: "5rem",
12285  24: "6rem",
12286  28: "7rem",
12287  32: "8rem",
12288  36: "9rem",
12289  40: "10rem",
12290  44: "11rem",
12291  48: "12rem",
12292  52: "13rem",
12293  56: "14rem",
12294  60: "15rem",
12295  64: "16rem",
12296  72: "18rem",
12297  80: "20rem",
12298  96: "24rem"
12299};
12300var largeSizes = {
12301  max: "max-content",
12302  min: "min-content",
12303  full: "100%",
12304  "3xs": "14rem",
12305  "2xs": "16rem",
12306  xs: "20rem",
12307  sm: "24rem",
12308  md: "28rem",
12309  lg: "32rem",
12310  xl: "36rem",
12311  "2xl": "42rem",
12312  "3xl": "48rem",
12313  "4xl": "56rem",
12314  "5xl": "64rem",
12315  "6xl": "72rem",
12316  "7xl": "80rem",
12317  "8xl": "90rem",
12318  prose: "60ch"
12319};
12320var container = {
12321  sm: "640px",
12322  md: "768px",
12323  lg: "1024px",
12324  xl: "1280px"
12325};
12326var sizes$m = {
12327  ...spacing,
12328  ...largeSizes,
12329  container
12330};
12331var sizes_default = sizes$m;
12332var foundations = {
12333  breakpoints: breakpoints_default,
12334  zIndices: z_index_default,
12335  radii: radius_default,
12336  blur: blur_default,
12337  colors: colors_default,
12338  ...typography_default,
12339  sizes: sizes_default,
12340  shadows: shadows_default,
12341  space: spacing,
12342  borders: borders_default,
12343  transition: transition_default
12344};
12345function anatomy(name2, map = {}) {
12346  let called = false;
12347  function assert() {
12348    if (!called) {
12349      called = true;
12350      return;
12351    }
12352    throw new Error(
12353      "[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?"
12354    );
12355  }
12356  function parts(...values) {
12357    assert();
12358    for (const part of values) {
12359      map[part] = toPart(part);
12360    }
12361    return anatomy(name2, map);
12362  }
12363  function extend(...parts2) {
12364    for (const part of parts2) {
12365      if (part in map)
12366        continue;
12367      map[part] = toPart(part);
12368    }
12369    return anatomy(name2, map);
12370  }
12371  function selectors() {
12372    const value = Object.fromEntries(
12373      Object.entries(map).map(([key, part]) => [key, part.selector])
12374    );
12375    return value;
12376  }
12377  function classnames() {
12378    const value = Object.fromEntries(
12379      Object.entries(map).map(([key, part]) => [key, part.className])
12380    );
12381    return value;
12382  }
12383  function toPart(part) {
12384    const el2 = ["container", "root"].includes(part != null ? part : "") ? [name2] : [name2, part];
12385    const attr = el2.filter(Boolean).join("__");
12386    const className = `chakra-${attr}`;
12387    const partObj = {
12388      className,
12389      selector: `.${className}`,
12390      toString: () => part
12391    };
12392    return partObj;
12393  }
12394  const __type = {};
12395  return {
12396    parts,
12397    toPart,
12398    extend,
12399    selectors,
12400    classnames,
12401    get keys() {
12402      return Object.keys(map);
12403    },
12404    __type
12405  };
12406}
12407var accordionAnatomy = anatomy("accordion").parts("root", "container", "button", "panel").extend("icon");
12408var alertAnatomy = anatomy("alert").parts("title", "description", "container").extend("icon", "spinner");
12409var avatarAnatomy = anatomy("avatar").parts("label", "badge", "container").extend("excessLabel", "group");
12410var breadcrumbAnatomy = anatomy("breadcrumb").parts("link", "item", "container").extend("separator");
12411anatomy("button").parts();
12412var checkboxAnatomy = anatomy("checkbox").parts("control", "icon", "container").extend("label");
12413anatomy("progress").parts("track", "filledTrack").extend("label");
12414var drawerAnatomy = anatomy("drawer").parts("overlay", "dialogContainer", "dialog").extend("header", "closeButton", "body", "footer");
12415var editableAnatomy = anatomy("editable").parts(
12416  "preview",
12417  "input",
12418  "textarea"
12419);
12420var formAnatomy = anatomy("form").parts(
12421  "container",
12422  "requiredIndicator",
12423  "helperText"
12424);
12425var formErrorAnatomy = anatomy("formError").parts("text", "icon");
12426var inputAnatomy = anatomy("input").parts("addon", "field", "element");
12427var listAnatomy = anatomy("list").parts("container", "item", "icon");
12428var menuAnatomy = anatomy("menu").parts("button", "list", "item").extend("groupTitle", "command", "divider");
12429var modalAnatomy = anatomy("modal").parts("overlay", "dialogContainer", "dialog").extend("header", "closeButton", "body", "footer");
12430var numberInputAnatomy = anatomy("numberinput").parts(
12431  "root",
12432  "field",
12433  "stepperGroup",
12434  "stepper"
12435);
12436anatomy("pininput").parts("field");
12437var popoverAnatomy = anatomy("popover").parts("content", "header", "body", "footer").extend("popper", "arrow", "closeButton");
12438var progressAnatomy = anatomy("progress").parts(
12439  "label",
12440  "filledTrack",
12441  "track"
12442);
12443var radioAnatomy = anatomy("radio").parts(
12444  "container",
12445  "control",
12446  "label"
12447);
12448var selectAnatomy = anatomy("select").parts("field", "icon");
12449var sliderAnatomy = anatomy("slider").parts(
12450  "container",
12451  "track",
12452  "thumb",
12453  "filledTrack",
12454  "mark"
12455);
12456var statAnatomy = anatomy("stat").parts(
12457  "container",
12458  "label",
12459  "helpText",
12460  "number",
12461  "icon"
12462);
12463var switchAnatomy = anatomy("switch").parts(
12464  "container",
12465  "track",
12466  "thumb"
12467);
12468var tableAnatomy = anatomy("table").parts(
12469  "table",
12470  "thead",
12471  "tbody",
12472  "tr",
12473  "th",
12474  "td",
12475  "tfoot",
12476  "caption"
12477);
12478var tabsAnatomy = anatomy("tabs").parts(
12479  "root",
12480  "tab",
12481  "tablist",
12482  "tabpanel",
12483  "tabpanels",
12484  "indicator"
12485);
12486var tagAnatomy = anatomy("tag").parts(
12487  "container",
12488  "label",
12489  "closeButton"
12490);
12491var cardAnatomy = anatomy("card").parts(
12492  "container",
12493  "header",
12494  "body",
12495  "footer"
12496);
12497function guard(low, high, value) {
12498  return Math.min(Math.max(low, value), high);
12499}
12500class ColorError extends Error {
12501  constructor(color2) {
12502    super(`Failed to parse color: "${color2}"`);
12503  }
12504}
12505var ColorError$1 = ColorError;
12506function parseToRgba(color2) {
12507  if (typeof color2 !== "string")
12508    throw new ColorError$1(color2);
12509  if (color2.trim().toLowerCase() === "transparent")
12510    return [0, 0, 0, 0];
12511  let normalizedColor = color2.trim();
12512  normalizedColor = namedColorRegex.test(color2) ? nameToHex(color2) : color2;
12513  const reducedHexMatch = reducedHexRegex.exec(normalizedColor);
12514  if (reducedHexMatch) {
12515    const arr = Array.from(reducedHexMatch).slice(1);
12516    return [...arr.slice(0, 3).map((x2) => parseInt(r(x2, 2), 16)), parseInt(r(arr[3] || "f", 2), 16) / 255];
12517  }
12518  const hexMatch = hexRegex.exec(normalizedColor);
12519  if (hexMatch) {
12520    const arr = Array.from(hexMatch).slice(1);
12521    return [...arr.slice(0, 3).map((x2) => parseInt(x2, 16)), parseInt(arr[3] || "ff", 16) / 255];
12522  }
12523  const rgbaMatch = rgbaRegex.exec(normalizedColor);
12524  if (rgbaMatch) {
12525    const arr = Array.from(rgbaMatch).slice(1);
12526    return [...arr.slice(0, 3).map((x2) => parseInt(x2, 10)), parseFloat(arr[3] || "1")];
12527  }
12528  const hslaMatch = hslaRegex.exec(normalizedColor);
12529  if (hslaMatch) {
12530    const [h2, s, l2, a] = Array.from(hslaMatch).slice(1).map(parseFloat);
12531    if (guard(0, 100, s) !== s)
12532      throw new ColorError$1(color2);
12533    if (guard(0, 100, l2) !== l2)
12534      throw new ColorError$1(color2);
12535    return [...hslToRgb(h2, s, l2), a || 1];
12536  }
12537  throw new ColorError$1(color2);
12538}
12539function hash(str) {
12540  let hash2 = 5381;
12541  let i = str.length;
12542  while (i) {
12543    hash2 = hash2 * 33 ^ str.charCodeAt(--i);
12544  }
12545  return (hash2 >>> 0) % 2341;
12546}
12547const colorToInt = (x2) => parseInt(x2.replace(/_/g, ""), 36);
12548const compressedColorMap = "1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((acc, next2) => {
12549  const key = colorToInt(next2.substring(0, 3));
12550  const hex2 = colorToInt(next2.substring(3)).toString(16);
12551  let prefix2 = "";
12552  for (let i = 0; i < 6 - hex2.length; i++) {
12553    prefix2 += "0";
12554  }
12555  acc[key] = `${prefix2}${hex2}`;
12556  return acc;
12557}, {});
12558function nameToHex(color2) {
12559  const normalizedColorName = color2.toLowerCase().trim();
12560  const result = compressedColorMap[hash(normalizedColorName)];
12561  if (!result)
12562    throw new ColorError$1(color2);
12563  return `#${result}`;
12564}
12565const r = (str, amount) => Array.from(Array(amount)).map(() => str).join("");
12566const reducedHexRegex = new RegExp(`^#${r("([a-f0-9])", 3)}([a-f0-9])?$`, "i");
12567const hexRegex = new RegExp(`^#${r("([a-f0-9]{2})", 3)}([a-f0-9]{2})?$`, "i");
12568const rgbaRegex = new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${r(",\\s*(\\d+)\\s*", 2)}(?:,\\s*([\\d.]+))?\\s*\\)$`, "i");
12569const hslaRegex = /^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i;
12570const namedColorRegex = /^[a-z]+$/i;
12571const roundColor = (color2) => {
12572  return Math.round(color2 * 255);
12573};
12574const hslToRgb = (hue, saturation, lightness) => {
12575  let l2 = lightness / 100;
12576  if (saturation === 0) {
12577    return [l2, l2, l2].map(roundColor);
12578  }
12579  const huePrime = (hue % 360 + 360) % 360 / 60;
12580  const chroma = (1 - Math.abs(2 * l2 - 1)) * (saturation / 100);
12581  const secondComponent = chroma * (1 - Math.abs(huePrime % 2 - 1));
12582  let red = 0;
12583  let green = 0;
12584  let blue = 0;
12585  if (huePrime >= 0 && huePrime < 1) {
12586    red = chroma;
12587    green = secondComponent;
12588  } else if (huePrime >= 1 && huePrime < 2) {
12589    red = secondComponent;
12590    green = chroma;
12591  } else if (huePrime >= 2 && huePrime < 3) {
12592    green = chroma;
12593    blue = secondComponent;
12594  } else if (huePrime >= 3 && huePrime < 4) {
12595    green = secondComponent;
12596    blue = chroma;
12597  } else if (huePrime >= 4 && huePrime < 5) {
12598    red = secondComponent;
12599    blue = chroma;
12600  } else if (huePrime >= 5 && huePrime < 6) {
12601    red = chroma;
12602    blue = secondComponent;
12603  }
12604  const lightnessModification = l2 - chroma / 2;
12605  const finalRed = red + lightnessModification;
12606  const finalGreen = green + lightnessModification;
12607  const finalBlue = blue + lightnessModification;
12608  return [finalRed, finalGreen, finalBlue].map(roundColor);
12609};
12610function rgba$1(red, green, blue, alpha2) {
12611  return `rgba(${guard(0, 255, red).toFixed()}, ${guard(0, 255, green).toFixed()}, ${guard(0, 255, blue).toFixed()}, ${parseFloat(guard(0, 1, alpha2).toFixed(3))})`;
12612}
12613function transparentize$1(color2, amount) {
12614  const [r2, g2, b2, a] = parseToRgba(color2);
12615  return rgba$1(r2, g2, b2, a - amount);
12616}
12617function toHex(color2) {
12618  const [r2, g2, b2, a] = parseToRgba(color2);
12619  let hex2 = (x2) => {
12620    const h2 = guard(0, 255, x2).toString(16);
12621    return h2.length === 1 ? `0${h2}` : h2;
12622  };
12623  return `#${hex2(r2)}${hex2(g2)}${hex2(b2)}${a < 1 ? hex2(Math.round(a * 255)) : ""}`;
12624}
12625function dlv_es_default(t2, e2, l2, n2, r2) {
12626  for (e2 = e2.split ? e2.split(".") : e2, n2 = 0; n2 < e2.length; n2++)
12627    t2 = t2 ? t2[e2[n2]] : r2;
12628  return t2 === r2 ? l2 : t2;
12629}
12630var isEmptyObject = (obj) => Object.keys(obj).length === 0;
12631var getColor = (theme2, color2, fallback) => {
12632  const hex2 = dlv_es_default(theme2, `colors.${color2}`, color2);
12633  try {
12634    toHex(hex2);
12635    return hex2;
12636  } catch {
12637    return fallback != null ? fallback : "#000000";
12638  }
12639};
12640var getBrightness = (color2) => {
12641  const [r2, g2, b2] = parseToRgba(color2);
12642  return (r2 * 299 + g2 * 587 + b2 * 114) / 1e3;
12643};
12644var tone = (color2) => (theme2) => {
12645  const hex2 = getColor(theme2, color2);
12646  const brightness = getBrightness(hex2);
12647  const isDark2 = brightness < 128;
12648  return isDark2 ? "dark" : "light";
12649};
12650var isDark = (color2) => (theme2) => tone(color2)(theme2) === "dark";
12651var transparentize = (color2, opacity) => (theme2) => {
12652  const raw = getColor(theme2, color2);
12653  return transparentize$1(raw, 1 - opacity);
12654};
12655function generateStripe(size2 = "1rem", color2 = "rgba(255, 255, 255, 0.15)") {
12656  return {
12657    backgroundImage: `linear-gradient(
12658    45deg,
12659    ${color2} 25%,
12660    transparent 25%,
12661    transparent 50%,
12662    ${color2} 50%,
12663    ${color2} 75%,
12664    transparent 75%,
12665    transparent
12666  )`,
12667    backgroundSize: `${size2} ${size2}`
12668  };
12669}
12670var randomHex = () => `#${Math.floor(Math.random() * 16777215).toString(16).padEnd(6, "0")}`;
12671function randomColor(opts) {
12672  const fallback = randomHex();
12673  if (!opts || isEmptyObject(opts)) {
12674    return fallback;
12675  }
12676  if (opts.string && opts.colors) {
12677    return randomColorFromList(opts.string, opts.colors);
12678  }
12679  if (opts.string && !opts.colors) {
12680    return randomColorFromString(opts.string);
12681  }
12682  if (opts.colors && !opts.string) {
12683    return randomFromList(opts.colors);
12684  }
12685  return fallback;
12686}
12687function randomColorFromString(str) {
12688  let hash2 = 0;
12689  if (str.length === 0)
12690    return hash2.toString();
12691  for (let i = 0; i < str.length; i += 1) {
12692    hash2 = str.charCodeAt(i) + ((hash2 << 5) - hash2);
12693    hash2 = hash2 & hash2;
12694  }
12695  let color2 = "#";
12696  for (let j = 0; j < 3; j += 1) {
12697    const value = hash2 >> j * 8 & 255;
12698    color2 += `00${value.toString(16)}`.substr(-2);
12699  }
12700  return color2;
12701}
12702function randomColorFromList(str, list2) {
12703  let index = 0;
12704  if (str.length === 0)
12705    return list2[0];
12706  for (let i = 0; i < str.length; i += 1) {
12707    index = str.charCodeAt(i) + ((index << 5) - index);
12708    index = index & index;
12709  }
12710  index = (index % list2.length + list2.length) % list2.length;
12711  return list2[index];
12712}
12713function randomFromList(list2) {
12714  return list2[Math.floor(Math.random() * list2.length)];
12715}
12716function mode(light, dark) {
12717  return (props) => props.colorMode === "dark" ? dark : light;
12718}
12719function orient(options) {
12720  const { orientation, vertical, horizontal } = options;
12721  if (!orientation)
12722    return {};
12723  return orientation === "vertical" ? vertical : horizontal;
12724}
12725function toRef(operand) {
12726  if (isObject(operand) && operand.reference) {
12727    return operand.reference;
12728  }
12729  return String(operand);
12730}
12731var toExpr = (operator, ...operands) => operands.map(toRef).join(` ${operator} `).replace(/calc/g, "");
12732var add = (...operands) => `calc(${toExpr("+", ...operands)})`;
12733var subtract = (...operands) => `calc(${toExpr("-", ...operands)})`;
12734var multiply = (...operands) => `calc(${toExpr("*", ...operands)})`;
12735var divide = (...operands) => `calc(${toExpr("/", ...operands)})`;
12736var negate = (x2) => {
12737  const value = toRef(x2);
12738  if (value != null && !Number.isNaN(parseFloat(value))) {
12739    return String(value).startsWith("-") ? String(value).slice(1) : `-${value}`;
12740  }
12741  return multiply(value, -1);
12742};
12743var calc = Object.assign(
12744  (x2) => ({
12745    add: (...operands) => calc(add(x2, ...operands)),
12746    subtract: (...operands) => calc(subtract(x2, ...operands)),
12747    multiply: (...operands) => calc(multiply(x2, ...operands)),
12748    divide: (...operands) => calc(divide(x2, ...operands)),
12749    negate: () => calc(negate(x2)),
12750    toString: () => x2.toString()
12751  }),
12752  {
12753    add,
12754    subtract,
12755    multiply,
12756    divide,
12757    negate
12758  }
12759);
12760function isDecimal(value) {
12761  return !Number.isInteger(parseFloat(value.toString()));
12762}
12763function replaceWhiteSpace(value, replaceValue = "-") {
12764  return value.replace(/\s+/g, replaceValue);
12765}
12766function escape$1(value) {
12767  const valueStr = replaceWhiteSpace(value.toString());
12768  if (valueStr.includes("\\."))
12769    return value;
12770  return isDecimal(value) ? valueStr.replace(".", `\\.`) : value;
12771}
12772function addPrefix(value, prefix2 = "") {
12773  return [prefix2, escape$1(value)].filter(Boolean).join("-");
12774}
12775function toVarRef(name2, fallback) {
12776  return `var(${escape$1(name2)}${fallback ? `, ${fallback}` : ""})`;
12777}
12778function toVar(value, prefix2 = "") {
12779  return `--${addPrefix(value, prefix2)}`;
12780}
12781function cssVar(name2, options) {
12782  const cssVariable = toVar(name2, options == null ? void 0 : options.prefix);
12783  return {
12784    variable: cssVariable,
12785    reference: toVarRef(cssVariable, getFallback(options == null ? void 0 : options.fallback))
12786  };
12787}
12788function getFallback(fallback) {
12789  if (typeof fallback === "string")
12790    return fallback;
12791  return fallback == null ? void 0 : fallback.reference;
12792}
12793var { defineMultiStyleConfig: defineMultiStyleConfig$o, definePartsStyle: definePartsStyle$o } = createMultiStyleConfigHelpers(switchAnatomy.keys);
12794var $width = cssVar("switch-track-width");
12795var $height = cssVar("switch-track-height");
12796var $diff = cssVar("switch-track-diff");
12797var diffValue = calc.subtract($width, $height);
12798var $translateX = cssVar("switch-thumb-x");
12799var $bg$e = cssVar("switch-bg");
12800var baseStyleTrack$2 = defineStyle((props) => {
12801  const { colorScheme: c2 } = props;
12802  return {
12803    borderRadius: "full",
12804    p: "0.5",
12805    width: [$width.reference],
12806    height: [$height.reference],
12807    transitionProperty: "common",
12808    transitionDuration: "fast",
12809    [$bg$e.variable]: "colors.gray.300",
12810    _dark: {
12811      [$bg$e.variable]: "colors.whiteAlpha.400"
12812    },
12813    _focusVisible: {
12814      boxShadow: "outline"
12815    },
12816    _disabled: {
12817      opacity: 0.4,
12818      cursor: "not-allowed"
12819    },
12820    _checked: {
12821      [$bg$e.variable]: `colors.${c2}.500`,
12822      _dark: {
12823        [$bg$e.variable]: `colors.${c2}.200`
12824      }
12825    },
12826    bg: $bg$e.reference
12827  };
12828});
12829var baseStyleThumb$1 = defineStyle({
12830  bg: "white",
12831  transitionProperty: "transform",
12832  transitionDuration: "normal",
12833  borderRadius: "inherit",
12834  width: [$height.reference],
12835  height: [$height.reference],
12836  _checked: {
12837    transform: `translateX(${$translateX.reference})`
12838  }
12839});
12840var baseStyle$E = definePartsStyle$o((props) => ({
12841  container: {
12842    [$diff.variable]: diffValue,
12843    [$translateX.variable]: $diff.reference,
12844    _rtl: {
12845      [$translateX.variable]: calc($diff).negate().toString()
12846    }
12847  },
12848  track: baseStyleTrack$2(props),
12849  thumb: baseStyleThumb$1
12850}));
12851var sizes$l = {
12852  sm: definePartsStyle$o({
12853    container: {
12854      [$width.variable]: "1.375rem",
12855      [$height.variable]: "sizes.3"
12856    }
12857  }),
12858  md: definePartsStyle$o({
12859    container: {
12860      [$width.variable]: "1.875rem",
12861      [$height.variable]: "sizes.4"
12862    }
12863  }),
12864  lg: definePartsStyle$o({
12865    container: {
12866      [$width.variable]: "2.875rem",
12867      [$height.variable]: "sizes.6"
12868    }
12869  })
12870};
12871var switchTheme = defineMultiStyleConfig$o({
12872  baseStyle: baseStyle$E,
12873  sizes: sizes$l,
12874  defaultProps: {
12875    size: "md",
12876    colorScheme: "blue"
12877  }
12878});
12879var { defineMultiStyleConfig: defineMultiStyleConfig$n, definePartsStyle: definePartsStyle$n } = createMultiStyleConfigHelpers(tableAnatomy.keys);
12880var baseStyle$D = definePartsStyle$n({
12881  table: {
12882    fontVariantNumeric: "lining-nums tabular-nums",
12883    borderCollapse: "collapse",
12884    width: "full"
12885  },
12886  th: {
12887    fontFamily: "heading",
12888    fontWeight: "bold",
12889    textTransform: "uppercase",
12890    letterSpacing: "wider",
12891    textAlign: "start"
12892  },
12893  td: {
12894    textAlign: "start"
12895  },
12896  caption: {
12897    mt: 4,
12898    fontFamily: "heading",
12899    textAlign: "center",
12900    fontWeight: "medium"
12901  }
12902});
12903var numericStyles = defineStyle({
12904  "&[data-is-numeric=true]": {
12905    textAlign: "end"
12906  }
12907});
12908var variantSimple = definePartsStyle$n((props) => {
12909  const { colorScheme: c2 } = props;
12910  return {
12911    th: {
12912      color: mode("gray.600", "gray.400")(props),
12913      borderBottom: "1px",
12914      borderColor: mode(`${c2}.100`, `${c2}.700`)(props),
12915      ...numericStyles
12916    },
12917    td: {
12918      borderBottom: "1px",
12919      borderColor: mode(`${c2}.100`, `${c2}.700`)(props),
12920      ...numericStyles
12921    },
12922    caption: {
12923      color: mode("gray.600", "gray.100")(props)
12924    },
12925    tfoot: {
12926      tr: {
12927        "&:last-of-type": {
12928          th: { borderBottomWidth: 0 }
12929        }
12930      }
12931    }
12932  };
12933});
12934var variantStripe = definePartsStyle$n((props) => {
12935  const { colorScheme: c2 } = props;
12936  return {
12937    th: {
12938      color: mode("gray.600", "gray.400")(props),
12939      borderBottom: "1px",
12940      borderColor: mode(`${c2}.100`, `${c2}.700`)(props),
12941      ...numericStyles
12942    },
12943    td: {
12944      borderBottom: "1px",
12945      borderColor: mode(`${c2}.100`, `${c2}.700`)(props),
12946      ...numericStyles
12947    },
12948    caption: {
12949      color: mode("gray.600", "gray.100")(props)
12950    },
12951    tbody: {
12952      tr: {
12953        "&:nth-of-type(odd)": {
12954          "th, td": {
12955            borderBottomWidth: "1px",
12956            borderColor: mode(`${c2}.100`, `${c2}.700`)(props)
12957          },
12958          td: {
12959            background: mode(`${c2}.100`, `${c2}.700`)(props)
12960          }
12961        }
12962      }
12963    },
12964    tfoot: {
12965      tr: {
12966        "&:last-of-type": {
12967          th: { borderBottomWidth: 0 }
12968        }
12969      }
12970    }
12971  };
12972});
12973var variants$b = {
12974  simple: variantSimple,
12975  striped: variantStripe,
12976  unstyled: defineStyle({})
12977};
12978var sizes$k = {
12979  sm: definePartsStyle$n({
12980    th: {
12981      px: "4",
12982      py: "1",
12983      lineHeight: "4",
12984      fontSize: "xs"
12985    },
12986    td: {
12987      px: "4",
12988      py: "2",
12989      fontSize: "sm",
12990      lineHeight: "4"
12991    },
12992    caption: {
12993      px: "4",
12994      py: "2",
12995      fontSize: "xs"
12996    }
12997  }),
12998  md: definePartsStyle$n({
12999    th: {
13000      px: "6",
13001      py: "3",
13002      lineHeight: "4",
13003      fontSize: "xs"
13004    },
13005    td: {
13006      px: "6",
13007      py: "4",
13008      lineHeight: "5"
13009    },
13010    caption: {
13011      px: "6",
13012      py: "2",
13013      fontSize: "sm"
13014    }
13015  }),
13016  lg: definePartsStyle$n({
13017    th: {
13018      px: "8",
13019      py: "4",
13020      lineHeight: "5",
13021      fontSize: "sm"
13022    },
13023    td: {
13024      px: "8",
13025      py: "5",
13026      lineHeight: "6"
13027    },
13028    caption: {
13029      px: "6",
13030      py: "2",
13031      fontSize: "md"
13032    }
13033  })
13034};
13035var tableTheme = defineMultiStyleConfig$n({
13036  baseStyle: baseStyle$D,
13037  variants: variants$b,
13038  sizes: sizes$k,
13039  defaultProps: {
13040    variant: "simple",
13041    size: "md",
13042    colorScheme: "gray"
13043  }
13044});
13045var $fg$6 = cssVar$1("tabs-color");
13046var $bg$d = cssVar$1("tabs-bg");
13047var $border$3 = cssVar$1("tabs-border-color");
13048var { defineMultiStyleConfig: defineMultiStyleConfig$m, definePartsStyle: definePartsStyle$m } = createMultiStyleConfigHelpers(tabsAnatomy.keys);
13049var baseStyleRoot$1 = defineStyle((props) => {
13050  const { orientation } = props;
13051  return {
13052    display: orientation === "vertical" ? "flex" : "block"
13053  };
13054});
13055var baseStyleTab = defineStyle((props) => {
13056  const { isFitted } = props;
13057  return {
13058    flex: isFitted ? 1 : void 0,
13059    transitionProperty: "common",
13060    transitionDuration: "normal",
13061    _focusVisible: {
13062      zIndex: 1,
13063      boxShadow: "outline"
13064    },
13065    _disabled: {
13066      cursor: "not-allowed",
13067      opacity: 0.4
13068    }
13069  };
13070});
13071var baseStyleTablist = defineStyle((props) => {
13072  const { align = "start", orientation } = props;
13073  const alignments = {
13074    end: "flex-end",
13075    center: "center",
13076    start: "flex-start"
13077  };
13078  return {
13079    justifyContent: alignments[align],
13080    flexDirection: orientation === "vertical" ? "column" : "row"
13081  };
13082});
13083var baseStyleTabpanel = defineStyle({
13084  p: 4
13085});
13086var baseStyle$C = definePartsStyle$m((props) => ({
13087  root: baseStyleRoot$1(props),
13088  tab: baseStyleTab(props),
13089  tablist: baseStyleTablist(props),
13090  tabpanel: baseStyleTabpanel
13091}));
13092var sizes$j = {
13093  sm: definePartsStyle$m({
13094    tab: {
13095      py: 1,
13096      px: 4,
13097      fontSize: "sm"
13098    }
13099  }),
13100  md: definePartsStyle$m({
13101    tab: {
13102      fontSize: "md",
13103      py: 2,
13104      px: 4
13105    }
13106  }),
13107  lg: definePartsStyle$m({
13108    tab: {
13109      fontSize: "lg",
13110      py: 3,
13111      px: 4
13112    }
13113  })
13114};
13115var variantLine = definePartsStyle$m((props) => {
13116  const { colorScheme: c2, orientation } = props;
13117  const isVertical = orientation === "vertical";
13118  const borderProp = orientation === "vertical" ? "borderStart" : "borderBottom";
13119  const marginProp = isVertical ? "marginStart" : "marginBottom";
13120  return {
13121    tablist: {
13122      [borderProp]: "2px solid",
13123      borderColor: "inherit"
13124    },
13125    tab: {
13126      [borderProp]: "2px solid",
13127      borderColor: "transparent",
13128      [marginProp]: "-2px",
13129      _selected: {
13130        [$fg$6.variable]: `colors.${c2}.600`,
13131        _dark: {
13132          [$fg$6.variable]: `colors.${c2}.300`
13133        },
13134        borderColor: "currentColor"
13135      },
13136      _active: {
13137        [$bg$d.variable]: "colors.gray.200",
13138        _dark: {
13139          [$bg$d.variable]: "colors.whiteAlpha.300"
13140        }
13141      },
13142      _disabled: {
13143        _active: { bg: "none" }
13144      },
13145      color: $fg$6.reference,
13146      bg: $bg$d.reference
13147    }
13148  };
13149});
13150var variantEnclosed = definePartsStyle$m((props) => {
13151  const { colorScheme: c2 } = props;
13152  return {
13153    tab: {
13154      borderTopRadius: "md",
13155      border: "1px solid",
13156      borderColor: "transparent",
13157      mb: "-1px",
13158      [$border$3.variable]: "transparent",
13159      _selected: {
13160        [$fg$6.variable]: `colors.${c2}.600`,
13161        [$border$3.variable]: `colors.white`,
13162        _dark: {
13163          [$fg$6.variable]: `colors.${c2}.300`,
13164          [$border$3.variable]: `colors.gray.800`
13165        },
13166        borderColor: "inherit",
13167        borderBottomColor: $border$3.reference
13168      },
13169      color: $fg$6.reference
13170    },
13171    tablist: {
13172      mb: "-1px",
13173      borderBottom: "1px solid",
13174      borderColor: "inherit"
13175    }
13176  };
13177});
13178var variantEnclosedColored = definePartsStyle$m((props) => {
13179  const { colorScheme: c2 } = props;
13180  return {
13181    tab: {
13182      border: "1px solid",
13183      borderColor: "inherit",
13184      [$bg$d.variable]: "colors.gray.50",
13185      _dark: {
13186        [$bg$d.variable]: "colors.whiteAlpha.50"
13187      },
13188      mb: "-1px",
13189      _notLast: {
13190        marginEnd: "-1px"
13191      },
13192      _selected: {
13193        [$bg$d.variable]: "colors.white",
13194        [$fg$6.variable]: `colors.${c2}.600`,
13195        _dark: {
13196          [$bg$d.variable]: "colors.gray.800",
13197          [$fg$6.variable]: `colors.${c2}.300`
13198        },
13199        borderColor: "inherit",
13200        borderTopColor: "currentColor",
13201        borderBottomColor: "transparent"
13202      },
13203      color: $fg$6.reference,
13204      bg: $bg$d.reference
13205    },
13206    tablist: {
13207      mb: "-1px",
13208      borderBottom: "1px solid",
13209      borderColor: "inherit"
13210    }
13211  };
13212});
13213var variantSoftRounded = definePartsStyle$m((props) => {
13214  const { colorScheme: c2, theme: theme2 } = props;
13215  return {
13216    tab: {
13217      borderRadius: "full",
13218      fontWeight: "semibold",
13219      color: "gray.600",
13220      _selected: {
13221        color: getColor(theme2, `${c2}.700`),
13222        bg: getColor(theme2, `${c2}.100`)
13223      }
13224    }
13225  };
13226});
13227var variantSolidRounded = definePartsStyle$m((props) => {
13228  const { colorScheme: c2 } = props;
13229  return {
13230    tab: {
13231      borderRadius: "full",
13232      fontWeight: "semibold",
13233      [$fg$6.variable]: "colors.gray.600",
13234      _dark: {
13235        [$fg$6.variable]: "inherit"
13236      },
13237      _selected: {
13238        [$fg$6.variable]: "colors.white",
13239        [$bg$d.variable]: `colors.${c2}.600`,
13240        _dark: {
13241          [$fg$6.variable]: "colors.gray.800",
13242          [$bg$d.variable]: `colors.${c2}.300`
13243        }
13244      },
13245      color: $fg$6.reference,
13246      bg: $bg$d.reference
13247    }
13248  };
13249});
13250var variantUnstyled$2 = definePartsStyle$m({});
13251var variants$a = {
13252  line: variantLine,
13253  enclosed: variantEnclosed,
13254  "enclosed-colored": variantEnclosedColored,
13255  "soft-rounded": variantSoftRounded,
13256  "solid-rounded": variantSolidRounded,
13257  unstyled: variantUnstyled$2
13258};
13259var tabsTheme = defineMultiStyleConfig$m({
13260  baseStyle: baseStyle$C,
13261  sizes: sizes$j,
13262  variants: variants$a,
13263  defaultProps: {
13264    size: "md",
13265    variant: "line",
13266    colorScheme: "blue"
13267  }
13268});
13269var baseStyle$B = defineStyle({
13270  px: 1,
13271  textTransform: "uppercase",
13272  fontSize: "xs",
13273  borderRadius: "sm",
13274  fontWeight: "bold"
13275});
13276var $bg$c = cssVar$1("badge-bg");
13277var $fg$5 = cssVar$1("badge-color");
13278var variantSolid$3 = defineStyle((props) => {
13279  const { colorScheme: c2, theme: theme2 } = props;
13280  const dark = transparentize(`${c2}.500`, 0.6)(theme2);
13281  return {
13282    [$bg$c.variable]: `colors.${c2}.500`,
13283    [$fg$5.variable]: `colors.white`,
13284    _dark: {
13285      [$bg$c.variable]: dark,
13286      [$fg$5.variable]: `colors.whiteAlpha.800`
13287    },
13288    bg: $bg$c.reference,
13289    color: $fg$5.reference
13290  };
13291});
13292var variantSubtle$1 = defineStyle((props) => {
13293  const { colorScheme: c2, theme: theme2 } = props;
13294  const darkBg = transparentize(`${c2}.200`, 0.16)(theme2);
13295  return {
13296    [$bg$c.variable]: `colors.${c2}.100`,
13297    [$fg$5.variable]: `colors.${c2}.800`,
13298    _dark: {
13299      [$bg$c.variable]: darkBg,
13300      [$fg$5.variable]: `colors.${c2}.200`
13301    },
13302    bg: $bg$c.reference,
13303    color: $fg$5.reference
13304  };
13305});
13306var variantOutline$2 = defineStyle((props) => {
13307  const { colorScheme: c2, theme: theme2 } = props;
13308  const darkColor = transparentize(`${c2}.200`, 0.8)(theme2);
13309  return {
13310    [$fg$5.variable]: `colors.${c2}.500`,
13311    _dark: {
13312      [$fg$5.variable]: darkColor
13313    },
13314    color: $fg$5.reference,
13315    boxShadow: `inset 0 0 0px 1px ${$fg$5.reference}`
13316  };
13317});
13318var variants$9 = {
13319  solid: variantSolid$3,
13320  subtle: variantSubtle$1,
13321  outline: variantOutline$2
13322};
13323var badgeTheme = defineStyleConfig({
13324  baseStyle: baseStyle$B,
13325  variants: variants$9,
13326  defaultProps: {
13327    variant: "subtle",
13328    colorScheme: "gray"
13329  }
13330});
13331var { defineMultiStyleConfig: defineMultiStyleConfig$l, definePartsStyle: definePartsStyle$l } = createMultiStyleConfigHelpers(tagAnatomy.keys);
13332var baseStyleContainer$4 = defineStyle({
13333  fontWeight: "medium",
13334  lineHeight: 1.2,
13335  outline: 0,
13336  borderRadius: "md",
13337  _focusVisible: {
13338    boxShadow: "outline"
13339  }
13340});
13341var baseStyleLabel$3 = defineStyle({
13342  lineHeight: 1.2,
13343  overflow: "visible"
13344});
13345var baseStyleCloseButton$3 = defineStyle({
13346  fontSize: "lg",
13347  w: "5",
13348  h: "5",
13349  transitionProperty: "common",
13350  transitionDuration: "normal",
13351  borderRadius: "full",
13352  marginStart: "1.5",
13353  marginEnd: "-1",
13354  opacity: 0.5,
13355  _disabled: {
13356    opacity: 0.4
13357  },
13358  _focusVisible: {
13359    boxShadow: "outline",
13360    bg: "rgba(0, 0, 0, 0.14)"
13361  },
13362  _hover: {
13363    opacity: 0.8
13364  },
13365  _active: {
13366    opacity: 1
13367  }
13368});
13369var baseStyle$A = definePartsStyle$l({
13370  container: baseStyleContainer$4,
13371  label: baseStyleLabel$3,
13372  closeButton: baseStyleCloseButton$3
13373});
13374var sizes$i = {
13375  sm: definePartsStyle$l({
13376    container: {
13377      minH: "5",
13378      minW: "5",
13379      fontSize: "xs",
13380      px: "2"
13381    },
13382    closeButton: {
13383      marginEnd: "-2px",
13384      marginStart: "0.35rem"
13385    }
13386  }),
13387  md: definePartsStyle$l({
13388    container: {
13389      minH: "6",
13390      minW: "6",
13391      fontSize: "sm",
13392      px: "2"
13393    }
13394  }),
13395  lg: definePartsStyle$l({
13396    container: {
13397      minH: "8",
13398      minW: "8",
13399      fontSize: "md",
13400      px: "3"
13401    }
13402  })
13403};
13404var variants$8 = {
13405  subtle: definePartsStyle$l((props) => {
13406    var _a5;
13407    return {
13408      container: (_a5 = badgeTheme.variants) == null ? void 0 : _a5.subtle(props)
13409    };
13410  }),
13411  solid: definePartsStyle$l((props) => {
13412    var _a5;
13413    return {
13414      container: (_a5 = badgeTheme.variants) == null ? void 0 : _a5.solid(props)
13415    };
13416  }),
13417  outline: definePartsStyle$l((props) => {
13418    var _a5;
13419    return {
13420      container: (_a5 = badgeTheme.variants) == null ? void 0 : _a5.outline(props)
13421    };
13422  })
13423};
13424var tagTheme = defineMultiStyleConfig$l({
13425  variants: variants$8,
13426  baseStyle: baseStyle$A,
13427  sizes: sizes$i,
13428  defaultProps: {
13429    size: "md",
13430    variant: "subtle",
13431    colorScheme: "gray"
13432  }
13433});
13434var { definePartsStyle: definePartsStyle$k, defineMultiStyleConfig: defineMultiStyleConfig$k } = createMultiStyleConfigHelpers(inputAnatomy.keys);
13435var baseStyle$z = definePartsStyle$k({
13436  field: {
13437    width: "100%",
13438    minWidth: 0,
13439    outline: 0,
13440    position: "relative",
13441    appearance: "none",
13442    transitionProperty: "common",
13443    transitionDuration: "normal",
13444    _disabled: {
13445      opacity: 0.4,
13446      cursor: "not-allowed"
13447    }
13448  }
13449});
13450var size = {
13451  lg: defineStyle({
13452    fontSize: "lg",
13453    px: "4",
13454    h: "12",
13455    borderRadius: "md"
13456  }),
13457  md: defineStyle({
13458    fontSize: "md",
13459    px: "4",
13460    h: "10",
13461    borderRadius: "md"
13462  }),
13463  sm: defineStyle({
13464    fontSize: "sm",
13465    px: "3",
13466    h: "8",
13467    borderRadius: "sm"
13468  }),
13469  xs: defineStyle({
13470    fontSize: "xs",
13471    px: "2",
13472    h: "6",
13473    borderRadius: "sm"
13474  })
13475};
13476var sizes$h = {
13477  lg: definePartsStyle$k({
13478    field: size.lg,
13479    addon: size.lg
13480  }),
13481  md: definePartsStyle$k({
13482    field: size.md,
13483    addon: size.md
13484  }),
13485  sm: definePartsStyle$k({
13486    field: size.sm,
13487    addon: size.sm
13488  }),
13489  xs: definePartsStyle$k({
13490    field: size.xs,
13491    addon: size.xs
13492  })
13493};
13494function getDefaults(props) {
13495  const { focusBorderColor: fc2, errorBorderColor: ec2 } = props;
13496  return {
13497    focusBorderColor: fc2 || mode("blue.500", "blue.300")(props),
13498    errorBorderColor: ec2 || mode("red.500", "red.300")(props)
13499  };
13500}
13501var variantOutline$1 = definePartsStyle$k((props) => {
13502  const { theme: theme2 } = props;
13503  const { focusBorderColor: fc2, errorBorderColor: ec2 } = getDefaults(props);
13504  return {
13505    field: {
13506      border: "1px solid",
13507      borderColor: "inherit",
13508      bg: "inherit",
13509      _hover: {
13510        borderColor: mode("gray.300", "whiteAlpha.400")(props)
13511      },
13512      _readOnly: {
13513        boxShadow: "none !important",
13514        userSelect: "all"
13515      },
13516      _invalid: {
13517        borderColor: getColor(theme2, ec2),
13518        boxShadow: `0 0 0 1px ${getColor(theme2, ec2)}`
13519      },
13520      _focusVisible: {
13521        zIndex: 1,
13522        borderColor: getColor(theme2, fc2),
13523        boxShadow: `0 0 0 1px ${getColor(theme2, fc2)}`
13524      }
13525    },
13526    addon: {
13527      border: "1px solid",
13528      borderColor: mode("inherit", "whiteAlpha.50")(props),
13529      bg: mode("gray.100", "whiteAlpha.300")(props)
13530    }
13531  };
13532});
13533var variantFilled = definePartsStyle$k((props) => {
13534  const { theme: theme2 } = props;
13535  const { focusBorderColor: fc2, errorBorderColor: ec2 } = getDefaults(props);
13536  return {
13537    field: {
13538      border: "2px solid",
13539      borderColor: "transparent",
13540      bg: mode("gray.100", "whiteAlpha.50")(props),
13541      _hover: {
13542        bg: mode("gray.200", "whiteAlpha.100")(props)
13543      },
13544      _readOnly: {
13545        boxShadow: "none !important",
13546        userSelect: "all"
13547      },
13548      _invalid: {
13549        borderColor: getColor(theme2, ec2)
13550      },
13551      _focusVisible: {
13552        bg: "transparent",
13553        borderColor: getColor(theme2, fc2)
13554      }
13555    },
13556    addon: {
13557      border: "2px solid",
13558      borderColor: "transparent",
13559      bg: mode("gray.100", "whiteAlpha.50")(props)
13560    }
13561  };
13562});
13563var variantFlushed = definePartsStyle$k((props) => {
13564  const { theme: theme2 } = props;
13565  const { focusBorderColor: fc2, errorBorderColor: ec2 } = getDefaults(props);
13566  return {
13567    field: {
13568      borderBottom: "1px solid",
13569      borderColor: "inherit",
13570      borderRadius: "0",
13571      px: "0",
13572      bg: "transparent",
13573      _readOnly: {
13574        boxShadow: "none !important",
13575        userSelect: "all"
13576      },
13577      _invalid: {
13578        borderColor: getColor(theme2, ec2),
13579        boxShadow: `0px 1px 0px 0px ${getColor(theme2, ec2)}`
13580      },
13581      _focusVisible: {
13582        borderColor: getColor(theme2, fc2),
13583        boxShadow: `0px 1px 0px 0px ${getColor(theme2, fc2)}`
13584      }
13585    },
13586    addon: {
13587      borderBottom: "2px solid",
13588      borderColor: "inherit",
13589      borderRadius: "0",
13590      px: "0",
13591      bg: "transparent"
13592    }
13593  };
13594});
13595var variantUnstyled$1 = definePartsStyle$k({
13596  field: {
13597    bg: "transparent",
13598    px: "0",
13599    height: "auto"
13600  },
13601  addon: {
13602    bg: "transparent",
13603    px: "0",
13604    height: "auto"
13605  }
13606});
13607var variants$7 = {
13608  outline: variantOutline$1,
13609  filled: variantFilled,
13610  flushed: variantFlushed,
13611  unstyled: variantUnstyled$1
13612};
13613var inputTheme = defineMultiStyleConfig$k({
13614  baseStyle: baseStyle$z,
13615  sizes: sizes$h,
13616  variants: variants$7,
13617  defaultProps: {
13618    size: "md",
13619    variant: "outline"
13620  }
13621});
13622var _a$3;
13623var baseStyle$y = defineStyle({
13624  ...(_a$3 = inputTheme.baseStyle) == null ? void 0 : _a$3.field,
13625  paddingY: "2",
13626  minHeight: "20",
13627  lineHeight: "short",
13628  verticalAlign: "top"
13629});
13630var _a2$2, _b$2;
13631var variants$6 = {
13632  outline: defineStyle(
13633    (props) => {
13634      var _a42, _b3;
13635      return (_b3 = (_a42 = inputTheme.variants) == null ? void 0 : _a42.outline(props).field) != null ? _b3 : {};
13636    }
13637  ),
13638  flushed: defineStyle(
13639    (props) => {
13640      var _a42, _b3;
13641      return (_b3 = (_a42 = inputTheme.variants) == null ? void 0 : _a42.flushed(props).field) != null ? _b3 : {};
13642    }
13643  ),
13644  filled: defineStyle(
13645    (props) => {
13646      var _a42, _b3;
13647      return (_b3 = (_a42 = inputTheme.variants) == null ? void 0 : _a42.filled(props).field) != null ? _b3 : {};
13648    }
13649  ),
13650  unstyled: (_b$2 = (_a2$2 = inputTheme.variants) == null ? void 0 : _a2$2.unstyled.field) != null ? _b$2 : {}
13651};
13652var _a3, _b2, _c$1, _d$1, _e$1, _f$1, _g$1, _h$1;
13653var sizes$g = {
13654  xs: (_b2 = (_a3 = inputTheme.sizes) == null ? void 0 : _a3.xs.field) != null ? _b2 : {},
13655  sm: (_d$1 = (_c$1 = inputTheme.sizes) == null ? void 0 : _c$1.sm.field) != null ? _d$1 : {},
13656  md: (_f$1 = (_e$1 = inputTheme.sizes) == null ? void 0 : _e$1.md.field) != null ? _f$1 : {},
13657  lg: (_h$1 = (_g$1 = inputTheme.sizes) == null ? void 0 : _g$1.lg.field) != null ? _h$1 : {}
13658};
13659var textareaTheme = defineStyleConfig({
13660  baseStyle: baseStyle$y,
13661  sizes: sizes$g,
13662  variants: variants$6,
13663  defaultProps: {
13664    size: "md",
13665    variant: "outline"
13666  }
13667});
13668var $bg$b = cssVar("tooltip-bg");
13669var $fg$4 = cssVar("tooltip-fg");
13670var $arrowBg$1 = cssVar("popper-arrow-bg");
13671var baseStyle$x = defineStyle({
13672  bg: $bg$b.reference,
13673  color: $fg$4.reference,
13674  [$bg$b.variable]: "colors.gray.700",
13675  [$fg$4.variable]: "colors.whiteAlpha.900",
13676  _dark: {
13677    [$bg$b.variable]: "colors.gray.300",
13678    [$fg$4.variable]: "colors.gray.900"
13679  },
13680  [$arrowBg$1.variable]: $bg$b.reference,
13681  px: "2",
13682  py: "0.5",
13683  borderRadius: "sm",
13684  fontWeight: "medium",
13685  fontSize: "sm",
13686  boxShadow: "md",
13687  maxW: "xs",
13688  zIndex: "tooltip"
13689});
13690var tooltipTheme = defineStyleConfig({
13691  baseStyle: baseStyle$x
13692});
13693var { defineMultiStyleConfig: defineMultiStyleConfig$j, definePartsStyle: definePartsStyle$j } = createMultiStyleConfigHelpers(progressAnatomy.keys);
13694var filledStyle = defineStyle((props) => {
13695  const { colorScheme: c2, theme: t2, isIndeterminate, hasStripe } = props;
13696  const stripeStyle = mode(
13697    generateStripe(),
13698    generateStripe("1rem", "rgba(0,0,0,0.1)")
13699  )(props);
13700  const bgColor = mode(`${c2}.500`, `${c2}.200`)(props);
13701  const gradient = `linear-gradient(
13702    to right,
13703    transparent 0%,
13704    ${getColor(t2, bgColor)} 50%,
13705    transparent 100%
13706  )`;
13707  const addStripe = !isIndeterminate && hasStripe;
13708  return {
13709    ...addStripe && stripeStyle,
13710    ...isIndeterminate ? { bgImage: gradient } : { bgColor }
13711  };
13712});
13713var baseStyleLabel$2 = defineStyle({
13714  lineHeight: "1",
13715  fontSize: "0.25em",
13716  fontWeight: "bold",
13717  color: "white"
13718});
13719var baseStyleTrack$1 = defineStyle((props) => {
13720  return {
13721    bg: mode("gray.100", "whiteAlpha.300")(props)
13722  };
13723});
13724var baseStyleFilledTrack$1 = defineStyle((props) => {
13725  return {
13726    transitionProperty: "common",
13727    transitionDuration: "slow",
13728    ...filledStyle(props)
13729  };
13730});
13731var baseStyle$w = definePartsStyle$j((props) => ({
13732  label: baseStyleLabel$2,
13733  filledTrack: baseStyleFilledTrack$1(props),
13734  track: baseStyleTrack$1(props)
13735}));
13736var sizes$f = {
13737  xs: definePartsStyle$j({
13738    track: { h: "1" }
13739  }),
13740  sm: definePartsStyle$j({
13741    track: { h: "2" }
13742  }),
13743  md: definePartsStyle$j({
13744    track: { h: "3" }
13745  }),
13746  lg: definePartsStyle$j({
13747    track: { h: "4" }
13748  })
13749};
13750var progressTheme = defineMultiStyleConfig$j({
13751  sizes: sizes$f,
13752  baseStyle: baseStyle$w,
13753  defaultProps: {
13754    size: "md",
13755    colorScheme: "blue"
13756  }
13757});
13758var isFunction$2 = (value) => typeof value === "function";
13759function runIfFn$1(valueOrFn, ...args) {
13760  return isFunction$2(valueOrFn) ? valueOrFn(...args) : valueOrFn;
13761}
13762var { definePartsStyle: definePartsStyle$i, defineMultiStyleConfig: defineMultiStyleConfig$i } = createMultiStyleConfigHelpers(checkboxAnatomy.keys);
13763var $size$2 = cssVar$1("checkbox-size");
13764var baseStyleControl$1 = defineStyle((props) => {
13765  const { colorScheme: c2 } = props;
13766  return {
13767    w: $size$2.reference,
13768    h: $size$2.reference,
13769    transitionProperty: "box-shadow",
13770    transitionDuration: "normal",
13771    border: "2px solid",
13772    borderRadius: "sm",
13773    borderColor: "inherit",
13774    color: "white",
13775    _checked: {
13776      bg: mode(`${c2}.500`, `${c2}.200`)(props),
13777      borderColor: mode(`${c2}.500`, `${c2}.200`)(props),
13778      color: mode("white", "gray.900")(props),
13779      _hover: {
13780        bg: mode(`${c2}.600`, `${c2}.300`)(props),
13781        borderColor: mode(`${c2}.600`, `${c2}.300`)(props)
13782      },
13783      _disabled: {
13784        borderColor: mode("gray.200", "transparent")(props),
13785        bg: mode("gray.200", "whiteAlpha.300")(props),
13786        color: mode("gray.500", "whiteAlpha.500")(props)
13787      }
13788    },
13789    _indeterminate: {
13790      bg: mode(`${c2}.500`, `${c2}.200`)(props),
13791      borderColor: mode(`${c2}.500`, `${c2}.200`)(props),
13792      color: mode("white", "gray.900")(props)
13793    },
13794    _disabled: {
13795      bg: mode("gray.100", "whiteAlpha.100")(props),
13796      borderColor: mode("gray.100", "transparent")(props)
13797    },
13798    _focusVisible: {
13799      boxShadow: "outline"
13800    },
13801    _invalid: {
13802      borderColor: mode("red.500", "red.300")(props)
13803    }
13804  };
13805});
13806var baseStyleContainer$3 = defineStyle({
13807  _disabled: { cursor: "not-allowed" }
13808});
13809var baseStyleLabel$1 = defineStyle({
13810  userSelect: "none",
13811  _disabled: { opacity: 0.4 }
13812});
13813var baseStyleIcon$5 = defineStyle({
13814  transitionProperty: "transform",
13815  transitionDuration: "normal"
13816});
13817var baseStyle$v = definePartsStyle$i((props) => ({
13818  icon: baseStyleIcon$5,
13819  container: baseStyleContainer$3,
13820  control: runIfFn$1(baseStyleControl$1, props),
13821  label: baseStyleLabel$1
13822}));
13823var sizes$e = {
13824  sm: definePartsStyle$i({
13825    control: { [$size$2.variable]: "sizes.3" },
13826    label: { fontSize: "sm" },
13827    icon: { fontSize: "3xs" }
13828  }),
13829  md: definePartsStyle$i({
13830    control: { [$size$2.variable]: "sizes.4" },
13831    label: { fontSize: "md" },
13832    icon: { fontSize: "2xs" }
13833  }),
13834  lg: definePartsStyle$i({
13835    control: { [$size$2.variable]: "sizes.5" },
13836    label: { fontSize: "lg" },
13837    icon: { fontSize: "2xs" }
13838  })
13839};
13840var checkboxTheme = defineMultiStyleConfig$i({
13841  baseStyle: baseStyle$v,
13842  sizes: sizes$e,
13843  defaultProps: {
13844    size: "md",
13845    colorScheme: "blue"
13846  }
13847});
13848var { defineMultiStyleConfig: defineMultiStyleConfig$h, definePartsStyle: definePartsStyle$h } = createMultiStyleConfigHelpers(radioAnatomy.keys);
13849var baseStyleControl = defineStyle((props) => {
13850  var _a5;
13851  const controlStyle = (_a5 = runIfFn$1(checkboxTheme.baseStyle, props)) == null ? void 0 : _a5.control;
13852  return {
13853    ...controlStyle,
13854    borderRadius: "full",
13855    _checked: {
13856      ...controlStyle == null ? void 0 : controlStyle["_checked"],
13857      _before: {
13858        content: `""`,
13859        display: "inline-block",
13860        pos: "relative",
13861        w: "50%",
13862        h: "50%",
13863        borderRadius: "50%",
13864        bg: "currentColor"
13865      }
13866    }
13867  };
13868});
13869var baseStyle$u = definePartsStyle$h((props) => {
13870  var _a5, _b3, _c2, _d2;
13871  return {
13872    label: (_b3 = (_a5 = checkboxTheme).baseStyle) == null ? void 0 : _b3.call(_a5, props).label,
13873    container: (_d2 = (_c2 = checkboxTheme).baseStyle) == null ? void 0 : _d2.call(_c2, props).c
13873ontainer,
13874    control: baseStyleControl(props)
13875  };
13876});
13877var sizes$d = {
13878  md: definePartsStyle$h({
13879    control: { w: "4", h: "4" },
13880    label: { fontSize: "md" }
13881  }),
13882  lg: definePartsStyle$h({
13883    control: { w: "5", h: "5" },
13884    label: { fontSize: "lg" }
13885  }),
13886  sm: definePartsStyle$h({
13887    control: { width: "3", height: "3" },
13888    label: { fontSize: "sm" }
13889  })
13890};
13891var radioTheme = defineMultiStyleConfig$h({
13892  baseStyle: baseStyle$u,
13893  sizes: sizes$d,
13894  defaultProps: {
13895    size: "md",
13896    colorScheme: "blue"
13897  }
13898});
13899var { defineMultiStyleConfig: defineMultiStyleConfig$g, definePartsStyle: definePartsStyle$g } = createMultiStyleConfigHelpers(selectAnatomy.keys);
13900var $bg$a = cssVar$1("select-bg");
13901var _a$2;
13902var baseStyleField$1 = defineStyle({
13903  ...(_a$2 = inputTheme.baseStyle) == null ? void 0 : _a$2.field,
13904  appearance: "none",
13905  paddingBottom: "1px",
13906  lineHeight: "normal",
13907  bg: $bg$a.reference,
13908  [$bg$a.variable]: "colors.white",
13909  _dark: {
13910    [$bg$a.variable]: "colors.gray.700"
13911  },
13912  "> option, > optgroup": {
13913    bg: $bg$a.reference
13914  }
13915});
13916var baseStyleIcon$4 = defineStyle({
13917  width: "6",
13918  height: "100%",
13919  insetEnd: "2",
13920  position: "relative",
13921  color: "currentColor",
13922  fontSize: "xl",
13923  _disabled: {
13924    opacity: 0.5
13925  }
13926});
13927var baseStyle$t = definePartsStyle$g({
13928  field: baseStyleField$1,
13929  icon: baseStyleIcon$4
13930});
13931var iconSpacing = defineStyle({
13932  paddingInlineEnd: "8"
13933});
13934var _a2$1, _b$1, _c, _d, _e, _f, _g, _h;
13935var sizes$c = {
13936  lg: {
13937    ...(_a2$1 = inputTheme.sizes) == null ? void 0 : _a2$1.lg,
13938    field: {
13939      ...(_b$1 = inputTheme.sizes) == null ? void 0 : _b$1.lg.field,
13940      ...iconSpacing
13941    }
13942  },
13943  md: {
13944    ...(_c = inputTheme.sizes) == null ? void 0 : _c.md,
13945    field: {
13946      ...(_d = inputTheme.sizes) == null ? void 0 : _d.md.field,
13947      ...iconSpacing
13948    }
13949  },
13950  sm: {
13951    ...(_e = inputTheme.sizes) == null ? void 0 : _e.sm,
13952    field: {
13953      ...(_f = inputTheme.sizes) == null ? void 0 : _f.sm.field,
13954      ...iconSpacing
13955    }
13956  },
13957  xs: {
13958    ...(_g = inputTheme.sizes) == null ? void 0 : _g.xs,
13959    field: {
13960      ...(_h = inputTheme.sizes) == null ? void 0 : _h.xs.field,
13961      ...iconSpacing
13962    },
13963    icon: {
13964      insetEnd: "1"
13965    }
13966  }
13967};
13968var selectTheme = defineMultiStyleConfig$g({
13969  baseStyle: baseStyle$t,
13970  sizes: sizes$c,
13971  variants: inputTheme.variants,
13972  defaultProps: inputTheme.defaultProps
13973});
13974var $startColor = cssVar$1("skeleton-start-color");
13975var $endColor = cssVar$1("skeleton-end-color");
13976var baseStyle$s = defineStyle({
13977  [$startColor.variable]: "colors.gray.100",
13978  [$endColor.variable]: "colors.gray.400",
13979  _dark: {
13980    [$startColor.variable]: "colors.gray.800",
13981    [$endColor.variable]: "colors.gray.600"
13982  },
13983  background: $startColor.reference,
13984  borderColor: $endColor.reference,
13985  opacity: 0.7,
13986  borderRadius: "sm"
13987});
13988var skeletonTheme = defineStyleConfig({
13989  baseStyle: baseStyle$s
13990});
13991var $bg$9 = cssVar$1("skip-link-bg");
13992var baseStyle$r = defineStyle({
13993  borderRadius: "md",
13994  fontWeight: "semibold",
13995  _focusVisible: {
13996    boxShadow: "outline",
13997    padding: "4",
13998    position: "fixed",
13999    top: "6",
14000    insetStart: "6",
14001    [$bg$9.variable]: "colors.white",
14002    _dark: {
14003      [$bg$9.variable]: "colors.gray.700"
14004    },
14005    bg: $bg$9.reference
14006  }
14007});
14008var skipLinkTheme = defineStyleConfig({
14009  baseStyle: baseStyle$r
14010});
14011var { defineMultiStyleConfig: defineMultiStyleConfig$f, definePartsStyle: definePartsStyle$f } = createMultiStyleConfigHelpers(sliderAnatomy.keys);
14012var $thumbSize = cssVar$1("slider-thumb-size");
14013var $trackSize = cssVar$1("slider-track-size");
14014var $bg$8 = cssVar$1("slider-bg");
14015var baseStyleContainer$2 = defineStyle((props) => {
14016  const { orientation } = props;
14017  return {
14018    display: "inline-block",
14019    position: "relative",
14020    cursor: "pointer",
14021    _disabled: {
14022      opacity: 0.6,
14023      cursor: "default",
14024      pointerEvents: "none"
14025    },
14026    ...orient({
14027      orientation,
14028      vertical: { h: "100%" },
14029      horizontal: { w: "100%" }
14030    })
14031  };
14032});
14033var baseStyleTrack = defineStyle((props) => {
14034  const orientationStyles = orient({
14035    orientation: props.orientation,
14036    horizontal: { h: $trackSize.reference },
14037    vertical: { w: $trackSize.reference }
14038  });
14039  return {
14040    ...orientationStyles,
14041    overflow: "hidden",
14042    borderRadius: "sm",
14043    [$bg$8.variable]: "colors.gray.200",
14044    _dark: {
14045      [$bg$8.variable]: "colors.whiteAlpha.200"
14046    },
14047    _disabled: {
14048      [$bg$8.variable]: "colors.gray.300",
14049      _dark: {
14050        [$bg$8.variable]: "colors.whiteAlpha.300"
14051      }
14052    },
14053    bg: $bg$8.reference
14054  };
14055});
14056var baseStyleThumb = defineStyle((props) => {
14057  const { orientation } = props;
14058  const orientationStyle = orient({
14059    orientation,
14060    vertical: {
14061      left: "50%",
14062      transform: `translateX(-50%)`,
14063      _active: {
14064        transform: `translateX(-50%) scale(1.15)`
14065      }
14066    },
14067    horizontal: {
14068      top: "50%",
14069      transform: `translateY(-50%)`,
14070      _active: {
14071        transform: `translateY(-50%) scale(1.15)`
14072      }
14073    }
14074  });
14075  return {
14076    ...orientationStyle,
14077    w: $thumbSize.reference,
14078    h: $thumbSize.reference,
14079    display: "flex",
14080    alignItems: "center",
14081    justifyContent: "center",
14082    position: "absolute",
14083    outline: 0,
14084    zIndex: 1,
14085    borderRadius: "full",
14086    bg: "white",
14087    boxShadow: "base",
14088    border: "1px solid",
14089    borderColor: "transparent",
14090    transitionProperty: "transform",
14091    transitionDuration: "normal",
14092    _focusVisible: {
14093      boxShadow: "outline"
14094    },
14095    _disabled: {
14096      bg: "gray.300"
14097    }
14098  };
14099});
14100var baseStyleFilledTrack = defineStyle((props) => {
14101  const { colorScheme: c2 } = props;
14102  return {
14103    width: "inherit",
14104    height: "inherit",
14105    [$bg$8.variable]: `colors.${c2}.500`,
14106    _dark: {
14107      [$bg$8.variable]: `colors.${c2}.200`
14108    },
14109    bg: $bg$8.reference
14110  };
14111});
14112var baseStyle$q = definePartsStyle$f((props) => ({
14113  container: baseStyleContainer$2(props),
14114  track: baseStyleTrack(props),
14115  thumb: baseStyleThumb(props),
14116  filledTrack: baseStyleFilledTrack(props)
14117}));
14118var sizeLg = definePartsStyle$f({
14119  container: {
14120    [$thumbSize.variable]: `sizes.4`,
14121    [$trackSize.variable]: `sizes.1`
14122  }
14123});
14124var sizeMd = definePartsStyle$f({
14125  container: {
14126    [$thumbSize.variable]: `sizes.3.5`,
14127    [$trackSize.variable]: `sizes.1`
14128  }
14129});
14130var sizeSm = definePartsStyle$f({
14131  container: {
14132    [$thumbSize.variable]: `sizes.2.5`,
14133    [$trackSize.variable]: `sizes.0.5`
14134  }
14135});
14136var sizes$b = {
14137  lg: sizeLg,
14138  md: sizeMd,
14139  sm: sizeSm
14140};
14141var sliderTheme = defineMultiStyleConfig$f({
14142  baseStyle: baseStyle$q,
14143  sizes: sizes$b,
14144  defaultProps: {
14145    size: "md",
14146    colorScheme: "blue"
14147  }
14148});
14149var $size$1 = cssVar("spinner-size");
14150var baseStyle$p = defineStyle({
14151  width: [$size$1.reference],
14152  height: [$size$1.reference]
14153});
14154var sizes$a = {
14155  xs: defineStyle({
14156    [$size$1.variable]: "sizes.3"
14157  }),
14158  sm: defineStyle({
14159    [$size$1.variable]: "sizes.4"
14160  }),
14161  md: defineStyle({
14162    [$size$1.variable]: "sizes.6"
14163  }),
14164  lg: defineStyle({
14165    [$size$1.variable]: "sizes.8"
14166  }),
14167  xl: defineStyle({
14168    [$size$1.variable]: "sizes.12"
14169  })
14170};
14171var spinnerTheme = defineStyleConfig({
14172  baseStyle: baseStyle$p,
14173  sizes: sizes$a,
14174  defaultProps: {
14175    size: "md"
14176  }
14177});
14178var { defineMultiStyleConfig: defineMultiStyleConfig$e, definePartsStyle: definePartsStyle$e } = createMultiStyleConfigHelpers(statAnatomy.keys);
14179var baseStyleLabel = defineStyle({
14180  fontWeight: "medium"
14181});
14182var baseStyleHelpText = defineStyle({
14183  opacity: 0.8,
14184  marginBottom: "2"
14185});
14186var baseStyleNumber = defineStyle({
14187  verticalAlign: "baseline",
14188  fontWeight: "semibold"
14189});
14190var baseStyleIcon$3 = defineStyle({
14191  marginEnd: 1,
14192  w: "3.5",
14193  h: "3.5",
14194  verticalAlign: "middle"
14195});
14196var baseStyle$o = definePartsStyle$e({
14197  container: {},
14198  label: baseStyleLabel,
14199  helpText: baseStyleHelpText,
14200  number: baseStyleNumber,
14201  icon: baseStyleIcon$3
14202});
14203var sizes$9 = {
14204  md: definePartsStyle$e({
14205    label: { fontSize: "sm" },
14206    helpText: { fontSize: "sm" },
14207    number: { fontSize: "2xl" }
14208  })
14209};
14210var statTheme = defineMultiStyleConfig$e({
14211  baseStyle: baseStyle$o,
14212  sizes: sizes$9,
14213  defaultProps: {
14214    size: "md"
14215  }
14216});
14217var $bg$7 = cssVar$1("kbd-bg");
14218var baseStyle$n = defineStyle({
14219  [$bg$7.variable]: "colors.gray.100",
14220  _dark: {
14221    [$bg$7.variable]: "colors.whiteAlpha.100"
14222  },
14223  bg: $bg$7.reference,
14224  borderRadius: "md",
14225  borderWidth: "1px",
14226  borderBottomWidth: "3px",
14227  fontSize: "0.8em",
14228  fontWeight: "bold",
14229  lineHeight: "normal",
14230  px: "0.4em",
14231  whiteSpace: "nowrap"
14232});
14233var kbdTheme = defineStyleConfig({
14234  baseStyle: baseStyle$n
14235});
14236var baseStyle$m = defineStyle({
14237  transitionProperty: "common",
14238  transitionDuration: "fast",
14239  transitionTimingFunction: "ease-out",
14240  cursor: "pointer",
14241  textDecoration: "none",
14242  outline: "none",
14243  color: "inherit",
14244  _hover: {
14245    textDecoration: "underline"
14246  },
14247  _focusVisible: {
14248    boxShadow: "outline"
14249  }
14250});
14251var linkTheme = defineStyleConfig({
14252  baseStyle: baseStyle$m
14253});
14254var { defineMultiStyleConfig: defineMultiStyleConfig$d, definePartsStyle: definePartsStyle$d } = createMultiStyleConfigHelpers(listAnatomy.keys);
14255var baseStyleIcon$2 = defineStyle({
14256  marginEnd: "2",
14257  display: "inline",
14258  verticalAlign: "text-bottom"
14259});
14260var baseStyle$l = definePartsStyle$d({
14261  icon: baseStyleIcon$2
14262});
14263var listTheme = defineMultiStyleConfig$d({
14264  baseStyle: baseStyle$l
14265});
14266var { defineMultiStyleConfig: defineMultiStyleConfig$c, definePartsStyle: definePartsStyle$c } = createMultiStyleConfigHelpers(menuAnatomy.keys);
14267var $bg$6 = cssVar$1("menu-bg");
14268var $shadow$1 = cssVar$1("menu-shadow");
14269var baseStyleList = defineStyle({
14270  [$bg$6.variable]: "#fff",
14271  [$shadow$1.variable]: "shadows.sm",
14272  _dark: {
14273    [$bg$6.variable]: "colors.gray.700",
14274    [$shadow$1.variable]: "shadows.dark-lg"
14275  },
14276  color: "inherit",
14277  minW: "3xs",
14278  py: "2",
14279  zIndex: 1,
14280  borderRadius: "md",
14281  borderWidth: "1px",
14282  bg: $bg$6.reference,
14283  boxShadow: $shadow$1.reference
14284});
14285var baseStyleItem = defineStyle({
14286  py: "1.5",
14287  px: "3",
14288  transitionProperty: "background",
14289  transitionDuration: "ultra-fast",
14290  transitionTimingFunction: "ease-in",
14291  _focus: {
14292    [$bg$6.variable]: "colors.gray.100",
14293    _dark: {
14294      [$bg$6.variable]: "colors.whiteAlpha.100"
14295    }
14296  },
14297  _active: {
14298    [$bg$6.variable]: "colors.gray.200",
14299    _dark: {
14300      [$bg$6.variable]: "colors.whiteAlpha.200"
14301    }
14302  },
14303  _expanded: {
14304    [$bg$6.variable]: "colors.gray.100",
14305    _dark: {
14306      [$bg$6.variable]: "colors.whiteAlpha.100"
14307    }
14308  },
14309  _disabled: {
14310    opacity: 0.4,
14311    cursor: "not-allowed"
14312  },
14313  bg: $bg$6.reference
14314});
14315var baseStyleGroupTitle = defineStyle({
14316  mx: 4,
14317  my: 2,
14318  fontWeight: "semibold",
14319  fontSize: "sm"
14320});
14321var baseStyleCommand = defineStyle({
14322  opacity: 0.6
14323});
14324var baseStyleDivider = defineStyle({
14325  border: 0,
14326  borderBottom: "1px solid",
14327  borderColor: "inherit",
14328  my: "2",
14329  opacity: 0.6
14330});
14331var baseStyleButton$1 = defineStyle({
14332  transitionProperty: "common",
14333  transitionDuration: "normal"
14334});
14335var baseStyle$k = definePartsStyle$c({
14336  button: baseStyleButton$1,
14337  list: baseStyleList,
14338  item: baseStyleItem,
14339  groupTitle: baseStyleGroupTitle,
14340  command: baseStyleCommand,
14341  divider: baseStyleDivider
14342});
14343var menuTheme = defineMultiStyleConfig$c({
14344  baseStyle: baseStyle$k
14345});
14346var { defineMultiStyleConfig: defineMultiStyleConfig$b, definePartsStyle: definePartsStyle$b } = createMultiStyleConfigHelpers(modalAnatomy.keys);
14347var baseStyleOverlay$1 = defineStyle({
14348  bg: "blackAlpha.600",
14349  zIndex: "modal"
14350});
14351var baseStyleDialogContainer$1 = defineStyle((props) => {
14352  const { isCentered, scrollBehavior } = props;
14353  return {
14354    display: "flex",
14355    zIndex: "modal",
14356    justifyContent: "center",
14357    alignItems: isCentered ? "center" : "flex-start",
14358    overflow: scrollBehavior === "inside" ? "hidden" : "auto",
14359    overscrollBehaviorY: "none"
14360  };
14361});
14362var baseStyleDialog$1 = defineStyle((props) => {
14363  const { scrollBehavior } = props;
14364  return {
14365    borderRadius: "md",
14366    bg: mode("white", "gray.700")(props),
14367    color: "inherit",
14368    my: "16",
14369    zIndex: "modal",
14370    maxH: scrollBehavior === "inside" ? "calc(100% - 7.5rem)" : void 0,
14371    boxShadow: mode("lg", "dark-lg")(props)
14372  };
14373});
14374var baseStyleHeader$2 = defineStyle({
14375  px: "6",
14376  py: "4",
14377  fontSize: "xl",
14378  fontWeight: "semibold"
14379});
14380var baseStyleCloseButton$2 = defineStyle({
14381  position: "absolute",
14382  top: "2",
14383  insetEnd: "3"
14384});
14385var baseStyleBody$2 = defineStyle((props) => {
14386  const { scrollBehavior } = props;
14387  return {
14388    px: "6",
14389    py: "2",
14390    flex: "1",
14391    overflow: scrollBehavior === "inside" ? "auto" : void 0
14392  };
14393});
14394var baseStyleFooter$2 = defineStyle({
14395  px: "6",
14396  py: "4"
14397});
14398var baseStyle$j = definePartsStyle$b((props) => ({
14399  overlay: baseStyleOverlay$1,
14400  dialogContainer: runIfFn$1(baseStyleDialogContainer$1, props),
14401  dialog: runIfFn$1(baseStyleDialog$1, props),
14402  header: baseStyleHeader$2,
14403  closeButton: baseStyleCloseButton$2,
14404  body: runIfFn$1(baseStyleBody$2, props),
14405  footer: baseStyleFooter$2
14406}));
14407function getSize$3(value) {
14408  if (value === "full") {
14409    return definePartsStyle$b({
14410      dialog: {
14411        maxW: "100vw",
14412        minH: "$100vh",
14413        my: "0",
14414        borderRadius: "0"
14415      }
14416    });
14417  }
14418  return definePartsStyle$b({
14419    dialog: { maxW: value }
14420  });
14421}
14422var sizes$8 = {
14423  xs: getSize$3("xs"),
14424  sm: getSize$3("sm"),
14425  md: getSize$3("md"),
14426  lg: getSize$3("lg"),
14427  xl: getSize$3("xl"),
14428  "2xl": getSize$3("2xl"),
14429  "3xl": getSize$3("3xl"),
14430  "4xl": getSize$3("4xl"),
14431  "5xl": getSize$3("5xl"),
14432  "6xl": getSize$3("6xl"),
14433  full: getSize$3("full")
14434};
14435var modalTheme = defineMultiStyleConfig$b({
14436  baseStyle: baseStyle$j,
14437  sizes: sizes$8,
14438  defaultProps: { size: "md" }
14439});
14440var { defineMultiStyleConfig: defineMultiStyleConfig$a, definePartsStyle: definePartsStyle$a } = createMultiStyleConfigHelpers(numberInputAnatomy.keys);
14441var $stepperWidth = cssVar("number-input-stepper-width");
14442var $inputPadding = cssVar("number-input-input-padding");
14443var inputPaddingValue = calc($stepperWidth).add("0.5rem").toString();
14444var $bg$5 = cssVar("number-input-bg");
14445var $fg$3 = cssVar("number-input-color");
14446var $border$2 = cssVar("number-input-border-color");
14447var baseStyleRoot = defineStyle({
14448  [$stepperWidth.variable]: "sizes.6",
14449  [$inputPadding.variable]: inputPaddingValue
14450});
14451var baseStyleField = defineStyle(
14452  (props) => {
14453    var _a5, _b3;
14454    return (_b3 = (_a5 = runIfFn$1(inputTheme.baseStyle, props)) == null ? void 0 : _a5.field) != null ? _b3 : {};
14455  }
14456);
14457var baseStyleStepperGroup = defineStyle({
14458  width: $stepperWidth.reference
14459});
14460var baseStyleStepper = defineStyle({
14461  borderStart: "1px solid",
14462  borderStartColor: $border$2.reference,
14463  color: $fg$3.reference,
14464  bg: $bg$5.reference,
14465  [$fg$3.variable]: "colors.chakra-body-text",
14466  [$border$2.variable]: "colors.chakra-border-color",
14467  _dark: {
14468    [$fg$3.variable]: "colors.whiteAlpha.800",
14469    [$border$2.variable]: "colors.whiteAlpha.300"
14470  },
14471  _active: {
14472    [$bg$5.variable]: "colors.gray.200",
14473    _dark: {
14474      [$bg$5.variable]: "colors.whiteAlpha.300"
14475    }
14476  },
14477  _disabled: {
14478    opacity: 0.4,
14479    cursor: "not-allowed"
14480  }
14481});
14482var baseStyle$i = definePartsStyle$a((props) => {
14483  var _a5;
14484  return {
14485    root: baseStyleRoot,
14486    field: (_a5 = runIfFn$1(baseStyleField, props)) != null ? _a5 : {},
14487    stepperGroup: baseStyleStepperGroup,
14488    stepper: baseStyleStepper
14489  };
14490});
14491function getSize$2(size2) {
14492  var _a5, _b3, _c2;
14493  const sizeStyle = (_a5 = inputTheme.sizes) == null ? void 0 : _a5[size2];
14494  const radius = {
14495    lg: "md",
14496    md: "md",
14497    sm: "sm",
14498    xs: "sm"
14499  };
14500  const _fontSize = (_c2 = (_b3 = sizeStyle.field) == null ? void 0 : _b3.fontSize) != null ? _c2 : "md";
14501  const fontSize = typography_default.fontSizes[_fontSize];
14502  return definePartsStyle$a({
14503    field: {
14504      ...sizeStyle.field,
14505      paddingInlineEnd: $inputPadding.reference,
14506      verticalAlign: "top"
14507    },
14508    stepper: {
14509      fontSize: calc(fontSize).multiply(0.75).toString(),
14510      _first: {
14511        borderTopEndRadius: radius[size2]
14512      },
14513      _last: {
14514        borderBottomEndRadius: radius[size2],
14515        mt: "-1px",
14516        borderTopWidth: 1
14517      }
14518    }
14519  });
14520}
14521var sizes$7 = {
14522  xs: getSize$2("xs"),
14523  sm: getSize$2("sm"),
14524  md: getSize$2("md"),
14525  lg: getSize$2("lg")
14526};
14527var numberInputTheme = defineMultiStyleConfig$a({
14528  baseStyle: baseStyle$i,
14529  sizes: sizes$7,
14530  variants: inputTheme.variants,
14531  defaultProps: inputTheme.defaultProps
14532});
14533var _a$1;
14534var baseStyle$h = defineStyle({
14535  ...(_a$1 = inputTheme.baseStyle) == null ? void 0 : _a$1.field,
14536  textAlign: "center"
14537});
14538var sizes$6 = {
14539  lg: defineStyle({
14540    fontSize: "lg",
14541    w: 12,
14542    h: 12,
14543    borderRadius: "md"
14544  }),
14545  md: defineStyle({
14546    fontSize: "md",
14547    w: 10,
14548    h: 10,
14549    borderRadius: "md"
14550  }),
14551  sm: defineStyle({
14552    fontSize: "sm",
14553    w: 8,
14554    h: 8,
14555    borderRadius: "sm"
14556  }),
14557  xs: defineStyle({
14558    fontSize: "xs",
14559    w: 6,
14560    h: 6,
14561    borderRadius: "sm"
14562  })
14563};
14564var _a2, _b;
14565var variants$5 = {
14566  outline: defineStyle(
14567    (props) => {
14568      var _a32, _b22, _c2;
14569      return (_c2 = (_b22 = runIfFn$1((_a32 = inputTheme.variants) == null ? void 0 : _a32.outline, props)) == null ? void 0 : _b22.field) != null ? _c2 : {};
14570    }
14571  ),
14572  flushed: defineStyle(
14573    (props) => {
14574      var _a32, _b22, _c2;
14575      return (_c2 = (_b22 = runIfFn$1((_a32 = inputTheme.variants) == null ? void 0 : _a32.flushed, props)) == null ? void 0 : _b22.field) != null ? _c2 : {};
14576    }
14577  ),
14578  filled: defineStyle(
14579    (props) => {
14580      var _a32, _b22, _c2;
14581      return (_c2 = (_b22 = runIfFn$1((_a32 = inputTheme.variants) == null ? void 0 : _a32.filled, props)) == null ? void 0 : _b22.field) != null ? _c2 : {};
14582    }
14583  ),
14584  unstyled: (_b = (_a2 = inputTheme.variants) == null ? void 0 : _a2.unstyled.field) != null ? _b : {}
14585};
14586var pinInputTheme = defineStyleConfig({
14587  baseStyle: baseStyle$h,
14588  sizes: sizes$6,
14589  variants: variants$5,
14590  defaultProps: inputTheme.defaultProps
14591});
14592var { defineMultiStyleConfig: defineMultiStyleConfig$9, definePartsStyle: definePartsStyle$9 } = createMultiStyleConfigHelpers(popoverAnatomy.keys);
14593var $popperBg = cssVar("popper-bg");
14594var $arrowBg = cssVar("popper-arrow-bg");
14595var $arrowShadowColor = cssVar("popper-arrow-shadow-color");
14596var baseStylePopper = defineStyle({ zIndex: 10 });
14597var baseStyleContent = defineStyle({
14598  [$popperBg.variable]: `colors.white`,
14599  bg: $popperBg.reference,
14600  [$arrowBg.variable]: $popperBg.reference,
14601  [$arrowShadowColor.variable]: `colors.gray.200`,
14602  _dark: {
14603    [$popperBg.variable]: `colors.gray.700`,
14604    [$arrowShadowColor.variable]: `colors.whiteAlpha.300`
14605  },
14606  width: "xs",
14607  border: "1px solid",
14608  borderColor: "inherit",
14609  borderRadius: "md",
14610  boxShadow: "sm",
14611  zIndex: "inherit",
14612  _focusVisible: {
14613    outline: 0,
14614    boxShadow: "outline"
14615  }
14616});
14617var baseStyleHeader$1 = defineStyle({
14618  px: 3,
14619  py: 2,
14620  borderBottomWidth: "1px"
14621});
14622var baseStyleBody$1 = defineStyle({
14623  px: 3,
14624  py: 2
14625});
14626var baseStyleFooter$1 = defineStyle({
14627  px: 3,
14628  py: 2,
14629  borderTopWidth: "1px"
14630});
14631var baseStyleCloseButton$1 = defineStyle({
14632  position: "absolute",
14633  borderRadius: "md",
14634  top: 1,
14635  insetEnd: 2,
14636  padding: 2
14637});
14638var baseStyle$g = definePartsStyle$9({
14639  popper: baseStylePopper,
14640  content: baseStyleContent,
14641  header: baseStyleHeader$1,
14642  body: baseStyleBody$1,
14643  footer: baseStyleFooter$1,
14644  closeButton: baseStyleCloseButton$1
14645});
14646var popoverTheme = defineMultiStyleConfig$9({
14647  baseStyle: baseStyle$g
14648});
14649var { definePartsStyle: definePartsStyle$8, defineMultiStyleConfig: defineMultiStyleConfig$8 } = createMultiStyleConfigHelpers(drawerAnatomy.keys);
14650var $bg$4 = cssVar$1("drawer-bg");
14651var $bs = cssVar$1("drawer-box-shadow");
14652function getSize$1(value) {
14653  if (value === "full") {
14654    return definePartsStyle$8({
14655      dialog: { maxW: "100vw", h: "100vh" }
14656    });
14657  }
14658  return definePartsStyle$8({
14659    dialog: { maxW: value }
14660  });
14661}
14662var baseStyleOverlay = defineStyle({
14663  bg: "blackAlpha.600",
14664  zIndex: "overlay"
14665});
14666var baseStyleDialogContainer = defineStyle({
14667  display: "flex",
14668  zIndex: "modal",
14669  justifyContent: "center"
14670});
14671var baseStyleDialog = defineStyle((props) => {
14672  const { isFullHeight } = props;
14673  return {
14674    ...isFullHeight && { height: "100vh" },
14675    zIndex: "modal",
14676    maxH: "100vh",
14677    color: "inherit",
14678    [$bg$4.variable]: "colors.white",
14679    [$bs.variable]: "shadows.lg",
14680    _dark: {
14681      [$bg$4.variable]: "colors.gray.700",
14682      [$bs.variable]: "shadows.dark-lg"
14683    },
14684    bg: $bg$4.reference,
14685    boxShadow: $bs.reference
14686  };
14687});
14688var baseStyleHeader = defineStyle({
14689  px: "6",
14690  py: "4",
14691  fontSize: "xl",
14692  fontWeight: "semibold"
14693});
14694var baseStyleCloseButton = defineStyle({
14695  position: "absolute",
14696  top: "2",
14697  insetEnd: "3"
14698});
14699var baseStyleBody = defineStyle({
14700  px: "6",
14701  py: "2",
14702  flex: "1",
14703  overflow: "auto"
14704});
14705var baseStyleFooter = defineStyle({
14706  px: "6",
14707  py: "4"
14708});
14709var baseStyle$f = definePartsStyle$8((props) => ({
14710  overlay: baseStyleOverlay,
14711  dialogContainer: baseStyleDialogContainer,
14712  dialog: runIfFn$1(baseStyleDialog, props),
14713  header: baseStyleHeader,
14714  closeButton: baseStyleCloseButton,
14715  body: baseStyleBody,
14716  footer: baseStyleFooter
14717}));
14718var sizes$5 = {
14719  xs: getSize$1("xs"),
14720  sm: getSize$1("md"),
14721  md: getSize$1("lg"),
14722  lg: getSize$1("2xl"),
14723  xl: getSize$1("4xl"),
14724  full: getSize$1("full")
14725};
14726var drawerTheme = defineMultiStyleConfig$8({
14727  baseStyle: baseStyle$f,
14728  sizes: sizes$5,
14729  defaultProps: {
14730    size: "xs"
14731  }
14732});
14733var { definePartsStyle: definePartsStyle$7, defineMultiStyleConfig: defineMultiStyleConfig$7 } = createMultiStyleConfigHelpers(editableAnatomy.keys);
14734var baseStylePreview = defineStyle({
14735  borderRadius: "md",
14736  py: "1",
14737  transitionProperty: "common",
14738  transitionDuration: "normal"
14739});
14740var baseStyleInput = defineStyle({
14741  borderRadius: "md",
14742  py: "1",
14743  transitionProperty: "common",
14744  transitionDuration: "normal",
14745  width: "full",
14746  _focusVisible: { boxShadow: "outline" },
14747  _placeholder: { opacity: 0.6 }
14748});
14749var baseStyleTextarea = defineStyle({
14750  borderRadius: "md",
14751  py: "1",
14752  transitionProperty: "common",
14753  transitionDuration: "normal",
14754  width: "full",
14755  _focusVisible: { boxShadow: "outline" },
14756  _placeholder: { opacity: 0.6 }
14757});
14758var baseStyle$e = definePartsStyle$7({
14759  preview: baseStylePreview,
14760  input: baseStyleInput,
14761  textarea: baseStyleTextarea
14762});
14763var editableTheme = defineMultiStyleConfig$7({
14764  baseStyle: baseStyle$e
14765});
14766var { definePartsStyle: definePartsStyle$6, defineMultiStyleConfig: defineMultiStyleConfig$6 } = createMultiStyleConfigHelpers(formAnatomy.keys);
14767var $fg$2 = cssVar$1("form-control-color");
14768var baseStyleRequiredIndicator = defineStyle({
14769  marginStart: "1",
14770  [$fg$2.variable]: "colors.red.500",
14771  _dark: {
14772    [$fg$2.variable]: "colors.red.300"
14773  },
14774  color: $fg$2.reference
14775});
14776var baseStyleHelperText = defineStyle({
14777  mt: "2",
14778  [$fg$2.variable]: "colors.gray.600",
14779  _dark: {
14780    [$fg$2.variable]: "colors.whiteAlpha.600"
14781  },
14782  color: $fg$2.reference,
14783  lineHeight: "normal",
14784  fontSize: "sm"
14785});
14786var baseStyle$d = definePartsStyle$6({
14787  container: {
14788    width: "100%",
14789    position: "relative"
14790  },
14791  requiredIndicator: baseStyleRequiredIndicator,
14792  helperText: baseStyleHelperText
14793});
14794var formTheme = defineMultiStyleConfig$6({
14795  baseStyle: baseStyle$d
14796});
14797var { definePartsStyle: definePartsStyle$5, defineMultiStyleConfig: defineMultiStyleConfig$5 } = createMultiStyleConfigHelpers(formErrorAnatomy.keys);
14798var $fg$1 = cssVar$1("form-error-color");
14799var baseStyleText = defineStyle({
14800  [$fg$1.variable]: `colors.red.500`,
14801  _dark: {
14802    [$fg$1.variable]: `colors.red.300`
14803  },
14804  color: $fg$1.reference,
14805  mt: "2",
14806  fontSize: "sm",
14807  lineHeight: "normal"
14808});
14809var baseStyleIcon$1 = defineStyle({
14810  marginEnd: "0.5em",
14811  [$fg$1.variable]: `colors.red.500`,
14812  _dark: {
14813    [$fg$1.variable]: `colors.red.300`
14814  },
14815  color: $fg$1.reference
14816});
14817var baseStyle$c = definePartsStyle$5({
14818  text: baseStyleText,
14819  icon: baseStyleIcon$1
14820});
14821var formErrorTheme = defineMultiStyleConfig$5({
14822  baseStyle: baseStyle$c
14823});
14824var baseStyle$b = defineStyle({
14825  fontSize: "md",
14826  marginEnd: "3",
14827  mb: "2",
14828  fontWeight: "medium",
14829  transitionProperty: "common",
14830  transitionDuration: "normal",
14831  opacity: 1,
14832  _disabled: {
14833    opacity: 0.4
14834  }
14835});
14836var formLabelTheme = defineStyleConfig({
14837  baseStyle: baseStyle$b
14838});
14839var baseStyle$a = defineStyle({
14840  fontFamily: "heading",
14841  fontWeight: "bold"
14842});
14843var sizes$4 = {
14844  "4xl": defineStyle({
14845    fontSize: ["6xl", null, "7xl"],
14846    lineHeight: 1
14847  }),
14848  "3xl": defineStyle({
14849    fontSize: ["5xl", null, "6xl"],
14850    lineHeight: 1
14851  }),
14852  "2xl": defineStyle({
14853    fontSize: ["4xl", null, "5xl"],
14854    lineHeight: [1.2, null, 1]
14855  }),
14856  xl: defineStyle({
14857    fontSize: ["3xl", null, "4xl"],
14858    lineHeight: [1.33, null, 1.2]
14859  }),
14860  lg: defineStyle({
14861    fontSize: ["2xl", null, "3xl"],
14862    lineHeight: [1.33, null, 1.2]
14863  }),
14864  md: defineStyle({
14865    fontSize: "xl",
14866    lineHeight: 1.2
14867  }),
14868  sm: defineStyle({
14869    fontSize: "md",
14870    lineHeight: 1.2
14871  }),
14872  xs: defineStyle({
14873    fontSize: "sm",
14874    lineHeight: 1.2
14875  })
14876};
14877var headingTheme = defineStyleConfig({
14878  baseStyle: baseStyle$a,
14879  sizes: sizes$4,
14880  defaultProps: {
14881    size: "xl"
14882  }
14883});
14884var { defineMultiStyleConfig: defineMultiStyleConfig$4, definePartsStyle: definePartsStyle$4 } = createMultiStyleConfigHelpers(breadcrumbAnatomy.keys);
14885var baseStyleLink = defineStyle({
14886  transitionProperty: "common",
14887  transitionDuration: "fast",
14888  transitionTimingFunction: "ease-out",
14889  cursor: "pointer",
14890  textDecoration: "none",
14891  outline: "none",
14892  color: "inherit",
14893  _hover: {
14894    textDecoration: "underline"
14895  },
14896  _focusVisible: {
14897    boxShadow: "outline"
14898  }
14899});
14900var baseStyle$9 = definePartsStyle$4({
14901  link: baseStyleLink
14902});
14903var breadcrumbTheme = defineMultiStyleConfig$4({
14904  baseStyle: baseStyle$9
14905});
14906var baseStyle$8 = defineStyle({
14907  lineHeight: "1.2",
14908  borderRadius: "md",
14909  fontWeight: "semibold",
14910  transitionProperty: "common",
14911  transitionDuration: "normal",
14912  _focusVisible: {
14913    boxShadow: "outline"
14914  },
14915  _disabled: {
14916    opacity: 0.4,
14917    cursor: "not-allowed",
14918    boxShadow: "none"
14919  },
14920  _hover: {
14921    _disabled: {
14922      bg: "initial"
14923    }
14924  }
14925});
14926var variantGhost = defineStyle((props) => {
14927  const { colorScheme: c2, theme: theme2 } = props;
14928  if (c2 === "gray") {
14929    return {
14930      color: mode(`inherit`, `whiteAlpha.900`)(props),
14931      _hover: {
14932        bg: mode(`gray.100`, `whiteAlpha.200`)(props)
14933      },
14934      _active: { bg: mode(`gray.200`, `whiteAlpha.300`)(props) }
14935    };
14936  }
14937  const darkHoverBg = transparentize(`${c2}.200`, 0.12)(theme2);
14938  const darkActiveBg = transparentize(`${c2}.200`, 0.24)(theme2);
14939  return {
14940    color: mode(`${c2}.600`, `${c2}.200`)(props),
14941    bg: "transparent",
14942    _hover: {
14943      bg: mode(`${c2}.50`, darkHoverBg)(props)
14944    },
14945    _active: {
14946      bg: mode(`${c2}.100`, darkActiveBg)(props)
14947    }
14948  };
14949});
14950var variantOutline = defineStyle((props) => {
14951  const { colorScheme: c2 } = props;
14952  const borderColor = mode(`gray.200`, `whiteAlpha.300`)(props);
14953  return {
14954    border: "1px solid",
14955    borderColor: c2 === "gray" ? borderColor : "currentColor",
14956    ".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)": { marginEnd: "-1px" },
14957    ".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)": { marginBottom: "-1px" },
14958    ...runIfFn$1(variantGhost, props)
14959  };
14960});
14961var accessibleColorMap = {
14962  yellow: {
14963    bg: "yellow.400",
14964    color: "black",
14965    hoverBg: "yellow.500",
14966    activeBg: "yellow.600"
14967  },
14968  cyan: {
14969    bg: "cyan.400",
14970    color: "black",
14971    hoverBg: "cyan.500",
14972    activeBg: "cyan.600"
14973  }
14974};
14975var variantSolid$2 = defineStyle((props) => {
14976  var _a5;
14977  const { colorScheme: c2 } = props;
14978  if (c2 === "gray") {
14979    const bg22 = mode(`gray.100`, `whiteAlpha.200`)(props);
14980    return {
14981      bg: bg22,
14982      _hover: {
14983        bg: mode(`gray.200`, `whiteAlpha.300`)(props),
14984        _disabled: {
14985          bg: bg22
14986        }
14987      },
14988      _active: { bg: mode(`gray.300`, `whiteAlpha.400`)(props) }
14989    };
14990  }
14991  const {
14992    bg: bg2 = `${c2}.500`,
14993    color: color2 = "white",
14994    hoverBg = `${c2}.600`,
14995    activeBg = `${c2}.700`
14996  } = (_a5 = accessibleColorMap[c2]) != null ? _a5 : {};
14997  const background2 = mode(bg2, `${c2}.200`)(props);
14998  return {
14999    bg: background2,
15000    color: mode(color2, `gray.800`)(props),
15001    _hover: {
15002      bg: mode(hoverBg, `${c2}.300`)(props),
15003      _disabled: {
15004        bg: background2
15005      }
15006    },
15007    _active: { bg: mode(activeBg, `${c2}.400`)(props) }
15008  };
15009});
15010var variantLink = defineStyle((props) => {
15011  const { colorScheme: c2 } = props;
15012  return {
15013    padding: 0,
15014    height: "auto",
15015    lineHeight: "normal",
15016    verticalAlign: "baseline",
15017    color: mode(`${c2}.500`, `${c2}.200`)(props),
15018    _hover: {
15019      textDecoration: "underline",
15020      _disabled: {
15021        textDecoration: "none"
15022      }
15023    },
15024    _active: {
15025      color: mode(`${c2}.700`, `${c2}.500`)(props)
15026    }
15027  };
15028});
15029var variantUnstyled = defineStyle({
15030  bg: "none",
15031  color: "inherit",
15032  display: "inline",
15033  lineHeight: "inherit",
15034  m: "0",
15035  p: "0"
15036});
15037var variants$4 = {
15038  ghost: variantGhost,
15039  outline: variantOutline,
15040  solid: variantSolid$2,
15041  link: variantLink,
15042  unstyled: variantUnstyled
15043};
15044var sizes$3 = {
15045  lg: defineStyle({
15046    h: "12",
15047    minW: "12",
15048    fontSize: "lg",
15049    px: "6"
15050  }),
15051  md: defineStyle({
15052    h: "10",
15053    minW: "10",
15054    fontSize: "md",
15055    px: "4"
15056  }),
15057  sm: defineStyle({
15058    h: "8",
15059    minW: "8",
15060    fontSize: "sm",
15061    px: "3"
15062  }),
15063  xs: defineStyle({
15064    h: "6",
15065    minW: "6",
15066    fontSize: "xs",
15067    px: "2"
15068  })
15069};
15070var buttonTheme = defineStyleConfig({
15071  baseStyle: baseStyle$8,
15072  variants: variants$4,
15073  sizes: sizes$3,
15074  defaultProps: {
15075    variant: "solid",
15076    size: "md",
15077    colorScheme: "gray"
15078  }
15079});
15080var { definePartsStyle: definePartsStyle$3, defineMultiStyleConfig: defineMultiStyleConfig$3 } = createMultiStyleConfigHelpers(cardAnatomy.keys);
15081var $bg$3 = cssVar$1("card-bg");
15082var $padding = cssVar$1("card-padding");
15083var $shadow = cssVar$1("card-shadow");
15084var $radius = cssVar$1("card-radius");
15085var $border$1 = cssVar$1("card-border-width", "0");
15086var $borderColor = cssVar$1("card-border-color");
15087var baseStyle$7 = definePartsStyle$3({
15088  container: {
15089    [$bg$3.variable]: "colors.chakra-body-bg",
15090    backgroundColor: $bg$3.reference,
15091    boxShadow: $shadow.reference,
15092    borderRadius: $radius.reference,
15093    color: "chakra-body-text",
15094    borderWidth: $border$1.reference,
15095    borderColor: $borderColor.reference
15096  },
15097  body: {
15098    padding: $padding.reference,
15099    flex: "1 1 0%"
15100  },
15101  header: {
15102    padding: $padding.reference
15103  },
15104  footer: {
15105    padding: $padding.reference
15106  }
15107});
15108var sizes$2 = {
15109  sm: definePartsStyle$3({
15110    container: {
15111      [$radius.variable]: "radii.base",
15112      [$padding.variable]: "space.3"
15113    }
15114  }),
15115  md: definePartsStyle$3({
15116    container: {
15117      [$radius.variable]: "radii.md",
15118      [$padding.variable]: "space.5"
15119    }
15120  }),
15121  lg: definePartsStyle$3({
15122    container: {
15123      [$radius.variable]: "radii.xl",
15124      [$padding.variable]: "space.7"
15125    }
15126  })
15127};
15128var variants$3 = {
15129  elevated: definePartsStyle$3({
15130    container: {
15131      [$shadow.variable]: "shadows.base",
15132      _dark: {
15133        [$bg$3.variable]: "colors.gray.700"
15134      }
15135    }
15136  }),
15137  outline: definePartsStyle$3({
15138    container: {
15139      [$border$1.variable]: "1px",
15140      [$borderColor.variable]: "colors.chakra-border-color"
15141    }
15142  }),
15143  filled: definePartsStyle$3({
15144    container: {
15145      [$bg$3.variable]: "colors.chakra-subtle-bg"
15146    }
15147  }),
15148  unstyled: {
15149    body: {
15150      [$padding.variable]: 0
15151    },
15152    header: {
15153      [$padding.variable]: 0
15154    },
15155    footer: {
15156      [$padding.variable]: 0
15157    }
15158  }
15159};
15160var cardTheme = defineMultiStyleConfig$3({
15161  baseStyle: baseStyle$7,
15162  variants: variants$3,
15163  sizes: sizes$2,
15164  defaultProps: {
15165    variant: "elevated",
15166    size: "md"
15167  }
15168});
15169var $size = cssVar("close-button-size");
15170var $bg$2 = cssVar("close-button-bg");
15171var baseStyle$6 = defineStyle({
15172  w: [$size.reference],
15173  h: [$size.reference],
15174  borderRadius: "md",
15175  transitionProperty: "common",
15176  transitionDuration: "normal",
15177  _disabled: {
15178    opacity: 0.4,
15179    cursor: "not-allowed",
15180    boxShadow: "none"
15181  },
15182  _hover: {
15183    [$bg$2.variable]: "colors.blackAlpha.100",
15184    _dark: {
15185      [$bg$2.variable]: "colors.whiteAlpha.100"
15186    }
15187  },
15188  _active: {
15189    [$bg$2.variable]: "colors.blackAlpha.200",
15190    _dark: {
15191      [$bg$2.variable]: "colors.whiteAlpha.200"
15192    }
15193  },
15194  _focusVisible: {
15195    boxShadow: "outline"
15196  },
15197  bg: $bg$2.reference
15198});
15199var sizes$1 = {
15200  lg: defineStyle({
15201    [$size.variable]: "sizes.10",
15202    fontSize: "md"
15203  }),
15204  md: defineStyle({
15205    [$size.variable]: "sizes.8",
15206    fontSize: "xs"
15207  }),
15208  sm: defineStyle({
15209    [$size.variable]: "sizes.6",
15210    fontSize: "2xs"
15211  })
15212};
15213var closeButtonTheme = defineStyleConfig({
15214  baseStyle: baseStyle$6,
15215  sizes: sizes$1,
15216  defaultProps: {
15217    size: "md"
15218  }
15219});
15220var { variants: variants$2, defaultProps } = badgeTheme;
15221var baseStyle$5 = defineStyle({
15222  fontFamily: "mono",
15223  fontSize: "sm",
15224  px: "0.2em",
15225  borderRadius: "sm"
15226});
15227var codeTheme = defineStyleConfig({
15228  baseStyle: baseStyle$5,
15229  variants: variants$2,
15230  defaultProps
15231});
15232var baseStyle$4 = defineStyle({
15233  w: "100%",
15234  mx: "auto",
15235  maxW: "prose",
15236  px: "4"
15237});
15238var containerTheme = defineStyleConfig({
15239  baseStyle: baseStyle$4
15240});
15241var baseStyle$3 = defineStyle({
15242  opacity: 0.6,
15243  borderColor: "inherit"
15244});
15245var variantSolid$1 = defineStyle({
15246  borderStyle: "solid"
15247});
15248var variantDashed = defineStyle({
15249  borderStyle: "dashed"
15250});
15251var variants$1 = {
15252  solid: variantSolid$1,
15253  dashed: variantDashed
15254};
15255var dividerTheme = defineStyleConfig({
15256  baseStyle: baseStyle$3,
15257  variants: variants$1,
15258  defaultProps: {
15259    variant: "solid"
15260  }
15261});
15262var { definePartsStyle: definePartsStyle$2, defineMultiStyleConfig: defineMultiStyleConfig$2 } = createMultiStyleConfigHelpers(accordionAnatomy.keys);
15263var baseStyleContainer$1 = defineStyle({
15264  borderTopWidth: "1px",
15265  borderColor: "inherit",
15266  _last: {
15267    borderBottomWidth: "1px"
15268  }
15269});
15270var baseStyleButton = defineStyle({
15271  transitionProperty: "common",
15272  transitionDuration: "normal",
15273  fontSize: "md",
15274  _focusVisible: {
15275    boxShadow: "outline"
15276  },
15277  _hover: {
15278    bg: "blackAlpha.50"
15279  },
15280  _disabled: {
15281    opacity: 0.4,
15282    cursor: "not-allowed"
15283  },
15284  px: "4",
15285  py: "2"
15286});
15287var baseStylePanel = defineStyle({
15288  pt: "2",
15289  px: "4",
15290  pb: "5"
15291});
15292var baseStyleIcon = defineStyle({
15293  fontSize: "1.25em"
15294});
15295var baseStyle$2 = definePartsStyle$2({
15296  container: baseStyleContainer$1,
15297  button: baseStyleButton,
15298  panel: baseStylePanel,
15299  icon: baseStyleIcon
15300});
15301var accordionTheme = defineMultiStyleConfig$2({ baseStyle: baseStyle$2 });
15302var { definePartsStyle: definePartsStyle$1, defineMultiStyleConfig: defineMultiStyleConfig$1 } = createMultiStyleConfigHelpers(alertAnatomy.keys);
15303var $fg = cssVar$1("alert-fg");
15304var $bg$1 = cssVar$1("alert-bg");
15305var baseStyle$1 = definePartsStyle$1({
15306  container: {
15307    bg: $bg$1.reference,
15308    px: "4",
15309    py: "3"
15310  },
15311  title: {
15312    fontWeight: "bold",
15313    lineHeight: "6",
15314    marginEnd: "2"
15315  },
15316  description: {
15317    lineHeight: "6"
15318  },
15319  icon: {
15320    color: $fg.reference,
15321    flexShrink: 0,
15322    marginEnd: "3",
15323    w: "5",
15324    h: "6"
15325  },
15326  spinner: {
15327    color: $fg.reference,
15328    flexShrink: 0,
15329    marginEnd: "3",
15330    w: "5",
15331    h: "5"
15332  }
15333});
15334function getBg(props) {
15335  const { theme: theme2, colorScheme: c2 } = props;
15336  const darkBg = transparentize(`${c2}.200`, 0.16)(theme2);
15337  return {
15338    light: `colors.${c2}.100`,
15339    dark: darkBg
15340  };
15341}
15342var variantSubtle = definePartsStyle$1((props) => {
15343  const { colorScheme: c2 } = props;
15344  const bg2 = getBg(props);
15345  return {
15346    container: {
15347      [$fg.variable]: `colors.${c2}.500`,
15348      [$bg$1.variable]: bg2.light,
15349      _dark: {
15350        [$fg.variable]: `colors.${c2}.200`,
15351        [$bg$1.variable]: bg2.dark
15352      }
15353    }
15354  };
15355});
15356var variantLeftAccent = definePartsStyle$1((props) => {
15357  const { colorScheme: c2 } = props;
15358  const bg2 = getBg(props);
15359  return {
15360    container: {
15361      [$fg.variable]: `colors.${c2}.500`,
15362      [$bg$1.variable]: bg2.light,
15363      _dark: {
15364        [$fg.variable]: `colors.${c2}.200`,
15365        [$bg$1.variable]: bg2.dark
15366      },
15367      paddingStart: "3",
15368      borderStartWidth: "4px",
15369      borderStartColor: $fg.reference
15370    }
15371  };
15372});
15373var variantTopAccent = definePartsStyle$1((props) => {
15374  const { colorScheme: c2 } = props;
15375  const bg2 = getBg(props);
15376  return {
15377    container: {
15378      [$fg.variable]: `colors.${c2}.500`,
15379      [$bg$1.variable]: bg2.light,
15380      _dark: {
15381        [$fg.variable]: `colors.${c2}.200`,
15382        [$bg$1.variable]: bg2.dark
15383      },
15384      pt: "2",
15385      borderTopWidth: "4px",
15386      borderTopColor: $fg.reference
15387    }
15388  };
15389});
15390var variantSolid = definePartsStyle$1((props) => {
15391  const { colorScheme: c2 } = props;
15392  return {
15393    container: {
15394      [$fg.variable]: `colors.white`,
15395      [$bg$1.variable]: `colors.${c2}.500`,
15396      _dark: {
15397        [$fg.variable]: `colors.gray.900`,
15398        [$bg$1.variable]: `colors.${c2}.200`
15399      },
15400      color: $fg.reference
15401    }
15402  };
15403});
15404var variants = {
15405  subtle: variantSubtle,
15406  "left-accent": variantLeftAccent,
15407  "top-accent": variantTopAccent,
15408  solid: variantSolid
15409};
15410var alertTheme = defineMultiStyleConfig$1({
15411  baseStyle: baseStyle$1,
15412  variants,
15413  defaultProps: {
15414    variant: "subtle",
15415    colorScheme: "blue"
15416  }
15417});
15418var { definePartsStyle, defineMultiStyleConfig } = createMultiStyleConfigHelpers(avatarAnatomy.keys);
15419var $border = cssVar$1("avatar-border-color");
15420var $bg = cssVar$1("avatar-bg");
15421var baseStyleBadge = defineStyle({
15422  borderRadius: "full",
15423  border: "0.2em solid",
15424  [$border.variable]: "white",
15425  _dark: {
15426    [$border.variable]: "colors.gray.800"
15427  },
15428  borderColor: $border.reference
15429});
15430var baseStyleExcessLabel = defineStyle({
15431  [$bg.variable]: "colors.gray.200",
15432  _dark: {
15433    [$bg.variable]: "colors.whiteAlpha.400"
15434  },
15435  bgColor: $bg.reference
15436});
15437var $avatarBg = cssVar$1("avatar-background");
15438var baseStyleContainer = defineStyle((props) => {
15439  const { name: name2, theme: theme2 } = props;
15440  const bg2 = name2 ? randomColor({ string: name2 }) : "colors.gray.400";
15441  const isBgDark = isDark(bg2)(theme2);
15442  let color2 = "white";
15443  if (!isBgDark)
15444    color2 = "gray.800";
15445  return {
15446    bg: $avatarBg.reference,
15447    "&:not([data-loaded])": {
15448      [$avatarBg.variable]: bg2
15449    },
15450    color: color2,
15451    [$border.variable]: "colors.white",
15452    _dark: {
15453      [$border.variable]: "colors.gray.800"
15454    },
15455    borderColor: $border.reference,
15456    verticalAlign: "top"
15457  };
15458});
15459var baseStyle = definePartsStyle((props) => ({
15460  badge: runIfFn$1(baseStyleBadge, props),
15461  excessLabel: runIfFn$1(baseStyleExcessLabel, props),
15462  container: runIfFn$1(baseStyleContainer, props)
15463}));
15464function getSize(size2) {
15465  const themeSize = size2 !== "100%" ? sizes_default[size2] : void 0;
15466  return definePartsStyle({
15467    container: {
15468      width: size2,
15469      height: size2,
15470      fontSize: `calc(${themeSize != null ? themeSize : size2} / 2.5)`
15471    },
15472    excessLabel: {
15473      width: size2,
15474      height: size2
15475    },
15476    label: {
15477      fontSize: `calc(${themeSize != null ? themeSize : size2} / 2.5)`,
15478      lineHeight: size2 !== "100%" ? themeSize != null ? themeSize : size2 : void 0
15479    }
15480  });
15481}
15482var sizes = {
15483  "2xs": getSize(4),
15484  xs: getSize(6),
15485  sm: getSize(8),
15486  md: getSize(12),
15487  lg: getSize(16),
15488  xl: getSize(24),
15489  "2xl": getSize(32),
15490  full: getSize("100%")
15491};
15492var avatarTheme = defineMultiStyleConfig({
15493  baseStyle,
15494  sizes,
15495  defaultProps: { size: "md" }
15496});
15497var components = {
15498  Accordion: accordionTheme,
15499  Alert: alertTheme,
15500  Avatar: avatarTheme,
15501  Badge: badgeTheme,
15502  Breadcrumb: breadcrumbTheme,
15503  Button: buttonTheme,
15504  Checkbox: checkboxTheme,
15505  CloseButton: closeButtonTheme,
15506  Code: codeTheme,
15507  Container: containerTheme,
15508  Divider: dividerTheme,
15509  Drawer: drawerTheme,
15510  Editable: editableTheme,
15511  Form: formTheme,
15512  FormError: formErrorTheme,
15513  FormLabel: formLabelTheme,
15514  Heading: headingTheme,
15515  Input: inputTheme,
15516  Kbd: kbdTheme,
15517  Link: linkTheme,
15518  List: listTheme,
15519  Menu: menuTheme,
15520  Modal: modalTheme,
15521  NumberInput: numberInputTheme,
15522  PinInput: pinInputTheme,
15523  Popover: popoverTheme,
15524  Progress: progressTheme,
15525  Radio: radioTheme,
15526  Select: selectTheme,
15527  Skeleton: skeletonTheme,
15528  SkipLink: skipLinkTheme,
15529  Slider: sliderTheme,
15530  Spinner: spinnerTheme,
15531  Stat: statTheme,
15532  Switch: switchTheme,
15533  Table: tableTheme,
15534  Tabs: tabsTheme,
15535  Tag: tagTheme,
15536  Textarea: textareaTheme,
15537  Tooltip: tooltipTheme,
15538  Card: cardTheme
15539};
15540var semanticTokens = {
15541  colors: {
15542    "chakra-body-text": { _light: "gray.800", _dark: "whiteAlpha.900" },
15543    "chakra-body-bg": { _light: "white", _dark: "gray.800" },
15544    "chakra-border-color": { _light: "gray.200", _dark: "whiteAlpha.300" },
15545    "chakra-subtle-bg": { _light: "gray.100", _dark: "gray.700" },
15546    "chakra-placeholder-color": { _light: "gray.500", _dark: "whiteAlpha.400" }
15547  }
15548};
15549var styles = {
15550  global: {
15551    body: {
15552      fontFamily: "body",
15553      color: "chakra-body-text",
15554      bg: "chakra-body-bg",
15555      transitionProperty: "background-color",
15556      transitionDuration: "normal",
15557      lineHeight: "base"
15558    },
15559    "*::placeholder": {
15560      color: "chakra-placeholder-color"
15561    },
15562    "*, *::before, &::after": {
15563      borderColor: "chakra-border-color",
15564      wordWrap: "break-word"
15565    }
15566  }
15567};
15568var direction = "ltr";
15569var config$1 = {
15570  useSystemColorMode: false,
15571  initialColorMode: "light",
15572  cssVarPrefix: "chakra"
15573};
15574var theme$1 = {
15575  semanticTokens,
15576  direction,
15577  ...foundations,
15578  components,
15579  styles,
15580  config: config$1
15581};
15582({
15583  semanticTokens,
15584  direction,
15585  components: {},
15586  ...foundations,
15587  styles,
15588  config: config$1
15589});
15590function isFunction$1(value) {
15591  return typeof value === "function";
15592}
15593function pipe$1(...fns) {
15594  return (v2) => fns.reduce((a, b2) => b2(a), v2);
15595}
15596var createExtendTheme = (theme2) => {
15597  return function extendTheme2(...extensions) {
15598    let overrides = [...extensions];
15599    let activeTheme = extensions[extensions.length - 1];
15600    if (isChakraTheme(activeTheme) && overrides.length > 1) {
15601      overrides = overrides.slice(0, overrides.length - 1);
15602    } else {
15603      activeTheme = theme2;
15604    }
15605    return pipe$1(
15606      ...overrides.map(
15607        (extension) => (prevTheme) => isFunction$1(extension) ? extension(prevTheme) : mergeThemeOverride(prevTheme, extension)
15608      )
15609    )(activeTheme);
15610  };
15611};
15612var extendTheme = createExtendTheme(theme$1);
15613function mergeThemeOverride(...overrides) {
15614  return mergeWith({}, ...overrides, mergeThemeCustomizer);
15615}
15616function mergeThemeCustomizer(source, override, key, object) {
15617  if ((isFunction$1(source) || isFunction$1(override)) && Object.prototype.hasOwnProperty.call(object, key)) {
15618    return (...args) => {
15619      const sourceValue = isFunction$1(source) ? source(...args) : source;
15620      const overrideValue = isFunction$1(override) ? override(...args) : override;
15621      return mergeWith({}, sourceValue, overrideValue, mergeThemeCustomizer);
15622    };
15623  }
15624  return void 0;
15625}
15626function omit$1(object, keys2) {
15627  const result = {};
15628  Object.keys(object).forEach((key) => {
15629    if (keys2.includes(key))
15630      return;
15631    result[key] = object[key];
15632  });
15633  return result;
15634}
15635function get(obj, path, fallback, index) {
15636  const key = typeof path === "string" ? path.split(".") : [path];
15637  for (index = 0; index < key.length; index += 1) {
15638    if (!obj)
15639      break;
15640    obj = obj[key[index]];
15641  }
15642  return obj === void 0 ? fallback : obj;
15643}
15644var memoize = (fn) => {
15645  const cache = /* @__PURE__ */ new WeakMap();
15646  const memoizedFn = (obj, path, fallback, index) => {
15647    if (typeof obj === "undefined") {
15648      return fn(obj, path, fallback);
15649    }
15650    if (!cache.has(obj)) {
15651      cache.set(obj, /* @__PURE__ */ new Map());
15652    }
15653    const map = cache.get(obj);
15654    if (map.has(path)) {
15655      return map.get(path);
15656    }
15657    const value = fn(obj, path, fallback, index);
15658    map.set(path, value);
15659    return value;
15660  };
15661  return memoizedFn;
15662};
15663var memoizedGet = memoize(get);
15664function objectFilter(object, fn) {
15665  const result = {};
15666  Object.keys(object).forEach((key) => {
15667    const value = object[key];
15668    const shouldPass = fn(value, key, object);
15669    if (shouldPass) {
15670      result[key] = value;
15671    }
15672  });
15673  return result;
15674}
15675var filterUndefined = (object) => objectFilter(object, (val) => val !== null && val !== void 0);
15676function isFunction(value) {
15677  return typeof value === "function";
15678}
15679function runIfFn(valueOrFn, ...args) {
15680  return isFunction(valueOrFn) ? valueOrFn(...args) : valueOrFn;
15681}
15682var hasElementType = typeof Element !== "undefined";
15683var hasMap = typeof Map === "function";
15684var hasSet = typeof Set === "function";
15685var hasArrayBuffer = typeof ArrayBuffer === "function" && !!ArrayBuffer.isView;
15686function equal(a, b2) {
15687  if (a === b2)
15688    return true;
15689  if (a && b2 && typeof a == "object" && typeof b2 == "object") {
15690    if (a.constructor !== b2.constructor)
15691      return false;
15692    var length2, i, keys2;
15693    if (Array.isArray(a)) {
15694      length2 = a.length;
15695      if (length2 != b2.length)
15696        return false;
15697      for (i = length2; i-- !== 0; )
15698        if (!equal(a[i], b2[i]))
15699          return false;
15700      return true;
15701    }
15702    var it;
15703    if (hasMap && a instanceof Map && b2 instanceof Map) {
15704      if (a.size !== b2.size)
15705        return false;
15706      it = a.entries();
15707      while (!(i = it.next()).done)
15708        if (!b2.has(i.value[0]))
15709          return false;
15710      it = a.entries();
15711      while (!(i = it.next()).done)
15712        if (!equal(i.value[1], b2.get(i.value[0])))
15713          return false;
15714      return true;
15715    }
15716    if (hasSet && a instanceof Set && b2 instanceof Set) {
15717      if (a.size !== b2.size)
15718        return false;
15719      it = a.entries();
15720      while (!(i = it.next()).done)
15721        if (!b2.has(i.value[0]))
15722          return false;
15723      return true;
15724    }
15725    if (hasArrayBuffer && ArrayBuffer.isView(a) && ArrayBuffer.isView(b2)) {
15726      length2 = a.length;
15727      if (length2 != b2.length)
15728        return false;
15729      for (i = length2; i-- !== 0; )
15730        if (a[i] !== b2[i])
15731          return false;
15732      return true;
15733    }
15734    if (a.constructor === RegExp)
15735      return a.source === b2.source && a.flags === b2.flags;
15736    if (a.valueOf !== Object.prototype.valueOf)
15737      return a.valueOf() === b2.valueOf();
15738    if (a.toString !== Object.prototype.toString)
15739      return a.toString() === b2.toString();
15740    keys2 = Object.keys(a);
15741    length2 = keys2.length;
15742    if (length2 !== Object.keys(b2).length)
15743      return false;
15744    for (i = length2; i-- !== 0; )
15745      if (!Object.prototype.hasOwnProperty.call(b2, keys2[i]))
15746        return false;
15747    if (hasElementType && a instanceof Element)
15748      return false;
15749    for (i = length2; i-- !== 0; ) {
15750      if ((keys2[i] === "_owner" || keys2[i] === "__v" || keys2[i] === "__o") && a.$$typeof) {
15751        continue;
15752      }
15753      if (!equal(a[keys2[i]], b2[keys2[i]]))
15754        return false;
15755    }
15756    return true;
15757  }
15758  return a !== a && b2 !== b2;
15759}
15760var reactFastCompare = function isEqual(a, b2) {
15761  try {
15762    return equal(a, b2);
15763  } catch (error) {
15764    if ((error.message || "").match(/stack|recursion/i)) {
15765      console.warn("react-fast-compare cannot handle circular refs");
15766      return false;
15767    }
15768    throw error;
15769  }
15770};
15771function useStyleConfigImpl(themeKey, props = {}) {
15772  var _a5;
15773  const { styleConfig: styleConfigProp, ...rest } = props;
15774  const { theme: theme2, colorMode } = useChakra();
15775  const themeStyleConfig = themeKey ? memoizedGet(theme2, `components.${themeKey}`) : void 0;
15776  const styleConfig = styleConfigProp || themeStyleConfig;
15777  const mergedProps = mergeWith(
15778    { theme: theme2, colorMode },
15779    (_a5 = styleConfig == null ? void 0 : styleConfig.defaultProps) != null ? _a5 : {},
15780    filterUndefined(omit$1(rest, ["children"]))
15781  );
15782  const stylesRef = reactExports.useRef({});
15783  if (styleConfig) {
15784    const getStyles = resolveStyleConfig(styleConfig);
15785    const styles2 = getStyles(mergedProps);
15786    const isStyleEqual = reactFastCompare(stylesRef.current, styles2);
15787    if (!isStyleEqual) {
15788      stylesRef.current = styles2;
15789    }
15790  }
15791  return stylesRef.current;
15792}
15793function useStyleConfig(themeKey, props = {}) {
15794  return useStyleConfigImpl(themeKey, props);
15795}
15796function useMultiStyleConfig(themeKey, props = {}) {
15797  return useStyleConfigImpl(themeKey, props);
15798}
15799var allPropNames = /* @__PURE__ */ new Set([
15800  ...propNames,
15801  "textStyle",
15802  "layerStyle",
15803  "apply",
15804  "noOfLines",
15805  "focusBorderColor",
15806  "errorBorderColor",
15807  "as",
15808  "__css",
15809  "css",
15810  "sx"
15811]);
15812var validHTMLProps = /* @__PURE__ */ new Set([
15813  "htmlWidth",
15814  "htmlHeight",
15815  "htmlSize",
15816  "htmlTranslate"
15817]);
15818function shouldForwardProp(prop) {
15819  return validHTMLProps.has(prop) || !allPropNames.has(prop);
15820}
15821function compact(object) {
15822  const clone = Object.assign({}, object);
15823  for (let key in clone) {
15824    if (clone[key] === void 0)
15825      delete clone[key];
15826  }
15827  return clone;
15828}
15829function assignAfter(target, ...sources) {
15830  if (target == null) {
15831    throw new TypeError("Cannot convert undefined or null to object");
15832  }
15833  const result = { ...target };
15834  for (const nextSource of sources) {
15835    if (nextSource == null)
15836      continue;
15837    for (const nextKey in nextSource) {
15838      if (!Object.prototype.hasOwnProperty.call(nextSource, nextKey))
15839        continue;
15840      if (nextKey in result)
15841        delete result[nextKey];
15842      result[nextKey] = nextSource[nextKey];
15843    }
15844  }
15845  return result;
15846}
15847var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;
15848var isPropValid = /* @__PURE__ */ memoize$2(
15849  function(prop) {
vendor: 4,165 bytes, lines 15850-15953
15850    return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 && prop.charCodeAt(1) === 110 && prop.charCodeAt(2) < 91;
15851  }
15852  /* Z+1 */
15853);
15854var testOmitPropsOnStringTag = isPropValid;
15855var testOmitPropsOnComponent = function testOmitPropsOnComponent2(key) {
15856  return key !== "theme";
15857};
15858var getDefaultShouldForwardProp = function getDefaultShouldForwardProp2(tag) {
15859  return typeof tag === "string" && // 96 is one less than the char code
15860  // for "a" so this is checking that
15861  // it's a lowercase character
15862  tag.charCodeAt(0) > 96 ? testOmitPropsOnStringTag : testOmitPropsOnComponent;
15863};
15864var composeShouldForwardProps = function composeShouldForwardProps2(tag, options, isReal) {
15865  var shouldForwardProp2;
15866  if (options) {
15867    var optionsShouldForwardProp = options.shouldForwardProp;
15868    shouldForwardProp2 = tag.__emotion_forwardProp && optionsShouldForwardProp ? function(propName) {
15869      return tag.__emotion_forwardProp(propName) && optionsShouldForwardProp(propName);
15870    } : optionsShouldForwardProp;
15871  }
15872  if (typeof shouldForwardProp2 !== "function" && isReal) {
15873    shouldForwardProp2 = tag.__emotion_forwardProp;
15874  }
15875  return shouldForwardProp2;
15876};
15877var Insertion = function Insertion2(_ref) {
15878  var cache = _ref.cache, serialized = _ref.serialized, isStringTag = _ref.isStringTag;
15879  registerStyles(cache, serialized, isStringTag);
15880  useInsertionEffectAlwaysWithSyncFallback(function() {
15881    return insertStyles(cache, serialized, isStringTag);
15882  });
15883  return null;
15884};
15885var createStyled = function createStyled2(tag, options) {
15886  var isReal = tag.__emotion_real === tag;
15887  var baseTag = isReal && tag.__emotion_base || tag;
15888  var identifierName;
15889  var targetClassName;
15890  if (options !== void 0) {
15891    identifierName = options.label;
15892    targetClassName = options.target;
15893  }
15894  var shouldForwardProp2 = composeShouldForwardProps(tag, options, isReal);
15895  var defaultShouldForwardProp = shouldForwardProp2 || getDefaultShouldForwardProp(baseTag);
15896  var shouldUseAs = !defaultShouldForwardProp("as");
15897  return function() {
15898    var args = arguments;
15899    var styles2 = isReal && tag.__emotion_styles !== void 0 ? tag.__emotion_styles.slice(0) : [];
15900    if (identifierName !== void 0) {
15901      styles2.push("label:" + identifierName + ";");
15902    }
15903    if (args[0] == null || args[0].raw === void 0) {
15904      styles2.push.apply(styles2, args);
15905    } else {
15906      styles2.push(args[0][0]);
15907      var len = args.length;
15908      var i = 1;
15909      for (; i < len; i++) {
15910        styles2.push(args[i], args[0][i]);
15911      }
15912    }
15913    var Styled = withEmotionCache(function(props, cache, ref) {
15914      var FinalTag = shouldUseAs && props.as || baseTag;
15915      var className = "";
15916      var classInterpolations = [];
15917      var mergedProps = props;
15918      if (props.theme == null) {
15919        mergedProps = {};
15920        for (var key in props) {
15921          mergedProps[key] = props[key];
15922        }
15923        mergedProps.theme = reactExports.useContext(ThemeContext);
15924      }
15925      if (typeof props.className === "string") {
15926        className = getRegisteredStyles(cache.registered, classInterpolations, props.className);
15927      } else if (props.className != null) {
15928        className = props.className + " ";
15929      }
15930      var serialized = serializeStyles(styles2.concat(classInterpolations), cache.registered, mergedProps);
15931      className += cache.key + "-" + serialized.name;
15932      if (targetClassName !== void 0) {
15933        className += " " + targetClassName;
15934      }
15935      var finalShouldForwardProp = shouldUseAs && shouldForwardProp2 === void 0 ? getDefaultShouldForwardProp(FinalTag) : defaultShouldForwardProp;
15936      var newProps = {};
15937      for (var _key in props) {
15938        if (shouldUseAs && _key === "as")
15939          continue;
15940        if (
15941          // $FlowFixMe
15942          finalShouldForwardProp(_key)
15943        ) {
15944          newProps[_key] = props[_key];
15945        }
15946      }
15947      newProps.className = className;
15948      newProps.ref = ref;
15949      return /* @__PURE__ */ reactExports.createElement(reactExports.Fragment, null, /* @__PURE__ */ reactExports.createElement(Insertion, {
15950        cache,
15951        serialized,
15952        isStringTag: typeof FinalTag === "string"
15953      }
15953), /* @__PURE__ */ reactExports.createElement(FinalTag, newProps));
15954    });
15955    Styled.displayName = identifierName !== void 0 ? identifierName : "Styled(" + (typeof baseTag === "string" ? baseTag : baseTag.displayName || baseTag.name || "Component") + ")";
15956    Styled.defaultProps = tag.defaultProps;
15957    Styled.__emotion_real = Styled;
15958    Styled.__emotion_base = baseTag;
15959    Styled.__emotion_styles = styles2;
15960    Styled.__emotion_forwardProp = shouldForwardProp2;
15961    Object.defineProperty(Styled, "toString", {
15962      value: function value() {
15963        if (targetClassName === void 0 && false) {
15964          return "NO_COMPONENT_SELECTOR";
15965        }
15966        return "." + targetClassName;
15967      }
15968    });
15969    Styled.withComponent = function(nextTag, nextOptions) {
15970      return createStyled2(nextTag, _extends$3({}, options, nextOptions, {
15971        shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, true)
15972      })).apply(void 0, styles2);
15973    };
15974    return Styled;
15975  };
15976};
15977var tags = [
15978  "a",
15979  "abbr",
15980  "address",
15981  "area",
15982  "article",
15983  "aside",
15984  "audio",
15985  "b",
15986  "base",
15987  "bdi",
15988  "bdo",
15989  "big",
15990  "blockquote",
15991  "body",
15992  "br",
15993  "button",
15994  "canvas",
15995  "caption",
15996  "cite",
15997  "code",
15998  "col",
15999  "colgroup",
16000  "data",
16001  "datalist",
16002  "dd",
16003  "del",
16004  "details",
16005  "dfn",
16006  "dialog",
16007  "div",
16008  "dl",
16009  "dt",
16010  "em",
16011  "embed",
16012  "fieldset",
16013  "figcaption",
16014  "figure",
16015  "footer",
16016  "form",
16017  "h1",
16018  "h2",
16019  "h3",
16020  "h4",
16021  "h5",
16022  "h6",
16023  "head",
16024  "header",
16025  "hgroup",
16026  "hr",
16027  "html",
16028  "i",
16029  "iframe",
16030  "img",
16031  "input",
16032  "ins",
16033  "kbd",
16034  "keygen",
16035  "label",
16036  "legend",
16037  "li",
16038  "link",
16039  "main",
16040  "map",
16041  "mark",
16042  "marquee",
16043  "menu",
16044  "menuitem",
16045  "meta",
16046  "meter",
16047  "nav",
16048  "noscript",
16049  "object",
16050  "ol",
16051  "optgroup",
16052  "option",
16053  "output",
16054  "p",
16055  "param",
16056  "picture",
16057  "pre",
16058  "progress",
16059  "q",
16060  "rp",
16061  "rt",
16062  "ruby",
16063  "s",
16064  "samp",
16065  "script",
16066  "section",
16067  "select",
16068  "small",
16069  "source",
16070  "span",
16071  "strong",
16072  "style",
16073  "sub",
16074  "summary",
16075  "sup",
16076  "table",
16077  "tbody",
16078  "td",
16079  "textarea",
16080  "tfoot",
16081  "th",
16082  "thead",
16083  "time",
16084  "title",
16085  "tr",
16086  "track",
16087  "u",
16088  "ul",
16089  "var",
16090  "video",
16091  "wbr",
16092  // SVG
16093  "circle",
16094  "clipPath",
16095  "defs",
16096  "ellipse",
16097  "foreignObject",
16098  "g",
16099  "image",
16100  "line",
16101  "linearGradient",
16102  "mask",
16103  "path",
16104  "pattern",
16105  "polygon",
16106  "polyline",
16107  "radialGradient",
16108  "rect",
16109  "stop",
16110  "svg",
16111  "text",
16112  "tspan"
16113];
16114var newStyled = createStyled.bind();
16115tags.forEach(function(tagName) {
16116  newStyled[tagName] = newStyled(tagName);
16117});
16118var _a;
16119var emotion_styled = (_a = newStyled.default) != null ? _a : newStyled;
16120var toCSSObject = ({ baseStyle: baseStyle2 }) => (props) => {
16121  const { theme: theme2, css: cssProp, __css, sx, ...rest } = props;
16122  const styleProps2 = objectFilter(rest, (_, prop) => isStyleProp(prop));
16123  const finalBaseStyle = runIfFn(baseStyle2, props);
16124  const finalStyles = assignAfter(
16125    {},
16126    __css,
16127    finalBaseStyle,
16128    filterUndefined(styleProps2),
16129    sx
16130  );
16131  const computedCSS = css(finalStyles)(props.theme);
16132  return cssProp ? [computedCSS, cssProp] : computedCSS;
16133};
16134function styled(component, options) {
16135  const { baseStyle: baseStyle2, ...styledOptions } = options != null ? options : {};
16136  if (!styledOptions.shouldForwardProp) {
16137    styledOptions.shouldForwardProp = shouldForwardProp;
16138  }
16139  const styleObject = toCSSObject({ baseStyle: baseStyle2 });
16140  const Component = emotion_styled(
16141    component,
16142    styledOptions
16143  )(styleObject);
16144  const chakraComponent = React$1.forwardRef(function ChakraComponent(props, ref) {
16145    const { colorMode, forced } = useColorMode();
16146    return React$1.createElement(Component, {
16147      ref,
16148      "data-theme": forced ? colorMode : void 0,
16149      ...props
16150    });
16151  });
16152  return chakraComponent;
16153}
16154function factory() {
16155  const cache = /* @__PURE__ */ new Map();
16156  return new Proxy(styled, {
16157    apply(target, thisArg, argArray) {
16158      return styled(...argArray);
16159    },
16160    get(_, element) {
16161      if (!cache.has(element)) {
16162        cache.set(element, styled(element));
16163      }
16164      return cache.get(element);
16165    }
16166  });
16167}
16168var chakra = factory();
16169function forwardRef(component) {
16170  return reactExports.forwardRef(component);
16171}
16172function createContext(options = {}) {
16173  const {
16174    strict = true,
16175    errorMessage = "useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",
16176    name: name2
16177  } = options;
16178  const Context = reactExports.createContext(void 0);
16179  Context.displayName = name2;
16180  function useContext() {
16181    var _a5;
16182    const context = reactExports.useContext(Context);
16183    if (!context && strict) {
16184      const error = new Error(errorMessage);
16185      error.name = "ContextError";
16186      (_a5 = Error.captureStackTrace) == null ? void 0 : _a5.call(Error, error, useContext);
16187      throw error;
16188    }
16189    return context;
16190  }
16191  return [
16192    Context.Provider,
16193    useContext,
16194    Context
16195  ];
16196}
16197function ThemeProvider2(props) {
16198  const { cssVarsRoot, theme: theme2, children } = props;
16199  const computedTheme = reactExports.useMemo(() => toCSSVar(theme2), [theme2]);
16200  return /* @__PURE__ */ jsxs(ThemeProvider$1, { theme: computedTheme, children: [
16201    /* @__PURE__ */ jsx(CSSVars, { root: cssVarsRoot }),
16202    children
16203  ] });
16204}
16205function CSSVars({ root: root2 = ":host, :root" }) {
16206  const selector = [root2, `[data-theme]`].join(",");
16207  return /* @__PURE__ */ jsx(Global, { styles: (theme2) => ({ [selector]: theme2.__cssVars }) });
16208}
16209createContext({
16210  name: "StylesContext",
16211  errorMessage: "useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "
16212});
16213function GlobalStyle() {
16214  const { colorMode } = useColorMode();
16215  return /* @__PURE__ */ jsx(
16216    Global,
16217    {
16218      styles: (theme2) => {
16219        const styleObjectOrFn = memoizedGet(theme2, "styles.global");
16220        const globalStyles = runIfFn(styleObjectOrFn, { theme: theme2, colorMode });
16221        if (!globalStyles)
16222          return void 0;
16223        const styles2 = css(globalStyles)(theme2);
16224        return styles2;
16225      }
16226    }
16227  );
16228}
16229var EnvironmentContext = reactExports.createContext({
16230  getDocument() {
16231    return document;
16232  },
16233  getWindow() {
16234    return window;
16235  }
16236});
16237EnvironmentContext.displayName = "EnvironmentContext";
16238function EnvironmentProvider(props) {
16239  const { children, environment: environmentProp, disabled } = props;
16240  const ref = reactExports.useRef(null);
16241  const context = reactExports.useMemo(() => {
16242    if (environmentProp)
16243      return environmentProp;
16244    return {
16245      getDocument: () => {
16246        var _a5, _b3;
16247        return (_b3 = (_a5 = ref.current) == null ? void 0 : _a5.ownerDocument) != null ? _b3 : document;
16248      },
16249      getWindow: () => {
16250        var _a5, _b3;
16251        return (_b3 = (_a5 = ref.current) == null ? void 0 : _a5.ownerDocument.defaultView) != null ? _b3 : window;
16252      }
16253    };
16254  }, [environmentProp]);
16255  const showSpan = !disabled || !environmentProp;
16256  return /* @__PURE__ */ jsxs(EnvironmentContext.Provider, { value: context, children: [
16257    children,
16258    showSpan && /* @__PURE__ */ jsx("span", { id: "__chakra_env", hidden: true, ref })
16259  ] });
16260}
16261EnvironmentProvider.displayName = "EnvironmentProvider";
16262var ChakraProvider$1 = (props) => {
16263  const {
16264    children,
16265    colorModeManager,
16266    portalZIndex,
16267    resetCSS = true,
16268    theme: theme2 = {},
16269    environment,
16270    cssVarsRoot,
16271    disableEnvironment
16272  } = props;
16273  const _children = /* @__PURE__ */ jsx(
16274    EnvironmentProvider,
16275    {
16276      environment,
16277      disabled: disableEnvironment,
16278      children
16279    }
16280  );
16281  return /* @__PURE__ */ jsx(ThemeProvider2, { theme: theme2, cssVarsRoot, children: /* @__PURE__ */ jsxs(
16282    ColorModeProvider,
16283    {
16284      colorModeManager,
16285      options: theme2.config,
16286      children: [
16287        resetCSS ? /* @__PURE__ */ jsx(CSSReset, {}) : /* @__PURE__ */ jsx(CSSPolyfill, {}),
16288        /* @__PURE__ */ jsx(GlobalStyle, {}),
16289        portalZIndex ? /* @__PURE__ */ jsx(PortalManager, { zIndex: portalZIndex, children: _children }) : _children
16290      ]
16291    }
16292  ) });
16293};
16294var findById = (arr, id2) => arr.find((toast) => toast.id === id2);
16295function findToast(toasts, id2) {
16296  const position2 = getToastPosition(toasts, id2);
16297  const index = position2 ? toasts[position2].findIndex((toast) => toast.id === id2) : -1;
16298  return {
16299    position: position2,
16300    index
16301  };
16302}
16303function getToastPosition(toasts, id2) {
16304  for (const [position2, values] of Object.entries(toasts)) {
16305    if (findById(values, id2)) {
16306      return position2;
16307    }
16308  }
16309}
16310function getToastStyle(position2) {
16311  const isRighty = position2.includes("right");
16312  const isLefty = position2.includes("left");
16313  let alignItems = "center";
16314  if (isRighty)
16315    alignItems = "flex-end";
16316  if (isLefty)
16317    alignItems = "flex-start";
16318  return {
16319    display: "flex",
16320    flexDirection: "column",
16321    alignItems
16322  };
16323}
16324function getToastListStyle(position2) {
16325  const isTopOrBottom = position2 === "top" || position2 === "bottom";
16326  const margin = isTopOrBottom ? "0 auto" : void 0;
16327  const top = position2.includes("top") ? "env(safe-area-inset-top, 0px)" : void 0;
16328  const bottom = position2.includes("bottom") ? "env(safe-area-inset-bottom, 0px)" : void 0;
16329  const right = !position2.includes("left") ? "env(safe-area-inset-right, 0px)" : void 0;
16330  const left = !position2.includes("right") ? "env(safe-area-inset-left, 0px)" : void 0;
16331  return {
16332    position: "fixed",
16333    zIndex: 5500,
16334    pointerEvents: "none",
16335    display: "flex",
16336    flexDirection: "column",
16337    margin,
16338    top,
16339    bottom,
16340    right,
16341    left
16342  };
16343}
16344function useCallbackRef(callback, deps = []) {
16345  const callbackRef = reactExports.useRef(callback);
16346  reactExports.useEffect(() => {
16347    callbackRef.current = callback;
16348  });
16349  return reactExports.useCallback((...args) => {
16350    var _a5;
16351    return (_a5 = callbackRef.current) == null ? void 0 : _a5.call(callbackRef, ...args);
16352  }, deps);
16353}
16354function useTimeout(callback, delay2) {
16355  const fn = useCallbackRef(callback);
16356  reactExports.useEffect(() => {
16357    if (delay2 == null)
16358      return void 0;
16359    let timeoutId = null;
16360    timeoutId = window.setTimeout(() => {
16361      fn();
16362    }, delay2);
16363    return () => {
16364      if (timeoutId) {
16365        window.clearTimeout(timeoutId);
16366      }
16367    };
16368  }, [delay2, fn]);
16369}
16370function useUpdateEffect(callback, deps) {
16371  const renderCycleRef = reactExports.useRef(false);
16372  const effectCycleRef = reactExports.useRef(false);
16373  reactExports.useEffect(() => {
16374    const mounted = renderCycleRef.current;
16375    const run = mounted && effectCycleRef.current;
16376    if (run) {
16377      return callback();
16378    }
16379    effectCycleRef.current = true;
16380  }, deps);
16381  reactExports.useEffect(() => {
16382    renderCycleRef.current = true;
16383    return () => {
16384      renderCycleRef.current = false;
16385    };
16386  }, []);
16387}
16388const MotionConfigContext = reactExports.createContext({
16389  transformPagePoint: (p2) => p2,
16390  isStatic: false,
16391  reducedMotion: "never"
16392});
16393const MotionContext = reactExports.createContext({});
16394function useVisualElementContext() {
16395  return reactExports.useContext(MotionContext).visualElement;
16396}
16397const PresenceContext = reactExports.createContext(null);
16398const isBrowser = typeof document !== "undefined";
16399const useIsomorphicLayoutEffect = isBrowser ? reactExports.useLayoutEffect : reactExports.useEffect;
16400const LazyContext = reactExports.createContext({ strict: false });
16401function useVisualElement(Component, visualState, props, createVisualElement) {
16402  const parent = useVisualElementContext();
16403  const lazyContext = reactExports.useContext(LazyContext);
16404  const presenceContext = reactExports.useContext(PresenceContext);
16405  const reducedMotionConfig = reactExports.useContext(MotionConfigContext).reducedMotion;
16406  const visualElementRef = reactExports.useRef();
16407  createVisualElement = createVisualElement || lazyContext.renderer;
16408  if (!visualElementRef.current && createVisualElement) {
16409    visualElementRef.current = createVisualElement(Component, {
16410      visualState,
16411      parent,
16412      props,
16413      presenceId: presenceContext ? presenceContext.id : void 0,
16414      blockInitialAnimation: presenceContext ? presenceContext.initial === false : false,
16415      reducedMotionConfig
16416    });
16417  }
16418  const visualElement = visualElementRef.current;
16419  useIsomorphicLayoutEffect(() => {
16420    visualElement && visualElement.render();
16421  });
16422  useIsomorphicLayoutEffect(() => {
16423    if (visualElement && visualElement.animationState) {
16424      visualElement.animationState.animateChanges();
16425    }
16426  });
16427  useIsomorphicLayoutEffect(() => () => visualElement && visualElement.notify("Unmount"), []);
16428  return visualElement;
16429}
16430function isRefObject(ref) {
16431  return typeof ref === "object" && Object.prototype.hasOwnProperty.call(ref, "current");
16432}
16433function useMotionRef(visualState, visualElement, externalRef) {
16434  return reactExports.useCallback(
16435    (instance) => {
16436      instance && visualState.mount && visualState.mount(instance);
16437      if (visualElement) {
16438        instance ? visualElement.mount(instance) : visualElement.unmount();
16439      }
16440      if (externalRef) {
16441        if (typeof externalRef === "function") {
16442          externalRef(instance);
16443        } else if (isRefObject(externalRef)) {
16444          externalRef.current = instance;
16445        }
16446      }
16447    },
16448    /**
16449     * Only pass a new ref callback to React if we've received a visual element
16450     * factory. Otherwise we'll be mounting/remounting every time externalRef
16451     * or other dependencies change.
16452     */
16453    [visualElement]
16454  );
16455}
16456function isVariantLabel(v2) {
16457  return typeof v2 === "string" || Array.isArray(v2);
16458}
16459function isAnimationControls(v2) {
16460  return typeof v2 === "object" && typeof v2.start === "function";
16461}
16462const variantProps$1 = [
16463  "initial",
16464  "animate",
16465  "exit",
16466  "whileHover",
16467  "whileDrag",
16468  "whileTap",
16469  "whileFocus",
16470  "whileInView"
16471];
16472function isControllingVariants(props) {
16473  return isAnimationControls(props.animate) || variantProps$1.some((name2) => isVariantLabel(props[name2]));
16474}
16475function isVariantNode(props) {
16476  return Boolean(isControllingVariants(props) || props.variants);
16477}
16478function getCurrentTreeVariants(props, context) {
16479  if (isControllingVariants(props)) {
16480    const { initial, animate: animate2 } = props;
16481    return {
16482      initial: initial === false || isVariantLabel(initial) ? initial : void 0,
16483      animate: isVariantLabel(animate2) ? animate2 : void 0
16484    };
16485  }
16486  return props.inherit !== false ? context : {};
16487}
16488function useCreateMotionContext(props) {
16489  const { initial, animate: animate2 } = getCurrentTreeVariants(props, reactExports.useContext(MotionContext));
16490  return reactExports.useMemo(() => ({ initial, animate: animate2 }), [variantLabelsAsDependency(initial), variantLabelsAsDependency(animate2)]);
16491}
16492function variantLabelsAsDependency(prop) {
16493  return Array.isArray(prop) ? prop.join(" ") : prop;
16494}
16495const createDefinition = (propNames2) => ({
16496  isEnabled: (props) => propNames2.some((name2) => !!props[name2])
16497});
16498const featureDefinitions = {
16499  measureLayout: createDefinition(["layout", "layoutId", "drag"]),
16500  animation: createDefinition([
16501    "animate",
16502    "exit",
16503    "variants",
16504    "whileHover",
16505    "whileTap",
16506    "whileFocus",
16507    "whileDrag",
16508    "whileInView"
16509  ]),
16510  exit: createDefinition(["exit"]),
16511  drag: createDefinition(["drag", "dragControls"]),
16512  focus: createDefinition(["whileFocus"]),
16513  hover: createDefinition(["whileHover", "onHoverStart", "onHoverEnd"]),
16514  tap: createDefinition(["whileTap", "onTap", "onTapStart", "onTapCancel"]),
16515  pan: createDefinition([
16516    "onPan",
16517    "onPanStart",
16518    "onPanSessionStart",
16519    "onPanEnd"
16520  ]),
16521  inView: createDefinition([
16522    "whileInView",
16523    "onViewportEnter",
16524    "onViewportLeave"
16525  ])
16526};
16527function loadFeatures(features) {
16528  for (const key in features) {
16529    if (key === "projectionNodeConstructor") {
16530      featureDefinitions.projectionNodeConstructor = features[key];
16531    } else {
16532      featureDefinitions[key].Component = features[key];
16533    }
16534  }
16535}
16536function useConstant(init) {
16537  const ref = reactExports.useRef(null);
16538  if (ref.current === null) {
16539    ref.current = init();
16540  }
16541  return ref.current;
16542}
16543const globalProjectionState = {
16544  /**
16545   * Global flag as to whether the tree has animated since the last time
16546   * we resized the window
16547   */
16548  hasAnimatedSinceResize: true,
16549  /**
16550   * We set this to true once, on the first update. Any nodes added to the tree beyond that
16551   * update will be given a `data-projection-id` attribute.
16552   */
16553  hasEverUpdated: false
16554};
16555let id$1 = 1;
16556function useProjectionId() {
16557  return useConstant(() => {
16558    if (globalProjectionState.hasEverUpdated) {
16559      return id$1++;
16560    }
16561  });
16562}
16563const LayoutGroupContext = reactExports.createContext({});
16564class VisualElementHandler extends React$1.Component {
16565  /**
16566   * Update visual element props as soon as we know this update is going to be commited.
16567   */
16568  getSnapshotBeforeUpdate() {
16569    const { visualElement, props } = this.props;
16570    if (visualElement)
16571      visualElement.setProps(props);
16572    return null;
16573  }
16574  componentDidUpdate() {
16575  }
16576  render() {
16577    return this.props.children;
16578  }
16579}
16580const SwitchLayoutGroupContext = reactExports.createContext({});
16581const motionComponentSymbol = Symbol.for("motionComponentSymbol");
16582function createMotionComponent({ preloadedFeatures, createVisualElement, projectionNodeConstructor, useRender, useVisualState, Component }) {
16583  preloadedFeatures && loadFeatures(preloadedFeatures);
16584  function MotionComponent(props, externalRef) {
16585    const configAndProps = {
16586      ...reactExports.useContext(MotionConfigContext),
16587      ...props,
16588      layoutId: useLayoutId(props)
16589    };
16590    const { isStatic } = configAndProps;
16591    let features = null;
16592    const context = useCreateMotionContext(props);
16593    const projectionId = isStatic ? void 0 : useProjectionId();
16594    const visualState = useVisualState(props, isStatic);
16595    if (!isStatic && isBrowser) {
16596      context.visualElement = useVisualElement(Component, visualState, configAndProps, createVisualElement);
16597      const lazyStrictMode = reactExports.useContext(LazyContext).strict;
16598      const initialLayoutGroupConfig = reactExports.useContext(SwitchLayoutGroupContext);
16599      if (context.visualElement) {
16600        features = context.visualElement.loadFeatures(
16601          // Note: Pass the full new combined props to correctly re-render dynamic feature components.
16602          configAndProps,
16603          lazyStrictMode,
16604          preloadedFeatures,
16605          projectionId,
16606          projectionNodeConstructor || featureDefinitions.projectionNodeConstructor,
16607          initialLayoutGroupConfig
16608        );
16609      }
16610    }
16611    return reactExports.createElement(
16612      VisualElementHandler,
16613      { visualElement: context.visualElement, props: configAndProps },
16614      features,
16615      reactExports.createElement(MotionContext.Provider, { value: context }, useRender(Component, props, projectionId, useMotionRef(visualState, context.visualElement, externalRef), visualState, isStatic, context.visualElement))
16616    );
16617  }
16618  const ForwardRefComponent = reactExports.forwardRef(MotionComponent);
16619  ForwardRefComponent[motionComponentSymbol] = Component;
16620  return ForwardRefComponent;
16621}
16622function useLayoutId({ layoutId }) {
16623  const layoutGroupId = reactExports.useContext(LayoutGroupContext).id;
16624  return layoutGroupId && layoutId !== void 0 ? layoutGroupId + "-" + layoutId : layoutId;
16625}
16626function createMotionProxy(createConfig) {
16627  function custom(Component, customMotionComponentConfig = {}) {
16628    return createMotionComponent(createConfig(Component, customMotionComponentConfig));
16629  }
16630  if (typeof Proxy === "undefined") {
16631    return custom;
16632  }
16633  const componentCache = /* @__PURE__ */ new Map();
16634  return new Proxy(custom, {
16635    /**
16636     * Called when `motion` is referenced with a prop: `motion.div`, `motion.input` etc.
16637     * The prop name is passed through as `key` and we can use that to generate a `motion`
16638     * DOM component with that name.
16639     */
16640    get: (_target, key) => {
16641      if (!componentCache.has(key)) {
16642        componentCache.set(key, custom(key));
16643      }
16644      return componentCache.get(key);
16645    }
16646  });
16647}
16648const lowercaseSVGElements = [
16649  "animate",
16650  "circle",
16651  "defs",
16652  "desc",
16653  "ellipse",
16654  "g",
16655  "image",
16656  "line",
16657  "filter",
16658  "marker",
16659  "mask",
16660  "metadata",
16661  "path",
16662  "pattern",
16663  "polygon",
16664  "polyline",
16665  "rect",
16666  "stop",
16667  "switch",
16668  "symbol",
16669  "svg",
16670  "text",
16671  "tspan",
16672  "use",
16673  "view"
16674];
16675function isSVGComponent(Component) {
16676  if (
16677    /**
16678     * If it's not a string, it's a custom React component. Currently we only support
16679     * HTML custom React components.
16680     */
16681    typeof Component !== "string" || /**
16682     * If it contains a dash, the element is a custom HTML webcomponent.
16683     */
16684    Component.includes("-")
16685  ) {
16686    return false;
16687  } else if (
16688    /**
16689     * If it's in our list of lowercase SVG tags, it's an SVG component
16690     */
16691    lowercaseSVGElements.indexOf(Component) > -1 || /**
16692     * If it contains a capital letter, it's an SVG component
16693     */
16694    /[A-Z]/.test(Component)
16695  ) {
16696    return true;
16697  }
16698  return false;
16699}
16700const scaleCorrectors = {};
16701function addScaleCorrector(correctors) {
16702  Object.assign(scaleCorrectors, correctors);
16703}
16704const transformPropOrder = [
16705  "transformPerspective",
16706  "x",
16707  "y",
16708  "z",
16709  "translateX",
16710  "translateY",
16711  "translateZ",
16712  "scale",
16713  "scaleX",
16714  "scaleY",
16715  "rotate",
16716  "rotateX",
16717  "rotateY",
16718  "rotateZ",
16719  "skew",
16720  "skewX",
16721  "skewY"
16722];
16723const transformProps = new Set(transformPropOrder);
16724function isForcedMotionValue(key, { layout: layout2, layoutId }) {
16725  return transformProps.has(key) || key.startsWith("origin") || (layout2 || layoutId !== void 0) && (!!scaleCorrectors[key] || key === "opacity");
16726}
16727const isMotionValue = (value) => !!(value === null || value === void 0 ? void 0 : value.getVelocity);
16728const translateAlias = {
16729  x: "translateX",
16730  y: "translateY",
16731  z: "translateZ",
16732  transformPerspective: "perspective"
16733};
16734const sortTransformProps = (a, b2) => transformPropOrder.indexOf(a) - transformPropOrder.indexOf(b2);
16735function buildTransform({ transform: transform2, transformKeys: transformKeys2 }, { enableHardwareAcceleration = true, allowTransformNone = true }, transformIsDefault, transformTemplate2) {
16736  let transformString = "";
16737  transformKeys2.sort(sortTransformProps);
16738  for (const key of transformKeys2) {
16739    transformString += `${translateAlias[key] || key}(${transform2[key]}) `;
16740  }
16741  if (enableHardwareAcceleration && !transform2.z) {
16742    transformString += "translateZ(0)";
16743  }
16744  transformString = transformString.trim();
16745  if (transformTemplate2) {
16746    transformString = transformTemplate2(transform2, transformIsDefault ? "" : transformString);
16747  } else if (allowTransformNone && transformIsDefault) {
16748    transformString = "none";
16749  }
16750  return transformString;
16751}
16752function isCSSVariable$1(key) {
16753  return key.startsWith("--");
16754}
16755const getValueAsType = (value, type) => {
16756  return type && typeof value === "number" ? type.transform(value) : value;
16757};
16758const clamp = (min, max, v2) => Math.min(Math.max(v2, min), max);
16759const number = {
16760  test: (v2) => typeof v2 === "number",
16761  parse: parseFloat,
16762  transform: (v2) => v2
16763};
16764const alpha = {
16765  ...number,
16766  transform: (v2) => clamp(0, 1, v2)
16767};
16768const scale = {
16769  ...number,
16770  default: 1
16771};
16772const sanitize = (v2) => Math.round(v2 * 1e5) / 1e5;
16773const floatRegex = /(-)?([\d]*\.?[\d])+/g;
16774const colorRegex = /(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi;
16775const singleColorRegex = /^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;
16776function isString(v2) {
16777  return typeof v2 === "string";
16778}
16779const createUnitType = (unit) => ({
16780  test: (v2) => isString(v2) && v2.endsWith(unit) && v2.split(" ").length === 1,
16781  parse: parseFloat,
16782  transform: (v2) => `${v2}${unit}`
16783});
16784const degrees = createUnitType("deg");
16785const percent = createUnitType("%");
16786const px = createUnitType("px");
16787const vh = createUnitType("vh");
16788const vw = createUnitType("vw");
16789const progressPercentage = {
16790  ...percent,
16791  parse: (v2) => percent.parse(v2) / 100,
16792  transform: (v2) => percent.transform(v2 * 100)
16793};
16794const int = {
16795  ...number,
16796  transform: Math.round
16797};
16798const numberValueTypes = {
16799  // Border props
16800  borderWidth: px,
16801  borderTopWidth: px,
16802  borderRightWidth: px,
16803  borderBottomWidth: px,
16804  borderLeftWidth: px,
16805  borderRadius: px,
16806  radius: px,
16807  borderTopLeftRadius: px,
16808  borderTopRightRadius: px,
16809  borderBottomRightRadius: px,
16810  borderBottomLeftRadius: px,
16811  // Positioning props
16812  width: px,
16813  maxWidth: px,
16814  height: px,
16815  maxHeight: px,
16816  size: px,
16817  top: px,
16818  right: px,
16819  bottom: px,
16820  left: px,
16821  // Spacing props
16822  padding: px,
16823  paddingTop: px,
16824  paddingRight: px,
16825  paddingBottom: px,
16826  paddingLeft: px,
16827  margin: px,
16828  marginTop: px,
16829  marginRight: px,
16830  marginBottom: px,
16831  marginLeft: px,
16832  // Transform props
16833  rotate: degrees,
16834  rotateX: degrees,
16835  rotateY: degrees,
16836  rotateZ: degrees,
16837  scale,
16838  scaleX: scale,
16839  scaleY: scale,
16840  scaleZ: scale,
16841  skew: degrees,
16842  skewX: degrees,
16843  skewY: degrees,
16844  distance: px,
16845  translateX: px,
16846  translateY: px,
16847  translateZ: px,
16848  x: px,
16849  y: px,
16850  z: px,
16851  perspective: px,
16852  transformPerspective: px,
16853  opacity: alpha,
16854  originX: progressPercentage,
16855  originY: progressPercentage,
16856  originZ: px,
16857  // Misc
16858  zIndex: int,
16859  // SVG
16860  fillOpacity: alpha,
16861  strokeOpacity: alpha,
16862  numOctaves: int
16863};
16864function buildHTMLStyles(state2, latestValues, options, transformTemplate2) {
16865  const { style, vars, transform: transform2, transformKeys: transformKeys2, transformOrigin } = state2;
16866  transformKeys2.length = 0;
16867  let hasTransform2 = false;
vendor: 5,968 bytes, lines 16868-17068
16868  let hasTransformOrigin = false;
16869  let transformIsNone = true;
16870  for (const key in latestValues) {
16871    const value = latestValues[key];
16872    if (isCSSVariable$1(key)) {
16873      vars[key] = value;
16874      continue;
16875    }
16876    const valueType = numberValueTypes[key];
16877    const valueAsType = getValueAsType(value, valueType);
16878    if (transformProps.has(key)) {
16879      hasTransform2 = true;
16880      transform2[key] = valueAsType;
16881      transformKeys2.push(key);
16882      if (!transformIsNone)
16883        continue;
16884      if (value !== (valueType.default || 0))
16885        transformIsNone = false;
16886    } else if (key.startsWith("origin")) {
16887      hasTransformOrigin = true;
16888      transformOrigin[key] = valueAsType;
16889    } else {
16890      style[key] = valueAsType;
16891    }
16892  }
16893  if (!latestValues.transform) {
16894    if (hasTransform2 || transformTemplate2) {
16895      style.transform = buildTransform(state2, options, transformIsNone, transformTemplate2);
16896    } else if (style.transform) {
16897      style.transform = "none";
16898    }
16899  }
16900  if (hasTransformOrigin) {
16901    const { originX = "50%", originY = "50%", originZ = 0 } = transformOrigin;
16902    style.transformOrigin = `${originX} ${originY} ${originZ}`;
16903  }
16904}
16905const createHtmlRenderState = () => ({
16906  style: {},
16907  transform: {},
16908  transformKeys: [],
16909  transformOrigin: {},
16910  vars: {}
16911});
16912function copyRawValuesOnly(target, source, props) {
16913  for (const key in source) {
16914    if (!isMotionValue(source[key]) && !isForcedMotionValue(key, props)) {
16915      target[key] = source[key];
16916    }
16917  }
16918}
16919function useInitialMotionValues({ transformTemplate: transformTemplate2 }, visualState, isStatic) {
16920  return reactExports.useMemo(() => {
16921    const state2 = createHtmlRenderState();
16922    buildHTMLStyles(state2, visualState, { enableHardwareAcceleration: !isStatic }, transformTemplate2);
16923    return Object.assign({}, state2.vars, state2.style);
16924  }, [visualState]);
16925}
16926function useStyle(props, visualState, isStatic) {
16927  const styleProp = props.style || {};
16928  const style = {};
16929  copyRawValuesOnly(style, styleProp, props);
16930  Object.assign(style, useInitialMotionValues(props, visualState, isStatic));
16931  return props.transformValues ? props.transformValues(style) : style;
16932}
16933function useHTMLProps(props, visualState, isStatic) {
16934  const htmlProps = {};
16935  const style = useStyle(props, visualState, isStatic);
16936  if (props.drag && props.dragListener !== false) {
16937    htmlProps.draggable = false;
16938    style.userSelect = style.WebkitUserSelect = style.WebkitTouchCallout = "none";
16939    style.touchAction = props.drag === true ? "none" : `pan-${props.drag === "x" ? "y" : "x"}`;
16940  }
16941  htmlProps.style = style;
16942  return htmlProps;
16943}
16944const animationProps = [
16945  "animate",
16946  "exit",
16947  "variants",
16948  "whileHover",
16949  "whileTap",
16950  "whileFocus",
16951  "whileDrag",
16952  "whileInView"
16953];
16954const tapProps = ["whileTap", "onTap", "onTapStart", "onTapCancel"];
16955const panProps = ["onPan", "onPanStart", "onPanSessionStart", "onPanEnd"];
16956const inViewProps = [
16957  "whileInView",
16958  "onViewportEnter",
16959  "onViewportLeave",
16960  "viewport"
16961];
16962const validMotionProps = /* @__PURE__ */ new Set([
16963  "initial",
16964  "style",
16965  "values",
16966  "variants",
16967  "transition",
16968  "transformTemplate",
16969  "transformValues",
16970  "custom",
16971  "inherit",
16972  "layout",
16973  "layoutId",
16974  "layoutDependency",
16975  "onLayoutAnimationStart",
16976  "onLayoutAnimationComplete",
16977  "onLayoutMeasure",
16978  "onBeforeLayoutMeasure",
16979  "onAnimationStart",
16980  "onAnimationComplete",
16981  "onUpdate",
16982  "onDragStart",
16983  "onDrag",
16984  "onDragEnd",
16985  "onMeasureDragConstraints",
16986  "onDirectionLock",
16987  "onDragTransitionEnd",
16988  "drag",
16989  "dragControls",
16990  "dragListener",
16991  "dragConstraints",
16992  "dragDirectionLock",
16993  "dragSnapToOrigin",
16994  "_dragX",
16995  "_dragY",
16996  "dragElastic",
16997  "dragMomentum",
16998  "dragPropagation",
16999  "dragTransition",
17000  "onHoverStart",
17001  "onHoverEnd",
17002  "layoutScroll",
17003  ...inViewProps,
17004  ...tapProps,
17005  ...animationProps,
17006  ...panProps
17007]);
17008function isValidMotionProp(key) {
17009  return validMotionProps.has(key);
17010}
17011let shouldForward = (key) => !isValidMotionProp(key);
17012function loadExternalIsValidProp(isValidProp) {
17013  if (!isValidProp)
17014    return;
17015  shouldForward = (key) => key.startsWith("on") ? !isValidMotionProp(key) : isValidProp(key);
17016}
17017try {
17018  loadExternalIsValidProp(require("@emotion/is-prop-valid").default);
17019} catch (_a5) {
17020}
17021function filterProps(props, isDom, forwardMotionProps) {
17022  const filteredProps = {};
17023  for (const key in props) {
17024    if (shouldForward(key) || forwardMotionProps === true && isValidMotionProp(key) || !isDom && !isValidMotionProp(key) || // If trying to use native HTML drag events, forward drag listeners
17025    props["draggable"] && key.startsWith("onDrag")) {
17026      filteredProps[key] = props[key];
17027    }
17028  }
17029  return filteredProps;
17030}
17031function calcOrigin$1(origin, offset, size2) {
17032  return typeof origin === "string" ? origin : px.transform(offset + size2 * origin);
17033}
17034function calcSVGTransformOrigin(dimensions, originX, originY) {
17035  const pxOriginX = calcOrigin$1(originX, dimensions.x, dimensions.width);
17036  const pxOriginY = calcOrigin$1(originY, dimensions.y, dimensions.height);
17037  return `${pxOriginX} ${pxOriginY}`;
17038}
17039const dashKeys = {
17040  offset: "stroke-dashoffset",
17041  array: "stroke-dasharray"
17042};
17043const camelKeys = {
17044  offset: "strokeDashoffset",
17045  array: "strokeDasharray"
17046};
17047function buildSVGPath(attrs, length2, spacing2 = 1, offset = 0, useDashCase = true) {
17048  attrs.pathLength = 1;
17049  const keys2 = useDashCase ? dashKeys : camelKeys;
17050  attrs[keys2.offset] = px.transform(-offset);
17051  const pathLength = px.transform(length2);
17052  const pathSpacing = px.transform(spacing2);
17053  attrs[keys2.array] = `${pathLength} ${pathSpacing}`;
17054}
17055function buildSVGAttrs(state2, {
17056  attrX,
17057  attrY,
17058  originX,
17059  originY,
17060  pathLength,
17061  pathSpacing = 1,
17062  pathOffset = 0,
17063  // This is object creation, which we try to avoid per-frame.
17064  ...latest
17065}, options, isSVGTag2, transformTemplate2) {
17066  buildHTMLStyles(state2, latest, options, transformTemplate2);
17067  if (isSVGTag2) {
17068    if (state2.style.viewBox) {
17069      state2.attrs.viewBox = state2.style.viewBox;
17070    }
17071    return;
17072  }
17073  state2.attrs = state2.style;
17074  state2.style = {};
17075  const { attrs, style, dimensions } = state2;
17076  if (attrs.transform) {
17077    if (dimensions)
17078      style.transform = attrs.transform;
17079    delete attrs.transform;
17080  }
17081  if (dimensions && (originX !== void 0 || originY !== void 0 || style.transform)) {
17082    style.transformOrigin = calcSVGTransformOrigin(dimensions, originX !== void 0 ? originX : 0.5, originY !== void 0 ? originY : 0.5);
17083  }
17084  if (attrX !== void 0)
17085    attrs.x = attrX;
17086  if (attrY !== void 0)
17087    attrs.y = attrY;
17088  if (pathLength !== void 0) {
17089    buildSVGPath(attrs, pathLength, pathSpacing, pathOffset, false);
17090  }
17091}
17092const createSvgRenderState = () => ({
17093  ...createHtmlRenderState(),
17094  attrs: {}
17095});
17096const isSVGTag = (tag) => typeof tag === "string" && tag.toLowerCase() === "svg";
17097function useSVGProps(props, visualState, _isStatic, Component) {
17098  const visualProps = reactExports.useMemo(() => {
17099    const state2 = createSvgRenderState();
17100    buildSVGAttrs(state2, visualState, { enableHardwareAcceleration: false }, isSVGTag(Component), props.transformTemplate);
17101    return {
17102      ...state2.attrs,
17103      style: { ...state2.style }
17104    };
17105  }, [visualState]);
17106  if (props.style) {
17107    const rawStyles = {};
17108    copyRawValuesOnly(rawStyles, props.style, props);
17109    visualProps.style = { ...rawStyles, ...visualProps.style };
17110  }
17111  return visualProps;
17112}
17113function createUseRender(forwardMotionProps = false) {
17114  const useRender = (Component, props, projectionId, ref, { latestValues }, isStatic) => {
17115    const useVisualProps = isSVGComponent(Component) ? useSVGProps : useHTMLProps;
17116    const visualProps = useVisualProps(props, latestValues, isStatic, Component);
17117    const filteredProps = filterProps(props, typeof Component === "string", forwardMotionProps);
17118    const elementProps = {
17119      ...filteredProps,
17120      ...visualProps,
17121      ref
17122    };
17123    if (projectionId) {
17124      elementProps["data-projection-id"] = projectionId;
17125    }
17126    return reactExports.createElement(Component, elementProps);
17127  };
17128  return useRender;
17129}
17130const camelToDash = (str) => str.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
17131function renderHTML(element, { style, vars }, styleProp, projection) {
17132  Object.assign(element.style, style, projection && projection.getProjectionStyles(styleProp));
17133  for (const key in vars) {
17134    element.style.setProperty(key, vars[key]);
17135  }
17136}
17137const camelCaseAttributes = /* @__PURE__ */ new Set([
17138  "baseFrequency",
17139  "diffuseConstant",
17140  "kernelMatrix",
17141  "kernelUnitLength",
17142  "keySplines",
17143  "keyTimes",
17144  "limitingConeAngle",
17145  "markerHeight",
17146  "markerWidth",
17147  "numOctaves",
17148  "targetX",
17149  "targetY",
17150  "surfaceScale",
17151  "specularConstant",
17152  "specularExponent",
17153  "stdDeviation",
17154  "tableValues",
17155  "viewBox",
17156  "gradientTransform",
17157  "pathLength",
17158  "startOffset",
17159  "textLength",
17160  "lengthAdjust"
17161]);
vendor: 4,537 bytes, lines 17162-17274
17162function renderSVG(element, renderState, _styleProp, projection) {
17163  renderHTML(element, renderState, void 0, projection);
17164  for (const key in renderState.attrs) {
17165    element.setAttribute(!camelCaseAttributes.has(key) ? camelToDash(key) : key, renderState.attrs[key]);
17166  }
17167}
17168function scrapeMotionValuesFromProps$1(props) {
17169  const { style } = props;
17170  const newValues = {};
17171  for (const key in style) {
17172    if (isMotionValue(style[key]) || isForcedMotionValue(key, props)) {
17173      newValues[key] = style[key];
17174    }
17175  }
17176  return newValues;
17177}
17178function scrapeMotionValuesFromProps(props) {
17179  const newValues = scrapeMotionValuesFromProps$1(props);
17180  for (const key in props) {
17181    if (isMotionValue(props[key])) {
17182      const targetKey = key === "x" || key === "y" ? "attr" + key.toUpperCase() : key;
17183      newValues[targetKey] = props[key];
17184    }
17185  }
17186  return newValues;
17187}
17188function resolveVariantFromProps(props, definition, custom, currentValues = {}, currentVelocity = {}) {
17189  if (typeof definition === "function") {
17190    definition = definition(custom !== void 0 ? custom : props.custom, currentValues, currentVelocity);
17191  }
17192  if (typeof definition === "string") {
17193    definition = props.variants && props.variants[definition];
17194  }
17195  if (typeof definition === "function") {
17196    definition = definition(custom !== void 0 ? custom : props.custom, currentValues, currentVelocity);
17197  }
17198  return definition;
17199}
17200const isKeyframesTarget = (v2) => {
17201  return Array.isArray(v2);
17202};
17203const isCustomValue = (v2) => {
17204  return Boolean(v2 && typeof v2 === "object" && v2.mix && v2.toValue);
17205};
17206const resolveFinalValueInKeyframes = (v2) => {
17207  return isKeyframesTarget(v2) ? v2[v2.length - 1] || 0 : v2;
17208};
17209function resolveMotionValue(value) {
17210  const unwrappedValue = isMotionValue(value) ? value.get() : value;
17211  return isCustomValue(unwrappedValue) ? unwrappedValue.toValue() : unwrappedValue;
17212}
17213function makeState({ scrapeMotionValuesFromProps: scrapeMotionValuesFromProps2, createRenderState, onMount }, props, context, presenceContext) {
17214  const state2 = {
17215    latestValues: makeLatestValues(props, context, presenceContext, scrapeMotionValuesFromProps2),
17216    renderState: createRenderState()
17217  };
17218  if (onMount) {
17219    state2.mount = (instance) => onMount(props, instance, state2);
17220  }
17221  return state2;
17222}
17223const makeUseVisualState = (config2) => (props, isStatic) => {
17224  const context = reactExports.useContext(MotionContext);
17225  const presenceContext = reactExports.useContext(PresenceContext);
17226  const make = () => makeState(config2, props, context, presenceContext);
17227  return isStatic ? make() : useConstant(make);
17228};
17229function makeLatestValues(props, context, presenceContext, scrapeMotionValues) {
17230  const values = {};
17231  const motionValues = scrapeMotionValues(props);
17232  for (const key in motionValues) {
17233    values[key] = resolveMotionValue(motionValues[key]);
17234  }
17235  let { initial, animate: animate2 } = props;
17236  const isControllingVariants$1 = isControllingVariants(props);
17237  const isVariantNode$1 = isVariantNode(props);
17238  if (context && isVariantNode$1 && !isControllingVariants$1 && props.inherit !== false) {
17239    if (initial === void 0)
17240      initial = context.initial;
17241    if (animate2 === void 0)
17242      animate2 = context.animate;
17243  }
17244  let isInitialAnimationBlocked = presenceContext ? presenceContext.initial === false : false;
17245  isInitialAnimationBlocked = isInitialAnimationBlocked || initial === false;
17246  const variantToSet = isInitialAnimationBlocked ? animate2 : initial;
17247  if (variantToSet && typeof variantToSet !== "boolean" && !isAnimationControls(variantToSet)) {
17248    const list2 = Array.isArray(variantToSet) ? variantToSet : [variantToSet];
17249    list2.forEach((definition) => {
17250      const resolved = resolveVariantFromProps(props, definition);
17251      if (!resolved)
17252        return;
17253      const { transitionEnd, transition: transition2, ...target } = resolved;
17254      for (const key in target) {
17255        let valueTarget = target[key];
17256        if (Array.isArray(valueTarget)) {
17257          const index = isInitialAnimationBlocked ? valueTarget.length - 1 : 0;
17258          valueTarget = valueTarget[index];
17259        }
17260        if (valueTarget !== null) {
17261          values[key] = valueTarget;
17262        }
17263      }
17264      for (const key in transitionEnd)
17265        values[key] = transitionEnd[key];
17266    });
17267  }
17268  return values;
17269}
17270const svgMotionConfig = {
17271  useVisualState: makeUseVisualState({
17272    scrapeMotionValuesFromProps,
17273    createRenderState: createSvgRenderState,
17274    onMount: (props, instance, { renderState, latestValues }) => {
17275      try {
17276        renderState.dimensions = typeof instance.getBBox === "function" ? instance.getBBox() : instance.getBoundingClientRect();
17277      } catch (e2) {
17278        renderState.dimensions = {
17279          x: 0,
17280          y: 0,
17281          width: 0,
17282          height: 0
17283        };
17284      }
17285      buildSVGAttrs(renderState, latestValues, { enableHardwareAcceleration: false }, isSVGTag(instance.tagName), props.transformTemplate);
17286      renderSVG(instance, renderState);
17287    }
17288  })
17289};
17290const htmlMotionConfig = {
17291  useVisualState: makeUseVisualState({
17292    scrapeMotionValuesFromProps: scrapeMotionValuesFromProps$1,
17293    createRenderState: createHtmlRenderState
17294  })
17295};
17296function createDomMotionConfig(Component, { forwardMotionProps = false }, preloadedFeatures, createVisualElement, projectionNodeConstructor) {
17297  const baseConfig = isSVGComponent(Component) ? svgMotionConfig : htmlMotionConfig;
17298  return {
17299    ...baseConfig,
17300    preloadedFeatures,
17301    useRender: createUseRender(forwardMotionProps),
17302    createVisualElement,
17303    projectionNodeConstructor,
17304    Component
17305  };
17306}
17307var AnimationType;
17308(function(AnimationType2) {
17309  AnimationType2["Animate"] = "animate";
17310  AnimationType2["Hover"] = "whileHover";
17311  AnimationType2["Tap"] = "whileTap";
17312  AnimationType2["Drag"] = "whileDrag";
17313  AnimationType2["Focus"] = "whileFocus";
17314  AnimationType2["InView"] = "whileInView";
17315  AnimationType2["Exit"] = "exit";
17316})(AnimationType || (AnimationType = {}));
17317function addDomEvent(target, eventName, handler, options = { passive: true }) {
17318  target.addEventListener(eventName, handler, options);
17319  return () => target.removeEventListener(eventName, handler);
17320}
17321function useDomEvent(ref, eventName, handler, options) {
17322  reactExports.useEffect(() => {
17323    const element = ref.current;
17324    if (handler && element) {
17325      return addDomEvent(element, eventName, handler, options);
17326    }
17327  }, [ref, eventName, handler, options]);
17328}
17329function useFocusGesture({ whileFocus, visualElement }) {
17330  const { animationState } = visualElement;
17331  const onFocus = () => {
17332    animationState && animationState.setActive(AnimationType.Focus, true);
17333  };
17334  const onBlur = () => {
17335    animationState && animationState.setActive(AnimationType.Focus, false);
17336  };
17337  useDomEvent(visualElement, "focus", whileFocus ? onFocus : void 0);
17338  useDomEvent(visualElement, "blur", whileFocus ? onBlur : void 0);
17339}
17340function isMouseEvent(event) {
17341  if (typeof PointerEvent !== "undefined" && event instanceof PointerEvent) {
17342    return !!(event.pointerType === "mouse");
17343  }
17344  return event instanceof MouseEvent;
17345}
17346function isTouchEvent(event) {
17347  const hasTouches = !!event.touches;
17348  return hasTouches;
17349}
17350function filterPrimaryPointer(eventHandler) {
17351  return (event) => {
17352    const isMouseEvent2 = event instanceof MouseEvent;
17353    const isPrimaryPointer = !isMouseEvent2 || isMouseEvent2 && event.button === 0;
17354    if (isPrimaryPointer) {
17355      eventHandler(event);
17356    }
17357  };
17358}
17359const defaultPagePoint = { pageX: 0, pageY: 0 };
17360function pointFromTouch(e2, pointType = "page") {
17361  const primaryTouch = e2.touches[0] || e2.changedTouches[0];
17362  const point = primaryTouch || defaultPagePoint;
17363  return {
17364    x: point[pointType + "X"],
17365    y: point[pointType + "Y"]
17366  };
17367}
17368function pointFromMouse(point, pointType = "page") {
17369  return {
17370    x: point[pointType + "X"],
17371    y: point[pointType + "Y"]
17372  };
17373}
17374function extractEventInfo(event, pointType = "page") {
17375  return {
17376    point: isTouchEvent(event) ? pointFromTouch(event, pointType) : pointFromMouse(event, pointType)
17377  };
17378}
17379const wrapHandler = (handler, shouldFilterPrimaryPointer = false) => {
17380  const listener = (event) => handler(event, extractEventInfo(event));
17381  return shouldFilterPrimaryPointer ? filterPrimaryPointer(listener) : listener;
17382};
17383const supportsPointerEvents = () => isBrowser && window.onpointerdown === null;
17384const supportsTouchEvents = () => isBrowser && window.ontouchstart === null;
17385const supportsMouseEvents = () => isBrowser && window.onmousedown === null;
17386const mouseEventNames = {
17387  pointerdown: "mousedown",
17388  pointermove: "mousemove",
17389  pointerup: "mouseup",
17390  pointercancel: "mousecancel",
17391  pointerover: "mouseover",
17392  pointerout: "mouseout",
17393  pointerenter: "mouseenter",
17394  pointerleave: "mouseleave"
17395};
17396const touchEventNames = {
17397  pointerdown: "touchstart",
17398  pointermove: "touchmove",
17399  pointerup: "touchend",
17400  pointercancel: "touchcancel"
17401};
17402function getPointerEventName(name2) {
17403  if (supportsPointerEvents()) {
17404    return name2;
17405  } else if (supportsTouchEvents()) {
17406    return touchEventNames[name2];
17407  }
vendor: 21,282 bytes, lines 17407-18089
17407 else if (supportsMouseEvents()) {
17408    return mouseEventNames[name2];
17409  }
17410  return name2;
17411}
17412function addPointerEvent(target, eventName, handler, options) {
17413  return addDomEvent(target, getPointerEventName(eventName), wrapHandler(handler, eventName === "pointerdown"), options);
17414}
17415function usePointerEvent(ref, eventName, handler, options) {
17416  return useDomEvent(ref, getPointerEventName(eventName), handler && wrapHandler(handler, eventName === "pointerdown"), options);
17417}
17418function createLock(name2) {
17419  let lock = null;
17420  return () => {
17421    const openLock = () => {
17422      lock = null;
17423    };
17424    if (lock === null) {
17425      lock = name2;
17426      return openLock;
17427    }
17428    return false;
17429  };
17430}
17431const globalHorizontalLock = createLock("dragHorizontal");
17432const globalVerticalLock = createLock("dragVertical");
17433function getGlobalLock(drag2) {
17434  let lock = false;
17435  if (drag2 === "y") {
17436    lock = globalVerticalLock();
17437  } else if (drag2 === "x") {
17438    lock = globalHorizontalLock();
17439  } else {
17440    const openHorizontal = globalHorizontalLock();
17441    const openVertical = globalVerticalLock();
17442    if (openHorizontal && openVertical) {
17443      lock = () => {
17444        openHorizontal();
17445        openVertical();
17446      };
17447    } else {
17448      if (openHorizontal)
17449        openHorizontal();
17450      if (openVertical)
17451        openVertical();
17452    }
17453  }
17454  return lock;
17455}
17456function isDragActive() {
17457  const openGestureLock = getGlobalLock(true);
17458  if (!openGestureLock)
17459    return true;
17460  openGestureLock();
17461  return false;
17462}
17463function createHoverEvent(visualElement, isActive, callback) {
17464  return (event, info) => {
17465    if (!isMouseEvent(event) || isDragActive())
17466      return;
17467    if (visualElement.animationState) {
17468      visualElement.animationState.setActive(AnimationType.Hover, isActive);
17469    }
17470    callback && callback(event, info);
17471  };
17472}
17473function useHoverGesture({ onHoverStart, onHoverEnd, whileHover, visualElement }) {
17474  usePointerEvent(visualElement, "pointerenter", onHoverStart || whileHover ? createHoverEvent(visualElement, true, onHoverStart) : void 0, { passive: !onHoverStart });
17475  usePointerEvent(visualElement, "pointerleave", onHoverEnd || whileHover ? createHoverEvent(visualElement, false, onHoverEnd) : void 0, { passive: !onHoverEnd });
17476}
17477const isNodeOrChild = (parent, child) => {
17478  if (!child) {
17479    return false;
17480  } else if (parent === child) {
17481    return true;
17482  } else {
17483    return isNodeOrChild(parent, child.parentElement);
17484  }
17485};
17486function useUnmountEffect(callback) {
17487  return reactExports.useEffect(() => () => callback(), []);
17488}
17489const combineFunctions = (a, b2) => (v2) => b2(a(v2));
17490const pipe = (...transformers) => transformers.reduce(combineFunctions);
17491function useTapGesture({ onTap, onTapStart, onTapCancel, whileTap, visualElement }) {
17492  const hasPressListeners = onTap || onTapStart || onTapCancel || whileTap;
17493  const isPressing = reactExports.useRef(false);
17494  const cancelPointerEndListeners = reactExports.useRef(null);
17495  const eventOptions = {
17496    passive: !(onTapStart || onTap || onTapCancel || onPointerDown)
17497  };
17498  function removePointerEndListener() {
17499    cancelPointerEndListeners.current && cancelPointerEndListeners.current();
17500    cancelPointerEndListeners.current = null;
17501  }
17502  function checkPointerEnd() {
17503    removePointerEndListener();
17504    isPressing.current = false;
17505    visualElement.animationState && visualElement.animationState.setActive(AnimationType.Tap, false);
17506    return !isDragActive();
17507  }
17508  function onPointerUp(event, info) {
17509    if (!checkPointerEnd())
17510      return;
17511    !isNodeOrChild(visualElement.current, event.target) ? onTapCancel && onTapCancel(event, info) : onTap && onTap(event, info);
17512  }
17513  function onPointerCancel(event, info) {
17514    if (!checkPointerEnd())
17515      return;
17516    onTapCancel && onTapCancel(event, info);
17517  }
17518  function onPointerDown(event, info) {
17519    removePointerEndListener();
17520    if (isPressing.current)
17521      return;
17522    isPressing.current = true;
17523    cancelPointerEndListeners.current = pipe(addPointerEvent(window, "pointerup", onPointerUp, eventOptions), addPointerEvent(window, "pointercancel", onPointerCancel, eventOptions));
17524    visualElement.animationState && visualElement.animationState.setActive(AnimationType.Tap, true);
17525    onTapStart && onTapStart(event, info);
17526  }
17527  usePointerEvent(visualElement, "pointerdown", hasPressListeners ? onPointerDown : void 0, eventOptions);
17528  useUnmountEffect(removePointerEndListener);
17529}
17530const defaultEnvironment = "production";
17531const env = typeof process === "undefined" || {} === void 0 ? defaultEnvironment : "production";
17532const warned = /* @__PURE__ */ new Set();
17533function warnOnce(condition, message, element) {
17534  if (condition || warned.has(message))
17535    return;
17536  console.warn(message);
17537  if (element)
17538    console.warn(element);
17539  warned.add(message);
17540}
17541const observerCallbacks = /* @__PURE__ */ new WeakMap();
17542const observers = /* @__PURE__ */ new WeakMap();
17543const fireObserverCallback = (entry) => {
17544  const callback = observerCallbacks.get(entry.target);
17545  callback && callback(entry);
17546};
17547const fireAllObserverCallbacks = (entries) => {
17548  entries.forEach(fireObserverCallback);
17549};
17550function initIntersectionObserver({ root: root2, ...options }) {
17551  const lookupRoot = root2 || document;
17552  if (!observers.has(lookupRoot)) {
17553    observers.set(lookupRoot, {});
17554  }
17555  const rootObservers = observers.get(lookupRoot);
17556  const key = JSON.stringify(options);
17557  if (!rootObservers[key]) {
17558    rootObservers[key] = new IntersectionObserver(fireAllObserverCallbacks, { root: root2, ...options });
17559  }
17560  return rootObservers[key];
17561}
17562function observeIntersection(element, options, callback) {
17563  const rootInteresectionObserver = initIntersectionObserver(options);
17564  observerCallbacks.set(element, callback);
17565  rootInteresectionObserver.observe(element);
17566  return () => {
17567    observerCallbacks.delete(element);
17568    rootInteresectionObserver.unobserve(element);
17569  };
17570}
17571function useViewport({ visualElement, whileInView, onViewportEnter, onViewportLeave, viewport = {} }) {
17572  const state2 = reactExports.useRef({
17573    hasEnteredView: false,
17574    isInView: false
17575  });
17576  let shouldObserve = Boolean(whileInView || onViewportEnter || onViewportLeave);
17577  if (viewport.once && state2.current.hasEnteredView)
17578    shouldObserve = false;
17579  const useObserver = typeof IntersectionObserver === "undefined" ? useMissingIntersectionObserver : useIntersectionObserver;
17580  useObserver(shouldObserve, state2.current, visualElement, viewport);
17581}
17582const thresholdNames = {
17583  some: 0,
17584  all: 1
17585};
17586function useIntersectionObserver(shouldObserve, state2, visualElement, { root: root2, margin: rootMargin, amount = "some", once }) {
17587  reactExports.useEffect(() => {
17588    if (!shouldObserve || !visualElement.current)
17589      return;
17590    const options = {
17591      root: root2 === null || root2 === void 0 ? void 0 : root2.current,
17592      rootMargin,
17593      threshold: typeof amount === "number" ? amount : thresholdNames[amount]
17594    };
17595    const intersectionCallback = (entry) => {
17596      const { isIntersecting } = entry;
17597      if (state2.isInView === isIntersecting)
17598        return;
17599      state2.isInView = isIntersecting;
17600      if (once && !isIntersecting && state2.hasEnteredView) {
17601        return;
17602      } else if (isIntersecting) {
17603        state2.hasEnteredView = true;
17604      }
17605      if (visualElement.animationState) {
17606        visualElement.animationState.setActive(AnimationType.InView, isIntersecting);
17607      }
17608      const props = visualElement.getProps();
17609      const callback = isIntersecting ? props.onViewportEnter : props.onViewportLeave;
17610      callback && callback(entry);
17611    };
17612    return observeIntersection(visualElement.current, options, intersectionCallback);
17613  }, [shouldObserve, root2, rootMargin, amount]);
17614}
17615function useMissingIntersectionObserver(shouldObserve, state2, visualElement, { fallback = true }) {
17616  reactExports.useEffect(() => {
17617    if (!shouldObserve || !fallback)
17618      return;
17619    if (env !== "production") {
17620      warnOnce(false, "IntersectionObserver not available on this device. whileInView animations will trigger on mount.");
17621    }
17622    requestAnimationFrame(() => {
17623      state2.hasEnteredView = true;
17624      const { onViewportEnter } = visualElement.getProps();
17625      onViewportEnter && onViewportEnter(null);
17626      if (visualElement.animationState) {
17627        visualElement.animationState.setActive(AnimationType.InView, true);
17628      }
17629    });
17630  }, [shouldObserve]);
17631}
17632const makeRenderlessComponent = (hook) => (props) => {
17633  hook(props);
17634  return null;
17635};
17636const gestureAnimations = {
17637  inView: makeRenderlessComponent(useViewport),
17638  tap: makeRenderlessComponent(useTapGesture),
17639  focus: makeRenderlessComponent(useFocusGesture),
17640  hover: makeRenderlessComponent(useHoverGesture)
17641};
17642function usePresence() {
17643  const context = reactExports.useContext(PresenceContext);
17644  if (context === null)
17645    return [true, null];
17646  const { isPresent: isPresent2, onExitComplete, register } = context;
17647  const id2 = reactExports.useId();
17648  reactExports.useEffect(() => register(id2), []);
17649  const safeToRemove = () => onExitComplete && onExitComplete(id2);
17650  return !isPresent2 && onExitComplete ? [false, safeToRemove] : [true];
17651}
17652function useIsPresent() {
17653  return isPresent(reactExports.useContext(PresenceContext));
17654}
17655function isPresent(context) {
17656  return context === null ? true : context.isPresent;
17657}
17658function shallowCompare(next2, prev2) {
17659  if (!Array.isArray(prev2))
17660    return false;
17661  const prevLength = prev2.length;
17662  if (prevLength !== next2.length)
17663    return false;
17664  for (let i = 0; i < prevLength; i++) {
17665    if (prev2[i] !== next2[i])
17666      return false;
17667  }
17668  return true;
17669}
17670const isNumericalString = (v2) => /^\-?\d*\.?\d+$/.test(v2);
17671const isZeroValueString = (v2) => /^0[^.\s]+$/.test(v2);
17672const frameData = {
17673  delta: 0,
17674  timestamp: 0
17675};
17676const defaultTimestep = 1 / 60 * 1e3;
17677const getCurrentTime = typeof performance !== "undefined" ? () => performance.now() : () => Date.now();
17678const onNextFrame = typeof window !== "undefined" ? (callback) => window.requestAnimationFrame(callback) : (callback) => setTimeout(() => callback(getCurrentTime()), defaultTimestep);
17679function createRenderStep(runNextFrame2) {
17680  let toRun = [];
17681  let toRunNextFrame = [];
17682  let numToRun = 0;
17683  let isProcessing2 = false;
17684  let flushNextFrame = false;
17685  const toKeepAlive = /* @__PURE__ */ new WeakSet();
17686  const step = {
17687    /**
17688     * Schedule a process to run on the next frame.
17689     */
17690    schedule: (callback, keepAlive = false, immediate = false) => {
17691      const addToCurrentFrame = immediate && isProcessing2;
17692      const buffer = addToCurrentFrame ? toRun : toRunNextFrame;
17693      if (keepAlive)
17694        toKeepAlive.add(callback);
17695      if (buffer.indexOf(callback) === -1) {
17696        buffer.push(callback);
17697        if (addToCurrentFrame && isProcessing2)
17698          numToRun = toRun.length;
17699      }
17700      return callback;
17701    },
17702    /**
17703     * Cancel the provided callback from running on the next frame.
17704     */
17705    cancel: (callback) => {
17706      const index = toRunNextFrame.indexOf(callback);
17707      if (index !== -1)
17708        toRunNextFrame.splice(index, 1);
17709      toKeepAlive.delete(callback);
17710    },
17711    /**
17712     * Execute all schedule callbacks.
17713     */
17714    process: (frameData2) => {
17715      if (isProcessing2) {
17716        flushNextFrame = true;
17717        return;
17718      }
17719      isProcessing2 = true;
17720      [toRun, toRunNextFrame] = [toRunNextFrame, toRun];
17721      toRunNextFrame.length = 0;
17722      numToRun = toRun.length;
17723      if (numToRun) {
17724        for (let i = 0; i < numToRun; i++) {
17725          const callback = toRun[i];
17726          callback(frameData2);
17727          if (toKeepAlive.has(callback)) {
17728            step.schedule(callback);
17729            runNextFrame2();
17730          }
17731        }
17732      }
17733      isProcessing2 = false;
17734      if (flushNextFrame) {
17735        flushNextFrame = false;
17736        step.process(frameData2);
17737      }
17738    }
17739  };
17740  return step;
17741}
17742const maxElapsed = 40;
17743let useDefaultElapsed = true;
17744let runNextFrame = false;
17745let isProcessing = false;
17746const stepsOrder = [
17747  "read",
17748  "update",
17749  "preRender",
17750  "render",
17751  "postRender"
17752];
17753const steps = stepsOrder.reduce((acc, key) => {
17754  acc[key] = createRenderStep(() => runNextFrame = true);
17755  return acc;
17756}, {});
17757const sync = stepsOrder.reduce((acc, key) => {
17758  const step = steps[key];
17759  acc[key] = (process2, keepAlive = false, immediate = false) => {
17760    if (!runNextFrame)
17761      startLoop();
17762    return step.schedule(process2, keepAlive, immediate);
17763  };
17764  return acc;
17765}, {});
17766const cancelSync = stepsOrder.reduce((acc, key) => {
17767  acc[key] = steps[key].cancel;
17768  return acc;
17769}, {});
17770const flushSync = stepsOrder.reduce((acc, key) => {
17771  acc[key] = () => steps[key].process(frameData);
17772  return acc;
17773}, {});
17774const processStep = (stepId) => steps[stepId].process(frameData);
17775const processFrame = (timestamp) => {
17776  runNextFrame = false;
17777  frameData.delta = useDefaultElapsed ? defaultTimestep : Math.max(Math.min(timestamp - frameData.timestamp, maxElapsed), 1);
17778  frameData.timestamp = timestamp;
17779  isProcessing = true;
17780  stepsOrder.forEach(processStep);
17781  isProcessing = false;
17782  if (runNextFrame) {
17783    useDefaultElapsed = false;
17784    onNextFrame(processFrame);
17785  }
17786};
17787const startLoop = () => {
17788  runNextFrame = true;
17789  useDefaultElapsed = true;
17790  if (!isProcessing)
17791    onNextFrame(processFrame);
17792};
17793function addUniqueItem(arr, item) {
17794  if (arr.indexOf(item) === -1)
17795    arr.push(item);
17796}
17797function removeItem(arr, item) {
17798  const index = arr.indexOf(item);
17799  if (index > -1)
17800    arr.splice(index, 1);
17801}
17802class SubscriptionManager {
17803  constructor() {
17804    this.subscriptions = [];
17805  }
17806  add(handler) {
17807    addUniqueItem(this.subscriptions, handler);
17808    return () => removeItem(this.subscriptions, handler);
17809  }
17810  notify(a, b2, c2) {
17811    const numSubscriptions = this.subscriptions.length;
17812    if (!numSubscriptions)
17813      return;
17814    if (numSubscriptions === 1) {
17815      this.subscriptions[0](a, b2, c2);
17816    } else {
17817      for (let i = 0; i < numSubscriptions; i++) {
17818        const handler = this.subscriptions[i];
17819        handler && handler(a, b2, c2);
17820      }
17821    }
17822  }
17823  getSize() {
17824    return this.subscriptions.length;
17825  }
17826  clear() {
17827    this.subscriptions.length = 0;
17828  }
17829}
17830function velocityPerSecond(velocity, frameDuration) {
17831  return frameDuration ? velocity * (1e3 / frameDuration) : 0;
17832}
17833const isFloat = (value) => {
17834  return !isNaN(parseFloat(value));
17835};
17836class MotionValue {
17837  /**
17838   * @param init - The initiating value
17839   * @param config - Optional configuration options
17840   *
17841   * -  `transformer`: A function to transform incoming values with.
17842   *
17843   * @internal
17844   */
17845  constructor(init, options = {}) {
17846    this.version = "7.10.3";
17847    this.timeDelta = 0;
17848    this.lastUpdated = 0;
17849    this.canTrackVelocity = false;
17850    this.events = {};
17851    this.updateAndNotify = (v2, render = true) => {
17852      this.prev = this.current;
17853      this.current = v2;
17854      const { delta, timestamp } = frameData;
17855      if (this.lastUpdated !== timestamp) {
17856        this.timeDelta = delta;
17857        this.lastUpdated = timestamp;
17858        sync.postRender(this.scheduleVelocityCheck);
17859      }
17860      if (this.prev !== this.current && this.events.change) {
17861        this.events.change.notify(this.current);
17862      }
17863      if (this.events.velocityChange) {
17864        this.events.velocityChange.notify(this.getVelocity());
17865      }
17866      if (render && this.events.renderRequest) {
17867        this.events.renderRequest.notify(this.current);
17868      }
17869    };
17870    this.scheduleVelocityCheck = () => sync.postRender(this.velocityCheck);
17871    this.velocityCheck = ({ timestamp }) => {
17872      if (timestamp !== this.lastUpdated) {
17873        this.prev = this.current;
17874        if (this.events.velocityChange) {
17875          this.events.velocityChange.notify(this.getVelocity());
17876        }
17877      }
17878    };
17879    this.hasAnimated = false;
17880    this.prev = this.current = init;
17881    this.canTrackVelocity = isFloat(this.current);
17882    this.owner = options.owner;
17883  }
17884  /**
17885   * Adds a function that will be notified when the `MotionValue` is updated.
17886   *
17887   * It returns a function that, when called, will cancel the subscription.
17888   *
17889   * When calling `onChange` inside a React component, it should be wrapped with the
17890   * `useEffect` hook. As it returns an unsubscribe function, this should be returned
17891   * from the `useEffect` function to ensure you don't add duplicate subscribers..
17892   *
17893   * ```jsx
17894   * export const MyComponent = () => {
17895   *   const x = useMotionValue(0)
17896   *   const y = useMotionValue(0)
17897   *   const opacity = useMotionValue(1)
17898   *
17899   *   useEffect(() => {
17900   *     function updateOpacity() {
17901   *       const maxXY = Math.max(x.get(), y.get())
17902   *       const newOpacity = transform(maxXY, [0, 100], [1, 0])
17903   *       opacity.set(newOpacity)
17904   *     }
17905   *
17906   *     const unsubscribeX = x.on("change", updateOpacity)
17907   *     const unsubscribeY = y.on("change", updateOpacity)
17908   *
17909   *     return () => {
17910   *       unsubscribeX()
17911   *       unsubscribeY()
17912   *     }
17913   *   }, [])
17914   *
17915   *   return <motion.div style={{ x }} />
17916   * }
17917   * ```
17918   *
17919   * @privateRemarks
17920   *
17921   * We could look into a `useOnChange` hook if the above lifecycle management proves confusing.
17922   *
17923   * ```jsx
17924   * useOnChange(x, () => {})
17925   * ```
17926   *
17927   * @param subscriber - A function that receives the latest value.
17928   * @returns A function that, when called, will cancel this subscription.
17929   *
17930   * @deprecated
17931   */
17932  onChange(subscription) {
17933    return this.on("change", subscription);
17934  }
17935  on(eventName, callback) {
17936    if (!this.events[eventName]) {
17937      this.events[eventName] = new SubscriptionManager();
17938    }
17939    return this.events[eventName].add(callback);
17940  }
17941  clearListeners() {
17942    for (const eventManagers in this.events) {
17943      this.events[eventManagers].clear();
17944    }
17945  }
17946  /**
17947   * Attaches a passive effect to the `MotionValue`.
17948   *
17949   * @internal
17950   */
17951  attach(passiveEffect) {
17952    this.passiveEffect = passiveEffect;
17953  }
17954  /**
17955   * Sets the state of the `MotionValue`.
17956   *
17957   * @remarks
17958   *
17959   * ```jsx
17960   * const x = useMotionValue(0)
17961   * x.set(10)
17962   * ```
17963   *
17964   * @param latest - Latest value to set.
17965   * @param render - Whether to notify render subscribers. Defaults to `true`
17966   *
17967   * @public
17968   */
17969  set(v2, render = true) {
17970    if (!render || !this.passiveEffect) {
17971      this.updateAndNotify(v2, render);
17972    } else {
17973      this.passiveEffect(v2, this.updateAndNotify);
17974    }
17975  }
17976  setWithVelocity(prev2, current, delta) {
17977    this.set(current);
17978    this.prev = prev2;
17979    this.timeDelta = delta;
17980  }
17981  /**
17982   * Returns the latest state of `MotionValue`
17983   *
17984   * @returns - The latest state of `MotionValue`
17985   *
17986   * @public
17987   */
17988  get() {
17989    return this.current;
17990  }
17991  /**
17992   * @public
17993   */
17994  getPrevious() {
17995    return this.prev;
17996  }
17997  /**
17998   * Returns the latest velocity of `MotionValue`
17999   *
18000   * @returns - The latest velocity of `MotionValue`. Returns `0` if the state is non-numerical.
18001   *
18002   * @public
18003   */
18004  getVelocity() {
18005    return this.canTrackVelocity ? (
18006      // These casts could be avoided if parseFloat would be typed better
18007      velocityPerSecond(parseFloat(this.current) - parseFloat(this.prev), this.timeDelta)
18008    ) : 0;
18009  }
18010  /**
18011   * Registers a new animation to control this `MotionValue`. Only one
18012   * animation can drive a `MotionValue` at one time.
18013   *
18014   * ```jsx
18015   * value.start()
18016   * ```
18017   *
18018   * @param animation - A function that starts the provided animation
18019   *
18020   * @internal
18021   */
18022  start(animation) {
18023    this.stop();
18024    return new Promise((resolve) => {
18025      this.hasAnimated = true;
18026      this.stopAnimation = animation(resolve);
18027      if (this.events.animationStart) {
18028        this.events.animationStart.notify();
18029      }
18030    }).then(() => {
18031      if (this.events.animationComplete) {
18032        this.events.animationComplete.notify();
18033      }
18034      this.clearAnimation();
18035    });
18036  }
18037  /**
18038   * Stop the currently active animation.
18039   *
18040   * @public
18041   */
18042  stop() {
18043    if (this.stopAnimation) {
18044      this.stopAnimation();
18045      if (this.events.animationCancel) {
18046        this.events.animationCancel.notify();
18047      }
18048    }
18049    this.clearAnimation();
18050  }
18051  /**
18052   * Returns `true` if this value is currently animating.
18053   *
18054   * @public
18055   */
18056  isAnimating() {
18057    return !!this.stopAnimation;
18058  }
18059  clearAnimation() {
18060    this.stopAnimation = null;
18061  }
18062  /**
18063   * Destroy and clean up subscribers to this `MotionValue`.
18064   *
18065   * The `MotionValue` hooks like `useMotionValue` and `useTransform` automatically
18066   * handle the lifecycle of the returned `MotionValue`, so this method is only necessary if you've manually
18067   * created a `MotionValue` via the `motionValue` function.
18068   *
18069   * @public
18070   */
18071  destroy() {
18072    this.clearListeners();
18073    this.stop();
18074  }
18075}
18076function motionValue(init, options) {
18077  return new MotionValue(init, options);
18078}
18079const isColorString = (type, testProp) => (v2) => {
18080  return Boolean(isString(v2) && singleColorRegex.test(v2) && v2.startsWith(type) || testProp && Object.prototype.hasOwnProperty.call(v2, testProp));
18081};
18082const splitColor = (aName, bName, cName) => (v2) => {
18083  if (!isString(v2))
18084    return v2;
18085  const [a, b2, c2, alpha2] = v2.match(floatRegex);
18086  return {
18087    [aName]: parseFloat(a),
18088    [bName]: parseFloat(b2),
18089    [cName]: parseFloat(c2),
18090    alpha: alpha2 !== void 0 ? parseFloat(alpha2) : 1
18091  };
18092};
18093const clampRgbUnit = (v2) => clamp(0, 255, v2);
18094const rgbUnit = {
18095  ...number,
18096  transform: (v2) => Math.round(clampRgbUnit(v2))
18097};
18098const rgba = {
18099  test: isColorString("rgb", "red"),
18100  parse: splitColor("red", "green", "blue"),
18101  transform: ({ red, green, blue, alpha: alpha$1 = 1 }) => "rgba(" + rgbUnit.transform(red) + ", " + rgbUnit.transform(green) + ", " + rgbUnit.transform(blue) + ", " + sanitize(alpha.transform(alpha$1)) + ")"
18102};
18103function parseHex(v2) {
18104  let r2 = "";
18105  let g2 = "";
18106  let b2 = "";
18107  let a = "";
18108  if (v2.length > 5) {
18109    r2 = v2.substring(1, 3);
18110    g2 = v2.substring(3, 5);
18111    b2 = v2.substring(5, 7);
18112    a = v2.substring(7, 9);
18113  } else {
18114    r2 = v2.substring(1, 2);
18115    g2 = v2.substring(2, 3);
18116    b2 = v2.substring(3, 4);
18117    a = v2.substring(4, 5);
18118    r2 += r2;
18119    g2 += g2;
18120    b2 += b2;
18121    a += a;
18122  }
18123  return {
18124    red: parseInt(r2, 16),
18125    green: parseInt(g2, 16),
18126    blue: parseInt(b2, 16),
18127    alpha: a ? parseInt(a, 16) / 25
vendor: 17,127 bytes, lines 18127-18635
181275 : 1
18128  };
18129}
18130const hex = {
18131  test: isColorString("#"),
18132  parse: parseHex,
18133  transform: rgba.transform
18134};
18135const hsla = {
18136  test: isColorString("hsl", "hue"),
18137  parse: splitColor("hue", "saturation", "lightness"),
18138  transform: ({ hue, saturation, lightness, alpha: alpha$1 = 1 }) => {
18139    return "hsla(" + Math.round(hue) + ", " + percent.transform(sanitize(saturation)) + ", " + percent.transform(sanitize(lightness)) + ", " + sanitize(alpha.transform(alpha$1)) + ")";
18140  }
18141};
18142const color = {
18143  test: (v2) => rgba.test(v2) || hex.test(v2) || hsla.test(v2),
18144  parse: (v2) => {
18145    if (rgba.test(v2)) {
18146      return rgba.parse(v2);
18147    } else if (hsla.test(v2)) {
18148      return hsla.parse(v2);
18149    } else {
18150      return hex.parse(v2);
18151    }
18152  },
18153  transform: (v2) => {
18154    return isString(v2) ? v2 : v2.hasOwnProperty("red") ? rgba.transform(v2) : hsla.transform(v2);
18155  }
18156};
18157const colorToken = "${c}";
18158const numberToken = "${n}";
18159function test(v2) {
18160  var _a5, _b3;
18161  return isNaN(v2) && isString(v2) && (((_a5 = v2.match(floatRegex)) === null || _a5 === void 0 ? void 0 : _a5.length) || 0) + (((_b3 = v2.match(colorRegex)) === null || _b3 === void 0 ? void 0 : _b3.length) || 0) > 0;
18162}
18163function analyseComplexValue(v2) {
18164  if (typeof v2 === "number")
18165    v2 = `${v2}`;
18166  const values = [];
18167  let numColors = 0;
18168  let numNumbers = 0;
18169  const colors2 = v2.match(colorRegex);
18170  if (colors2) {
18171    numColors = colors2.length;
18172    v2 = v2.replace(colorRegex, colorToken);
18173    values.push(...colors2.map(color.parse));
18174  }
18175  const numbers = v2.match(floatRegex);
18176  if (numbers) {
18177    numNumbers = numbers.length;
18178    v2 = v2.replace(floatRegex, numberToken);
18179    values.push(...numbers.map(number.parse));
18180  }
18181  return { values, numColors, numNumbers, tokenised: v2 };
18182}
18183function parse(v2) {
18184  return analyseComplexValue(v2).values;
18185}
18186function createTransformer(source) {
18187  const { values, numColors, tokenised } = analyseComplexValue(source);
18188  const numValues = values.length;
18189  return (v2) => {
18190    let output = tokenised;
18191    for (let i = 0; i < numValues; i++) {
18192      output = output.replace(i < numColors ? colorToken : numberToken, i < numColors ? color.transform(v2[i]) : sanitize(v2[i]));
18193    }
18194    return output;
18195  };
18196}
18197const convertNumbersToZero = (v2) => typeof v2 === "number" ? 0 : v2;
18198function getAnimatableNone$1(v2) {
18199  const parsed = parse(v2);
18200  const transformer = createTransformer(v2);
18201  return transformer(parsed.map(convertNumbersToZero));
18202}
18203const complex = { test, parse, createTransformer, getAnimatableNone: getAnimatableNone$1 };
18204const maxDefaults = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
18205function applyDefaultFilter(v2) {
18206  const [name2, value] = v2.slice(0, -1).split("(");
18207  if (name2 === "drop-shadow")
18208    return v2;
18209  const [number2] = value.match(floatRegex) || [];
18210  if (!number2)
18211    return v2;
18212  const unit = value.replace(number2, "");
18213  let defaultValue = maxDefaults.has(name2) ? 1 : 0;
18214  if (number2 !== value)
18215    defaultValue *= 100;
18216  return name2 + "(" + defaultValue + unit + ")";
18217}
18218const functionRegex = /([a-z-]*)\(.*?\)/g;
18219const filter = {
18220  ...complex,
18221  getAnimatableNone: (v2) => {
18222    const functions = v2.match(functionRegex);
18223    return functions ? functions.map(applyDefaultFilter).join(" ") : v2;
18224  }
18225};
18226const defaultValueTypes = {
18227  ...numberValueTypes,
18228  // Color props
18229  color,
18230  backgroundColor: color,
18231  outlineColor: color,
18232  fill: color,
18233  stroke: color,
18234  // Border props
18235  borderColor: color,
18236  borderTopColor: color,
18237  borderRightColor: color,
18238  borderBottomColor: color,
18239  borderLeftColor: color,
18240  filter,
18241  WebkitFilter: filter
18242};
18243const getDefaultValueType = (key) => defaultValueTypes[key];
18244function getAnimatableNone(key, value) {
18245  var _a5;
18246  let defaultValueType = getDefaultValueType(key);
18247  if (defaultValueType !== filter)
18248    defaultValueType = complex;
18249  return (_a5 = defaultValueType.getAnimatableNone) === null || _a5 === void 0 ? void 0 : _a5.call(defaultValueType, value);
18250}
18251const testValueType = (v2) => (type) => type.test(v2);
18252const auto = {
18253  test: (v2) => v2 === "auto",
18254  parse: (v2) => v2
18255};
18256const dimensionValueTypes = [number, px, percent, degrees, vw, vh, auto];
18257const findDimensionValueType = (v2) => dimensionValueTypes.find(testValueType(v2));
18258const valueTypes = [...dimensionValueTypes, color, complex];
18259const findValueType = (v2) => valueTypes.find(testValueType(v2));
18260function getCurrent(visualElement) {
18261  const current = {};
18262  visualElement.values.forEach((value, key) => current[key] = value.get());
18263  return current;
18264}
18265function getVelocity$1(visualElement) {
18266  const velocity = {};
18267  visualElement.values.forEach((value, key) => velocity[key] = value.getVelocity());
18268  return velocity;
18269}
18270function resolveVariant(visualElement, definition, custom) {
18271  const props = visualElement.getProps();
18272  return resolveVariantFromProps(props, definition, custom !== void 0 ? custom : props.custom, getCurrent(visualElement), getVelocity$1(visualElement));
18273}
18274function setMotionValue(visualElement, key, value) {
18275  if (visualElement.hasValue(key)) {
18276    visualElement.getValue(key).set(value);
18277  } else {
18278    visualElement.addValue(key, motionValue(value));
18279  }
18280}
18281function setTarget(visualElement, definition) {
18282  const resolved = resolveVariant(visualElement, definition);
18283  let { transitionEnd = {}, transition: transition2 = {}, ...target } = resolved ? visualElement.makeTargetAnimatable(resolved, false) : {};
18284  target = { ...target, ...transitionEnd };
18285  for (const key in target) {
18286    const value = resolveFinalValueInKeyframes(target[key]);
18287    setMotionValue(visualElement, key, value);
18288  }
18289}
18290function checkTargetForNewValues(visualElement, target, origin) {
18291  var _a5, _b3;
18292  const newValueKeys = Object.keys(target).filter((key) => !visualElement.hasValue(key));
18293  const numNewValues = newValueKeys.length;
18294  if (!numNewValues)
18295    return;
18296  for (let i = 0; i < numNewValues; i++) {
18297    const key = newValueKeys[i];
18298    const targetValue = target[key];
18299    let value = null;
18300    if (Array.isArray(targetValue)) {
18301      value = targetValue[0];
18302    }
18303    if (value === null) {
18304      value = (_b3 = (_a5 = origin[key]) !== null && _a5 !== void 0 ? _a5 : visualElement.readValue(key)) !== null && _b3 !== void 0 ? _b3 : target[key];
18305    }
18306    if (value === void 0 || value === null)
18307      continue;
18308    if (typeof value === "string" && (isNumericalString(value) || isZeroValueString(value))) {
18309      value = parseFloat(value);
18310    } else if (!findValueType(value) && complex.test(targetValue)) {
18311      value = getAnimatableNone(key, targetValue);
18312    }
18313    visualElement.addValue(key, motionValue(value, { owner: visualElement }));
18314    if (origin[key] === void 0) {
18315      origin[key] = value;
18316    }
18317    if (value !== null)
18318      visualElement.setBaseTarget(key, value);
18319  }
18320}
18321function getOriginFromTransition(key, transition2) {
18322  if (!transition2)
18323    return;
18324  const valueTransition = transition2[key] || transition2["default"] || transition2;
18325  return valueTransition.from;
18326}
18327function getOrigin(target, transition2, visualElement) {
18328  var _a5;
18329  const origin = {};
18330  for (const key in target) {
18331    const transitionOrigin = getOriginFromTransition(key, transition2);
18332    origin[key] = transitionOrigin !== void 0 ? transitionOrigin : (_a5 = visualElement.getValue(key)) === null || _a5 === void 0 ? void 0 : _a5.get();
18333  }
18334  return origin;
18335}
18336function isWillChangeMotionValue(value) {
18337  return Boolean(isMotionValue(value) && value.add);
18338}
18339const appearStoreId = (id2, value) => `${id2}: ${value}`;
18340function handoffOptimizedAppearAnimation(id2, name2) {
18341  const { MotionAppearAnimations } = window;
18342  const animationId = appearStoreId(id2, transformProps.has(name2) ? "transform" : name2);
18343  const animation = MotionAppearAnimations && MotionAppearAnimations.get(animationId);
18344  if (animation) {
18345    sync.render(() => {
18346      try {
18347        animation.cancel();
18348        MotionAppearAnimations.delete(animationId);
18349      } catch (e2) {
18350      }
18351    });
18352    return animation.currentTime || 0;
18353  } else {
18354    return 0;
18355  }
18356}
18357const optimizedAppearDataId = "framerAppearId";
18358const optimizedAppearDataAttribute = "data-" + camelToDash(optimizedAppearDataId);
18359var warning$1 = function() {
18360};
18361var invariant$1 = function() {
18362};
18363const secondsToMilliseconds = (seconds) => seconds * 1e3;
18364const instantAnimationState = {
18365  current: false
18366};
18367const mirrorEasing = (easing) => (p2) => p2 <= 0.5 ? easing(2 * p2) / 2 : (2 - easing(2 * (1 - p2))) / 2;
18368const reverseEasing = (easing) => (p2) => 1 - easing(1 - p2);
18369const easeIn = (p2) => p2 * p2;
18370const easeOut = reverseEasing(easeIn);
18371const easeInOut = mirrorEasing(easeIn);
18372const mix = (from2, to, progress2) => -progress2 * from2 + progress2 * to + from2;
18373function hueToRgb(p2, q2, t2) {
18374  if (t2 < 0)
18375    t2 += 1;
18376  if (t2 > 1)
18377    t2 -= 1;
18378  if (t2 < 1 / 6)
18379    return p2 + (q2 - p2) * 6 * t2;
18380  if (t2 < 1 / 2)
18381    return q2;
18382  if (t2 < 2 / 3)
18383    return p2 + (q2 - p2) * (2 / 3 - t2) * 6;
18384  return p2;
18385}
18386function hslaToRgba({ hue, saturation, lightness, alpha: alpha2 }) {
18387  hue /= 360;
18388  saturation /= 100;
18389  lightness /= 100;
18390  let red = 0;
18391  let green = 0;
18392  let blue = 0;
18393  if (!saturation) {
18394    red = green = blue = lightness;
18395  } else {
18396    const q2 = lightness < 0.5 ? lightness * (1 + saturation) : lightness + saturation - lightness * saturation;
18397    const p2 = 2 * lightness - q2;
18398    red = hueToRgb(p2, q2, hue + 1 / 3);
18399    green = hueToRgb(p2, q2, hue);
18400    blue = hueToRgb(p2, q2, hue - 1 / 3);
18401  }
18402  return {
18403    red: Math.round(red * 255),
18404    green: Math.round(green * 255),
18405    blue: Math.round(blue * 255),
18406    alpha: alpha2
18407  };
18408}
18409const mixLinearColor = (from2, to, v2) => {
18410  const fromExpo = from2 * from2;
18411  return Math.sqrt(Math.max(0, v2 * (to * to - fromExpo) + fromExpo));
18412};
18413const colorTypes = [hex, rgba, hsla];
18414const getColorType = (v2) => colorTypes.find((type) => type.test(v2));
18415function asRGBA(color2) {
18416  const type = getColorType(color2);
18417  let model = type.parse(color2);
18418  if (type === hsla) {
18419    model = hslaToRgba(model);
18420  }
18421  return model;
18422}
18423const mixColor = (from2, to) => {
18424  const fromRGBA = asRGBA(from2);
18425  const toRGBA = asRGBA(to);
18426  const blended = { ...fromRGBA };
18427  return (v2) => {
18428    blended.red = mixLinearColor(fromRGBA.red, toRGBA.red, v2);
18429    blended.green = mixLinearColor(fromRGBA.green, toRGBA.green, v2);
18430    blended.blue = mixLinearColor(fromRGBA.blue, toRGBA.blue, v2);
18431    blended.alpha = mix(fromRGBA.alpha, toRGBA.alpha, v2);
18432    return rgba.transform(blended);
18433  };
18434};
18435function getMixer(origin, target) {
18436  if (typeof origin === "number") {
18437    return (v2) => mix(origin, target, v2);
18438  } else if (color.test(origin)) {
18439    return mixColor(origin, target);
18440  } else {
18441    return mixComplex(origin, target);
18442  }
18443}
18444const mixArray = (from2, to) => {
18445  const output = [...from2];
18446  const numValues = output.length;
18447  const blendValue = from2.map((fromThis, i) => getMixer(fromThis, to[i]));
18448  return (v2) => {
18449    for (let i = 0; i < numValues; i++) {
18450      output[i] = blendValue[i](v2);
18451    }
18452    return output;
18453  };
18454};
18455const mixObject = (origin, target) => {
18456  const output = { ...origin, ...target };
18457  const blendValue = {};
18458  for (const key in output) {
18459    if (origin[key] !== void 0 && target[key] !== void 0) {
18460      blendValue[key] = getMixer(origin[key], target[key]);
18461    }
18462  }
18463  return (v2) => {
18464    for (const key in blendValue) {
18465      output[key] = blendValue[key](v2);
18466    }
18467    return output;
18468  };
18469};
18470const mixComplex = (origin, target) => {
18471  const template = complex.createTransformer(target);
18472  const originStats = analyseComplexValue(origin);
18473  const targetStats = analyseComplexValue(target);
18474  const canInterpolate = originStats.numColors === targetStats.numColors && originStats.numNumbers >= targetStats.numNumbers;
18475  if (canInterpolate) {
18476    return pipe(mixArray(originStats.values, targetStats.values), template);
18477  } else {
18478    return (p2) => `${p2 > 0 ? target : origin}`;
18479  }
18480};
18481const progress = (from2, to, value) => {
18482  const toFromDifference = to - from2;
18483  return toFromDifference === 0 ? 1 : (value - from2) / toFromDifference;
18484};
18485const mixNumber = (from2, to) => (p2) => mix(from2, to, p2);
18486function detectMixerFactory(v2) {
18487  if (typeof v2 === "number") {
18488    return mixNumber;
18489  } else if (typeof v2 === "string") {
18490    if (color.test(v2)) {
18491      return mixColor;
18492    } else {
18493      return mixComplex;
18494    }
18495  } else if (Array.isArray(v2)) {
18496    return mixArray;
18497  } else if (typeof v2 === "object") {
18498    return mixObject;
18499  }
18500  return mixNumber;
18501}
18502function createMixers(output, ease, customMixer) {
18503  const mixers = [];
18504  const mixerFactory = customMixer || detectMixerFactory(output[0]);
18505  const numMixers = output.length - 1;
18506  for (let i = 0; i < numMixers; i++) {
18507    let mixer = mixerFactory(output[i], output[i + 1]);
18508    if (ease) {
18509      const easingFunction = Array.isArray(ease) ? ease[i] : ease;
18510      mixer = pipe(easingFunction, mixer);
18511    }
18512    mixers.push(mixer);
18513  }
18514  return mixers;
18515}
18516function interpolate(input, output, { clamp: isClamp = true, ease, mixer } = {}) {
18517  const inputLength = input.length;
18518  invariant$1(inputLength === output.length);
18519  invariant$1(!ease || !Array.isArray(ease) || ease.length === inputLength - 1);
18520  if (input[0] > input[inputLength - 1]) {
18521    input = [...input].reverse();
18522    output = [...output].reverse();
18523  }
18524  const mixers = createMixers(output, ease, mixer);
18525  const numMixers = mixers.length;
18526  const interpolator = (v2) => {
18527    let i = 0;
18528    if (numMixers > 1) {
18529      for (; i < input.length - 2; i++) {
18530        if (v2 < input[i + 1])
18531          break;
18532      }
18533    }
18534    const progressInRange = progress(input[i], input[i + 1], v2);
18535    return mixers[i](progressInRange);
18536  };
18537  return isClamp ? (v2) => interpolator(clamp(input[0], input[inputLength - 1], v2)) : interpolator;
18538}
18539const noop = (any) => any;
18540const calcBezier = (t2, a1, a2) => (((1 - 3 * a2 + 3 * a1) * t2 + (3 * a2 - 6 * a1)) * t2 + 3 * a1) * t2;
18541const subdivisionPrecision = 1e-7;
18542const subdivisionMaxIterations = 12;
18543function binarySubdivide(x2, lowerBound, upperBound, mX1, mX2) {
18544  let currentX;
18545  let currentT;
18546  let i = 0;
18547  do {
18548    currentT = lowerBound + (upperBound - lowerBound) / 2;
18549    currentX = calcBezier(currentT, mX1, mX2) - x2;
18550    if (currentX > 0) {
18551      upperBound = currentT;
18552    } else {
18553      lowerBound = currentT;
18554    }
18555  } while (Math.abs(currentX) > subdivisionPrecision && ++i < subdivisionMaxIterations);
18556  return currentT;
18557}
18558function cubicBezier(mX1, mY1, mX2, mY2) {
18559  if (mX1 === mY1 && mX2 === mY2)
18560    return noop;
18561  const getTForX = (aX) => binarySubdivide(aX, 0, 1, mX1, mX2);
18562  return (t2) => t2 === 0 || t2 === 1 ? t2 : calcBezier(getTForX(t2), mY1, mY2);
18563}
18564const circIn = (p2) => 1 - Math.sin(Math.acos(p2));
18565const circOut = reverseEasing(circIn);
18566const circInOut = mirrorEasing(circOut);
18567const backOut = cubicBezier(0.33, 1.53, 0.69, 0.99);
18568const backIn = reverseEasing(backOut);
18569const backInOut = mirrorEasing(backIn);
18570const anticipate = (p2) => (p2 *= 2) < 1 ? 0.5 * backIn(p2) : 0.5 * (2 - Math.pow(2, -10 * (p2 - 1)));
18571const easingLookup = {
18572  linear: noop,
18573  easeIn,
18574  easeInOut,
18575  easeOut,
18576  circIn,
18577  circInOut,
18578  circOut,
18579  backIn,
18580  backInOut,
18581  backOut,
18582  anticipate
18583};
18584const easingDefinitionToFunction = (definition) => {
18585  if (Array.isArray(definition)) {
18586    invariant$1(definition.length === 4);
18587    const [x1, y1, x2, y2] = definition;
18588    return cubicBezier(x1, y1, x2, y2);
18589  } else if (typeof definition === "string") {
18590    return easingLookup[definition];
18591  }
18592  return definition;
18593};
18594const isEasingArray = (ease) => {
18595  return Array.isArray(ease) && typeof ease[0] !== "number";
18596};
18597function defaultEasing(values, easing) {
18598  return values.map(() => easing || easeInOut).splice(0, values.length - 1);
18599}
18600function defaultOffset(values) {
18601  const numValues = values.length;
18602  return values.map((_value, i) => i !== 0 ? i / (numValues - 1) : 0);
18603}
18604function convertOffsetToTimes(offset, duration) {
18605  return offset.map((o) => o * duration);
18606}
18607function keyframes2({ keyframes: keyframeValues, ease = easeInOut, times, duration = 300 }) {
18608  keyframeValues = [...keyframeValues];
18609  const origin = keyframes2[0];
18610  const easingFunctions = isEasingArray(ease) ? ease.map(easingDefinitionToFunction) : easingDefinitionToFunction(ease);
18611  const state2 = { done: false, value: origin };
18612  const absoluteTimes = convertOffsetToTimes(
18613    // Only use the provided offsets if they're the correct length
18614    // TODO Maybe we should warn here if there's a length mismatch
18615    times && times.length === keyframes2.length ? times : defaultOffset(keyframeValues),
18616    duration
18617  );
18618  function createInterpolator() {
18619    return interpolate(absoluteTimes, keyframeValues, {
18620      ease: Array.isArray(easingFunctions) ? easingFunctions : defaultEasing(keyframeValues, easingFunctions)
18621    });
18622  }
18623  let interpolator = createInterpolator();
18624  return {
18625    next: (t2) => {
18626      state2.value = interpolator(t2);
18627      state2.done = t2 >= duration;
18628      return state2;
18629    },
18630    flipTarget: () => {
18631      keyframeValues.reverse();
18632      interpolator = createInterpolator();
18633    }
18634  };
18635}
18636const safeMin = 1e-3;
18637const minDuration = 0.01;
18638const maxDuration = 10;
18639const minDamping = 0.05;
18640const maxDamping = 1;
18641function findSpring({ duration = 800, bounce = 0.25, velocity = 0, mass = 1 }) {
18642  let envelope;
18643  let derivative;
18644  warning$1(duration <= maxDuration * 1e3);
18645  let dampingRatio = 1 - bounce;
18646  dampingRatio = clamp(minDamping, maxDamping, dampingRatio);
18647  duration = clamp(minDuration, maxDuration, duration / 1e3);
18648  if (dampingRatio < 1) {
18649    envelope = (undampedFreq2) => {
18650      const exponentialDecay = undampedFreq2 * dampingRatio;
18651      const delta = exponentialDecay * duration;
18652      const a = exponentialDecay - velocity;
18653      const b2 = calcAngularFreq(undampedFreq2, dampingRatio);
18654      const c2 = Math.exp(-delta);
18655      return safeMin - a / b2 * c2;
18656    };
18657    derivative = (undampedFreq2) => {
18658      const exponentialDecay = undampedFreq2 * dampingRatio;
18659      const delta = exponentialDecay * duration;
18660      const d2 = delta * velocity + velocity;
18661      const e2 = Math.pow(dampingRatio, 2) * Math.pow(undampedFreq2, 2) * duration;
18662      const f2 = Math.exp(-delta);
18663      const g2 = calcAngularFreq(Math.pow(undampedFreq2, 2), dampingRatio);
18664      const factor = -envelope(undampedFreq2) + safeMin > 0 ? -1 : 1;
18665      return factor * ((d2 - e2) * f2) / g2;
18666    };
18667  } else {
18668    envelope = (undampedFreq2) => {
18669      const a = Math.exp(-undampedFreq2 * duration);
18670      const b2 = (undampedFreq2 - velocity) * duration + 1;
18671      return -safeMin + a * b2;
18672    };
18673    derivative = (undampedFreq2) => {
18674      const a = Math.exp(-undampedFreq2 * duration);
18675      const b2 = (velocity - undampedFreq2) * (duration * duration);
18676      return a * b2;
18677    };
18678  }
18679  const initialGuess = 5 / duration;
18680  const undampedFreq = approximateRoot(envelope, derivative, initialGuess);
18681  duration = duration * 1e3;
18682  if (isNaN(undampedFreq)) {
18683    return {
18684      stiffness: 100,
18685      damping: 10,
18686      duration
18687    };
18688  } else {
18689    const stiffness = Math.pow(undampedFreq, 2) * mass;
18690    return {
18691      stiffness,
18692      damping: dampingRatio * 2 * Math.sqrt(mass * stiffness),
18693      duration
18694    };
18695  }
18696}
18697const rootIterations = 12;
18698function approximateRoot(envelope, derivative, initialGuess) {
18699  let result = initialGuess;
18700  for (let i = 1; i < rootIterations; i++) {
18701    result = result - envelope(result) / derivative(result);
18702  }
18703  return result;
18704}
18705function calcAngularFreq(undampedFreq, dampingRatio) {
18706  return undampedFreq * Math.sqrt(1 - dampingRatio * dampingRatio);
18707}
18708const durationKeys = ["duration", "bounce"];
18709const physicsKeys = ["stiffness", "damping", "mass"];
18710function isSpringType(options, keys2) {
18711  return keys2.some((key) => options[key] !== void 0);
18712}
18713function getSpringOptions(options) {
18714  let springOptions = {
18715    velocity: 0,
18716    stiffness: 100,
18717    damping: 10,
18718    mass: 1,
18719    isResolvedFromDuration: false,
18720    ...options
18721  };
18722  if (!isSpringType(options, physicsKeys) && isSpringType(options, durationKeys)) {
18723    const derived = findSpring(options);
18724    springOptions = {
18725      ...springOptions,
18726      ...derived,
18727      velocity: 0,
18728      mass: 1
18729    };
18730    springOptions.isResolvedFromDuration = true;
18731  }
18732  return springOptions;
18733}
18734const velocitySampleDuration = 5;
18735function spring({ keyframes: keyframes3, restSpeed = 2, restDelta = 0.01, ...options }) {
18736  let origin = keyframes3[0];
18737  let target = keyframes3[keyframes3.length - 1];
18738  const state2 = { done: false, value: origin };
18739  const { stiffness, damping, mass, velocity, duration, isResolvedFromDuration } = getSpringOptions(options);
18740  let resolveSpring = zero;
18741  let initialVelocity = velocity ? -(velocity / 1e3) : 0;
18742  const dampingRatio = damping / (2 * Math.sqrt(stiffness * mass));
18743  function createSpring() {
18744    const initialDelta = target - origin;
18745    const undampedAngularFreq = Math.sqrt(stiffness / mass) / 1e3;
18746    if (restDelta === void 0) {
18747      restDelta = Math.min(Math.abs(target - origin) / 100, 0.4);
18748    }
18749    if (dampingRatio < 1) {
18750      const angularFreq = calcAngularFreq(undampedAngularFreq, dampingRatio);
18751      resolveSpring = (t2) => {
18752        const envelope = Math.exp(-dampingRatio * undampedAngularFreq * t2);
18753        return target - envelope * ((initialVelocity + dampingRatio * undampedAngularFreq * initialDelta) / angularFreq * Math.sin(angularFreq * t2) + initialDelta * Math.cos(angularFreq * t2));
18754      };
18755    } else if (dampingRatio === 1) {
18756      resolveSpring = (t2) => target - Math.exp(-undampedAngularFreq * t2) * (initialDelta + (initialVelocity + undampedAngularFreq * initialDelta) * t2);
18757    } else {
18758      const dampedAngularFreq = undampedAngularFreq * Math.sqrt(dampingRatio * dampingRatio - 1);
18759      resolveSpring = (t2) => {
18760        const envelope = Math.exp(-dampingRatio * undampedAngularFreq * t2);
18761        const freqForT = Math.min(dampedAngularFreq * t2, 300);
18762        return target - envelope * ((initialVelocity + dampingRatio * undampedAngularFreq * initialDelta) * Math.sinh(freqForT) + dampedAngularFreq * initialDelta * Math.cosh(freqForT)) / dampedAngularFreq;
18763      };
18764    }
18765  }
18766  createSpring();
18767  return {
18768    next: (t2) => {
18769      const current = resolveSpring(t2);
18770      if (!isResolvedFromDuration) {
18771        let currentVelocity = initialVelocity;
18772        if (t2 !== 0) {
18773          if (dampingRatio < 1) {
18774            const prevT = Math.max(0, t2 - velocitySampleDuration);
18775            currentVelocity = velocityPerSecond(current - resolveSpring(prevT), t2 - prevT);
18776          } else {
18777            currentVelocity = 0;
18778          }
18779        }
18780        const isBelowVelocityThreshold = Math.abs(currentVelocity) <= restSpeed;
18781        const isBelowDisplacementThreshold = Math.abs(target - current) <= restDelta;
18782        state2.done = isBelowVelocityThreshold && isBelowDisplacementThreshold;
18783      } else {
18784        state2.done = t2 >= duration;
18785      }
18786      state2.value = state2.done ? target : current;
18787      return state2;
18788    },
18789    flipTarget: () => {
18790      initialVelocity = -initialVelocity;
18791      [origin, target] = [target, origin];
18792      createSpring();
18793    }
18794  };
18795}
18796spring.needsInterpolation = (a, b2) => typeof a === "string" || typeof b2 === "string";
18797const zero = (_t) => 0;
18798function decay({
18799  /**
18800   * The decay animation dynamically calculates an end of the animation
18801   * based on the initial keyframe, so we only need to define a single keyframe
18802   * as default.
18803   */
18804  keyframes: keyframes3 = [0],
18805  velocity = 0,
18806  power = 0.8,
18807  timeConstant = 350,
18808  restDelta = 0.5,
18809  modifyTarget
18810}) {
18811  const origin = keyframes3[0];
18812  const state2 = { done: false, value: origin };
18813  let amplitude = power * velocity;
18814  const ideal = origin + amplitude;
18815  const target = modifyTarget === void 0 ? ideal : modifyTarget(ideal);
18816  if (target !== ideal)
18817    amplitude = target - origin;
18818  return {
18819    next: (t2) => {
18820      const delta = -amplitude * Math.exp(-t2 / timeConstant);
18821      state2.done = !(delta > restDelta || delta < -restDelta);
18822      state2.value = state2.done ? target : target + delta;
18823      return state2;
18824    },
18825    flipTarget: () => {
18826    }
18827  };
18828}
18829const types = {
18830  decay,
18831  keyframes: keyframes2,
18832  tween: keyframes2,
18833  spring
18834};
18835function loopElapsed(elapsed, duration, delay2 = 0) {
18836  return elapsed - duration - delay2;
18837}
18838function reverseElapsed(elapsed, duration = 0, delay2 = 0, isForwardPlayback = true) {
18839  return isForwardPlayback ? loopElapsed(duration + -elapsed, duration, delay2) : duration - (elapsed - duration) + delay2;
18840}
18841function hasRepeatDelayElapsed(elapsed, duration, delay2, isForwardPlayback) {
18842  return isForwardPlayback ? elapsed >= duration + delay2 : elapsed <= -delay2;
18843}
18844const framesync = (update) => {
18845  const passTimestamp = ({ delta }) => update(delta);
18846  return {
18847    start: () => sync.update(passTimestamp, true),
18848    stop: () => cancelSync.update(passTimestamp)
18849  };
18850};
18851function animate$1({ duration, driver = framesync, elapsed = 0, repeat: repeatMax = 0, repeatType = "loop", repeatDelay = 0, keyframes: keyframes3, autoplay = true, onPlay, onStop, onComplete, onRepeat, onUpdate, type = "keyframes", ...options }) {
18852  var _a5, _b3;
18853  let driverControls;
18854  let repeatCount = 0;
18855  let computedDuration = duration;
18856  let latest;
18857  let isComplete = false;
18858  let isForwardPlayback = true;
18859  let interpolateFromNumber;
18860  const animator = types[keyframes3.length > 2 ? "keyframes" : type];
18861  const origin = keyframes3[0];
18862  const target = keyframes3[keyframes3.length - 1];
18863  if ((_b3 = (_a5 = animator).needsInterpolation) === null || _b3 === void 0 ? void 0 : _b3.call(_a5, origin, target)) {
18864    interpolateFromNumber = interpolate([0, 100], [origin, target], {
18865      clamp: false
18866    });
18867    keyframes3 = [0, 100];
18868  }
18869  const animation = animator({
18870    ...options,
18871    duration,
18872    keyframes: keyframes3
18873  });
18874  function repeat() {
18875    repeatCount++;
18876    if (repeatType === "reverse") {
18877      isForwardPlayback = repeatCount % 2 === 0;
18878      elapsed = reverseElapsed(elapsed, computedDuration, repeatDelay, isForwardPlayback);
18879    } else {
18880      elapsed = loopElapsed(elapsed, computedDuration, repeatDelay);
18881      if (repeatType === "mirror")
18882        animation.flipTarget();
18883    }
18884    isComplete = false;
18885    onRepeat && onRepeat();
18886  }
18887  function complete() {
18888    driverControls.stop();
18889    onComplete && onComplete();
18890  }
18891  function update(delta) {
18892    if (!isForwardPlayback)
18893      delta = -delta;
18894    elapsed += delta;
18895    if (!isComplete) {
18896      const state2 = animation.next(Math.max(0, elapsed));
18897      latest = state2.value;
18898      if (interpolateFromNumber)
18899        latest = interpolateFromNumber(latest);
18900      isComplete = isForwardPlayback ? state2.done : elapsed <= 0;
18901    }
18902    onUpdate && onUpdate(latest);
18903    if (isComplete) {
18904      if (repeatCount === 0) {
18905        computedDuration = computedDuration !== void 0 ? computedDuration : elapsed;
18906      }
18907      if (repeatCount < repeatMax) {
18908        hasRepeatDelayElapsed(elapsed, computedDuration, repeatDelay, isForwardPlayback) && repeat();
18909      } else {
18910        complete();
18911      }
18912    }
18913  }
18914  function play() {
18915    onPlay && onPlay();
18916    driverControls = driver(update);
18917    driverControls.start();
18918  }
18919  autoplay && play();
18920  return {
18921    stop: () => {
18922      onStop && onStop();
18923      driverControls.stop();
18924    },
18925    sample: (t2) => {
18926      return animation.next(Math.max(0, t2));
18927    }
18928  };
18929}
18930function isWaapiSupportedEasing(easing) {
18931  return !easing || // Default easing
18932  Array.isArray(easing) || // Bezier curve
18933  typeof easing === "string" && supportedWaapiEasing[easing];
18934}
18935const cubicBezierAsString = ([a, b2, c2, d2]) => `cubic-bezier(${a}, ${b2}, ${c2}, ${d2})`;
18936const supportedWaapiEasing = {
18937  linear: "linear",
18938  ease: "ease",
18939  easeIn: "ease-in",
18940  easeOut: "ease-out",
18941  easeInOut: "ease-in-out",
18942  circIn: cubicBezierAsString([0, 0.65, 0.55, 1]),
18943  circOut: cubicBezierAsString([0.55, 0, 1, 0.45]),
18944  backIn: cubicBezierAsString([0.31, 0.01, 0.66, -0.59]),
18945  backOut: cubicBezierAsString([0.33, 1.53, 0.69, 0.99])
18946};
18947function mapEasingToNativeEasing(easing) {
18948  if (!easing)
18949    return void 0;
18950  return Array.isArray(easing) ? cubicBezierAsString(easing) : supportedWaapiEasing[easing];
18951}
18952function animateStyle(element, valueName, keyframes3, { delay: delay2 = 0, duration, repeat = 0, repeatType = "loop", ease, times } = {}) {
18953  return element.animate({ [valueName]: keyframes3, offset: times }, {
18954    delay: delay2,
18955    duration,
18956    easing: mapEasingToNativeEasing(ease),
18957    fill: "both",
18958    iterations: repeat + 1,
18959    direction: repeatType === "reverse" ? "alternate" : "normal"
18960  });
18961}
18962const sampleDelta = 10;
18963function createAcceleratedAnimation(value, valueName, { onUpdate, onComplete, ...options }) {
18964  let { keyframes: keyframes3, duration = 0.3, elapsed = 0, ease } = options;
18965  if (options.type === "spring" || !isWaapiSupportedEasing(options.ease)) {
18966    const sampleAnimation = animate$1(options);
18967    let state2 = { done: false, value: keyframes3[0] };
18968    const pregeneratedKeyframes = [];
18969    let t2 = 0;
18970    while (!state2.done) {
18971      state2 = sampleAnimation.sample(t2);
18972      pregeneratedKeyframes.push(state2.value);
18973      t2 += sampleDelta;
18974    }
18975    keyframes3 = pregeneratedKeyframes;
18976    duration = t2 - sampleDelta;
18977    ease = "linear";
18978  }
18979  const animation = animateStyle(value.owner.current, valueName, keyframes3, {
18980    ...options,
18981    delay: -elapsed,
18982    duration,
18983    /**
18984     * This function is currently not called if ease is provided
18985     * as a function so the cast is safe.
18986     *
18987     * However it would be possible for a future refinement to port
18988     * in easing pregeneration from Motion One for browsers that
18989     * support the upcoming `linear()` easing function.
18990     */
18991    ease
18992  });
18993  animation.onfinish = () => {
18994    value.set(keyframes3[keyframes3.length - 1]);
18995    onComplete && onComplete();
18996  };
18997  return () => {
18998    const { currentTime } = animation;
18999    if (currentTime) {
19000      const sampleAnimation = animate$1(options);
19001      value.setWithVelocity(sampleAnimation.sample(currentTime - sampleDelta).value, sampleAnimation.sample(currentTime).value, sampleDelta);
19002    }
19003    sync.update(() => animation.cancel());
19004  };
19005}
19006function delay(callback, timeout) {
19007  const start = performance.now();
19008  const checkElapsed = ({ timestamp }) => {
19009    const elapsed = timestamp - start;
19010    if (elapsed >= timeout) {
19011      cancelSync.read(checkElapsed);
19012      callback(elapsed - timeout);
19013    }
19014  };
19015  sync.read(checkElapsed, true);
19016  return () => cancelSync.read(checkElapsed);
19017}
19018function createInstantAnimation({ keyframes: keyframes3, elapsed, onUpdate, onComplete }) {
19019  const setValue = () => {
19020    onUpdate && onUpdate(keyframes3[keyframes3.length - 1]);
19021    onComplete && onComplete();
19022    return () => {
19023    };
19024  };
19025  return elapsed ? delay(setValue, -elapsed) : setValue();
19026}
19027function inertia({ keyframes: keyframes3, velocity = 0, min, max, power = 0.8, timeConstant = 750, bounceStiffness = 500, bounceDamping = 10, restDelta = 1, modifyTarget, driver, onUpdate, onComplete, onStop }) {
19028  const origin = keyframes3[0];
19029  let currentAnimation;
19030  function isOutOfBounds(v2) {
19031    return min !== void 0 && v2 < min || max !== void 0 && v2 > max;
19032  }
19033  function findNearestBoundary(v2) {
19034    if (min === void 0)
19035      return max;
19036    if (max === void 0)
19037      return min;
19038    return Math.abs(min - v2) < Math.abs(max - v2) ? min : max;
19039  }
19040  function startAnimation(options) {
19041    currentAnimation === null || currentAnimation === void 0 ? void 0 : currentAnimation.stop();
19042    currentAnimation = animate$1({
19043      keyframes: [0, 1],
19044      velocity: 0,
19045      ...options,
19046      driver,
19047      onUpdate: (v2) => {
19048        var _a5;
19049        onUpdate === null || onUpdate === void 0 ? void 0 : onUpdate(v2);
19050        (_a5 = options.onUpdate) === null || _a5 === void 0 ? void 0 : _a5.c
19050all(options, v2);
19051      },
19052      onComplete,
19053      onStop
19054    });
19055  }
19056  function startSpring(options) {
19057    startAnimation({
19058      type: "spring",
19059      stiffness: bounceStiffness,
19060      damping: bounceDamping,
19061      restDelta,
19062      ...options
19063    });
19064  }
19065  if (isOutOfBounds(origin)) {
19066    startSpring({
19067      velocity,
19068      keyframes: [origin, findNearestBoundary(origin)]
19069    });
19070  } else {
19071    let target = power * velocity + origin;
19072    if (typeof modifyTarget !== "undefined")
19073      target = modifyTarget(target);
19074    const boundary = findNearestBoundary(target);
19075    const heading = boundary === min ? -1 : 1;
19076    let prev2;
19077    let current;
19078    const checkBoundary = (v2) => {
19079      prev2 = current;
19080      current = v2;
19081      velocity = velocityPerSecond(v2 - prev2, frameData.delta);
19082      if (heading === 1 && v2 > boundary || heading === -1 && v2 < boundary) {
19083        startSpring({ keyframes: [v2, boundary], velocity });
19084      }
19085    };
19086    startAnimation({
19087      type: "decay",
19088      keyframes: [origin, 0],
19089      velocity,
19090      timeConstant,
19091      power,
19092      restDelta,
19093      modifyTarget,
19094      onUpdate: isOutOfBounds(target) ? checkBoundary : void 0
19095    });
19096  }
19097  return {
19098    stop: () => currentAnimation === null || currentAnimation === void 0 ? void 0 : currentAnimation.stop()
19099  };
19100}
19101const underDampedSpring = () => ({
19102  type: "spring",
19103  stiffness: 500,
19104  damping: 25,
19105  restSpeed: 10
19106});
19107const criticallyDampedSpring = (target) => ({
19108  type: "spring",
19109  stiffness: 550,
19110  damping: target === 0 ? 2 * Math.sqrt(550) : 30,
19111  restSpeed: 10
19112});
19113const linearTween = () => ({
19114  type: "keyframes",
19115  ease: "linear",
19116  duration: 0.3
19117});
19118const keyframesTransition = {
19119  type: "keyframes",
19120  duration: 0.8
19121};
19122const defaultTransitions = {
19123  x: underDampedSpring,
19124  y: underDampedSpring,
19125  z: underDampedSpring,
19126  rotate: underDampedSpring,
19127  rotateX: underDampedSpring,
19128  rotateY: underDampedSpring,
19129  rotateZ: underDampedSpring,
19130  scaleX: criticallyDampedSpring,
19131  scaleY: criticallyDampedSpring,
19132  scale: criticallyDampedSpring,
19133  opacity: linearTween,
19134  backgroundColor: linearTween,
19135  color: linearTween,
19136  default: criticallyDampedSpring
19137};
19138const getDefaultTransition = (valueKey, { keyframes: keyframes3 }) => {
19139  if (keyframes3.length > 2) {
19140    return keyframesTransition;
19141  } else {
19142    const factory2 = defaultTransitions[valueKey] || defaultTransitions.default;
19143    return factory2(keyframes3[1]);
19144  }
19145};
19146const isAnimatable = (key, value) => {
19147  if (key === "zIndex")
19148    return false;
19149  if (typeof value === "number" || Array.isArray(value))
19150    return true;
19151  if (typeof value === "string" && // It's animatable if we have a string
19152  complex.test(value) && // And it contains numbers and/or colors
19153  !value.startsWith("url(")) {
19154    return true;
19155  }
19156  return false;
19157};
19158function isTransitionDefined({ when, delay: _delay, delayChildren, staggerChildren, staggerDirection, repeat, repeatType, repeatDelay, from: from2, ...transition2 }) {
19159  return !!Object.keys(transition2).length;
19160}
19161function isZero(value) {
19162  return value === 0 || typeof value === "string" && parseFloat(value) === 0 && value.indexOf(" ") === -1;
19163}
19164function getZeroUnit(potentialUnitType) {
19165  return typeof potentialUnitType === "number" ? 0 : getAnimatableNone("", potentialUnitType);
19166}
19167function getValueTransition(transition2, key) {
19168  return transition2[key] || transition2["default"] || transition2;
19169}
19170function getKeyframes(value, valueName, target, transition2) {
19171  const isTargetAnimatable = isAnimatable(valueName, target);
19172  let origin = transition2.from !== void 0 ? transition2.from : value.get();
19173  if (origin === "none" && isTargetAnimatable && typeof target === "string") {
19174    origin = getAnimatableNone(valueName, target);
19175  } else if (isZero(origin) && typeof target === "string") {
19176    origin = getZeroUnit(target);
19177  } else if (!Array.isArray(target) && isZero(target) && typeof origin === "string") {
19178    target = getZeroUnit(origin);
19179  }
19180  if (Array.isArray(target)) {
19181    if (target[0] === null) {
19182      target[0] = origin;
19183    }
19184    return target;
19185  } else {
19186    return [origin, target];
19187  }
19188}
19189const featureTests = {
19190  waapi: () => Object.hasOwnProperty.call(Element.prototype, "animate")
19191};
19192const results = {};
19193const supports = {};
19194for (const key in featureTests) {
19195  supports[key] = () => {
19196    if (results[key] === void 0)
19197      results[key] = featureTests[key]();
19198    return results[key];
19199  };
19200}
19201const acceleratedValues = /* @__PURE__ */ new Set(["opacity"]);
19202const createMotionValueAnimation = (valueName, value, target, transition2 = {}) => {
19203  return (onComplete) => {
19204    const valueTransition = getValueTransition(transition2, valueName) || {};
19205    const delay2 = valueTransition.delay || transition2.delay || 0;
19206    let { elapsed = 0 } = transition2;
19207    elapsed = elapsed - secondsToMilliseconds(delay2);
19208    const keyframes3 = getKeyframes(value, valueName, target, valueTransition);
19209    const originKeyframe = keyframes3[0];
19210    const targetKeyframe = keyframes3[keyframes3.length - 1];
19211    const isOriginAnimatable = isAnimatable(valueName, originKeyframe);
19212    const isTargetAnimatable = isAnimatable(valueName, targetKeyframe);
19213    let options = {
19214      keyframes: keyframes3,
19215      velocity: value.getVelocity(),
19216      ...valueTransition,
19217      elapsed,
19218      onUpdate: (v2) => {
19219        value.set(v2);
19220        valueTransition.onUpdate && valueTransition.onUpdate(v2);
19221      },
19222      onComplete: () => {
19223        onComplete();
19224        valueTransition.onComplete && valueTransition.onComplete();
19225      }
19226    };
19227    if (!isOriginAnimatable || !isTargetAnimatable || instantAnimationState.current || valueTransition.type === false) {
19228      return createInstantAnimation(options);
19229    } else if (valueTransition.type === "inertia") {
19230      const animation = inertia(options);
19231      return () => animation.stop();
19232    }
19233    if (!isTransitionDefined(valueTransition)) {
19234      options = {
19235        ...options,
19236        ...getDefaultTransition(valueName, options)
19237      };
19238    }
19239    if (options.duration) {
19240      options.duration = secondsToMilliseconds(options.duration);
19241    }
19242    if (options.repeatDelay) {
19243      options.repeatDelay = secondsToMilliseconds(options.repeatDelay);
19244    }
19245    const visualElement = value.owner;
19246    const element = visualElement && visualElement.current;
19247    const canAccelerateAnimation = supports.waapi() && acceleratedValues.has(valueName) && !options.repeatDelay && options.repeatType !== "mirror" && options.damping !== 0 && visualElement && element instanceof HTMLElement && !visualElement.getProps().onUpdate;
19248    if (canAccelerateAnimation) {
19249      return createAcceleratedAnimation(value, valueName, options);
19250    } else {
19251      const animation = animate$1(options);
19252      return () => animation.stop();
19253    }
19254  };
19255};
19256function animateVisualElement(visualElement, definition, options = {}) {
19257  visualElement.notify("AnimationStart", definition);
19258  let animation;
19259  if (Array.isArray(definition)) {
19260    const animations2 = definition.map((variant) => animateVariant(visualElement, variant, options));
19261    animation = Promise.all(animations2);
19262  } else if (typeof definition === "string") {
19263    animation = animateVariant(visualElement, definition, options);
19264  } else {
19265    const resolvedDefinition = typeof definition === "function" ? resolveVariant(visualElement, definition, options.custom) : definition;
19266    animation = animateTarget(visualElement, resolvedDefinition, options);
19267  }
19268  return animation.then(() => visualElement.notify("AnimationComplete", definition));
19269}
19270function animateVariant(visualElement, variant, options = {}) {
19271  var _a5;
19272  const resolved = resolveVariant(visualElement, variant, options.custom);
19273  let { transition: transition2 = visualElement.getDefaultTransition() || {} } = resolved || {};
19274  if (options.transitionOverride) {
19275    transition2 = options.transitionOverride;
19276  }
19277  const getAnimation = resolved ? () => animateTarget(visualElement, resolved, options) : () => Promise.resolve();
19278  const getChildAnimations = ((_a5 = visualElement.variantChildren) === null || _a5 === void 0 ? void 0 : _a5.size) ? (forwardDelay = 0) => {
19279    const { delayChildren = 0, staggerChildren, staggerDirection } = transition2;
19280    return animateChildren(visualElement, variant, delayChildren + forwardDelay, staggerChildren, staggerDirection, options);
19281  } : () => Promise.resolve();
19282  const { when } = transition2;
19283  if (when) {
19284    const [first, last] = when === "beforeChildren" ? [getAnimation, getChildAnimations] : [getChildAnimations, getAnimation];
19285    return first().then(last);
19286  } else {
19287    return Promise.all([getAnimation(), getChildAnimations(options.delay)]);
19288  }
19289}
19290function animateTarget(visualElement, definition, { delay: delay2 = 0, transitionOverride, type } = {}) {
19291  var _a5;
19292  let { transition: transition2 = visualElement.getDefaultTransition(), transitionEnd, ...target } = visualElement.makeTargetAnimatable(definition);
19293  const willChange = visualElement.getValue("willChange");
19294  if (transitionOverride)
19295    transition2 = transitionOverride;
19296  const animations2 = [];
19297  const animationTypeState = type && ((_a5 = visualElement.animationState) === null || _a5 === void 0 ? void 0 : _a5.getState()[type]);
19298  for (const key in target) {
19299    const value = visualElement.getValue(key);
19300    const valueTarget = target[key];
19301    if (!value || valueTarget === void 0 || animationTypeState && shouldBlockAnimation(animationTypeState, key)) {
19302      continue;
19303    }
19304    let valueTransition = { delay: delay2, elapsed: 0, ...transition2 };
19305    if (visualElement.shouldReduceMotion && transformProps.has(key)) {
19306      valueTransition = {
19307        ...valueTransition,
19308        type: false,
19309        delay: 0
19310      };
19311    }
19312    if (!value.hasAnimated) {
19313      const appearId = visualElement.getProps()[optimizedAppearDataAttribute];
19314      if (appearId) {
vendor: 5,191 bytes, lines 19315-19431
19315        valueTransition.elapsed = handoffOptimizedAppearAnimation(appearId, key);
19316      }
19317    }
19318    let animation = value.start(createMotionValueAnimation(key, value, valueTarget, valueTransition));
19319    if (isWillChangeMotionValue(willChange)) {
19320      willChange.add(key);
19321      animation = animation.then(() => willChange.remove(key));
19322    }
19323    animations2.push(animation);
19324  }
19325  return Promise.all(animations2).then(() => {
19326    transitionEnd && setTarget(visualElement, transitionEnd);
19327  });
19328}
19329function animateChildren(visualElement, variant, delayChildren = 0, staggerChildren = 0, staggerDirection = 1, options) {
19330  const animations2 = [];
19331  const maxStaggerDuration = (visualElement.variantChildren.size - 1) * staggerChildren;
19332  const generateStaggerDuration = staggerDirection === 1 ? (i = 0) => i * staggerChildren : (i = 0) => maxStaggerDuration - i * staggerChildren;
19333  Array.from(visualElement.variantChildren).sort(sortByTreeOrder).forEach((child, i) => {
19334    animations2.push(animateVariant(child, variant, {
19335      ...options,
19336      delay: delayChildren + generateStaggerDuration(i)
19337    }).then(() => child.notify("AnimationComplete", variant)));
19338  });
19339  return Promise.all(animations2);
19340}
19341function sortByTreeOrder(a, b2) {
19342  return a.sortNodePosition(b2);
19343}
19344function shouldBlockAnimation({ protectedKeys, needsAnimating }, key) {
19345  const shouldBlock = protectedKeys.hasOwnProperty(key) && needsAnimating[key] !== true;
19346  needsAnimating[key] = false;
19347  return shouldBlock;
19348}
19349const variantPriorityOrder = [
19350  AnimationType.Animate,
19351  AnimationType.InView,
19352  AnimationType.Focus,
19353  AnimationType.Hover,
19354  AnimationType.Tap,
19355  AnimationType.Drag,
19356  AnimationType.Exit
19357];
19358const reversePriorityOrder = [...variantPriorityOrder].reverse();
19359const numAnimationTypes = variantPriorityOrder.length;
19360function animateList(visualElement) {
19361  return (animations2) => Promise.all(animations2.map(({ animation, options }) => animateVisualElement(visualElement, animation, options)));
19362}
19363function createAnimationState(visualElement) {
19364  let animate2 = animateList(visualElement);
19365  const state2 = createState();
19366  let isInitialRender = true;
19367  const buildResolvedTypeValues = (acc, definition) => {
19368    const resolved = resolveVariant(visualElement, definition);
19369    if (resolved) {
19370      const { transition: transition2, transitionEnd, ...target } = resolved;
19371      acc = { ...acc, ...target, ...transitionEnd };
19372    }
19373    return acc;
19374  };
19375  function setAnimateFunction(makeAnimator) {
19376    animate2 = makeAnimator(visualElement);
19377  }
19378  function animateChanges(options, changedActiveType) {
19379    const props = visualElement.getProps();
19380    const context = visualElement.getVariantContext(true) || {};
19381    const animations2 = [];
19382    const removedKeys = /* @__PURE__ */ new Set();
19383    let encounteredKeys = {};
19384    let removedVariantIndex = Infinity;
19385    for (let i = 0; i < numAnimationTypes; i++) {
19386      const type = reversePriorityOrder[i];
19387      const typeState = state2[type];
19388      const prop = props[type] !== void 0 ? props[type] : context[type];
19389      const propIsVariant = isVariantLabel(prop);
19390      const activeDelta = type === changedActiveType ? typeState.isActive : null;
19391      if (activeDelta === false)
19392        removedVariantIndex = i;
19393      let isInherited = prop === context[type] && prop !== props[type] && propIsVariant;
19394      if (isInherited && isInitialRender && visualElement.manuallyAnimateOnMount) {
19395        isInherited = false;
19396      }
19397      typeState.protectedKeys = { ...encounteredKeys };
19398      if (
19399        // If it isn't active and hasn't *just* been set as inactive
19400        !typeState.isActive && activeDelta === null || // If we didn't and don't have any defined prop for this animation type
19401        !prop && !typeState.prevProp || // Or if the prop doesn't define an animation
19402        isAnimationControls(prop) || typeof prop === "boolean"
19403      ) {
19404        continue;
19405      }
19406      const variantDidChange = checkVariantsDidChange(typeState.prevProp, prop);
19407      let shouldAnimateType = variantDidChange || // If we're making this variant active, we want to always make it active
19408      type === changedActiveType && typeState.isActive && !isInherited && propIsVariant || // If we removed a higher-priority variant (i is in reverse order)
19409      i > removedVariantIndex && propIsVariant;
19410      const definitionList = Array.isArray(prop) ? prop : [prop];
19411      let resolvedValues = definitionList.reduce(buildResolvedTypeValues, {});
19412      if (activeDelta === false)
19413        resolvedValues = {};
19414      const { prevResolvedValues = {} } = typeState;
19415      const allKeys = {
19416        ...prevResolvedValues,
19417        ...resolvedValues
19418      };
19419      const markToAnimate = (key) => {
19420        shouldAnimateType = true;
19421        removedKeys.delete(key);
19422        typeState.needsAnimating[key] = true;
19423      };
19424      for (const key in allKeys) {
19425        const next2 = resolvedValues[key];
19426        const prev2 = prevResolvedValues[key];
19427        if (encounteredKeys.hasOwnProperty(key))
19428          continue;
19429        if (next2 !== prev2) {
19430          if (isKeyframesTarget(next2) && isKeyframesTarget(prev2)) {
19431            if (!shallowCompare(next2, prev2) || variantDidChange) {
19432              markToAnimate(key);
19433            } else {
19434              typeState.protectedKeys[key] = true;
19435            }
19436          } else if (next2 !== void 0) {
19437            markToAnimate(key);
19438          } else {
19439            removedKeys.add(key);
19440          }
19441        } else if (next2 !== void 0 && removedKeys.has(key)) {
19442          markToAnimate(key);
19443        } else {
19444          typeState.protectedKeys[key] = true;
19445        }
19446      }
19447      typeState.prevProp = prop;
19448      typeState.prevResolvedValues = resolvedValues;
19449      if (typeState.isActive) {
19450        encounteredKeys = { ...encounteredKeys, ...resolvedValues };
19451      }
19452      if (isInitialRender && visualElement.blockInitialAnimation) {
19453        shouldAnimateType = false;
19454      }
19455      if (shouldAnimateType && !isInherited) {
19456        animations2.push(...definitionList.map((animation) => ({
19457          animation,
19458          options: { type, ...options }
19459        })));
19460      }
19461    }
19462    if (removedKeys.size) {
19463      const fallbackAnimation = {};
19464      removedKeys.forEach((key) => {
19465        const fallbackTarget = visualElement.getBaseTarget(key);
19466        if (fallbackTarget !== void 0) {
19467          fallbackAnimation[key] = fallbackTarget;
19468        }
19469      });
19470      animations2.push({ animation: fallbackAnimation });
19471    }
19472    let shouldAnimate = Boolean(animations2.length);
19473    if (isInitialRender && props.initial === false && !visualElement.manuallyAnimateOnMount) {
19474      shouldAnimate = false;
19475    }
19476    isInitialRender = false;
vendor: 103,821 bytes, lines 19477-22219
19477    return shouldAnimate ? animate2(animations2) : Promise.resolve();
19478  }
19479  function setActive(type, isActive, options) {
19480    var _a5;
19481    if (state2[type].isActive === isActive)
19482      return Promise.resolve();
19483    (_a5 = visualElement.variantChildren) === null || _a5 === void 0 ? void 0 : _a5.forEach((child) => {
19484      var _a6;
19485      return (_a6 = child.animationState) === null || _a6 === void 0 ? void 0 : _a6.setActive(type, isActive);
19486    });
19487    state2[type].isActive = isActive;
19488    const animations2 = animateChanges(options, type);
19489    for (const key in state2) {
19490      state2[key].protectedKeys = {};
19491    }
19492    return animations2;
19493  }
19494  return {
19495    animateChanges,
19496    setActive,
19497    setAnimateFunction,
19498    getState: () => state2
19499  };
19500}
19501function checkVariantsDidChange(prev2, next2) {
19502  if (typeof next2 === "string") {
19503    return next2 !== prev2;
19504  } else if (Array.isArray(next2)) {
19505    return !shallowCompare(next2, prev2);
19506  }
19507  return false;
19508}
19509function createTypeState(isActive = false) {
19510  return {
19511    isActive,
19512    protectedKeys: {},
19513    needsAnimating: {},
19514    prevResolvedValues: {}
19515  };
19516}
19517function createState() {
19518  return {
19519    [AnimationType.Animate]: createTypeState(true),
19520    [AnimationType.InView]: createTypeState(),
19521    [AnimationType.Hover]: createTypeState(),
19522    [AnimationType.Tap]: createTypeState(),
19523    [AnimationType.Drag]: createTypeState(),
19524    [AnimationType.Focus]: createTypeState(),
19525    [AnimationType.Exit]: createTypeState()
19526  };
19527}
19528const animations = {
19529  animation: makeRenderlessComponent(({ visualElement, animate: animate2 }) => {
19530    visualElement.animationState || (visualElement.animationState = createAnimationState(visualElement));
19531    if (isAnimationControls(animate2)) {
19532      reactExports.useEffect(() => animate2.subscribe(visualElement), [animate2]);
19533    }
19534  }),
19535  exit: makeRenderlessComponent((props) => {
19536    const { custom, visualElement } = props;
19537    const [isPresent2, safeToRemove] = usePresence();
19538    const presenceContext = reactExports.useContext(PresenceContext);
19539    reactExports.useEffect(() => {
19540      visualElement.isPresent = isPresent2;
19541      const animation = visualElement.animationState && visualElement.animationState.setActive(AnimationType.Exit, !isPresent2, {
19542        custom: presenceContext && presenceContext.custom || custom
19543      });
19544      if (animation && !isPresent2) {
19545        animation.then(safeToRemove);
19546      }
19547    }, [isPresent2]);
19548  })
19549};
19550const distance = (a, b2) => Math.abs(a - b2);
19551function distance2D(a, b2) {
19552  const xDelta = distance(a.x, b2.x);
19553  const yDelta = distance(a.y, b2.y);
19554  return Math.sqrt(xDelta ** 2 + yDelta ** 2);
19555}
19556class PanSession {
19557  constructor(event, handlers, { transformPagePoint } = {}) {
19558    this.startEvent = null;
19559    this.lastMoveEvent = null;
19560    this.lastMoveEventInfo = null;
19561    this.handlers = {};
19562    this.updatePoint = () => {
19563      if (!(this.lastMoveEvent && this.lastMoveEventInfo))
19564        return;
19565      const info2 = getPanInfo(this.lastMoveEventInfo, this.history);
19566      const isPanStarted = this.startEvent !== null;
19567      const isDistancePastThreshold = distance2D(info2.offset, { x: 0, y: 0 }) >= 3;
19568      if (!isPanStarted && !isDistancePastThreshold)
19569        return;
19570      const { point: point2 } = info2;
19571      const { timestamp: timestamp2 } = frameData;
19572      this.history.push({ ...point2, timestamp: timestamp2 });
19573      const { onStart, onMove } = this.handlers;
19574      if (!isPanStarted) {
19575        onStart && onStart(this.lastMoveEvent, info2);
19576        this.startEvent = this.lastMoveEvent;
19577      }
19578      onMove && onMove(this.lastMoveEvent, info2);
19579    };
19580    this.handlePointerMove = (event2, info2) => {
19581      this.lastMoveEvent = event2;
19582      this.lastMoveEventInfo = transformPoint(info2, this.transformPagePoint);
19583      if (isMouseEvent(event2) && event2.buttons === 0) {
19584        this.handlePointerUp(event2, info2);
19585        return;
19586      }
19587      sync.update(this.updatePoint, true);
19588    };
19589    this.handlePointerUp = (event2, info2) => {
19590      this.end();
19591      const { onEnd, onSessionEnd } = this.handlers;
19592      const panInfo = getPanInfo(transformPoint(info2, this.transformPagePoint), this.history);
19593      if (this.startEvent && onEnd) {
19594        onEnd(event2, panInfo);
19595      }
19596      onSessionEnd && onSessionEnd(event2, panInfo);
19597    };
19598    if (isTouchEvent(event) && event.touches.length > 1)
19599      return;
19600    this.handlers = handlers;
19601    this.transformPagePoint = transformPagePoint;
19602    const info = extractEventInfo(event);
19603    const initialInfo = transformPoint(info, this.transformPagePoint);
19604    const { point } = initialInfo;
19605    const { timestamp } = frameData;
19606    this.history = [{ ...point, timestamp }];
19607    const { onSessionStart } = handlers;
19608    onSessionStart && onSessionStart(event, getPanInfo(initialInfo, this.history));
19609    this.removeListeners = pipe(addPointerEvent(window, "pointermove", this.handlePointerMove), addPointerEvent(window, "pointerup", this.handlePointerUp), addPointerEvent(window, "pointercancel", this.handlePointerUp));
19610  }
19611  updateHandlers(handlers) {
19612    this.handlers = handlers;
19613  }
19614  end() {
19615    this.removeListeners && this.removeListeners();
19616    cancelSync.update(this.updatePoint);
19617  }
19618}
19619function transformPoint(info, transformPagePoint) {
19620  return transformPagePoint ? { point: transformPagePoint(info.point) } : info;
19621}
19622function subtractPoint(a, b2) {
19623  return { x: a.x - b2.x, y: a.y - b2.y };
19624}
19625function getPanInfo({ point }, history) {
19626  return {
19627    point,
19628    delta: subtractPoint(point, lastDevicePoint(history)),
19629    offset: subtractPoint(point, startDevicePoint(history)),
19630    velocity: getVelocity(history, 0.1)
19631  };
19632}
19633function startDevicePoint(history) {
19634  return history[0];
19635}
19636function lastDevicePoint(history) {
19637  return history[history.length - 1];
19638}
19639function getVelocity(history, timeDelta) {
19640  if (history.length < 2) {
19641    return { x: 0, y: 0 };
19642  }
19643  let i = history.length - 1;
19644  let timestampedPoint = null;
19645  const lastPoint = lastDevicePoint(history);
19646  while (i >= 0) {
19647    timestampedPoint = history[i];
19648    if (lastPoint.timestamp - timestampedPoint.timestamp > secondsToMilliseconds(timeDelta)) {
19649      break;
19650    }
19651    i--;
19652  }
19653  if (!timestampedPoint) {
19654    return { x: 0, y: 0 };
19655  }
19656  const time = (lastPoint.timestamp - timestampedPoint.timestamp) / 1e3;
19657  if (time === 0) {
19658    return { x: 0, y: 0 };
19659  }
19660  const currentVelocity = {
19661    x: (lastPoint.x - timestampedPoint.x) / time,
19662    y: (lastPoint.y - timestampedPoint.y) / time
19663  };
19664  if (currentVelocity.x === Infinity) {
19665    currentVelocity.x = 0;
19666  }
19667  if (currentVelocity.y === Infinity) {
19668    currentVelocity.y = 0;
19669  }
19670  return currentVelocity;
19671}
19672function calcLength(axis) {
19673  return axis.max - axis.min;
19674}
19675function isNear(value, target = 0, maxDistance = 0.01) {
19676  return Math.abs(value - target) <= maxDistance;
19677}
19678function calcAxisDelta(delta, source, target, origin = 0.5) {
19679  delta.origin = origin;
19680  delta.originPoint = mix(source.min, source.max, delta.origin);
19681  delta.scale = calcLength(target) / calcLength(source);
19682  if (isNear(delta.scale, 1, 1e-4) || isNaN(delta.scale))
19683    delta.scale = 1;
19684  delta.translate = mix(target.min, target.max, delta.origin) - delta.originPoint;
19685  if (isNear(delta.translate) || isNaN(delta.translate))
19686    delta.translate = 0;
19687}
19688function calcBoxDelta(delta, source, target, origin) {
19689  calcAxisDelta(delta.x, source.x, target.x, origin === null || origin === void 0 ? void 0 : origin.originX);
19690  calcAxisDelta(delta.y, source.y, target.y, origin === null || origin === void 0 ? void 0 : origin.originY);
19691}
19692function calcRelativeAxis(target, relative, parent) {
19693  target.min = parent.min + relative.min;
19694  target.max = target.min + calcLength(relative);
19695}
19696function calcRelativeBox(target, relative, parent) {
19697  calcRelativeAxis(target.x, relative.x, parent.x);
19698  calcRelativeAxis(target.y, relative.y, parent.y);
19699}
19700function calcRelativeAxisPosition(target, layout2, parent) {
19701  target.min = layout2.min - parent.min;
19702  target.max = target.min + calcLength(layout2);
19703}
19704function calcRelativePosition(target, layout2, parent) {
19705  calcRelativeAxisPosition(target.x, layout2.x, parent.x);
19706  calcRelativeAxisPosition(target.y, layout2.y, parent.y);
19707}
19708function applyConstraints(point, { min, max }, elastic) {
19709  if (min !== void 0 && point < min) {
19710    point = elastic ? mix(min, point, elastic.min) : Math.max(point, min);
19711  } else if (max !== void 0 && point > max) {
19712    point = elastic ? mix(max, point, elastic.max) : Math.min(point, max);
19713  }
19714  return point;
19715}
19716function calcRelativeAxisConstraints(axis, min, max) {
19717  return {
19718    min: min !== void 0 ? axis.min + min : void 0,
19719    max: max !== void 0 ? axis.max + max - (axis.max - axis.min) : void 0
19720  };
19721}
19722function calcRelativeConstraints(layoutBox, { top, left, bottom, right }) {
19723  return {
19724    x: calcRelativeAxisConstraints(layoutBox.x, left, right),
19725    y: calcRelativeAxisConstraints(layoutBox.y, top, bottom)
19726  };
19727}
19728function calcViewportAxisConstraints(layoutAxis, constraintsAxis) {
19729  let min = constraintsAxis.min - layoutAxis.min;
19730  let max = constraintsAxis.max - layoutAxis.max;
19731  if (constraintsAxis.max - constraintsAxis.min < layoutAxis.max - layoutAxis.min) {
19732    [min, max] = [max, min];
19733  }
19734  return { min, max };
19735}
19736function calcViewportConstraints(layoutBox, constraintsBox) {
19737  return {
19738    x: calcViewportAxisConstraints(layoutBox.x, constraintsBox.x),
19739    y: calcViewportAxisConstraints(layoutBox.y, constraintsBox.y)
19740  };
19741}
19742function calcOrigin(source, target) {
19743  let origin = 0.5;
19744  const sourceLength = calcLength(source);
19745  const targetLength = calcLength(target);
19746  if (targetLength > sourceLength) {
19747    origin = progress(target.min, target.max - sourceLength, source.min);
19748  } else if (sourceLength > targetLength) {
19749    origin = progress(source.min, source.max - targetLength, target.min);
19750  }
19751  return clamp(0, 1, origin);
19752}
19753function rebaseAxisConstraints(layout2, constraints) {
19754  const relativeConstraints = {};
19755  if (constraints.min !== void 0) {
19756    relativeConstraints.min = constraints.min - layout2.min;
19757  }
19758  if (constraints.max !== void 0) {
19759    relativeConstraints.max = constraints.max - layout2.min;
19760  }
19761  return relativeConstraints;
19762}
19763const defaultElastic = 0.35;
19764function resolveDragElastic(dragElastic = defaultElastic) {
19765  if (dragElastic === false) {
19766    dragElastic = 0;
19767  } else if (dragElastic === true) {
19768    dragElastic = defaultElastic;
19769  }
19770  return {
19771    x: resolveAxisElastic(dragElastic, "left", "right"),
19772    y: resolveAxisElastic(dragElastic, "top", "bottom")
19773  };
19774}
19775function resolveAxisElastic(dragElastic, minLabel, maxLabel) {
19776  return {
19777    min: resolvePointElastic(dragElastic, minLabel),
19778    max: resolvePointElastic(dragElastic, maxLabel)
19779  };
19780}
19781function resolvePointElastic(dragElastic, label) {
19782  return typeof dragElastic === "number" ? dragElastic : dragElastic[label] || 0;
19783}
19784const createAxisDelta = () => ({
19785  translate: 0,
19786  scale: 1,
19787  origin: 0,
19788  originPoint: 0
19789});
19790const createDelta = () => ({
19791  x: createAxisDelta(),
19792  y: createAxisDelta()
19793});
19794const createAxis = () => ({ min: 0, max: 0 });
19795const createBox = () => ({
19796  x: createAxis(),
19797  y: createAxis()
19798});
19799function eachAxis(callback) {
19800  return [callback("x"), callback("y")];
19801}
19802function convertBoundingBoxToBox({ top, left, right, bottom }) {
19803  return {
19804    x: { min: left, max: right },
19805    y: { min: top, max: bottom }
19806  };
19807}
19808function convertBoxToBoundingBox({ x: x2, y: y2 }) {
19809  return { top: y2.min, right: x2.max, bottom: y2.max, left: x2.min };
19810}
19811function transformBoxPoints(point, transformPoint2) {
19812  if (!transformPoint2)
19813    return point;
19814  const topLeft = transformPoint2({ x: point.left, y: point.top });
19815  const bottomRight = transformPoint2({ x: point.right, y: point.bottom });
19816  return {
19817    top: topLeft.y,
19818    left: topLeft.x,
19819    bottom: bottomRight.y,
19820    right: bottomRight.x
19821  };
19822}
19823function isIdentityScale(scale2) {
19824  return scale2 === void 0 || scale2 === 1;
19825}
19826function hasScale({ scale: scale2, scaleX, scaleY }) {
19827  return !isIdentityScale(scale2) || !isIdentityScale(scaleX) || !isIdentityScale(scaleY);
19828}
19829function hasTransform(values) {
19830  return hasScale(values) || has2DTranslate(values) || values.z || values.rotate || values.rotateX || values.rotateY;
19831}
19832function has2DTranslate(values) {
19833  return is2DTranslate(values.x) || is2DTranslate(values.y);
19834}
19835function is2DTranslate(value) {
19836  return value && value !== "0%";
19837}
19838function scalePoint(point, scale2, originPoint) {
19839  const distanceFromOrigin = point - originPoint;
19840  const scaled = scale2 * distanceFromOrigin;
19841  return originPoint + scaled;
19842}
19843function applyPointDelta(point, translate, scale2, originPoint, boxScale) {
19844  if (boxScale !== void 0) {
19845    point = scalePoint(point, boxScale, originPoint);
19846  }
19847  return scalePoint(point, scale2, originPoint) + translate;
19848}
19849function applyAxisDelta(axis, translate = 0, scale2 = 1, originPoint, boxScale) {
19850  axis.min = applyPointDelta(axis.min, translate, scale2, originPoint, boxScale);
19851  axis.max = applyPointDelta(axis.max, translate, scale2, originPoint, boxScale);
19852}
19853function applyBoxDelta(box, { x: x2, y: y2 }) {
19854  applyAxisDelta(box.x, x2.translate, x2.scale, x2.originPoint);
19855  applyAxisDelta(box.y, y2.translate, y2.scale, y2.originPoint);
19856}
19857function applyTreeDeltas(box, treeScale, treePath, isSharedTransition = false) {
19858  var _a5, _b3;
19859  const treeLength = treePath.length;
19860  if (!treeLength)
19861    return;
19862  treeScale.x = treeScale.y = 1;
19863  let node2;
19864  let delta;
19865  for (let i = 0; i < treeLength; i++) {
19866    node2 = treePath[i];
19867    delta = node2.projectionDelta;
19868    if (((_b3 = (_a5 = node2.instance) === null || _a5 === void 0 ? void 0 : _a5.style) === null || _b3 === void 0 ? void 0 : _b3.display) === "contents")
19869      continue;
19870    if (isSharedTransition && node2.options.layoutScroll && node2.scroll && node2 !== node2.root) {
19871      transformBox(box, {
19872        x: -node2.scroll.offset.x,
19873        y: -node2.scroll.offset.y
19874      });
19875    }
19876    if (delta) {
19877      treeScale.x *= delta.x.scale;
19878      treeScale.y *= delta.y.scale;
19879      applyBoxDelta(box, delta);
19880    }
19881    if (isSharedTransition && hasTransform(node2.latestValues)) {
19882      transformBox(box, node2.latestValues);
19883    }
19884  }
19885  treeScale.x = snapToDefault(treeScale.x);
19886  treeScale.y = snapToDefault(treeScale.y);
19887}
19888function snapToDefault(scale2) {
19889  if (Number.isInteger(scale2))
19890    return scale2;
19891  return scale2 > 1.0000000000001 || scale2 < 0.999999999999 ? scale2 : 1;
19892}
19893function translateAxis(axis, distance2) {
19894  axis.min = axis.min + distance2;
19895  axis.max = axis.max + distance2;
19896}
19897function transformAxis(axis, transforms, [key, scaleKey, originKey]) {
19898  const axisOrigin = transforms[originKey] !== void 0 ? transforms[originKey] : 0.5;
19899  const originPoint = mix(axis.min, axis.max, axisOrigin);
19900  applyAxisDelta(axis, transforms[key], transforms[scaleKey], originPoint, transforms.scale);
19901}
19902const xKeys$1 = ["x", "scaleX", "originX"];
19903const yKeys$1 = ["y", "scaleY", "originY"];
19904function transformBox(box, transform2) {
19905  transformAxis(box.x, transform2, xKeys$1);
19906  transformAxis(box.y, transform2, yKeys$1);
19907}
19908function measureViewportBox(instance, transformPoint2) {
19909  return convertBoundingBoxToBox(transformBoxPoints(instance.getBoundingClientRect(), transformPoint2));
19910}
19911function measurePageBox(element, rootProjectionNode2, transformPagePoint) {
19912  const viewportBox = measureViewportBox(element, transformPagePoint);
19913  const { scroll: scroll2 } = rootProjectionNode2;
19914  if (scroll2) {
19915    translateAxis(viewportBox.x, scroll2.offset.x);
19916    translateAxis(viewportBox.y, scroll2.offset.y);
19917  }
19918  return viewportBox;
19919}
19920const elementDragControls = /* @__PURE__ */ new WeakMap();
19921class VisualElementDragControls {
19922  constructor(visualElement) {
19923    this.openGlobalLock = null;
19924    this.isDragging = false;
19925    this.currentDirection = null;
19926    this.originPoint = { x: 0, y: 0 };
19927    this.constraints = false;
19928    this.hasMutatedConstraints = false;
19929    this.elastic = createBox();
19930    this.visualElement = visualElement;
19931  }
19932  start(originEvent, { snapToCursor = false } = {}) {
19933    if (this.visualElement.isPresent === false)
19934      return;
19935    const onSessionStart = (event) => {
19936      this.stopAnimation();
19937      if (snapToCursor) {
19938        this.snapToCursor(extractEventInfo(event, "page").point);
19939      }
19940    };
19941    const onStart = (event, info) => {
19942      var _a5;
19943      const { drag: drag2, dragPropagation, onDragStart } = this.getProps();
19944      if (drag2 && !dragPropagation) {
19945        if (this.openGlobalLock)
19946          this.openGlobalLock();
19947        this.openGlobalLock = getGlobalLock(drag2);
19948        if (!this.openGlobalLock)
19949          return;
19950      }
19951      this.isDragging = true;
19952      this.currentDirection = null;
19953      this.resolveConstraints();
19954      if (this.visualElement.projection) {
19955        this.visualElement.projection.isAnimationBlocked = true;
19956        this.visualElement.projection.target = void 0;
19957      }
19958      eachAxis((axis) => {
19959        var _a6, _b3;
19960        let current = this.getAxisMotionValue(axis).get() || 0;
19961        if (percent.test(current)) {
19962          const measuredAxis = (_b3 = (_a6 = this.visualElement.projection) === null || _a6 === void 0 ? void 0 : _a6.layout) === null || _b3 === void 0 ? void 0 : _b3.layoutBox[axis];
19963          if (measuredAxis) {
19964            const length2 = calcLength(measuredAxis);
19965            current = length2 * (parseFloat(current) / 100);
19966          }
19967        }
19968        this.originPoint[axis] = current;
19969      });
19970      onDragStart === null || onDragStart === void 0 ? void 0 : onDragStart(event, info);
19971      (_a5 = this.visualElement.animationState) === null || _a5 === void 0 ? void 0 : _a5.setActive(AnimationType.Drag, true);
19972    };
19973    const onMove = (event, info) => {
19974      const { dragPropagation, dragDirectionLock, onDirectionLock, onDrag } = this.getProps();
19975      if (!dragPropagation && !this.openGlobalLock)
19976        return;
19977      const { offset } = info;
19978      if (dragDirectionLock && this.currentDirection === null) {
19979        this.currentDirection = getCurrentDirection(offset);
19980        if (this.currentDirection !== null) {
19981          onDirectionLock === null || onDirectionLock === void 0 ? void 0 : onDirectionLock(this.currentDirection);
19982        }
19983        return;
19984      }
19985      this.updateAxis("x", info.point, offset);
19986      this.updateAxis("y", info.point, offset);
19987      this.visualElement.render();
19988      onDrag === null || onDrag === void 0 ? void 0 : onDrag(event, info);
19989    };
19990    const onSessionEnd = (event, info) => this.stop(event, info);
19991    this.panSession = new PanSession(originEvent, {
19992      onSessionStart,
19993      onStart,
19994      onMove,
19995      onSessionEnd
19996    }, { transformPagePoint: this.visualElement.getTransformPagePoint() });
19997  }
19998  stop(event, info) {
19999    const isDragging = this.isDragging;
20000    this.cancel();
20001    if (!isDragging)
20002      return;
20003    const { velocity } = info;
20004    this.startAnimation(velocity);
20005    const { onDragEnd } = this.getProps();
20006    onDragEnd === null || onDragEnd === void 0 ? void 0 : onDragEnd(event, info);
20007  }
20008  cancel() {
20009    var _a5, _b3;
20010    this.isDragging = false;
20011    if (this.visualElement.projection) {
20012      this.visualElement.projection.isAnimationBlocked = false;
20013    }
20014    (_a5 = this.panSession) === null || _a5 === void 0 ? void 0 : _a5.end();
20015    this.panSession = void 0;
20016    const { dragPropagation } = this.getProps();
20017    if (!dragPropagation && this.openGlobalLock) {
20018      this.openGlobalLock();
20019      this.openGlobalLock = null;
20020    }
20021    (_b3 = this.visualElement.animationState) === null || _b3 === void 0 ? void 0 : _b3.setActive(AnimationType.Drag, false);
20022  }
20023  updateAxis(axis, _point, offset) {
20024    const { drag: drag2 } = this.getProps();
20025    if (!offset || !shouldDrag(axis, drag2, this.currentDirection))
20026      return;
20027    const axisValue = this.getAxisMotionValue(axis);
20028    let next2 = this.originPoint[axis] + offset[axis];
20029    if (this.constraints && this.constraints[axis]) {
20030      next2 = applyConstraints(next2, this.constraints[axis], this.elastic[axis]);
20031    }
20032    axisValue.set(next2);
20033  }
20034  resolveConstraints() {
20035    const { dragConstraints, dragElastic } = this.getProps();
20036    const { layout: layout2 } = this.visualElement.projection || {};
20037    const prevConstraints = this.constraints;
20038    if (dragConstraints && isRefObject(dragConstraints)) {
20039      if (!this.constraints) {
20040        this.constraints = this.resolveRefConstraints();
20041      }
20042    } else {
20043      if (dragConstraints && layout2) {
20044        this.constraints = calcRelativeConstraints(layout2.layoutBox, dragConstraints);
20045      } else {
20046        this.constraints = false;
20047      }
20048    }
20049    this.elastic = resolveDragElastic(dragElastic);
20050    if (prevConstraints !== this.constraints && layout2 && this.constraints && !this.hasMutatedConstraints) {
20051      eachAxis((axis) => {
20052        if (this.getAxisMotionValue(axis)) {
20053          this.constraints[axis] = rebaseAxisConstraints(layout2.layoutBox[axis], this.constraints[axis]);
20054        }
20055      });
20056    }
20057  }
20058  resolveRefConstraints() {
20059    const { dragConstraints: constraints, onMeasureDragConstraints } = this.getProps();
20060    if (!constraints || !isRefObject(constraints))
20061      return false;
20062    const constraintsElement = constraints.current;
20063    const { projection } = this.visualElement;
20064    if (!projection || !projection.layout)
20065      return false;
20066    const constraintsBox = measurePageBox(constraintsElement, projection.root, this.visualElement.getTransformPagePoint());
20067    let measuredConstraints = calcViewportConstraints(projection.layout.layoutBox, constraintsBox);
20068    if (onMeasureDragConstraints) {
20069      const userConstraints = onMeasureDragConstraints(convertBoxToBoundingBox(measuredConstraints));
20070      this.hasMutatedConstraints = !!userConstraints;
20071      if (userConstraints) {
20072        measuredConstraints = convertBoundingBoxToBox(userConstraints);
20073      }
20074    }
20075    return measuredConstraints;
20076  }
20077  startAnimation(velocity) {
20078    const { drag: drag2, dragMomentum, dragElastic, dragTransition, dragSnapToOrigin, onDragTransitionEnd } = this.getProps();
20079    const constraints = this.constraints || {};
20080    const momentumAnimations = eachAxis((axis) => {
20081      if (!shouldDrag(axis, drag2, this.currentDirection)) {
20082        return;
20083      }
20084      let transition2 = (constraints === null || constraints === void 0 ? void 0 : constraints[axis]) || {};
20085      if (dragSnapToOrigin)
20086        transition2 = { min: 0, max: 0 };
20087      const bounceStiffness = dragElastic ? 200 : 1e6;
20088      const bounceDamping = dragElastic ? 40 : 1e7;
20089      const inertia2 = {
20090        type: "inertia",
20091        velocity: dragMomentum ? velocity[axis] : 0,
20092        bounceStiffness,
20093        bounceDamping,
20094        timeConstant: 750,
20095        restDelta: 1,
20096        restSpeed: 10,
20097        ...dragTransition,
20098        ...transition2
20099      };
20100      return this.startAxisValueAnimation(axis, inertia2);
20101    });
20102    return Promise.all(momentumAnimations).then(onDragTransitionEnd);
20103  }
20104  startAxisValueAnimation(axis, transition2) {
20105    const axisValue = this.getAxisMotionValue(axis);
20106    return axisValue.start(createMotionValueAnimation(axis, axisValue, 0, transition2));
20107  }
20108  stopAnimation() {
20109    eachAxis((axis) => this.getAxisMotionValue(axis).stop());
20110  }
20111  /**
20112   * Drag works differently depending on which props are provided.
20113   *
20114   * - If _dragX and _dragY are provided, we output the gesture delta directly to those motion values.
20115   * - Otherwise, we apply the delta to the x/y motion values.
20116   */
20117  getAxisMotionValue(axis) {
20118    var _a5;
20119    const dragKey = "_drag" + axis.toUpperCase();
20120    const externalMotionValue = this.visualElement.getProps()[dragKey];
20121    return externalMotionValue ? externalMotionValue : this.visualElement.getValue(axis, ((_a5 = this.visualElement.getProps().initial) === null || _a5 === void 0 ? void 0 : _a5[axis]) || 0);
20122  }
20123  snapToCursor(point) {
20124    eachAxis((axis) => {
20125      const { drag: drag2 } = this.getProps();
20126      if (!shouldDrag(axis, drag2, this.currentDirection))
20127        return;
20128      const { projection } = this.visualElement;
20129      const axisValue = this.getAxisMotionValue(axis);
20130      if (projection && projection.layout) {
20131        const { min, max } = projection.layout.layoutBox[axis];
20132        axisValue.set(point[axis] - mix(min, max, 0.5));
20133      }
20134    });
20135  }
20136  /**
20137   * When the viewport resizes we want to check if the measured constraints
20138   * have changed and, if so, reposition the element within those new constraints
20139   * relative to where it was before the resize.
20140   */
20141  scalePositionWithinConstraints() {
20142    var _a5;
20143    if (!this.visualElement.current)
20144      return;
20145    const { drag: drag2, dragConstraints } = this.getProps();
20146    const { projection } = this.visualElement;
20147    if (!isRefObject(dragConstraints) || !projection || !this.constraints)
20148      return;
20149    this.stopAnimation();
20150    const boxProgress = { x: 0, y: 0 };
20151    eachAxis((axis) => {
20152      const axisValue = this.getAxisMotionValue(axis);
20153      if (axisValue) {
20154        const latest = axisValue.get();
20155        boxProgress[axis] = calcOrigin({ min: latest, max: latest }, this.constraints[axis]);
20156      }
20157    });
20158    const { transformTemplate: transformTemplate2 } = this.visualElement.getProps();
20159    this.visualElement.current.style.transform = transformTemplate2 ? transformTemplate2({}, "") : "none";
20160    (_a5 = projection.root) === null || _a5 === void 0 ? void 0 : _a5.updateScroll();
20161    projection.updateLayout();
20162    this.resolveConstraints();
20163    eachAxis((axis) => {
20164      if (!shouldDrag(axis, drag2, null))
20165        return;
20166      const axisValue = this.getAxisMotionValue(axis);
20167      const { min, max } = this.constraints[axis];
20168      axisValue.set(mix(min, max, boxProgress[axis]));
20169    });
20170  }
20171  addListeners() {
20172    var _a5;
20173    if (!this.visualElement.current)
20174      return;
20175    elementDragControls.set(this.visualElement, this);
20176    const element = this.visualElement.current;
20177    const stopPointerListener = addPointerEvent(element, "pointerdown", (event) => {
20178      const { drag: drag2, dragListener = true } = this.getProps();
20179      drag2 && dragListener && this.start(event);
20180    });
20181    const measureDragConstraints = () => {
20182      const { dragConstraints } = this.getProps();
20183      if (isRefObject(dragConstraints)) {
20184        this.constraints = this.resolveRefConstraints();
20185      }
20186    };
20187    const { projection } = this.visualElement;
20188    const stopMeasureLayoutListener = projection.addEventListener("measure", measureDragConstraints);
20189    if (projection && !projection.layout) {
20190      (_a5 = projection.root) === null || _a5 === void 0 ? void 0 : _a5.updateScroll();
20191      projection.updateLayout();
20192    }
20193    measureDragConstraints();
20194    const stopResizeListener = addDomEvent(window, "resize", () => this.scalePositionWithinConstraints());
20195    const stopLayoutUpdateListener = projection.addEventListener("didUpdate", ({ delta, hasLayoutChanged }) => {
20196      if (this.isDragging && hasLayoutChanged) {
20197        eachAxis((axis) => {
20198          const motionValue2 = this.getAxisMotionValue(axis);
20199          if (!motionValue2)
20200            return;
20201          this.originPoint[axis] += delta[axis].translate;
20202          motionValue2.set(motionValue2.get() + delta[axis].translate);
20203        });
20204        this.visualElement.render();
20205      }
20206    });
20207    return () => {
20208      stopResizeListener();
20209      stopPointerListener();
20210      stopMeasureLayoutListener();
20211      stopLayoutUpdateListener === null || stopLayoutUpdateListener === void 0 ? void 0 : stopLayoutUpdateListener();
20212    };
20213  }
20214  getProps() {
20215    const props = this.visualElement.getProps();
20216    const { drag: drag2 = false, dragDirectionLock = false, dragPropagation = false, dragConstraints = false, dragElastic = defaultElastic, dragMomentum = true } = props;
20217    return {
20218      ...props,
20219      drag: drag2,
20220      dragDirectionLock,
20221      dragPropagation,
20222      dragConstraints,
20223      dragElastic,
20224      dragMomentum
20225    };
20226  }
20227}
20228function shouldDrag(direction2, drag2, currentDirection) {
20229  return (drag2 === true || drag2 === direction2) && (currentDirection === null || currentDirection === direction2);
20230}
20231function getCurrentDirection(offset, lockThreshold = 10) {
20232  let direction2 = null;
20233  if (Math.abs(offset.y) > lockThreshold) {
20234    direction2 = "y";
20235  } else if (Math.abs(offset.x) > lockThreshold) {
20236    direction2 = "x";
20237  }
20238  return direction2;
20239}
20240function useDrag(props) {
20241  const { dragControls: groupDragControls, visualElement } = props;
20242  const dragControls = useConstant(() => new VisualElementDragControls(visualElement));
20243  reactExports.useEffect(() => groupDragControls && groupDragControls.subscribe(dragControls), [dragControls, groupDragControls]);
20244  reactExports.useEffect(() => dragControls.addListeners(), [dragControls]);
20245}
20246function usePanGesture({ onPan, onPanStart, onPanEnd, onPanSessionStart, visualElement }) {
20247  const hasPanEvents = onPan || onPanStart || onPanEnd || onPanSessionStart;
20248  const panSession = reactExports.useRef(null);
20249  const { transformPagePoint } = reactExports.useContext(MotionConfigContext);
20250  const handlers = {
20251    onSessionStart: onPanSessionStart,
20252    onStart: onPanStart,
20253    onMove: onPan,
20254    onEnd: (event, info) => {
20255      panSession.current = null;
20256      onPanEnd && onPanEnd(event, info);
20257    }
20258  };
20259  reactExports.useEffect(() => {
20260    if (panSession.current !== null) {
20261      panSession.current.updateHandlers(handlers);
20262    }
20263  });
20264  function onPointerDown(event) {
20265    panSession.current = new PanSession(event, handlers, {
20266      transformPagePoint
20267    });
20268  }
20269  usePointerEvent(visualElement, "pointerdown", hasPanEvents && onPointerDown);
20270  useUnmountEffect(() => panSession.current && panSession.current.end());
20271}
20272const drag = {
20273  pan: makeRenderlessComponent(usePanGesture),
20274  drag: makeRenderlessComponent(useDrag)
20275};
20276function isCSSVariable(value) {
20277  return typeof value === "string" && value.startsWith("var(--");
20278}
20279const cssVariableRegex = /var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;
20280function parseCSSVariable(current) {
20281  const match2 = cssVariableRegex.exec(current);
20282  if (!match2)
20283    return [,];
20284  const [, token2, fallback] = match2;
20285  return [token2, fallback];
20286}
20287function getVariableValue(current, element, depth = 1) {
20288  const [token2, fallback] = parseCSSVariable(current);
20289  if (!token2)
20290    return;
20291  const resolved = window.getComputedStyle(element).getPropertyValue(token2);
20292  if (resolved) {
20293    return resolved.trim();
20294  } else if (isCSSVariable(fallback)) {
20295    return getVariableValue(fallback, element, depth + 1);
20296  } else {
20297    return fallback;
20298  }
20299}
20300function resolveCSSVariables(visualElement, { ...target }, transitionEnd) {
20301  const element = visualElement.current;
20302  if (!(element instanceof Element))
20303    return { target, transitionEnd };
20304  if (transitionEnd) {
20305    transitionEnd = { ...transitionEnd };
20306  }
20307  visualElement.values.forEach((value) => {
20308    const current = value.get();
20309    if (!isCSSVariable(current))
20310      return;
20311    const resolved = getVariableValue(current, element);
20312    if (resolved)
20313      value.set(resolved);
20314  });
20315  for (const key in target) {
20316    const current = target[key];
20317    if (!isCSSVariable(current))
20318      continue;
20319    const resolved = getVariableValue(current, element);
20320    if (!resolved)
20321      continue;
20322    target[key] = resolved;
20323    if (transitionEnd && transitionEnd[key] === void 0) {
20324      transitionEnd[key] = current;
20325    }
20326  }
20327  return { target, transitionEnd };
20328}
20329const positionalKeys = /* @__PURE__ */ new Set([
20330  "width",
20331  "height",
20332  "top",
20333  "left",
20334  "right",
20335  "bottom",
20336  "x",
20337  "y"
20338]);
20339const isPositionalKey = (key) => positionalKeys.has(key);
20340const hasPositionalKey = (target) => {
20341  return Object.keys(target).some(isPositionalKey);
20342};
20343const setAndResetVelocity = (value, to) => {
20344  value.set(to, false);
20345  value.set(to);
20346};
20347const isNumOrPxType = (v2) => v2 === number || v2 === px;
20348var BoundingBoxDimension;
20349(function(BoundingBoxDimension2) {
20350  BoundingBoxDimension2["width"] = "width";
20351  BoundingBoxDimension2["height"] = "height";
20352  BoundingBoxDimension2["left"] = "left";
20353  BoundingBoxDimension2["right"] = "right";
20354  BoundingBoxDimension2["top"] = "top";
20355  BoundingBoxDimension2["bottom"] = "bottom";
20356})(BoundingBoxDimension || (BoundingBoxDimension = {}));
20357const getPosFromMatrix = (matrix, pos) => parseFloat(matrix.split(", ")[pos]);
20358const getTranslateFromMatrix = (pos2, pos3) => (_bbox, { transform: transform2 }) => {
20359  if (transform2 === "none" || !transform2)
20360    return 0;
20361  const matrix3d = transform2.match(/^matrix3d\((.+)\)$/);
20362  if (matrix3d) {
20363    return getPosFromMatrix(matrix3d[1], pos3);
20364  } else {
20365    const matrix = transform2.match(/^matrix\((.+)\)$/);
20366    if (matrix) {
20367      return getPosFromMatrix(matrix[1], pos2);
20368    } else {
20369      return 0;
20370    }
20371  }
20372};
20373const transformKeys = /* @__PURE__ */ new Set(["x", "y", "z"]);
20374const nonTranslationalTransformKeys = transformPropOrder.filter((key) => !transformKeys.has(key));
20375function removeNonTranslationalTransform(visualElement) {
20376  const removedTransforms = [];
20377  nonTranslationalTransformKeys.forEach((key) => {
20378    const value = visualElement.getValue(key);
20379    if (value !== void 0) {
20380      removedTransforms.push([key, value.get()]);
20381      value.set(key.startsWith("scale") ? 1 : 0);
20382    }
20383  });
20384  if (removedTransforms.length)
20385    visualElement.render();
20386  return removedTransforms;
20387}
20388const positionalValues = {
20389  // Dimensions
20390  width: ({ x: x2 }, { paddingLeft = "0", paddingRight = "0" }) => x2.max - x2.min - parseFloat(paddingLeft) - parseFloat(paddingRight),
20391  height: ({ y: y2 }, { paddingTop = "0", paddingBottom = "0" }) => y2.max - y2.min - parseFloat(paddingTop) - parseFloat(paddingBottom),
20392  top: (_bbox, { top }) => parseFloat(top),
20393  left: (_bbox, { left }) => parseFloat(left),
20394  bottom: ({ y: y2 }, { top }) => parseFloat(top) + (y2.max - y2.min),
20395  right: ({ x: x2 }, { left }) => parseFloat(left) + (x2.max - x2.min),
20396  // Transform
20397  x: getTranslateFromMatrix(4, 13),
20398  y: getTranslateFromMatrix(5, 14)
20399};
20400const convertChangedValueTypes = (target, visualElement, changedKeys) => {
20401  const originBbox = visualElement.measureViewportBox();
20402  const element = visualElement.current;
20403  const elementComputedStyle = getComputedStyle(element);
20404  const { display } = elementComputedStyle;
20405  const origin = {};
20406  if (display === "none") {
20407    visualElement.setStaticValue("display", target.display || "block");
20408  }
20409  changedKeys.forEach((key) => {
20410    origin[key] = positionalValues[key](originBbox, elementComputedStyle);
20411  });
20412  visualElement.render();
20413  const targetBbox = visualElement.measureViewportBox();
20414  changedKeys.forEach((key) => {
20415    const value = visualElement.getValue(key);
20416    setAndResetVelocity(value, origin[key]);
20417    target[key] = positionalValues[key](targetBbox, elementComputedStyle);
20418  });
20419  return target;
20420};
20421const checkAndConvertChangedValueTypes = (visualElement, target, origin = {}, transitionEnd = {}) => {
20422  target = { ...target };
20423  transitionEnd = { ...transitionEnd };
20424  const targetPositionalKeys = Object.keys(target).filter(isPositionalKey);
20425  let removedTransformValues = [];
20426  let hasAttemptedToRemoveTransformValues = false;
20427  const changedValueTypeKeys = [];
20428  targetPositionalKeys.forEach((key) => {
20429    const value = visualElement.getValue(key);
20430    if (!visualElement.hasValue(key))
20431      return;
20432    let from2 = origin[key];
20433    let fromType = findDimensionValueType(from2);
20434    const to = target[key];
20435    let toType;
20436    if (isKeyframesTarget(to)) {
20437      const numKeyframes = to.length;
20438      const fromIndex = to[0] === null ? 1 : 0;
20439      from2 = to[fromIndex];
20440      fromType = findDimensionValueType(from2);
20441      for (let i = fromIndex; i < numKeyframes; i++) {
20442        if (!toType) {
20443          toType = findDimensionValueType(to[i]);
20444        } else {
20445          invariant$1(findDimensionValueType(to[i]) === toType);
20446        }
20447      }
20448    } else {
20449      toType = findDimensionValueType(to);
20450    }
20451    if (fromType !== toType) {
20452      if (isNumOrPxType(fromType) && isNumOrPxType(toType)) {
20453        const current = value.get();
20454        if (typeof current === "string") {
20455          value.set(parseFloat(current));
20456        }
20457        if (typeof to === "string") {
20458          target[key] = parseFloat(to);
20459        } else if (Array.isArray(to) && toType === px) {
20460          target[key] = to.map(parseFloat);
20461        }
20462      } else if ((fromType === null || fromType === void 0 ? void 0 : fromType.transform) && (toType === null || toType === void 0 ? void 0 : toType.transform) && (from2 === 0 || to === 0)) {
20463        if (from2 === 0) {
20464          value.set(toType.transform(from2));
20465        } else {
20466          target[key] = fromType.transform(to);
20467        }
20468      } else {
20469        if (!hasAttemptedToRemoveTransformValues) {
20470          removedTransformValues = removeNonTranslationalTransform(visualElement);
20471          hasAttemptedToRemoveTransformValues = true;
20472        }
20473        changedValueTypeKeys.push(key);
20474        transitionEnd[key] = transitionEnd[key] !== void 0 ? transitionEnd[key] : target[key];
20475        setAndResetVelocity(value, to);
20476      }
20477    }
20478  });
20479  if (changedValueTypeKeys.length) {
20480    const scrollY = changedValueTypeKeys.indexOf("height") >= 0 ? window.pageYOffset : null;
20481    const convertedTarget = convertChangedValueTypes(target, visualElement, changedValueTypeKeys);
20482    if (removedTransformValues.length) {
20483      removedTransformValues.forEach(([key, value]) => {
20484        visualElement.getValue(key).set(value);
20485      });
20486    }
20487    visualElement.render();
20488    if (isBrowser && scrollY !== null) {
20489      window.scrollTo({ top: scrollY });
20490    }
20491    return { target: convertedTarget, transitionEnd };
20492  } else {
20493    return { target, transitionEnd };
20494  }
20495};
20496function unitConversion(visualElement, target, origin, transitionEnd) {
20497  return hasPositionalKey(target) ? checkAndConvertChangedValueTypes(visualElement, target, origin, transitionEnd) : { target, transitionEnd };
20498}
20499const parseDomVariant = (visualElement, target, origin, transitionEnd) => {
20500  const resolved = resolveCSSVariables(visualElement, target, transitionEnd);
20501  target = resolved.target;
20502  transitionEnd = resolved.transitionEnd;
20503  return unitConversion(visualElement, target, origin, transitionEnd);
20504};
20505const prefersReducedMotion = { current: null };
20506const hasReducedMotionListener = { current: false };
20507function initPrefersReducedMotion() {
20508  hasReducedMotionListener.current = true;
20509  if (!isBrowser)
20510    return;
20511  if (window.matchMedia) {
20512    const motionMediaQuery = window.matchMedia("(prefers-reduced-motion)");
20513    const setReducedMotionPreferences = () => prefersReducedMotion.current = motionMediaQuery.matches;
20514    motionMediaQuery.addListener(setReducedMotionPreferences);
20515    setReducedMotionPreferences();
20516  } else {
20517    prefersReducedMotion.current = false;
20518  }
20519}
20520function updateMotionValuesFromProps(element, next2, prev2) {
20521  const { willChange } = next2;
20522  for (const key in next2) {
20523    const nextValue = next2[key];
20524    const prevValue = prev2[key];
20525    if (isMotionValue(nextValue)) {
20526      element.addValue(key, nextValue);
20527      if (isWillChangeMotionValue(willChange)) {
20528        willChange.add(key);
20529      }
20530    } else if (isMotionValue(prevValue)) {
20531      element.addValue(key, motionValue(nextValue, { owner: element }));
20532      if (isWillChangeMotionValue(willChange)) {
20533        willChange.remove(key);
20534      }
20535    } else if (prevValue !== nextValue) {
20536      if (element.hasValue(key)) {
20537        const existingValue = element.getValue(key);
20538        !existingValue.hasAnimated && existingValue.set(nextValue);
20539      } else {
20540        const latestValue = element.getStaticValue(key);
20541        element.addValue(key, motionValue(latestValue !== void 0 ? latestValue : nextValue));
20542      }
20543    }
20544  }
20545  for (const key in prev2) {
20546    if (next2[key] === void 0)
20547      element.removeValue(key);
20548  }
20549  return next2;
20550}
20551const featureNames = Object.keys(featureDefinitions);
20552const numFeatures = featureNames.length;
20553const propEventHandlers = [
20554  "AnimationStart",
20555  "AnimationComplete",
20556  "Update",
20557  "Unmount",
20558  "BeforeLayoutMeasure",
20559  "LayoutMeasure",
20560  "LayoutAnimationStart",
20561  "LayoutAnimationComplete"
20562];
20563class VisualElement {
20564  constructor({ parent, props, reducedMotionConfig, visualState }, options = {}) {
20565    this.current = null;
20566    this.children = /* @__PURE__ */ new Set();
20567    this.isVariantNode = false;
20568    this.isControllingVariants = false;
20569    this.shouldReduceMotion = null;
20570    this.values = /* @__PURE__ */ new Map();
20571    this.isPresent = true;
20572    this.valueSubscriptions = /* @__PURE__ */ new Map();
20573    this.prevMotionValues = {};
20574    this.events = {};
20575    this.propEventSubscriptions = {};
20576    this.notifyUpdate = () => this.notify("Update", this.latestValues);
20577    this.render = () => {
20578      if (!this.current)
20579        return;
20580      this.triggerBuild();
20581      this.renderInstance(this.current, this.renderState, this.props.style, this.projection);
20582    };
20583    this.scheduleRender = () => sync.render(this.render, false, true);
20584    const { latestValues, renderState } = visualState;
20585    this.latestValues = latestValues;
20586    this.baseTarget = { ...latestValues };
20587    this.initialValues = props.initial ? { ...latestValues } : {};
20588    this.renderState = renderState;
20589    this.parent = parent;
20590    this.props = props;
20591    this.depth = parent ? parent.depth + 1 : 0;
20592    this.reducedMotionConfig = reducedMotionConfig;
20593    this.options = options;
20594    this.isControllingVariants = isControllingVariants(props);
20595    this.isVariantNode = isVariantNode(props);
20596    if (this.isVariantNode) {
20597      this.variantChildren = /* @__PURE__ */ new Set();
20598    }
20599    this.manuallyAnimateOnMount = Boolean(parent && parent.current);
20600    const { willChange, ...initialMotionValues } = this.scrapeMotionValuesFromProps(props);
20601    for (const key in initialMotionValues) {
20602      const value = initialMotionValues[key];
20603      if (latestValues[key] !== void 0 && isMotionValue(value)) {
20604        value.set(latestValues[key], false);
20605        if (isWillChangeMotionValue(willChange)) {
20606          willChange.add(key);
20607        }
20608      }
20609    }
20610  }
20611  /**
20612   * This method takes React props and returns found MotionValues. For example, HTML
20613   * MotionValues will be found within the style prop, whereas for Three.js within attribute arrays.
20614   *
20615   * This isn't an abstract method as it needs calling in the constructor, but it is
20616   * intended to be one.
20617   */
20618  scrapeMotionValuesFromProps(_props) {
20619    return {};
20620  }
20621  mount(instance) {
20622    var _a5;
20623    this.current = instance;
20624    if (this.projection) {
20625      this.projection.mount(instance);
20626    }
20627    if (this.parent && this.isVariantNode && !this.isControllingVariants) {
20628      this.removeFromVariantTree = (_a5 = this.parent) === null || _a5 === void 0 ? void 0 : _a5.addVariantChild(this);
20629    }
20630    this.values.forEach((value, key) => this.bindToMotionValue(key, value));
20631    if (!hasReducedMotionListener.current) {
20632      initPrefersReducedMotion();
20633    }
20634    this.shouldReduceMotion = this.reducedMotionConfig === "never" ? false : this.reducedMotionConfig === "always" ? true : prefersReducedMotion.current;
20635    if (this.parent)
20636      this.parent.children.add(this);
20637    this.setProps(this.props);
20638  }
20639  unmount() {
20640    var _a5, _b3, _c2;
20641    (_a5 = this.projection) === null || _a5 === void 0 ? void 0 : _a5.unmount();
20642    cancelSync.update(this.notifyUpdate);
20643    cancelSync.render(this.render);
20644    this.valueSubscriptions.forEach((remove) => remove());
20645    (_b3 = this.removeFromVariantTree) === null || _b3 === void 0 ? void 0 : _b3.call(this);
20646    (_c2 = this.parent) === null || _c2 === void 0 ? void 0 : _c2.children.delete(this);
20647    for (const key in this.events) {
20648      this.events[key].clear();
20649    }
20650    this.current = null;
20651  }
20652  bindToMotionValue(key, value) {
20653    const valueIsTransform = transformProps.has(key);
20654    const removeOnChange = value.on("change", (latestValue) => {
20655      this.latestValues[key] = latestValue;
20656      this.props.onUpdate && sync.update(this.notifyUpdate, false, true);
20657      if (valueIsTransform && this.projection) {
20658        this.projection.isTransformDirty = true;
20659      }
20660    });
20661    const removeOnRenderRequest = value.on("renderRequest", this.scheduleRender);
20662    this.valueSubscriptions.set(key, () => {
20663      removeOnChange();
20664      removeOnRenderRequest();
20665    });
20666  }
20667  sortNodePosition(other) {
20668    if (!this.current || !this.sortInstanceNodePosition || this.type !== other.type)
20669      return 0;
20670    return this.sortInstanceNodePosition(this.current, other.current);
20671  }
20672  loadFeatures(renderedProps, isStrict, preloadedFeatures, projectionId, ProjectionNodeConstructor, initialLayoutGroupConfig) {
20673    const features = [];
20674    for (let i = 0; i < numFeatures; i++) {
20675      const name2 = featureNames[i];
20676      const { isEnabled, Component } = featureDefinitions[name2];
20677      if (isEnabled(renderedProps) && Component) {
20678        features.push(reactExports.createElement(Component, {
20679          key: name2,
20680          ...renderedProps,
20681          visualElement: this
20682        }));
20683      }
20684    }
20685    if (!this.projection && ProjectionNodeConstructor) {
20686      this.projection = new ProjectionNodeConstructor(projectionId, this.latestValues, this.parent && this.parent.projection);
20687      const { layoutId, layout: layout2, drag: drag2, dragConstraints, layoutScroll } = renderedProps;
20688      this.projection.setOptions({
20689        layoutId,
20690        layout: layout2,
20691        alwaysMeasureLayout: Boolean(drag2) || dragConstraints && isRefObject(dragConstraints),
20692        visualElement: this,
20693        scheduleRender: () => this.scheduleRender(),
20694        /**
20695         * TODO: Update options in an effect. This could be tricky as it'll be too late
20696         * to update by the time layout animations run.
20697         * We also need to fix this safeToRemove by linking it up to the one returned by usePresence,
20698         * ensuring it gets called if there's no potential layout animations.
20699         *
20700         */
20701        animationType: typeof layout2 === "string" ? layout2 : "both",
20702        initialPromotionConfig: initialLayoutGroupConfig,
20703        layoutScroll
20704      });
20705    }
20706    return features;
20707  }
20708  triggerBuild() {
20709    this.build(this.renderState, this.latestValues, this.options, this.props);
20710  }
20711  /**
20712   * Measure the current viewport box with or without transforms.
20713   * Only measures axis-aligned boxes, rotate and skew must be manually
20714   * removed with a re-render to work.
20715   */
20716  measureViewportBox() {
20717    return this.current ? this.measureInstanceViewportBox(this.current, this.props) : createBox();
20718  }
20719  getStaticValue(key) {
20720    return this.latestValues[key];
20721  }
20722  setStaticValue(key, value) {
20723    this.latestValues[key] = value;
20724  }
20725  /**
20726   * Make a target animatable by Popmotion. For instance, if we're
20727   * trying to animate width from 100px to 100vw we need to measure 100vw
20728   * in pixels to determine what we really need to animate to. This is also
20729   * pluggable to support Framer's custom value types like Color,
20730   * and CSS variables.
20731   */
20732  makeTargetAnimatable(target, canMutate = true) {
20733    return this.makeTargetAnimatableFromInstance(target, this.props, canMutate);
20734  }
20735  /**
20736   * Update the provided props. Ensure any newly-added motion values are
20737   * added to our map, old ones removed, and listeners updated.
20738   */
20739  setProps(props) {
20740    if (props.transformTemplate || this.props.transformTemplate) {
20741      this.scheduleRender();
20742    }
20743    this.props = props;
20744    for (let i = 0; i < propEventHandlers.length; i++) {
20745      const key = propEventHandlers[i];
20746      if (this.propEventSubscriptions[key]) {
20747        this.propEventSubscriptions[key]();
20748        delete this.propEventSubscriptions[key];
20749      }
20750      const listener = props["on" + key];
20751      if (listener) {
20752        this.propEventSubscriptions[key] = this.on(key, listener);
20753      }
20754    }
20755    this.prevMotionValues = updateMotionValuesFromProps(this, this.scrapeMotionValuesFromProps(props), this.prevMotionValues);
20756  }
20757  getProps() {
20758    return this.props;
20759  }
20760  /**
20761   * Returns the variant definition with a given name.
20762   */
20763  getVariant(name2) {
20764    var _a5;
20765    return (_a5 = this.props.variants) === null || _a5 === void 0 ? void 0 : _a5[name2];
20766  }
20767  /**
20768   * Returns the defined default transition on this component.
20769   */
20770  getDefaultTransition() {
20771    return this.props.transition;
20772  }
20773  getTransformPagePoint() {
20774    return this.props.transformPagePoint;
20775  }
20776  getClosestVariantNode() {
20777    var _a5;
20778    return this.isVariantNode ? this : (_a5 = this.parent) === null || _a5 === void 0 ? void 0 : _a5.getClosestVariantNode();
20779  }
20780  getVariantContext(startAtParent = false) {
20781    var _a5, _b3;
20782    if (startAtParent)
20783      return (_a5 = this.parent) === null || _a5 === void 0 ? void 0 : _a5.getVariantContext();
20784    if (!this.isControllingVariants) {
20785      const context2 = ((_b3 = this.parent) === null || _b3 === void 0 ? void 0 : _b3.getVariantContext()) || {};
20786      if (this.props.initial !== void 0) {
20787        context2.initial = this.props.initial;
20788      }
20789      return context2;
20790    }
20791    const context = {};
20792    for (let i = 0; i < numVariantProps; i++) {
20793      const name2 = variantProps[i];
20794      const prop = this.props[name2];
20795      if (isVariantLabel(prop) || prop === false) {
20796        context[name2] = prop;
20797      }
20798    }
20799    return context;
20800  }
20801  /**
20802   * Add a child visual element to our set of children.
20803   */
20804  addVariantChild(child) {
20805    var _a5;
20806    const closestVariantNode = this.getClosestVariantNode();
20807    if (closestVariantNode) {
20808      (_a5 = closestVariantNode.variantChildren) === null || _a5 === void 0 ? void 0 : _a5.add(child);
20809      return () => closestVariantNode.variantChildren.delete(child);
20810    }
20811  }
20812  /**
20813   * Add a motion value and bind it to this visual element.
20814   */
20815  addValue(key, value) {
20816    if (this.hasValue(key))
20817      this.removeValue(key);
20818    this.values.set(key, value);
20819    this.latestValues[key] = value.get();
20820    this.bindToMotionValue(key, value);
20821  }
20822  /**
20823   * Remove a motion value and unbind any active subscriptions.
20824   */
20825  removeValue(key) {
20826    var _a5;
20827    this.values.delete(key);
20828    (_a5 = this.valueSubscriptions.get(key)) === null || _a5 === void 0 ? void 0 : _a5();
20829    this.valueSubscriptions.delete(key);
20830    delete this.latestValues[key];
20831    this.removeValueFromRenderState(key, this.renderState);
20832  }
20833  /**
20834   * Check whether we have a motion value for this key
20835   */
20836  hasValue(key) {
20837    return this.values.has(key);
20838  }
20839  /**
20840   * Get a motion value for this key. If called with a default
20841   * value, we'll create one if none exists.
20842   */
20843  getValue(key, defaultValue) {
20844    if (this.props.values && this.props.values[key]) {
20845      return this.props.values[key];
20846    }
20847    let value = this.values.get(key);
20848    if (value === void 0 && defaultValue !== void 0) {
20849      value = motionValue(defaultValue, { owner: this });
20850      this.addValue(key, value);
20851    }
20852    return value;
20853  }
20854  /**
20855   * If we're trying to animate to a previously unencountered value,
20856   * we need to check for it in our state and as a last resort read it
20857   * directly from the instance (which might have performance implications).
20858   */
20859  readValue(key) {
20860    return this.latestValues[key] !== void 0 || !this.current ? this.latestValues[key] : this.readValueFromInstance(this.current, key, this.options);
20861  }
20862  /**
20863   * Set the base target to later animate back to. This is currently
20864   * only hydrated on creation and when we first read a value.
20865   */
20866  setBaseTarget(key, value) {
20867    this.baseTarget[key] = value;
20868  }
20869  /**
20870   * Find the base target for a value thats been removed from all animation
20871   * props.
20872   */
20873  getBaseTarget(key) {
20874    var _a5;
20875    const { initial } = this.props;
20876    const valueFromInitial = typeof initial === "string" || typeof initial === "object" ? (_a5 = resolveVariantFromProps(this.props, initial)) === null || _a5 === void 0 ? void 0 : _a5[key] : void 0;
20877    if (initial && valueFromInitial !== void 0) {
20878      return valueFromInitial;
20879    }
20880    const target = this.getBaseTargetFromProps(this.props, key);
20881    if (target !== void 0 && !isMotionValue(target))
20882      return target;
20883    return this.initialValues[key] !== void 0 && valueFromInitial === void 0 ? void 0 : this.baseTarget[key];
20884  }
20885  on(eventName, callback) {
20886    if (!this.events[eventName]) {
20887      this.events[eventName] = new SubscriptionManager();
20888    }
20889    return this.events[eventName].add(callback);
20890  }
20891  notify(eventName, ...args) {
20892    var _a5;
20893    (_a5 = this.events[eventName]) === null || _a5 === void 0 ? void 0 : _a5.notify(...args);
20894  }
20895}
20896const variantProps = ["initial", ...variantPriorityOrder];
20897const numVariantProps = variantProps.length;
20898class DOMVisualElement extends VisualElement {
20899  sortInstanceNodePosition(a, b2) {
20900    return a.compareDocumentPosition(b2) & 2 ? 1 : -1;
20901  }
20902  getBaseTargetFromProps(props, key) {
20903    var _a5;
20904    return (_a5 = props.style) === null || _a5 === void 0 ? void 0 : _a5[key];
20905  }
20906  removeValueFromRenderState(key, { vars, style }) {
20907    delete vars[key];
20908    delete style[key];
20909  }
20910  makeTargetAnimatableFromInstance({ transition: transition2, transitionEnd, ...target }, { transformValues }, isMounted) {
20911    let origin = getOrigin(target, transition2 || {}, this);
20912    if (transformValues) {
20913      if (transitionEnd)
20914        transitionEnd = transformValues(transitionEnd);
20915      if (target)
20916        target = transformValues(target);
20917      if (origin)
20918        origin = transformValues(origin);
20919    }
20920    if (isMounted) {
20921      checkTargetForNewValues(this, target, origin);
20922      const parsed = parseDomVariant(this, target, origin, transitionEnd);
20923      transitionEnd = parsed.transitionEnd;
20924      target = parsed.target;
20925    }
20926    return {
20927      transition: transition2,
20928      transitionEnd,
20929      ...target
20930    };
20931  }
20932}
20933function getComputedStyle$1(element) {
20934  return window.getComputedStyle(element);
20935}
20936class HTMLVisualElement extends DOMVisualElement {
20937  readValueFromInstance(instance, key) {
20938    if (transformProps.has(key)) {
20939      const defaultType = getDefaultValueType(key);
20940      return defaultType ? defaultType.default || 0 : 0;
20941    } else {
20942      const computedStyle = getComputedStyle$1(instance);
20943      const value = (isCSSVariable$1(key) ? computedStyle.getPropertyValue(key) : computedStyle[key]) || 0;
20944      return typeof value === "string" ? value.trim() : value;
20945    }
20946  }
20947  measureInstanceViewportBox(instance, { transformPagePoint }) {
20948    return measureViewportBox(instance, transformPagePoint);
20949  }
20950  build(renderState, latestValues, options, props) {
20951    buildHTMLStyles(renderState, latestValues, options, props.transformTemplate);
20952  }
20953  scrapeMotionValuesFromProps(props) {
20954    return scrapeMotionValuesFromProps$1(props);
20955  }
20956  renderInstance(instance, renderState, styleProp, projection) {
20957    renderHTML(instance, renderState, styleProp, projection);
20958  }
20959}
20960class SVGVisualElement extends DOMVisualElement {
20961  constructor() {
20962    super(...arguments);
20963    this.isSVGTag = false;
20964  }
20965  getBaseTargetFromProps(props, key) {
20966    return props[key];
20967  }
20968  readValueFromInstance(instance, key) {
20969    var _a5;
20970    if (transformProps.has(key)) {
20971      return ((_a5 = getDefaultValueType(key)) === null || _a5 === void 0 ? void 0 : _a5.default) || 0;
20972    }
20973    key = !camelCaseAttributes.has(key) ? camelToDash(key) : key;
20974    return instance.getAttribute(key);
20975  }
20976  measureInstanceViewportBox() {
20977    return createBox();
20978  }
20979  scrapeMotionValuesFromProps(props) {
20980    return scrapeMotionValuesFromProps(props);
20981  }
20982  build(renderState, latestValues, options, props) {
20983    buildSVGAttrs(renderState, latestValues, options, this.isSVGTag, props.transformTemplate);
20984  }
20985  renderInstance(instance, renderState, styleProp, projection) {
20986    renderSVG(instance, renderState, styleProp, projection);
20987  }
20988  mount(instance) {
20989    this.isSVGTag = isSVGTag(instance.tagName);
20990    super.mount(instance);
20991  }
20992}
20993const createDomVisualElement = (Component, options) => {
20994  return isSVGComponent(Component) ? new SVGVisualElement(options, { enableHardwareAcceleration: false }) : new HTMLVisualElement(options, { enableHardwareAcceleration: true });
20995};
20996function pixelsToPercent(pixels, axis) {
20997  if (axis.max === axis.min)
20998    return 0;
20999  return pixels / (axis.max - axis.min) * 100;
21000}
21001const correctBorderRadius = {
21002  correct: (latest, node2) => {
21003    if (!node2.target)
21004      return latest;
21005    if (typeof latest === "string") {
21006      if (px.test(latest)) {
21007        latest = parseFloat(latest);
21008      } else {
21009        return latest;
21010      }
21011    }
21012    const x2 = pixelsToPercent(latest, node2.target.x);
21013    const y2 = pixelsToPercent(latest, node2.target.y);
21014    return `${x2}% ${y2}%`;
21015  }
21016};
21017const varToken = "_$css";
21018const correctBoxShadow = {
21019  correct: (latest, { treeScale, projectionDelta }) => {
21020    const original = latest;
21021    const containsCSSVariables = latest.includes("var(");
21022    const cssVariables = [];
21023    if (containsCSSVariables) {
21024      latest = latest.replace(cssVariableRegex, (match2) => {
21025        cssVariables.push(match2);
21026        return varToken;
21027      });
21028    }
21029    const shadow = complex.parse(latest);
21030    if (shadow.length > 5)
21031      return original;
21032    const template = complex.createTransformer(latest);
21033    const offset = typeof shadow[0] !== "number" ? 1 : 0;
21034    const xScale = projectionDelta.x.scale * treeScale.x;
21035    const yScale = projectionDelta.y.scale * treeScale.y;
21036    shadow[0 + offset] /= xScale;
21037    shadow[1 + offset] /= yScale;
21038    const averageScale = mix(xScale, yScale, 0.5);
21039    if (typeof shadow[2 + offset] === "number")
21040      shadow[2 + offset] /= averageScale;
21041    if (typeof shadow[3 + offset] === "number")
21042      shadow[3 + offset] /= averageScale;
21043    let output = template(shadow);
21044    if (containsCSSVariables) {
21045      let i = 0;
21046      output = output.replace(varToken, () => {
21047        const cssVariable = cssVariables[i];
21048        i++;
21049        return cssVariable;
21050      });
21051    }
21052    return output;
21053  }
21054};
21055class MeasureLayoutWithContext extends React$1.Component {
21056  /**
21057   * This only mounts projection nodes for components that
21058   * need measuring, we might want to do it for all components
21059   * in order to incorporate transforms
21060   */
21061  componentDidMount() {
21062    const { visualElement, layoutGroup, switchLayoutGroup, layoutId } = this.props;
21063    const { projection } = visualElement;
21064    addScaleCorrector(defaultScaleCorrectors);
21065    if (projection) {
21066      if (layoutGroup.group)
21067        layoutGroup.group.add(projection);
21068      if (switchLayoutGroup && switchLayoutGroup.register && layoutId) {
21069        switchLayoutGroup.register(projection);
21070      }
21071      projection.root.didUpdate();
21072      projection.addEventListener("animationComplete", () => {
21073        this.safeToRemove();
21074      });
21075      projection.setOptions({
21076        ...projection.options,
21077        onExitComplete: () => this.safeToRemove()
21078      });
21079    }
21080    globalProjectionState.hasEverUpdated = true;
21081  }
21082  getSnapshotBeforeUpdate(prevProps) {
21083    const { layoutDependency, visualElement, drag: drag2, isPresent: isPresent2 } = this.props;
21084    const projection = visualElement.projection;
21085    if (!projection)
21086      return null;
21087    projection.isPresent = isPresent2;
21088    if (drag2 || prevProps.layoutDependency !== layoutDependency || layoutDependency === void 0) {
21089      projection.willUpdate();
21090    } else {
21091      this.safeToRemove();
21092    }
21093    if (prevProps.isPresent !== isPresent2) {
21094      if (isPresent2) {
21095        projection.promote();
21096      } else if (!projection.relegate()) {
21097        sync.postRender(() => {
21098          var _a5;
21099          if (!((_a5 = projection.getStack()) === null || _a5 === void 0 ? void 0 : _a5.members.length)) {
21100            this.safeToRemove();
21101          }
21102        });
21103      }
21104    }
21105    return null;
21106  }
21107  componentDidUpdate() {
21108    const { projection } = this.props.visualElement;
21109    if (projection) {
21110      projection.root.didUpdate();
21111      if (!projection.currentAnimation && projection.isLead()) {
21112        this.safeToRemove();
21113      }
21114    }
21115  }
21116  componentWillUnmount() {
21117    const { visualElement, layoutGroup, switchLayoutGroup: promoteContext } = this.props;
21118    const { projection } = visualElement;
21119    if (projection) {
21120      projection.scheduleCheckAfterUnmount();
21121      if (layoutGroup === null || layoutGroup === void 0 ? void 0 : layoutGroup.group)
21122        layoutGroup.group.remove(projection);
21123      if (promoteContext === null || promoteContext === void 0 ? void 0 : promoteContext.deregister)
21124        promoteContext.deregister(projection);
21125    }
21126  }
21127  safeToRemove() {
21128    const { safeToRemove } = this.props;
21129    safeToRemove === null || safeToRemove === void 0 ? void 0 : safeToRemove();
21130  }
21131  render() {
21132    return null;
21133  }
21134}
21135function MeasureLayout(props) {
21136  const [isPresent2, safeToRemove] = usePresence();
21137  const layoutGroup = reactExports.useContext(LayoutGroupContext);
21138  return React$1.createElement(MeasureLayoutWithContext, { ...props, layoutGroup, switchLayoutGroup: reactExports.useContext(SwitchLayoutGroupContext), isPresent: isPresent2, safeToRemove });
21139}
21140const defaultScaleCorrectors = {
21141  borderRadius: {
21142    ...correctBorderRadius,
21143    applyTo: [
21144      "borderTopLeftRadius",
21145      "borderTopRightRadius",
21146      "borderBottomLeftRadius",
21147      "borderBottomRightRadius"
21148    ]
21149  },
21150  borderTopLeftRadius: correctBorderRadius,
21151  borderTopRightRadius: correctBorderRadius,
21152  borderBottomLeftRadius: correctBorderRadius,
21153  borderBottomRightRadius: correctBorderRadius,
21154  boxShadow: correctBoxShadow
21155};
21156const layoutFeatures = {
21157  measureLayout: MeasureLayout
21158};
21159function animate(from2, to, transition2 = {}) {
21160  const value = isMotionValue(from2) ? from2 : motionValue(from2);
21161  value.start(createMotionValueAnimation("", value, to, transition2));
21162  return {
21163    stop: () => value.stop(),
21164    isAnimating: () => value.isAnimating()
21165  };
21166}
21167const borders = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"];
21168const numBorders = borders.length;
21169const asNumber = (value) => typeof value === "string" ? parseFloat(value) : value;
21170const isPx = (value) => typeof value === "number" || px.test(value);
21171function mixValues(target, follow, lead, progress2, shouldCrossfadeOpacity, isOnlyMember) {
21172  if (shouldCrossfadeOpacity) {
21173    target.opacity = mix(
21174      0,
21175      // TODO Reinstate this if only child
21176      lead.opacity !== void 0 ? lead.opacity : 1,
21177      easeCrossfadeIn(progress2)
21178    );
21179    target.opacityExit = mix(follow.opacity !== void 0 ? follow.opacity : 1, 0, easeCrossfadeOut(progress2));
21180  } else if (isOnlyMember) {
21181    target.opacity = mix(follow.opacity !== void 0 ? follow.opacity : 1, lead.opacity !== void 0 ? lead.opacity : 1, progress2);
21182  }
21183  for (let i = 0; i < numBorders; i++) {
21184    const borderLabel = `border${borders[i]}Radius`;
21185    let followRadius = getRadius(follow, borderLabel);
21186    let leadRadius = getRadius(lead, borderLabel);
21187    if (followRadius === void 0 && leadRadius === void 0)
21188      continue;
21189    followRadius || (followRadius = 0);
21190    leadRadius || (leadRadius = 0);
21191    const canMix = followRadius === 0 || leadRadius === 0 || isPx(followRadius) === isPx(leadRadius);
21192    if (canMix) {
21193      target[borderLabel] = Math.max(mix(asNumber(followRadius), asNumber(leadRadius), progress2), 0);
21194      if (percent.test(leadRadius) || percent.test(followRadius)) {
21195        target[borderLabel] += "%";
21196      }
21197    } else {
21198      target[borderLabel] = leadRadius;
21199    }
21200  }
21201  if (follow.rotate || lead.rotate) {
21202    target.rotate = mix(follow.rotate || 0, lead.rotate || 0, progress2);
21203  }
21204}
21205function getRadius(values, radiusName) {
21206  return values[radiusName] !== void 0 ? values[radiusName] : values.borderRadius;
21207}
21208const easeCrossfadeIn = compress(0, 0.5, circOut);
21209const easeCrossfadeOut = compress(0.5, 0.95, noop);
21210function compress(min, max, easing) {
21211  return (p2) => {
21212    if (p2 < min)
21213      return 0;
21214    if (p2 > max)
21215      return 1;
21216    return easing(progress(min, max, p2));
21217  };
21218}
21219function copyAxisInto(axis, originAxis) {
21220  axis.min = originAxis.min;
21221  axis.max = originAxis.max;
21222}
21223function copyBoxInto(box, originBox) {
21224  copyAxisInto(box.x, originBox.x);
21225  copyAxisInto(box.y, originBox.y);
21226}
21227function removePointDelta(point, translate, scale2, originPoint, boxScale) {
21228  point -= translate;
21229  point = scalePoint(point, 1 / scale2, originPoint);
21230  if (boxScale !== void 0) {
21231    point = scalePoint(point, 1 / boxScale, originPoint);
21232  }
21233  return point;
21234}
21235function removeAxisDelta(axis, translate = 0, scale2 = 1, origin = 0.5, boxScale, originAxis = axis, sourceAxis = axis) {
21236  if (percent.test(translate)) {
21237    translate = parseFloat(translate);
21238    const relativeProgress = mix(sourceAxis.min, sourceAxis.max, translate / 100);
21239    translate = relativeProgress - sourceAxis.min;
21240  }
21241  if (typeof translate !== "number")
21242    return;
21243  let originPoint = mix(originAxis.min, originAxis.max, origin);
21244  if (axis === originAxis)
21245    originPoint -= translate;
21246  axis.min = removePointDelta(axis.min, translate, scale2, originPoint, boxScale);
21247  axis.max = removePointDelta(axis.max, translate, scale2, originPoint, boxScale);
21248}
21249function removeAxisTransforms(axis, transforms, [key, scaleKey, originKey], origin, sourceAxis) {
21250  removeAxisDelta(axis, transforms[key], transforms[scaleKey], transforms[originKey], transforms.scale, origin, sourceAxis);
21251}
21252const xKeys = ["x", "scaleX", "originX"];
21253const yKeys = ["y", "scaleY", "originY"];
21254function removeBoxTransforms(box, transforms, originBox, sourceBox) {
21255  removeAxisTransforms(box.x, transforms, xKeys, originBox === null || originBox === void 0 ? void 0 : originBox.x, sourceBox === null || sourceBox === void 0 ? void 0 : sourceBox.x);
21256  removeAxisTransforms(box.y, transforms, yKeys, originBox === null || originBox === void 0 ? void 0 : originBox.y, sourceBox === null || sourceBox === void 0 ? void 0 : sourceBox.y);
21257}
21258function isAxisDeltaZero(delta) {
21259  return delta.translate === 0 && delta.scale === 1;
21260}
21261function isDeltaZero(delta) {
21262  return isAxisDeltaZero(delta.x) && isAxisDeltaZero(delta.y);
21263}
21264function boxEquals(a, b2) {
21265  return a.x.min === b2.x.min && a.x.max === b2.x.max && a.y.min === b2.y.min && a.y.max === b2.y.max;
21266}
21267function aspectRatio(box) {
21268  return calcLength(box.x) / calcLength(box.y);
21269}
21270class NodeStack {
21271  constructor() {
21272    this.members = [];
21273  }
21274  add(node2) {
21275    addUniqueItem(this.members, node2);
21276    node2.scheduleRender();
21277  }
21278  remove(node2) {
21279    removeItem(this.members, node2);
21280    if (node2 === this.prevLead) {
21281      this.prevLead = void 0;
21282    }
21283    if (node2 === this.lead) {
21284      const prevLead = this.members[this.members.length - 1];
21285      if (prevLead) {
21286        this.promote(prevLead);
21287      }
21288    }
21289  }
21290  relegate(node2) {
21291    const indexOfNode = this.members.findIndex((member) => node2 === member);
21292    if (indexOfNode === 0)
21293      return false;
21294    let prevLead;
21295    for (let i = indexOfNode; i >= 0; i--) {
21296      const member = this.members[i];
21297      if (member.isPresent !== false) {
21298        prevLead = member;
21299        break;
21300      }
21301    }
21302    if (prevLead) {
21303      this.promote(prevLead);
21304      return true;
21305    } else {
21306      return false;
21307    }
21308  }
21309  promote(node2, preserveFollowOpacity) {
21310    var _a5;
21311    const prevLead = this.lead;
21312    if (node2 === prevLead)
21313      return;
21314    this.prevLead = prevLead;
21315    this.lead = node2;
21316    node2.show();
21317    if (prevLead) {
21318      prevLead.instance && prevLead.scheduleRender();
21319      node2.scheduleRender();
21320      node2.resumeFrom = prevLead;
21321      if (preserveFollowOpacity) {
21322        node2.resumeFrom.preserveOpacity = true;
21323      }
21324      if (prevLead.snapshot) {
21325        node2.snapshot = prevLead.snapshot;
21326        node2.snapshot.latestValues = prevLead.animationValues || prevLead.latestValues;
21327      }
21328      if ((_a5 = node2.root) === null || _a5 === void 0 ? void 0 : _a5.isUpdating) {
21329        node2.isLayoutDirty = true;
21330      }
21331      const { crossfade } = node2.options;
21332      if (crossfade === false) {
21333        prevLead.hide();
21334      }
21335    }
21336  }
21337  exitAnimationComplete() {
21338    this.members.forEach((node2) => {
21339      var _a5, _b3, _c2, _d2, _e2;
21340      (_b3 = (_a5 = node2.options).onExitComplete) === null || _b3 === void 0 ? void 0 : _b3.call(_a5);
21341      (_e2 = (_c2 = node2.resumingFrom) === null || _c2 === void 0 ? void 0 : (_d2 = _c2.options).onExitComplete) === null || _e2 === void 0 ? void 0 : _e2.call(_d2);
21342    });
21343  }
21344  scheduleRender() {
21345    this.members.forEach((node2) => {
21346      node2.instance && node2.scheduleRender(false);
21347    });
21348  }
21349  /**
21350   * Clear any leads that have been removed this render to prevent them from being
21351   * used in future animations and to prevent memory leaks
21352   */
21353  removeLeadSnapshot() {
21354    if (this.lead && this.lead.snapshot) {
21355      this.lead.snapshot = void 0;
21356    }
21357  }
21358}
21359function buildProjectionTransform(delta, treeScale, latestTransform) {
21360  let transform2 = "";
21361  const xTranslate = delta.x.translate / treeScale.x;
21362  const yTranslate = delta.y.translate / treeScale.y;
21363  if (xTranslate || yTranslate) {
21364    transform2 = `translate3d(${xTranslate}px, ${yTranslate}px, 0) `;
21365  }
21366  if (treeScale.x !== 1 || treeScale.y !== 1) {
21367    transform2 += `scale(${1 / treeScale.x}, ${1 / treeScale.y}) `;
21368  }
21369  if (latestTransform) {
21370    const { rotate, rotateX, rotateY } = latestTransform;
21371    if (rotate)
21372      transform2 += `rotate(${rotate}deg) `;
21373    if (rotateX)
21374      transform2 += `rotateX(${rotateX}deg) `;
21375    if (rotateY)
21376      transform2 += `rotateY(${rotateY}deg) `;
21377  }
21378  const elementScaleX = delta.x.scale * treeScale.x;
21379  const elementScaleY = delta.y.scale * treeScale.y;
21380  if (elementScaleX !== 1 || elementScaleY !== 1) {
21381    transform2 += `scale(${elementScaleX}, ${elementScaleY})`;
21382  }
21383  return transform2 || "none";
21384}
21385const compareByDepth = (a, b2) => a.depth - b2.depth;
21386class FlatTree {
21387  constructor() {
21388    this.children = [];
21389    this.isDirty = false;
21390  }
21391  add(child) {
21392    addUniqueItem(this.children, child);
21393    this.isDirty = true;
21394  }
21395  remove(child) {
21396    removeItem(this.children, child);
21397    this.isDirty = true;
21398  }
21399  forEach(callback) {
21400    this.isDirty && this.children.sort(compareByDepth);
21401    this.isDirty = false;
21402    this.children.forEach(callback);
21403  }
21404}
21405const transformAxes = ["", "X", "Y", "Z"];
21406const animationTarget = 1e3;
21407let id = 0;
21408function createProjectionNode({ attachResizeListener, defaultParent, measureScroll, checkIsScrollRoot, resetTransform }) {
21409  return class ProjectionNode {
21410    constructor(elementId, latestValues = {}, parent = defaultParent === null || defaultParent === void 0 ? void 0 : defaultParent()) {
21411      this.id = id++;
21412      this.animationId = 0;
21413      this.children = /* @__PURE__ */ new Set();
21414      this.options = {};
21415      this.isTreeAnimating = false;
21416      this.isAnimationBlocked = false;
21417      this.isLayoutDirty = false;
21418      this.isTransformDirty = false;
21419      this.isProjectionDirty = false;
21420      this.updateManuallyBlocked = false;
21421      this.updateBlockedByResize = false;
21422      this.isUpdating = false;
21423      this.isSVG = false;
21424      this.needsReset = false;
21425      this.shouldResetTransform = false;
21426      this.treeScale = { x: 1, y: 1 };
21427      this.eventHandlers = /* @__PURE__ */ new Map();
21428      this.potentialNodes = /* @__PURE__ */ new Map();
21429      this.checkUpdateFailed = () => {
21430        if (this.isUpdating) {
21431          this.isUpdating = false;
21432          this.clearAllSnapshots();
21433        }
21434      };
21435      this.updateProjection = () => {
21436        this.nodes.forEach(propagateDirtyNodes);
21437        this.nodes.forEach(resolveTargetDelta);
21438        this.nodes.forEach(calcProjection);
21439      };
21440      this.hasProjected = false;
21441      this.isVisible = true;
21442      this.animationProgress = 0;
21443      this.sharedNodes = /* @__PURE__ */ new Map();
21444      this.elementId = elementId;
21445      this.latestValues = latestValues;
21446      this.root = parent ? parent.root || parent : this;
21447      this.path = parent ? [...parent.path, parent] : [];
21448      this.parent = parent;
21449      this.depth = parent ? parent.depth + 1 : 0;
21450      elementId && this.root.registerPotentialNode(elementId, this);
21451      for (let i = 0; i < this.path.length; i++) {
21452        this.path[i].shouldResetTransform = true;
21453      }
21454      if (this.root === this)
21455        this.nodes = new FlatTree();
21456    }
21457    addEventListener(name2, handler) {
21458      if (!this.eventHandlers.has(name2)) {
21459        this.eventHandlers.set(name2, new SubscriptionManager());
21460      }
21461      return this.eventHandlers.get(name2).add(handler);
21462    }
21463    notifyListeners(name2, ...args) {
21464      const subscriptionManager = this.eventHandlers.get(name2);
21465      subscriptionManager === null || subscriptionManager === void 0 ? void 0 : subscriptionManager.notify(...args);
21466    }
21467    hasListeners(name2) {
21468      return this.eventHandlers.has(name2);
21469    }
21470    registerPotentialNode(elementId, node2) {
21471      this.potentialNodes.set(elementId, node2);
21472    }
21473    /**
21474     * Lifecycles
21475     */
21476    mount(instance, isLayoutDirty = false) {
21477      var _a5;
21478      if (this.instance)
21479        return;
21480      this.isSVG = instance instanceof SVGElement && instance.tagName !== "svg";
21481      this.instance = instance;
21482      const { layoutId, layout: layout2, visualElement } = this.options;
21483      if (visualElement && !visualElement.current) {
21484        visualElement.mount(instance);
21485      }
21486      this.root.nodes.add(this);
21487      (_a5 = this.parent) === null || _a5 === void 0 ? void 0 : _a5.children.add(this);
21488      this.elementId && this.root.potentialNodes.delete(this.elementId);
21489      if (isLayoutDirty && (layout2 || layoutId)) {
21490        this.isLayoutDirty = true;
21491      }
21492      if (attachResizeListener) {
21493        let cancelDelay;
21494        const resizeUnblockUpdate = () => this.root.updateBlockedByResize = false;
21495        attachResizeListener(instance, () => {
21496          this.root.updateBlockedByResize = true;
21497          cancelDelay && cancelDelay();
21498          cancelDelay = delay(resizeUnblockUpdate, 250);
21499          if (globalProjectionState.hasAnimatedSinceResize) {
21500            globalProjectionState.hasAnimatedSinceResize = false;
21501            this.nodes.forEach(finishAnimation);
21502          }
21503        });
21504      }
21505      if (layoutId) {
21506        this.root.registerSharedNode(layoutId, this);
21507      }
21508      if (this.options.animate !== false && visualElement && (layoutId || layout2)) {
21509        this.addEventListener("didUpdate", ({ delta, hasLayoutChanged, hasRelativeTargetChanged, layout: newLayout }) => {
21510          var _a6, _b3, _c2, _d2, _e2;
21511          if (this.isTreeAnimationBlocked()) {
21512            this.target = void 0;
21513            this.relativeTarget = void 0;
21514            return;
21515          }
21516          const layoutTransition = (_b3 = (_a6 = this.options.transition) !== null && _a6 !== void 0 ? _a6 : visualElement.getDefaultTransition()) !== null && _b3 !== void 0 ? _b3 : defaultLayoutTransition;
21517          const { onLayoutAnimationStart, onLayoutAnimationComplete } = visualElement.getProps();
21518          const targetChanged = !this.targetLayout || !boxEquals(this.targetLayout, newLayout) || hasRelativeTargetChanged;
21519          const hasOnlyRelativeTargetChanged = !hasLayoutChanged && hasRelativeTargetChanged;
21520          if (((_c2 = this.resumeFrom) === null || _c2 === void 0 ? void 0 : _c2.instance) || hasOnlyRelativeTargetChanged || hasLayoutChanged && (targetChanged || !this.currentAnimation)) {
21521            if (this.resumeFrom) {
21522              this.resumingFrom = this.resumeFrom;
21523              this.resumingFrom.resumingFrom = void 0;
21524            }
21525            this.setAnimationOrigin(delta, hasOnlyRelativeTargetChanged);
21526            const animationOptions = {
21527              ...getValueTransition(layoutTransition, "layout"),
21528              onPlay: onLayoutAnimationStart,
21529              onComplete: onLayoutAnimationComplete
21530            };
21531            if (visualElement.shouldReduceMotion) {
21532              animationOptions.delay = 0;
21533              animationOptions.type = false;
21534            }
21535            this.startAnimation(animationOptions);
21536          } else {
21537            if (!hasLayoutChanged && this.animationProgress === 0) {
21538              finishAnimation(this);
21539            }
21540            this.isLead() && ((_e2 = (_d2 = this.options).onExitComplete) === null || _e2 === void 0 ? void 0 : _e2.call(_d2));
21541          }
21542          this.targetLayout = newLayout;
21543        });
21544      }
21545    }
21546    unmount() {
21547      var _a5, _b3;
21548      this.options.layoutId && this.willUpdate();
21549      this.root.nodes.remove(this);
21550      (_a5 = this.getStack()) === null || _a5 === void 0 ? void 0 : _a5.remove(this);
21551      (_b3 = this.parent) === null || _b3 === void 0 ? void 0 : _b3.children.delete(this);
21552      this.instance = void 0;
21553      cancelSync.preRender(this.updateProjection);
21554    }
21555    // only on the root
21556    blockUpdate() {
21557      this.updateManuallyBlocked = true;
21558    }
21559    unblockUpdate() {
21560      this.updateManuallyBlocked = false;
21561    }
21562    isUpdateBlocked() {
21563      return this.updateManuallyBlocked || this.updateBlockedByResize;
21564    }
21565    isTreeAnimationBlocked() {
21566      var _a5;
21567      return this.isAnimationBlocked || ((_a5 = this.parent) === null || _a5 === void 0 ? void 0 : _a5.isTreeAnimationBlocked()) || false;
21568    }
21569    // Note: currently only running on root node
21570    startUpdate() {
21571      var _a5;
21572      if (this.isUpdateBlocked())
21573        return;
21574      this.isUpdating = true;
21575      (_a5 = this.nodes) === null || _a5 === void 0 ? void 0 : _a5.forEach(resetRotation);
21576      this.animationId++;
21577    }
21578    willUpdate(shouldNotifyListeners = true) {
21579      var _a5, _b3, _c2;
21580      if (this.root.isUpdateBlocked()) {
21581        (_b3 = (_a5 = this.options).onExitComplete) === null || _b3 === void 0 ? void 0 : _b3.call(_a5);
21582        return;
21583      }
21584      !this.root.isUpdating && this.root.startUpdate();
21585      if (this.isLayoutDirty)
21586        return;
21587      this.isLayoutDirty = true;
21588      for (let i = 0; i < this.path.length; i++) {
21589        const node2 = this.path[i];
21590        node2.shouldResetTransform = true;
21591        node2.updateScroll("snapshot");
21592      }
21593      const { layoutId, layout: layout2 } = this.options;
21594      if (layoutId === void 0 && !layout2)
21595        return;
21596      const transformTemplate2 = (_c2 = this.options.visualElement) === null || _c2 === void 0 ? void 0 : _c2.getProps().transformTemplate;
21597      this.prevTransformTemplateValue = transformTemplate2 === null || transformTemplate2 === void 0 ? void 0 : transformTemplate2(this.latestValues, "");
21598      this.updateSnapshot();
21599      shouldNotifyListeners && this.notifyListeners("willUpdate");
21600    }
21601    // Note: Currently only running on root node
21602    didUpdate() {
21603      const updateWasBlocked = this.isUpdateBlocked();
21604      if (updateWasBlocked) {
21605        this.unblockUpdate();
21606        this.clearAllSnapshots();
21607        this.nodes.forEach(clearMeasurements);
21608        return;
21609      }
21610      if (!this.isUpdating)
21611        return;
21612      this.isUpdating = false;
21613      if (this.potentialNodes.size) {
21614        this.potentialNodes.forEach(mountNodeEarly);
21615        this.potentialNodes.clear();
21616      }
21617      this.nodes.forEach(resetTransformStyle);
21618      this.nodes.forEach(updateLayout);
21619      this.nodes.forEach(notifyLayoutUpdate);
21620      this.clearAllSnapshots();
21621      flushSync.update();
21622      flushSync.preRender();
21623      flushSync.render();
21624    }
21625    clearAllSnapshots() {
21626      this.nodes.forEach(clearSnapshot);
21627      this.sharedNodes.forEach(removeLeadSnapshots);
21628    }
21629    scheduleUpdateProjection() {
21630      sync.preRender(this.updateProjection, false, true);
21631    }
21632    scheduleCheckAfterUnmount() {
21633      sync.postRender(() => {
21634        if (this.isLayoutDirty) {
21635          this.root.didUpdate();
21636        } else {
21637          this.root.checkUpdateFailed();
21638        }
21639      });
21640    }
21641    /**
21642     * Update measurements
21643     */
21644    updateSnapshot() {
21645      if (this.snapshot || !this.instance)
21646        return;
21647      this.snapshot = this.measure();
21648    }
21649    updateLayout() {
21650      var _a5;
21651      if (!this.instance)
21652        return;
21653      this.updateScroll();
21654      if (!(this.options.alwaysMeasureLayout && this.isLead()) && !this.isLayoutDirty) {
21655        return;
21656      }
21657      if (this.resumeFrom && !this.resumeFrom.instance) {
21658        for (let i = 0; i < this.path.length; i++) {
21659          const node2 = this.path[i];
21660          node2.updateScroll();
21661        }
21662      }
21663      const prevLayout = this.layout;
21664      this.layout = this.measure(false);
21665      this.layoutCorrected = createBox();
21666      this.isLayoutDirty = false;
21667      this.projectionDelta = void 0;
21668      this.notifyListeners("measure", this.layout.layoutBox);
21669      (_a5 = this.options.visualElement) === null || _a5 === void 0 ? void 0 : _a5.notify("LayoutMeasure", this.layout.layoutBox, prevLayout === null || prevLayout === void 0 ? void 0 : prevLayout.layoutBox);
21670    }
21671    updateScroll(phase = "measure") {
21672      let needsMeasurement = Boolean(this.options.layoutScroll && this.instance);
21673      if (this.scroll && this.scroll.animationId === this.root.animationId && this.scroll.phase === phase) {
21674        needsMeasurement = false;
21675      }
21676      if (needsMeasurement) {
21677        this.scroll = {
21678          animationId: this.root.animationId,
21679          phase,
21680          isRoot: checkIsScrollRoot(this.instance),
21681          offset: measureScroll(this.instance)
21682        };
21683      }
21684    }
21685    resetTransform() {
21686      var _a5;
21687      if (!resetTransform)
21688        return;
21689      const isResetRequested = this.isLayoutDirty || this.shouldResetTransform;
21690      const hasProjection = this.projectionDelta && !isDeltaZero(this.projectionDelta);
21691      const transformTemplate2 = (_a5 = this.options.visualElement) === null || _a5 === void 0 ? void 0 : _a5.getProps().transformTemplate;
21692      const transformTemplateValue = transformTemplate2 === null || transformTemplate2 === void 0 ? void 0 : transformTemplate2(this.latestValues, "");
21693      const transformTemplateHasChanged = transformTemplateValue !== this.prevTransformTemplateValue;
21694      if (isResetRequested && (hasProjection || hasTransform(this.latestValues) || transformTemplateHasChanged)) {
21695        resetTransform(this.instance, transformTemplateValue);
21696        this.shouldResetTransform = false;
21697        this.scheduleRender();
21698      }
21699    }
21700    measure(removeTransform = true) {
21701      const pageBox = this.measurePageBox();
21702      let layoutBox = this.removeElementScroll(pageBox);
21703      if (removeTransform) {
21704        layoutBox = this.removeTransform(layoutBox);
21705      }
21706      roundBox(layoutBox);
21707      return {
21708        animationId: this.root.animationId,
21709        measuredBox: pageBox,
21710        layoutBox,
21711        latestValues: {},
21712        source: this.id
21713      };
21714    }
21715    measurePageBox() {
21716      const { visualElement } = this.options;
21717      if (!visualElement)
21718        return createBox();
21719      const box = visualElement.measureViewportBox();
21720      const { scroll: scroll2 } = this.root;
21721      if (scroll2) {
21722        translateAxis(box.x, scroll2.offset.x);
21723        translateAxis(box.y, scroll2.offset.y);
21724      }
21725      return box;
21726    }
21727    removeElementScroll(box) {
21728      const boxWithoutScroll = createBox();
21729      copyBoxInto(boxWithoutScroll, box);
21730      for (let i = 0; i < this.path.length; i++) {
21731        const node2 = this.path[i];
21732        const { scroll: scroll2, options } = node2;
21733        if (node2 !== this.root && scroll2 && options.layoutScroll) {
21734          if (scroll2.isRoot) {
21735            copyBoxInto(boxWithoutScroll, box);
21736            const { scroll: rootScroll } = this.root;
21737            if (rootScroll) {
21738              translateAxis(boxWithoutScroll.x, -rootScroll.offset.x);
21739              translateAxis(boxWithoutScroll.y, -rootScroll.offset.y);
21740            }
21741          }
21742          translateAxis(boxWithoutScroll.x, scroll2.offset.x);
21743          translateAxis(boxWithoutScroll.y, scroll2.offset.y);
21744        }
21745      }
21746      return boxWithoutScroll;
21747    }
21748    applyTransform(box, transformOnly = false) {
21749      const withTransforms = createBox();
21750      copyBoxInto(withTransforms, box);
21751      for (let i = 0; i < this.path.length; i++) {
21752        const node2 = this.path[i];
21753        if (!transformOnly && node2.options.layoutScroll && node2.scroll && node2 !== node2.root) {
21754          transformBox(withTransforms, {
21755            x: -node2.scroll.offset.x,
21756            y: -node2.scroll.offset.y
21757          });
21758        }
21759        if (!hasTransform(node2.latestValues))
21760          continue;
21761        transformBox(withTransforms, node2.latestValues);
21762      }
21763      if (hasTransform(this.latestValues)) {
21764        transformBox(withTransforms, this.latestValues);
21765      }
21766      return withTransforms;
21767    }
21768    removeTransform(box) {
21769      var _a5;
21770      const boxWithoutTransform = createBox();
21771      copyBoxInto(boxWithoutTransform, box);
21772      for (let i = 0; i < this.path.length; i++) {
21773        const node2 = this.path[i];
21774        if (!node2.instance)
21775          continue;
21776        if (!hasTransform(node2.latestValues))
21777          continue;
21778        hasScale(node2.latestValues) && node2.updateSnapshot();
21779        const sourceBox = createBox();
21780        const nodeBox = node2.measurePageBox();
21781        copyBoxInto(sourceBox, nodeBox);
21782        removeBoxTransforms(boxWithoutTransform, node2.latestValues, (_a5 = node2.snapshot) === null || _a5 === void 0 ? void 0 : _a5.layoutBox, sourceBox);
21783      }
21784      if (hasTransform(this.latestValues)) {
21785        removeBoxTransforms(boxWithoutTransform, this.latestValues);
21786      }
21787      return boxWithoutTransform;
21788    }
21789    /**
21790     *
21791     */
21792    setTargetDelta(delta) {
21793      this.targetDelta = delta;
21794      this.isProjectionDirty = true;
21795      this.root.scheduleUpdateProjection();
21796    }
21797    setOptions(options) {
21798      this.options = {
21799        ...this.options,
21800        ...options,
21801        crossfade: options.crossfade !== void 0 ? options.crossfade : true
21802      };
21803    }
21804    clearMeasurements() {
21805      this.scroll = void 0;
21806      this.layout = void 0;
21807      this.snapshot = void 0;
21808      this.prevTransformTemplateValue = void 0;
21809      this.targetDelta = void 0;
21810      this.target = void 0;
21811      this.isLayoutDirty = false;
21812    }
21813    /**
21814     * Frame calculations
21815     */
21816    resolveTargetDelta() {
21817      var _a5;
21818      const lead = this.getLead();
21819      this.isProjectionDirty || (this.isProjectionDirty = lead.isProjectionDirty);
21820      this.isTransformDirty || (this.isTransformDirty = lead.isTransformDirty);
21821      if (!this.isProjectionDirty && !this.attemptToResolveRelativeTarget)
21822        return;
21823      const { layout: layout2, layoutId } = this.options;
21824      if (!this.layout || !(layout2 || layoutId))
21825        return;
21826      if (!this.targetDelta && !this.relativeTarget) {
21827        const relativeParent = this.getClosestProjectingParent();
21828        if (relativeParent && relativeParent.layout) {
21829          this.relativeParent = relativeParent;
21830          this.relativeTarget = createBox();
21831          this.relativeTargetOrigin = createBox();
21832          calcRelativePosition(this.relativeTargetOrigin, this.layout.layoutBox, relativeParent.layout.layoutBox);
21833          copyBoxInto(this.relativeTarget, this.relativeTargetOrigin);
21834        } else {
21835          this.relativeParent = this.relativeTarget = void 0;
21836        }
21837      }
21838      if (!this.relativeTarget && !this.targetDelta)
21839        return;
21840      if (!this.target) {
21841        this.target = createBox();
21842        this.targetWithTransforms = createBox();
21843      }
21844      if (this.relativeTarget && this.relativeTargetOrigin && ((_a5 = this.relativeParent) === null || _a5 === void 0 ? void 0 : _a5.target)) {
21845        calcRelativeBox(this.target, this.relativeTarget, this.relativeParent.target);
21846      } else if (this.targetDelta) {
21847        if (Boolean(this.resumingFrom)) {
21848          this.target = this.applyTransform(this.layout.layoutBox);
21849        } else {
21850          copyBoxInto(this.target, this.layout.layoutBox);
21851        }
21852        applyBoxDelta(this.target, this.targetDelta);
21853      } else {
21854        copyBoxInto(this.target, this.layout.layoutBox);
21855      }
21856      if (this.attemptToResolveRelativeTarget) {
21857        this.attemptToResolveRelativeTarget = false;
21858        const relativeParent = this.getClosestProjectingParent();
21859        if (relativeParent && Boolean(relativeParent.resumingFrom) === Boolean(this.resumingFrom) && !relativeParent.options.layoutScroll && relativeParent.target) {
21860          this.relativeParent = relativeParent;
21861          this.relativeTarget = createBox();
21862          this.relativeTargetOrigin = createBox();
21863          calcRelativePosition(this.relativeTargetOrigin, this.target, relativeParent.target);
21864          copyBoxInto(this.relativeTarget, this.relativeTargetOrigin);
21865        } else {
21866          this.relativeParent = this.relativeTarget = void 0;
21867        }
21868      }
21869    }
21870    getClosestProjectingParent() {
21871      if (!this.parent || hasScale(this.parent.latestValues) || has2DTranslate(this.parent.latestValues))
21872        return void 0;
21873      if ((this.parent.relativeTarget || this.parent.targetDelta) && this.parent.layout) {
21874        return this.parent;
21875      } else {
21876        return this.parent.getClosestProjectingParent();
21877      }
21878    }
21879    calcProjection() {
21880      var _a5;
21881      const { isProjectionDirty, isTransformDirty } = this;
21882      this.isProjectionDirty = this.isTransformDirty = false;
21883      const lead = this.getLead();
21884      const isShared = Boolean(this.resumingFrom) || this !== lead;
21885      let canSkip = true;
21886      if (isProjectionDirty)
21887        canSkip = false;
21888      if (isShared && isTransformDirty)
21889        canSkip = false;
21890      if (canSkip)
21891        return;
21892      const { layout: layout2, layoutId } = this.options;
21893      this.isTreeAnimating = Boolean(((_a5 = this.parent) === null || _a5 === void 0 ? void 0 : _a5.isTreeAnimating) || this.currentAnimation || this.pendingAnimation);
21894      if (!this.isTreeAnimating) {
21895        this.targetDelta = this.relativeTarget = void 0;
21896      }
21897      if (!this.layout || !(layout2 || layoutId))
21898        return;
21899      copyBoxInto(this.layoutCorrected, this.layout.layoutBox);
21900      applyTreeDeltas(this.layoutCorrected, this.treeScale, this.path, isShared);
21901      const { target } = lead;
21902      if (!target)
21903        return;
21904      if (!this.projectionDelta) {
21905        this.projectionDelta = createDelta();
21906        this.projectionDeltaWithTransform = createDelta();
21907      }
21908      const prevTreeScaleX = this.treeScale.x;
21909      const prevTreeScaleY = this.treeScale.y;
21910      const prevProjectionTransform = this.projectionTransform;
21911      calcBoxDelta(this.projectionDelta, this.layoutCorrected, target, this.latestValues);
21912      this.projectionTransform = buildProjectionTransform(this.projectionDelta, this.treeScale);
21913      if (this.projectionTransform !== prevProjectionTransform || this.treeScale.x !== prevTreeScaleX || this.treeScale.y !== prevTreeScaleY) {
21914        this.hasProjected = true;
21915        this.scheduleRender();
21916        this.notifyListeners("projectionUpdate", target);
21917      }
21918    }
21919    hide() {
21920      this.isVisible = false;
21921    }
21922    show() {
21923      this.isVisible = true;
21924    }
21925    scheduleRender(notifyAll = true) {
21926      var _a5, _b3, _c2;
21927      (_b3 = (_a5 = this.options).scheduleRender) === null || _b3 === void 0 ? void 0 : _b3.call(_a5);
21928      notifyAll && ((_c2 = this.getStack()) === null || _c2 === void 0 ? void 0 : _c2.scheduleRender());
21929      if (this.resumingFrom && !this.resumingFrom.instance) {
21930        this.resumingFrom = void 0;
21931      }
21932    }
21933    setAnimationOrigin(delta, hasOnlyRelativeTargetChanged = false) {
21934      var _a5, _b3;
21935      const snapshot = this.snapshot;
21936      const snapshotLatestValues = (snapshot === null || snapshot === void 0 ? void 0 : snapshot.latestValues) || {};
21937      const mixedValues = { ...this.latestValues };
21938      const targetDelta = createDelta();
21939      this.relativeTarget = this.relativeTargetOrigin = void 0;
21940      this.attemptToResolveRelativeTarget = !hasOnlyRelativeTargetChanged;
21941      const relativeLayout = createBox();
21942      const isSharedLayoutAnimation = (snapshot === null || snapshot === void 0 ? void 0 : snapshot.source) !== ((_a5 = this.layout) === null || _a5 === void 0 ? void 0 : _a5.source);
21943      const isOnlyMember = (((_b3 = this.getStack()) === null || _b3 === void 0 ? void 0 : _b3.members.length) || 0) <= 1;
21944      const shouldCrossfadeOpacity = Boolean(isSharedLayoutAnimation && !isOnlyMember && this.options.crossfade === true && !this.path.some(hasOpacityCrossfade));
21945      this.animationProgress = 0;
21946      this.mixTargetDelta = (latest) => {
21947        var _a6;
21948        const progress2 = latest / 1e3;
21949        mixAxisDelta(targetDelta.x, delta.x, progress2);
21950        mixAxisDelta(targetDelta.y, delta.y, progress2);
21951        this.setTargetDelta(targetDelta);
21952        if (this.relativeTarget && this.relativeTargetOrigin && this.layout && ((_a6 = this.relativeParent) === null || _a6 === void 0 ? void 0 : _a6.layout)) {
21953          calcRelativePosition(relativeLayout, this.layout.layoutBox, this.relativeParent.layout.layoutBox);
21954          mixBox(this.relativeTarget, this.relativeTargetOrigin, relativeLayout, progress2);
21955        }
21956        if (isSharedLayoutAnimation) {
21957          this.animationValues = mixedValues;
21958          mixValues(mixedValues, snapshotLatestValues, this.latestValues, progress2, shouldCrossfadeOpacity, isOnlyMember);
21959        }
21960        this.root.scheduleUpdateProjection();
21961        this.scheduleRender();
21962        this.animationProgress = progress2;
21963      };
21964      this.mixTargetDelta(0);
21965    }
21966    startAnimation(options) {
21967      var _a5, _b3;
21968      this.notifyListeners("animationStart");
21969      (_a5 = this.currentAnimation) === null || _a5 === void 0 ? void 0 : _a5.stop();
21970      if (this.resumingFrom) {
21971        (_b3 = this.resumingFrom.currentAnimation) === null || _b3 === void 0 ? void 0 : _b3.stop();
21972      }
21973      if (this.pendingAnimation) {
21974        cancelSync.update(this.pendingAnimation);
21975        this.pendingAnimation = void 0;
21976      }
21977      this.pendingAnimation = sync.update(() => {
21978        globalProjectionState.hasAnimatedSinceResize = true;
21979        this.currentAnimation = animate(0, animationTarget, {
21980          ...options,
21981          onUpdate: (latest) => {
21982            var _a6;
21983            this.mixTargetDelta(latest);
21984            (_a6 = options.onUpdate) === null || _a6 === void 0 ? void 0 : _a6.call(options, latest);
21985          },
21986          onComplete: () => {
21987            var _a6;
21988            (_a6 = options.onComplete) === null || _a6 === void 0 ? void 0 : _a6.call(options);
21989            this.completeAnimation();
21990          }
21991        });
21992        if (this.resumingFrom) {
21993          this.resumingFrom.currentAnimation = this.currentAnimation;
21994        }
21995        this.pendingAnimation = void 0;
21996      });
21997    }
21998    completeAnimation() {
21999      var _a5;
22000      if (this.resumingFrom) {
22001        this.resumingFrom.currentAnimation = void 0;
22002        this.resumingFrom.preserveOpacity = void 0;
22003      }
22004      (_a5 = this.getStack()) === null || _a5 === void 0 ? void 0 : _a5.exitAnimationComplete();
22005      this.resumingFrom = this.currentAnimation = this.animationValues = void 0;
22006      this.notifyListeners("animationComplete");
22007    }
22008    finishAnimation() {
22009      var _a5;
22010      if (this.currentAnimation) {
22011        (_a5 = this.mixTargetDelta) === null || _a5 === void 0 ? void 0 : _a5.call(this, animationTarget);
22012        this.currentAnimation.stop();
22013      }
22014      this.completeAnimation();
22015    }
22016    applyTransformsToTarget() {
22017      const lead = this.getLead();
22018      let { targetWithTransforms, target, layout: layout2, latestValues } = lead;
22019      if (!targetWithTransforms || !target || !layout2)
22020        return;
22021      if (this !== lead && this.layout && layout2 && shouldAnimatePositionOnly(this.options.animationType, this.layout.layoutBox, layout2.layoutBox)) {
22022        target = this.target || createBox();
22023        const xLength = calcLength(this.layout.layoutBox.x);
22024        target.x.min = lead.target.x.min;
22025        target.x.max = target.x.min + xLength;
22026        const yLength = calcLength(this.layout.layoutBox.y);
22027        target.y.min = lead.target.y.min;
22028        target.y.max = target.y.min + yLength;
22029      }
22030      copyBoxInto(targetWithTransforms, target);
22031      transformBox(targetWithTransforms, latestValues);
22032      calcBoxDelta(this.projectionDeltaWithTransform, this.layoutCorrected, targetWithTransforms, latestValues);
22033    }
22034    registerSharedNode(layoutId, node2) {
22035      var _a5, _b3, _c2;
22036      if (!this.sharedNodes.has(layoutId)) {
22037        this.sharedNodes.set(layoutId, new NodeStack());
22038      }
22039      const stack = this.sharedNodes.get(layoutId);
22040      stack.add(node2);
22041      node2.promote({
22042        transition: (_a5 = node2.options.initialPromotionConfig) === null || _a5 === void 0 ? void 0 : _a5.transition,
22043        preserveFollowOpacity: (_c2 = (_b3 = node2.options.initialPromotionConfig) === null || _b3 === void 0 ? void 0 : _b3.shouldPreserveFollowOpacity) === null || _c2 === void 0 ? void 0 : _c2.call(_b3, node2)
22044      });
22045    }
22046    isLead() {
22047      const stack = this.getStack();
22048      return stack ? stack.lead === this : true;
22049    }
22050    getLead() {
22051      var _a5;
22052      const { layoutId } = this.options;
22053      return layoutId ? ((_a5 = this.getStack()) === null || _a5 === void 0 ? void 0 : _a5.lead) || this : this;
22054    }
22055    getPrevLead() {
22056      var _a5;
22057      const { layoutId } = this.options;
22058      return layoutId ? (_a5 = this.getStack()) === null || _a5 === void 0 ? void 0 : _a5.prevLead : void 0;
22059    }
22060    getStack() {
22061      const { layoutId } = this.options;
22062      if (layoutId)
22063        return this.root.sharedNodes.get(layoutId);
22064    }
22065    promote({ needsReset, transition: transition2, preserveFollowOpacity } = {}) {
22066      const stack = this.getStack();
22067      if (stack)
22068        stack.promote(this, preserveFollowOpacity);
22069      if (needsReset) {
22070        this.projectionDelta = void 0;
22071        this.needsReset = true;
22072      }
22073      if (transition2)
22074        this.setOptions({ transition: transition2 });
22075    }
22076    relegate() {
22077      const stack = this.getStack();
22078      if (stack) {
22079        return stack.relegate(this);
22080      } else {
22081        return false;
22082      }
22083    }
22084    resetRotation() {
22085      const { visualElement } = this.options;
22086      if (!visualElement)
22087        return;
22088      let hasRotate = false;
22089      const { latestValues } = visualElement;
22090      if (latestValues.rotate || latestValues.rotateX || latestValues.rotateY || latestValues.rotateZ) {
22091        hasRotate = true;
22092      }
22093      if (!hasRotate)
22094        return;
22095      const resetValues = {};
22096      for (let i = 0; i < transformAxes.length; i++) {
22097        const key = "rotate" + transformAxes[i];
22098        if (latestValues[key]) {
22099          resetValues[key] = latestValues[key];
22100          visualElement.setStaticValue(key, 0);
22101        }
22102      }
22103      visualElement === null || visualElement === void 0 ? void 0 : visualElement.render();
22104      for (const key in resetValues) {
22105        visualElement.setStaticValue(key, resetValues[key]);
22106      }
22107      visualElement.scheduleRender();
22108    }
22109    getProjectionStyles(styleProp = {}) {
22110      var _a5, _b3, _c2;
22111      const styles2 = {};
22112      if (!this.instance || this.isSVG)
22113        return styles2;
22114      if (!this.isVisible) {
22115        return { visibility: "hidden" };
22116      } else {
22117        styles2.visibility = "";
22118      }
22119      const transformTemplate2 = (_a5 = this.options.visualElement) === null || _a5 === void 0 ? void 0 : _a5.getProps().transformTemplate;
22120      if (this.needsReset) {
22121        this.needsReset = false;
22122        styles2.opacity = "";
22123        styles2.pointerEvents = resolveMotionValue(styleProp.pointerEvents) || "";
22124        styles2.transform = transformTemplate2 ? transformTemplate2(this.latestValues, "") : "none";
22125        return styles2;
22126      }
22127      const lead = this.getLead();
22128      if (!this.projectionDelta || !this.layout || !lead.target) {
22129        const emptyStyles = {};
22130        if (this.options.layoutId) {
22131          emptyStyles.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1;
22132          emptyStyles.pointerEvents = resolveMotionValue(styleProp.pointerEvents) || "";
22133        }
22134        if (this.hasProjected && !hasTransform(this.latestValues)) {
22135          emptyStyles.transform = transformTemplate2 ? transformTemplate2({}, "") : "none";
22136          this.hasProjected = false;
22137        }
22138        return emptyStyles;
22139      }
22140      const valuesToRender = lead.animationValues || lead.latestValues;
22141      this.applyTransformsToTarget();
22142      styles2.transform = buildProjectionTransform(this.projectionDeltaWithTransform, this.treeScale, valuesToRender);
22143      if (transformTemplate2) {
22144        styles2.transform = transformTemplate2(valuesToRender, styles2.transform);
22145      }
22146      const { x: x2, y: y2 } = this.projectionDelta;
22147      styles2.transformOrigin = `${x2.origin * 100}% ${y2.origin * 100}% 0`;
22148      if (lead.animationValues) {
22149        styles2.opacity = lead === this ? (_c2 = (_b3 = valuesToRender.opacity) !== null && _b3 !== void 0 ? _b3 : this.latestValues.opacity) !== null && _c2 !== void 0 ? _c2 : 1 : this.preserveOpacity ? this.latestValues.opacity : valuesToRender.opacityExit;
22150      } else {
22151        styles2.opacity = lead === this ? valuesToRender.opacity !== void 0 ? valuesToRender.opacity : "" : valuesToRender.opacityExit !== void 0 ? valuesToRender.opacityExit : 0;
22152      }
22153      for (const key in scaleCorrectors) {
22154        if (valuesToRender[key] === void 0)
22155          continue;
22156        const { correct, applyTo } = scaleCorrectors[key];
22157        const corrected = correct(valuesToRender[key], lead);
22158        if (applyTo) {
22159          const num = applyTo.length;
22160          for (let i = 0; i < num; i++) {
22161            styles2[applyTo[i]] = corrected;
22162          }
22163        } else {
22164          styles2[key] = corrected;
22165        }
22166      }
22167      if (this.options.layoutId) {
22168        styles2.pointerEvents = lead === this ? resolveMotionValue(styleProp.pointerEvents) || "" : "none";
22169      }
22170      return styles2;
22171    }
22172    clearSnapshot() {
22173      this.resumeFrom = this.snapshot = void 0;
22174    }
22175    // Only run on root
22176    resetTree() {
22177      this.root.nodes.forEach((node2) => {
22178        var _a5;
22179        return (_a5 = node2.currentAnimation) === null || _a5 === void 0 ? void 0 : _a5.stop();
22180      });
22181      this.root.nodes.forEach(clearMeasurements);
22182      this.root.sharedNodes.clear();
22183    }
22184  };
22185}
22186function updateLayout(node2) {
22187  node2.updateLayout();
22188}
22189function notifyLayoutUpdate(node2) {
22190  var _a5, _b3, _c2;
22191  const snapshot = ((_a5 = node2.resumeFrom) === null || _a5 === void 0 ? void 0 : _a5.snapshot) || node2.snapshot;
22192  if (node2.isLead() && node2.layout && snapshot && node2.hasListeners("didUpdate")) {
22193    const { layoutBox: layout2, measuredBox: measuredLayout } = node2.layout;
22194    const { animationType } = node2.options;
22195    const isShared = snapshot.source !== node2.layout.source;
22196    if (animationType === "size") {
22197      eachAxis((axis) => {
22198        const axisSnapshot = isShared ? snapshot.measuredBox[axis] : snapshot.layoutBox[axis];
22199        const length2 = calcLength(axisSnapshot);
22200        axisSnapshot.min = layout2[axis].min;
22201        axisSnapshot.max = axisSnapshot.min + length2;
22202      });
22203    } else if (shouldAnimatePositionOnly(animationType, snapshot.layoutBox, layout2)) {
22204      eachAxis((axis) => {
22205        const axisSnapshot = isShared ? snapshot.measuredBox[axis] : snapshot.layoutBox[axis];
22206        const length2 = calcLength(layout2[axis]);
22207        axisSnapshot.max = axisSnapshot.min + length2;
22208      });
22209    }
22210    const layoutDelta = createDelta();
22211    calcBoxDelta(layoutDelta, layout2, snapshot.layoutBox);
22212    const visualDelta = createDelta();
22213    if (isShared) {
22214      calcBoxDelta(visualDelta, node2.applyTransform(measuredLayout, true), snapshot.measuredBox);
22215    } else {
22216      calcBoxDelta(visualDelta, layout2, snapshot.layoutBox);
22217    }
22218    const hasLayoutChanged = !isDeltaZero(layoutDelta);
22219    let hasRelativeTargetChanged = false;
22220    if (!node2.resumeFrom) {
22221      const relativeParent = node2.getClosestProjectingParent();
22222      if (relativeParent && !relativeParent.resumeFrom) {
22223        const { snapshot: parentSnapshot, layout: parentLayout } = relativeParent;
22224        if (parentSnapshot && parentLayout) {
22225          const relativeSnapshot = createBox();
22226          calcRelativePosition(relativeSnapshot, snapshot.layoutBox, parentSnapshot.layoutBox);
22227          const relativeLayout = createBox();
22228          calcRelativePosition(relativeLayout, layout2, parentLayout.layoutBox);
22229          if (!boxEquals(relativeSnapshot, relativeLayout)) {
22230            hasRelativeTargetChanged = true;
22231          }
22232        }
22233      }
22234    }
22235    node2.notifyListeners("didUpdate", {
22236      layout: layout2,
22237      snapshot,
22238      delta: visualDelta,
22239      layoutDelta,
22240      hasLayoutChanged,
22241      hasRelativeTargetChanged
22242    });
22243  } else if (node2.isLead()) {
22244    (_c2 = (_b3 = node2.options).onExitComplete) === null || _c2 === void 0 ? void 0 : _c2.call(_b3);
22245  }
22246  node2.options.transition = void 0;
22247}
22248function propagateDirtyNodes(node2) {
22249  node2.isProjectionDirty || (node2.isProjectionDirty = Boolean(node2.parent && node2.parent.isProjectionDirty));
22250  node2.isTransformDirty || (node2.isTransformDirty = Boolean(node2.parent && node2.parent.isTransformDirty));
22251}
22252function clearSnapshot(node2) {
22253  node2.clearSnapshot();
22254}
22255function clearMeasurements(node2) {
22256  node2.clearMeasurements();
22257}
22258function resetTransformStyle(node2) {
22259  const { visualElement } = node2.options;
22260  if (visualElement === null || visualElement === void 0 ? void 0 : visualElement.getProps().onBeforeLayoutMeasure) {
22261    visualElement.notify("BeforeLayoutMeasure");
22262  }
22263  node2.resetTransform();
22264}
22265function finishAnimation(node2) {
22266  node2.finishAnimation();
22267  node2.targetDelta = node2.relativeTarget = node2.target = void 0;
22268}
22269function resolveTargetDelta(node2) {
22270  node2.resolveTargetDelta();
22271}
22272function calcProjection(node2) {
22273  node2.calcProjection();
22274}
22275function resetRotation(node2) {
22276  node2.resetRotation();
22277}
22278function removeLeadSnapshots(stack) {
22279  stack.removeLeadSnapshot();
22280}
22281function mixAxisDelta(output, delta, p2) {
22282  output.translate = mix(delta.translate, 0, p2);
22283  output.scale = mix(delta.scale, 1, p2);
22284  output.origin = delta.origin;
22285  output.originPoint = delta.originPoint;
22286}
22287function mixAxis(output, from2, to, p2) {
22288  output.min = mix(from2.min, to.min, p2);
22289  output.max = mix(from2.max, to.max, p2);
22290}
22291function mixBox(output, from2, to, p2) {
22292  mixAxis(output.x, from2.x, to.x, p2);
22293  mixAxis(output.y, from2.y, to.y, p2);
22294}
22295function hasOpacityCrossfade(node2) {
22296  return node2.animationValues && node2.animationValues.opacityExit !== void 0;
22297}
22298const defaultLayoutTransition = {
22299  duration: 0.45,
22300  ease: [0.4, 0, 0.1, 1]
22301};
22302function mountNodeEarly(node2, elementId) {
22303  let searchNode = node2.root;
22304  for (let i = node2.path.length - 1; i >= 0; i--) {
22305    if (Boolean(node2.path[i].instance)) {
22306      searchNode = node2.path[i];
22307      break;
22308    }
22309  }
22310  const searchElement = searchNode && searchNode !== node2.root ? searchNode.instance : document;
22311  const element = searchElement.querySelector(`[data-projection-id="${elementId}"]`);
22312  if (element)
22313    node2.mount(element, true);
22314}
22315function roundAxis(axis) {
22316  axis.min = Math.round(axis.min);
22317  axis.max = Math.round(axis.max);
22318}
22319function roundBox(box) {
22320  roundAxis(box.x);
22321  roundAxis(box.y);
22322}
22323function shouldAnimatePositionOnly(animationType, snapshot, layout2) {
22324  return animationType === "position" || animationType === "preserve-aspect" && !isNear(aspectRatio(snapshot), aspectRatio(layout2), 0.2);
22325}
22326const DocumentProjectionNode = createProjectionNode({
22327  attachResizeListener: (ref, notify) => addDomEvent(ref, "resize", notify),
22328  measureScroll: () => ({
22329    x: document.documentElement.scrollLeft || document.body.scrollLeft,
22330    y: document.documentElement.scrollTop || document.body.scrollTop
22331  }),
22332  checkIsScrollRoot: () => true
22333});
22334const rootProjectionNode = {
22335  current: void 0
22336};
22337const HTMLProjectionNode = createProjectionNode({
22338  measureScroll: (instance) => ({
22339    x: instance.scrollLeft,
22340    y: instance.scrollTop
22341  }),
22342  defaultParent: () => {
22343    if (!rootProjectionNode.current) {
22344      const documentNode = new DocumentProjectionNode(0, {});
22345      documentNode.mount(window);
22346      documentNode.setOptions({ layoutScroll: true });
22347      rootProjectionNode.current = documentNode;
22348    }
22349    return rootProjectionNode.current;
22350  },
22351  resetTransform: (instance, value) => {
22352    instance.style.transform = value !== void 0 ? value : "none";
22353  },
22354  checkIsScrollRoot: (instance) => Boolean(window.getComputedStyle(instance).position === "fixed")
22355});
22356const featureBundle = {
22357  ...animations,
22358  ...gestureAnimations,
22359  ...drag,
22360  ...layoutFeatures
22361};
22362const motion = /* @__PURE__ */ createMotionProxy((Component, config2) => createDomMotionConfig(Component, config2, featureBundle, createDomVisualElement, HTMLProjectionNode));
22363function useIsMounted() {
22364  const isMounted = reactExports.useRef(false);
22365  useIsomorphicLayoutEffect(() => {
22366    isMounted.current = true;
22367    return () => {
22368      isMounted.current = false;
22369    };
22370  }, []);
22371  return isMounted;
22372}
22373function useForceUpdate() {
22374  const isMounted = useIsMounted();
22375  const [forcedRenderCount, setForcedRenderCount] = reactExports.useState(0);
22376  const forceRender = reactExports.useCallback(() => {
22377    isMounted.current && setForcedRenderCount(forcedRenderCount + 1);
22378  }, [forcedRenderCount]);
22379  const deferredForceRender = reactExports.useCallback(() => sync.postRender(forceRender), [forceRender]);
22380  return [deferredForceRender, forcedRenderCount];
22381}
22382class PopChildMeasure extends reactExports.Component {
22383  getSnapshotBeforeUpdate(prevProps) {
22384    const element = this.props.childRef.current;
22385    if (element && prevProps.isPresent && !this.props.isPresent) {
22386      const size2 = this.props.sizeRef.current;
22387      size2.height = element.offsetHeight || 0;
22388      size2.width = element.offsetWidth || 0;
22389      size2.top = element.offsetTop;
22390      size2.left = element.offsetLeft;
22391    }
22392    return null;
22393  }
22394  /**
22395   * Required with getSnapshotBeforeUpdate to stop React complaining.
22396   */
22397  componentDidUpdate() {
22398  }
22399  render() {
22400    return this.props.children;
22401  }
22402}
22403function PopChild({ children, isPresent: isPresent2 }) {
22404  const id2 = reactExports.useId();
22405  const ref = reactExports.useRef(null);
22406  const size2 = reactExports.useRef({
22407    width: 0,
22408    height: 0,
22409    top: 0,
22410    left: 0
22411  });
22412  reactExports.useInsertionEffect(() => {
22413    const { width, height, top, left } = size2.current;
22414    if (isPresent2 || !ref.current || !width || !height)
22415      return;
22416    ref.current.dataset.motionPopId = id2;
22417    const style = document.createElement("style");
22418    document.head.appendChild(style);
22419    if (style.sheet) {
22420      style.sheet.insertRule(`
22421          [data-motion-pop-id="${id2}"] {
22422            position: absolute !important;
22423            width: ${width}px !important;
22424            height: ${height}px !important;
22425            top: ${top}px !important;
22426            left: ${left}px !important;
22427          }
22428        `);
22429    }
22430    return () => {
22431      document.head.removeChild(style);
22432    };
22433  }, [isPresent2]);
22434  return reactExports.createElement(PopChildMeasure, { isPresent: isPresent2, childRef: ref, sizeRef: size2 }, reactExports.cloneElement(children, { ref }));
22435}
22436const PresenceChild = ({ children, initial, isPresent: isPresent2, onExitComplete, custom, presenceAffectsLayout, mode: mode2 }) => {
22437  const presenceChildren = useConstant(newChildrenMap);
22438  const id2 = reactExports.useId();
22439  const context = reactExports.useMemo(
22440    () => ({
22441      id: id2,
22442      initial,
22443      isPresent: isPresent2,
22444      custom,
22445      onExitComplete: (childId) => {
22446        presenceChildren.set(childId, true);
22447        for (const isComplete of presenceChildren.values()) {
22448          if (!isComplete)
22449            return;
22450        }
22451        onExitComplete && onExitComplete();
22452      },
22453      register: (childId) => {
22454        presenceChildren.set(childId, false);
22455        return () => presenceChildren.delete(childId);
22456      }
22457    }),
22458    /**
22459     * If the presence of a child affects the layout of the components around it,
22460     * we want to make a new context value to ensure they get re-rendered
22461     * so they can detect that layout change.
22462     */
22463    presenceAffectsLayout ? void 0 : [isPresent2]
22464  );
22465  reactExports.useMemo(() => {
22466    presenceChildren.forEach((_, key) => presenceChildren.set(key, false));
22467  }, [isPresent2]);
22468  reactExports.useEffect(() => {
22469    !isPresent2 && !presenceChildren.size && onExitComplete && onExitComplete();
22470  }, [isPresent2]);
22471  if (mode2 === "popLayout") {
22472    children = reactExports.createElement(PopChild, { isPresent: isPresent2 }, children);
22473  }
22474  return reactExports.createElement(PresenceContext.Provider, { value: context }, children);
22475};
22476function newChildrenMap() {
22477  return /* @__PURE__ */ new Map();
22478}
22479const getChildKey = (child) => child.key || "";
22480function updateChildLookup(children, allChildren) {
22481  children.forEach((child) => {
22482    const key = getChildKey(child);
22483    allChildren.set(key, child);
22484  });
22485}
22486function onlyElements(children) {
22487  const filtered = [];
22488  reactExports.Children.forEach(children, (child) => {
22489    if (reactExports.isValidElement(child))
22490      filtered.push(child);
22491  });
22492  return filtered;
22493}
22494const AnimatePresence = ({ children, custom, initial = true, onExitComplete, exitBeforeEnter, presenceAffectsLayout = true, mode: mode2 = "sync" }) => {
22495  if (exitBeforeEnter) {
22496    mode2 = "wait";
22497    warnOnce(false, "Replace exitBeforeEnter with mode='wait'");
22498  }
22499  let [forceRender] = useForceUpdate();
22500  const forceRenderLayoutGroup = reactExports.useContext(LayoutGroupContext).forceRender;
22501  if (forceRenderLayoutGroup)
22502    forceRender = forceRenderLayoutGroup;
22503  const isMounted = useIsMounted();
22504  const filteredChildren = onlyElements(children);
22505  let childrenToRender = filteredChildren;
22506  const exiting = /* @__PURE__ */ new Set();
22507  const presentChildren = reactExports.useRef(childrenToRender);
22508  const allChildren = reactExports.useRef(/* @__PURE__ */ new Map()).current;
22509  const isInitialRender = reactExports.useRef(true);
22510  useIsomorphicLayoutEffect(() => {
22511    isInitialRender.current = false;
22512    updateChildLookup(filteredChildren, allChildren);
22513    presentChildren.current = childrenToRender;
22514  });
22515  useUnmountEffect(() => {
22516    isInitialRender.current = true;
22517    allChildren.clear();
22518    exiting.clear();
22519  });
22520  if (isInitialRender.current) {
22521    return reactExports.createElement(reactExports.Fragment, null, childrenToRender.map((child) => reactExports.createElement(PresenceChild, { key: getChildKey(child), isPresent: true, initial: initial ? void 0 : false, presenceAffectsLayout, mode: mode2 }, child)));
22522  }
22523  childrenToRender = [...childrenToRender];
22524  const presentKeys = presentChildren.current.map(getChildKey);
22525  const targetKeys = filteredChildren.map(getChildKey);
22526  const numPresent = presentKeys.length;
22527  for (let i = 0; i < numPresent; i++) {
22528    const key = presentKeys[i];
22529    if (targetKeys.indexOf(key) === -1) {
22530      exiting.add(key);
22531    }
22532  }
22533  if (mode2 === "wait" && exiting.size) {
22534    childrenToRender = [];
22535  }
22536  exiting.forEach((key) => {
22537    if (targetKeys.indexOf(key) !== -1)
22538      return;
22539    const child = allChildren.get(key);
22540    if (!child)
22541      return;
22542    const insertionIndex = presentKeys.indexOf(key);
22543    const onExit = () => {
22544      allChildren.delete(key);
22545      exiting.delete(key);
22546      const removeIndex = presentChildren.current.findIndex((presentChild) => presentChild.key === key);
22547      presentChildren.current.splice(removeIndex, 1);
22548      if (!exiting.size) {
22549        presentChildren.current = filteredChildren;
22550        if (isMounted.current === false)
22551          return;
22552        forceRender();
22553        onExitComplete && onExitComplete();
22554      }
22555    };
22556    childrenToRender.splice(insertionIndex, 0, reactExports.createElement(PresenceChild, { key: getChildKey(child), isPresent: false, onExitComplete: onExit, custom, presenceAffectsLayout, mode: mode2 }, child));
22557  });
22558  childrenToRender = childrenToRender.map((child) => {
22559    const key = child.key;
22560    return exiting.has(key) ? child : reactExports.createElement(PresenceChild, { key: getChildKey(child), isPresent: true, presenceAffectsLayout, mode: mode2 }, child);
22561  });
22562  if (env !== "production" && mode2 === "wait" && childrenToRender.length > 1) {
22563    console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);
22564  }
22565  return reactExports.createElement(reactExports.Fragment, null, exiting.size ? childrenToRender : childrenToRender.map((child) => reactExports.cloneElement(child)));
22566};
22567var toastMotionVariants = {
22568  initial: (props) => {
22569    const { position: position2 } = props;
22570    const dir = ["top", "bottom"].includes(position2) ? "y" : "x";
22571    let factor = ["top-right", "bottom-right"].includes(position2) ? 1 : -1;
22572    if (position2 === "bottom")
22573      factor = 1;
22574    return {
22575      opacity: 0,
22576      [dir]: factor * 24
22577    };
22578  },
22579  animate: {
22580    opacity: 1,
22581    y: 0,
22582    x: 0,
22583    scale: 1,
22584    transition: {
22585      duration: 0.4,
22586      ease: [0.4, 0, 0.2, 1]
22587    }
22588  },
22589  exit: {
22590    opacity: 0,
22591    scale: 0.85,
22592    transition: {
22593      duration: 0.2,
22594      ease: [0.4, 0, 1, 1]
22595    }
22596  }
22597};
22598var ToastComponent = reactExports.memo((props) => {
22599  const {
22600    id: id2,
22601    message,
22602    onCloseComplete,
22603    onRequestRemove,
22604    requestClose = false,
22605    position: position2 = "bottom",
22606    duration = 5e3,
22607    containerStyle,
22608    motionVariants = toastMotionVariants,
22609    toastSpacing = "0.5rem"
22610  } = props;
22611  const [delay2, setDelay] = reactExports.useState(duration);
22612  const isPresent2 = useIsPresent();
22613  useUpdateEffect(() => {
22614    if (!isPresent2) {
22615      onCloseComplete == null ? void 0 : onCloseComplete();
22616    }
22617  }, [isPresent2]);
22618  useUpdateEffect(() => {
22619    setDelay(duration);
22620  }, [duration]);
22621  const onMouseEnter = () => setDelay(null);
22622  const onMouseLeave = () => setDelay(duration);
22623  const close = () => {
22624    if (isPresent2)
22625      onRequestRemove();
22626  };
22627  reactExports.useEffect(() => {
22628    if (isPresent2 && requestClose) {
22629      onRequestRemove();
22630    }
22631  }, [isPresent2, requestClose, onRequestRemove]);
22632  useTimeout(close, delay2);
22633  const containerStyles = reactExports.useMemo(
22634    () => ({
22635      pointerEvents: "auto",
22636      maxWidth: 560,
22637      minWidth: 300,
22638      margin: toastSpacing,
22639      ...containerStyle
22640    }),
22641    [containerStyle, toastSpacing]
22642  );
22643  const toastStyle = reactExports.useMemo(() => getToastStyle(position2), [position2]);
22644  return /* @__PURE__ */ jsx(
22645    motion.li,
22646    {
22647      layout: true,
22648      className: "chakra-toast",
22649      variants: motionVariants,
22650      initial: "initial",
22651      animate: "animate",
22652      exit: "exit",
22653      onHoverStart: onMouseEnter,
22654      onHoverEnd: onMouseLeave,
22655      custom: { position: position2 },
22656      style: toastStyle,
22657      children: /* @__PURE__ */ jsx(
22658        chakra.div,
22659        {
22660          role: "status",
22661          "aria-atomic": "true",
22662          className: "chakra-toast__inner",
22663          __css: containerStyles,
22664          children: runIfFn$2(message, { id: id2, onClose: close })
22665        }
22666      )
22667    }
22668  );
22669});
22670ToastComponent.displayName = "ToastComponent";
22671var fallbackIcon = {
22672  path: /* @__PURE__ */ jsxs("g", { stroke: "currentColor", strokeWidth: "1.5", children: [
22673    /* @__PURE__ */ jsx(
22674      "path",
22675      {
22676        strokeLinecap: "round",
22677        fill: "none",
22678        d: "M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"
22679      }
22680    ),
22681    /* @__PURE__ */ jsx(
22682      "path",
22683      {
22684        fill: "currentColor",
22685        strokeLinecap: "round",
22686        d: "M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"
22687      }
22688    ),
22689    /* @__PURE__ */ jsx("circle", { fill: "none", strokeMiterlimit: "10", cx: "12", cy: "12", r: "11.25" })
22690  ] }),
22691  viewBox: "0 0 24 24"
22692};
22693var Icon = forwardRef((props, ref) => {
22694  const {
22695    as: element,
22696    viewBox,
22697    color: color2 = "currentColor",
22698    focusable = false,
22699    children,
22700    className,
22701    __css,
22702    ...rest
22703  } = props;
22704  const _className = cx("chakra-icon", className);
22705  const customStyles = useStyleConfig("Icon", props);
22706  const styles2 = {
22707    w: "1em",
22708    h: "1em",
22709    display: "inline-block",
22710    lineHeight: "1em",
22711    flexShrink: 0,
22712    color: color2,
22713    ...__css,
22714    ...customStyles
22715  };
22716  const shared = {
22717    ref,
22718    focusable,
22719    className: _className,
22720    __css: styles2
22721  };
22722  const _viewBox = viewBox != null ? viewBox : fallbackIcon.viewBox;
22723  if (element && typeof element !== "string") {
22724    return /* @__PURE__ */ jsx(chakra.svg, { as: element, ...shared, ...rest });
22725  }
22726  const _path = children != null ? children : fallbackIcon.path;
22727  return /* @__PURE__ */ jsx(chakra.svg, { verticalAlign: "middle", viewBox: _viewBox, ...shared, ...rest, children: _path });
22728});
22729Icon.displayName = "Icon";
22730function CheckIcon(props) {
22731  return /* @__PURE__ */ jsx(Icon, { viewBox: "0 0 24 24", ...props, children: /* @__PURE__ */ jsx(
22732    "path",
22733    {
22734      fill: "currentColor",
22735      d: "M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"
22736    }
22737  ) });
22738}
22739function InfoIcon(props) {
22740  return /* @__PURE__ */ jsx(Icon, { viewBox: "0 0 24 24", ...props, children: /* @__PURE__ */ jsx(
22741    "path",
22742    {
22743      fill: "currentColor",
22744      d: "M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"
22745    }
22746  ) });
22747}
22748function WarningIcon(props) {
22749  return /* @__PURE__ */ jsx(Icon, { viewBox: "0 0 24 24", ...props, children: /* @__PURE__ */ jsx(
22750    "path",
22751    {
22752      fill: "currentColor",
22753      d: "M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"
22754    }
22755  ) });
22756}
22757var spin = keyframes$1({
22758  "0%": {
22759    transform: "rotate(0deg)"
22760  },
22761  "100%": {
22762    transform: "rotate(360deg)"
22763  }
22764});
22765var Spinner = forwardRef((props, ref) => {
22766  const styles2 = useStyleConfig("Spinner", props);
22767  const {
22768    label = "Loading...",
22769    thickness = "2px",
22770    speed = "0.45s",
22771    emptyColor = "transparent",
22772    className,
22773    ...rest
22774  } = omitThemingProps(props);
22775  const _className = cx("chakra-spinner", className);
22776  const spinnerStyles = {
22777    display: "inline-block",
22778    borderColor: "currentColor",
22779    borderStyle: "solid",
22780    borderRadius: "99999px",
22781    borderWidth: thickness,
22782    borderBottomColor: emptyColor,
22783    borderLeftColor: emptyColor,
22784    animation: `${spin} ${speed} linear infinite`,
22785    ...styles2
22786  };
22787  return /* @__PURE__ */ jsx(
22788    chakra.div,
22789    {
22790      ref,
22791      __css: spinnerStyles,
22792      className: _className,
22793      ...rest,
22794      children: label && /* @__PURE__ */ jsx(chakra.span, { srOnly: true, children: label })
22795    }
22796  );
22797});
22798Spinner.displayName = "Spinner";
22799var [AlertProvider, useAlertContext] = createContext$1({
22800  name: "AlertContext",
22801  hookName: "useAlertContext",
22802  providerName: "<Alert />"
22803});
22804var [AlertStylesProvider, useAlertStyles] = createContext$1({
22805  name: `AlertStylesContext`,
22806  hookName: `useAlertStyles`,
22807  providerName: "<Alert />"
22808});
22809var STATUSES = {
22810  info: { icon: InfoIcon, colorScheme: "blue" },
22811  warning: { icon: WarningIcon, colorScheme: "orange" },
22812  success: { icon: CheckIcon, colorScheme: "green" },
22813  error: { icon: WarningIcon, colorScheme: "red" },
22814  loading: { icon: Spinner, colorScheme: "blue" }
22815};
22816function getStatusColorScheme(status) {
22817  return STATUSES[status].colorScheme;
22818}
22819function getStatusIcon(status) {
22820  return STATUSES[status].icon;
22821}
22822var AlertDescription = forwardRef(
22823  function AlertDescription2(props, ref) {
22824    const styles2 = useAlertStyles();
22825    const descriptionStyles = {
22826      display: "inline",
22827      ...styles2.description
22828    };
22829    return /* @__PURE__ */ jsx(
22830      chakra.div,
22831      {
22832        ref,
22833        ...props,
22834        className: cx("chakra-alert__desc", props.className),
22835        __css: descriptionStyles
22836      }
22837    );
22838  }
22839);
22840AlertDescription.displayName = "AlertDescription";
22841function AlertIcon(props) {
22842  const { status } = useAlertContext();
22843  const BaseIcon = getStatusIcon(status);
22844  const styles2 = useAlertStyles();
22845  const css2 = status === "loading" ? styles2.spinner : styles2.icon;
22846  return /* @__PURE__ */ jsx(
22847    chakra.span,
22848    {
22849      display: "inherit",
22850      ...props,
22851      className: cx("chakra-alert__icon", props.className),
22852      __css: css2,
22853      children: props.children || /* @__PURE__ */ jsx(BaseIcon, { h: "100%", w: "100%" })
22854    }
22855  );
22856}
22857AlertIcon.displayName = "AlertIcon";
22858var AlertTitle = forwardRef(
22859  function AlertTitle2(props, ref) {
22860    const styles2 = useAlertStyles();
22861    return /* @__PURE__ */ jsx(
22862      chakra.div,
22863      {
22864        ref,
22865        ...props,
22866        className: cx("chakra-alert__title", props.className),
22867        __css: styles2.title
22868      }
22869    );
22870  }
22871);
22872AlertTitle.displayName = "AlertTitle";
22873var Alert = forwardRef(function Alert2(props, ref) {
22874  var _a5;
22875  const { status = "info", addRole = true, ...rest } = omitThemingProps(props);
22876  const colorScheme = (_a5 = props.colorScheme) != null ? _a5 : getStatusColorScheme(status);
22877  const styles2 = useMultiStyleConfig("Alert", { ...props, colorScheme });
22878  const alertStyles = {
22879    width: "100%",
22880    display: "flex",
22881    alignItems: "center",
22882    position: "relative",
22883    overflow: "hidden",
22884    ...styles2.container
22885  };
22886  return /* @__PURE__ */ jsx(AlertProvider, { value: { status }, children: /* @__PURE__ */ jsx(AlertStylesProvider, { value: styles2, children: /* @__PURE__ */ jsx(
22887    chakra.div,
22888    {
22889      role: addRole ? "alert" : void 0,
22890      ref,
22891      ...rest,
22892      className: cx("chakra-alert", props.className),
22893      __css: alertStyles
22894    }
22895  ) }) });
22896});
22897Alert.displayName = "Alert";
22898function CloseIcon(props) {
22899  return /* @__PURE__ */ jsx(Icon, { focusable: "false", "aria-hidden": true, ...props, children: /* @__PURE__ */ jsx(
22900    "path",
22901    {
22902      fill: "currentColor",
22903      d: "M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,
2290311.823a.25.25,0,0,1,0,.354Z"
22904    }
22905  ) });
22906}
22907var CloseButton = forwardRef(
22908  function CloseButton2(props, ref) {
22909    const styles2 = useStyleConfig("CloseButton", props);
22910    const { children, isDisabled, __css, ...rest } = omitThemingProps(props);
22911    const baseStyle2 = {
22912      outline: 0,
22913      display: "flex",
22914      alignItems: "center",
22915      justifyContent: "center",
22916      flexShrink: 0
22917    };
22918    return /* @__PURE__ */ jsx(
22919      chakra.button,
22920      {
22921        type: "button",
22922        "aria-label": "Close",
22923        ref,
22924        disabled: isDisabled,
22925        __css: {
22926          ...baseStyle2,
22927          ...styles2,
22928          ...__css
22929        },
22930        ...rest,
22931        children: children || /* @__PURE__ */ jsx(CloseIcon, { width: "1em", height: "1em" })
22932      }
22933    );
22934  }
22935);
22936CloseButton.displayName = "CloseButton";
22937var initialState = {
22938  top: [],
22939  "top-left": [],
22940  "top-right": [],
22941  "bottom-left": [],
22942  bottom: [],
22943  "bottom-right": []
22944};
22945var toastStore = createStore(initialState);
22946function createStore(initialState2) {
22947  let state2 = initialState2;
22948  const listeners = /* @__PURE__ */ new Set();
22949  const setState = (setStateFn) => {
22950    state2 = setStateFn(state2);
22951    listeners.forEach((l2) => l2());
22952  };
22953  return {
22954    getState: () => state2,
22955    subscribe: (listener) => {
22956      listeners.add(listener);
22957      return () => {
22958        setState(() => initialState2);
22959        listeners.delete(listener);
22960      };
22961    },
22962    removeToast: (id2, position2) => {
22963      setState((prevState) => ({
22964        ...prevState,
22965        [position2]: prevState[position2].filter((toast) => toast.id != id2)
22966      }));
22967    },
22968    notify: (message, options) => {
22969      const toast = createToast(message, options);
22970      const { position: position2, id: id2 } = toast;
22971      setState((prevToasts) => {
22972        var _a5, _b3;
22973        const isTop = position2.includes("top");
22974        const toasts = isTop ? [toast, ...(_a5 = prevToasts[position2]) != null ? _a5 : []] : [...(_b3 = prevToasts[position2]) != null ? _b3 : [], toast];
22975        return {
22976          ...prevToasts,
22977          [position2]: toasts
22978        };
22979      });
22980      return id2;
22981    },
22982    update: (id2, options) => {
22983      if (!id2)
22984        return;
22985      setState((prevState) => {
22986        const nextState = { ...prevState };
22987        const { position: position2, index } = findToast(nextState, id2);
22988        if (position2 && index !== -1) {
22989          nextState[position2][index] = {
22990            ...nextState[position2][index],
22991            ...options,
22992            message: createRenderToast(options)
22993          };
22994        }
22995        return nextState;
22996      });
22997    },
22998    closeAll: ({ positions } = {}) => {
22999      setState((prev2) => {
23000        const allPositions = [
23001          "bottom",
23002          "bottom-right",
23003          "bottom-left",
23004          "top",
23005          "top-left",
23006          "top-right"
23007        ];
23008        const positionsToClose = positions != null ? positions : allPositions;
23009        return positionsToClose.reduce(
23010          (acc, position2) => {
23011            acc[position2] = prev2[position2].map((toast) => ({
23012              ...toast,
23013              requestClose: true
23014            }));
23015            return acc;
23016          },
23017          { ...prev2 }
23018        );
23019      });
23020    },
23021    close: (id2) => {
23022      setState((prevState) => {
23023        const position2 = getToastPosition(prevState, id2);
23024        if (!position2)
23025          return prevState;
23026        return {
23027          ...prevState,
23028          [position2]: prevState[position2].map((toast) => {
23029            if (toast.id == id2) {
23030              return {
23031                ...toast,
23032                requestClose: true
23033              };
23034            }
23035            return toast;
23036          })
23037        };
23038      });
23039    },
23040    isActive: (id2) => Boolean(findToast(toastStore.getState(), id2).position)
23041  };
23042}
23043var counter = 0;
23044function createToast(message, options = {}) {
23045  var _a5, _b3;
23046  counter += 1;
23047  const id2 = (_a5 = options.id) != null ? _a5 : counter;
23048  const position2 = (_b3 = options.position) != null ? _b3 : "bottom";
23049  return {
23050    id: id2,
23051    message,
23052    position: position2,
23053    duration: options.duration,
23054    onCloseComplete: options.onCloseComplete,
23055    onRequestRemove: () => toastStore.removeToast(String(id2), position2),
23056    status: options.status,
23057    requestClose: false,
23058    containerStyle: options.containerStyle
23059  };
23060}
23061var Toast = (props) => {
23062  const {
23063    status,
23064    variant = "solid",
23065    id: id2,
23066    title,
23067    isClosable,
23068    onClose,
23069    description,
23070    icon
23071  } = props;
23072  const ids = id2 ? {
23073    root: `toast-${id2}`,
23074    title: `toast-${id2}-title`,
23075    description: `toast-${id2}-description`
23076  } : void 0;
23077  return /* @__PURE__ */ jsxs(
23078    Alert,
23079    {
23080      addRole: false,
23081      status,
23082      variant,
23083      id: ids == null ? void 0 : ids.root,
23084      alignItems: "start",
23085      borderRadius: "md",
23086      boxShadow: "lg",
23087      paddingEnd: 8,
23088      textAlign: "start",
23089      width: "auto",
23090      children: [
23091        /* @__PURE__ */ jsx(AlertIcon, { children: icon }),
23092        /* @__PURE__ */ jsxs(chakra.div, { flex: "1", maxWidth: "100%", children: [
23093          title && /* @__PURE__ */ jsx(AlertTitle, { id: ids == null ? void 0 : ids.title, children: title }),
23094          description && /* @__PURE__ */ jsx(AlertDescription, { id: ids == null ? void 0 : ids.description, display: "block", children: description })
23095        ] }),
23096        isClosable && /* @__PURE__ */ jsx(
23097          CloseButton,
23098          {
23099            size: "sm",
23100            onClick: onClose,
23101            position: "absolute",
23102            insetEnd: 1,
23103            top: 1
23104          }
23105        )
23106      ]
23107    }
23108  );
23109};
23110function createRenderToast(options = {}) {
23111  const { render, toastComponent: ToastComponent2 = Toast } = options;
23112  const renderToast = (props) => {
23113    if (typeof render === "function") {
23114      return render({ ...props, ...options });
23115    }
23116    return /* @__PURE__ */ jsx(ToastComponent2, { ...props, ...options });
23117  };
23118  return renderToast;
23119}
23120var [ToastOptionProvider, useToastOptionContext] = createContext$1({
23121  name: `ToastOptionsContext`,
23122  strict: false
23123});
23124var ToastProvider = (props) => {
23125  const state2 = reactExports.useSyncExternalStore(
23126    toastStore.subscribe,
23127    toastStore.getState,
23128    toastStore.getState
23129  );
23130  const {
23131    motionVariants,
23132    component: Component = ToastComponent,
23133    portalProps
23134  } = props;
23135  const stateKeys = Object.keys(state2);
23136  const toastList = stateKeys.map((position2) => {
23137    const toasts = state2[position2];
23138    return /* @__PURE__ */ jsx(
23139      "ul",
23140      {
23141        role: "region",
23142        "aria-live": "polite",
23143        id: `chakra-toast-manager-${position2}`,
23144        style: getToastListStyle(position2),
23145        children: /* @__PURE__ */ jsx(AnimatePresence, { initial: false, children: toasts.map((toast) => /* @__PURE__ */ jsx(
23146          Component,
23147          {
23148            motionVariants,
23149            ...toast
23150          },
23151          toast.id
23152        )) })
23153      },
23154      position2
23155    );
23156  });
23157  return /* @__PURE__ */ jsx(Portal, { ...portalProps, children: toastList });
23158};
23159var createChakraProvider = (providerTheme) => {
23160  return function ChakraProvider2({
23161    children,
23162    theme: theme2 = providerTheme,
23163    toastOptions,
23164    ...restProps
23165  }) {
23166    return /* @__PURE__ */ jsxs(ChakraProvider$1, { theme: theme2, ...restProps, children: [
23167      /* @__PURE__ */ jsx(ToastOptionProvider, { value: toastOptions == null ? void 0 : toastOptions.defaultOptions, children }),
23168      /* @__PURE__ */ jsx(ToastProvider, { ...toastOptions })
23169    ] });
23170  };
23171};
23172var ChakraProvider = createChakraProvider(theme$1);
23173function assignRef(ref, value) {
23174  if (ref == null)
23175    return;
23176  if (typeof ref === "function") {
23177    ref(value);
23178    return;
23179  }
23180  try {
23181    ref.current = value;
23182  } catch (error) {
23183    throw new Error(`Cannot assign value '${value}' to ref '${ref}'`);
23184  }
23185}
23186function mergeRefs(...refs) {
23187  return (node2) => {
23188    refs.forEach((ref) => {
23189      assignRef(ref, node2);
23190    });
23191  };
23192}
23193function useMergeRefs(...refs) {
23194  return reactExports.useMemo(() => mergeRefs(...refs), refs);
23195}
23196var NativeImage = forwardRef(function NativeImage2(props, ref) {
23197  const { htmlWidth, htmlHeight, alt, ...rest } = props;
23198  return /* @__PURE__ */ jsx("img", { width: htmlWidth, height: htmlHeight, ref, alt, ...rest });
23199});
23200NativeImage.displayName = "NativeImage";
23201function useImage(props) {
23202  const {
23203    loading,
23204    src,
23205    srcSet,
23206    onLoad,
23207    onError,
23208    crossOrigin,
23209    sizes: sizes2,
23210    ignoreFallback
23211  } = props;
23212  const [status, setStatus] = reactExports.useState("pending");
23213  reactExports.useEffect(() => {
23214    setStatus(src ? "loading" : "pending");
23215  }, [src]);
23216  const imageRef = reactExports.useRef();
23217  const load = reactExports.useCallback(() => {
23218    if (!src)
23219      return;
23220    flush();
23221    const img = new Image();
23222    img.src = src;
23223    if (crossOrigin)
23224      img.crossOrigin = crossOrigin;
23225    if (srcSet)
23226      img.srcset = srcSet;
23227    if (sizes2)
23228      img.sizes = sizes2;
23229    if (loading)
23230      img.loading = loading;
23231    img.onload = (event) => {
23232      flush();
23233      setStatus("loaded");
23234      onLoad == null ? void 0 : onLoad(event);
23235    };
23236    img.onerror = (error) => {
23237      flush();
23238      setStatus("failed");
23239      onError == null ? void 0 : onError(error);
23240    };
23241    imageRef.current = img;
23242  }, [src, crossOrigin, srcSet, sizes2, onLoad, onError, loading]);
23243  const flush = () => {
23244    if (imageRef.current) {
23245      imageRef.current.onload = null;
23246      imageRef.current.onerror = null;
23247      imageRef.current = null;
23248    }
23249  };
23250  useSafeLayoutEffect(() => {
23251    if (ignoreFallback)
23252      return void 0;
23253    if (status === "loading") {
23254      load();
23255    }
23256    return () => {
23257      flush();
23258    };
23259  }, [status, load, ignoreFallback]);
23260  return ignoreFallback ? "loaded" : status;
23261}
23262var shouldShowFallbackImage = (status, fallbackStrategy) => status !== "loaded" && fallbackStrategy === "beforeLoadOrError" || status === "failed" && fallbackStrategy === "onError";
23263function omit(object, keysToOmit = []) {
23264  const clone = Object.assign({}, object);
23265  for (const key of keysToOmit) {
23266    if (key in clone) {
23267      delete clone[key];
23268    }
23269  }
23270  return clone;
23271}
23272var Image$1 = forwardRef(function Image2(props, ref) {
23273  const {
23274    fallbackSrc,
23275    fallback,
23276    src,
23277    srcSet,
23278    align,
23279    fit,
23280    loading,
23281    ignoreFallback,
23282    crossOrigin,
23283    fallbackStrategy = "beforeLoadOrError",
23284    referrerPolicy,
23285    ...rest
23286  } = props;
23287  const providedFallback = fallbackSrc !== void 0 || fallback !== void 0;
23288  const shouldIgnoreFallbackImage = loading != null || ignoreFallback || !providedFallback;
23289  const status = useImage({
23290    ...props,
23291    ignoreFallback: shouldIgnoreFallbackImage
23292  });
23293  const showFallbackImage = shouldShowFallbackImage(status, fallbackStrategy);
23294  const shared = {
23295    ref,
23296    objectFit: fit,
23297    objectPosition: align,
23298    ...shouldIgnoreFallbackImage ? rest : omit(rest, ["onError", "onLoad"])
23299  };
23300  if (showFallbackImage) {
23301    if (fallback)
23302      return fallback;
23303    return /* @__PURE__ */ jsx(
23304      chakra.img,
23305      {
23306        as: NativeImage,
23307        className: "chakra-image__placeholder",
23308        src: fallbackSrc,
23309        ...shared
23310      }
23311    );
23312  }
23313  return /* @__PURE__ */ jsx(
23314    chakra.img,
23315    {
23316      as: NativeImage,
23317      src,
23318      srcSet,
23319      crossOrigin,
23320      loading,
23321      referrerPolicy,
23322      className: "chakra-image",
23323      ...shared
23324    }
23325  );
23326});
23327Image$1.displayName = "Image";
23328var [ButtonGroupProvider, useButtonGroup] = createContext$1({
23329  strict: false,
23330  name: "ButtonGroupContext"
23331});
23332function useButtonType(value) {
23333  const [isButton, setIsButton] = reactExports.useState(!value);
23334  const refCallback = reactExports.useCallback((node2) => {
23335    if (!node2)
23336      return;
23337    setIsButton(node2.tagName === "BUTTON");
23338  }, []);
23339  const type = isButton ? "button" : void 0;
23340  return { ref: refCallback, type };
23341}
23342function ButtonIcon(props) {
23343  const { children, className, ...rest } = props;
23344  const _children = reactExports.isValidElement(children) ? reactExports.cloneElement(children, {
23345    "aria-hidden": true,
23346    focusable: false
23347  }) : children;
23348  const _className = cx("chakra-button__icon", className);
23349  return /* @__PURE__ */ jsx(
23350    chakra.span,
23351    {
23352      display: "inline-flex",
23353      alignSelf: "center",
23354      flexShrink: 0,
23355      ...rest,
23356      className: _className,
23357      children: _children
23358    }
23359  );
23360}
23361ButtonIcon.displayName = "ButtonIcon";
23362function ButtonSpinner(props) {
23363  const {
23364    label,
23365    placement,
23366    spacing: spacing2 = "0.5rem",
23367    children = /* @__PURE__ */ jsx(Spinner, { color: "currentColor", width: "1em", height: "1em" }),
23368    className,
23369    __css,
23370    ...rest
23371  } = props;
23372  const _className = cx("chakra-button__spinner", className);
23373  const marginProp = placement === "start" ? "marginEnd" : "marginStart";
23374  const spinnerStyles = reactExports.useMemo(
23375    () => ({
23376      display: "flex",
23377      alignItems: "center",
23378      position: label ? "relative" : "absolute",
23379      [marginProp]: label ? spacing2 : 0,
23380      fontSize: "1em",
23381      lineHeight: "normal",
23382      ...__css
23383    }),
23384    [__css, label, marginProp, spacing2]
23385  );
23386  return /* @__PURE__ */ jsx(chakra.div, { className: _className, ...rest, __css: spinnerStyles, children });
23387}
23388ButtonSpinner.displayName = "ButtonSpinner";
23389var Button = forwardRef((props, ref) => {
23390  const group = useButtonGroup();
23391  const styles2 = useStyleConfig("Button", { ...group, ...props });
23392  const {
23393    isDisabled = group == null ? void 0 : group.isDisabled,
23394    isLoading,
23395    isActive,
23396    children,
23397    leftIcon,
23398    rightIcon,
23399    loadingText,
23400    iconSpacing: iconSpacing2 = "0.5rem",
23401    type,
23402    spinner,
23403    spinnerPlacement = "start",
23404    className,
23405    as,
23406    ...rest
23407  } = omitThemingProps(props);
23408  const buttonStyles = reactExports.useMemo(() => {
23409    const _focus = { ...styles2 == null ? void 0 : styles2["_focus"], zIndex: 1 };
23410    return {
23411      display: "inline-flex",
23412      appearance: "none",
23413      alignItems: "center",
23414      justifyContent: "center",
23415      userSelect: "none",
23416      position: "relative",
23417      whiteSpace: "nowrap",
23418      verticalAlign: "middle",
23419      outline: "none",
23420      ...styles2,
23421      ...!!group && { _focus }
23422    };
23423  }, [styles2, group]);
23424  const { ref: _ref, type: defaultType } = useButtonType(as);
23425  const contentProps = { rightIcon, leftIcon, iconSpacing: iconSpacing2, children };
23426  return /* @__PURE__ */ jsxs(
23427    chakra.button,
23428    {
23429      ref: useMergeRefs(ref, _ref),
23430      as,
23431      type: type != null ? type : defaultType,
23432      "data-active": dataAttr(isActive),
23433      "data-loading": dataAttr(isLoading),
23434      __css: buttonStyles,
23435      className: cx("chakra-button", className),
23436      ...rest,
23437      disabled: isDisabled || isLoading,
23438      children: [
23439        isLoading && spinnerPlacement === "start" && /* @__PURE__ */ jsx(
23440          ButtonSpinner,
23441          {
23442            className: "chakra-button__spinner--start",
23443            label: loadingText,
23444            placement: "start",
23445            spacing: iconSpacing2,
23446            children: spinner
23447          }
23448        ),
23449        isLoading ? loadingText || /* @__PURE__ */ jsx(chakra.span, { opacity: 0, children: /* @__PURE__ */ jsx(ButtonContent, { ...contentProps }) }) : /* @__PURE__ */ jsx(ButtonContent, { ...contentProps }),
23450        isLoading && spinnerPlacement === "end" && /* @__PURE__ */ jsx(
23451          ButtonSpinner,
23452          {
23453            className: "chakra-button__spinner--end",
23454            label: loadingText,
23455            placement: "end",
23456            spacing: iconSpacing2,
23457            children: spinner
23458          }
23459        )
23460      ]
23461    }
23462  );
23463});
23464Button.displayName = "Button";
23465function ButtonContent(props) {
23466  const { leftIcon, rightIcon, children, iconSpacing: iconSpacing2 } = props;
23467  return /* @__PURE__ */ jsxs(Fragment, { children: [
23468    leftIcon && /* @__PURE__ */ jsx(ButtonIcon, { marginEnd: iconSpacing2, children: leftIcon }),
23469    children,
23470    rightIcon && /* @__PURE__ */ jsx(ButtonIcon, { marginStart: iconSpacing2, children: rightIcon })
23471  ] });
23472}
23473var IconButton = forwardRef(
23474  (props, ref) => {
23475    const { icon, children, isRound, "aria-label": ariaLabel, ...rest } = props;
23476    const element = icon || children;
23477    const _children = reactExports.isValidElement(element) ? reactExports.cloneElement(element, {
23478      "aria-hidden": true,
23479      focusable: false
23480    }) : null;
23481    return /* @__PURE__ */ jsx(
23482      Button,
23483      {
23484        padding: "0",
23485        borderRadius: isRound ? "full" : void 0,
23486        ref,
23487        "aria-label": ariaLabel,
23488        ...rest,
23489        children: _children
23490      }
23491    );
23492  }
23493);
23494IconButton.displayName = "IconButton";
23495var [FormControlStylesProvider, useFormControlStyles] = createContext$1({
23496  name: `FormControlStylesContext`,
23497  errorMessage: `useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "<FormControl />" `
23498});
23499var [FormControlProvider, useFormControlContext] = createContext$1({
23500  strict: false,
23501  name: "FormControlContext"
23502});
23503function useFormControlProvider(props) {
23504  const {
23505    id: idProp,
23506    isRequired,
23507    isInvalid,
23508    isDisabled,
23509    isReadOnly,
23510    ...htmlProps
23511  } = props;
23512  const uuid = reactExports.useId();
23513  const id2 = idProp || `field-${uuid}`;
23514  const labelId = `${id2}-label`;
23515  const feedbackId = `${id2}-feedback`;
23516  const helpTextId = `${id2}-helptext`;
23517  const [hasFeedbackText, setHasFeedbackText] = reactExports.useState(false);
23518  const [hasHelpText, setHasHelpText] = reactExports.useState(false);
23519  const [isFocused, setFocus] = reactExports.useState(false);
23520  const getHelpTextProps = reactExports.useCallback(
23521    (props2 = {}, forwardedRef = null) => ({
23522      id: helpTextId,
23523      ...props2,
23524      ref: mergeRefs(forwardedRef, (node2) => {
23525        if (!node2)
23526          return;
23527        setHasHelpText(true);
23528      })
23529    }),
23530    [helpTextId]
23531  );
23532  const getLabelProps = reactExports.useCallback(
23533    (props2 = {}, forwardedRef = null) => {
23534      var _a5, _b3;
23535      return {
23536        ...props2,
23537        ref: forwardedRef,
23538        "data-focus": dataAttr(isFocused),
23539        "data-disabled": dataAttr(isDisabled),
23540        "data-invalid": dataAttr(isInvalid),
23541        "data-readonly": dataAttr(isReadOnly),
23542        id: (_a5 = props2.id) != null ? _a5 : labelId,
23543        htmlFor: (_b3 = props2.htmlFor) != null ? _b3 : id2
23544      };
23545    },
23546    [id2, isDisabled, isFocused, isInvalid, isReadOnly, labelId]
23547  );
23548  const getErrorMessageProps = reactExports.useCallback(
23549    (props2 = {}, forwardedRef = null) => ({
23550      id: feedbackId,
23551      ...props2,
23552      ref: mergeRefs(forwardedRef, (node2) => {
23553        if (!node2)
23554          return;
23555        setHasFeedbackText(true);
23556      }),
23557      "aria-live": "polite"
23558    }),
23559    [feedbackId]
23560  );
23561  const getRootProps = reactExports.useCallback(
23562    (props2 = {}, forwardedRef = null) => ({
23563      ...props2,
23564      ...htmlProps,
23565      ref: forwardedRef,
23566      role: "group"
23567    }),
23568    [htmlProps]
23569  );
23570  const getRequiredIndicatorProps = reactExports.useCallback(
23571    (props2 = {}, forwardedRef = null) => ({
23572      ...props2,
23573      ref: forwardedRef,
23574      role: "presentation",
23575      "aria-hidden": true,
23576      children: props2.children || "*"
23577    }),
23578    []
23579  );
23580  return {
23581    isRequired: !!isRequired,
23582    isInvalid: !!isInvalid,
23583    isReadOnly: !!isReadOnly,
23584    isDisabled: !!isDisabled,
23585    isFocused: !!isFocused,
23586    onFocus: () => setFocus(true),
23587    onBlur: () => setFocus(false),
23588    hasFeedbackText,
23589    setHasFeedbackText,
23590    hasHelpText,
23591    setHasHelpText,
23592    id: id2,
23593    labelId,
23594    feedbackId,
23595    helpTextId,
23596    htmlProps,
23597    getHelpTextProps,
23598    getErrorMessageProps,
23599    getRootProps,
23600    getLabelProps,
23601    getRequiredIndicatorProps
23602  };
23603}
23604var FormControl = forwardRef(
23605  function FormControl2(props, ref) {
23606    const styles2 = useMultiStyleConfig("Form", props);
23607    const ownProps = omitThemingProps(props);
23608    const {
23609      getRootProps,
23610      htmlProps: _,
23611      ...context
23612    } = useFormControlProvider(ownProps);
23613    const className = cx("chakra-form-control", props.className);
23614    return /* @__PURE__ */ jsx(FormControlProvider, { value: context, children: /* @__PURE__ */ jsx(FormControlStylesProvider, { value: styles2, children: /* @__PURE__ */ jsx(
23615      chakra.div,
23616      {
23617        ...getRootProps({}, ref),
23618        className,
23619        __css: styles2["container"]
23620      }
23621    ) }) });
23622  }
23623);
23624FormControl.displayName = "FormControl";
23625var FormHelperText = forwardRef(
23626  function FormHelperText2(props, ref) {
23627    const field = useFormControlContext();
23628    const styles2 = useFormControlStyles();
23629    const className = cx("chakra-form__helper-text", props.className);
23630    return /* @__PURE__ */ jsx(
23631      chakra.div,
23632      {
23633        ...field == null ? void 0 : field.getHelpTextProps(props, ref),
23634        __css: styles2.helperText,
23635        className
23636      }
23637    );
23638  }
23639);
23640FormHelperText.displayName = "FormHelperText";
23641var FormLabel = forwardRef(function FormLabel2(passedProps, ref) {
23642  var _a5;
23643  const styles2 = useStyleConfig("FormLabel", passedProps);
23644  const props = omitThemingProps(passedProps);
23645  const {
23646    className,
23647    children,
23648    requiredIndicator = /* @__PURE__ */ jsx(RequiredIndicator, {}),
23649    optionalIndicator = null,
23650    ...rest
23651  } = props;
23652  const field = useFormControlContext();
23653  const ownProps = (_a5 = field == null ? void 0 : field.getLabelProps(rest, ref)) != null ? _a5 : { ref, ...rest };
23654  return /* @__PURE__ */ jsxs(
23655    chakra.label,
23656    {
23657      ...ownProps,
23658      className: cx("chakra-form__label", props.className),
23659      __css: {
23660        display: "block",
23661        textAlign: "start",
23662        ...styles2
23663      },
23664      children: [
23665        children,
23666        (field == null ? void 0 : field.isRequired) ? requiredIndicator : optionalIndicator
23667      ]
23668    }
23669  );
23670});
23671FormLabel.displayName = "FormLabel";
23672var RequiredIndicator = forwardRef(
23673  function RequiredIndicator2(props, ref) {
23674    const field = useFormControlContext();
23675    const styles2 = useFormControlStyles();
23676    if (!(field == null ? void 0 : field.isRequired))
23677      return null;
23678    const className = cx("chakra-form__required-indicator", props.className);
23679    return /* @__PURE__ */ jsx(
23680      chakra.span,
23681      {
23682        ...field == null ? void 0 : field.getRequiredIndicatorProps(props, ref),
23683        __css: styles2.requiredIndicator,
23684        className
23685      }
23686    );
23687  }
23688);
23689RequiredIndicator.displayName = "RequiredIndicator";
23690function useFormControl(props) {
23691  const { isDisabled, isInvalid, isReadOnly, isRequired, ...rest } = useFormControlProps(props);
23692  return {
23693    ...rest,
23694    disabled: isDisabled,
23695    readOnly: isReadOnly,
23696    required: isRequired,
23697    "aria-invalid": ariaAttr(isInvalid),
23698    "aria-required": ariaAttr(isRequired),
23699    "aria-readonly": ariaAttr(isReadOnly)
23700  };
23701}
23702function useFormControlProps(props) {
23703  var _a5, _b3, _c2;
23704  const field = useFormControlContext();
23705  const {
23706    id: id2,
23707    disabled,
23708    readOnly,
23709    required,
23710    isRequired,
23711    isInvalid,
23712    isReadOnly,
23713    isDisabled,
23714    onFocus,
23715    onBlur,
23716    ...rest
23717  } = props;
23718  const labelIds = props["aria-describedby"] ? [props["aria-describedby"]] : [];
23719  if ((field == null ? void 0 : field.hasFeedbackText) && (field == null ? void 0 : field.isInvalid)) {
23720    labelIds.push(field.feedbackId);
23721  }
23722  if (field == null ? void 0 : field.hasHelpText) {
23723    labelIds.push(field.helpTextId);
23724  }
23725  return {
23726    ...rest,
23727    "aria-describedby": labelIds.join(" ") || void 0,
23728    id: id2 != null ? id2 : field == null ? void 0 : field.id,
23729    isDisabled: (_a5 = disabled != null ? disabled : isDisabled) != null ? _a5 : field == null ? void 0 : field.isDisabled,
23730    isReadOnly: (_b3 = readOnly != null ? readOnly : isReadOnly) != null ? _b3 : field == null ? void 0 : field.isReadOnly,
23731    isRequired: (_c2 = required != null ? required : isRequired) != null ? _c2 : field == null ? void 0 : field.isRequired,
23732    isInvalid: isInvalid != null ? isInvalid : field == null ? void 0 : field.isInvalid,
23733    onFocus: callAllHandlers(field == null ? void 0 : field.onFocus, onFocus),
23734    onBlur: callAllHandlers(field == null ? void 0 : field.onBlur, onBlur)
23735  };
23736}
23737var Input = forwardRef(function Input2(props, ref) {
23738  const { htmlSize, ...rest } = props;
23739  const styles2 = useMultiStyleConfig("Input", rest);
23740  const ownProps = omitThemingProps(rest);
23741  const input = useFormControl(ownProps);
23742  const _className = cx("chakra-input", props.className);
23743  return /* @__PURE__ */ jsx(
23744    chakra.input,
23745    {
23746      size: htmlSize,
23747      ...input,
23748      __css: styles2.field,
23749      ref,
23750      className: _className
23751    }
23752  );
23753});
23754Input.displayName = "Input";
23755Input.id = "Input";
23756var Grid = forwardRef(function Grid2(props, ref) {
23757  const {
23758    templateAreas,
23759    gap,
23760    rowGap,
23761    columnGap,
23762    column: column2,
23763    row,
23764    autoFlow,
23765    autoRows,
23766    templateRows,
23767    autoColumns,
23768    templateColumns,
23769    ...rest
23770  } = props;
23771  const styles2 = {
23772    display: "grid",
23773    gridTemplateAreas: templateAreas,
23774    gridGap: gap,
23775    gridRowGap: rowGap,
23776    gridColumnGap: columnGap,
23777    gridAutoColumns: autoColumns,
23778    gridColumn: column2,
23779    gridRow: row,
23780    gridAutoFlow: autoFlow,
23781    gridAutoRows: autoRows,
23782    gridTemplateRows: templateRows,
23783    gridTemplateColumns: templateColumns
23784  };
23785  return /* @__PURE__ */ jsx(chakra.div, { ref, __css: styles2, ...rest });
23786});
23787Grid.displayName = "Grid";
23788var Text = forwardRef(function Text2(props, ref) {
23789  const styles2 = useStyleConfig("Text", props);
23790  const { className, align, decoration, casing, ...rest } = omitThemingProps(props);
23791  const aliasedProps = compact({
23792    textAlign: props.align,
23793    textDecoration: props.decoration,
23794    textTransform: props.casing
23795  });
23796  return /* @__PURE__ */ jsx(
23797    chakra.p,
23798    {
23799      ref,
23800      className: cx("chakra-text", props.className),
23801      ...aliasedProps,
23802      ...rest,
23803      __css: styles2
23804    }
23805  );
23806});
23807Text.displayName = "Text";
23808var Heading = forwardRef(function Heading2(props, ref) {
23809  const styles2 = useStyleConfig("Heading", props);
23810  const { className, ...rest } = omitThemingProps(props);
23811  return /* @__PURE__ */ jsx(
23812    chakra.h2,
23813    {
23814      ref,
23815      className: cx("chakra-heading", props.className),
23816      ...rest,
23817      __css: styles2
23818    }
23819  );
23820});
23821Heading.displayName = "Heading";
23822var Box = chakra("div");
23823Box.displayName = "Box";
23824var Square = forwardRef(function Square2(props, ref) {
23825  const { size: size2, centerContent = true, ...rest } = props;
23826  const styles2 = centerContent ? { display: "flex", alignItems: "center", justifyContent: "center" } : {};
23827  return /* @__PURE__ */ jsx(
23828    Box,
23829    {
23830      ref,
23831      boxSize: size2,
23832      __css: {
23833        ...styles2,
23834        flexShrink: 0,
23835        flexGrow: 0
23836      },
23837      ...rest
23838    }
23839  );
23840});
23841Square.displayName = "Square";
23842var Circle = forwardRef(function Circle2(props, ref) {
23843  const { size: size2, ...rest } = props;
23844  return /* @__PURE__ */ jsx(Square, { size: size2, ref, borderRadius: "9999px", ...rest });
23845});
23846Circle.displayName = "Circle";
23847var Link = forwardRef(function Link2(props, ref) {
23848  const styles2 = useStyleConfig("Link", props);
23849  const { className, isExternal, ...rest } = omitThemingProps(props);
23850  return /* @__PURE__ */ jsx(
23851    chakra.a,
23852    {
23853      target: isExternal ? "_blank" : void 0,
23854      rel: isExternal ? "noopener" : void 0,
23855      ref,
23856      className: cx("chakra-link", className),
23857      ...rest,
23858      __css: styles2
23859    }
23860  );
23861});
23862Link.displayName = "Link";
23863var Flex = forwardRef(function Flex2(props, ref) {
23864  const { direction: direction2, align, justify, wrap: wrap2, basis, grow, shrink, ...rest } = props;
23865  const styles2 = {
23866    display: "flex",
23867    flexDirection: direction2,
23868    alignItems: align,
23869    justifyContent: justify,
23870    flexWrap: wrap2,
23871    flexBasis: basis,
23872    flexGrow: grow,
23873    flexShrink: shrink
23874  };
23875  return /* @__PURE__ */ jsx(chakra.div, { ref, __css: styles2, ...rest });
23876});
23877Flex.displayName = "Flex";
23878var propTypesExports = {};
23879var propTypes = {
23880  get exports() {
23881    return propTypesExports;
23882  },
23883  set exports(v2) {
23884    propTypesExports = v2;
23885  }
23886};
23887var ReactPropTypesSecret$1 = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
23888var ReactPropTypesSecret_1 = ReactPropTypesSecret$1;
23889var ReactPropTypesSecret = ReactPropTypesSecret_1;
23890function emptyFunction() {
23891}
23892function emptyFunctionWithReset() {
23893}
23894emptyFunctionWithReset.resetWarningCache = emptyFunction;
23895var factoryWithThrowingShims = function() {
23896  function shim2(props, propName, componentName, location, propFullName, secret) {
23897    if (secret === ReactPropTypesSecret) {
23898      return;
23899    }
23900    var err = new Error(
23901      "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
23902    );
23903    err.name = "Invariant Violation";
23904    throw err;
23905  }
23906  shim2.isRequired = shim2;
23907  function getShim() {
23908    return shim2;
23909  }
23910  var ReactPropTypes = {
23911    array: shim2,
23912    bigint: shim2,
23913    bool: shim2,
23914    func: shim2,
23915    number: shim2,
23916    object: shim2,
23917    string: shim2,
23918    symbol: shim2,
23919    any: shim2,
23920    arrayOf: getShim,
23921    element: shim2,
23922    elementType: shim2,
23923    instanceOf: getShim,
23924    node: shim2,
23925    objectOf: getShim,
23926    oneOf: getShim,
23927    oneOfType: getShim,
23928    shape: getShim,
23929    exact: getShim,
23930    checkPropTypes: emptyFunctionWithReset,
23931    resetWarningCache: emptyFunction
23932  };
23933  ReactPropTypes.PropTypes = ReactPropTypes;
23934  return ReactPropTypes;
23935};
23936{
23937  propTypes.exports = factoryWithThrowingShims();
23938}
23939var client = {};
23940var m = reactDomExports;
23941{
23942  client.createRoot = m.createRoot;
23943  client.hydrateRoot = m.hydrateRoot;
23944}
23945const latin = "";
23946const config = {
23947  disableTransitionOnChange: false
23948};
23949const theme = extendTheme({
23950  fonts: {
23951    heading: "Plus Jakarta Sans, sans-serif",
23952    body: "Plus Jakarta Sans, sans-serif"
23953  },
23954  components: {
23955    // Button: {
23956    // }
23957  },
23958  config
23959});
23960/**
23961 * @remix-run/router v1.3.2
23962 *
23963 * Copyright (c) Remix Software Inc.
23964 *
23965 * This source code is licensed under the MIT license found in the
23966 * LICENSE.md file in the root directory of this source tree.
23967 *
23968 * @license MIT
23969 */
23970function _extends$2() {
23971  _extends$2 = Object.assign ? Object.assign.bind() : function(target) {
23972    for (var i = 1; i < arguments.length; i++) {
23973      var source = arguments[i];
23974      for (var key in source) {
23975        if (Object.prototype.hasOwnProperty.call(source, key)) {
23976          target[key] = source[key];
23977        }
23978      }
23979    }
23980    return target;
23981  };
23982  return _extends$2.apply(this, arguments);
23983}
23984var Action;
23985(function(Action2) {
23986  Action2["Pop"] = "POP";
23987  Action2["Push"] = "PUSH";
23988  Action2["Replace"] = "REPLACE";
23989})(Action || (Action = {}));
23990const PopStateEventType = "popstate";
23991function createBrowserHistory(options) {
23992  if (options === void 0) {
23993    options = {};
23994  }
23995  function createBrowserLocation(window2, globalHistory) {
23996    let {
23997      pathname,
23998      search,
23999      hash: hash2
24000    } = window2.location;
24001    return createLocation(
24002      "",
24003      {
24004        pathname,
24005        search,
24006        hash: hash2
24007      },
24008      // state defaults to `null` because `window.history.state` does
24009      globalHistory.state && globalHistory.state.usr || null,
24010      globalHistory.state && globalHistory.state.key || "default"
24011    );
24012  }
24013  function createBrowserHref(window2, to) {
24014    return typeof to === "string" ? to : createPath(to);
24015  }
24016  return getUrlBasedHistory(createBrowserLocation, createBrowserHref, null, options);
24017}
24018function invariant(value, message) {
24019  if (value === false || value === null || typeof value === "undefined") {
24020    throw new Error(message);
24021  }
24022}
24023function createKey() {
24024  return Math.random().toString(36).substr(2, 8);
24025}
24026function getHistoryState(location, index) {
24027  return {
24028    usr: location.state,
24029    key: location.key,
24030    idx: index
24031  };
24032}
24033function createLocation(current, to, state2, key) {
24034  if (state2 === void 0) {
24035    state2 = null;
24036  }
24037  let location = _extends$2({
24038    pathname: typeof current === "string" ? current : current.pathname,
24039    search: "",
24040    hash: ""
24041  }, typeof to === "string" ? parsePath(to) : to, {
24042    state: state2,
24043    // TODO: This could be cleaned up.  push/replace should probably just take
24044    // full Locations now and avoid the need to run through this flow at all
24045    // But that's a pretty big refactor to the current test suite so going to
24046    // keep as is for the time being and just let any incoming keys take precedence
24047    key: to && to.key || key || createKey()
24048  });
24049  return location;
24050}
24051function createPath(_ref) {
24052  let {
24053    pathname = "/",
24054    search = "",
24055    hash: hash2 = ""
24056  } = _ref;
24057  if (search && search !== "?")
24058    pathname += search.charAt(0) === "?" ? search : "?" + search;
24059  if (hash2 && hash2 !== "#")
24060    pathname += hash2.charAt(0) === "#" ? hash2 : "#" + hash2;
24061  return pathname;
24062}
24063function parsePath(path) {
24064  let parsedPath = {};
24065  if (path) {
24066    let hashIndex = path.indexOf("#");
24067    if (hashIndex >= 0) {
24068      parsedPath.hash = path.substr(hashIndex);
24069      path = path.substr(0, hashIndex);
24070    }
24071    let searchIndex = path.indexOf("?");
24072    if (searchIndex >= 0) {
24073      parsedPath.search = path.substr(searchIndex);
24074      path = path.substr(0, searchIndex);
24075    }
24076    if (path) {
24077      parsedPath.pathname = path;
24078    }
24079  }
24080  return parsedPath;
24081}
24082function getUrlBasedHistory(getLocation, createHref, validateLocation, options) {
24083  if (options === void 0) {
24084    options = {};
24085  }
24086  let {
24087    window: window2 = document.defaultView,
24088    v5Compat = false
24089  }
vendor: 4,831 bytes, lines 24089-24252
24089 = options;
24090  let globalHistory = window2.history;
24091  let action = Action.Pop;
24092  let listener = null;
24093  let index = getIndex();
24094  if (index == null) {
24095    index = 0;
24096    globalHistory.replaceState(_extends$2({}, globalHistory.state, {
24097      idx: index
24098    }), "");
24099  }
24100  function getIndex() {
24101    let state2 = globalHistory.state || {
24102      idx: null
24103    };
24104    return state2.idx;
24105  }
24106  function handlePop() {
24107    action = Action.Pop;
24108    let nextIndex = getIndex();
24109    let delta = nextIndex == null ? null : nextIndex - index;
24110    index = nextIndex;
24111    if (listener) {
24112      listener({
24113        action,
24114        location: history.location,
24115        delta
24116      });
24117    }
24118  }
24119  function push(to, state2) {
24120    action = Action.Push;
24121    let location = createLocation(history.location, to, state2);
24122    if (validateLocation)
24123      validateLocation(location, to);
24124    index = getIndex() + 1;
24125    let historyState = getHistoryState(location, index);
24126    let url = history.createHref(location);
24127    try {
24128      globalHistory.pushState(historyState, "", url);
24129    } catch (error) {
24130      window2.location.assign(url);
24131    }
24132    if (v5Compat && listener) {
24133      listener({
24134        action,
24135        location: history.location,
24136        delta: 1
24137      });
24138    }
24139  }
24140  function replace2(to, state2) {
24141    action = Action.Replace;
24142    let location = createLocation(history.location, to, state2);
24143    if (validateLocation)
24144      validateLocation(location, to);
24145    index = getIndex();
24146    let historyState = getHistoryState(location, index);
24147    let url = history.createHref(location);
24148    globalHistory.replaceState(historyState, "", url);
24149    if (v5Compat && listener) {
24150      listener({
24151        action,
24152        location: history.location,
24153        delta: 0
24154      });
24155    }
24156  }
24157  function createURL(to) {
24158    let base = window2.location.origin !== "null" ? window2.location.origin : window2.location.href;
24159    let href = typeof to === "string" ? to : createPath(to);
24160    invariant(base, "No window.location.(origin|href) available to create URL for href: " + href);
24161    return new URL(href, base);
24162  }
24163  let history = {
24164    get action() {
24165      return action;
24166    },
24167    get location() {
24168      return getLocation(window2, globalHistory);
24169    },
24170    listen(fn) {
24171      if (listener) {
24172        throw new Error("A history only accepts one active listener");
24173      }
24174      window2.addEventListener(PopStateEventType, handlePop);
24175      listener = fn;
24176      return () => {
24177        window2.removeEventListener(PopStateEventType, handlePop);
24178        listener = null;
24179      };
24180    },
24181    createHref(to) {
24182      return createHref(window2, to);
24183    },
24184    createURL,
24185    encodeLocation(to) {
24186      let url = createURL(to);
24187      return {
24188        pathname: url.pathname,
24189        search: url.search,
24190        hash: url.hash
24191      };
24192    },
24193    push,
24194    replace: replace2,
24195    go(n2) {
24196      return globalHistory.go(n2);
24197    }
24198  };
24199  return history;
24200}
24201var ResultType;
24202(function(ResultType2) {
24203  ResultType2["data"] = "data";
24204  ResultType2["deferred"] = "deferred";
24205  ResultType2["redirect"] = "redirect";
24206  ResultType2["error"] = "error";
24207})(ResultType || (ResultType = {}));
24208function matchRoutes(routes2, locationArg, basename) {
24209  if (basename === void 0) {
24210    basename = "/";
24211  }
24212  let location = typeof locationArg === "string" ? parsePath(locationArg) : locationArg;
24213  let pathname = stripBasename(location.pathname || "/", basename);
24214  if (pathname == null) {
24215    return null;
24216  }
24217  let branches = flattenRoutes(routes2);
24218  rankRouteBranches(branches);
24219  let matches = null;
24220  for (let i = 0; matches == null && i < branches.length; ++i) {
24221    matches = matchRouteBranch(
24222      branches[i],
24223      // Incoming pathnames are generally encoded from either window.location
24224      // or from router.navigate, but we want to match against the unencoded
24225      // paths in the route definitions.  Memory router locations won't be
24226      // encoded here but there also shouldn't be anything to decode so this
24227      // should be a safe operation.  This avoids needing matchRoutes to be
24228      // history-aware.
24229      safelyDecodeURI(pathname)
24230    );
24231  }
24232  return matches;
24233}
24234function flattenRoutes(routes2, branches, parentsMeta, parentPath) {
24235  if (branches === void 0) {
24236    branches = [];
24237  }
24238  if (parentsMeta === void 0) {
24239    parentsMeta = [];
24240  }
24241  if (parentPath === void 0) {
24242    parentPath = "";
24243  }
24244  let flattenRoute = (route, index, relativePath) => {
24245    let meta = {
24246      relativePath: relativePath === void 0 ? route.path || "" : relativePath,
24247      caseSensitive: route.caseSensitive === true,
24248      childrenIndex: index,
24249      route
24250    };
24251    if (meta.relativePath.startsWith("/")) {
24252      invariant(meta.relativePath.startsWith(parentPath), 'Absolute route path "' + meta.relativePath + '" nested under path ' + ('"' + parentPath + '" is not val
24252id. An absolute child route path ') + "must start with the combined path of all its parent routes.");
24253      meta.relativePath = meta.relativePath.slice(parentPath.length);
24254    }
24255    let path = joinPaths([parentPath, meta.relativePath]);
24256    let routesMeta = parentsMeta.concat(meta);
24257    if (route.children && route.children.length > 0) {
24258      invariant(
24259        // Our types know better, but runtime JS may not!
24260        // @ts-expect-error
24261        route.index !== true,
24262        "Index routes must not have child routes. Please remove " + ('all child routes from route path "' + path + '".')
24263      );
24264      flattenRoutes(route.children, branches, routesMeta, path);
24265    }
24266    if (route.path == null && !route.index) {
24267      return;
24268    }
24269    branches.push({
24270      path,
24271      score: computeScore(path, route.index),
24272      routesMeta
24273    });
24274  };
24275  routes2.forEach((route, index) => {
24276    var _route$path;
24277    if (route.path === "" || !((_route$path = route.path) != null && _route$path.includes("?"))) {
24278      flattenRoute(route, index);
24279    } else {
24280      for (let exploded of explodeOptionalSegments(route.path)) {
24281        flattenRoute(route, index, exploded);
24282      }
24283    }
24284  });
24285  return branches;
24286}
24287function explodeOptionalSegments(path) {
24288  let segments = path.split("/");
24289  if (segments.length === 0)
24290    return [];
24291  let [first, ...rest] = segments;
24292  let isOptional = first.endsWith("?");
24293  let required = first.replace(/\?$/, "");
24294  if (rest.length === 0) {
24295    return isOptional ? [required, ""] : [required];
24296  }
24297  let restExploded = explodeOptionalSegments(rest.join("/"));
24298  let result = [];
24299  result.push(...restExploded.map((subpath) => subpath === "" ? required : [required, subpath].join("/")));
24300  if (isOptional) {
24301    result.push(...restExploded);
24302  }
24303  return result.map((exploded) => path.startsWith("/") && exploded === "" ? "/" : exploded);
24304}
24305function rankRouteBranches(branches) {
24306  branches.sort((a, b2) => a.score !== b2.score ? b2.score - a.score : compareIndexes(a.routesMeta.map((meta) => meta.childrenIndex), b2.routesMeta.map((meta) => meta.childrenIndex)));
24307}
24308const paramRe = /^:\w+$/;
24309const dynamicSegmentValue = 3;
24310const indexRouteValue = 2;
24311const emptySegmentValue = 1;
24312const staticSegmentValue = 10;
24313const splatPenalty = -2;
24314const isSplat = (s) => s === "*";
24315function computeScore(path, index) {
24316  let segments = path.split("/");
24317  let initialScore = segments.length;
24318  if (segments.some(isSplat)) {
24319    initialScore += splatPenalty;
24320  }
24321  if (index) {
24322    initialScore += indexRouteValue;
24323  }
24324  return segments.filter((s) => !isSplat(s)).reduce((score, segment) => score + (paramRe.test(segment) ? dynamicSegmentValue : segment === "" ? emptySegmentValue : staticSegmentValue), initialScore);
24325}
24326function compareIndexes(a, b2) {
24327  let siblings = a.length === b2.length && a.slice(0, -1).every((n2, i) => n2 === b2[i]);
24328  return siblings ? (
24329    // If two routes are siblings, we should try to match the earlier sibling
24330    // first. This allows people to have fine-grained control over the matching
24331    // behavior by simply putting routes with identical paths in the order they
24332    // want them tried.
24333    a[a.length - 1] - b2[b2.length - 1]
24334  ) : (
24335    // Otherwise, it doesn't really make sense to rank non-siblings by index,
24336    // so they sort equally.
24337    0
24338  );
24339}
24340function matchRouteBranch(branch, pathname) {
24341  let {
24342    routesMeta
24343  } = branch;
24344  let matchedParams = {};
24345  let matchedPathname = "/";
24346  let matches = [];
24347  for (let i = 0; i < routesMeta.length; ++i) {
24348    let meta = routesMeta[i];
24349    let end = i === routesMeta.length - 1;
24350    let remainingPathname = matchedPathname === "/" ? pathname : pathname.slice(matchedPathname.length) || "/";
24351    let match2 = matchPath({
24352      path: meta.relativePath,
24353      caseSensitive: meta.caseSensitive,
24354      end
24355    }, remainingPathname);
24356    if (!match2)
24357      return null;
24358    Object.assign(matchedParams, match2.params);
24359    let route = meta.route;
24360    matches.push({
24361      // TODO: Can this as be avoided?
24362      params: matchedParams,
24363      pathname: joinPaths([matchedPathname, match2.pathname]),
24364      pathnameBase: normalizePathname(joinPaths([matchedPathname, match2.pathnameBase])),
24365      route
24366    });
24367    if (match2.pathnameBase !== "/") {
24368      matchedPathname = joinPaths([matchedPathname, match2.pathnameBase]);
24369    }
24370  }
24371  return matches;
24372}
24373function matchPath(pattern, pathname) {
24374  if (typeof pattern === "string") {
24375    pattern = {
24376      path: pattern,
24377      caseSensitive: false,
24378      end: true
24379    };
24380  }
24381  let [matcher, paramNames] = compilePath(pattern.path, pattern.caseSensitive, pattern.end);
24382  let match2 = pathname.match(matcher);
24383  if (!match2)
24384    return null;
24385  let matchedPathname = match2[0];
24386  let pathnameBase = matchedPathname.replace(/(.)\/+$/, "$1");
24387  let captureGroups = match2.slice(1);
24388  let params = paramNames.reduce((memo, paramName, index) => {
24389    if (paramName === "*") {
24390      let splatValue = captureGroups[index] || "";
24391      pathnameBase = matchedPathname.slice(0, matchedPathname.length - splatValue.length).replace(/(.)\/+$/, "$1");
24392    }
24393    memo[paramName] = safelyDecodeURIComponent(captureGroups[index] || "", paramName);
24394    return memo;
24395  }, {});
24396  return {
24397    params,
24398    pathname: matchedPathname,
24399    pathnameBase,
24400    pattern
24401  };
24402}
24403function compilePath(path, caseSensitive, end) {
24404  if (caseSensitive === void 0) {
24405    caseSensitive = false;
24406  }
24407  if (end === void 0) {
24408    end = true;
24409  }
24410  warning(path === "*" || !path.endsWith("*") || path.endsWith("/*"), 'Route path "' + path + '" will be treated as if it were ' + ('"' + path.replace(/\*$/, "/*") + '" because the `*` character must ') + "always follow a `/` in the pattern. To get rid of this warning, " + ('please change the route path to "' + path.replace(/\*$/, "/*") + '".'));
24411  let paramNames = [];
24412  let regexpSource = "^" + path.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^$?{}|()[\]]/g, "\\$&").replace(/\/:(\w+)/g, (_, paramName) => {
24413    paramNames.push(paramName);
24414    return "/([^\\/]+)";
24415  });
24416  if (path.endsWith("*")) {
24417    paramNames.push("*");
24418    regexpSource += path === "*" || path === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$";
24419  } else if (end) {
24420    regexpSource += "\\/*$";
24421  } else if (path !== "" && path !== "/") {
24422    regexpSource += "(?:(?=\\/|$))";
24423  } else
24424    ;
24425  let matcher = new RegExp(regexpSource, caseSensitive ? void 0 : "i");
24426  return [matcher, paramNames];
24427}
24428function safelyDecodeURI(value) {
24429  try {
24430    return decodeURI(value);
24431  } catch (error) {
24432    warning(false, 'The URL path "' + value + '" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent ' + ("encoding (" + error + ")."));
24433    return value;
24434  }
24435}
24436function safelyDecodeURIComponent(value, paramName) {
24437  try {
24438    return decodeURIComponent(value);
24439  } catch (error) {
24440    warning(false, 'The value for the URL param "' + paramName + '" will not be decoded because' + (' the string "' + value + '" is a malformed URL segment. This is probably') + (" due to a bad percent encoding (" + error + ")."));
24441    return value;
24442  }
24443}
24444function stripBasename(pathname, basename) {
24445  if (basename === "/")
24446    return pathname;
24447  if (!pathname.toLowerCase().startsWith(basename.toLowerCase())) {
24448    return null;
24449  }
24450  let startIndex = basename.endsWith("/") ? basename.length - 1 : basename.length;
24451  let nextChar = pathname.charAt(startIndex);
24452  if (nextChar && nextChar !== "/") {
24453    return null;
24454  }
24455  return pathname.slice(startIndex) || "/";
24456}
24457function warning(cond, message) {
24458  if (!cond) {
24459    if (typeof console !== "undefined")
24460      console.warn(message);
24461    try {
24462      throw new Error(message);
24463    } catch (e2) {
24464    }
24465  }
24466}
24467function resolvePath(to, fromPathname) {
24468  if (fromPathname === void 0) {
24469    fromPathname = "/";
24470  }
24471  let {
24472    pathname: toPathname,
24473    search = "",
24474    hash: hash2 = ""
24475  } = typeof to === "string" ? parsePath(to) : to;
24476  let pathname = toPathname ? toPathname.startsWith("/") ? toPathname : resolvePathname(toPathname, fromPathname) : fromPathname;
24477  return {
24478    pathname,
24479    search: normalizeSearch(search),
24480    hash: normalizeHash(hash2)
24481  };
24482}
24483function resolvePathname(relativePath, fromPathname) {
24484  let segments = fromPathname.replace(/\/+$/, "").split("/");
24485  let relativeSegments = relativePath.split("/");
24486  relativeSegments.forEach((segment) => {
24487    if (segment === "..") {
24488      if (segments.length > 1)
24489        segments.pop();
24490    } else if (segment !== ".") {
24491      segments.push(segment);
24492    }
24493  });
24494  return segments.length > 1 ? segments.join("/") : "/";
24495}
24496function getInvalidPathError(char2, field, dest, path) {
24497  return "Cannot include a '" + char2 + "' character in a manually specified " + ("`to." + field + "` field [" + JSON.stringify(path) + "].  Please separate it out to the ") + ("`to." + dest + "` field. Alternatively you may provide the full path as ") + 'a string in <Link to="..."> and the router will parse it for you.';
24498}
24499function getPathContributingMatches(matches) {
24500  return matches.filter((match2, index) => index === 0 || match2.route.path && match2.route.path.length > 0);
24501}
24502function resolveTo(toArg, routePathnames, locationPathname, isPathRelative) {
24503  if (isPathRelative === void 0) {
24504    isPathRelative = false;
24505  }
24506  let to;
24507  if (typeof toArg === "string") {
24508    to = parsePath(toArg);
24509  } else {
24510    to = _extends$2({}, toArg);
24511    invariant(!to.pathname || !to.pathname.includes("?"), getInvalidPathError("?", "pathname", "search", to));
24512    invariant(!to.pathname || !to.pathname.includes("#"), getInvalidPathError("#", "pathname", "hash", to));
24513    invariant(!to.search || !to.search.includes("#"), getInvalidPathError("#", "search", "hash", to));
24514  }
24515  let isEmptyPath = toArg === "" || to.pathname === "";
24516  let toPathname = isEmptyPath ? "/" : to.pathname;
24517  let from2;
24518  if (isPathRelative || toPathname == null) {
24519    from2 = locationPathname;
24520  } else {
24521    let routePathnameIndex = routePathnames.length - 1;
24522    if (toPathname.startsWith("..")) {
24523      let toSegments = toPathname.split("/");
24524      while (toSegments[0] === "..") {
24525        toSegments.shift();
24526        routePathnameIndex -= 1;
24527      }
24528      to.pathname = toSegments.join("/");
24529    }
24530    from2 = routePathnameIndex >= 0 ? routePathnames[routePathnameIndex] : "/";
24531  }
24532  let path = resolvePath(to, from2);
24533  let hasExplicitTrailingSlash = toPathname && toPathname !== "/" && toPathname.endsWith("/");
24534  let hasCurrentTrailingSlash = (isEmptyPath || toPathname === ".") && locationPathname.endsWith("/");
24535  if (!path.pathname.endsWith("/") && (hasExplicitTrailingSlash || hasCurrentTrailingSlash)) {
24536    path.pathname += "/";
24537  }
24538  return path;
24539}
24540const joinPaths = (paths) => paths.join("/").replace(/\/\/+/g, "/");
24541const normalizePathname = (pathname) => pathname.replace(/\/+$/, "").replace(/^\/*/, "/");
24542const normalizeSearch = (search) => !search || search === "?" ? "" : search.startsWith("?") ? search : "?" + search;
24543const normalizeHash = (hash2) => !hash2 || hash2 === "#" ? "" : hash2.startsWith("#") ? hash2 : "#" + hash2;
24544function isRouteErrorResponse(error) {
24545  return error != null && typeof error.status === "number" && typeof error.statusText === "string" && typeof error.internal === "boolean" && "data" in error;
24546}
24547const validMutationMethodsArr = ["post", "put", "patch", "delete"];
24548["get", ...validMutationMethodsArr];
24549/**
24550 * React Router v6.8.1
24551 *
24552 * Copyright (c) Remix Software Inc.
24553 *
24554 * This source code is licensed under the MIT license found in the
24555 * LICENSE.md file in the root directory of this source tree.
24556 *
24557 * @license MIT
24558 */
24559function _extends$1() {
24560  _extends$1 = Object.assign ? Object.assign.bind() : function(target) {
24561    for (var i = 1; i < arguments.length; i++) {
24562      var source = arguments[i];
24563      for (var key in source) {
24564        if (Object.prototype.hasOwnProperty.call(source, key)) {
24565          target[key] = source[key];
24566        }
24567      }
24568    }
24569    return target;
24570  };
24571  return _extends$1.apply(this, arguments);
24572}
24573function isPolyfill(x2, y2) {
24574  return x2 === y2 && (x2 !== 0 || 1 / x2 === 1 / y2) || x2 !== x2 && y2 !== y2;
24575}
24576const is = typeof Object.is === "function" ? Object.is : isPolyfill;
24577const {
24578  useState,
24579  useEffect,
24580  useLayoutEffect,
24581  useDebugValue
24582} = React$2;
24583function useSyncExternalStore$2(subscribe, getSnapshot, getServerSnapshot) {
24584  const value = getSnapshot();
24585  const [{
24586    inst
24587  }, forceUpdate] = useState({
24588    inst: {
24589      value,
24590      getSnapshot
24591    }
24592  });
24593  useLayoutEffect(() => {
24594    inst.value = value;
24595    inst.getSnapshot = getSnapshot;
24596    if (checkIfSnapshotChanged(inst)) {
24597      forceUpdate({
24598        inst
24599      });
24600    }
24601  }, [subscribe, value, getSnapshot]);
24602  useEffect(() => {
24603    if (checkIfSnapshotChanged(inst)) {
24604      forceUpdate({
24605        inst
24606      });
24607    }
24608    const handleStoreChange = () => {
24609      if (checkIfSnapshotChanged(inst)) {
24610        forceUpdate({
24611          inst
24612        });
24613      }
24614    };
24615    return subscribe(handleStoreChange);
24616  }, [subscribe]);
24617  useDebugValue(value);
24618  return value;
24619}
24620function checkIfSnapshotChanged(inst) {
24621  const latestGetSnapshot = inst.getSnapshot;
24622  const prevValue = inst.value;
24623  try {
24624    const nextValue = latestGetSnapshot();
24625    return !is(prevValue, nextValue);
24626  } catch (error) {
24627    return true;
24628  }
24629}
24630function useSyncExternalStore$1(subscribe, getSnapshot, getServerSnapshot) {
24631  return getSnapshot();
24632}
24633const canUseDOM$1 = !!(typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined");
24634const isServerEnvironment = !canUseDOM$1;
24635const shim = isServerEnvironment ? useSyncExternalStore$1 : useSyncExternalStore$2;
24636"useSyncExternalStore" in React$2 ? ((module) => module.useSyncExternalStore)(React$2) : shim;
24637const DataRouterContext = /* @__PURE__ */ reactExports.createContext(null);
24638const DataRouterStateContext = /* @__PURE__ */ reactExports.createContext(null);
24639const NavigationContext = /* @__PURE__ */ reactExports.createContext(null);
24640const LocationContext = /* @__PURE__ */ reactExports.createContext(null);
24641const RouteContext = /* @__PURE__ */ reactExports.createContext({
24642  outlet: null,
24643  matches: []
24644});
24645const RouteErrorContext = /* @__PURE__ */ reactExports.createContext(null);
24646function useInRouterContext() {
24647  return reactExports.useContext(LocationContext) != null;
24648}
24649function useLocation() {
24650  !useInRouterContext() ? invariant(false) : void 0;
24651  return reactExports.useContext(LocationContext).location;
24652}
24653function useNavigate() {
24654  !useInRouterContext() ? invariant(false) : void 0;
24655  let {
24656    basename,
24657    navigator: navigator2
24658  } = reactExports.useContext(NavigationContext);
24659  let {
24660    matches
24661  } = reactExports.useContext(RouteContext);
24662  let {
24663    pathname: locationPathname
24664  } = useLocation();
24665  let routePathnamesJson = JSON.stringify(getPathContributingMatches(matches).map((match2) => match2.pathnameBase));
24666  let activeRef = reactExports.useRef(false);
24667  reactExports.useEffect(() => {
24668    activeRef.current = true;
24669  });
24670  let navigate = reactExports.useCallback(function(to, options) {
24671    if (options === void 0) {
24672      options = {};
24673    }
24674    if (!activeRef.current)
24675      return;
24676    if (typeof to === "number") {
24677      navigator2.go(to);
24678      return;
24679    }
24680    let path = resolveTo(to, JSON.parse(routePathnamesJson), locationPathname, options.relative === "path");
24681    if (basename !== "/") {
24682      path.pathname = path.pathname === "/" ? basename : joinPaths([basename, path.pathname]);
24683    }
24684    (!!options.replace ? navigator2.replace : navigator2.push)(path, options.state, options);
24685  }, [basename, navigator2, routePathnamesJson, locationPathname]);
24686  return navigate;
24687}
24688function useRoutes(routes2, locationArg) {
24689  !useInRouterContext() ? invariant(false) : void 0;
24690  let {
24691    navigator: navigator2
24692  } = reactExports.useContext(NavigationContext);
24693  let dataRouterStateContext = reactExports.useContext(DataRouterStateContext);
24694  let {
24695    matches: parentMatches
24696  } = reactExports.useContext(RouteContext);
24697  let routeMatch = parentMatches[parentMatches.length - 1];
24698  let parentParams = routeMatch ? routeMatch.params : {};
24699  routeMatch ? routeMatch.pathname : "/";
24700  let parentPathnameBase = routeMatch ? routeMatch.pathnameBase : "/";
24701  routeMatch && routeMatch.route;
24702  let locationFromContext = useLocation();
24703  let location;
24704  if (locationArg) {
24705    var _parsedLocationArg$pa;
24706    let parsedLocationArg = typeof locationArg === "string" ? parsePath(locationArg) : locationArg;
24707    !(parentPathnameBase === "/" || ((_parsedLocationArg$pa = parsedLocationArg.pathname) == null ? void 0 : _parsedLocationArg$pa.startsWith(parentPathnameBase))) ? invariant(false) : void 0;
24708    location = parsedLocationArg;
24709  } else {
24710    location = locationFromContext;
24711  }
24712  let pathname = location.pathname || "/";
24713  let remainingPathname = parentPathnameBase === "/" ? pathname : pathname.slice(parentPathnameBase.length) || "/";
24714  let matches = matchRoutes(routes2, {
24715    pathname: remainingPathname
24716  });
24717  let renderedMatches = _renderMatches(matches && matches.map((match2) => Object.assign({}, match2, {
24718    params: Object.assign({}
24718, parentParams, match2.params),
24719    pathname: joinPaths([
24720      parentPathnameBase,
24721      // Re-encode pathnames that were decoded inside matchRoutes
24722      navigator2.encodeLocation ? navigator2.encodeLocation(match2.pathname).pathname : match2.pathname
24723    ]),
24724    pathnameBase: match2.pathnameBase === "/" ? parentPathnameBase : joinPaths([
24725      parentPathnameBase,
24726      // Re-encode pathnames that were decoded inside matchRoutes
24727      navigator2.encodeLocation ? navigator2.encodeLocation(match2.pathnameBase).pathname : match2.pathnameBase
24728    ])
24729  })), parentMatches, dataRouterStateContext || void 0);
24730  if (locationArg && renderedMatches) {
24731    return /* @__PURE__ */ reactExports.createElement(LocationContext.Provider, {
24732      value: {
24733        location: _extends$1({
24734          pathname: "/",
24735          search: "",
24736          hash: "",
24737          state: null,
24738          key: "default"
24739        }, location),
24740        navigationType: Action.Pop
24741      }
24742    }, renderedMatches);
24743  }
24744  return renderedMatches;
24745}
24746function DefaultErrorElement() {
24747  let error = useRouteError();
24748  let message = isRouteErrorResponse(error) ? error.status + " " + error.statusText : error instanceof Error ? error.message : JSON.stringify(error);
24749  let stack = error instanceof Error ? error.stack : null;
24750  let lightgrey = "rgba(200,200,200, 0.5)";
24751  let preStyles = {
24752    padding: "0.5rem",
24753    backgroundColor: lightgrey
24754  };
24755  let devInfo = null;
24756  return /* @__PURE__ */ reactExports.createElement(reactExports.Fragment, null, /* @__PURE__ */ reactExports.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ reactExports.createElement("h3", {
24757    style: {
24758      fontStyle: "italic"
24759    }
24760  }, message), stack ? /* @__PURE__ */ reactExports.createElement("pre", {
24761    style: preStyles
24762  }, stack) : null, devInfo);
24763}
24764class RenderErrorBoundary extends reactExports.Component {
24765  constructor(props) {
24766    super(props);
24767    this.state = {
24768      location: props.location,
24769      error: props.error
24770    };
24771  }
24772  static getDerivedStateFromError(error) {
24773    return {
24774      error
24775    };
24776  }
24777  static getDerivedStateFromProps(props, state2) {
24778    if (state2.location !== props.location) {
24779      return {
24780        error: props.error,
24781        location: props.location
24782      };
24783    }
24784    return {
24785      error: props.error || state2.error,
24786      location: state2.location
24787    };
24788  }
24789  componentDidCatch(error, errorInfo) {
24790    console.error("React Router caught the following error during render", error, errorInfo);
24791  }
24792  render() {
24793    return this.state.error ? /* @__PURE__ */ reactExports.createElement(RouteContext.Provider, {
24794      value: this.props.routeContext
24795    }, /* @__PURE__ */ reactExports.createElement(RouteErrorContext.Provider, {
24796      value: this.state.error,
24797      children: this.props.component
24798    })) : this.props.children;
24799  }
24800}
24801function RenderedRoute(_ref) {
24802  let {
24803    routeContext,
24804    match: match2,
24805    children
24806  } = _ref;
24807  let dataRouterContext = reactExports.useContext(DataRouterContext);
24808  if (dataRouterContext && dataRouterContext.static && dataRouterContext.staticContext && match2.route.errorElement) {
24809    dataRouterContext.staticContext._deepestRenderedBoundaryId = match2.route.id;
24810  }
24811  return /* @__PURE__ */ reactExports.createElement(RouteContext.Provider, {
24812    value: routeContext
24813  }, children);
24814}
24815function _renderMatches(matches, parentMatches, dataRouterState) {
24816  if (parentMatches === void 0) {
24817    parentMatches = [];
24818  }
24819  if (matches == null) {
24820    if (dataRouterState != null && dataRouterState.errors) {
24821      matches = dataRouterState.matches;
24822    } else {
24823      return null;
24824    }
24825  }
24826  let renderedMatches = matches;
24827  let errors = dataRouterState == null ? void 0 : dataRouterState.errors;
24828  if (errors != null) {
24829    let errorIndex = renderedMatches.findIndex((m2) => m2.route.id && (errors == null ? void 0 : errors[m2.route.id]));
24830    !(errorIndex >= 0) ? invariant(false) : void 0;
24831    renderedMatches = renderedMatches.slice(0, Math.min(renderedMatches.length, errorIndex + 1));
24832  }
24833  return renderedMatches.reduceRight((outlet, match2, index) => {
24834    let error = match2.route.id ? errors == null ? void 0 : errors[match2.route.id] : null;
24835    let errorElement = dataRouterState ? match2.route.errorElement || /* @__P
24835URE__ */ reactExports.createElement(DefaultErrorElement, null) : null;
24836    let matches2 = parentMatches.concat(renderedMatches.slice(0, index + 1));
24837    let getChildren = () => /* @__PURE__ */ reactExports.createElement(RenderedRoute, {
24838      match: match2,
24839      routeContext: {
24840        outlet,
24841        matches: matches2
24842      }
24843    }, error ? errorElement : match2.route.element !== void 0 ? match2.route.element : outlet);
24844    return dataRouterState && (match2.route.errorElement || index === 0) ? /* @__PURE__ */ reactExports.createElement(RenderErrorBoundary, {
24845      location: dataRouterState.location,
24846      component: errorElement,
24847      error,
24848      children: getChildren(),
24849      routeContext: {
24850        outlet: null,
24851        matches: matches2
24852      }
24853    }) : getChildren();
24854  }, null);
24855}
24856var DataRouterHook$1;
24857(function(DataRouterHook2) {
24858  DataRouterHook2["UseBlocker"] = "useBlocker";
24859  DataRouterHook2["UseRevalidator"] = "useRevalidator";
24860})(DataRouterHook$1 || (DataRouterHook$1 = {}));
24861var DataRouterStateHook$1;
24862(function(DataRouterStateHook2) {
24863  DataRouterStateHook2["UseLoaderData"] = "useLoaderData";
24864  DataRouterStateHook2["UseActionData"] = "useActionData";
24865  DataRouterStateHook2["UseRouteError"] = "useRouteError";
24866  DataRouterStateHook2["UseNavigation"] = "useNavigation";
24867  DataRouterStateHook2["UseRouteLoaderData"] = "useRouteLoaderData";
24868  DataRouterStateHook2["UseMatches"] = "useMatches";
24869  DataRouterStateHook2["UseRevalidator"] = "useRevalidator";
24870})(DataRouterStateHook$1 || (DataRouterStateHook$1 = {}));
24871function useDataRouterState(hookName) {
24872  let state2 = reactExports.useContext(DataRouterStateContext);
24873  !state2 ? invariant(false) : void 0;
24874  return state2;
24875}
24876function useRouteContext(hookName) {
24877  let route = reactExports.useContext(RouteContext);
24878  !route ? invariant(false) : void 0;
24879  return route;
24880}
24881function useCurrentRouteId(hookName) {
24882  let route = useRouteContext();
24883  let thisRoute = route.matches[route.matches.length - 1];
24884  !thisRoute.route.id ? invariant(false) : void 0;
24885  return thisRoute.route.id;
24886}
24887function useRouteError() {
24888  var _state$errors;
24889  let error = reactExports.useContext(RouteErrorContext);
24890  let state2 = useDataRouterState(DataRouterStateHook$1.UseRouteError);
24891  let routeId = useCurrentRouteId(DataRouterStateHook$1.UseRouteError);
24892  if (error) {
24893    return error;
24894  }
24895  return (_state$errors = state2.errors) == null ? void 0 : _state$errors[routeId];
24896}
24897function Navigate(_ref3) {
24898  let {
24899    to,
24900    replace: replace2,
24901    state: state2,
24902    relative
24903  } = _ref3;
24904  !useInRouterContext() ? invariant(false) : void 0;
24905  let dataRouterState = reactExports.useContext(DataRouterStateContext);
24906  let navigate = useNavigate();
24907  reactExports.useEffect(() => {
24908    if (dataRouterState && dataRouterState.navigation.state !== "idle") {
24909      return;
24910    }
24911    navigate(to, {
24912      replace: replace2,
24913      state: state2,
24914      relative
24915    });
24916  });
24917  return null;
24918}
24919function Route(_props) {
24920  invariant(false);
24921}
24922function Router(_ref4) {
24923  let {
24924    basename: basenameProp = "/",
24925    children = null,
24926    location: locationProp,
24927    navigationType = Action.Pop,
24928    navigator: navigator2,
24929    static: staticProp = false
24930  } = _ref4;
24931  !!useInRouterContext() ? invariant(false) : void 0;
24932  let basename = basenameProp.replace(/^\/*/, "/");
24933  let navigationContext = reactExports.useMemo(() => ({
24934    basename,
24935    navigator: navigator2,
24936    static: staticProp
24937  }), [basename, navigator2, staticProp]);
24938  if (typeof locationProp === "string") {
24939    locationProp = parsePath(locationProp);
24940  }
24941  let {
24942    pathname = "/",
24943    search = "",
24944    hash: hash2 = "",
24945    state: state2 = null,
24946    key = "default"
24947  } = locationProp;
24948  let location = reactExports.useMemo(() => {
24949    let trailingPathname = stripBasename(pathname, basename);
24950    if (trailingPathname == null) {
24951      return null;
24952    }
24953    return {
24954      pathname: trailingPathname,
24955      search,
24956      hash: hash2,
24957      state: state2,
24958      key
24959    };
24960  }, [basename, pathname, search, hash2, state2, key]);
24961  if (location == null) {
24962    return null;
24963  }
24964  return /* @__PURE__ */ reactExports.createElement(NavigationContext.Provider, {
24965    value: navigationContext
24966  }
24966, /* @__PURE__ */ reactExports.createElement(LocationContext.Provider, {
24967    children,
24968    value: {
24969      location,
24970      navigationType
24971    }
24972  }));
24973}
24974function Routes(_ref5) {
24975  let {
24976    children,
24977    location
24978  } = _ref5;
24979  let dataRouterContext = reactExports.useContext(DataRouterContext);
24980  let routes2 = dataRouterContext && !children ? dataRouterContext.router.routes : createRoutesFromChildren(children);
24981  return useRoutes(routes2, location);
24982}
24983var AwaitRenderStatus;
24984(function(AwaitRenderStatus2) {
24985  AwaitRenderStatus2[AwaitRenderStatus2["pending"] = 0] = "pending";
24986  AwaitRenderStatus2[AwaitRenderStatus2["success"] = 1] = "success";
24987  AwaitRenderStatus2[AwaitRenderStatus2["error"] = 2] = "error";
24988})(AwaitRenderStatus || (AwaitRenderStatus = {}));
24989new Promise(() => {
24990});
24991function createRoutesFromChildren(children, parentPath) {
24992  if (parentPath === void 0) {
24993    parentPath = [];
24994  }
24995  let routes2 = [];
24996  reactExports.Children.forEach(children, (element, index) => {
24997    if (!/* @__PURE__ */ reactExports.isValidElement(element)) {
24998      return;
24999    }
25000    if (element.type === reactExports.Fragment) {
25001      routes2.push.apply(routes2, createRoutesFromChildren(element.props.children, parentPath));
25002      return;
25003    }
25004    !(element.type === Route) ? invariant(false) : void 0;
25005    !(!element.props.index || !element.props.children) ? invariant(false) : void 0;
25006    let treePath = [...parentPath, index];
25007    let route = {
25008      id: element.props.id || treePath.join("-"),
25009      caseSensitive: element.props.caseSensitive,
25010      element: element.props.element,
25011      index: element.props.index,
25012      path: element.props.path,
25013      loader: element.props.loader,
25014      action: element.props.action,
25015      errorElement: element.props.errorElement,
25016      hasErrorBoundary: element.props.errorElement != null,
25017      shouldRevalidate: element.props.shouldRevalidate,
25018      handle: element.props.handle
25019    };
25020    if (element.props.children) {
25021      route.children = createRoutesFromChildren(element.props.children, treePath);
25022    }
25023    routes2.push(route);
25024  });
25025  return routes2;
25026}
25027/**
25028 * React Router DOM v6.8.1
25029 *
25030 * Copyright (c) Remix Software Inc.
25031 *
25032 * This source code is licensed under the MIT license found in the
25033 * LICENSE.md file in the root directory of this source tree.
25034 *
25035 * @license MIT
25036 */
25037function BrowserRouter(_ref) {
25038  let {
25039    basename,
25040    children,
25041    window: window2
25042  } = _ref;
25043  let historyRef = reactExports.useRef();
25044  if (historyRef.current == null) {
25045    historyRef.current = createBrowserHistory({
25046      window: window2,
25047      v5Compat: true
25048    });
25049  }
25050  let history = historyRef.current;
25051  let [state2, setState] = reactExports.useState({
25052    action: history.action,
25053    location: history.location
25054  });
25055  reactExports.useLayoutEffect(() => history.listen(setState), [history]);
25056  return /* @__PURE__ */ reactExports.createElement(Router, {
25057    basename,
25058    children,
25059    location: state2.location,
25060    navigationType: state2.action,
25061    navigator: history
25062  });
25063}
25064var DataRouterHook;
25065(function(DataRouterHook2) {
25066  DataRouterHook2["UseScrollRestoration"] = "useScrollRestoration";
25067  DataRouterHook2["UseSubmitImpl"] = "useSubmitImpl";
25068  DataRouterHook2["UseFetcher"] = "useFetcher";
25069})(DataRouterHook || (DataRouterHook = {}));
25070var DataRouterStateHook;
25071(function(DataRouterStateHook2) {
25072  DataRouterStateHook2["UseFetchers"] = "useFetchers";
25073  DataRouterStateHook2["UseScrollRestoration"] = "useScrollRestoration";
25074})(DataRouterStateHook || (DataRouterStateHook = {}));
25075const Footer = () => {
25076  return /* @__PURE__ */ jsx(
25077    Flex,
25078    {
25079      as: "footer",
25080      width: "full",
25081      align: "center",
25082      alignSelf: "flex-end",
25083      justifyContent: "center",
25084      children: /* @__PURE__ */ jsxs(Text, { fontSize: "xs", children: [
25085        new Date().getFullYear(),
25086        " -",
25087        " ",
25088        /* @__PURE__ */ jsx(Link, { href: "https://sznm.dev", isExternal: true, children: "sznm.dev" })
25089      ] })
25090    }
25091  );
25092};
25093var dist = {};
25094var generated = {};
25095var runtime$d = {};
25096(function(exports) {
25097  Object.defineProperty(exports, "__esModule", { value: true });
25098  exports.TextApiResponse = exports.BlobApiResponse = exports.VoidApiResponse = exports.JSONApiResponse = exports.canConsumeForm = exports.mapValues = exports.querystring = exports.exists = exports.COLLECTION_FORMATS = exports.RequiredError = exports.FetchError = exports.ResponseError = exports.BaseAPI = exports.DefaultConfig = exports.Configuration = exports.BASE_PATH = void 0;
25099  exports.BASE_PATH = "http://localhost:1646".replace(/\/+$/, "");
25100  class Configuration {
25101    constructor(configuration = {}) {
25102      this.configuration = configuration;
25103    }
25104    set config(configuration) {
25105      this.configuration = configuration;
25106    }
25107    get basePath() {
25108      return this.configuration.basePath != null ? this.configuration.basePath : exports.BASE_PATH;
25109    }
25110    get fetchApi() {
25111      return this.configuration.fetchApi;
25112    }
25113    get middleware() {
25114      return this.configuration.middleware || [];
25115    }
25116    get queryParamsStringify() {
25117      return this.configuration.queryParamsStringify || querystring;
25118    }
25119    get username() {
25120      return this.configuration.username;
25121    }
25122    get password() {
25123      return this.configuration.password;
25124    }
25125    get apiKey() {
25126      const apiKey = this.configuration.apiKey;
25127      if (apiKey) {
25128        return typeof apiKey === "function" ? apiKey : () => apiKey;
25129      }
25130      return void 0;
25131    }
25132    get accessToken() {
25133      const accessToken = this.configuration.accessToken;
25134      if (accessToken) {
25135        return typeof accessToken === "function" ? accessToken : async () => accessToken;
25136      }
25137      return void 0;
25138    }
25139    get headers() {
25140      return this.configuration.headers;
25141    }
25142    get credentials() {
25143      return this.configuration.credentials;
25144    }
25145  }
25146  exports.Configuration = Configuration;
25147  exports.DefaultConfig = new Configuration();
25148  class BaseAPI {
25149    constructor(configuration = exports.DefaultConfig) {
25150      this.configuration = configuration;
25151      this.fetchApi = async (url, init) => {
25152        let fetchParams = { url, init };
25153        for (const middleware2 of this.middleware) {
25154          if (middleware2.pre) {
25155            fetchParams = await middleware2.pre({
25156              fetch: this.fetchApi,
25157              ...fetchParams
25158            }) || fetchParams;
25159          }
25160        }
25161        let response = void 0;
25162        try {
25163          response = await (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init);
25164        } catch (e2) {
25165          for (const middleware2 of this.middleware) {
25166            if (middleware2.onError) {
25167              response = await middleware2.onError({
25168                fetch: this.fetchApi,
25169                url: fetchParams.url,
25170                init: fetchParams.init,
25171                error: e2,
25172                response: response ? response.clone() : void 0
25173              }) || response;
25174            }
25175          }
25176          if (response === void 0) {
25177            if (e2 instanceof Error) {
25178              throw new FetchError(e2, "The request failed and the interceptors did not return an alternative response");
25179            } else {
25180              throw e2;
25181            }
25182          }
25183        }
25184        for (const middleware2 of this.middleware) {
25185          if (middleware2.post) {
25186            response = await middleware2.post({
25187              fetch: this.fetchApi,
25188              url: fetchParams.url,
25189              init: fetchParams.init,
25190              response: response.clone()
25191            }) || response;
25192          }
25193        }
25194        return response;
25195      };
25196      this.middleware = configuration.middleware;
25197    }
25198    withMiddleware(...middlewares) {
25199      const next2 = this.clone();
25200      next2.middleware = next2.middleware.concat(...middlewares);
25201      return next2;
25202    }
25203    withPreMiddleware(...preMiddlewares) {
25204      const middlewares = preMiddlewares.map((pre) => ({ pre }));
25205      return this.withMiddleware(...middlewares);
25206    }
25207    withPostMiddleware(...postMiddlewares) {
25208      const middlewares = postMiddlewares.map((post) => ({ post }));
25209      return this.withMiddleware(...middlewares);
25210    }
25211    async request(context, initOverrides) {
25212      const { url, init } = await this.createFetchParams(context, initOverrides);
25213      const response = await this.fetchApi(url, init);
25214      if (response && (response.status >= 200 && response.status < 300)) {
25215        return response;
25216      }
25217      throw new ResponseError(response, "Response returned an error code");
25218    }
25219    async createFetchParams(context, initOverrides) {
25220      let url = this.configuration.basePath + context.path;
25221      if (context.query !== void 0 && Object.keys(context.query).length !== 0) {
25222        url += "?" + this.configuration.queryParamsStringify(context.query);
25223      }
25224      const headers = Object.assign({}, this.configuration.headers, context.headers);
25225      Object.keys(headers).forEach((key) => headers[key] === void 0 ? delete headers[key] : {});
25226      const initOverrideFn = typeof initOverrides === "function" ? initOverrides : async () => initOverrides;
25227      const initParams = {
25228        method: context.method,
25229        headers,
25230        body: context.body,
25231        credentials: this.configuration.credentials
25232      };
25233      const overridedInit = {
25234        ...initParams,
25235        ...await initOverrideFn({
25236          init: initParams,
25237          context
25238        })
25239      };
25240      const init = {
25241        ...overridedInit,
25242        body: isFormData(overridedInit.body) || overridedInit.body instanceof URLSearchParams || isBlob(overridedInit.body) ? overridedInit.body : JSON.stringify(overridedInit.body)
25243      };
25244      return { url, init };
25245    }
25246    /**
25247     * Create a shallow clone of `this` by constructing a new instance
25248     * and then shallow cloning data members.
25249     */
25250    clone() {
25251      const constructor = this.constructor;
25252      const next2 = new constructor(this.configuration);
25253      next2.middleware = this.middleware.slice();
25254      return next2;
25255    }
25256  }
25257  exports.BaseAPI = BaseAPI;
25258  function isBlob(value) {
25259    return typeof Blob !== "undefined" && value instanceof Blob;
25260  }
25261  function isFormData(value) {
25262    return typeof FormData !== "undefined" && value instanceof FormData;
25263  }
25264  class ResponseError extends Error {
25265    constructor(response, msg) {
25266      super(msg);
25267      this.response = response;
25268      this.name = "ResponseError";
25269    }
25270  }
25271  exports.ResponseError = ResponseError;
25272  class FetchError extends Error {
25273    constructor(cause, msg) {
25274      super(msg);
25275      this.cause = cause;
25276      this.name = "FetchError";
25277    }
25278  }
25279  exports.FetchError = FetchError;
25280  class RequiredError extends Error {
25281    constructor(field, msg) {
25282      super(msg);
25283      this.field = field;
25284      this.name = "RequiredError";
25285    }
25286  }
25287  exports.RequiredError = RequiredError;
25288  exports.COLLECTION_FORMATS = {
25289    csv: ",",
25290    ssv: " ",
25291    tsv: "	",
25292    pipes: "|"
25293  };
25294  function exists(json, key) {
25295    const value = json[key];
25296    return value !== null && value !== void 0;
25297  }
25298  exports.exists = exists;
25299  function querystring(params, prefix2 = "") {
25300    return Object.keys(params).map((key) => querystringSingleKey(key, params[key], prefix2)).filter((part) => part.length > 0).join("&");
25301  }
25302  exports.querystring = querystring;
25303  function querystringSingleKey(key, value, keyPrefix = "") {
25304    const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key);
25305    if (value instanceof Array) {
25306      const multiValue = value.map((singleValue) => encodeURIComponent(String(singleValue))).join(`&${encodeURIComponent(fullKey)}=`);
25307      return `${encodeURIComponent(fullKey)}=${multiValue}`;
25308    }
25309    if (value instanceof Set) {
25310      const valueAsArray = Array.from(value);
25311      return querystringSingleKey(key, valueAsArray, keyPrefix);
25312    }
25313    if (value instanceof Date) {
25314      return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`;
25315    }
25316    if (value instanceof Object) {
25317      return querystring(value, fullKey);
25318    }
25319    return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;
25320  }
25321  function mapValues(data, fn) {
25322    return Object.keys(data).reduce((acc, key) => ({ ...acc, [key]: fn(data[key]) }), {});
25323  }
25324  exports.mapValues = mapValues;
25325  function canConsumeForm(consumes) {
25326    for (const consume of consumes) {
25327      if ("multipart/form-data" === consume.contentType) {
25328        return true;
25329      }
25330    }
25331    return false;
25332  }
25333  exports.canConsumeForm = canConsumeForm;
25334  class JSONApiResponse {
25335    constructor(raw, transformer = (jsonValue) => jsonValue) {
25336      this.raw = raw;
25337      this.transformer = transformer;
25338    }
25339    async value() {
25340      return this.transformer(await this.raw.json());
25341    }
25342  }
25343  exports.JSONApiResponse = JSONApiResponse;
25344  class VoidApiResponse {
25345    constructor(raw) {
25346      this.raw = raw;
25347    }
25348    async value() {
25349      return void 0;
25350    }
25351  }
25352  exports.VoidApiResponse = VoidApiResponse;
25353  class BlobApiResponse {
25354    constructor(raw) {
25355      this.raw = raw;
25356    }
25357    async value() {
25358      return await this.raw.blob();
25359    }
25360  }
25361  exports.BlobApiResponse = BlobApiResponse;
25362  class TextApiResponse {
25363    constructor(raw) {
25364      this.raw = raw;
25365    }
25366    async value() {
25367      return await this.raw.text();
25368    }
25369  }
25370  exports.TextApiResponse = TextApiResponse;
25371})(runtime$d);
25372var apis = {};
25373var AddressApi$1 = {};
25374var models = {};
25375var ApplySettingsRequest = {};
25376var TypesNumericU32 = {};
25377Object.defineProperty(TypesNumericU32, "__esModule", { value: true });
25378TypesNumericU32.TypesNumericU32ToJSON = TypesNumericU32.TypesNumericU32FromJSONTyped = TypesNumericU32.TypesNumericU32FromJSON = TypesNumericU32.instanceOfTypesNumericU32 = void 0;
25379function instanceOfTypesNumericU32(value) {
25380  let isInstance = true;
25381  return isInstance;
25382}
25383TypesNumericU32.instanceOfTypesNumericU32 = instanceOfTypesNumericU32;
25384function TypesNumericU32FromJSON(json) {
25385  return TypesNumericU32FromJSONTyped(json);
25386}
25387TypesNumericU32.TypesNumericU32FromJSON = TypesNumericU32FromJSON;
25388function TypesNumericU32FromJSONTyped(json, ignoreDiscriminator) {
25389  return json;
25390}
25391TypesNumericU32.TypesNumericU32FromJSONTyped = TypesNumericU32FromJSONTyped;
25392function TypesNumericU32ToJSON(value) {
25393  return value;
25394}
25395TypesNumericU32.TypesNumericU32ToJSON = TypesNumericU32ToJSON;
25396Object.defineProperty(ApplySettingsRequest, "__esModule", { value: true });
25397ApplySettingsRequest.ApplySettingsRequestToJSON = ApplySettingsRequest.ApplySettingsRequestFromJSONTyped = ApplySettingsRequest.ApplySettingsRequestFromJSON = ApplySettingsRequest.instanceOfApplySettingsRequest = void 0;
25398const runtime_1$p = runtime$d;
25399const TypesNumericU32_1$i = TypesNumericU32;
25400function instanceOfApplySettingsRequest(value) {
25401  let isInstance = true;
25402  return isInstance;
25403}
25404ApplySettingsRequest.instanceOfApplySettingsRequest = instanceOfApplySettingsRequest;
25405function ApplySettingsRequestFromJSON(json) {
25406  return ApplySettingsRequestFromJSONTyped(json);
25407}
25408ApplySettingsRequest.ApplySettingsRequestFromJSON = ApplySettingsRequestFromJSON;
25409function ApplySettingsRequestFromJSONTyped(json, ignoreDiscriminator) {
25410  if (json === void 0 || json === null) {
25411    return json;
25412  }
25413  return {
25414    "u2f_counter": !(0, runtime_1$p.exists)(json, "u2f_counter") ? void 0 : (0, TypesNumericU32_1$i.TypesNumericU32FromJSON)(json["u2f_counter"]),
25415    "use_passphrase": !(0, runtime_1$p.exists)(json, "use_passphrase") ? void 0 : json["use_passphrase"],
25416    "language": !(0, runtime_1$p.exists)(json, "language") ? void 0 : json["language"],
25417    "label": !(0, runtime_1$p.exists)(json, "label") ? void 0 : json["label"],
25418    "auto_lock_delay_ms": !(0, runtime_1$p.exists)(json, "auto_lock_delay_ms") ? void 0 : (0, TypesNumericU32_1$i.TypesNumericU32FromJSON)(json["auto_lock_delay_ms"])
25419  };
25420}
25421ApplySettingsRequest.ApplySettingsRequestFromJSONTyped = ApplySettingsRequestFromJSONTyped;
25422function ApplySettingsRequestToJSON(value) {
25423  if (value === void 0) {
25424    return void 0;
25425  }
25426  if (value === null) {
25427    return null;
25428  }
25429  return {
25430    "u2f_counter": (0, TypesNumericU32_1$i.TypesNumericU32ToJSON)(value.u2f_counter),
25431    "use_passphrase": value.use_passphrase,
25432    "language": value.language,
25433    "label": value.label,
25434    "auto_lock_delay_ms": (0, TypesNumericU32_1$i.TypesNumericU32ToJSON)(value.auto_lock_delay_ms)
25435  };
25436}
25437ApplySettingsRequest.ApplySettingsRequestToJSON = ApplySettingsRequestToJSON;
25438var BTCInputScriptType = {};
25439Object.defineProperty(BTCInputScriptType, "__esModule", { value: true });
25440BTCInputScriptType.BTCInputScriptTypeToJSON = BTCInputScriptType.BTCInputScriptTypeFromJSONTyped = BTCInputScriptType.BTCInputScriptTypeFromJSON = BTCInputScriptType.BTCInputScriptType = void 0;
25441BTCInputScriptType.BTCInputScriptType = {
25442  cashaddr: "cashaddr",
25443  bech32: "bech32",
25444  p2pkh: "p2pkh",
25445  p2sh: "p2sh",
25446  external: "external",
25447  p2wpkh: "p2wpkh",
25448  p2sh_p2wpkh: "p2sh-p2wpkh"
25449};
25450function BTCInputScriptTypeFromJSON(json) {
25451  return BTCInputScriptTypeFromJSONTyped(json);
25452}
25453BTCInputScriptType.BTCInputScriptTypeFromJSON = BTCInputScriptTypeFromJSON;
25454function BTCInputScriptTypeFromJSONTyped(json, ignoreDiscriminator) {
25455  return json;
25456}
25457BTCInputScriptType.BTCInputScriptTypeFromJSONTyped = BTCInputScriptTypeFromJSONTyped;
25458function BTCInputScriptTypeToJSON(value) {
25459  return value;
25460}
25461BTCInputScriptType.BTCInputScriptTypeToJSON = BTCInputScriptTypeToJSON;
25462var BinanceGetAddress200Response = {};
25463var TypesBnbAddress = {};
25464Object.defineProperty(TypesBnbAddress, "__esModule", { value: true });
25465TypesBnbAddress.TypesBnbAddressToJSON = TypesBnbAddress.TypesBnbAddressFromJSONTyped = TypesBnbAddress.TypesBnbAddressFromJSON = TypesBnbAddress.instanceOfTypesBnbAddress = void 0;
25466function instanceOfTypesBnbAddress(value) {
25467  let isInstance = true;
25468  return isInstance;
25469}
25470TypesBnbAddress.instanceOfTypesBnbAddress = instanceOfTypesBnbAddress;
25471function TypesBnbAddressFromJSON(json) {
25472  return TypesBnbAddressFromJSONTyped(json);
25473}
25474TypesBnbAddress.TypesBnbAddressFromJSON = TypesBnbAddressFromJSON;
25475function TypesBnbAddressFromJSONTyped(json, ignoreDiscriminator) {
25476  return json;
25477}
25478TypesBnbAddress.TypesBnbAddressFromJSONTyped = TypesBnbAddressFromJSONTyped;
25479function TypesBnbAddressToJSON(value) {
25480  return value;
25481}
25482TypesBnbAddress.TypesBnbAddressToJSON = TypesBnbAddressToJSON;
25483Object.defineProperty(BinanceGetAddress200Response, "__esModule", { value: true });
25484BinanceGetAddress200Response.BinanceGetAddress200ResponseToJSON = BinanceGetAddress200Response.BinanceGetAddress200ResponseFromJSONTyped = BinanceGetAddress200Response.BinanceGetAddress200ResponseFromJSON = BinanceGetAddress200Response.instanceOfBinanceGetAddress200Response = void 0;
25485const TypesBnbAddress_1$2 = TypesBnbAddress;
25486function instanceOfBinanceGetAddress200Response(value) {
25487  let isInstance = true;
25488  isInstance = isInstance && "address" in value;
25489  return isInstance;
25490}
25491BinanceGetAddress200Response.instanceOfBinanceGetAddress200Response = instanceOfBinanceGetAddress200Response;
25492function BinanceGetAddress200ResponseFromJSON(json) {
25493  return BinanceGetAddress200ResponseFromJSONTyped(json);
25494}
25495BinanceGetAddress200Response.BinanceGetAddress200ResponseFromJSON = BinanceGetAddress200ResponseFromJSON;
25496function BinanceGetAddress200ResponseFromJSONTyped(json, ignoreDiscriminator) {
25497  if (json === void 0 || json === null) {
25498    return json;
25499  }
25500  return {
25501    "address": (0, TypesBnbAddress_1$2.TypesBnbAddressFromJSON)(json["address"])
25502  };
25503}
25504BinanceGetAddress200Response.BinanceGetAddress200ResponseFromJSONTyped = BinanceGetAddress200ResponseFromJSONTyped;
25505function BinanceGetAddress200ResponseToJSON(value) {
25506  if (value === void 0) {
25507    return void 0;
25508  }
25509  if (value === null) {
25510    return null;
25511  }
25512  return {
25513    "address": (0, TypesBnbAddress_1$2.TypesBnbAddressToJSON)(value.address)
25514  };
25515}
25516BinanceGetAddress200Response.BinanceGetAddress200ResponseToJSON = BinanceGetAddress200ResponseToJSON;
25517var BinanceGetAddressRequest = {};
25518Object.defineProperty(BinanceGetAddressRequest, "__esModule", { value: true });
25519BinanceGetAddressRequest.BinanceGetAddressRequestToJSON = BinanceGetAddressRequest.BinanceGetAddressRequestFromJSONTyped = BinanceGetAddressRequest.BinanceGetAddressRequestFromJSON = BinanceGetAddressRequest.instanceOfBinanceGetAddressRequest = void 0;
25520const runtime_1$o = runtime$d;
25521const TypesNumericU32_1$h = TypesNumericU32;
25522function instanceOfBinanceGetAddressRequest(value) {
25523  let isInstance = true;
25524  isInstance = isInstance && "address_n" in value;
25525  return isInstance;
25526}
25527BinanceGetAddressRequest.instanceOfBinanceGetAddressRequest = instanceOfBinanceGetAddressRequest;
25528function BinanceGetAddressRequestFromJSON(json) {
25529  return BinanceGetAddressRequestFromJSONTyped(json);
25530}
25531BinanceGetAddressRequest.BinanceGetAddressRequestFromJSON = BinanceGetAddressRequestFromJSON;
25532function BinanceGetAddressRequestFromJSONTyped(json, ignoreDiscriminator) {
25533  if (json === void 0 || json === null) {
25534    return json;
25535  }
25536  return {
25537    "show_display": !(0, runtime_1$o.exists)(json, "show_display") ? void 0 : json["show_display"],
25538    "address_n": json["address_n"].map(TypesNumericU32_1$h.TypesNumericU32FromJSON)
25539  };
25540}
25541BinanceGetAddressRequest.BinanceGetAddressRequestFromJSONTyped = BinanceGetAddressRequestFromJSONTyped;
25542function BinanceGetAddressRequestToJSON(value) {
25543  if (value === void 0) {
25544    return void 0;
25545  }
25546  if (value === null) {
25547    return null;
25548  }
25549  return {
25550    "show_display": value.show_display,
25551    "address_n": value.address_n.map(TypesNumericU32_1$h.TypesNumericU32ToJSON)
25552  };
25553}
25554BinanceGetAddressRequest.BinanceGetAddressRequestToJSON = BinanceGetAddressRequestToJSON;
25555var BnbSignTransaction200Response = {};
25556var TypesBnbSignDoc = {};
25557var TypesBnbMsg = {};
25558var TypesBnbMsgInputOutput = {};
25559var TypesBnbCoin = {};
25560var TypesNumericU64 = {};
25561Object.defineProperty(TypesNumericU64, "__esModule", { value: true });
25562TypesNumericU64.TypesNumericU64ToJSON = TypesNumericU64.TypesNumericU64FromJSONTyped = TypesNumericU64.TypesNumericU64FromJSON = TypesNumericU64.instanceOfTypesNumericU64 = void 0;
25563function instanceOfTypesNumericU64(value) {
25564  let isInstance = true;
25565  return isInstance;
25566}
25567TypesNumericU64.instanceOfTypesNumericU64 = instanceOfTypesNumericU64;
25568function TypesNumericU64FromJSON(json) {
25569  return TypesNumericU64FromJSONTyped(json);
25570}
25571TypesNumericU64.TypesNumericU64FromJSON = TypesNumericU64FromJSON;
25572function TypesNumericU64FromJSONTyped(json, ignoreDiscriminator) {
25573  return json;
25574}
25575TypesNumericU64.TypesNumericU64FromJSONTyped = TypesNumericU64FromJSONTyped;
25576function TypesNumericU64ToJSON(value) {
25577  return value;
25578}
25579TypesNumericU64.TypesNumericU64ToJSON = TypesNumericU64ToJSON;
25580Object.defineProperty(TypesBnbCoin, "__esModule", { value: true });
25581TypesBnbCoin.TypesBnbCoinToJSON = TypesBnbCoin.TypesBnbCoinFromJSONTyped = TypesBnbCoin.TypesBnbCoinFromJSON = TypesBnbCoin.instanceOfTypesBnbCoin = void 0;
25582const TypesNumericU64_1$3 = TypesNumericU64;
25583function instanceOfTypesBnbCoin(value) {
25584  let isInstance = true;
25585  isInstance = isInstance && "denom" in value;
25586  isInstance = isInstance && "amount" in value;
25587  return isInstance;
25588}
25589TypesBnbCoin.instanceOfTypesBnbCoin = instanceOfTypesBnbCoin;
25590function TypesBnbCoinFromJSON(json) {
25591  return TypesBnbCoinFromJSONTyped(json);
25592}
25593TypesBnbCoin.TypesBnbCoinFromJSON = TypesBnbCoinFromJSON;
25594function TypesBnbCoinFromJSONTyped(json, ignoreDiscriminator) {
25595  if (json === void 0 || json === null) {
25596    return json;
25597  }
25598  return {
25599    "denom": json["denom"],
25600    "amount": (0, TypesNumericU64_1$3.TypesNumericU64FromJSON)(json["amount"])
25601  };
25602}
25603TypesBnbCoin.TypesBnbCoinFromJSONTyped = TypesBnbCoinFromJSONTyped;
25604function TypesBnbCoinToJSON(value) {
25605  if (value === void 0) {
25606    return void 0;
25607  }
25608  if (value === null) {
25609    return null;
25610  }
25611  return {
25612    "denom": value.denom,
25613    "amount": (0, TypesNumericU64_1$3.TypesNumericU64ToJSON)(value.amount)
25614  };
25615}
25616TypesBnbCoin.TypesBnbCoinToJSON = TypesBnbCoinToJSON;
25617Object.defineProperty(TypesBnbMsgInputOutput, "__esModule", { value: true });
25618TypesBnbMsgInputOutput.TypesBnbMsgInputOutputToJSON = TypesBnbMsgInputOutput.TypesBnbMsgInputOutputFromJSONTyped = TypesBnbMsgInputOutput.TypesBnbMsgInputOutputFromJSON = TypesBnbMsgInputOutput.instanceOfTypesBnbMsgInputOutput = void 0;
25619const TypesBnbAddress_1$1 = TypesBnbAddress;
25620const TypesBnbCoin_1 = TypesBnbCoin;
25621function instanceOfTypesBnbMsgInputOutput(value) {
25622  let isInstance = true;
25623  isInstance = isInstance && "coins" in value;
25624  isInstance = isInstance && "address" in value;
25625  return isInstance;
25626}
25627TypesBnbMsgInputOutput.instanceOfTypesBnbMsgInputOutput = instanceOfTypesBnbMsgInputOutput;
25628function TypesBnbMsgInputOutputFromJSON(json) {
25629  return TypesBnbMsgInputOutputFromJSONTyped(json);
25630}
25631TypesBnbMsgInputOutput.TypesBnbMsgInputOutputFromJSON = TypesBnbMsgInputOutputFromJSON;
25632function TypesBnbMsgInputOutputFromJSONTyped(json, ignoreDiscriminator) {
25633  if (json === void 0 || json === null) {
25634    return json;
25635  }
25636  return {
25637    "coins": json["coins"].map(TypesBnbCoin_1.TypesBnbCoinFromJSON),
25638    "address": (0, TypesBnbAddress_1$1.TypesBnbAddressFromJSON)(json["address"])
25639  };
25640}
25641TypesBnbMsgInputOutput.TypesBnbMsgInputOutputFromJSONTyped = TypesBnbMsgInputOutputFromJSONTyped;
25642function TypesBnbMsgInputOutputToJSON(value) {
25643  if (value === void 0) {
25644    return void 0;
25645  }
25646  if (value === null) {
25647    return null;
25648  }
25649  return {
25650    "coins": value.coins.map(TypesBnbCoin_1.TypesBnbCoinToJSON),
25651    "address": (0, TypesBnbAddress_1$1.TypesBnbAddressToJSON)(value.address)
25652  };
25653}
25654TypesBnbMsgInputOutput.TypesBnbMsgInputOutputToJSON = TypesBnbMsgInputOutputToJSON;
25655Object.defineProperty(TypesBnbMsg, "__esModule", { value: true });
25656TypesBnbMsg.TypesBnbMsgToJSON = TypesBnbMsg.TypesBnbMsgFromJSONTyped = TypesBnbMsg.TypesBnbMsgFromJSON = TypesBnbMsg.instanceOfTypesBnbMsg = void 0;
25657const TypesBnbMsgInputOutput_1 = TypesBnbMsgInputOutput;
25658function instanceOfTypesBnbMsg(value) {
25659  let isInstance = true;
25660  isInstance = isInstance && "outputs" in value;
25661  isInstance = isInstance && "inputs" in value;
25662  return isInstance;
25663}
25664TypesBnbMsg.instanceOfTypesBnbMsg = instanceOfTypesBnbMsg;
25665function TypesBnbMsgFromJSON(json) {
25666  return TypesBnbMsgFromJSONTyped(json);
25667}
25668TypesBnbMsg.TypesBnbMsgFromJSON = TypesBnbMsgFromJSON;
25669function TypesBnbMsgFromJSONTyped(json, ignoreDiscriminator) {
25670  if (json === void 0 || json === null) {
25671    return json;
25672  }
25673  return {
25674    "outputs": json["outputs"].map(TypesBnbMsgInputOutput_1.TypesBnbMsgInputOutputFromJSON),
25675    "inputs": json["inputs"].map(TypesBnbMsgInputOutput_1.TypesBnbMsgInputOutputFromJSON)
25676  };
25677}
25678TypesBnbMsg.TypesBnbMsgFromJSONTyped = TypesBnbMsgFromJSONTyped;
25679function TypesBnbMsgToJSON(value) {
25680  if (value === void 0) {
25681    return void 0;
25682  }
25683  if (value === null) {
25684    return null;
25685  }
25686  return {
25687    "outputs": value.outputs.map(TypesBnbMsgInputOutput_1.TypesBnbMsgInputOutputToJSON),
25688    "inputs": value.inputs.map(TypesBnbMsgInputOutput_1.TypesBnbMsgInputOutputToJSON)
25689  };
25690}
25691TypesBnbMsg.TypesBnbMsgToJSON = TypesBnbMsgToJSON;
25692Object.defineProperty(TypesBnbSignDoc, "__esModule", { value: true });
25693TypesBnbSignDoc.TypesBnbSignDocToJSON = TypesBnbSignDoc.TypesBnbSignDocFromJSONTyped = TypesBnbSignDoc.TypesBnbSignDocFromJSON = TypesBnbSignDoc.instanceOfTypesBnbSignDoc = void 0;
25694const TypesBnbMsg_1 = TypesBnbMsg;
25695function instanceOfTypesBnbSignDoc(value) {
25696  let isInstance = true;
25697  isInstance = isInstance && "msgs" in value;
25698  isInstance = isInstance && "memo" in value;
25699  isInstance = isInstance && "source" in value;
25700  isInstance = isInstance && "sequence" in value;
25701  isInstance = isInstance && "chain_id" in value;
25702  isInstance = isInstance && "account_number" in value;
25703  return isInstance;
25704}
25705TypesBnbSignDoc.instanceOfTypesBnbSignDoc = instanceOfTypesBnbSignDoc;
25706function TypesBnbSignDocFromJSON(json) {
25707  return TypesBnbSignDocFromJSONTyped(json);
25708}
25709TypesBnbSignDoc.TypesBnbSignDocFromJSON = TypesBnbSignDocFromJSON;
25710function TypesBnbSignDocFromJSONTyped(json, ignoreDiscriminator) {
25711  if (json === void 0 || json === null) {
25712    return json;
25713  }
25714  return {
25715    "msgs": json["msgs"].map(TypesBnbMsg_1.TypesBnbMsgFromJSON),
25716    "memo": json["memo"],
25717    "source": json["source"],
25718    "sequence": json["sequence"],
25719    "chain_id": json["chain_id"],
25720    "account_number": json["account_number"]
25721  };
25722}
25723TypesBnbSignDoc.TypesBnbSignDocFromJSONTyped = TypesBnbSignDocFromJSONTyped;
25724function TypesBnbSignDocToJSON(value) {
25725  if (value === void 0) {
25726    return void 0;
25727  }
25728  if (value === null) {
25729    return null;
25730  }
25731  return {
25732    "msgs": value.msgs.map(TypesBnbMsg_1.TypesBnbMsgToJSON),
25733    "memo": value.memo,
25734    "source": value.source,
25735    "sequence": value.sequence,
25736    "chain_id": value.chain_id,
25737    "account_number": value.account_number
25738  };
25739}
25740TypesBnbSignDoc.TypesBnbSignDocToJSON = TypesBnbSignDocToJSON;
25741var TypesHexSecp256k1Signature = {};
25742Object.defineProperty(TypesHexSecp256k1Signature, "__esModule", { value: true });
25743TypesHexSecp256k1Signature.TypesHexSecp256k1SignatureToJSON = TypesHexSecp256k1Signature.TypesHexSecp256k1SignatureFromJSONTyped = TypesHexSecp256k1Signature.TypesHexSecp256k1SignatureFromJSON = TypesHexSecp256k1Signature.instanceOfTypesHexSecp256k1Signature = void 0;
25744function instanceOfTypesHexSecp256k1Signature(value) {
25745  let isInstance = true;
25746  return isInstance;
25747}
25748TypesHexSecp256k1Signature.instanceOfTypesHexSecp256k1Signature = instanceOfTypesHexSecp256k1Signature;
25749function TypesHexSecp256k1SignatureFromJSON(json) {
25750  return TypesHexSecp256k1SignatureFromJSONTyped(json);
25751}
25752TypesHexSecp256k1Signature.TypesHexSecp256k1SignatureFromJSON = TypesHexSecp256k1SignatureFromJSON;
25753function TypesHexSecp256k1SignatureFromJSONTyped(json, ignoreDiscriminator) {
25754  return json;
25755}
25756TypesHexSecp256k1Signature.TypesHexSecp256k1SignatureFromJSONTyped = TypesHexSecp256k1SignatureFromJSONTyped;
25757function TypesHexSecp256k1SignatureToJSON(value) {
25758  return value;
25759}
25760TypesHexSecp256k1Signature.TypesHexSecp256k1SignatureToJSON = TypesHexSecp256k1SignatureToJSON;
25761Object.defineProperty(BnbSignTransaction200Response, "__esModule", { value: true });
25762BnbSignTransaction200Response.BnbSignTransaction200ResponseToJSON = BnbSignTransaction200Response.BnbSignTransaction200ResponseFromJSONTyped = BnbSignTransaction200Response.BnbSignTransaction200ResponseFromJSON = BnbSignTransaction200Response.instanceOfBnbSignTransaction200Response = void 0;
25763const TypesBnbSignDoc_1$1 = TypesBnbSignDoc;
25764const TypesHexSecp256k1Signature_1$1 = TypesHexSecp256k1Signature;
25765function instanceOfBnbSignTransaction200Response(value) {
25766  let isInstance = true;
25767  isInstance = isInstance && "signed" in value;
25768  isInstance = isInstance && "signature" in value;
25769  return isInstance;
25770}
25771BnbSignTransaction200Response.instanceOfBnbSignTransaction200Response = instanceOfBnbSignTransaction200Response;
25772function BnbSignTransaction200ResponseFromJSON(json) {
25773  return BnbSignTransaction200ResponseFromJSONTyped(json);
25774}
25775BnbSignTransaction200Response.BnbSignTransaction200ResponseFromJSON = BnbSignTransaction200ResponseFromJSON;
25776function BnbSignTransaction200ResponseFromJSONTyped(json, ignoreDiscriminator) {
25777  if (json === void 0 || json === null) {
25778    return json;
25779  }
25780  return {
25781    "signed": (0, TypesBnbSignDoc_1$1.TypesBnbSignDocFromJSON)(json["signed"]),
25782    "signature": (0, TypesHexSecp256k1Signature_1$1.TypesHexSecp256k1SignatureFromJSON)(json["signature"])
25783  };
25784}
25785BnbSignTransaction200Response.BnbSignTransaction200ResponseFromJSONTyped = BnbSignTransaction200ResponseFromJSONTyped;
25786function BnbSignTransaction200ResponseToJSON(value) {
25787  if (value === void 0) {
25788    return void 0;
25789  }
25790  if (value === null) {
25791    return null;
25792  }
25793  return {
25794    "signed": (0, TypesBnbSignDoc_1$1.TypesBnbSignDocToJSON)(value.signed),
25795    "signature": (0, TypesHexSecp256k1Signature_1$1.TypesHexSecp256k1SignatureToJSON)(value.signature)
25796  };
25797}
25798BnbSignTransaction200Response.BnbSignTransaction200ResponseToJSON = BnbSignTransaction200ResponseToJSON;
25799var BnbSignTransactionRequest = {};
25800Object.defineProperty(BnbSignTransactionRequest, "__esModule", { value: true });
25801BnbSignTransactionRequest.BnbSignTransactionRequestToJSON = BnbSignTransactionRequest.BnbSignTransactionRequestFromJSONTyped = BnbSignTransactionRequest.BnbSignTransactionRequestFromJSON = BnbSignTransactionRequest.instanceOfBnbSignTransactionRequest = void 0;
25802const TypesBnbAddress_1 = TypesBnbAddress;
25803const TypesBnbSignDoc_1 = TypesBnbSignDoc;
25804function instanceOfBnbSignTransactionRequest(value) {
25805  let isInstance = true;
25806  isInstance = isInstance && "signDoc" in value;
25807  isInstance = isInstance && "signerAddress" in value;
25808  return isInstance;
25809}
25810BnbSignTransactionRequest.instanceOfBnbSignTransactionRequest = instanceOfBnbSignTransactionRequest;
25811function BnbSignTransactionRequestFromJSON(json) {
25812  return BnbSignTransactionRequestFromJSONTyped(json);
25813}
25814BnbSignTransactionRequest.BnbSignTransactionRequestFromJSON = BnbSignTransactionRequestFromJSON;
25815function BnbSignTransactionRequestFromJSONTyped(json, ignoreDiscriminator) {
25816  if (json === void 0 || json === null) {
25817    return json;
25818  }
25819  return {
25820    "signDoc": (0, TypesBnbSignDoc_1.TypesBnbSignDocFromJSON)(json["signDoc"]),
25821    "signerAddress": (0, TypesBnbAddress_1.TypesBnbAddressFromJSON)(json["signerAddress"])
25822  };
25823}
25824BnbSignTransactionRequest.BnbSignTransactionRequestFromJSONTyped = BnbSignTransactionRequestFromJSONTyped;
25825function BnbSignTransactionRequestToJSON(value) {
25826  if (value === void 0) {
25827    return void 0;
25828  }
25829  if (value === null) {
25830    return null;
25831  }
25832  return {
25833    "signDoc": (0, TypesBnbSignDoc_1.TypesBnbSignDocToJSON)(value.signDoc),
25834    "signerAddress": (0, TypesBnbAddress_1.TypesBnbAddressToJSON)(value.signerAddress)
25835  };
25836}
25837BnbSignTransactionRequest.BnbSignTransactionRequestToJSON = BnbSignTransactionRequestToJSON;
25838var ChangePinRequest = {};
25839Object.defineProperty(ChangePinRequest, "__esModule", { value: true });
25840ChangePinRequest.ChangePinRequestToJSON = ChangePinRequest.ChangePinRequestFromJSONTyped = ChangePinRequest.ChangePinRequestFromJSON = ChangePinRequest.instanceOfChangePinRequest = void 0;
25841const runtime_1$n = runtime$d;
25842function instanceOfChangePinRequest(value) {
25843  let isInstance = true;
25844  return isInstance;
25845}
25846ChangePinRequest.instanceOfChangePinRequest = instanceOfChangePinRequest;
25847function ChangePinRequestFromJSON(json) {
25848  return ChangePinRequestFromJSONTyped(json);
25849}
25850ChangePinRequest.ChangePinRequestFromJSON = ChangePinRequestFromJSON;
25851function ChangePinRequestFromJSONTyped(json, ignoreDiscriminator) {
25852  if (json === void 0 || json === null) {
25853    return json;
25854  }
25855  return {
25856    "remove": !(0, runtime_1$n.exists)(json, "remove") ? void 0 : json["remove"]
25857  };
25858}
25859ChangePinRequest.ChangePinRequestFromJSONTyped = ChangePinRequestFromJSONTyped;
25860function ChangePinRequestToJSON(value) {
25861  if (value === void 0) {
25862    return void 0;
25863  }
25864  if (value === null) {
25865    return null;
25866  }
25867  return {
25868    "remove": value.remove
25869  };
25870}
25871ChangePinRequest.ChangePinRequestToJSON = ChangePinRequestToJSON;
25872var CipherKeyValueRequest = {};
25873var CipherKeyValueRequestAllOfIv = {};
25874Object.defineProperty(CipherKeyValueRequestAllOfIv, "__esModule", { value: true });
25875CipherKeyValueRequestAllOfIv.CipherKeyValueRequestAllOfIvToJSON = CipherKeyValueRequestAllOfIv.CipherKeyValueRequestAllOfIvFromJSONTyped = CipherKeyValueRequestAllOfIv.CipherKeyValueRequestAllOfIvFromJSON = CipherKeyValueRequestAllOfIv.instanceOfCipherKeyValueRequestAllOfIv = void 0;
25876function instanceOfCipherKeyValueRequestAllOfIv(value) {
25877  let isInstance = true;
25878  return isInstance;
25879}
25880CipherKeyValueRequestAllOfIv.instanceOfCipherKeyValueRequestAllOfIv = instanceOfCipherKeyValueRequestAllOfIv;
25881function CipherKeyValueRequestAllOfIvFromJSON(json) {
25882  return CipherKeyValueRequestAllOfIvFromJSONTyped(json);
25883}
25884CipherKeyValueRequestAllOfIv.CipherKeyValueRequestAllOfIvFromJSON = CipherKeyValueRequestAllOfIvFromJSON;
25885function CipherKeyValueRequestAllOfIvFromJSONTyped(json, ignoreDiscriminator) {
25886  return json;
25887}
25888CipherKeyValueRequestAllOfIv.CipherKeyValueRequestAllOfIvFromJSONTyped = CipherKeyValueRequestAllOfIvFromJSONTyped;
25889function CipherKeyValueRequestAllOfIvToJSON(value) {
25890  return value;
25891}
25892CipherKeyValueRequestAllOfIv.CipherKeyValueRequestAllOfIvToJSON = CipherKeyValueRequestAllOfIvToJSON;
25893Object.defineProperty(CipherKeyValueRequest, "__esModule", { value: true });
25894CipherKeyValueRequest.CipherKeyValueRequestToJSON = CipherKeyValueRequest.CipherKeyValueRequestFromJSONTyped = CipherKeyValueRequest.CipherKeyValueRequestFromJSON = CipherKeyValueRequest.instanceOfCipherKeyValueRequest = CipherKeyValueRequest.CipherKeyValueRequestDecryptEnum = void 0;
25895const runtime_1$m = runtime$d;
25896const CipherKeyValueRequestAllOfIv_1$1 = CipherKeyValueRequestAllOfIv;
25897const TypesNumericU32_1$g = TypesNumericU32;
25898CipherKeyValueRequest.CipherKeyValueRequestDecryptEnum = {
25899  true: true
25900};
25901function instanceOfCipherKeyValueRequest(value) {
25902  let isInstance = true;
25903  isInstance = isInstance && "iv" in value;
25904  isInstance = isInstance && "decrypt" in value;
25905  isInstance = isInstance && "value" in value;
25906  isInstance = isInstance && "key" in value;
25907  isInstance = isInstance && "address_n_list" in value;
25908  return isInstance;
25909}
25910CipherKeyValueRequest.instanceOfCipherKeyValueRequest = instanceOfCipherKeyValueRequest;
25911function CipherKeyValueRequestFromJSON(json) {
25912  return CipherKeyValueRequestFromJSONTyped(json);
25913}
25914CipherKeyValueRequest.CipherKeyValueRequestFromJSON = CipherKeyValueRequestFromJSON;
25915function CipherKeyValueRequestFromJSONTyped(json, ignoreDiscriminator) {
25916  if (json === void 0 || json === null) {
25917    return json;
25918  }
25919  return {
25920    "iv": (0, CipherKeyValueRequestAllOfIv_1$1.CipherKeyValueRequestAllOfIvFromJSON)(json["iv"]),
25921    "ask_on_decrypt": !(0, runtime_1$m.exists)(json, "ask_on_decrypt") ? void 0 : json["ask_on_decrypt"],
25922    "ask_on_encrypt": !(0, runtime_1$m.exists)(json, "ask_on_encrypt") ? void 0 : json["ask_on_encrypt"],
25923    "decrypt": json["decrypt"],
25924    "value": json["value"],
25925    "key": json["key"],
25926    "address_n_list": json["address_n_list"].map(TypesNumericU32_1$g.TypesNumericU32FromJSON)
25927  };
25928}
25929CipherKeyValueRequest.CipherKeyValueRequestFromJSONTyped = CipherKeyValueRequestFromJSONTyped;
25930function CipherKeyValueRequestToJSON(value) {
25931  if (value === void 0) {
25932    return void 0;
25933  }
25934  if (value === null) {
25935    return null;
25936  }
25937  return {
25938    "iv": (0, CipherKeyValueRequestAllOfIv_1$1.CipherKeyValueRequestAllOfIvToJSON)(value.iv),
25939    "ask_on_decrypt": value.ask_on_decrypt,
25940    "ask_on_encrypt": value.ask_on_encrypt,
25941    "decrypt": value.decrypt,
25942    "value": value.value,
25943    "key": value.key,
25944    "address_n_list": value.address_n_list.map(TypesNumericU32_1$g.TypesNumericU32ToJSON)
25945  };
25946}
25947CipherKeyValueRequest.CipherKeyValueRequestToJSON = CipherKeyValueRequestToJSON;
25948var CipherKeyValueRequestAllOf = {};
25949Object.defineProperty(CipherKeyValueRequestAllOf, "__esModule", { value: true });
25950CipherKeyValueRequestAllOf.CipherKeyValueRequestAllOfToJSON = CipherKeyValueRequestAllOf.CipherKeyValueRequestAllOfFromJSONTyped = CipherKeyValueRequestAllOf.CipherKeyValueRequestAllOfFromJSON = CipherKeyValueRequestAllOf.instanceOfCipherKeyValueRequestAllOf = void 0;
25951const runtime_1$l = runtime$d;
25952const CipherKeyValueRequestAllOfIv_1 = CipherKeyValueRequestAllOfIv;
25953const TypesNumericU32_1$f = TypesNumericU32;
25954function instanceOfCipherKeyValueRequestAllOf(value) {
25955  let isInstance = true;
25956  isInstance = isInstance && "iv" in value;
25957  isInstance = isInstance && "value" in value;
25958  isInstance = isInstance && "key" in value;
25959  isInstance = isInstance && "address_n_list" in value;
25960  return isInstance;
25961}
25962CipherKeyValueRequestAllOf.instanceOfCipherKeyValueRequestAllOf = instanceOfCipherKeyValueRequestAllOf;
25963function CipherKeyValueRequestAllOfFromJSON(json) {
25964  return CipherKeyValueRequestAllOfFromJSONTyped(json);
25965}
25966CipherKeyValueRequestAllOf.CipherKeyValueRequestAllOfFromJSON = CipherKeyValueRequestAllOfFromJSON;
25967function CipherKeyValueRequestAllOfFromJSONTyped(json, ignoreDiscriminator) {
25968  if (json === void 0 || json === null) {
25969    return json;
25970  }
25971  return {
25972    "iv": (0, CipherKeyValueRequestAllOfIv_1.CipherKeyValueRequestAllOfIvFromJSON)(json["iv"]),
25973    "ask_on_decrypt": !(0, runtime_1$l.exists)(json, "ask_on_decrypt") ? void 0 : json["ask_on_decrypt"],
25974    "ask_on_encrypt": !(0, runtime_1$l.exists)(json, "ask_on_encrypt") ? void 0 : json["ask_on_encrypt"],
25975    "decrypt": !(0, runtime_1$l.exists)(json, "decrypt") ? void 0 : json["decrypt"],
25976    "value": json["value"],
25977    "key": json["key"],
25978    "address_n_list": json["address_n_list"].map(TypesNumericU32_1$f.TypesNumericU32FromJSON)
25979  };
25980}
25981CipherKeyValueRequestAllOf.CipherKeyValueRequestAllOfFromJSONTyped = CipherKeyValueRequestAllOfFromJSONTyped;
25982function CipherKeyValueRequestAllOfToJSON(value) {
25983  if (value === void 0) {
25984    return void 0;
25985  }
25986  if (value === null) {
25987    return null;
25988  }
25989  return {
25990    "iv": (0, CipherKeyValueRequestAllOfIv_1.CipherKeyValueRequestAllOfIvToJSON)(value.iv),
25991    "ask_on_decrypt": value.ask_on_decrypt,
25992    "ask_on_encrypt": value.ask_on_encrypt,
25993    "decrypt": value.decrypt,
25994    "value": value.value,
25995    "key": value.key,
25996    "address_n_list": value.address_n_list.map(TypesNumericU32_1$f.TypesNumericU32ToJSON)
25997  };
25998}
25999CipherKeyValueRequestAllOf.CipherKeyValueRequestAllOfToJSON = CipherKeyValueRequestAllOfToJSON;
26000var CipherKeyValueRequestAllOf1 = {};
26001Object.defineProperty(CipherKeyValueRequestAllOf1, "__esModule", { value: true });
26002CipherKeyValueRequestAllOf1.CipherKeyValueRequestAllOf1ToJSON = CipherKeyValueRequestAllOf1.CipherKeyValueRequestAllOf1FromJSONTyped = CipherKeyValueRequestAllOf1.CipherKeyValueRequestAllOf1FromJSON = CipherKeyValueRequestAllOf1.instanceOfCipherKeyValueRequestAllOf1 = CipherKeyValueRequestAllOf1.CipherKeyValueRequestAllOf1DecryptEnum = void 0;
26003CipherKeyValueRequestAllOf1.CipherKeyValueRequestAllOf1DecryptEnum = {
26004  true: true
26005};
26006function instanceOfCipherKeyValueRequestAllOf1(value) {
26007  let isInstance = true;
26008  isInstance = isInstance && "decrypt" in value;
26009  isInstance = isInstance && "value" in value;
26010  return isInstance;
26011}
26012CipherKeyValueRequestAllOf1.instanceOfCipherKeyValueRequestAllOf1 = instanceOfCipherKeyValueRequestAllOf1;
26013function CipherKeyValueRequestAllOf1FromJSON(json) {
26014  return CipherKeyValueRequestAllOf1FromJSONTyped(json);
26015}
26016CipherKeyValueRequestAllOf1.CipherKeyValueRequestAllOf1FromJSON = CipherKeyValueRequestAllOf1FromJSON;
26017function CipherKeyValueRequestAllOf1FromJSONTyped(json, ignoreDiscriminator) {
26018  if (json === void 0 || json === null) {
26019    return json;
26020  }
26021  return {
26022    "decrypt": json["decrypt"],
26023    "value": json["value"]
26024  };
26025}
26026CipherKeyValueRequestAllOf1.CipherKeyValueRequestAllOf1FromJSONTyped = CipherKeyValueRequestAllOf1FromJSONTyped;
26027function CipherKeyValueRequestAllOf1ToJSON(value) {
26028  if (value === void 0) {
26029    return void 0;
26030  }
26031  if (value === null) {
26032    return null;
26033  }
26034  return {
26035    "decrypt": value.decrypt,
26036    "value": value.value
26037  };
26038}
26039CipherKeyValueRequestAllOf1.CipherKeyValueRequestAllOf1ToJSON = CipherKeyValueRequestAllOf1ToJSON;
26040var CipherKeyValueRequestAllOf1AnyOf = {};
26041Object.defineProperty(CipherKeyValueRequestAllOf1AnyOf, "__esModule", { value: true });
26042CipherKeyValueRequestAllOf1AnyOf.CipherKeyValueRequestAllOf1AnyOfToJSON = CipherKeyValueRequestAllOf1AnyOf.CipherKeyValueRequestAllOf1AnyOfFromJSONTyped = CipherKeyValueRequestAllOf1AnyOf.CipherKeyValueRequestAllOf1AnyOfFromJSON = CipherKeyValueRequestAllOf1AnyOf.instanceOfCipherKeyValueRequestAllOf1AnyOf = CipherKeyValueRequestAllOf1AnyOf.CipherKeyValueRequestAllOf1AnyOfDecryptEnum = void 0;
26043const runtime_1$k = runtime$d;
26044CipherKeyValueRequestAllOf1AnyOf.CipherKeyValueRequestAllOf1AnyOfDecryptEnum = {
26045  false: false
26046};
26047function instanceOfCipherKeyValueRequestAllOf1AnyOf(value) {
26048  let isInstance = true;
26049  isInstance = isInstance && "value" in value;
26050  return isInstance;
26051}
26052CipherKeyValueRequestAllOf1AnyOf.instanceOfCipherKeyValueRequestAllOf1AnyOf = instanceOfCipherKeyValueRequestAllOf1AnyOf;
26053function CipherKeyValueRequestAllOf1AnyOfFromJSON(json) {
26054  return CipherKeyValueRequestAllOf1AnyOfFromJSONTyped(json);
26055}
26056CipherKeyValueRequestAllOf1AnyOf.CipherKeyValueRequestAllOf1AnyOfFromJSON = CipherKeyValueRequestAllOf1AnyOfFromJSON;
26057function CipherKeyValueRequestAllOf1AnyOfFromJSONTyped(json, ignoreDiscriminator) {
26058  if (json === void 0 || json === null) {
26059    return json;
26060  }
26061  return {
26062    "decrypt": !(0, runtime_1$k.exists)(json, "decrypt") ? void 0 : json["decrypt"],
26063    "value": json["value"]
26064  };
26065}
26066CipherKeyValueRequestAllOf1AnyOf.CipherKeyValueRequestAllOf1AnyOfFromJSONTyped = CipherKeyValueRequestAllOf1AnyOfFromJSONTyped;
26067function CipherKeyValueRequestAllOf1AnyOfToJSON(value) {
26068  if (value === void 0) {
26069    return void 0;
26070  }
26071  if (value === null) {
26072    return null;
26073  }
26074  return {
26075    "decrypt": value.decrypt,
26076    "value": value.value
26077  };
26078}
26079CipherKeyValueRequestAllOf1AnyOf.CipherKeyValueRequestAllOf1AnyOfToJSON = CipherKeyValueRequestAllOf1AnyOfToJSON;
26080var CipherKeyValueRequestAllOf1AnyOf1 = {};
26081Object.defineProperty(CipherKeyValueRequestAllOf1AnyOf1, "__esModule", { value: true });
26082CipherKeyValueRequestAllOf1AnyOf1.CipherKeyValueRequestAllOf1AnyOf1ToJSON = CipherKeyValueRequestAllOf1AnyOf1.CipherKeyValueRequestAllOf1AnyOf1FromJSONTyped = CipherKeyValueRequestAllOf1AnyOf1.CipherKeyValueRequestAllOf1AnyOf1FromJSON = CipherKeyValueRequestAllOf1AnyOf1.instanceOfCipherKeyValueRequestAllOf1AnyOf1 = CipherKeyValueRequestAllOf1AnyOf1.CipherKeyValueRequestAllOf1AnyOf1DecryptEnum = void 0;
26083CipherKeyValueRequestAllOf1AnyOf1.CipherKeyValueRequestAllOf1AnyOf1DecryptEnum = {
26084  true: true
26085};
26086function instanceOfCipherKeyValueRequestAllOf1AnyOf1(value) {
26087  let isInstance = true;
26088  isInstance = isInstance && "decrypt" in value;
26089  isInstance = isInstance && "value" in value;
26090  return isInstance;
26091}
26092CipherKeyValueRequestAllOf1AnyOf1.instanceOfCipherKeyValueRequestAllOf1AnyOf1 = instanceOfCipherKeyValueRequestAllOf1AnyOf1;
26093function CipherKeyValueRequestAllOf1AnyOf1FromJSON(json) {
26094  return CipherKeyValueRequestAllOf1AnyOf1FromJSONTyped(json);
26095}
26096CipherKeyValueRequestAllOf1AnyOf1.CipherKeyValueRequestAllOf1AnyOf1FromJSON = CipherKeyValueRequestAllOf1AnyOf1FromJSON;
26097function CipherKeyValueRequestAllOf1AnyOf1FromJSONTyped(json, ignoreDiscriminator) {
26098  if (json === void 0 || json === null) {
26099    return json;
26100  }
26101  return {
26102    "decrypt": json["decrypt"],
26103    "value": json["value"]
26104  };
26105}
26106CipherKeyValueRequestAllOf1AnyOf1.CipherKeyValueRequestAllOf1AnyOf1FromJSONTyped = CipherKeyValueRequestAllOf1AnyOf1FromJSONTyped;
26107function CipherKeyValueRequestAllOf1AnyOf1ToJSON(value) {
26108  if (value === void 0) {
26109    return void 0;
26110  }
26111  if (value === null) {
26112    return null;
26113  }
26114  return {
26115    "decrypt": value.decrypt,
26116    "value": value.value
26117  };
26118}
26119CipherKeyValueRequestAllOf1AnyOf1.CipherKeyValueRequestAllOf1AnyOf1ToJSON = CipherKeyValueRequestAllOf1AnyOf1ToJSON;
26120var CosmosGetAddress200Response = {};
26121Object.defineProperty(CosmosGetAddress200Response, "__esModule", { value: true });
26122CosmosGetAddress200Response.CosmosGetAddress200ResponseToJSON = CosmosGetAddress200Response.CosmosGetAddress200ResponseFromJSONTyped = CosmosGetAddress200Response.CosmosGetAddress200ResponseFromJSON = CosmosGetAddress200Response.instanceOfCosmosGetAddress200Response = void 0;
26123function instanceOfCosmosGetAddress200Response(value) {
26124  let isInstance = true;
26125  isInstance = isInstance && "address" in value;
26126  return isInstance;
26127}
26128CosmosGetAddress200Response.instanceOfCosmosGetAddress200Response = instanceOfCosmosGetAddress200Response;
26129function CosmosGetAddress200ResponseFromJSON(json) {
26130  return CosmosGetAddress200ResponseFromJSONTyped(json);
26131}
26132CosmosGetAddress200Response.CosmosGetAddress200ResponseFromJSON = CosmosGetAddress200ResponseFromJSON;
26133function CosmosGetAddress200ResponseFromJSONTyped(json, ignoreDiscriminator) {
26134  if (json === void 0 || json === null) {
26135    return json;
26136  }
26137  return {
26138    "address": json["address"]
26139  };
26140}
26141CosmosGetAddress200Response.CosmosGetAddress200ResponseFromJSONTyped = CosmosGetAddress200ResponseFromJSONTyped;
26142function CosmosGetAddress200ResponseToJSON(value) {
26143  if (value === void 0) {
26144    return void 0;
26145  }
26146  if (value === null) {
26147    return null;
26148  }
26149  return {
26150    "address": value.address
26151  };
26152}
26153CosmosGetAddress200Response.CosmosGetAddress200ResponseToJSON = CosmosGetAddress200ResponseToJSON;
26154var CosmosSignAmino200Response = {};
26155var TypesCosmosAminoSignDoc = {};
26156var TypesCosmosAminoSignDocFee = {};
26157var TypesCosmosCoin = {};
26158Object.defineProperty(TypesCosmosCoin, "__esModule", { value: true });
26159TypesCosmosCoin.TypesCosmosCoinToJSON = TypesCosmosCoin.TypesCosmosCoinFromJSONTyped = TypesCosmosCoin.TypesCosmosCoinFromJSON = TypesCosmosCoin.instanceOfTypesCosmosCoin = void 0;
26160function instanceOfTypesCosmosCoin(value) {
26161  let isInstance = true;
26162  isInstance = isInstance && "denom" in value;
26163  isInstance = isInstance && "amount" in value;
26164  return isInstance;
26165}
26166TypesCosmosCoin.instanceOfTypesCosmosCoin = instanceOfTypesCosmosCoin;
26167function TypesCosmosCoinFromJSON(json) {
26168  return TypesCosmosCoinFromJSONTyped(json);
26169}
26170TypesCosmosCoin.TypesCosmosCoinFromJSON = TypesCosmosCoinFromJSON;
26171function TypesCosmosCoinFromJSONTyped(json, ignoreDiscriminator) {
26172  if (json === void 0 || json === null) {
26173    return json;
26174  }
26175  return {
26176    "denom": json["denom"],
26177    "amount": json["amount"]
26178  };
26179}
26180TypesCosmosCoin.TypesCosmosCoinFromJSONTyped = TypesCosmosCoinFromJSONTyped;
26181function TypesCosmosCoinToJSON(value) {
26182  if (value === void 0) {
26183    return void 0;
26184  }
26185  if (value === null) {
26186    return null;
26187  }
26188  return {
26189    "denom": value.denom,
26190    "amount": value.amount
26191  };
26192}
26193TypesCosmosCoin.TypesCosmosCoinToJSON = TypesCosmosCoinToJSON;
26194Object.defineProperty(TypesCosmosAminoSignDocFee, "__esModule", { value: true });
26195TypesCosmosAminoSignDocFee.TypesCosmosAminoSignDocFeeToJSON = TypesCosmosAminoSignDocFee.TypesCosmosAminoSignDocFeeFromJSONTyped = TypesCosmosAminoSignDocFee.TypesCosmosAminoSignDocFeeFromJSON = TypesCosmosAminoSignDocFee.instanceOfTypesCosmosAminoSignDocFee = void 0;
26196const TypesCosmosCoin_1$5 = TypesCosmosCoin;
26197function instanceOfTypesCosmosAminoSignDocFee(value) {
26198  let isInstance = true;
26199  isInstance = isInstance && "gas" in value;
26200  isInstance = isInstance && "amount" in value;
26201  return isInstance;
26202}
26203TypesCosmosAminoSignDocFee.instanceOfTypesCosmosAminoSignDocFee = instanceOfTypesCosmosAminoSignDocFee;
26204function TypesCosmosAminoSignDocFeeFromJSON(json) {
26205  return TypesCosmosAminoSignDocFeeFromJSONTyped(json);
26206}
26207TypesCosmosAminoSignDocFee.TypesCosmosAminoSignDocFeeFromJSON = TypesCosmosAminoSignDocFeeFromJSON;
26208function TypesCosmosAminoSignDocFeeFromJSONTyped(json, ignoreDiscriminator) {
26209  if (json === void 0 || json === null) {
26210    return json;
26211  }
26212  return {
26213    "gas": json["gas"],
26214    "amount": json["amount"].map(TypesCosmosCoin_1$5.TypesCosmosCoinFromJSON)
26215  };
26216}
26217TypesCosmosAminoSignDocFee.TypesCosmosAminoSignDocFeeFromJSONTyped = TypesCosmosAminoSignDocFeeFromJSONTyped;
26218function TypesCosmosAminoSignDocFeeToJSON(value) {
26219  if (value === void 0) {
26220    return void 0;
26221  }
26222  if (value === null) {
26223    return null;
26224  }
26225  return {
26226    "gas": value.gas,
26227    "amount": value.amount.map(TypesCosmosCoin_1$5.TypesCosmosCoinToJSON)
26228  };
26229}
26230TypesCosmosAminoSignDocFee.TypesCosmosAminoSignDocFeeToJSON = TypesCosmosAminoSignDocFeeToJSON;
26231var TypesCosmosAminoSignDocMsgsInner = {};
26232var TypesCosmosMessagesThornodeSend = {};
26233Object.defineProperty(TypesCosmosMessagesThornodeSend, "__esModule", { value: true });
26234TypesCosmosMessagesThornodeSend.TypesCosmosMessagesThornodeSendToJSON = TypesCosmosMessagesThornodeSend.TypesCosmosMessagesThornodeSendFromJSONTyped = TypesCosmosMessagesThornodeSend.TypesCosmosMessagesThornodeSendFromJSON = TypesCosmosMessagesThornodeSend.instanceOfTypesCosmosMessagesThornodeSend = void 0;
26235const TypesCosmosCoin_1$4 = TypesCosmosCoin;
26236function instanceOfTypesCosmosMessagesThornodeSend(value) {
26237  let isInstance = true;
26238  isInstance = isInstance && "amount" in value;
26239  isInstance = isInstance && "to_address" in value;
26240  isInstance = isInstance && "from_address" in value;
26241  return isInstance;
26242}
26243TypesCosmosMessagesThornodeSend.instanceOfTypesCosmosMessagesThornodeSend = instanceOfTypesCosmosMessagesThornodeSend;
26244function TypesCosmosMessagesThornodeSendFromJSON(json) {
26245  return TypesCosmosMessagesThornodeSendFromJSONTyped(json);
26246}
26247TypesCosmosMessagesThornodeSend.TypesCosmosMessagesThornodeSendFromJSON = TypesCosmosMessagesThornodeSendFromJSON;
26248function TypesCosmosMessagesThornodeSendFromJSONTyped(json, ignoreDiscriminator) {
26249  if (json === void 0 || json === null) {
26250    return json;
26251  }
26252  return {
26253    "amount": json["amount"].map(TypesCosmosCoin_1$4.TypesCosmosCoinFromJSON),
26254    "to_address": json["to_address"],
26255    "from_address": json["from_address"]
26256  };
26257}
26258TypesCosmosMessagesThornodeSend.TypesCosmosMessagesThornodeSendFromJSONTyped = TypesCosmosMessagesThornodeSendFromJSONTyped;
26259function TypesCosmosMessagesThornodeSendToJSON(value) {
26260  if (value === void 0) {
26261    return void 0;
26262  }
26263  if (value === null) {
26264    return null;
26265  }
26266  return {
26267    "amount": value.amount.map(TypesCosmosCoin_1$4.TypesCosmosCoinToJSON),
26268    "to_address": value.to_address,
26269    "from_address": value.from_address
26270  };
26271}
26272TypesCosmosMessagesThornodeSend.TypesCosmosMessagesThornodeSendToJSON = TypesCosmosMessagesThornodeSendToJSON;
26273Object.defineProperty(TypesCosmosAminoSignDocMsgsInner, "__esModule", { value: true });
26274TypesCosmosAminoSignDocMsgsInner.TypesCosmosAminoSignDocMsgsInnerToJSON = TypesCosmosAminoSignDocMsgsInner.TypesCosmosAminoSignDocMsgsInnerFromJSONTyped = TypesCosmosAminoSignDocMsgsInner.TypesCosmosAminoSignDocMsgsInnerFromJSON = TypesCosmosAminoSignDocMsgsInner.instanceOfTypesCosmosAminoSignDocMsgsInner = TypesCosmosAminoSignDocMsgsInner.TypesCosmosAminoSignDocMsgsInnerTypeEnum = void 0;
26275const TypesCosmosMessagesThornodeSend_1$2 = TypesCosmosMessagesThornodeSend;
26276TypesCosmosAminoSignDocMsgsInner.TypesCosmosAminoSignDocMsgsInnerTypeEnum = {
26277  thorchain_MsgSend: "thorchain/MsgSend"
26278};
26279function instanceOfTypesCosmosAminoSignDocMsgsInner(value) {
26280  let isInstance = true;
26281  isInstance = isInstance && "value" in value;
26282  isInstance = isInstance && "type" in value;
26283  return isInstance;
26284}
26285TypesCosmosAminoSignDocMsgsInner.instanceOfTypesCosmosAminoSignDocMsgsInner = instanceOfTypesCosmosAminoSignDocMsgsInner;
26286function TypesCosmosAminoSignDocMsgsInnerFromJSON(json) {
26287  return TypesCosmosAminoSignDocMsgsInnerFromJSONTyped(json);
26288}
26289TypesCosmosAminoSignDocMsgsInner.TypesCosmosAminoSignDocMsgsInnerFromJSON = TypesCosmosAminoSignDocMsgsInnerFromJSON;
26290function TypesCosmosAminoSignDocMsgsInnerFromJSONTyped(json, ignoreDiscriminator) {
26291  if (json === void 0 || json === null) {
26292    return json;
26293  }
26294  return {
26295    "value": (0, TypesCosmosMessagesThornodeSend_1$2.TypesCosmosMessagesThornodeSendFromJSON)(json["value"]),
26296    "type": json["type"]
26297  };
26298}
26299TypesCosmosAminoSignDocMsgsInner.TypesCosmosAminoSignDocMsgsInnerFromJSONTyped = TypesCosmosAminoSignDocMsgsInnerFromJSONTyped;
26300function TypesCosmosAminoSignDocMsgsInnerToJSON(value) {
26301  if (value === void 0) {
26302    return void 0;
26303  }
26304  if (value === null) {
26305    return null;
26306  }
26307  return {
26308    "value": (0, TypesCosmosMessagesThornodeSend_1$2.TypesCosmosMessagesThornodeSendToJSON)(value.value),
26309    "type": value.type
26310  };
26311}
26312TypesCosmosAminoSignDocMsgsInner.TypesCosmosAminoSignDocMsgsInnerToJSON = TypesCosmosAminoSignDocMsgsInnerToJSON;
26313Object.defineProperty(TypesCosmosAminoSignDoc, "__esModule", { value: true });
26314TypesCosmosAminoSignDoc.TypesCosmosAminoSignDocToJSON = TypesCosmosAminoSignDoc.TypesCosmosAminoSignDocFromJSONTyped = TypesCosmosAminoSignDoc.TypesCosmosAminoSignDocFromJSON = TypesCosmosAminoSignDoc.instanceOfTypesCosmosAminoSignDoc = void 0;
26315const TypesCosmosAminoSignDocFee_1 = TypesCosmosAminoSignDocFee;
26316const TypesCosmosAminoSignDocMsgsInner_1 = TypesCosmosAminoSignDocMsgsInner;
26317function instanceOfTypesCosmosAminoSignDoc(value) {
26318  let isInstance = true;
26319  isInstance = isInstance && "fee" in value;
26320  isInstance = isInstance && "msgs" in value;
26321  isInstance = isInstance && "memo" in value;
26322  isInstance = isInstance && "sequence" in value;
26323  isInstance = isInstance && "chain_id" in value;
26324  isInstance = isInstance && "account_number" in value;
26325  return isInstance;
26326}
26327TypesCosmosAminoSignDoc.instanceOfTypesCosmosAminoSignDoc = instanceOfTypesCosmosAminoSignDoc;
26328function TypesCosmosAminoSignDocFromJSON(json) {
26329  return TypesCosmosAminoSignDocFromJSONTyped(json);
26330}
26331TypesCosmosAminoSignDoc.TypesCosmosAminoSignDocFromJSON = TypesCosmosAminoSignDocFromJSON;
26332function TypesCosmosAminoSignDocFromJSONTyped(json, ignoreDiscriminator) {
26333  if (json === void 0 || json === null) {
26334    return json;
26335  }
26336  return {
26337    "fee": (0, TypesCosmosAminoSignDocFee_1.TypesCosmosAminoSignDocFeeFromJSON)(json["fee"]),
26338    "msgs": json["msgs"].map(TypesCosmosAminoSignDocMsgsInner_1.TypesCosmosAminoSignDocMsgsInnerFromJSON),
26339    "memo": json["memo"],
26340    "sequence": json["sequence"],
26341    "chain_id": json["chain_id"],
26342    "account_number": json["account_number"]
26343  };
26344}
26345TypesCosmosAminoSignDoc.TypesCosmosAminoSignDocFromJSONTyped = TypesCosmosAminoSignDocFromJSONTyped;
26346function TypesCosmosAminoSignDocToJSON(value) {
26347  if (value === void 0) {
26348    return void 0;
26349  }
26350  if (value === null) {
26351    return null;
26352  }
26353  return {
26354    "fee": (0, TypesCosmosAminoSignDocFee_1.TypesCosmosAminoSignDocFeeToJSON)(value.fee),
26355    "msgs": value.msgs.map(TypesCosmosAminoSignDocMsgsInner_1.TypesCosmosAminoSignDocMsgsInnerToJSON),
26356    "memo": value.memo,
26357    "sequence": value.sequence,
26358    "chain_id": value.chain_id,
26359    "account_number": value.account_number
26360  };
26361}
26362TypesCosmosAminoSignDoc.TypesCosmosAminoSignDocToJSON = TypesCosmosAminoSignDocToJSON;
26363Object.defineProperty(CosmosSignAmino200Response, "__esModule", { value: true });
26364CosmosSignAmino200Response.CosmosSignAmino200ResponseToJSON = CosmosSignAmino200Response.CosmosSignAmino200ResponseFromJSONTyped = CosmosSignAmino200Response.CosmosSignAmino200ResponseFromJSON = CosmosSignAmino200Response.instanceOfCosmosSignAmino200Response = void 0;
26365const TypesCosmosAminoSignDoc_1$1 = TypesCosmosAminoSignDoc;
26366const TypesHexSecp256k1Signature_1 = TypesHexSecp256k1Signature;
26367function instanceOfCosmosSignAmino200Response(value) {
26368  let isInstance = true;
26369  isInstance = isInstance && "signed" in value;
26370  isInstance = isInstance && "serialized" in value;
26371  isInstance = isInstance && "signature" in value;
26372  return isInstance;
26373}
26374CosmosSignAmino200Response.instanceOfCosmosSignAmino200Response = instanceOfCosmosSignAmino200Response;
26375function CosmosSignAmino200ResponseFromJSON(json) {
26376  return CosmosSignAmino200ResponseFromJSONTyped(json);
26377}
26378CosmosSignAmino200Response.CosmosSignAmino200ResponseFromJSON = CosmosSignAmino200ResponseFromJSON;
26379function CosmosSignAmino200ResponseFromJSONTyped(json, ignoreDiscriminator) {
26380  if (json === void 0 || json === null) {
26381    return json;
26382  }
26383  return {
26384    "signed": (0, TypesCosmosAminoSignDoc_1$1.TypesCosmosAminoSignDocFromJSON)(json["signed"]),
26385    "serialized": json["serialized"],
26386    "signature": (0, TypesHexSecp256k1Signature_1.TypesHexSecp256k1SignatureFromJSON)(json["signature"])
26387  };
26388}
26389CosmosSignAmino200Response.CosmosSignAmino200ResponseFromJSONTyped = CosmosSignAmino200ResponseFromJSONTyped;
26390function CosmosSignAmino200ResponseToJSON(value) {
26391  if (value === void 0) {
26392    return void 0;
26393  }
26394  if (value === null) {
26395    return null;
26396  }
26397  return {
26398    "signed": (0, TypesCosmosAminoSignDoc_1$1.TypesCosmosAminoSignDocToJSON)(value.signed),
26399    "serialized": value.serialized,
26400    "signature": (0, TypesHexSecp256k1Signature_1.TypesHexSecp256k1SignatureToJSON)(value.signature)
26401  };
26402}
26403CosmosSignAmino200Response.CosmosSignAmino200ResponseToJSON = CosmosSignAmino200ResponseToJSON;
26404var CosmosSignAminoRequest = {};
26405Object.defineProperty(CosmosSignAminoRequest, "__esModule", { value: true });
26406CosmosSignAminoRequest.CosmosSignAminoRequestToJSON = CosmosSignAminoRequest.CosmosSignAminoRequestFromJSONTyped = CosmosSignAminoRequest.CosmosSignAminoRequestFromJSON = CosmosSignAminoRequest.instanceOfCosmosSignAminoRequest = void 0;
26407const TypesCosmosAminoSignDoc_1 = TypesCosmosAminoSignDoc;
26408function instanceOfCosmosSignAminoRequest(value) {
26409  let isInstance = true;
26410  isInstance = isInstance && "signDoc" in value;
26411  isInstance = isInstance && "signerAddress" in value;
26412  return isInstance;
26413}
26414CosmosSignAminoRequest.instanceOfCosmosSignAminoRequest = instanceOfCosmosSignAminoRequest;
26415function CosmosSignAminoRequestFromJSON(json) {
26416  return CosmosSignAminoRequestFromJSONTyped(json);
26417}
26418CosmosSignAminoRequest.CosmosSignAminoRequestFromJSON = CosmosSignAminoRequestFromJSON;
26419function CosmosSignAminoRequestFromJSONTyped(json, ignoreDiscriminator) {
26420  if (json === void 0 || json === null) {
26421    return json;
26422  }
26423  return {
26424    "signDoc": (0, TypesCosmosAminoSignDoc_1.TypesCosmosAminoSignDocFromJSON)(json["signDoc"]),
26425    "signerAddress": json["signerAddress"]
26426  };
26427}
26428CosmosSignAminoRequest.CosmosSignAminoRequestFromJSONTyped = CosmosSignAminoRequestFromJSONTyped;
26429function CosmosSignAminoRequestToJSON(value) {
26430  if (value === void 0) {
26431    return void 0;
26432  }
26433  if (value === null) {
26434    return null;
26435  }
26436  return {
26437    "signDoc": (0, TypesCosmosAminoSignDoc_1.TypesCosmosAminoSignDocToJSON)(value.signDoc),
26438    "signerAddress": value.signerAddress
26439  };
26440}
26441CosmosSignAminoRequest.CosmosSignAminoRequestToJSON = CosmosSignAminoRequestToJSON;
26442var DebugLinkFlashDumpRequest = {};
26443Object.defineProperty(DebugLinkFlashDumpRequest, "__esModule", { value: true });
26444DebugLinkFlashDumpRequest.DebugLinkFlashDumpRequestToJSON = DebugLinkFlashDumpRequest.DebugLinkFlashDumpRequestFromJSONTyped = DebugLinkFlashDumpRequest.DebugLinkFlashDumpRequestFromJSON = DebugLinkFlashDumpRequest.instanceOfDebugLinkFlashDumpRequest = void 0;
26445const TypesNumericU32_1$e = TypesNumericU32;
26446function instanceOfDebugLinkFlashDumpRequest(value) {
26447  let isInstance = true;
26448  isInstance = isInstance && "length" in value;
26449  isInstance = isInstance && "address" in value;
26450  return isInstance;
26451}
26452DebugLinkFlashDumpRequest.instanceOfDebugLinkFlashDumpRequest = instanceOfDebugLinkFlashDumpRequest;
26453function DebugLinkFlashDumpRequestFromJSON(json) {
26454  return DebugLinkFlashDumpRequestFromJSONTyped(json);
26455}
26456DebugLinkFlashDumpRequest.DebugLinkFlashDumpRequestFromJSON = DebugLinkFlashDumpRequestFromJSON;
26457function DebugLinkFlashDumpRequestFromJSONTyped(json, ignoreDiscriminator) {
26458  if (json === void 0 || json === null) {
26459    return json;
26460  }
26461  return {
26462    "length": (0, TypesNumericU32_1$e.TypesNumericU32FromJSON)(json["length"]),
26463    "address": (0, TypesNumericU32_1$e.TypesNumericU32FromJSON)(json["address"])
26464  };
26465}
26466DebugLinkFlashDumpRequest.DebugLinkFlashDumpRequestFromJSONTyped = DebugLinkFlashDumpRequestFromJSONTyped;
26467function DebugLinkFlashDumpRequestToJSON(value) {
26468  if (value === void 0) {
26469    return void 0;
26470  }
26471  if (value === null) {
26472    return null;
26473  }
26474  return {
26475    "length": (0, TypesNumericU32_1$e.TypesNumericU32ToJSON)(value.length),
26476    "address": (0, TypesNumericU32_1$e.TypesNumericU32ToJSON)(value.address)
26477  };
26478}
26479DebugLinkFlashDumpRequest.DebugLinkFlashDumpRequestToJSON = DebugLinkFlashDumpRequestToJSON;
26480var DebugLinkGetState200Response = {};
26481var DebugLinkGetState200ResponseFirmwareHash = {};
26482Object.defineProperty(DebugLinkGetState200ResponseFirmwareHash, "__esModule", { value: true });
26483DebugLinkGetState200ResponseFirmwareHash.DebugLinkGetState200ResponseFirmwareHashToJSON = DebugLinkGetState200ResponseFirmwareHash.DebugLinkGetState200ResponseFirmwareHashFromJSONTyped = DebugLinkGetState200ResponseFirmwareHash.DebugLinkGetState200ResponseFirmwareHashFromJSON = DebugLinkGetState200ResponseFirmwareHash.instanceOfDebugLinkGetState200ResponseFirmwareHash = void 0;
26484function instanceOfDebugLinkGetState200ResponseFirmwareHash(value) {
26485  let isInstance = true;
26486  return isInstance;
26487}
26488DebugLinkGetState200ResponseFirmwareHash.instanceOfDebugLinkGetState200ResponseFirmwareHash = instanceOfDebugLinkGetState200ResponseFirmwareHash;
26489function DebugLinkGetState200ResponseFirmwareHashFromJSON(json) {
26490  return DebugLinkGetState200ResponseFirmwareHashFromJSONTyped(json);
26491}
26492DebugLinkGetState200ResponseFirmwareHash.DebugLinkGetState200ResponseFirmwareHashFromJSON = DebugLinkGetState200ResponseFirmwareHashFromJSON;
26493function DebugLinkGetState200ResponseFirmwareHashFromJSONTyped(json, ignoreDiscriminator) {
26494  return json;
26495}
26496DebugLinkGetState200ResponseFirmwareHash.DebugLinkGetState200ResponseFirmwareHashFromJSONTyped = DebugLinkGetState200ResponseFirmwareHashFromJSONTyped;
26497function DebugLinkGetState200ResponseFirmwareHashToJSON(value) {
26498  return value;
26499}
26500DebugLinkGetState200ResponseFirmwareHash.DebugLinkGetState200ResponseFirmwareHashToJSON = DebugLinkGetState200ResponseFirmwareHashToJSON;
26501var DebugLinkGetState200ResponseNode = {};
26502var TypesHexBytesLower = {};
26503Object.defineProperty(TypesHexBytesLower, "__esModule", { value: true });
26504TypesHexBytesLower.TypesHexBytesLowerToJSON = TypesHexBytesLower.TypesHexBytesLowerFromJSONTyped = TypesHexBytesLower.TypesHexBytesLowerFromJSON = TypesHexBytesLower.instanceOfTypesHexBytesLower = void 0;
26505function instanceOfTypesHexBytesLower(value) {
26506  let isInstance = true;
26507  return isInstance;
26508}
26509TypesHexBytesLower.instanceOfTypesHexBytesLower = instanceOfTypesHexBytesLower;
26510function TypesHexBytesLowerFromJSON(json) {
26511  return TypesHexBytesLowerFromJSONTyped(json);
26512}
26513TypesHexBytesLower.TypesHexBytesLowerFromJSON = TypesHexBytesLowerFromJSON;
26514function TypesHexBytesLowerFromJSONTyped(json, ignoreDiscriminator) {
26515  return json;
26516}
26517TypesHexBytesLower.TypesHexBytesLowerFromJSONTyped = TypesHexBytesLowerFromJSONTyped;
26518function TypesHexBytesLowerToJSON(value) {
26519  return value;
26520}
26521TypesHexBytesLower.TypesHexBytesLowerToJSON = TypesHexBytesLowerToJSON;
26522Object.defineProperty(DebugLinkGetState200ResponseNode, "__esModule", { value: true });
26523DebugLinkGetState200ResponseNode.DebugLinkGetState200ResponseNode
26523ToJSON = DebugLinkGetState200ResponseNode.DebugLinkGetState200ResponseNodeFromJSONTyped = DebugLinkGetState200ResponseNode.DebugLinkGetState200ResponseNodeFromJSON = DebugLinkGetState200ResponseNode.instanceOfDebugLinkGetState200ResponseNode = void 0;
26524const runtime_1$j = runtime$d;
26525const TypesHexBytesLower_1$5 = TypesHexBytesLower;
26526const TypesNumericU32_1$d = TypesNumericU32;
26527function instanceOfDebugLinkGetState200ResponseNode(value) {
26528  let isInstance = true;
26529  isInstance = isInstance && "chain_code" in value;
26530  isInstance = isInstance && "child_num" in value;
26531  isInstance = isInstance && "fingerprint" in value;
26532  isInstance = isInstance && "depth" in value;
26533  return isInstance;
26534}
26535DebugLinkGetState200ResponseNode.instanceOfDebugLinkGetState200ResponseNode = instanceOfDebugLinkGetState200ResponseNode;
26536function DebugLinkGetState200ResponseNodeFromJSON(json) {
26537  return DebugLinkGetState200ResponseNodeFromJSONTyped(json);
26538}
26539DebugLinkGetState200ResponseNode.DebugLinkGetState200ResponseNodeFromJSON = DebugLinkGetState200ResponseNodeFromJSON;
26540function DebugLinkGetState200ResponseNodeFromJSONTyped(json, ignoreDiscriminator) {
26541  if (json === void 0 || json === null) {
26542    return json;
26543  }
26544  return {
26545    "public_key": !(0, runtime_1$j.exists)(json, "public_key") ? void 0 : (0, TypesHexBytesLower_1$5.TypesHexBytesLowerFromJSON)(json["public_key"]),
26546    "private_key": !(0, runtime_1$j.exists)(json, "private_key") ? void 0 : (0, TypesHexBytesLower_1$5.TypesHexBytesLowerFromJSON)(json["private_key"]),
26547    "chain_code": (0, TypesHexBytesLower_1$5.TypesHexBytesLowerFromJSON)(json["chain_code"]),
26548    "child_num": (0, TypesNumericU32_1$d.TypesNumericU32FromJSON)(json["child_num"]),
26549    "fingerprint": (0, TypesNumericU32_1$d.TypesNumericU32FromJSON)(json["fingerprint"]),
26550    "depth": (0, TypesNumericU32_1$d.TypesNumericU32FromJSON)(json["depth"])
26551  };
26552}
26553DebugLinkGetState200ResponseNode.DebugLinkGetState200ResponseNodeFromJSONTyped = DebugLinkGetState200ResponseNodeFromJSONTyped;
26554function DebugLinkGetState200ResponseNodeToJSON(value) {
26555  if (value === void 0) {
26556    return void 0;
26557  }
26558  if (value === null) {
26559    return null;
26560  }
26561  return {
26562    "public_key": (0, TypesHexBytesLower_1$5.TypesHexBytesLowerToJSON)(value.public_key),
26563    "private_key": (0, TypesHexBytesLower_1$5.TypesHexBytesLowerToJSON)(value.private_key),
26564    "chain_code": (0, TypesHexBytesLower_1$5.TypesHexBytesLowerToJSON)(value.chain_code),
26565    "child_num": (0, TypesNumericU32_1$d.TypesNumericU32ToJSON)(value.child_num),
26566    "fingerprint": (0, TypesNumericU32_1$d.TypesNumericU32ToJSON)(value.fingerprint),
26567    "depth": (0, TypesNumericU32_1$d.TypesNumericU32ToJSON)(value.depth)
26568  };
26569}
26570DebugLinkGetState200ResponseNode.DebugLinkGetState200ResponseNodeToJSON = DebugLinkGetState200ResponseNodeToJSON;
26571var DebugLinkGetState200ResponseResetEntropy = {};
26572Object.defineProperty(DebugLinkGetState200ResponseResetEntropy, "__esModule", { value: true });
26573DebugLinkGetState200ResponseResetEntropy.DebugLinkGetState200ResponseResetEntropyToJSON = DebugLinkGetState200ResponseResetEntropy.DebugLinkGetState200ResponseResetEntropyFromJSONTyped = DebugLinkGetState200ResponseResetEntropy.DebugLinkGetState200ResponseResetEntropyFromJSON = DebugLinkGetState200ResponseResetEntropy.instanceOfDebugLinkGetState200ResponseResetEntropy = void 0;
26574function instanceOfDebugLinkGetState200ResponseResetEntropy(value) {
26575  let isInstance = true;
26576  return isInstance;
26577}
26578DebugLinkGetState200ResponseResetEntropy.instanceOfDebugLinkGetState200ResponseResetEntropy = instanceOfDebugLinkGetState200ResponseResetEntropy;
26579function DebugLinkGetState200ResponseResetEntropyFromJSON(json) {
26580  return DebugLinkGetState200ResponseResetEntropyFromJSONTyped(json);
26581}
26582DebugLinkGetState200ResponseResetEntropy.DebugLinkGetState200ResponseResetEntropyFromJSON = DebugLinkGetState200ResponseResetEntropyFromJSON;
26583function DebugLinkGetState200ResponseResetEntropyFromJSONTyped(json, ignoreDiscriminator) {
26584  return json;
26585}
26586DebugLinkGetState200ResponseResetEntropy.DebugLinkGetState200ResponseResetEntropyFromJSONTyped = DebugLinkGetState200ResponseResetEntropyFromJSONTyped;
26587function DebugLinkGetState200ResponseResetEntropyToJSON(value) {
26588  return value;
26589}
26590DebugLinkGetState200ResponseResetEntropy.DebugLinkGetState200ResponseResetEntropyToJSON = DebugLinkGetState200ResponseResetEntropyToJSON;
26591var DebugLinkGetState200ResponseStorageHash = {};
26592Object.defineProperty(DebugLinkGetState200ResponseStorageHash, "__esModule", { value: true });
26593DebugLinkGetState200ResponseStorageHash.DebugLinkGetState200ResponseStorageHashToJSON = DebugLinkGetState200ResponseStorageHash.DebugLinkGetState200ResponseStorageHashFromJSONTyped = DebugLinkGetState200ResponseStorageHash.DebugLinkGetState200ResponseStorageHashFromJSON = DebugLinkGetState200ResponseStorageHash.instanceOfDebugLinkGetState200ResponseStorageHash = void 0;
26594function instanceOfDebugLinkGetState200ResponseStorageHash(value) {
26595  let isInstance = true;
26596  return isInstance;
26597}
26598DebugLinkGetState200ResponseStorageHash.instanceOfDebugLinkGetState200ResponseStorageHash = instanceOfDebugLinkGetState200ResponseStorageHash;
26599function DebugLinkGetState200ResponseStorageHashFromJSON(json) {
26600  return DebugLinkGetState200ResponseStorageHashFromJSONTyped(json);
26601}
26602DebugLinkGetState200ResponseStorageHash.DebugLinkGetState200ResponseStorageHashFromJSON = DebugLinkGetState200ResponseStorageHashFromJSON;
26603function DebugLinkGetState200ResponseStorageHashFromJSONTyped(json, ignoreDiscriminator) {
26604  return json;
26605}
26606DebugLinkGetState200ResponseStorageHash.DebugLinkGetState200ResponseStorageHashFromJSONTyped = DebugLinkGetState200ResponseStorageHashFromJSONTyped;
26607function DebugLinkGetState200ResponseStorageHashToJSON(value) {
26608  return value;
26609}
26610DebugLinkGetState200ResponseStorageHash.DebugLinkGetState200ResponseStorageHashToJSON = DebugLinkGetState200ResponseStorageHashToJSON;
26611Object.defineProperty(DebugLinkGetState200Response, "__esModule", { value: true });
26612DebugLinkGetState200Response.DebugLinkGetState200ResponseToJSON = DebugLinkGetState200Response.DebugLinkGetState200ResponseFromJSONTyped = DebugLinkGetState200Response.DebugLinkGetState200ResponseFromJSON = DebugLinkGetState200Response.instanceOfDebugLinkGetState200Response = void 0;
26613const runtime_1$i = runtime$d;
26614const DebugLinkGetState200ResponseFirmwareHash_1 = DebugLinkGetState200ResponseFirmwareHash;
26615const DebugLinkGetState200ResponseNode_1 = DebugLinkGetState200ResponseNode;
26616const DebugLinkGetState200ResponseResetEntropy_1 = DebugLinkGetState200ResponseResetEntropy;
26617const DebugLinkGetState200ResponseStorageHash_1 = DebugLinkGetState200ResponseStorageHash;
26618const TypesNumericU32_1$c = TypesNumericU32;
26619function instanceOfDebugLinkGetState200Response(value) {
26620  let isInstance = true;
26621  return isInstance;
26622}
26623DebugLinkGetState200Response.instanceOfDebugLinkGetState200Response = instanceOfDebugLinkGetState200Response;
26624function DebugLinkGetState200ResponseFromJSON(json) {
26625  return DebugLinkGetState200ResponseFromJSONTyped(json);
26626}
26627DebugLinkGetState200Response.DebugLinkGetState200ResponseFromJSON = DebugLinkGetState200ResponseFromJSON;
26628function DebugLinkGetState200ResponseFromJSONTyped(json, ignoreDiscriminator) {
26629  if (json === void 0 || json === null) {
26630    return json;
26631  }
26632  return {
26633    "storage_hash": !(0, runtime_1$i.exists)(json, "storage_hash") ? void 0 : (0, DebugLinkGetState200ResponseStorageHash_1.DebugLinkGetState200ResponseStorageHashFromJSON)(json["storage_hash"]),
26634    "firmware_hash": !(0, runtime_1$i.exists)(json, "firmware_hash") ? void 0 : (0, DebugLinkGetState200ResponseFirmwareHash_1.DebugLinkGetState200ResponseFirmwareHashFromJSON)(json["firmware_hash"]),
26635    "recovery_auto_completed_word": !(0, runtime_1$i.exists)(json, "recovery_auto_completed_word") ? void 0 : json["recovery_auto_completed_word"],
26636    "recovery_cipher": !(0, runtime_1$i.exists)(json, "recovery_cipher") ? void 0 : json["recovery_cipher"],
26637    "recovery_word_pos": !(0, runtime_1$i.exists)(json, "recovery_word_pos") ? void 0 : (0, TypesNumericU32_1$c.TypesNumericU32FromJSON)(json["recovery_word_pos"]),
26638    "recovery_fake_word": !(0, runtime_1$i.exists)(json, "recovery_fake_word") ? void 0 : json["recovery_fake_word"],
26639    "reset_entropy": !(0, runtime_1$i.exists)(json, "reset_entropy") ? void 0 : (0, DebugLinkGetState200ResponseResetEntropy_1.DebugLinkGetState200ResponseResetEntropyFromJSON)(json["reset_entropy"]),
26640    "reset_word": !(0, runtime_1$i.exists)(json, "reset_word") ? void 0 : json["reset_word"],
26641    "passphrase_protection": !(0, runtime_1$i.exists)(json, "passphrase_protection") ? void 0 : json["passphrase_protection"],
26642    "node": !(0, runtime_1$i.exists)(json, "node") ? void 0 : (0, DebugLinkGetState200ResponseNode_1.DebugLinkGetState200ResponseNodeFromJSON)(json["node"]),
26643    "mnemonic": !(0, runtime_1$i.exists)(json, "mnemonic") ? void 0 : json["mnemonic"],
26644    "matrix": !(0, runtime_1$i.exists)(json, "matrix") ? void 0 : json["matrix"],
26645    "pin": !(0, runtime_1$i.exists)(json, "pin") ? void 0 : json["pin"],
26646    "layout": !(0, runtime_1$i.exists)(json, "layout") ? void 0 : json["layout"]
26647  };
26648}
26649DebugLinkGetState200Response.DebugLinkGetState200ResponseFromJSONTyped = DebugLinkGetState200ResponseFromJSONTyped;
26650function DebugLinkGetState200ResponseToJSON(value) {
26651  if (value === void 0) {
26652    return void 0;
26653  }
26654  if (value === null) {
26655    return null;
26656  }
26657  return {
26658    "storage_hash": (0, DebugLinkGetState200ResponseStorageHash_1.DebugLinkGetState200ResponseStorageHashToJSON)(value.storage_hash),
26659    "firmware_hash": (0, DebugLinkGetState200ResponseFirmwareHash_1.DebugLinkGetState200ResponseFirmwareHashToJSON)(value.firmware_hash),
26660    "recovery_auto_completed_word": value.recovery_auto_completed_word,
26661    "recovery_cipher": value.recovery_cipher,
26662    "recovery_word_pos": (0, TypesNumericU32_1$c.TypesNumericU32ToJSON)(value.recovery_word_pos),
26663    "recovery_fake_word": value.recovery_fake_word,
26664    "reset_entropy": (0, DebugLinkGetState200ResponseResetEntropy_1.DebugLinkGetState200ResponseResetEntropyToJSON)(value.reset_entropy),
26665    "reset_word": value.reset_word,
26666    "passphrase_protection": value.passphrase_protection,
26667    "node": (0, DebugLinkGetState200ResponseNode_1.DebugLinkGetState200ResponseNodeToJSON)(value.node),
26668    "mnemonic": value.mnemonic,
26669    "matrix": value.matrix,
26670    "pin": value.pin,
26671    "layout": value.layout
26672  };
26673}
26674DebugLinkGetState200Response.DebugLinkGetState200ResponseToJSON = DebugLinkGetState200ResponseToJSON;
26675var EthSignRequest = {};
26676Object.defineProperty(EthSignRequest, "__esModule", { value: true });
26677EthSignRequest.EthSignRequestToJSON = EthSignRequest.EthSignRequestFromJSONTyped = EthSignRequest.EthSignRequestFromJSON = EthSignRequest.instanceOfEthSignRequest = void 0;
26678function instanceOfEthSignRequest(value) {
26679  let isInstance = true;
26680  isInstance = isInstance && "address" in value;
26681  isInstance = isInstance && "message" in value;
26682  return isInstance;
26683}
26684EthSignRequest.instanceOfEthSignRequest = instanceOfEthSignRequest;
26685function EthSignRequestFromJSON(json) {
26686  return EthSignRequestFromJSONTyped(json);
26687}
26688EthSignRequest.EthSignRequestFromJSON = EthSignRequestFromJSON;
26689function EthSignRequestFromJSONTyped(json, ignoreDiscriminator) {
26690  if (json === void 0 || json === null) {
26691    return json;
26692  }
26693  return {
26694    "address": json["address"],
26695    "message": json["message"]
26696  };
26697}
26698EthSignRequest.EthSignRequestFromJSONTyped = EthSignRequestFromJSONTyped;
26699function EthSignRequestToJSON(value) {
26700  if (value === void 0) {
26701    return void 0;
26702  }
26703  if (value === null) {
26704    return null;
26705  }
26706  return {
26707    "address": value.address,
26708    "message": value.message
26709  };
26710}
26711EthSignRequest.EthSignRequestToJSON = EthSignRequestToJSON;
26712var EthSignTransaction200Response = {};
26713Object.defineProperty(EthSignTransaction200Response, "__esModule", { value: true });
26714EthSignTransaction200Response.EthSignTransaction200ResponseToJSON = EthSignTransaction200Response.EthSignTransaction200ResponseFromJSONTyped = EthSignTransaction200Response.EthSignTransaction200ResponseFromJSON = EthSignTransaction200Response.instanceOfEthSignTransaction200Response = void 0;
26715const TypesNumericU32_1$b = TypesNumericU32;
26716function instanceOfEthSignTransaction200Response(value) {
26717  let isInstance = true;
26718  isInstance = isInstance && "serialized" in value;
26719  isInstance = isInstance && "s" in value;
26720  isInstance = isInstance && "r" in value;
26721  isInstance = isInstance && "v" in value;
26722  return isInstance;
26723}
26724EthSignTransaction200Response.instanceOfEthSignTransaction200Response = instanceOfEthSignTransaction200Response;
26725function EthSignTransaction200ResponseFromJSON(json) {
26726  return EthSignTransaction200ResponseFromJSONTyped(json);
26727}
26728EthSignTransaction200Response.EthSignTransaction200ResponseFromJSON = EthSignTransaction200ResponseFromJSON;
26729function EthSignTransaction200ResponseFromJSONTyped(json, ignoreDiscriminator) {
26730  if (json === void 0 || json === null) {
26731    return json;
26732  }
26733  return {
26734    "serialized": json["serialized"],
26735    "s": json["s"],
26736    "r": json["r"],
26737    "v": (0, TypesNumericU32_1$b.TypesNumericU32FromJSON)(json["v"])
26738  };
26739}
26740EthSignTransaction200Response.EthSignTransaction200ResponseFromJSONTyped = EthSignTransaction200ResponseFromJSONTyped;
26741function EthSignTransaction200ResponseToJSON(value) {
26742  if (value === void 0) {
26743    return void 0;
26744  }
26745  if (value === null) {
26746    return null;
26747  }
26748  return {
26749    "serialized": value.serialized,
26750    "s": value.s,
26751    "r": value.r,
26752    "v": (0, TypesNumericU32_1$b.TypesNumericU32ToJSON)(value.v)
26753  };
26754}
26755EthSignTransaction200Response.EthSignTransaction200ResponseToJSON = EthSignTransaction200ResponseToJSON;
26756var EthSignTransactionRequest = {};
26757Object.defineProperty(EthSignTransactionRequest, "__esModule", { value: true });
26758EthSignTransactionRequest.EthSignTransactionRequestToJSON = EthSignTransactionRequest.EthSignTransactionRequestFromJSONTyped = EthSignTransactionRequest.EthSignTransactionRequestFromJSON = EthSignTransactionRequest.instanceOfEthSignTransactionRequest = EthSignTransactionRequest.EthSignTransactionRequestMaxFeePerGasEnum = EthSignTransactionRequest.EthSignTransactionRequestMaxPriorityFeePerGasEnum = void 0;
26759EthSignTransactionRequest.EthSignTransactionRequestMaxPriorityFeePerGasEnum = {
26760  NUMBER_null: null
26761};
26762EthSignTransactionRequest.EthSignTransactionRequestMaxFeePerGasEnum = {
26763  NUMBER_null: null
26764};
26765function instanceOfEthSignTransactionRequest(value) {
26766  let isInstance = true;
26767  isInstance = isInstance && "chainId" in value;
26768  isInstance = isInstance && "nonce" in value;
26769  isInstance = isInstance && "value" in value;
26770  isInstance = isInstance && "gas" in value;
26771  isInstance = isInstance && "data" in value;
26772  isInstance = isInstance && "to" in value;
26773  isInstance = isInstance && "from" in value;
26774  isInstance = isInstance && "gasPrice" in value;
26775  isInstance = isInstance && "maxPriorityFeePerGas" in value;
26776  isInstance = isInstance && "maxFeePerGas" in value;
26777  return isInstance;
26778}
26779EthSignTransactionRequest.instanceOfEthSignTransactionRequest = instanceOfEthSignTransactionRequest;
26780function EthSignTransactionRequestFromJSON(json) {
26781  return EthSignTransactionRequestFromJSONTyped(json);
26782}
26783EthSignTransactionRequest.EthSignTransactionRequestFromJSON = EthSignTransactionRequestFromJSON;
26784function EthSignTransactionRequestFromJSONTyped(json, ignoreDiscriminator) {
26785  if (json === void 0 || json === null) {
26786    return json;
26787  }
26788  return {
26789    "chainId": json["chainId"],
26790    "nonce": json["nonce"],
26791    "value": json["value"],
26792    "gas": json["gas"],
26793    "data": json["data"],
26794    "to": json["to"],
26795    "from": json["from"],
26796    "gasPrice": json["gasPrice"],
26797    "maxPriorityFeePerGas": json["maxPriorityFeePerGas"],
26798    "maxFeePerGas": json["maxFeePerGas"]
26799  };
26800}
26801EthSignTransactionRequest.EthSignTransactionRequestFromJSONTyped = EthSignTransactionRequestFromJSONTyped;
26802function EthSignTransactionRequestToJSON(value) {
26803  if (value === void 0) {
26804    return void 0;
26805  }
26806  if (value === null) {
26807    return null;
26808  }
26809  return {
26810    "chainId": value.chainId,
26811    "nonce": value.nonce,
26812    "value": value.value,
26813    "gas": value.gas,
26814    "data": value.data,
26815    "to": value.to,
26816    "from": value.from,
26817    "gasPrice": value.gasPrice,
26818    "maxPriorityFeePerGas": value.maxPriorityFeePerGas,
26819    "maxFeePerGas": value.maxFeePerGas
26820  };
26821}
26822EthSignTransactionRequest.EthSignTransactionRequestToJSON = EthSignTransactionRequestToJSON;
26823var EthSignTransactionRequestAllOf = {};
26824Object.defineProperty(EthSignTransactionRequestAllOf, "__esModule", { value: true });
26825EthSignTransactionRequestAllOf.EthSignTransactionRequestAllOfToJSON = EthSignTransactionRequestAllOf.EthSignTransactionRequestAllOfFromJSONTyped = EthSignTransactionRequestAllOf.EthSignTransactionRequestAllOfFromJSON = EthSignTransactionRequestAllOf.instanceOfEthSignTransactionRequestAllOf = void 0;
26826function instanceOfEthSignTransactionRequestAllOf(value) {
26827  let isInstance = true;
26828  isInstance = isInstance && "chainId" in value;
26829  isInstance = isInstance && "nonce" in value;
26830  isInstance = isInstance && "value" in value;
26831  isInstance = isInstance && "gas" in value;
26832  isInstance = isInstance && "data" in value;
26833  isInstance = isInstance && "to" in value;
26834  isInstance = isInstance && "from" in value;
26835  return isInstance;
26836}
26837EthSignTransactionRequestAllOf.instanceOfEthSignTransactionRequestAllOf = instanceOfEthSignTransactionRequestAllOf;
26838function EthSignTransactionRequestAllOfFromJSON(json) {
26839  return EthSignTransactionRequestAllOfFromJSONTyped(json);
26840}
26841EthSignTransactionRequestAllOf.EthSignTransactionRequestAllOfFromJSON = EthSignTransactionRequestAllOfFromJSON;
26842function EthSignTransactionRequestAllOfFromJSONTyped(json, ignoreDiscriminator) {
26843  if (json === void 0 || json === null) {
26844    return json;
26845  }
26846  return {
26847    "chainId": json["chainId"],
26848    "nonce": json["nonce"],
26849    "value": json["value"],
26850    "gas": json["gas"],
26851    "data": json["data"],
26852    "to": json["to"],
26853    "from": json["from"]
26854  };
26855}
26856EthSignTransactionRequestAllOf.EthSignTransactionRequestAllOfFromJSONTyped = EthSignTransactionRequestAllOfFromJSONTyped;
26857function EthSignTransactionRequestAllOfToJSON(value) {
26858  if (value === void 0) {
26859    return void 0;
26860  }
26861  if (value === null) {
26862    return null;
26863  }
26864  return {
26865    "chainId": value.chainId,
26866    "nonce": value.nonce,
26867    "value": value.value,
26868    "gas": value.gas,
26869    "data": value.data,
26870    "to": value.to,
26871    "from": value.from
26872  };
26873}
26874EthSignTransactionRequestAllOf.EthSignTransactionRequestAllOfToJSON = EthSignTransactionRequestAllOfToJSON;
26875var EthSignTransactionRequestAllOf1 = {};
26876Object.defineProperty(EthSignTransactionRequestAllOf1, "__esModule", { value: true });
26877EthSignTransactionRequestAllOf1.EthSignTransactionRequestAllOf1ToJSON = EthSignTransactionRequestAllOf1.EthSignTransactionRequestAllOf1FromJSONTyped = EthSignTransactionRequestAllOf1.EthSignTransactionRequestAllOf1FromJSON = EthSignTransactionRequestAllOf1.instanceOfEthSignTransactionRequestAllOf1 = EthSignTransactionRequestAllOf1.EthSignTransactionRequestAllOf1MaxFeePerGasEnum = EthSignTransactionRequestAllOf1.EthSignTransactionRequestAllOf1MaxPriorityFeePerGasEnum = void 0;
26878EthSignTransactionRequestAllOf1.EthSignTransactionRequestAllOf1MaxPriorityFeePerGasEnum = {
26879  NUMBER_null: null
26880};
26881EthSignTransactionRequestAllOf1.EthSignTransactionRequestAllOf1MaxFeePerGasEnum = {
26882  NUMBER_null: null
26883};
26884function instanceOfEthSignTransactionRequestAllOf1(value) {
26885  let isInstance = true;
26886  isInstance = isInstance && "gasPrice" in value;
26887  isInstance = isInstance && "maxPriorityFeePerGas" in value;
26888  isInstance = isInstance && "maxFeePerGas" in value;
26889  return isInstance;
26890}
26891EthSignTransactionRequestAllOf1.instanceOfEthSignTransactionRequestAllOf1 = instanceOfEthSignTransactionRequestAllOf1;
26892function EthSignTransactionRequestAllOf1FromJSON(json) {
26893  return EthSignTransactionRequestAllOf1FromJSONTyped(json);
26894}
26895EthSignTransactionRequestAllOf1.EthSignTransactionRequestAllOf1FromJSON = EthSignTransactionRequestAllOf1FromJSON;
26896function EthSignTransactionRequestAllOf1FromJSONTyped(json, ignoreDiscriminator) {
26897  if (json === void 0 || json === null) {
26898    return json;
26899  }
26900  return {
26901    "gasPrice": json["gasPrice"],
26902    "maxPriorityFeePerGas": json["maxPriorityFeePerGas"],
26903    "maxFeePerGas": json["maxFeePerGas"]
26904  };
26905}
26906EthSignTransactionRequestAllOf1.EthSignTransactionRequestAllOf1FromJSONTyped = EthSignTransactionRequestAllOf1FromJSONTyped;
26907function EthSignTransactionRequestAllOf1ToJSON(value) {
26908  if (value === void 0) {
26909    return void 0;
26910  }
26911  if (value === null) {
26912    return null;
26913  }
26914  return {
26915    "gasPrice": value.gasPrice,
26916    "maxPriorityFeePerGas": value.maxPriorityFeePerGas,
26917    "maxFeePerGas": value.maxFeePerGas
26918  };
26919}
26920EthSignTransactionRequestAllOf1.EthSignTransactionRequestAllOf1ToJSON = EthSignTransactionRequestAllOf1ToJSON;
26921var EthSignTransactionRequestAllOf1AnyOf = {};
26922Object.defineProperty(EthSignTransactionRequestAllOf1AnyOf, "__esModule", { value: true });
26923EthSignTransactionRequestAllOf1AnyOf.EthSignTransactionRequestAllOf1AnyOfToJSON = EthSignTransactionRequestAllOf1AnyOf.EthSignTransactionRequestAllOf1AnyOfFromJSONTyped = EthSignTransactionRequestAllOf1AnyOf.EthSignTransactionRequestAllOf1AnyOfFromJSON = EthSignTransactionRequestAllOf1AnyOf.instanceOfEthSignTransactionRequestAllOf1AnyOf = EthSignTransactionRequestAllOf1AnyOf.EthSignTransactionRequestAllOf1AnyOfGasPriceEnum = void 0;
26924const runtime_1$h = runtime$d;
26925EthSignTransactionRequestAllOf1AnyOf.EthSignTransactionRequestAllOf1AnyOfGasPriceEnum = {
26926  NUMBER_null: null
26927};
26928function instanceOfEthSignTransactionRequestAllOf1AnyOf(value) {
26929  let isInstance = true;
26930  isInstance = isInstance && "maxPriorityFeePerGas" in value;
26931  isInstance = isInstance && "maxFeePerGas" in value;
26932  return isInstance;
26933}
26934EthSignTransactionRequestAllOf1AnyOf.instanceOfEthSignTransactionRequestAllOf1AnyOf = instanceOfEthSignTransactionRequestAllOf1AnyOf;
26935function EthSignTransactionRequestAllOf1AnyOfFromJSON(json) {
26936  return EthSignTransactionRequestAllOf1AnyOfFromJSONTyped(json);
26937}
26938EthSignTransactionRequestAllOf1AnyOf.EthSignTransactionRequestAllOf1AnyOfFromJSON = EthSignTransactionRequestAllOf1AnyOfFromJSON;
26939function EthSignTransactionRequestAllOf1AnyOfFromJSONTyped(json, ignoreDiscriminator) {
26940  if (json === void 0 || json === null) {
26941    return json;
26942  }
26943  return {
26944    "gasPrice": !(0, runtime_1$h.exists)(json, "gasPrice") ? void 0 : json["gasPrice"],
26945    "maxPriorityFeePerGas": json["maxPriorityFeePerGas"],
26946    "maxFeePerGas": json["maxFeePerGas"]
26947  };
26948}
26949EthSignTransactionRequestAllOf1AnyOf.EthSignTransactionRequestAllOf1AnyOfFromJSONTyped = EthSignTransactionRequestAllOf1AnyOfFromJSONTyped;
26950function EthSignTransactionRequestAllOf1AnyOfToJSON(value) {
26951  if (value === void 0) {
26952    return void 0;
26953  }
26954  if (value === null) {
26955    return null;
26956  }
26957  return {
26958    "gasPrice": value.gasPrice,
26959    "maxPriorityFeePerGas": value.maxPriorityFeePerGas,
26960    "maxFeePerGas": value.maxFeePerGas
26961  };
26962}
26963EthSignTransactionRequestAllOf1AnyOf.EthSignTransactionRequestAllOf1AnyOfToJSON = EthSignTransactionRequestAllOf1AnyOfToJSON;
26964var EthSignTransactionRequestAllOf1AnyOf1 = {};
26965Object.defineProperty(EthSignTransactionRequestAllOf1AnyOf1, "__esModule", { value: true });
26966EthSignTransactionRequestAllOf1AnyOf1.EthSignTransactionRequestAllOf1AnyOf1ToJSON = EthSignTransactionRequestAllOf1AnyOf1.EthSignTransactionRequestAllOf1AnyOf1FromJSONTyped = EthSignTransactionRequestAllOf1AnyOf1.EthSignTransactionRequestAllOf1AnyOf1FromJSON = EthSignTransactionRequestAllOf1AnyOf1.instanceOfEthSignTransactionRequestAllOf1AnyOf1 = EthSignTransactionRequestAllOf1AnyOf1.EthSignTransactionRequestAllOf1AnyOf1MaxFeePerGasEnum = EthSignTransactionRequestAllOf1AnyOf1.EthSignTransactionRequestAllOf1AnyOf1MaxPriorityFeePerGasEnum = void 0;
26967const runtime_1$g = runtime$d;
26968EthSignTransactionRequestAllOf1AnyOf1.EthSignTransac
26968tionRequestAllOf1AnyOf1MaxPriorityFeePerGasEnum = {
26969  NUMBER_null: null
26970};
26971EthSignTransactionRequestAllOf1AnyOf1.EthSignTransactionRequestAllOf1AnyOf1MaxFeePerGasEnum = {
26972  NUMBER_null: null
26973};
26974function instanceOfEthSignTransactionRequestAllOf1AnyOf1(value) {
26975  let isInstance = true;
26976  isInstance = isInstance && "gasPrice" in value;
26977  return isInstance;
26978}
26979EthSignTransactionRequestAllOf1AnyOf1.instanceOfEthSignTransactionRequestAllOf1AnyOf1 = instanceOfEthSignTransactionRequestAllOf1AnyOf1;
26980function EthSignTransactionRequestAllOf1AnyOf1FromJSON(json) {
26981  return EthSignTransactionRequestAllOf1AnyOf1FromJSONTyped(json);
26982}
26983EthSignTransactionRequestAllOf1AnyOf1.EthSignTransactionRequestAllOf1AnyOf1FromJSON = EthSignTransactionRequestAllOf1AnyOf1FromJSON;
26984function EthSignTransactionRequestAllOf1AnyOf1FromJSONTyped(json, ignoreDiscriminator) {
26985  if (json === void 0 || json === null) {
26986    return json;
26987  }
26988  return {
26989    "gasPrice": json["gasPrice"],
26990    "maxPriorityFeePerGas": !(0, runtime_1$g.exists)(json, "maxPriorityFeePerGas") ? void 0 : json["maxPriorityFeePerGas"],
26991    "maxFeePerGas": !(0, runtime_1$g.exists)(json, "maxFeePerGas") ? void 0 : json["maxFeePerGas"]
26992  };
26993}
26994EthSignTransactionRequestAllOf1AnyOf1.EthSignTransactionRequestAllOf1AnyOf1FromJSONTyped = EthSignTransactionRequestAllOf1AnyOf1FromJSONTyped;
26995function EthSignTransactionRequestAllOf1AnyOf1ToJSON(value) {
26996  if (value === void 0) {
26997    return void 0;
26998  }
26999  if (value === null) {
27000    return null;
27001  }
27002  return {
27003    "gasPrice": value.gasPrice,
27004    "maxPriorityFeePerGas": value.maxPriorityFeePerGas,
27005    "maxFeePerGas": value.maxFeePerGas
27006  };
27007}
27008EthSignTransactionRequestAllOf1AnyOf1.EthSignTransactionRequestAllOf1AnyOf1ToJSON = EthSignTransactionRequestAllOf1AnyOf1ToJSON;
27009var EthSignTypedDataRequest = {};
27010Object.defineProperty(EthSignTypedDataRequest, "__esModule", { value: true });
27011EthSignTypedDataRequest.EthSignTypedDataRequestToJSON = EthSignTypedDataRequest.EthSignTypedDataRequestFromJSONTyped = EthSignTypedDataRequest.EthSignTypedDataRequestFromJSON = EthSignTypedDataRequest.instanceOfEthSignTypedDataRequest = void 0;
27012function instanceOfEthSignTypedDataRequest(value) {
27013  let isInstance = true;
27014  isInstance = isInstance && "typedData" in value;
27015  isInstance = isInstance && "address" in value;
27016  return isInstance;
27017}
27018EthSignTypedDataRequest.instanceOfEthSignTypedDataRequest = instanceOfEthSignTypedDataRequest;
27019function EthSignTypedDataRequestFromJSON(json) {
27020  return EthSignTypedDataRequestFromJSONTyped(json);
27021}
27022EthSignTypedDataRequest.EthSignTypedDataRequestFromJSON = EthSignTypedDataRequestFromJSON;
27023function EthSignTypedDataRequestFromJSONTyped(json, ignoreDiscriminator) {
27024  if (json === void 0 || json === null) {
27025    return json;
27026  }
27027  return {
27028    "typedData": json["typedData"],
27029    "address": json["address"]
27030  };
27031}
27032EthSignTypedDataRequest.EthSignTypedDataRequestFromJSONTyped = EthSignTypedDataRequestFromJSONTyped;
27033function EthSignTypedDataRequestToJSON(value) {
27034  if (value === void 0) {
27035    return void 0;
27036  }
27037  if (value === null) {
27038    return null;
27039  }
27040  return {
27041    "typedData": value.typedData,
27042    "address": value.address
27043  };
27044}
27045EthSignTypedDataRequest.EthSignTypedDataRequestToJSON = EthSignTypedDataRequestToJSON;
27046var EthVerifyRequest = {};
27047var TypesEthSignature = {};
27048Object.defineProperty(TypesEthSignature, "__esModule", { value: true });
27049TypesEthSignature.TypesEthSignatureToJSON = TypesEthSignature.TypesEthSignatureFromJSONTyped = TypesEthSignature.TypesEthSignatureFromJSON = TypesEthSignature.instanceOfTypesEthSignature = void 0;
27050function instanceOfTypesEthSignature(value) {
27051  let isInstance = true;
27052  return isInstance;
27053}
27054TypesEthSignature.instanceOfTypesEthSignature = instanceOfTypesEthSignature;
27055function TypesEthSignatureFromJSON(json) {
27056  return TypesEthSignatureFromJSONTyped(json);
27057}
27058TypesEthSignature.TypesEthSignatureFromJSON = TypesEthSignatureFromJSON;
27059function TypesEthSignatureFromJSONTyped(json, ignoreDiscriminator) {
27060  return json;
27061}
27062TypesEthSignature.TypesEthSignatureFromJSONTyped = TypesEthSignatureFromJSONTyped;
27063function TypesEthSignatureToJSON(value) {
27064  return value;
27065}
27066TypesEthSignature.TypesEthSignatureToJSON = TypesEthSignatureToJSON;
27067Object.defineProperty(EthVerifyRequest, "__esModule", { value: true });
27068EthVerifyRequest.EthVerifyRequestToJSON = EthVerifyRequest.EthVerifyRequestFromJSONTyped = EthVerifyRequest.EthVerifyRequestFromJSON = EthVerifyRequest.instanceOfEthVerifyRequest = void 0;
27069const TypesEthSignature_1 = TypesEthSignature;
27070function instanceOfEthVerifyRequest(value) {
27071  let isInstance = true;
27072  isInstance = isInstance && "signature" in value;
27073  isInstance = isInstance && "address" in value;
27074  isInstance = isInstance && "message" in value;
27075  return isInstance;
27076}
27077EthVerifyRequest.instanceOfEthVerifyRequest = instanceOfEthVerifyRequest;
27078function EthVerifyRequestFromJSON(json) {
27079  return EthVerifyRequestFromJSONTyped(json);
27080}
27081EthVerifyRequest.EthVerifyRequestFromJSON = EthVerifyRequestFromJSON;
27082function EthVerifyRequestFromJSONTyped(json, ignoreDiscriminator) {
27083  if (json === void 0 || json === null) {
27084    return json;
27085  }
27086  return {
27087    "signature": (0, TypesEthSignature_1.TypesEthSignatureFromJSON)(json["signature"]),
27088    "address": json["address"],
27089    "message": json["message"]
27090  };
27091}
27092EthVerifyRequest.EthVerifyRequestFromJSONTyped = EthVerifyRequestFromJSONTyped;
27093function EthVerifyRequestToJSON(value) {
27094  if (value === void 0) {
27095    return void 0;
27096  }
27097  if (value === null) {
27098    return null;
27099  }
27100  return {
27101    "signature": (0, TypesEthSignature_1.TypesEthSignatureToJSON)(value.signature),
27102    "address": value.address,
27103    "message": value.message
27104  };
27105}
27106EthVerifyRequest.EthVerifyRequestToJSON = EthVerifyRequestToJSON;
27107var EthereumGetAddress200Response = {};
27108Object.defineProperty(EthereumGetAddress200Response, "__esModule", { value: true });
27109EthereumGetAddress200Response.EthereumGetAddress200ResponseToJSON = EthereumGetAddress200Response.EthereumGetAddress200ResponseFromJSONTyped = EthereumGetAddress200Response.EthereumGetAddress200ResponseFromJSON = EthereumGetAddress200Response.instanceOfEthereumGetAddress200Response = void 0;
27110function instanceOfEthereumGetAddress200Response(value) {
27111  let isInstance = true;
27112  isInstance = isInstance && "address" in value;
27113  return isInstance;
27114}
27115EthereumGetAddress200Response.instanceOfEthereumGetAddress200Response = instanceOfEthereumGetAddress200Response;
27116function EthereumGetAddress200ResponseFromJSON(json) {
27117  return EthereumGetAddress200ResponseFromJSONTyped(json);
27118}
27119EthereumGetAddress200Response.EthereumGetAddress200ResponseFromJSON = EthereumGetAddress200ResponseFromJSON;
27120function EthereumGetAddress200ResponseFromJSONTyped(json, ignoreDiscriminator) {
27121  if (json === void 0 || json === null) {
27122    return json;
27123  }
27124  return {
27125    "address": json["address"]
27126  };
27127}
27128EthereumGetAddress200Response.EthereumGetAddress200ResponseFromJSONTyped = EthereumGetAddress200ResponseFromJSONTyped;
27129function EthereumGetAddress200ResponseToJSON(value) {
27130  if (value === void 0) {
27131    return void 0;
27132  }
27133  if (value === null) {
27134    return null;
27135  }
27136  return {
27137    "address": value.address
27138  };
27139}
27140EthereumGetAddress200Response.EthereumGetAddress200ResponseToJSON = EthereumGetAddress200ResponseToJSON;
27141var FlashHashRequest = {};
27142Object.defineProperty(FlashHashRequest, "__esModule", { value: true });
27143FlashHashRequest.FlashHashRequestToJSON = FlashHashRequest.FlashHashRequestFromJSONTyped = FlashHashRequest.FlashHashRequestFromJSON = FlashHashRequest.instanceOfFlashHashRequest = void 0;
27144const runtime_1$f = runtime$d;
27145const TypesHexBytesLower_1$4 = TypesHexBytesLower;
27146const TypesNumericU32_1$a = TypesNumericU32;
27147function instanceOfFlashHashRequest(value) {
27148  let isInstance = true;
27149  isInstance = isInstance && "length" in value;
27150  isInstance = isInstance && "address" in value;
27151  return isInstance;
27152}
27153FlashHashRequest.instanceOfFlashHashRequest = instanceOfFlashHashRequest;
27154function FlashHashRequestFromJSON(json) {
27155  return FlashHashRequestFromJSONTyped(json);
27156}
27157FlashHashRequest.FlashHashRequestFromJSON = FlashHashRequestFromJSON;
27158function FlashHashRequestFromJSONTyped(json, ignoreDiscriminator) {
27159  if (json === void 0 || json === null) {
27160    return json;
27161  }
27162  return {
27163    "challenge": !(0, runtime_1$f.exists)(json, "challenge") ? void 0 : (0, TypesHexBytesLower_1$4.TypesHexBytesLowerFromJSON)(json["challenge"]),
27164    "length": (0, TypesNumericU32_1$a.TypesNumericU32FromJSON)(json["length"]),
27165    "address": (0, TypesNumericU32_1$a.TypesNumericU32FromJSON)(json["address"])
27166  };
27167}
27168FlashHashRequest.FlashHashRequestFromJSONTyped = FlashHashRequestFromJSONTyped;
27169function FlashHashRequestToJSON(value) {
27170  if (value === void 0) {
27171    return void 0;
27172  }
27173  if (value === null) {
27174    return null;
27175  }
27176  return {
27177    "challenge": (0, TypesHexBytesLower_1$4.TypesHexBytesLowerToJSON)(value.challenge),
27178    "length": (0, TypesNumericU32_1$a.TypesNumericU32ToJSON)(value.length),
27179    "address": (0, TypesNumericU32_1$a.TypesNumericU32ToJSON)(value.address)
27180  };
27181}
27182FlashHashRequest.FlashHashRequestToJSON = FlashHashRequestToJSON;
27183var FlashWriteRequest = {};
27184Object.defineProperty(FlashWriteRequest, "__esModule", { value: true });
27185FlashWriteRequest.FlashWriteRequestToJSON = FlashWriteRequest.FlashWriteRequestFromJSONTyped = FlashWriteRequest.FlashWriteRequestFromJSON = FlashWriteRequest.instanceOfFlashWriteRequest = void 0;
27186const runtime_1$e = runtime$d;
27187const TypesHexBytesLower_1$3 = TypesHexBytesLower;
27188const TypesNumericU32_1$9 = TypesNumericU32;
27189function instanceOfFlashWriteRequest(value) {
27190  let isInstance = true;
27191  isInstance = isInstance && "address" in value;
27192  return isInstance;
27193}
27194FlashWriteRequest.instanceOfFlashWriteRequest = instanceOfFlashWriteRequest;
27195function FlashWriteRequestFromJSON(json) {
27196  return FlashWriteRequestFromJSONTyped(json);
27197}
27198FlashWriteRequest.FlashWriteRequestFromJSON = FlashWriteRequestFromJSON;
27199function FlashWriteRequestFromJSONTyped(json, ignoreDiscriminator) {
27200  if (json === void 0 || json === null) {
27201    return json;
27202  }
27203  return {
27204    "erase": !(0, runtime_1$e.exists)(json, "erase") ? void 0 : json["erase"],
27205    "data": !(0, runtime_1$e.exists)(json, "data") ? void 0 : (0, TypesHexBytesLower_1$3.TypesHexBytesLowerFromJSON)(json["data"]),
27206    "address": (0, TypesNumericU32_1$9.TypesNumericU32FromJSON)(json["address"])
27207  };
27208}
27209FlashWriteRequest.FlashWriteRequestFromJSONTyped = FlashWriteRequestFromJSONTyped;
27210function FlashWriteRequestToJSON(value) {
27211  if (value === void 0) {
27212    return void 0;
27213  }
27214  if (value === null) {
27215    return null;
27216  }
27217  return {
27218    "erase": value.erase,
27219    "data": (0, TypesHexBytesLower_1$3.TypesHexBytesLowerToJSON)(value.data),
27220    "address": (0, TypesNumericU32_1$9.TypesNumericU32ToJSON)(value.address)
27221  };
27222}
27223FlashWriteRequest.FlashWriteRequestToJSON = FlashWriteRequestToJSON;
27224var GetEntropyRequest = {};
27225Object.defineProperty(GetEntropyRequest, "__esModule", { value: true });
27226GetEntropyRequest.GetEntropyRequestToJSON = GetEntropyRequest.GetEntropyRequestFromJSONTyped = GetEntropyRequest.GetEntropyRequestFromJSON = GetEntropyRequest.instanceOfGetEntropyRequest = void 0;
27227const TypesNumericU32_1$8 = TypesNumericU32;
27228function instanceOfGetEntropyRequest(value) {
27229  let isInstance = true;
27230  isInstance = isInstance && "size" in value;
27231  return isInstance;
27232}
27233GetEntropyRequest.instanceOfGetEntropyRequest = instanceOfGetEntropyRequest;
27234function GetEntropyRequestFromJSON(json) {
27235  return GetEntropyRequestFromJSONTyped(json);
27236}
27237GetEntropyRequest.GetEntropyRequestFromJSON = GetEntropyRequestFromJSON;
27238function GetEntropyRequestFromJSONTyped(json, ignoreDiscriminator) {
27239  if (json === void 0 || json === null) {
27240    return json;
27241  }
27242  return {
27243    "size": (0, TypesNumericU32_1$8.TypesNumericU32FromJSON)(json["size"])
27244  };
27245}
27246GetEntropyRequest.GetEntropyRequestFromJSONTyped = GetEntropyRequestFromJSONTyped;
27247function GetEntropyRequestToJSON(value) {
27248  if (value === void 0) {
27249    return void 0;
27250  }
27251  if (value === null) {
27252    return null;
27253  }
27254  return {
27255    "size": (0, TypesNumericU32_1$8.TypesNumericU32ToJSON)(value.size)
27256  };
27257}
27258GetEntropyRequest.GetEntropyRequestToJSON = GetEntropyRequestToJSON;
27259var GetPublicKey200Response = {};
27260Object.defineProperty(GetPublicKey200Response, "__esModule", { value: true });
27261GetPublicKey200Response.GetPublicKey200ResponseToJSON = GetPublicKey200Response.GetPublicKey200ResponseFromJSONTyped = GetPublicKey200Response.GetPublicKey200ResponseFromJSON = GetPublicKey200Response.instanceOfGetPublicKey200Response = void 0;
27262function instanceOfGetPublicKey200Response(value) {
27263  let isInstance = true;
27264  isInstance = isInstance && "xpub" in value;
27265  return isInstance;
27266}
27267GetPublicKey200Response.instanceOfGetPublicKey200Response = instanceOfGetPublicKey200Response;
27268function GetPublicKey200ResponseFromJSON(json) {
27269  return GetPublicKey200ResponseFromJSONTyped(json);
27270}
27271GetPublicKey200Response.GetPublicKey200ResponseFromJSON = GetPublicKey200ResponseFromJSON;
27272function GetPublicKey200ResponseFromJSONTyped(json, ignoreDiscriminator) {
27273  if (json === void 0 || json === null) {
27274    return json;
27275  }
27276  return {
27277    "xpub": json["xpub"]
27278  };
27279}
27280GetPublicKey200Response.GetPublicKey200ResponseFromJSONTyped = GetPublicKey200ResponseFromJSONTyped;
27281function GetPublicKey200ResponseToJSON(value) {
27282  if (value === void 0) {
27283    return void 0;
27284  }
27285  if (value === null) {
27286    return null;
27287  }
27288  return {
27289    "xpub": value.xpub
27290  };
27291}
27292GetPublicKey200Response.GetPublicKey200ResponseToJSON = GetPublicKey200ResponseToJSON;
27293var GetPublicKeyRequest = {};
27294Object.defineProperty(GetPublicKeyRequest, "__esModule", { value: true });
27295GetPublicKeyRequest.GetPublicKeyRequestToJSON = GetPublicKeyRequest.GetPublicKeyRequestFromJSONTyped = GetPublicKeyRequest.GetPublicKeyRequestFromJSON = GetPublicKeyRequest.instanceOfGetPublicKeyRequest = GetPublicKeyRequest.GetPublicKeyRequestScriptTypeEnum = void 0;
27296const runtime_1$d = runtime$d;
27297const TypesNumericU32_1$7 = TypesNumericU32;
27298GetPublicKeyRequest.GetPublicKeyRequestScriptTypeEnum = {
27299  p2pkh: "p2pkh",
27300  p2wpkh: "p2wpkh",
27301  p2sh_p2wpkh: "p2sh-p2wpkh"
27302};
27303function instanceOfGetPublicKeyRequest(value) {
27304  let isInstance = true;
27305  isInstance = isInstance && "address_n" in value;
27306  return isInstance;
27307}
27308GetPublicKeyRequest.instanceOfGetPublicKeyRequest = instanceOfGetPublicKeyRequest;
27309function GetPublicKeyRequestFromJSON(json) {
27310  return GetPublicKeyRequestFromJSONTyped(json);
27311}
27312GetPublicKeyRequest.GetPublicKeyRequestFromJSON = GetPublicKeyRequestFromJSON;
27313function GetPublicKeyRequestFromJSONTyped(json, ignoreDiscriminator) {
27314  if (json === void 0 || json === null) {
27315    return json;
27316  }
27317  return {
27318    "script_type": !(0, runtime_1$d.exists)(json, "script_type") ? void 0 : json["script_type"],
27319    "coin_name": !(0, runtime_1$d.exists)(json, "coin_name") ? void 0 : json["coin_name"],
27320    "show_display": !(0, runtime_1$d.exists)(json, "show_display") ? void 0 : json["show_display"],
27321    "ecdsa_curve_name": !(0, runtime_1$d.exists)(json, "ecdsa_curve_name") ? void 0 : json["ecdsa_curve_name"],
27322    "address_n": json["address_n"].map(TypesNumericU32_1$7.TypesNumericU32FromJSON)
27323  };
27324}
27325GetPublicKeyRequest.GetPublicKeyRequestFromJSONTyped = GetPublicKeyRequestFromJSONTyped;
27326function GetPublicKeyRequestToJSON(value) {
27327  if (value === void 0) {
27328    return void 0;
27329  }
27330  if (value === null) {
27331    return null;
27332  }
27333  return {
27334    "script_type": value.script_type,
27335    "coin_name": value.coin_name,
27336    "show_display": value.show_display,
27337    "ecdsa_curve_name": value.ecdsa_curve_name,
27338    "address_n": value.address_n.map(TypesNumericU32_1$7.TypesNumericU32ToJSON)
27339  };
27340}
27341GetPublicKeyRequest.GetPublicKeyRequestToJSON = GetPublicKeyRequestToJSON;
27342var LoadDeviceRequest = {};
27343Object.defineProperty(LoadDeviceRequest, "__esModule", { value: true });
27344LoadDeviceRequest.LoadDeviceRequestToJSON = LoadDeviceRequest.LoadDeviceRequestFromJSONTyped = LoadDeviceRequest.LoadDeviceRequestFromJSON = LoadDeviceRequest.instanceOfLoadDeviceRequest = void 0;
27345const runtime_1$c = runtime$d;
27346const TypesNumericU32_1$6 = TypesNumericU32;
27347function instanceOfLoadDeviceRequest(value) {
27348  let isInstance = true;
27349  isInstance = isInstance && "mnemonic" in value;
27350  isInstance = isInstance && "xprv" in value;
27351  return isInstance;
27352}
27353LoadDeviceRequest.instanceOfLoadDeviceRequest = instanceOfLoadDeviceRequest;
27354function LoadDeviceRequestFromJSON(json) {
27355  return LoadDeviceRequestFromJSONTyped(json);
27356}
27357LoadDeviceRequest.LoadDeviceRequestFromJSON = LoadDeviceRequestFromJSON;
27358function LoadDeviceRequestFromJSONTyped(json, ignoreDiscriminator) {
27359  if (json === void 0 || json === null) {
27360    return json;
27361  }
27362  return {
27363    "u2f_counter": !(0, runtime_1$c.exists)(json, "u2f_counter") ? void 0 : (0, TypesNumericU32_1$6.TypesNumericU32FromJSON)(json["u2f_counter"]),
27364    "skip_checksum": !(0, runtime_1$c.exists)(json, "skip_checksum") ? void 0 : json["skip_checksum"],
27365    "label": !(0, runtime_1$c.exists)(json, "label") ? void 0 : json["label"],
27366    "language": !(0, runtime_1$c.exists)(json, "language") ? void 0 : json["language"],
27367    "passphrase_protection": !(0, runtime_1$c.exists)(json, "passphrase_protection") ? void 0 : json["passphrase_protection"],
27368    "pin": !(0, runtime_1$c.exists)(json, "pin") ? void 0 : (0, TypesNumericU32_1$6.TypesNumericU32FromJSON)(json["pin"]),
27369    "mnemonic": json["mnemonic"],
27370    "xprv": json["xprv"]
27371  };
27372}
27373LoadDeviceRequest.LoadDeviceRequestFromJSONTyped = LoadDeviceRequestFromJSONTyped;
27374function LoadDeviceRequestToJSON(value) {
27375  if (value === void 0) {
27376    return void 0;
27377  }
27378  if (value === null) {
27379    return null;
27380  }
27381  return {
27382    "u2f_counter": (0, TypesNumericU32_1$6.TypesNumericU32ToJSON)(value.u2f_counter),
27383    "skip_checksum": value.skip_checksum,
27384    "label": value.label,
27385    "language": value.language,
27386    "passphrase_protection": value.passphrase_protection,
27387    "pin": (0, TypesNumericU32_1$6.TypesNumericU32ToJSON)(value.pin),
27388    "mnemonic": value.mnemonic,
27389    "xprv": value.xprv
27390  };
27391}
27392LoadDeviceRequest.LoadDeviceRequestToJSON = LoadDeviceRequestToJSON;
27393var LoadDeviceRequestAllOf = {};
27394Object.defineProperty(LoadDeviceRequestAllOf, "__esModule", { value: true });
27395LoadDeviceRequestAllOf.LoadDeviceRequestAllOfToJSON = LoadDeviceRequestAllOf.LoadDeviceRequestAllOfFromJSONTyped = LoadDeviceRequestAllOf.LoadDeviceRequestAllOfFromJSON = LoadDeviceRequestAllOf.instanceOfLoadDeviceRequestAllOf = void 0;
27396const runtime_1$b = runtime$d;
27397const TypesNumericU32_1$5 = TypesNumericU32;
27398function instanceOfLoadDeviceRequestAllOf(value) {
27399  let isInstance = true;
27400  return isInstance;
27401}
27402LoadDeviceRequestAllOf.instanceOfLoadDeviceRequestAllOf = instanceOfLoadDeviceRequestAllOf;
27403function LoadDeviceRequestAllOfFromJSON(json) {
27404  return LoadDeviceRequestAllOfFromJSONTyped(json);
27405}
27406LoadDeviceRequestAllOf.LoadDeviceRequestAllOfFromJSON = LoadDeviceRequestAllOfFromJSON;
27407function LoadDeviceRequestAllOfFromJSONTyped(json, ignoreDiscriminator) {
27408  if (json === void 0 || json === null) {
27409    return json;
27410  }
27411  return {
27412    "u2f_counter": !(0, runtime_1$b.exists)(json, "u2f_counter") ? void 0 : (0, TypesNumericU32_1$5.TypesNumericU32FromJSON)(json["u2f_counter"]),
27413    "skip_checksum": !(0, runtime_1$b.exists)(json, "skip_checksum") ? void 0 : json["skip_checksum"],
27414    "label": !(0, runtime_1$b.exists)(json, "label") ? void 0 : json["label"],
27415    "language": !(0, runtime_1$b.exists)(json, "language") ? void 0 : json["language"],
27416    "passphrase_protection": !(0, runtime_1$b.exists)(json, "passphrase_protection") ? void 0 : json["passphrase_protection"],
27417    "pin": !(0, runtime_1$b.exists)(json, "pin") ? void 0 : (0, TypesNumericU32_1$5.TypesNumericU32FromJSON)(json["pin"])
27418  };
27419}
27420LoadDeviceRequestAllOf.LoadDeviceRequestAllOfFromJSONTyped = LoadDeviceRequestAllOfFromJSONTyped;
27421function LoadDeviceRequestAllOfToJSON(value) {
27422  if (value === void 0) {
27423    return void 0;
27424  }
27425  if (value === null) {
27426    return null;
27427  }
27428  return {
27429    "u2f_counter": (0, TypesNumericU32_1$5.TypesNumericU32ToJSON)(value.u2f_counter),
27430    "skip_checksum": value.skip_checksum,
27431    "label": value.label,
27432    "language": value.language,
27433    "passphrase_protection": value.passphrase_protection,
27434    "pin": (0, TypesNumericU32_1$5.TypesNumericU32ToJSON)(value.pin)
27435  };
27436}
27437LoadDeviceRequestAllOf.LoadDeviceRequestAllOfToJSON = LoadDeviceRequestAllOfToJSON;
27438var LoadDeviceRequestAllOf1 = {};
27439Object.defineProperty(LoadDeviceRequestAllOf1, "__esModule", { value: true });
27440LoadDeviceRequestAllOf1.LoadDeviceRequestAllOf1ToJSON = LoadDeviceRequestAllOf1.LoadDeviceRequestAllOf1FromJSONTyped = LoadDeviceRequestAllOf1.LoadDeviceRequestAllOf1FromJSON = LoadDeviceRequestAllOf1.instanceOfLoadDeviceRequestAllOf1 = void 0;
27441function instanceOfLoadDeviceRequestAllOf1(value) {
27442  let isInstance = true;
27443  isInstance = isInstance && "mnemonic" in value;
27444  isInstance = isInstance && "xprv" in value;
27445  return isInstance;
27446}
27447LoadDeviceRequestAllOf1.instanceOfLoadDeviceRequestAllOf1 = instanceOfLoadDeviceRequestAllOf1;
27448function LoadDeviceRequestAllOf1FromJSON(json) {
27449  return LoadDeviceRequestAllOf1FromJSONTyped(json);
27450}
27451LoadDeviceRequestAllOf1.LoadDeviceRequestAllOf1FromJSON = LoadDeviceRequestAllOf1FromJSON;
27452function LoadDeviceRequestAllOf1FromJSONTyped(json, ignoreDiscriminator) {
27453  if (json === void 0 || json === null) {
27454    return json;
27455  }
27456  return {
27457    "mnemonic": json["mnemonic"],
27458    "xprv": json["xprv"]
27459  };
27460}
27461LoadDeviceRequestAllOf1.LoadDeviceRequestAllOf1FromJSONTyped = LoadDeviceRequestAllOf1FromJSONTyped;
27462function LoadDeviceRequestAllOf1ToJSON(value) {
27463  if (value === void 0) {
27464    return void 0;
27465  }
27466  if (value === null) {
27467    return null;
27468  }
27469  return {
27470    "mnemonic": value.mnemonic,
27471    "xprv": value.xprv
27472  };
27473}
27474LoadDeviceRequestAllOf1.LoadDeviceRequestAllOf1ToJSON = LoadDeviceRequestAllOf1ToJSON;
27475var LoadDeviceRequestAllOf1AnyOf = {};
27476Object.defineProperty(LoadDeviceRequestAllOf1AnyOf, "__esModule", { value: true });
27477LoadDeviceRequestAllOf1AnyOf.LoadDeviceRequestAllOf1AnyOfToJSON = LoadDeviceRequestAllOf1AnyOf.LoadDeviceRequestAllOf1AnyOfFromJSONTyped = LoadDeviceRequestAllOf1AnyOf.LoadDeviceRequestAllOf1AnyOfFromJSON = LoadDeviceRequestAllOf1AnyOf.instanceOfLoadDeviceRequestAllOf1AnyOf = void 0;
27478function instanceOfLoadDeviceRequestAllOf1AnyOf(value) {
27479  let isInstance = true;
27480  isInstance = isInstance && "mnemonic" in value;
27481  return isInstance;
27482}
27483LoadDeviceRequestAllOf1AnyOf.instanceOfLoadDeviceRequestAllOf1AnyOf = instanceOfLoadDeviceRequestAllOf1AnyOf;
27484function LoadDeviceRequestAllOf1AnyOfFromJSON(json) {
27485  return LoadDeviceRequestAllOf1AnyOfFromJSONTyped(json);
27486}
27487LoadDeviceRequestAllOf1AnyOf.LoadDeviceRequestAllOf1AnyOfFromJSON = LoadDeviceRequestAllOf1AnyOfFromJSON;
27488function LoadDeviceRequestAllOf1AnyOfFromJSONTyped(json, ignoreDiscriminator) {
27489  if (json === void 0 || json === null) {
27490    return json;
27491  }
27492  return {
27493    "mnemonic": json["mnemonic"]
27494  };
27495}
27496LoadDeviceRequestAllOf1AnyOf.LoadDeviceRequestAllOf1AnyOfFromJSONTyped = LoadDeviceRequestAllOf1AnyOfFromJSONTyped;
27497function LoadDeviceRequestAllOf1AnyOfToJSON(value) {
27498  if (value === void 0) {
27499    return void 0;
27500  }
27501  if (value === null) {
27502    return null;
27503  }
27504  return {
27505    "mnemonic": value.mnemonic
27506  };
27507}
27508LoadDeviceRequestAllOf1AnyOf.LoadDeviceRequestAllOf1AnyOfToJSON = LoadDeviceRequestAllOf1AnyOfToJSON;
27509var LoadDeviceRequestAllOf1AnyOf1 = {};
27510Object.defineProperty(LoadDeviceRequestAllOf1AnyOf1, "__esModule", { value: true });
27511LoadDeviceRequestAllOf1AnyOf1.LoadDeviceRequestAllOf1AnyOf1ToJSON = LoadDeviceRequestAllOf1AnyOf1.LoadDeviceRequestAllOf1AnyOf1FromJSONTyped = LoadDeviceRequestAllOf1AnyOf1.LoadDeviceRequestAllOf1AnyOf1FromJSON = LoadDeviceRequestAllOf1AnyOf1.instanceOfLoadDeviceRequestAllOf1AnyOf1 = void 0;
27512function instanceOfLoadDeviceRequestAllOf1AnyOf1(value) {
27513  let isInstance = true;
27514  isInstance = isInstance && "xprv" in value;
27515  return isInstance;
27516}
27517LoadDeviceRequestAllOf1AnyOf1.instanceOfLoadDeviceRequestAllOf1AnyOf1 = instanceOfLoadDeviceRequestAllOf1AnyOf1;
27518function LoadDeviceRequestAllOf1AnyOf1FromJSON(json) {
27519  return LoadDeviceRequestAllOf1AnyOf1FromJSONTyped(json);
27520}
27521LoadDeviceRequestAllOf1AnyOf1.LoadDeviceRequestAllOf1AnyOf1FromJSON = LoadDeviceRequestAllOf1AnyOf1FromJSON;
27522function LoadDeviceRequestAllOf1AnyOf1FromJSONTyped(json, ignoreDiscriminator) {
27523  if (json === void 0 || json === null) {
27524    return json;
27525  }
27526  return {
27527    "xprv": json["xprv"]
27528  };
27529}
27530LoadDeviceRequestAllOf1AnyOf1.LoadDeviceRequestAllOf1AnyOf1FromJSONTyped = LoadDeviceRequestAllOf1AnyOf1FromJSONTyped;
27531function LoadDeviceRequestAllOf1AnyOf1ToJSON(value) {
27532  if (value === void 0) {
27533    return void 0;
27534  }
27535  if (value === null) {
27536    return null;
27537  }
27538  return {
27539    "xprv": value.xprv
27540  };
27541}
27542LoadDeviceRequestAllOf1AnyOf1.LoadDeviceRequestAllOf1AnyOf1ToJSON = LoadDeviceRequestAllOf1AnyOf1ToJSON;
27543var Pair200Response = {};
27544Object.defineProperty(Pair200Response, "__esModule", { value: true });
27545Pair200Response.Pair200ResponseToJSON = Pair200Response.Pair200ResponseFromJSONTyped = Pair200Response.Pair200ResponseFromJSON = Pair200Response.instanceOfPair200Response = void 0;
27546function instanceOfPair200Response(value) {
27547  let isInstance = true;
27548  isInstance = isInstance && "apiKey" in value;
27549  return isInstance;
27550}
27551Pair200Response.instanceOfPair200Response = instanceOfPair200Response;
27552function Pair200ResponseFromJSON(json) {
27553  return Pair200ResponseFromJSONTyped(json);
27554}
27555Pair200Response.Pair200ResponseFromJSON = Pair200ResponseFromJSON;
27556function Pair200ResponseFromJSONTyped(json, ignoreDiscriminator) {
27557  if (json === void 0 || json === null) {
27558    return json;
27559  }
27560  return {
27561    "apiKey": json["apiKey"]
27562  };
27563}
27564Pair200Response.Pair200ResponseFromJSONTyped = Pair200ResponseFromJSONTyped;
27565function Pair200ResponseToJSON(value) {
27566  if (value === void 0) {
27567    return void 0;
27568  }
27569  if (value === null) {
27570    return null;
27571  }
27572  return {
27573    "apiKey": value.apiKey
27574  };
27575}
27576Pair200Response.Pair200ResponseToJSON = Pair200ResponseToJSON;
27577var PairingInfo = {};
27578Object.defineProperty(PairingInfo, "__esModule", { value: true });
27579PairingInfo.PairingInfoToJSON = PairingInfo.PairingInfoFromJSONTyped = PairingInfo.PairingInfoFromJSON = PairingInfo.instanceOfPairingInfo = void 0;
27580const runtime_1$a = runtime$d;
27581function instanceOfPairingInfo(value) {
27582  let isInstance = true;
27583  isInstance = isInstance && "imageUrl" in value;
27584  isInstance = isInstance && "url" in value;
27585  isInstance = isInstance && "name" in value;
27586  return isInstance;
27587}
27588PairingInfo.instanceOfPairingInfo = instanceOfPairingInfo;
27589function PairingInfoFromJSON(json) {
27590  return PairingInfoFromJSONTyped(json);
27591}
27592PairingInfo.PairingInfoFromJSON = PairingInfoFromJSON;
27593function PairingInfoFromJSONTyped(json, ignoreDiscriminator) {
27594  if (json === void 0 || json === null) {
27595    return json;
27596  }
27597  return {
27598    "addedOn": !(0, runtime_1$a.exists)(json, "addedOn") ? void 0 : json["addedOn"],
27599    "imageUrl": json["imageUrl"],
27600    "url": json["url"],
27601    "name": json["name"]
27602  };
27603}
27604PairingInfo.PairingInfoFromJSONTyped = PairingInfoFromJSONTyped;
27605function PairingInfoToJSON(value) {
27606  if (value === void 0) {
27607    return void 0;
27608  }
27609  if (value === null) {
27610    return null;
27611  }
27612  return {
27613    "addedOn": value.addedOn,
27614    "imageUrl": value.imageUrl,
27615    "url": value.url,
27616    "name": value.name
27617  };
27618}
27619PairingInfo.PairingInfoToJSON = PairingInfoToJSON;
27620var Ping200Response = {};
27621Object.defineProperty(Ping200Response, "__esModule", { value: true });
27622Ping200Response.Ping200ResponseToJSON = Ping200Response.Ping200ResponseFromJSONTyped = Ping200Response.Ping200ResponseFromJSON = Ping200Response.instanceOfPing200Response = void 0;
27623function instanceOfPing200Response(value) {
27624  let isInstance = true;
27625  isInstance = isInstance && "message" in value;
27626  return isInstance;
27627}
27628Ping200Response.instanceOfPing200Response = instanceOfPing200Response;
27629function Ping200ResponseFromJSON(json) {
27630  return Ping200ResponseFromJSONTyped(json);
27631}
27632Ping200Response.Ping200ResponseFromJSON = Ping200ResponseFromJSON;
27633function Ping200ResponseFromJSONTyped(json, ignoreDiscriminator) {
27634  if (json === void 0 || json === null) {
27635    return json;
27636  }
27637  return {
27638    "message": json["message"]
27639  };
27640}
27641Ping200Response.Ping200ResponseFromJSONTyped = Ping200ResponseFromJSONTyped;
27642function Ping200ResponseToJSON(value) {
27643  if (value === void 0) {
27644    return void 0;
27645  }
27646  if (value === null) {
27647    return null;
27648  }
27649  return {
27650    "message": value.message
27651  };
27652}
27653Ping200Response.Ping200ResponseToJSON = Ping200ResponseToJSON;
27654var PingRequest = {};
27655Object.defineProperty(PingRequest, "__esModule", { value: true });
27656PingRequest.PingRequestToJSON = PingRequest.PingRequestFromJSONTyped = PingRequest.PingRequestFromJSON = PingRequest.instanceOfPingRequest = void 0;
27657const runtime_1$9 = runtime$d;
27658function instanceOfPingRequest(value) {
27659  let isInstance = true;
27660  return isInstance;
27661}
27662PingRequest.instanceOfPingRequest = instanceOfPingRequest;
27663function PingRequestFromJSON(json) {
27664  return PingRequestFromJSONTyped(json);
27665}
27666PingRequest.PingRequestFromJSON = PingRequestFromJSON;
27667function PingRequestFromJSONTyped(json, ignoreDiscriminator) {
27668  if (json === void 0 || json === null) {
27669    return json;
27670  }
27671  return {
27672    "message": !(0, runtime_1$9.exists)(json, "message") ? void 0 : json["message"],
27673    "wipe_code_protection": !(0, runtime_1$9.exists)(json, "wipe_code_protection") ? void 0 : json["wipe_code_protection"],
27674    "passphrase_protection": !(0, runtime_1$9.exists)(json, "passphrase_protection") ? void 0 : json["passphrase_protection"],
27675    "pin_protection": !(0, runtime_1$9.exists)(json, "pin_protection") ? void 0 : json["pin_protection"],
27676    "button_protection": !(0, runtime_1$9.exists)(json, "button_protection") ? void 0 : json["button_protection"]
27677  };
27678}
27679PingRequest.PingRequestFromJSONTyped = PingRequestFromJSONTyped;
27680function PingRequestToJSON(value) {
27681  if (value === void 0) {
27682    return void 0;
27683  }
27684  if (value === null) {
27685    return null;
27686  }
27687  return {
27688    "message": value.message,
27689    "wipe_code_protection": value.wipe_code_protection,
27690    "passphrase_protection": value.passphrase_protection,
27691    "pin_protection": value.pin_protection,
27692    "button_protection": value.button_protection
27693  };
27694}
27695PingRequest.PingRequestToJSON = PingRequestToJSON;
27696var RecoverDeviceRequest = {};
27697var RecoverDeviceRequestAutoLockDelayMs = {};
27698Object.defineProperty(RecoverDeviceRequestAutoLockDelayMs, "__esModule", { value: true });
27699RecoverDeviceRequestAutoLockDelayMs.RecoverDeviceRequestAutoLockDelayMsToJSON = RecoverDeviceRequestAutoLockDelayMs.RecoverDeviceRequestAutoLockDelayMsFromJSONTyped = RecoverDeviceRequestAutoLockDelayMs.RecoverDeviceRequestAutoLockDelayMsFromJSON = RecoverDeviceRequestAutoLockDelayMs.instanceOfRecoverDeviceRequestAutoLockDelayMs = void 0;
27700function instanceOfRecoverDeviceRequestAutoLockDelayMs(value) {
27701  let isInstance = true;
27702  return isInstance;
27703}
27704RecoverDeviceRequestAutoLockDelayMs.instanceOfRecoverDeviceRequestAutoLockDelayMs = instanceOfRecoverDeviceRequestAutoLockDelayMs;
27705function RecoverDeviceRequestAutoLockDelayMsFromJSON(json) {
27706  return RecoverDeviceRequestAutoLockDelayMsFromJSONTyped(json);
27707}
27708RecoverDeviceRequestAutoLockDelayMs.RecoverDeviceRequestAutoLockDelayMsFromJSON = RecoverDeviceRequestAutoLockDelayMsFromJSON;
27709function RecoverDeviceRequestAutoLockDelayMsFromJSONTyped(json, ignoreDiscriminator) {
27710  return json;
27711}
27712RecoverDeviceRequestAutoLockDelayMs.RecoverDeviceRequestAutoLockDelayMsFromJSONTyped = RecoverDeviceRequestAutoLockDelayMsFromJSONTyped;
27713function RecoverDeviceRequestAutoLockDelayMsToJSON(value) {
27714  return value;
27715}
27716RecoverDeviceRequestAutoLockDelayMs.RecoverDeviceRequestAutoLockDelayMsToJSON = RecoverDeviceRequestAutoLockDelayMsToJSON;
27717Object.defineProperty(RecoverDeviceRequest, "__esModule", { value: true });
27718RecoverDeviceRequest.RecoverDeviceRequestToJSON = RecoverDeviceRequest.RecoverDeviceRequestFromJSONTyped = RecoverDeviceRequest.RecoverDeviceRequestFromJSON = RecoverDeviceRequest.instanceOfRecoverDeviceRequest = RecoverDeviceRequest.RecoverDeviceRequestWordCountEnum = void 0;
27719const runtime_1$8 = runtime$d;
27720const RecoverDeviceRequestAutoLockDelayMs_1$1 = RecoverDeviceRequestAutoLockDelayMs;
27721const TypesNumericU32_1$4 = TypesNumericU32;
27722RecoverDeviceRequest.RecoverDeviceRequestWordCountEnum = {
27723  NUMBER_12: 12,
27724  NUMBER_18: 18,
27725  NUMBER_24: 24
27726};
27727function instanceOfRecoverDeviceRequest(value) {
27728  let isInstance = true;
27729  isInstance = isInstance && "word_count" in value;
27730  return isInstance;
27731}
27732RecoverDeviceRequest.instanceOfRecoverDeviceRequest = instanceOfRecoverDeviceRequest;
27733function RecoverDeviceRequestFromJSON(json) {
27734  return RecoverDeviceRequestFromJSONTyped(json);
27735}
27736RecoverDeviceRequest.RecoverDeviceRequestFromJSON = RecoverDeviceRequestFromJSON;
27737function RecoverDeviceRequestFromJSONTyped(json, ignoreDiscriminator) {
27738  if (json === void 0 || json === null) {
27739    return json;
27740  }
27741  return {
27742    "dry_run": !(0, runtime_1$8.exists)(json, "dry_run") ? void 0 : json["dry_run"],
27743    "u2f_counter": !(0, runtime_1$8.exists)(json, "u2f_counter") ? void 0 : (0, TypesNumericU32_1$4.TypesNumericU32FromJSON)(json["u2f_counter"]),
27744    "auto_lock_delay_ms": !(0, runtime_1$8.exists)(json, "auto_lock_delay_ms") ? void 0 : (0, RecoverDeviceRequestAutoLockDelayMs_1$1.RecoverDeviceRequestAutoLockDelayMsFromJSON)(json["auto_lock_delay_ms"]),
27745    "no_enforce_wordlist": !(0, runtime_1$8.exists)(json, "no_enforce_wordlist") ? void 0 : json["no_enforce_wordlist"],
27746    "label": !(0, runtime_1$8.exists)(json, "label") ? void 0 : json["label"],
27747    "language": !(0, runtime_1$8.exists)(json, "language") ? void 0 : json["language"],
27748    "pin_protection": !(0, runtime_1$8.exists)(json, "pin_protection") ? void 0 : json["pin_protection"],
27749    "passphrase_protection": !(0, runtime_1$8.exists)(json, "passphrase_protection") ? void 0 : json["passphrase_protection"],
27750    "word_count": json["word_count"]
27751  };
27752}
27753RecoverDeviceRequest.RecoverDeviceRequestFromJSONTyped = RecoverDeviceRequestFromJSONTyped;
27754function RecoverDeviceRequestToJSON(value) {
27755  if (value === void 0) {
27756    return void 0;
27757  }
27758  if (value === null) {
27759    return null;
27760  }
27761  return {
27762    "dry_run": value.dry_run,
27763    "u2f_counter": (0, TypesNumericU32_1$4.TypesNumericU32ToJSON)(value.u2f_counter),
27764    "auto_lock_delay_ms": (0, RecoverDeviceRequestAutoLockDelayMs_1$1.RecoverDeviceRequestAutoLockDelayMsToJSON)(value.auto_lock_delay_ms),
27765    "no_enforce_wordlist": value.no_enforce_wordlist,
27766    "label": value.label,
27767    "language": value.language,
27768    "pin_protection": value.pin_protection,
27769    "passphrase_protection": value.passphrase_protection,
27770    "word_count": value.word_count
27771  };
27772}
27773RecoverDeviceRequest.RecoverDeviceRequestToJSON = RecoverDeviceRequestToJSON;
27774var ResetDeviceRequest = {};
27775Object.defineProperty(ResetDeviceRequest, "__esModule", { value: true });
27776ResetDeviceRequest.ResetDeviceRequestToJSON = ResetDeviceRequest.ResetDeviceRequestFromJSONTyped = ResetDeviceRequest.ResetDeviceRequestFromJSON = ResetDeviceRequest.instanceOfResetDeviceRequest = ResetDeviceRequest.ResetDeviceRequestStrengthEnum = void 0;
27777const runtime_1$7 = runtime$d;
27778const RecoverDeviceRequestAutoLockDelayMs_1 = RecoverDeviceRequestAutoLockDelayMs;
27779const TypesNumericU32_1$3 = TypesNumericU32;
27780ResetDeviceRequest.ResetDeviceRequestStrengthEnum = {
27781  NUMBER_128: 128,
27782  NUMBER_192: 192,
27783  NUMBER_256: 256
27784};
27785function instanceOfResetDeviceRequest(value) {
27786  let isInstance = true;
27787  return isInstance;
27788}
27789ResetDeviceRequest.instanceOfResetDeviceRequest = instanceOfResetDeviceRequest;
27790function ResetDeviceRequestFromJSON(json) {
27791  return ResetDeviceRequestFromJSONTyped(json);
27792}
27793ResetDeviceRequest.ResetDeviceRequestFromJSON = ResetDeviceRequestFromJSON;
27794function ResetDeviceRequestFromJSONTyped(json, ignoreDiscriminator) {
27795  if (json === void 0 || json === null) {
27796    return json;
27797  }
27798  return {
27799    "u2f_counter": !(0, runtime_1$7.exists)(json, "u2f_counter") ? void 0 : (0, TypesNumericU32_1$3.TypesNumericU32FromJSON)(json["u2f_counter"]),
27800    "auto_lock_delay_ms": !(0, runtime_1$7.exists)(json, "auto_lock_delay_ms") ? void 0 : (0, RecoverDeviceRequestAutoLockDelayMs_1.RecoverDeviceRequestAutoLockDelayMsFromJSON)(json["auto_lock_delay_ms"]),
27801    "no_backup": !(0, runtime_1$7.exists)(json, "no_backup") ? void 0 : json["no_backup"],
27802    "label": !(0, runtime_1$7.exists)(json, "label") ? void 0 : json["label"],
27803    "language": !(0, runtime_1$7.exists)(json, "language") ? void 0 : json["language"],
27804    "pin_protection": !(0, runtime_1$7.exists)(json, "pin_protection") ? void 0 : json["pin_protection"],
27805    "passphrase_protection": !(0, runtime_1$7.exists)(json, "passphrase_protection") ? void 0 : json["passphrase_protection"],
27806    "strength": !(0, runtime_1$7.exists)(json, "strength") ? void 0 : json["strength"],
27807    "display_random": !(0, runtime_1$7.exists)(json, "display_random") ? void 0 : json["display_random"]
27808  };
27809}
27810ResetDeviceRequest.ResetDeviceRequestFromJSONTyped = ResetDeviceRequestFromJSONTyped;
27811function ResetDeviceRequestToJSON(value) {
27812  if (value === void 0) {
27813    return void 0;
27814  }
27815  if (value === null) {
27816    return null;
27817  }
27818  return {
27819    "u2f_counter": (0, TypesNumericU32_1$3.TypesNumericU32ToJSON)(value.u2f_counter),
27820    "auto_lock_delay_ms": (0, RecoverDeviceRequestAutoLockDelayMs_1.RecoverDeviceRequestAutoLockDelayMsToJSON)(value.auto_lock_delay_ms),
27821    "no_backup": value.no_backup,
27822    "label": value.label,
27823    "language": value.language,
27824    "pin_protection": value.pin_protection,
27825    "passphrase_protection": value.passphrase_protection,
27826    "strength": value.strength,
27827    "display_random": value.display_random
27828  };
27829}
27830ResetDeviceRequest.ResetDeviceRequestToJSON = ResetDeviceRequestToJSON;
27831var SignIdentityRequest = {};
27832var SignIdentityRequestChallengeHidden = {};
27833Object.defineProperty(SignIdentityRequestChallengeHidden, "__esModule", { value: true });
27834SignIdentityRequestChallengeHidden.SignIdentityRequestChallengeHiddenToJSON = SignIdentityRequestChallengeHidden.SignIdentityRequestChallengeHiddenFromJSONTyped = SignIdentityRequestChallengeHidden.SignIdentityRequestChallengeHiddenFromJSON = SignIdentityRequestChallengeHidden.instanceOfSignIdentityRequestChallengeHidden = void 0;
27835function instanceOfSignIdentityRequestChallengeHidden(value) {
27836  let isInstance = true;
27837  return isInstance;
27838}
27839SignIdentityRequestChallengeHidden.instanceOfSignIdentityRequestChallengeHidden = instanceOfSignIdentityRequestChallengeHidden;
27840function SignIdentityRequestChallengeHiddenFromJSON(json) {
27841  return SignIdentityRequestChallengeHiddenFromJSONTyped(json);
27842}
27843SignIdentityRequestChallengeHidden.SignIdentityRequestChallengeHiddenFromJSON = SignIdentityRequestChallengeHiddenFromJSON;
27844function SignIdentityRequestChallengeHiddenFromJSONTyped(json, ignoreDiscriminator) {
27845  return json;
27846}
27847SignIdentityRequestChallengeHidden.SignIdentityRequestChallengeHiddenFromJSONTyped = SignIdentityRequestChallengeHiddenFromJSONTyped;
27848function SignIdentityRequestChallengeHiddenToJSON(value) {
27849  return value;
27850}
27851SignIdentityRequestChallengeHidden.SignIdentityRequestChallengeHiddenToJSON = SignIdentityRequestChallengeHiddenToJSON;
27852var SignIdentityRequestIndex = {};
27853Object.defineProperty(SignIdentityRequestIndex, "__esModule", { value: true });
27854SignIdentityRequestIndex.SignIdentityRequestIndexToJSON = SignIdentityRequestIndex.SignIdentityRequestIndexFromJSONTyped = SignIdentityRequestIndex.SignIdentityRequestIndexFromJSON = SignIdentityRequestIndex.instanceOfSignIdentityRequestIndex = void 0;
27855function instanceOfSignIdentityRequestIndex(value) {
27856  let isInstance = true;
27857  return isInstance;
27858}
27859SignIdentityRequestIndex.instanceOfSignIdentityRequestIndex = instanceOfSignIdentityRequestIndex;
27860function SignIdentityRequestIndexFromJSON(json) {
27861  return SignIdentityRequestIndexFromJSONTyped(json);
27862}
27863SignIdentityRequestIndex.SignIdentityRequestIndexFromJSON = SignIdentityRequestIndexFromJSON;
27864function SignIdentityRequestIndexFromJSONTyped(json, ignoreDiscriminator) {
27865  return json;
27866}
27867SignIdentityRequestIndex.SignIdentityRequestIndexFromJSONTyped = SignIdentityRequestIndexFromJSONTyped;
27868function SignIdentityRequestIndexToJSON(value) {
27869  return value;
27870}
27871SignIdentityRequestIndex.SignIdentityRequestIndexToJSON = SignIdentityRequestIndexToJSON;
27872Object.defineProperty(SignIdentityRequest, "__esModule", { value: true });
27873SignIdentityRequest.SignIdentityRequestToJSON = SignIdentityRequest.SignIdentityRequestFromJSONTyped = SignIdentityRequest.SignIdentityRequestFromJSON = SignIdentityRequest.instanceOfSignIdentityRequest = void 0;
27874const runtime_1$6 = runtime$d;
27875const SignIdentityRequestChallengeHidden_1 = SignIdentityRequestChallengeHidden;
27876const SignIdentityRequestIndex_1 = SignIdentityRequestIndex;
27877function instanceOfSignIdentityRequest(value) {
27878  let isInstance = true;
27879  isInstance = isInstance && "challenge_hidden" in value;
27880  isInstance = isInstance && "url" in value;
27881  return isInstance;
27882}
27883SignIdentityRequest.instanceOfSignIdentityRequest = instanceOfSignIdentityRequest;
27884function SignIdentityRequestFromJSON(json) {
27885  return SignIdentityRequestFromJSONTyped(json);
27886}
27887SignIdentityRequest.SignIdentityRequestFromJSON = SignIdentityRequestFromJSON;
27888function SignIdentityRequestFromJSONTyped(json, ignoreDiscriminator) {
27889  if (json === void 0 || json === null) {
27890    return json;
27891  }
27892  return {
27893    "ecdsa_curve_name": !(0, runtime_1$6.exists)(json, "ecdsa_curve_name") ? void 0 : json["ecdsa_curve_name"],
27894    "challenge_hidden": (0, SignIdentityRequestChallengeHidden_1.SignIdentityRequestChallengeHiddenFromJSON)(json["challenge_hidden"]),
27895    "challenge_visual": !(0, runtime_1$6.exists)(json, "challenge_visual") ? void 0 : json["challenge_visual"],
27896    "index": !(0, runtime_1$6.exists)(json, "index") ? void 0 : (0, SignIdentityRequestIndex_1.SignIdentityRequestIndexFromJSON)(json["index"]),
27897    "url": json["url"]
27898  };
27899}
27900SignIdentityRequest.SignIdentityRequestFromJSONTyped = SignIdentityRequestFromJSONTyped;
27901function SignIdentityRequestToJSON(value) {
27902  if (value === void 0) {
27903    return void 0;
27904  }
27905  if (value === null) {
27906    return null;
27907  }
27908  return {
27909    "ecdsa_curve_name": value.ecdsa_curve_name,
27910    "challenge_hidden": (0, SignIdentityRequestChallengeHidden_1.SignIdentityRequestChallengeHiddenToJSON)(value.challenge_hidden),
27911    "challenge_visual": value.challenge_visual,
27912    "index": (0, SignIdentityRequestIndex_1.SignIdentityRequestIndexToJSON)(value.index),
27913    "url": value.url
27914  };
27915}
27916SignIdentityRequest.SignIdentityRequestToJSON = SignIdentityRequestToJSON;
27917var TypesCoin = {};
27918Object.defineProperty(TypesCoin, "__esModule", { value: true });
27919TypesCoin.TypesCoinToJSON = TypesCoin.TypesCoinFromJSONTyped = TypesCoin.TypesCoinFromJSON = TypesCoin.instanceOfTypesCoin = void 0;
27920const runtime_1$5 = runtime$d;
27921const TypesHexBytesLower_1$2 = TypesHexBytesLower;
27922const TypesNumericU32_1$2 = TypesNumericU32;
27923const TypesNumericU64_1$2 = TypesNumericU64;
27924function instanceOfTypesCoin(value) {
27925  let isInstance = true;
27926  return isInstance;
27927}
27928TypesCoin.instanceOfTypesCoin = instanceOfTypesCoin;
27929function TypesCoinFromJSON(json) {
27930  return TypesCoinFromJSONTyped(json);
27931}
27932TypesCoin.TypesCoinFromJSON = TypesCoinFromJSON;
27933function TypesCoinFromJSONTyped(json, ignoreDiscriminator) {
27934  if (json === void 0 || json === null) {
27935    return json;
27936  }
27937  return {
27938    "nanoaddr_prefix": !(0, runtime_1$5.exists)(json, "nanoaddr_prefix") ? void 0 : json["nanoaddr_prefix"],
27939    "xpub_magic_segwit_native": !(0, runtime_1$5.exists)(json, "xpub_magic_segwit_native") ? void 0 : (0, TypesNumericU32_1$2.TypesNumericU32FromJSON)(json["xpub_magic_segwit_native"]),
27940    "xpub_magic_segwit_p2sh": !(0, runtime_1$5.exists)(json, "xpub_magic_segwit_p2sh") ? void 0 : (0, TypesNumericU32_1$2.TypesNumericU32FromJSON)(json["xpub_magic_segwit_p2sh"]),
27941    "decred": !(0, runtime_1$5.exists)(json, "decred") ? void 0 : json["decred"],
27942    "bech32_prefix": !(0, runtime_1$5.exists)(json, "bech32_prefix") ? void 0 : json["bech32_prefix"],
27943    "cashaddr_prefix": !(0, runtime_1$5.exists)(json, "cashaddr_prefix") ? void 0 : json["cashaddr_prefix"],
27944    "curve_name": !(0, runtime_1$5.exists)(json, "curve_name") ? void 0 : json["curve_name"],
27945    "force_bip143": !(0, runtime_1$5.exists)(json, "force_bip143") ? void 0 : json["force_bip143"],
27946    "segwit": !(0, runtime_1$5.exists)(json, "segwit") ? void 0 : json["segwit"],
27947    "xpub_magic": !(0, runtime_1$5.exists)(json, "xpub_magic") ? void 0 : (0, TypesNumericU32_1$2.TypesNumericU32FromJSON)(json["xpub_magic"]),
27948    "contract_address": !(0, runtime_1$5.exists)(json, "contract_address") ? void 0 : (0, TypesHexBytesLower_1$2.TypesHexBytesLowerFromJSON)(json["contract_address"]),
27949    "decimals": !(0, runtime_1$5.exists)(json, "decimals") ? void 0 : (0, TypesNumericU32_1$2.TypesNumericU32FromJSON)(json["decimals"]),
27950    "forkid": !(0, runtime_1$5.exists)(json, "forkid") ? void 0 : (0, TypesNumericU32_1$2.TypesNumericU32FromJSON)(json["forkid"]),
27951    "bip44_account_path": !(0, runtime_1$5.exists)(json, "bip44_account_path") ? void 0 : (0, TypesNumericU32_1$2.TypesNumericU32FromJSON)(json["bip44_account_path"]),
27952    "signed_message_header": !(0, runtime_1$5.exists)(json, "signed_message_header") ? void 0 : json["signed_message_header"],
27953    "address_type_p2sh": !(0, runtime_1$5.exists)(json, "address_type_p2sh") ? void 0 : (0, TypesNumericU32_1$2.TypesNumericU32FromJSON)(json["address_type_p2sh"]),
27954    "maxfee_kb": !(0, runtime_1$5.exists)(json, "maxfee_kb") ? void 0 : (0, TypesNumericU64_1$2.TypesNumericU64FromJSON)(json["maxfee_kb"]),
27955    "address_type": !(0, runtime_1$5.exists)(json, "address_type") ? void 0 : (0, TypesNumericU32_1$2.TypesNumericU32FromJSON)(json["address_type"]),
27956    "coin_shortcut": !(0, runtime_1$5.exists)(json, "coin_shortcut") ? void 0 : json["coin_shortcut"],
27957    "coin_name": !(0, runtime_1$5.exists)(json, "coin_name") ? void 0 : json["coin_name"]
27958  };
27959}
27960TypesCoin.TypesCoinFromJSONTyped = TypesCoinFromJSONTyped;
27961function TypesCoinToJSON(value) {
27962  if (value === void 0) {
27963    return void 0;
27964  }
27965  if (value === null) {
27966    return null;
27967  }
27968  return {
27969    "nanoaddr_prefix": value.nanoaddr_prefix,
27970    "xpub_magic_segwit_native": (0, TypesNumericU32_1$2.TypesNumericU32ToJSON)(value.xpub_magic_segwit_native),
27971    "xpub_magic_segwit_p2sh": (0, TypesNumericU32_1$2.TypesNumericU32ToJSON)(value.xpub_magic_segwit_p2sh),
27972    "decred": value.decred,
27973    "bech32_prefix": value.bech32_prefix,
27974    "cashaddr_prefix": value.cashaddr_prefix,
27975    "curve_name": value.curve_name,
27976    "force_bip143": value.force_bip143,
27977    "segwit": value.segwit,
27978    "xpub_magic": (0, TypesNumericU32_1$2.TypesNumericU32ToJSON)(value.xpub_magic),
27979    "contract_address": (0, TypesHexBytesLower_1$2.TypesHexBytesLowerToJSON)(value.contract_address),
27980    "decimals": (0, TypesNumericU32_1$2.TypesNumericU32ToJSON)(value.decimals),
27981    "forkid": (0, TypesNumericU32_1$2.TypesNumericU32ToJSON)(value.forkid),
27982    "bip44_account_path": (0, TypesNumericU32_1$2.TypesNumericU32ToJSON)(value.bip44_account_path),
27983    "signed_message_header": value.signed_message_header,
27984    "address_type_p2sh": (0, TypesNumericU32_1$2.TypesNumericU32ToJSON)(value.address_type_p2sh),
27985    "maxfee_kb": (0, TypesNumericU64_1$2.TypesNumericU64ToJSON)(value.maxfee_kb),
27986    "address_type": (0, TypesNumericU32_1$2.TypesNumericU32ToJSON)(value.address_type),
27987    "coin_shortcut": value.coin_shortcut,
27988    "coin_name": value.coin_name
27989  };
27990}
27991TypesCoin.TypesCoinToJSON = TypesCoinToJSON;
27992var TypesCosmosAminoAny = {};
27993Object.defineProperty(TypesCosmosAminoAny, "__esModule", { value: true });
27994TypesCosmosAminoAny.TypesCosmosAminoAnyToJSON = TypesCosmosAminoAny.TypesCosmosAminoAnyFromJSONTyped = TypesCosmosAminoAny.TypesCosmosAminoAnyFromJSON = TypesCosmosAminoAny.instanceOfTypesCosmosAminoAny = void 0;
27995function instanceOfTypesCosmosAminoAny(value) {
27996  let isInstance = true;
27997  isInstance = isInstance && "value" in value;
27998  isInstance = isInstance && "type" in value;
27999  return isInstance;
28000}
28001TypesCosmosAminoAny.instanceOfTypesCosmosAminoAny = instanceOfTypesCosmosAminoAny;
28002function TypesCosmosAminoAnyFromJSON(json) {
28003  return TypesCosmosAminoAnyFromJSONTyped(json);
28004}
28005TypesCosmosAminoAny.TypesCosmosAminoAnyFromJSON = TypesCosmosAminoAnyFromJSON;
28006function TypesCosmosAminoAnyFromJSONTyped(json, ignoreDiscriminator) {
28007  if (json === void 0 || json === null) {
28008    return json;
28009  }
28010  return {
28011    "value": json["value"],
28012    "type": json["type"]
28013  };
28014}
28015TypesCosmosAminoAny.TypesCosmosAminoAnyFromJSONTyped = TypesCosmosAminoAnyFromJSONTyped;
28016function TypesCosmosAminoAnyToJSON(value) {
28017  if (value === void 0) {
28018    return void 0;
28019  }
28020  if (value === null) {
28021    return null;
28022  }
28023  return {
28024    "value": value.value,
28025    "type": value.type
28026  };
28027}
28028TypesCosmosAminoAny.TypesCosmosAminoAnyToJSON = TypesCosmosAminoAnyToJSON;
28029var TypesCosmosAminoSignDocCosmosSdkBeginRedelegate = {};
28030var TypesCosmosMessagesCosmosSdkUndelegate = {};
28031Object.defineProperty(TypesCosmosMessagesCosmosSdkUndelegate, "__esModule", { value: true });
28032TypesCosmosMessagesCosmosSdkUndelegate.TypesCosmosMessagesCosmosSdkUndelegateToJSON = TypesCosmosMessagesCosmosSdkUndelegate.TypesCosmosMessagesCosmosSdkUndelegateFromJSONTyped = TypesCosmosMessagesCosmosSdkUndelegate.TypesCosmosMessagesCosmosSdkUndelegateFromJSON = TypesCosmosMessagesCosmosSdkUndelegate.instanceOfTypesCosmosMessagesCosmosSdkUndelegate = void 0;
28033const TypesCosmosCoin_1$3 = TypesCosmosCoin;
28034function instanceOfTypesCosmosMessagesCosmosSdkUndelegate(value) {
28035  let isInstance = true;
28036  isInstance = isInstance && "amount" in value;
28037  isInstance = isInstance && "validator_address" in value;
28038  isInstance = isInstance && "delegator_address" in value;
28039  return isInstance;
28040}
28041TypesCosmosMessagesCosmosSdkUndelegate.instanceOfTypesCosmosMessagesCosmosSdkUndelegate = instanceOfTypesCosmosMessagesCosmosSdkUndelegate;
28042function TypesCosmosMessagesCosmosSdkUndelegateFromJSON(json) {
28043  return TypesCosmosMessagesCosmosSdkUndelegateFromJSONTyped(json);
28044}
28045TypesCosmosMessagesCosmosSdkUndelegate.TypesCosmosMessagesCosmosSdkUndelegateFromJSON = TypesCosmosMessagesCosmosSdkUndelegateFromJSON;
28046function TypesCosmosMessagesCosmosSdkUndelegateFromJSONTyped(json, ignoreDiscriminator) {
28047  if (json === void 0 || json === null) {
28048    return json;
28049  }
28050  return {
28051    "amount": (0, TypesCosmosCoin_1$3.TypesCosmosCoinFromJSON)(json["amount"]),
28052    "validator_address": json["validator_address"],
28053    "delegator_address": json["delegator_address"]
28054  };
28055}
28056TypesCosmosMessagesCosmosSdkUndelegate.TypesCosmosMessagesCosmosSdkUndelegateFromJSONTyped = TypesCosmosMessagesCosmosSdkUndelegateFromJSONTyped;
28057function TypesCosmosMessagesCosmosSdkUndelegateToJSON(value) {
28058  if (value === void 0) {
28059    return void 0;
28060  }
28061  if (value === null) {
28062    return null;
28063  }
28064  return {
28065    "amount": (0, TypesCosmosCoin_1$3.TypesCosmosCoinToJSON)(value.amount),
28066    "validator_address": value.validator_address,
28067    "delegator_address": value.delegator_address
28068  };
28069}
28070TypesCosmosMessagesCosmosSdkUndelegate.TypesCosmosMessagesCosmosSdkUndelegateToJSON = TypesCosmosMessagesCosmosSdkUndelegateToJSON;
28071Object.defineProperty(TypesCosmosAminoSignDocCosmosSdkBeginRedelegate, "__esModule", { value: true });
28072TypesCosmosAminoSignDocCosmosSdkBeginRedelegate.TypesCosmosAminoSignDocCosmosSdkBeginRedelegateToJSON = TypesCosmosAminoSignDocCosmosSdkBeginRedelegate.TypesCosmosAminoSignDocCosmosSdkBeginRedelegateFromJSONTyped = TypesCosmosAminoSignDocCosmosSdkBeginRedelegate.TypesCosmosAminoSignDocCosmosSdkBeginRedelegateFromJSON = TypesCosmosAminoSignDocCosmosSdkBeginRedelegate.instanceOfTypesCosmosAminoSignDocCosmosSdkBeginRedelegate = TypesCosmosAminoSignDocCosmosSdkBeginRedelegate.TypesCosmosAminoSignDocCosmosSdkBeginRedelegateTypeEnum = void 0;
28073const TypesCosmosMessagesCosmosSdkUndelegate_1$3 = TypesCosmosMessagesCosmosSdkUndelegate;
28074TypesCosmosAminoSignDocCosmosSdkBeginRedelegate.TypesCosmosAminoSignDocCosmosSdkBeginRedelegateTypeEnum = {
28075  cosmos_sdk_MsgBeginRedelegate: "cosmos-sdk/MsgBeginRedelegate"
28076};
28077function instanceOfTypesCosmosAminoSignDocCosmosSdkBeginRedelegate(value) {
28078  let isInstance = true;
28079  isInstance = isInstance && "value" in value;
28080  isInstance = isInstance && "type" in value;
28081  return isInstance;
28082}
28083TypesCosmosAminoSignDocCosmosSdkBeginRedelegate.instanceOfTypesCosmosAminoSignDocCosmosSdkBeginRedelegate = instanceOfTypesCosmosAminoSignDocCosmosSdkBeginRedelegate;
28084function TypesCosmosAminoSignDocCosmosSdkBeginRedelegateFromJSON(json) {
28085  return TypesCosmosAminoSignDocCosmosSdkBeginRedelegateFromJSONTyped(json);
28086}
28087TypesCosmosAminoSignDocCosmosSdkBeginRedelegate.TypesCosmosAminoSignDocCosmosSdkBeginRedelegateFromJSON = TypesCosmosAminoSignDocCosmosSdkBeginRedelegateFromJSON;
28088function TypesCosmosAminoSignDocCosmosSdkBeginRedelegateFromJSONTyped(json, ignoreDiscriminator) {
28089  if (json === void 0 || json === null) {
28090    return json;
28091  }
28092  return {
28093    "value": (0, TypesCosmosMessagesCosmosSdkUndelegate_1$3.TypesCosmosMessagesCosmosSdkUndelegateFromJSON)(json["value"]),
28094    "type": json["type"]
28095  };
28096}
28097TypesCosmosAminoSignDocCosmosSdkBeginRedelegate.TypesCosmosAminoSignDocCosmosSdkBeginRedelegateFromJSONTyped = TypesCosmosAminoSignDocCosmosSdkBeginRedelegateFromJSONTyped;
28098function TypesCosmosAminoSignDocCosmosSdkBeginRedelegateToJSON(value) {
28099  if (value === void 0) {
28100    return void 0;
28101  }
28102  if (value === null) {
28103    return null;
28104  }
28105  return {
28106    "value": (0, TypesCosmosMessagesCosmosSdkUndelegate_1$3.TypesCosmosMessagesCosmosSdkUndelegateToJSON)(value.value),
28107    "type": value.type
28108  };
28109}
28110TypesCosmosAminoSignDocCosmosSdkBeginRedelegate.TypesCosmosAminoSignDocCosmosSdkBeginRedelegateToJSON = TypesCosmosAminoSignDocCosmosSdkBeginRedelegateToJSON;
28111var TypesCosmosAminoSignDocCosmosSdkBeginRedelegateAllOf = {};
28112Object.defineProperty(TypesCosmosAminoSignDocCosmosSdkBeginRedelegateAllOf, "__esModule", { value: true });
28113TypesCosmosAminoSignDocCosmosSdkBeginRedelegateAllOf.TypesCosmosAminoSignDocCosmosSdkBeginRedelegateAllOfToJSON = TypesCosmosAminoSignDocCosmosSdkBeginRedelegateAllOf.TypesCosmosAminoSignDocCosmosSdkBeginRedelegateAllOfFromJSONTyped = TypesCosmosAminoSignDocCosmosSdkBeginRedelegateAllOf.TypesCosmosAminoSignDocCosmosSdkBeginRedelegateAllOfFromJSON = TypesCosmosAminoSignDocCosmosSdkBeginRedelegateAllOf.instanceOfTypesCosmosAminoSignDocCosmosSdkBeginRedelegateAllOf = TypesCosmosAminoSignDocCosmosSdkBeginRedelegateAllOf.TypesCosmosAminoSignDocCosmosSdkBeginRedelegateAllOfTypeEnum = void 0;
28114const TypesCosmosMessagesCosmosSdkUndelegate_1$2 = TypesCosmosMessagesCosmosSdkUndelegate;
28115TypesCosmosAminoSignDocCosmosSdkBeginRedelegateAllOf.TypesCosmosAminoSignDocCosmosSdkBeginRedelegateAllOfTypeEnum = {
28116  cosmos_sdk_MsgBeginRedelegate: "cosmos-sdk/MsgBeginRedelegate"
28117};
28118function instanceOfTypesCosmosAminoSignDocCosmosSdkBeginRedelegateAllOf(value) {
28119  let isInstance = true;
28120  isInstance = isInstance && "value" in value;
28121  isInstance = isInstance && "type" in value;
28122  return isInstance;
28123}
28124TypesCosmosAminoSignDocCosmosSdkBeginRedelegateAllOf.instanceOfTypesCosmosAminoSignDocCosmosSdkBeginRedelegateAllOf = instanceOfTypesCosmosAminoSignDocCosmosSdkBeginRedelegateAllOf;
28125function TypesCosmosAminoSignDocCosmosSdkBeginRedelegateAllOfFromJSON(json) {
28126  return TypesCosmosAminoSignDocCosmosSdkBeginRedelegateAllOfFromJSONTyped(json);
28127}
28128TypesCosmosAminoSignDocCosmosSdkBeginRedelegateAllOf.TypesCosmosAminoSignDocCosmosSdkBeginRedelegateAllOfFromJSON = TypesCosmosAminoSignDocCosmosSdkBeginRedelegateAllOfFromJSON;
28129function TypesCosmosAminoSignDocCosmosSdkBeginRedelegateAllOfFromJSONTyped(json, ignoreDiscriminator) {
28130  if (json === void 0 || json === null) {
28131    return json;
28132  }
28133  return {
28134    "value": (0, TypesCosmosMessagesCosmosSdkUndelegate_1$2.TypesCosmosMessagesCosmosSdkUndelegateFromJSON)(json["value"]),
28135    "type": json["type"]
28136  };
28137}
28138TypesCosmosAminoSignDocCosmosSdkBeginRedelegateAllOf.TypesCosmosAminoSignDocCosmosSdkBeginRedelegateAllOfFromJSONTyped = TypesCosmosAminoSignDocCosmosSdkBeginRedelegateAllOfFromJSONTyped;
28139function TypesCosmosAminoSignDocCosmosSdkBeginRedelegateAllOfToJSON(value) {
28140  if (value === void 0) {
28141    return void 0;
28142  }
28143  if (value === null) {
28144    return null;
28145  }
28146  return {
28147    "value": (0, TypesCosmosMessagesCosmosSdkUndelegate_1$2.TypesCosmosMessagesCosmosSdkUndelegateToJSON)(value.value),
28148    "type": value.type
28149  };
28150}
28151TypesCosmosAminoSignDocCosmosSdkBeginRedelegateAllOf.TypesCosmosAminoSignDocCosmosSdkBeginRedelegateAllOfToJSON = TypesCosmosAminoSignDocCosmosSdkBeginRedelegateAllOfToJSON;
28152var TypesCosmosAminoSignDocCosmosSdkDelegate = {};
28153var TypesCosmosMessagesCosmosSdkDelegate = {};
28154Object.defineProperty(TypesCosmosMessagesCosmosSdkDelegate, "__esModule", { value: true });
28155TypesCosmosMessagesCosmosSdkDelegate.TypesCosmosMessagesCosmosSdkDelegateToJSON = TypesCosmosMessagesCosmosSdkDelegate.TypesCosmosMessagesCosmosSdkDelegateFromJSONTyped = TypesCosmosMessagesCosmosSdkDelegate.TypesCosmosMessagesCosmosSdkDelegateFromJSON = TypesCosmosMessagesCosmosSdkDelegate.instanceOfTypesCosmosMessagesCosmosSdkDelegate = void 0;
28156const TypesCosmosCoin_1$2 = TypesCosmosCoin;
28157function instanceOfTypesCosmosMessagesCosmosSdkDelegate(value) {
28158  let isInstance = true;
28159  isInstance = isInstance && "amount" in value;
28160  isInstance = isInstance && "validator_address" in value;
28161  isInstance = isInstance && "delegator_address" in value;
28162  return isInstance;
28163}
28164TypesCosmosMessagesCosmosSdkDelegate.instanceOfTypesCosmosMessagesCosmosSdkDelegate = instanceOfTypesCosmosMessagesCosmosSdkDelegate;
28165function TypesCosmosMessagesCosmosSdkDelegateFromJSON(json) {
28166  return TypesCosmosMessagesCosmosSdkDelegateFromJSONTyped(json);
28167}
28168TypesCosmosMessagesCosmosSdkDelegate.TypesCosmosMessagesCosmosSdkDelegateFromJSON = TypesCosmosMessagesCosmosSdkDelegateFromJSON;
28169function TypesCosmosMessagesCosmosSdkDelegateFromJSONTyped(json, ignoreDiscriminator) {
28170  if (json === void 0 || json === null) {
28171    return json;
28172  }
28173  return {
28174    "amount": (0, TypesCosmosCoin_1$2.TypesCosmosCoinFromJSON)(json["amount"]),
28175    "validator_address": json["validator_address"],
28176    "delegator_address": json["delegator_address"]
28177  };
28178}
28179TypesCosmosMessagesCosmosSdkDelegate.TypesCosmosMessagesCosmosSdkDelegateFromJSONTyped = TypesCosmosMessagesCosmosSdkDelegateFromJSONTyped;
28180function TypesCosmosMessagesCosmosSdkDelegateToJSON(value) {
28181  if (value === void 0) {
28182    return void 0;
28183  }
28184  if (value === null) {
28185    return null;
28186  }
28187  return {
28188    "amount": (0, TypesCosmosCoin_1$2.TypesCosmosCoinToJSON)(value.amount),
28189    "validator_address": value.validator_address,
28190    "delegator_address": value.delegator_address
28191  };
28192}
28193TypesCosmosMessagesCosmosSdkDelegate.TypesCosmosMessagesCosmosSdkDelegateToJSON = TypesCosmosMessagesCosmosSdkDelegateToJSON;
28194Object.defineProperty(TypesCosmosAminoSignDocCosmosSdkDelegate, "__esModule", { value: true });
28195TypesCosmosAminoSignDocCosmosSdkDelegate.TypesCosmosAminoSignDocCosmosSdkDelegateToJSON = TypesCosmosAminoSignDocCosmosSdkDelegate.TypesCosmosAminoSignDocCosmosSdkDelegateFromJSONTyped = TypesCosmosAminoSignDocCosmosSdkDelegate.TypesCosmosAminoSignDocCosmosSdkDelegateFromJSON = TypesCosmosAminoSignDocCosmosSdkDelegate.instanceOfTypesCosmosAminoSignDocCosmosSdkDelegate = TypesCosmosAminoSignDocCosmosSdkDelegate.TypesCosmosAminoSignDocCosmosSdkDelegateTypeEnum = void 0;
28196const TypesCosmosMessagesCosmosSdkDelegate_1$1 = TypesCosmosMessagesCosmosSdkDelegate;
28197TypesCosmosAminoSignDocCosmosSdkDelegate.TypesCosmosAminoSignDocCosmosSdkDelegateTypeEnum = {
28198  cosmos_sdk_MsgDelegate: "cosmos-sdk/MsgDelegate"
28199};
28200function instanceOfTypesCosmosAminoSignDocCosmosSdkDelegate(value) {
28201  let isInstance = true;
28202  isInstance = isInstance && "value" in value;
28203  isInstance = isInstance && "type" in value;
28204  return isInstance;
28205}
28206TypesCosmosAminoSignDocCosmosSdkDelegate.instanceOfTypesCosmosAminoSignDocCosmosSdkDelegate = instanceOfTypesCosmosAminoSignDocCosmosSdkDelegate;
28207function TypesCosmosAminoSignDocCosmosSdkDelegateFromJSON(json) {
28208  return TypesCosmosAminoSignDocCosmosSdkDelegateFromJSONTyped(json);
28209}
28210TypesCosmosAminoSignDocCosmosSdkDelegate.TypesCosmosAminoSignDocCosmosSdkDelegateFromJSON = TypesCosmosAminoSignDocCosmosSdkDelegateFromJSON;
28211function TypesCosmosAminoSignDocCosmosSdkDelegateFromJSONTyped(json, ignoreDiscriminator) {
28212  if (json === void 0 || json === null) {
28213    return json;
28214  }
28215  return {
28216    "value": (0, TypesCosmosMessagesCosmosSdkDelegate_1$1.TypesCosmosMessagesCosmosSdkDelegateFromJSON)(json["value"]),
28217    "type": json["type"]
28218  };
28219}
28220TypesCosmosAminoSignDocCosmosSdkDelegate.TypesCosmosAminoSignDocCosmosSdkDelegateFromJSONTyped = TypesCosmosAminoSignDocCosmosSdkDelegateFromJSONTyped;
28221function TypesCosmosAminoSignDocCosmosSdkDelegateToJSON(value) {
28222  if (value === void 0) {
28223    return void 0;
28224  }
28225  if (value === null) {
28226    return null;
28227  }
28228  return {
28229    "value": (0, TypesCosmosMessagesCosmosSdkDelegate_1$1.TypesCosmosMessagesCosmosSdkDelegateToJSON)(value.value),
28230    "type": value.type
28231  };
28232}
28233TypesCosmosAminoSignDocCosmosSdkDelegate.TypesCosmosAminoSignDocCosmosSdkDelegateToJSON = TypesCosmosAminoSignDocCosmosSdkDelegateToJSON;
28234var TypesCosmosAminoSignDocCosmosSdkDelegateAllOf = {};
28235Object.defineProperty(TypesCosmosAminoSignDocCosmosSdkDelegateAllOf, "__esModule", { value: true });
28236TypesCosmosAminoSignDocCosmosSdkDelegateAllOf.TypesCosmosAminoSignDocCosmosSdkDelegateAllOfToJSON = TypesCosmosAminoSignDocCosmosSdkDelegateAllOf.TypesCosmosAminoSignDocCosmosSdkDelegateAllOfFromJSONTyped = TypesCosmosAminoSignDocCosmosSdkDelegateAllOf.TypesCosmosAminoSignDocCosmosSdkDelegateAllOfFromJSON = TypesCosmosAminoSignDocCosmosSdkDelegateAllOf.instanceOfTypesCosmosAminoSignDocCosmosSdkDelegateAllOf = TypesCosmosAminoSignDocCosmosSdkDelegateAllOf.TypesCosmosAminoSignDocCosmosSdkDelegateAllOfTypeEnum = void 0;
28237const TypesCosmosMessagesCosmosSdkDelegate_1 = TypesCosmosMessagesCosmosSdkDelegate;
28238TypesCosmosAminoSignDocCosmosSdkDelegateAllOf.TypesCosmosAminoSignDocCosmosSdkDelegateAllOfTypeEnum = {
28239  cosmos_sdk_MsgDelegate: "cosmos-sdk/MsgDelegate"
28240};
28241function instanceOfTypesCosmosAminoSignDocCosmosSdkDelegateAllOf(value) {
28242  let isInstance = true;
28243  isInstance = isInstance && "value" in value;
28244  isInstance = isInstance && "type" in value;
28245  return isInstance;
28246}
28247TypesCosmosAminoSignDocCosmosSdkDelegateAllOf.instanceOfTypesCosmosAminoSignDocCosmosSdkDelegateAllOf = instanceOfTypesCosmosAminoSignDocCosmosSdkDelegateAllOf;
28248function TypesCosmosAminoSignDocCosmosSdkDelegateAllOfFromJSON(json) {
28249  return TypesCosmosAminoSignDocCosmosSdkDelegateAllOfFromJSONTyped(json);
28250}
28251TypesCosmosAminoSignDocCosmosSdkDelegateAllOf.TypesCosmosAminoSignDocCosmosSdkDelegateAllOfFromJSON = TypesCosmosAminoSignDocCosmosSdkDelegateAllOfFromJSON;
28252function TypesCosmosAminoSignDocCosmosSdkDelegateAllOfFromJSONTyped(json, ignoreDiscriminator) {
28253  if (json === void 0 || json === null) {
28254    return json;
28255  }
28256  return {
28257    "value": (0, TypesCosmosMessagesCosmosSdkDelegate_1.TypesCosmosMessagesCosmosSdkDelegateFromJSON)(json["value"]),
28258    "type": json["type"]
28259  };
28260}
28261TypesCosmosAminoSignDocCosmosSdkDelegateAllOf.TypesCosmosAminoSignDocCosmosSdkDelegateAllOfFromJSONTyped = TypesCosmosAminoSignDocCosmosSdkDelegateAllOfFromJSONTyped;
28262function TypesCosmosAminoSignDocCosmosSdkDelegateAllOfToJSON(value) {
28263  if (value === void 0) {
28264    return void 0;
28265  }
28266  if (value === null) {
28267    return null;
28268  }
28269  return {
28270    "value": (0, TypesCosmosMessagesCosmosSdkDelegate_1.TypesCosmosMessagesCosmosSdkDelegateToJSON)(value.value),
28271    "type": value.type
28272  };
28273}
28274TypesCosmosAminoSignDocCosmosSdkDelegateAllOf.TypesCosmosAminoSignDocCosmosSdkDelegateAllOfToJSON = TypesCosmosAminoSignDocCosmosSdkDelegateAllOfToJSON;
28275var TypesCosmosAminoSignDocCosmosSdkSend = {};
28276var TypesCosmosMessagesCosmosSdkSend = {};
28277Object.defineProperty(TypesCosmosMessagesCosmosSdkSend, "__esModule", { value: true });
28278TypesCosmosMessagesCosmosSdkSend.TypesCosmosMessagesCosmosSdkSendToJSON = TypesCosmosMessagesCosmosSdkSend.TypesCosmosMessagesCosmosSdkSendFromJSONTyped = TypesCosmosMessagesCosmosSdkSend.TypesCosmosMessagesCosmosSdkSendFromJSON = TypesCosmosMessagesCosmosSdkSend.instanceOfTypesCosmosMessagesCosmosSdkSend = void 0;
28279const TypesCosmosCoin_1$1 = TypesCosmosCoin;
28280function instanceOfTypesCosmosMessagesCosmosSdkSend(value) {
28281  let isInstance = true;
28282  isInstance = isInstance && "amount" in value;
28283  isInstance = isInstance && "to_address" in value;
28284  isInstance = isInstance && "from_address" in value;
28285  return isInstance;
28286}
28287TypesCosmosMessagesCosmosSdkSend.instanceOfTypesCosmosMessagesCosmosSdkSend = instanceOfTypesCosmosMessagesCosmosSdkSend;
28288function TypesCosmosMessagesCosmosSdkSendFromJSON(json) {
28289  return TypesCosmosMessagesCosmosSdkSendFromJSONTyped(json);
28290}
28291TypesCosmosMessagesCosmosSdkSend.TypesCosmosMessagesCosmosSdkSendFromJSON = TypesCosmosMessagesCosmosSdkSendFromJSON;
28292function TypesCosmosMessagesCosmosSdkSendFromJSONTyped(json, ignoreDiscriminator) {
28293  if (json === void 0 || json === null) {
28294    return json;
28295  }
28296  return {
28297    "amount": json["amount"].map(TypesCosmosCoin_1$1.TypesCosmosCoinFromJSON),
28298    "to_address": json["to_address"],
28299    "from_address": json["from_address"]
28300  };
28301}
28302TypesCosmosMessagesCosmosSdkSend.TypesCosmosMessagesCosmosSdkSendFromJSONTyped = TypesCosmosMessagesCosmosSdkSendFromJSONTyped;
28303function TypesCosmosMessagesCosmosSdkSendToJSON(value) {
28304  if (value === void 0) {
28305    return void 0;
28306  }
28307  if (value === null) {
28308    return null;
28309  }
28310  return {
28311    "amount": value.amount.map(TypesCosmosCoin_1$1.TypesCosmosCoinToJSON),
28312    "to_address": value.to_address,
28313    "from_address": value.from_address
28314  };
28315}
28316TypesCosmosMessagesCosmosSdkSend.TypesCosmosMessagesCosmosSdkSendToJSON = TypesCosmosMessagesCosmosSdkSendToJSON;
28317Object.defineProperty(TypesCosmosAminoSignDocCosmosSdkSend, "__esModule", { value: true });
28318TypesCosmosAminoSignDocCosmosSdkSend.TypesCosmosAminoSignDocCosmosSdkSendToJSON = TypesCosmosAminoSignDocCosmosSdkSend.TypesCosmosAminoSignDocCosmosSdkSendFromJSONTyped = TypesCosmosAminoSignDocCosmosSdkSend.TypesCosmosAminoSignDocCosmosSdkSendFromJSON = TypesCosmosAminoSignDocCosmosSdkSend.instanceOfTypesCosmosAminoSignDocCosmosSdkSend = TypesCosmosAminoSignDocCosmosSdkSend.TypesCosmosAminoSignDocCosmosSdkSendTypeEnum = void 0;
28319const TypesCosmosMessagesCosmosSdkSend_1$1 = TypesCosmosMessagesCosmosSdkSend;
28320TypesCosmosAminoSignDocCosmosSdkSend.TypesCosmosAminoSignDocCosmosSdkSendTypeEnum = {
28321  cosmos_sdk_MsgSend: "cosmos-sdk/MsgSend"
28322};
28323function instanceOfTypesCosmosAminoSignDocCosmosSdkSend(value) {
28324  let isInstance = true;
28325  isInstance = isInstance && "value" in value;
28326  isInstance = isInstance && "type" in value;
28327  return isInstance;
28328}
28329TypesCosmosAminoSignDocCosmosSdkSend.instanceOfTypesCosmosAminoSignDocCosmosSdkSend = instanceOfTypesCosmosAminoSignDocCosmosSdkSend;
28330function TypesCosmosAminoSignDocCosmosSdkSendFromJSON(json) {
28331  return TypesCosmosAminoSignDocCosmosSdkSendFromJSONTyped(json);
28332}
28333TypesCosmosAminoSignDocCosmosSdkSend.TypesCosmosAminoSignDocCosmosSdkSendFromJSON = TypesCosmosAminoSignDocCosmosSdkSendFromJSON;
28334function TypesCosmosAminoSignDocCosmosSdkSendFromJSONTyped(json, ignoreDiscriminator) {
28335  if (json === void 0 || json === null) {
28336    return json;
28337  }
28338  return {
28339    "value": (0, TypesCosmosMessagesCosmosSdkSend_1$1.TypesCosmosMessagesCosmosSdkSendFromJSON)(json["value"]),
28340    "type": json["type"]
28341  };
28342}
28343TypesCosmosAminoSignDocCosmosSdkSend.TypesCosmosAminoSignDocCosmosSdkSendFromJSONTyped = TypesCosmosAminoSignDocCosmosSdkSendFromJSONTyped;
28344function TypesCosmosAminoSignDocCosmosSdkSendToJSON(value) {
28345  if (value === void 0) {
28346    return void 0;
28347  }
28348  if (value === null) {
28349    return null;
28350  }
28351  return {
28352    "value": (0, TypesCosmosMessagesCosmosSdkSend_1$1.TypesCosmosMessagesCosmosSdkSendToJSON)(value.value),
28353    "type": value.type
28354  };
28355}
28356TypesCosmosAminoSignDocCosmosSdkSend.TypesCosmosAminoSignDocCosmosSdkSendToJSON = TypesCosmosAminoSignDocCosmosSdkSendToJSON;
28357var TypesCosmosAminoSignDocCosmosSdkSendAllOf = {};
28358Object.defineProperty(TypesCosmosAminoSignDocCosmosSdkSendAllOf, "__esModule", { value: true });
28359TypesCosmosAminoSignDocCosmosSdkSendAllOf.TypesCosmosAminoSignDocCosmosSdkSendAllOfToJSON = TypesCosmosAminoSignDocCosmosSdkSendAllOf.TypesCosmosAminoSignDocCosmosSdkSendAllOfFromJSONTyped = TypesCosmosAminoSignDocCosmosSdkSendAllOf.TypesCosmosAminoSignDocCosmosSdkSendAllOfFromJSON = TypesCosmosAminoSignDocCosmosSdkSendAllOf.instanceOfTypesCosmosAminoSignDocCosmosSdkSendAllOf = TypesCosmosAminoSignDocCosmosSdkSendAllOf.TypesCosmosAminoSignDocCosmosSdkSendAllOfTypeEnum = void 0;
28360const TypesCosmosMessagesCosmosSdkSend_1 = TypesCosmosMessagesCosmosSdkSend;
28361TypesCosmosAminoSignDocCosmosSdkSendAllOf.TypesCosmosAminoSignDocCosmosSdkSendAllOfTypeEnum = {
28362  cosmos_sdk_MsgSend: "cosmos-sdk/MsgSend"
28363};
28364function instanceOfTypesCosmosAminoSignDocCosmosSdkSendAllOf(value) {
28365  let isInstance = true;
28366  isInstance = isInstance && "value" in value;
28367  isInstance = isInstance && "type" in value;
28368  return isInstance;
28369}
28370TypesCosmosAminoSignDocCosmosSdkSendAllOf.instanceOfTypesCosmosAminoSignDocCosmosSdkSendAllOf = instanceOfTypesCosmosAminoSignDocCosmosSdkSendAllOf;
28371function TypesCosmosAminoSignDocCosmosSdkSendAllOfFromJSON(json) {
28372  return TypesCosmosAminoSignDocCosmosSdkSendAllOfFromJSONTyped(json);
28373}
28374TypesCosmosAminoSignDocCosmosSdkSendAllOf.TypesCosmosAminoSignDocCosmosSdkSendAllOfFromJSON = TypesCosmosAminoSignDocCosmosSdkSendAllOfFromJSON;
28375function TypesCosmosAminoSignDocCosmosSdkSendAllOfFromJSONTyped(json, ignoreDiscriminator) {
28376  if (json === void 0 || json === null) {
28377    return json;
28378  }
28379  return {
28380    "value": (0, TypesCosmosMessagesCosmosSdkSend_1.TypesCosmosMessagesCosmosSdkSendFromJSON)(json["value"]),
28381    "type": json["type"]
28382  };
28383}
28384TypesCosmosAminoSignDocCosmosSdkSendAllOf.TypesCosmosAminoSignDocCosmosSdkSendAllOfFromJSONTyped = TypesCosmosAminoSignDocCosmosSdkSendAllOfFromJSONTyped;
28385function TypesCosmosAminoSignDocCosmosSdkSendAllOfToJSON(value) {
28386  if (value === void 0) {
28387    return void 0;
28388  }
28389  if (value === null) {
28390    return null;
28391  }
28392  return {
28393    "value": (0, TypesCosmosMessagesCosmosSdkSend_1.TypesCosmosMessagesCosmosSdkSendToJSON)(value.value),
28394    "type": value.type
28395  };
28396}
28397TypesCosmosAminoSignDocCosmosSdkSendAllOf.TypesCosmosAminoSignDocCosmosSdkSendAllOfToJSON = TypesCosmosAminoSignDocCosmosSdkSendAllOfToJSON;
28398var TypesCosmosAminoSignDocCosmosSdkUndelegate = {};
28399Object.defineProperty(TypesCosmosAminoSignDocCosmosSdkUndelegate, "__esModule", { value: true });
28400TypesCosmosAminoSignDocCosmosSdkUndelegate.TypesCosmosAminoSignDocCosmosSdkUndelegateToJSON = TypesCosmosAminoSignDocCosmosSdkUndelegate.TypesCosmosAminoSignDocCosmosSdkUndelegateFromJSONTyped = TypesCosmosAminoSignDocCosmosSdkUndelegate.TypesCosmosAminoSignDocCosmosSdkUndelegateFromJSON = TypesCosmosAminoSignDocCosmosSdkUndelegate.instanceOfTypesCosmosAminoSignDocCosmosSdkUndelegate = TypesCosmosAminoSignDocCosmosSdkUndelegate.TypesCosmosAminoSignDocCosmosSdkUndelegateTypeEnum = void 0;
28401const TypesCosmosMessagesCosmosSdkUndelegate_1$1 = TypesCosmosMessagesCosmosSdkUndelegate;
28402TypesCosmosAminoSignDocCosmosSdkUndelegate.TypesCosmosAminoSignDocCosmosSdkUndelegateTypeEnum = {
28403  cosmos_sdk_MsgUndelegate: "cosmos-sdk/MsgUndelegate"
28404};
28405function instanceOfTypesCosmosAminoSignDocCosmosSdkUndelegate(value) {
28406  let isInstance = true;
28407  isInstance = isInstance && "value" in value;
28408  isInstance = isInstance && "type" in value;
28409  return isInstance;
28410}
28411TypesCosmosAminoSignDocCosmosSdkUndelegate.instanceOfTypesCosmosAminoSignDocCosmosSdkUndelegate = instanceOfTypesCosmosAminoSignDocCosmosSdkUndelegate;
28412function TypesCosmosAminoSignDocCosmosSdkUndelegateFromJSON(json) {
28413  return TypesCosmosAminoSignDocCosmosSdkUndelegateFromJSONTyped(json);
28414}
28415TypesCosmosAminoSignDocCosmosSdkUndelegate.TypesCosmosAminoSignDocCosmosSdkUndelegateFromJSON = TypesCosmosAminoSignDocCosmosSdkUndelegateFromJSON;
28416function TypesCosmosAminoSignDocCosmosSdkUndelegateFromJSONTyped(json, ignoreDiscriminator) {
28417  if (json === void 0 || json === null) {
28418    return json;
28419  }
28420  return {
28421    "value": (0, TypesCosmosMessagesCosmosSdkUndelegate_1$1.TypesCosmosMessagesCosmosSdkUndelegateFromJSON)(json["value"]),
28422    "type": json["type"]
28423  };
28424}
28425TypesCosmosAminoSignDocCosmosSdkUndelegate.TypesCosmosAminoSignDocCosmosSdkUndelegateFromJSONTyped = TypesCosmosAminoSignDocCosmosSdkUndelegateFromJSONTyped;
28426function TypesCosmosAminoSignDocCosmosSdkUndelegateToJSON(value) {
28427  if (value === void 0) {
28428    return void 0;
28429  }
28430  if (value === null) {
28431    return null;
28432  }
28433  return {
28434    "value": (0, TypesCosmosMessagesCosmosSdkUndelegate_1$1.TypesCosmosMessagesCosmosSdkUndelegateToJSON)(value.value),
28435    "type": value.type
28436  };
28437}
28438TypesCosmosAminoSignDocCosmosSdkUndelegate.TypesCosmosAminoSignDocCosmosSdkUndelegateToJSON = TypesCosmosAminoSignDocCosmosSdkUndelegateToJSON;
28439var TypesCosmosAminoSignDocCosmosSdkUndelegateAllOf = {};
28440Object.defineProperty(TypesCosmosAminoSignDocCosmosSdkUndelegateAllOf, "__esModule", { value: true });
28441TypesCosmosAminoSignDocCosmosSdkUndelegateAllOf.TypesCosmosAminoSignDocCosmosSdkUndelegateAllOfToJSON = TypesCosmosAminoSignDocCosmosSdkUndelegateAllOf.TypesCosmosAminoSignDocCosmosSdkUndelegateAllOfFromJSONTyped = TypesCosmosAminoSignDocCosmosSdkUndelegateAllOf.TypesCosmosAminoSignDocCosmosSdkUndelegateAllOfFromJSON = TypesCosmosAminoSignDocCosmosSdkUndelegateAllOf.instanceOfTypesCosmosAminoSignDocCosmosSdkUndelegateAllOf = TypesCosmosAminoSignDocCosmosSdkUndelegateAllOf.TypesCosmosAminoSignDocCosmosSdkUndelegateAllOfTypeEnum = void 0;
28442const TypesCosmosMessagesCosmosSdkUndelegate_1 = TypesCosmosMessagesCosmosSdkUndelegate;
28443TypesCosmosAminoSignDocCosmosSdkUndelegateAllOf.TypesCosmosAminoSignDocCosmosSdkUndelegateAllOfTypeEnum = {
28444  cosmos_sdk_MsgUndelegate: "cosmos-sdk/MsgUndelegate"
28445};
28446function instanceOfTypesCosmosAminoSignDocCosmosSdkUndelegateAllOf(value) {
28447  let isInstance = true;
28448  isInstance = isInstance && "value" in value;
28449  isInstance = isInstance && "type" in value;
28450  return isInstance;
28451}
28452TypesCosmosAminoSignDocCosmosSdkUndelegateAllOf.instanceOfTypesCosmosAminoSignDocCosmosSdkUndelegateAllOf = instanceOfTypesCosmosAminoSignDocCosmosSdkUndelegateAllOf;
28453function TypesCosmosAminoSignDocCosmosSdkUndelegateAllOfFromJSON(json) {
28454  return TypesCosmosAminoSignDocCosmosSdkUndelegateAllOfFromJSONTyped(json);
28455}
28456TypesCosmosAminoSignDocCosmosSdkUndelegateAllOf.TypesCosmosAminoSignDocCosmosSdkUndelegateAllOfFromJSON = TypesCosmosAminoSignDocCosmosSdkUndelegateAllOfFromJSON;
28457function TypesCosmosAminoSignDocCosmosSdkUndelegateAllOfFromJSONTyped(json, ignoreDiscriminator) {
28458  if (json === void 0 || json === null) {
28459    return json;
28460  }
28461  return {
28462    "value": (0, TypesCosmosMessagesCosmosSdkUndelegate_1.TypesCosmosMessagesCosmosSdkUndelegateFromJSON)(json["value"]),
28463    "type": json["type"]
28464  };
28465}
28466TypesCosmosAminoSignDocCosmosSdkUndelegateAllOf.TypesCosmosAminoSignDocCosmosSdkUndelegateAllOfFromJSONTyped = TypesCosmosAminoSignDocCosmosSdkUndelegateAllOfFromJSONTyped;
28467function TypesCosmosAminoSignDocCosmosSdkUndelegateAllOfToJSON(value) {
28468  if (value === void 0) {
28469    return void 0;
28470  }
28471  if (value === null) {
28472    return null;
28473  }
28474  return {
28475    "value": (0, TypesCosmosMessagesCosmosSdkUndelegate_1.TypesCosmosMessagesCosmosSdkUndelegateToJSON)(value.value),
28476    "type": value.type
28477  };
28478}
28479TypesCosmosAminoSignDocCosmosSdkUndelegateAllOf.TypesCosmosAminoSignDocCosmosSdkUndelegateAllOfToJSON = TypesCosmosAminoSignDocCosmosSdkUndelegateAllOfToJSON;
28480var TypesCosmosAminoSignDocCosmosSdkWithdrawDelegationReward = {};
28481var TypesCosmosMessagesCosmosSdkWithdrawDelegatorReward = {};
28482Object.defineProperty(TypesCosmosMessagesCosmosSdkWithdrawDelegatorReward, "__esModule", { value: true });
28483TypesCosmosMessagesCosmosSdkWithdrawDelegatorReward.TypesCosmosMessagesCosmosSdkWithdrawDelegatorRewardToJSON = TypesCosmosMessagesCosmosSdkWithdrawDelegatorReward.TypesCosmosMessagesCosmosSdkWithdrawDelegatorRewardFromJSONTyped = TypesCosmosMessagesCosmosSdkWithdrawDelegatorReward.TypesCosmosMessagesCosmosSdkWithdrawDelegatorRewardFromJSON = TypesCosmosMessagesCosmosSdkWithdrawDelegatorReward.instanceOfTypesCosmosMessagesCosmosSdkWithdrawDelegatorReward = void 0;
28484function instanceOfTypesCosmosMessagesCosmosSdkWithdrawDelegatorReward(value) {
28485  let isInstance = true;
28486  isInstance = isInstance && "validator_address" in value;
28487  isInstance = isInstance && "delegator_address" in value;
28488  return isInstance;
28489}
28490TypesCosmosMessagesCosmosSdkWithdrawDelegatorReward.instanceOfTypesCosmosMessagesCosmosSdkWithdrawDelegatorReward = instanceOfTypesCosmosMessagesCosmosSdkWithdrawDelegatorReward;
28491function TypesCosmosMessagesCosmosSdkWithdrawDelegatorRewardFromJSON(json) {
28492  return TypesCosmosMessagesCosmosSdkWithdrawDelegatorRewardFromJSONTyped(json);
28493}
28494TypesCosmosMessagesCosmosSdkWithdrawDelegatorReward.TypesCosmosMessagesCosmosSdkWithdrawDelegatorRewardFromJSON = TypesCosmosMessagesCosmosSdkWithdrawDelegatorRewardFromJSON;
28495function TypesCosmosMessagesCosmosSdkWithdrawDelegatorRewardFromJSONTyped(json, ignoreDiscriminator) {
28496  if (json === void 0 || json === null) {
28497    return json;
28498  }
28499  return {
28500    "validator_address": json["validator_address"],
28501    "delegator_address": json["delegator_address"]
28502  };
28503}
28504TypesCosmosMessagesCosmosSdkWithdrawDelegatorReward.TypesCosmosMessagesCosmosSdkWithdrawDelegatorRewardFromJSONTyped = TypesCosmosMessagesCosmosSdkWithdrawDelegatorRewardFromJSONTyped;
28505function TypesCosmosMessagesCosmosSdkWithdrawDelegatorRewardToJSON(value) {
28506  if (value === void 0) {
28507    return void 0;
28508  }
28509  if (value === null) {
28510    return null;
28511  }
28512  return {
28513    "validator_address": value.validator_address,
28514    "delegator_address": value.delegator_address
28515  };
28516}
28517TypesCosmosMessagesCosmosSdkWithdrawDelegatorReward.TypesCosmosMessagesCosmosSdkWithdrawDelegatorRewardToJSON = TypesCosmosMessagesCosmosSdkWithdrawDelegatorRewardToJSON;
28518Object.defineProperty(TypesCosmosAminoSignDocCosmosSdkWithdrawDelegationReward, "__esModule", { value: true });
28519TypesCosmosAminoSignDocCosmosSdkWithdrawDelegationReward.TypesCosmosAminoSignDocCosmosSdkWithdrawDelegationRewardToJSON = TypesCosmosAminoSignDocCosmosSdkWithdrawDelegationReward.TypesCosmosAminoSignDocCosmosSdkWithdrawDelegationRewardFromJSONTyped = TypesCosmosAminoSignDocCosmosSdkWithdrawDelegationReward.TypesCosmosAminoSignDocCosmosSdkWithdrawDelegationRewardFromJSON = TypesCosmosAminoSignDocCosmosSdkWithdrawDelegationReward.instanceOfTypesCosmosAminoSignDocCosmosSdkWithdrawDelegationReward = TypesCosmosAminoSignDocCosmosSdkWithdrawDelegationReward.TypesCosmosAminoSignDocCosmosSdkWithdrawDelegationRewardTypeEnum = void 0;
28520const TypesCosmosMessagesCosmosSdkWithdrawDelegatorReward_1$1 = TypesCosmosMessagesCosmosSdkWithdrawDelegatorReward;
28521TypesCosmosAminoSignDocCosmosSdkWithdrawDelegationReward.TypesCosmosAminoSignDocCosmosSdkWithdrawDelegationRewardTypeEnum = {
28522  cosmos_sdk_MsgWithdrawDelegationReward: "cosmos-sdk/MsgWithdrawDelegationReward"
28523};
28524function instanceOfTypesCosmosAminoSignDocCosmosSdkWithdrawDelegationReward(value) {
28525  let isInstance = true;
28526  isInstance = isInstance && "value" in value;
28527  isInstance = isInstance && "type" in value;
28528  return isInstance;
28529}
28530TypesCosmosAminoSignDocCosmosSdkWithdrawDelegationReward.instanceOfTypesCosmosAminoSignDocCosmosSdkWithdrawDelegationReward = instanceOfTypesCosmosAminoSignDocCosmosSdkWithdrawDelegationReward;
28531function TypesCosmosAminoSignDocCosmosSdkWithdrawDelegationRewardFromJSON(json) {
28532  return TypesCosmosAminoSignDocCosmosSdkWithdrawDelegationRewardFromJSONTyped(json);
28533}
28534TypesCosmosAminoSignDocCosmosSdkWithdrawDelegationReward.TypesCosmosAminoSignDocCosmosSdkWithdrawDelegationRewardFromJSON = TypesCosmosAminoSignDocCosmosSdkWithdrawDelegationRewardFromJSON;
28535function TypesCosmosAminoSignDocCosmosSdkWithdrawDelegationRewardFromJSONTyped(json, ignoreDiscriminator) {
28536  if (json === void 0 || json === null) {
28537    return json;
28538  }
28539  return {
28540    "value": (0, TypesCosmosMessagesCosmosSdkWithdrawDelegatorReward_1$1.TypesCosmosMessagesCosmosSdkWithdrawDelegatorRewardFromJSON)(json["value"]),
28541    "type": json["type"]
28542  };
28543}
28544TypesCosmosAminoSignDocCosmosSdkWithdrawDelegationReward.TypesCosmosAminoSignDocCosmosSdkWithdrawDelegationRewardFromJSONTyped = TypesCosmosAminoSignDocCosmosSdkWithdrawDelegationRewardFromJSONTyped;
28545function TypesCosmosAminoSignDocCosmosSdkWithdrawDelegationRewardToJSON(value) {
28546  if (value === void 0) {
28547    return void 0;
28548  }
28549  if (value === null) {
28550    return null;
28551  }
28552  return {
28553    "value": (0, TypesCosmosMessagesCosmosSdkWithdrawDelegatorReward_1$1.TypesCosmosMessagesCosmosSdkWithdrawDelegatorRewardToJSON)(value.value),
28554    "type": value.type
28555  };
28556}
28557TypesCosmosAminoSignDocCosmosSdkWithdrawDelegationReward.TypesCosmosAminoSignDocCosmosSdkWithdrawDelegationRewardToJSON = TypesCosmosAminoSignDocCosmosSdkWithdrawDelegationRewardToJSON;
28558var TypesCosmosAminoSignDocCosmosSdkWithdrawDelegationRewardAllOf = {};
28559Object.defineProperty(TypesCosmosAminoSignDocCosmosSdkWithdrawDelegationRewardAllOf, "__esModule", { value: true });
28560TypesCosmosAminoSignDocCosmosSdkWithdrawDelegationRewardAllOf.TypesCosmosAminoSignDocCosmosSdkWithdrawDelegationRewardAllOfToJSON = TypesCosmosAminoSignDocCosmosSdkWithdrawDelegationRewardAllOf.TypesCosmosAminoSignDocCosmosSdkWithdrawDelegationRewardAllOfFromJSONTyped = TypesCosmosAminoSignDocCosmosSdkWithdrawDelegationRewardAllOf.TypesCosmosAminoSignDocCosmosSdkWithdrawDelegationRewardAllOfFromJSON = TypesCosmosAminoSignDocCosmosSdkWithdrawDelegationRewardAllOf.instanceOfTypesCosmosAminoSignDocCosmosSdkWithdrawDelegationRewardAllOf = TypesCosmosAminoSignDocCosmosSdkWithdrawDelegationRewardAllOf.TypesCosmosAminoSignDocCosmosSdkWithdrawDelegationRewardAllOfTypeEnum = void 0;
28561const TypesCosmosMessagesCosmosSdkWithdrawDelegatorReward_1 = TypesCosmosMessagesCosmosSdkWithdrawDelegatorReward;
28562TypesCosmosAminoSignDocCosmosSdkWithdrawDelegationRewardAllOf.TypesCosmosAminoSignDocCosmosSdkWithdrawDelegationRewardAllOfTypeEnum = {
28563  cosmos_sdk_MsgWithdrawDelegationReward: "cosmos-sdk/MsgWithdrawDelegationReward"
28564};
28565function instanceOfTypesCosmosAminoSignDocCosmosSdkWithdrawDelegationRewardAllOf(value) {
28566  let isInstance = true;
28567  isInstance = isInstance && "value" in value;
28568  isInstance = isInstance && "type" in value;
28569  return isInstance;
28570}
28571TypesCosmosAminoSignDocCosmosSdkWithdrawDelegationRewardAllOf.instanceOfTypesCosmosAminoSignDocCosmosSdkWithdrawDelegationRewardAllOf = instanceOfTypesCosmosAminoSignDocCosmosSdkWithdrawDelegationRewardAllOf;
28572function TypesCosmosAminoSignDocCosmosSdkWithdrawDelegationRewardAllOfFromJSON(json) {
28573  return TypesCosmosAminoSignDocCosmosSdkWithdrawDelegationRewardAllOfFromJSONTyped(json);
28574}
28575TypesCosmosAminoSignDocCosmosSdkWithdrawDelegationRewardAllOf.TypesCosmosAminoSignDocCosmosSdkWithdrawDelegationRewardAllOfFromJSON = TypesCosmosAminoSignDocCosmosSdkWithdrawDelegationRewardAllOfFromJSON;
28576function TypesCosmosAminoSignDocCosmosSdkWithdrawDelegationRewardAllOfFromJSONTyped(json, ignoreDiscriminator) {
28577  if (json === void 0 || json === null) {
28578    return json;
28579  }
28580  return {
28581    "value": (0, TypesCosmosMessagesCosmosSdkWithdrawDelegatorReward_1.TypesCosmosMessagesCosmosSdkWithdrawDelegatorRewardFromJSON)(json["value"]),
28582    "type": json["type"]
28583  };
28584}
28585TypesCosmosAminoSignDocCosmosSdkWithdrawDelegationRewardAllOf.TypesCosmosAminoSignDocCosmosSdkWithdrawDelegationRewardAllOfFromJSONTyped = TypesCosmosAminoSignDocCosmosSdkWithdrawDelegationRewardAllOfFromJSONTyped;
28586function TypesCosmosAminoSignDocCosmosSdkWithdrawDelegationRewardAllOfToJSON(value) {
28587  if (value === void 0) {
28588    return void 0;
28589  }
28590  if (value === null) {
28591    return null;
28592  }
28593  return {
28594    "value": (0, TypesCosmosMessagesCosmosSdkWithdrawDelegatorReward_1.TypesCosmosMessagesCosmosSdkWithdrawDelegatorRewardToJSON)(value.value),
28595    "type": value.type
28596  };
28597}
28598TypesCosmosAminoSignDocCosmosSdkWithdrawDelegationRewardAllOf.TypesCosmosAminoSignDocCosmosSdkWithdrawDelegationRewardAllOfToJSON = TypesCosmosAminoSignDocCosmosSdkWithdrawDelegationRewardAllOfToJSON;
28599var TypesCosmosAminoSignDocIbcGoTransfer = {};
28600var TypesCosmosMessagesIbcGoTransfer = {};
28601var TypesCosmosMessagesIbcGoTransferHeight = {};
28602Object.defineProperty(TypesCosmosMessagesIbcGoTransferHeight, "__esModule", { value: true });
28603TypesCosmosMessagesIbcGoTransferHeight.TypesCosmosMessagesIbcGoTransferHeightToJSON = TypesCosmosMessagesIbcGoTransferHeight.TypesCosmosMessagesIbcGoTransferHeightFromJSONTyped = TypesCosmosMessagesIbcGoTransferHeight.TypesCosmosMessagesIbcGoTransferHeightFromJSON = TypesCosmosMessagesIbcGoTransferHeight.instanceOfTypesCosmosMessagesIbcGoTransferHeight = void 0;
28604const TypesNumericU64_1$1 = TypesNumericU64;
28605function instanceOfTypesCosmosMessagesIbcGoTransferHeight(value) {
28606  let isInstance = true;
28607  isInstance = isInstance && "revision_height" in value;
28608  isInstance = isInstance && "revision_number" in value;
28609  return isInstance;
28610}
28611TypesCosmosMessagesIbcGoTransferHeight.instanceOfTypesCosmosMessagesIbcGoTransferHeight = instanceOfTypesCosmosMessagesIbcGoTransferHeight;
28612function TypesCosmosMessagesIbcGoTransferHeightFromJSON(json) {
28613  return TypesCosmosMessagesIbcGoTransferHeightFromJSONTyped(json);
28614}
28615TypesCosmosMessagesIbcGoTransferHeight.TypesCosmosMessagesIbcGoTransferHeightFromJSON = TypesCosmosMessagesIbcGoTransferHeightFromJSON;
28616function TypesCosmosMessagesIbcGoTransferHeightFromJSONTyped(json, ignoreDiscriminator) {
28617  if (json === void 0 || json === null) {
28618    return json;
28619  }
28620  return {
28621    "revision_height": (0, TypesNumericU64_1$1.TypesNumericU64FromJSON)(json["revision_height"]),
28622    "revision_number": (0, TypesNumericU64_1$1.TypesNumericU64FromJSON)(json["revision_number"])
28623  };
28624}
28625TypesCosmosMessagesIbcGoTransferHeight.TypesCosmosMessagesIbcGoTransferHeightFromJSONTyped = TypesCosmosMessagesIbcGoTransferHeightFromJSONTyped;
28626function TypesCosmosMessagesIbcGoTransferHeightToJSON(value) {
28627  if (value === void 0) {
28628    return void 0;
28629  }
28630  if (value === null) {
28631    return null;
28632  }
28633  return {
28634    "revision_height": (0, TypesNumericU64_1$1.TypesNumericU64ToJSON)(value.revision_height),
28635    "revision_number": (0, TypesNumericU64_1$1.TypesNumericU64ToJSON)(value.revision_number)
28636  };
28637}
28638TypesCosmosMessagesIbcGoTransferHeight.TypesCosmosMessagesIbcGoTransferHeightToJSON = TypesCosmosMessagesIbcGoTransferHeightToJSON;
28639Object.defineProperty(TypesCosmosMessagesIbcGoTransfer, "__esModule", { value: true });
28640TypesCosmosMessagesIbcGoTransfer.TypesCosmosMessagesIbcGoTransferToJSON = TypesCosmosMessagesIbcGoTransfer.TypesCosmosMessagesIbcGoTransferFromJSONTyped = TypesCosmosMessagesIbcGoTransfer.TypesCosmosMessagesIbcGoTransferFromJSON = TypesCosmosMessagesIbcGoTransfer.instanceOfTypesCosmosMessagesIbcGoTransfer = void 0;
28641const TypesCosmosCoin_1 = TypesCosmosCoin;
28642const TypesCosmosMessagesIbcGoTransferHeight_1 = TypesCosmosMessagesIbcGoTransferHeight;
28643const TypesNumericU64_1 = TypesNumericU64;
28644function instanceOfTypesCosmosMessagesIbcGoTransfer(value) {
28645  let isInstance = true;
28646  isInstance = isInstance && "memo" in value;
28647  isInstance = isInstance && "timeout_timestamp" in value;
28648  isInstance = isInstance && "timeout_height" in value;
28649  isInstance = isInstance && "receiver" in value;
28650  isInstance = isInstance && "sender" in value;
28651  isInstance = isInstance && "token" in value;
28652  isInstance = isInstance && "source_channel" in value;
28653  isInstance = isInstance && "source_port" in value;
28654  return isInstance;
28655}
28656TypesCosmosMessagesIbcGoTransfer.instanceOfTypesCosmosMessagesIbcGoTransfer = instanceOfTypesCosmosMessagesIbcGoTransfer;
28657function TypesCosmosMessagesIbcGoTransferFromJSON(json) {
28658  return TypesCosmosMessagesIbcGoTransferFromJSONTyped(json);
28659}
28660TypesCosmosMessagesIbcGoTransfer.TypesCosmosMessagesIbcGoTransferFromJSON = TypesCosmosMessagesIbcGoTransferFromJSON;
28661function TypesCosmosMessagesIbcGoTransferFromJSONTyped(json, ignoreDiscriminator) {
28662  if (json === void 0 || json === null) {
28663    return json;
28664  }
28665  return {
28666    "memo": json["memo"],
28667    "timeout_timestamp": (0, TypesNumericU64_1.TypesNumericU64FromJSON)(json["timeout_timestamp"]),
28668    "timeout_height": (0, TypesCosmosMessagesIbcGoTransferHeight_1.TypesCosmosMessagesIbcGoTransferHeightFromJSON)(json["timeout_height"]),
28669    "receiver": json["receiver"],
28670    "sender": json["sender"],
28671    "token": (0, TypesCosmosCoin_1.TypesCosmosCoinFromJSON)(json["token"]),
28672    "source_channel": json["source_channel"],
28673    "source_port": json["source_port"]
28674  };
28675}
28676TypesCosmosMessagesIbcGoTransfer.TypesCosmosMessagesIbcGoTransferFromJSONTyped = TypesCosmosMessagesIbcGoTransferFromJSONTyped;
28677function TypesCosmosMessagesIbcGoTransferToJSON(value) {
28678  if (value === void 0) {
28679    return void 0;
28680  }
28681  if (value === null) {
28682    return null;
28683  }
28684  return {
28685    "memo": value.memo,
28686    "timeout_timestamp": (0, TypesNumericU64_1.TypesNumericU64ToJSON)(value.timeout_timestamp),
28687    "timeout_height": (0, TypesCosmosMessagesIbcGoTransferHeight_1.TypesCosmosMessagesIbcGoTransferHeightToJSON)(value.timeout_height),
28688    "receiver": value.receiver,
28689    "sender": value.sender,
28690    "token": (0, TypesCosmosCoin_1.TypesCosmosCoinToJSON)(value.token),
28691    "source_channel": value.source_channel,
28692    "source_port": value.source_port
28693  };
28694}
28695TypesCosmosMessagesIbcGoTransfer.TypesCosmosMessagesIbcGoTransferToJSON = TypesCosmosMessagesIbcGoTransferToJSON;
28696Object.defineProperty(TypesCosmosAminoSignDocIbcGoTransfer, "__esModule", { value: true });
28697TypesCosmosAminoSignDocIbcGoTransfer.TypesCosmosAminoSignDocIbcGoTransferToJSON = TypesCosmosAminoSignDocIbcGoTransfer.TypesCosmosAminoSignDocIbcGoTransferFromJSONTyped = TypesCosmosAminoSignDocIbcGoTransfer.TypesCosmosAminoSignDocIbcGoTransferFromJSON = TypesCosmosAminoSignDocIbcGoTransfer.instanceOfTypesCosmosAminoSignDocIbcGoTransfer = TypesCosmosAminoSignDocIbcGoTransfer.TypesCosmosAminoSignDocIbcGoTransferTypeEnum = void 0;
28698const TypesCosmosMessagesIbcGoTransfer_1$1 = TypesCosmosMessagesIbcGoTransfer;
28699TypesCosmosAminoSignDocIbcGoTransfer.TypesCosmosAminoSignDocIbcGoTransferTypeEnum = {
28700  cosmos_sdk_MsgTransfer: "cosmos-sdk/MsgTransfer"
28701};
28702function instanceOfTypesCosmosAminoSignDocIbcGoTransfer(value) {
28703  let isInstance = true;
28704  isInstance = isInstance && "value" in value;
28705  isInstance = isInstance && "type" in value;
28706  return isInstance;
28707}
28708TypesCosmosAminoSignDocIbcGoTransfer.instanceOfTypesCosmosAminoSignDocIbcGoTransfer = instanceOfTypesCosmosAminoSignDocIbcGoTransfer;
28709function TypesCosmosAminoSignDocIbcGoTransferFromJSON(json) {
28710  return TypesCosmosAminoSignDocIbcGoTransferFromJSONTyped(json);
28711}
28712TypesCosmosAminoSignDocIbcGoTransfer.TypesCosmosAminoSignDocIbcGoTransferFromJSON = TypesCosmosAminoSignDocIbcGoTransferFromJSON;
28713function TypesCosmosAminoSignDocIbcGoTransferFromJSONTyped(json, ignoreDiscriminator) {
28714  if (json === void 0 || json === null) {
28715    return json;
28716  }
28717  return {
28718    "value": (0, TypesCosmosMessagesIbcGoTransfer_1$1.TypesCosmosMessagesIbcGoTransferFromJSON)(json["value"]),
28719    "type": json["type"]
28720  };
28721}
28722TypesCosmosAminoSignDocIbcGoTransfer.TypesCosmosAminoSignDocIbcGoTransferFromJSONTyped = TypesCosmosAminoSignDocIbcGoTransferFromJSONTyped;
28723function TypesCosmosAminoSignDocIbcGoTransferToJSON(value) {
28724  if (value === void 0) {
28725    return void 0;
28726  }
28727  if (value === null) {
28728    return null;
28729  }
28730  return {
28731    "value": (0, TypesCosmosMessagesIbcGoTransfer_1$1.TypesCosmosMessagesIbcGoTransferToJSON)(value.value),
28732    "type": value.type
28733  };
28734}
28735TypesCosmosAminoSignDocIbcGoTransfer.TypesCosmosAminoSignDocIbcGoTransferToJSON = TypesCosmosAminoSignDocIbcGoTransferToJSON;
28736var TypesCosmosAminoSignDocIbcGoTransferAllOf = {};
28737Object.defineProperty(TypesCosmosAminoSignDocIbcGoTransferAllOf, "__esModule", { value: true });
28738TypesCosmosAminoSignDocIbcGoTransferAllOf.TypesCosmosAminoSignDocIbcGoTransferAllOfToJSON = TypesCosmosAminoSignDocIbcGoTransferAllOf.TypesCosmosAminoSignDocIbcGoTransferAllOfFromJSONTyped = TypesCosmosAminoSignDocIbcGoTransferAllOf.TypesCosmosAminoSignDocIbcGoTransferAllOfFromJSON = TypesCosmosAminoSignDocIbcGoTransferAllOf.instanceOfTypesCosmosAminoSignDocIbcGoTransferAllOf = TypesCosmosAminoSignDocIbcGoTransferAllOf.TypesCosmosAminoSignDocIbcGoTransferAllOfTypeEnum = void 0;
28739const TypesCosmosMessagesIbcGoTransfer_1 = TypesCosmosMessagesIbcGoTransfer;
28740TypesCosmosAminoSignDocIbcGoTransferAllOf.TypesCosmosAminoSignDocIbcGoTransferAllOfTypeEnum = {
28741  cosmos_sdk_MsgTransfer: "cosmos-sdk/MsgTransfer"
28742};
28743function instanceOfTypesCosmosAminoSignDocIbcGoTransferAllOf(value) {
28744  let isInstance = true;
28745  isInstance = isInstance && "value" in value;
28746  isInstance = isInstance && "type" in value;
28747  return isInstance;
28748}
28749TypesCosmosAminoSignDocIbcGoTransferAllOf.instanceOfTypesCosmosAminoSignDocIbcGoTransferAllOf = instanceOfTypesCosmosAminoSignDocIbcGoTransferAllOf;
28750function TypesCosmosAminoSignDocIbcGoTransferAllOfFromJSON(json) {
28751  return TypesCosmosAminoSignDocIbcGoTransferAllOfFromJSONTyped(json);
28752}
28753TypesCosmosAminoSignDocIbcGoTransferAllOf.TypesCosmosAminoSignDocIbcGoTransferAllOfFromJSON = TypesCosmosAminoSignDocIbcGoTransferAllOfFromJSON;
28754function TypesCosmosAminoSignDocIbcGoTransferAllOfFromJSONTyped(json, ignoreDiscriminator) {
28755  if (json === void 0 || json === null) {
28756    return json;
28757  }
28758  return {
28759    "value": (0, TypesCosmosMessagesIbcGoTransfer_1.TypesCosmosMessagesIbcGoTransferFromJSON)(json["value"]),
28760    "type": json["type"]
28761  };
28762}
28763TypesCosmosAminoSignDocIbcGoTransferAllOf.TypesCosmosAminoSignDocIbcGoTransferAllOfFromJSONTyped = TypesCosmosAminoSignDocIbcGoTransferAllOfFromJSONTyped;
28764function TypesCosmosAminoSignDocIbcGoTransferAllOfToJSON(value) {
28765  if (value === void 0) {
28766    return void 0;
28767  }
28768  if (value === null) {
28769    return null;
28770  }
28771  return {
28772    "value": (0, TypesCosmosMessagesIbcGoTransfer_1.TypesCosmosMessagesIbcGoTransferToJSON)(value.value),
28773    "type": value.type
28774  };
28775}
28776TypesCosmosAminoSignDocIbcGoTransferAllOf.TypesCosmosAminoSignDocIbcGoTransferAllOfToJSON = TypesCosmosAminoSignDocIbcGoTransferAllOfToJSON;
28777var TypesCosmosAminoSignDocThornodeSend = {};
28778Object.defineProperty(TypesCosmosAminoSignDocThornodeSend, "__esModule", { value: true });
28779TypesCosmosAminoSignDocThornodeSend.TypesCosmosAminoSignDocThornodeSendToJSON = TypesCosmosAminoSignDocThornodeSend.TypesCosmosAminoSignDocThornodeSendFromJSONTyped = TypesCosmosAminoSignDocThornodeSend.TypesCosmosAminoSignDocThornodeSendFromJSON = TypesCosmosAminoSignDocThornodeSend.instanceOfTypesCosmosAminoSignDocThornodeSend = TypesCosmosAminoSignDocThornodeSend.TypesCosmosAminoSignDocThornodeSendTypeEnum = void 0;
28780const TypesCosmosMessagesThornodeSend_1$1 = TypesCosmosMessagesThornodeSend;
28781TypesCosmosAminoSignDocThornodeSend.TypesCosmosAminoSignDocThornodeSendTypeEnum = {
28782  thorchain_MsgSend: "thorchain/MsgSend"
28783};
28784function instanceOfTypesCosmosAminoSignDocThornodeSend(value) {
28785  let isInstance = true;
28786  isInstance = isInstance && "value" in value;
28787  isInstance = isInstance && "type" in value;
28788  return isInstance;
28789}
28790TypesCosmosAminoSignDocThornodeSend.instanceOfTypesCosmosAminoSignDocThornodeSend = instanceOfTypesCosmosAminoSignDocThornodeSend;
28791function TypesCosmosAminoSignDocThornodeSendFromJSON(json) {
28792  return TypesCosmosAminoSignDocThornodeSendFromJSONTyped(json);
28793}
28794TypesCosmosAminoSignDocThornodeSend.TypesCosmosAminoSignDocThornodeSendFromJSON = TypesCosmosAminoSignDocThornodeSendFromJSON;
28795function TypesCosmosAminoSignDocThornodeSendFromJSONTyped(json, ignoreDiscriminator) {
28796  if (json === void 0 || json === null) {
28797    return json;
28798  }
28799  return {
28800    "value": (0, TypesCosmosMessagesThornodeSend_1$1.TypesCosmosMessagesThornodeSendFromJSON)(json["value"]),
28801    "type": json["type"]
28802  };
28803}
28804TypesCosmosAminoSignDocThornodeSend.TypesCosmosAminoSignDocThornodeSendFromJSONTyped = TypesCosmosAminoSignDocThornodeSendFromJSONTyped;
28805function TypesCosmosAminoSignDocThornodeSendToJSON(value) {
28806  if (value === void 0) {
28807    return void 0;
28808  }
28809  if (value === null) {
28810    return null;
28811  }
28812  return {
28813    "value": (0, TypesCosmosMessagesThornodeSend_1$1.TypesCosmosMessagesThornodeSendToJSON)(value.value),
28814    "type": value.type
28815  };
28816}
28817TypesCosmosAminoSignDocThornodeSend.TypesCosmosAminoSignDocThornodeSendToJSON = TypesCosmosAminoSignDocThornodeSendToJSON;
28818var TypesCosmosAminoSignDocThornodeSendAllOf = {};
28819Object.defineProperty(TypesCosmosAminoSignDocThornodeSendAllOf, "__esModule", { value: true });
28820TypesCosmosAminoSignDocThornodeSendAllOf.TypesCosmosAminoSignDocThornodeSendAllOfToJSON = TypesCosmosAminoSignDocThornodeSendAllOf.TypesCosmosAminoSignDocThornodeSendAllOfFromJSONTyped = TypesCosmosAminoSignDocThornodeSendAllOf.TypesCosmosAminoSignDocThornodeSendAllOfFromJSON = TypesCosmosAminoSignDocThornodeSendAllOf.instanceOfTypesCosmosAminoSignDocThornodeSendAllOf = TypesCosmosAminoSignDocThornodeSendAllOf.TypesCosmosAminoSignDocThornodeSendAllOfTypeEnum = void 0;
28821const TypesCosmosMessagesThornodeSend_1 = TypesCosmosMessagesThornodeSend;
28822TypesCosmosAminoSignDocThornodeSendAllOf.TypesCosmosAminoSignDocThornodeSendAllOfTypeEnum = {
28823  thorchain_MsgSend: "thorchain/MsgSend"
28824};
28825function instanceOfTypesCosmosAminoSignDocThornodeSendAllOf(value) {
28826  let isInstance = true;
28827  isInstance = isInstance && "value" in value;
28828  isInstance = isInstance && "type" in value;
28829  return isInstance;
28830}
28831TypesCosmosAminoSignDocThornodeSendAllOf.instanceOfTypesCosmosAminoSignDocThornodeSendAllOf = instanceOfTypesCosmosAminoSignDocThornodeSendAllOf;
28832function TypesCosmosAminoSignDocThornodeSendAllOfFromJSON(json) {
28833  return TypesCosmosAminoSignDocThornodeSendAllOfFromJSONTyped(json);
28834}
28835TypesCosmosAminoSignDocThornodeSendAllOf.TypesCosmosAminoSignDocThornodeSendAllOfFromJSON = TypesCosmosAminoSignDocThornodeSendAllOfFromJSON;
28836function TypesCosmosAminoSignDocThornodeSendAllOfFromJSONTyped(json, ignoreDiscriminator) {
28837  if (json === void 0 || json === null) {
28838    return json;
28839  }
28840  return {
28841    "value": (0, TypesCosmosMessagesThornodeSend_1.TypesCosmosMessagesThornodeSendFromJSON)(json["value"]),
28842    "type": json["type"]
28843  };
28844}
28845TypesCosmosAminoSignDocThornodeSendAllOf.TypesCosmosAminoSignDocThornodeSendAllOfFromJSONTyped = TypesCosmosAminoSignDocThornodeSendAllOfFromJSONTyped;
28846function TypesCosmosAminoSignDocThornodeSendAllOfToJSON(value) {
28847  if (value === void 0) {
28848    return void 0;
28849  }
28850  if (value === null) {
28851    return null;
28852  }
28853  return {
28854    "value": (0, TypesCosmosMessagesThornodeSend_1.TypesCosmosMessagesThornodeSendToJSON)(value.value),
28855    "type": value.type
28856  };
28857}
28858TypesCosmosAminoSignDocThornodeSendAllOf.TypesCosmosAminoSignDocThornodeSendAllOfToJSON = TypesCosmosAminoSignDocThornodeSendAllOfToJSON;
28859var TypesFeatures = {};
28860var TypesFeaturesAutoLockDelayMs = {};
28861Object.defineProperty(TypesFeaturesAutoLockDelayMs, "__esModule", { value: true });
28862TypesFeaturesAutoLockDelayMs.TypesFeaturesAutoLockDelayMsToJSON = TypesFeaturesAutoLockDelayMs.TypesFeaturesAutoLockDelayMsFromJSONTyped = TypesFeaturesAutoLockDelayMs.TypesFeaturesAutoLockDelayMsFromJSON = TypesFeaturesAutoLockDelayMs.instanceOfTypesFeaturesAutoLockDelayMs = void 0;
28863function instanceOfTypesFeaturesAutoLockDelayMs(value) {
28864  let isInstance = true;
28865  return isInstance;
28866}
28867TypesFeaturesAutoLockDelayMs.instanceOfTypesFeaturesAutoLockDelayMs = instanceOfTypesFeaturesAutoLockDelayMs;
28868function TypesFeaturesAutoLockDelayMsFromJSON(json) {
28869  return TypesFeaturesAutoLockDelayMsFromJSONTyped(json);
28870}
28871TypesFeaturesAutoLockDelayMs.TypesFeaturesAutoLockDelayMsFromJSON = TypesFeaturesAutoLockDelayMsFromJSON;
28872function TypesFeaturesAutoLockDelayMsFromJSONTyped(json, ignoreDiscriminator) {
28873  return json;
28874}
28875TypesFeaturesAutoLockDelayMs.TypesFeaturesAutoLockDelayMsFromJSONTyped = TypesFeaturesAutoLockDelayMsFromJSONTyped;
28876function TypesFeaturesAutoLockDelayMsToJSON(value) {
28877  return value;
28878}
28879TypesFeaturesAutoLockDelayMs.TypesFeaturesAutoLockDelayMsToJSON = TypesFeaturesAutoLockDelayMsToJSON;
28880var TypesFeaturesBootloaderHash = {};
28881Object.defineProperty(TypesFeaturesBootloaderHash, "__esModule", { value: true });
28882TypesFeaturesBootloaderHash.TypesFeaturesBootloaderHashToJSON = TypesFeaturesBootloaderHash.TypesFeaturesBootloaderHashFromJSONTyped = TypesFeaturesBootloaderHash.TypesFeaturesBootloaderHashFromJSON = TypesFeaturesBootloaderHash.instanceOfTypesFeaturesBootloaderHash = void 0;
28883function instanceOfTypesFeaturesBootloaderHash(value) {
28884  let isInstance = true;
28885  return isInstance;
28886}
28887TypesFeaturesBootloaderHash.instanceOfTypesFeaturesBootloaderHash = instanceOfTypesFeaturesBootloaderHash;
28888function TypesFeaturesBootloaderHashFromJSON(json) {
28889  return TypesFeaturesBootloaderHashFromJSONTyped(json);
28890}
28891TypesFeaturesBootloaderHash.TypesFeaturesBootloaderHashFromJSON = TypesFeaturesBootloaderHashFromJSON;
28892function TypesFeaturesBootloaderHashFromJSONTyped(json, ignoreDiscriminator) {
28893  return json;
28894}
28895TypesFeaturesBootloaderHash.TypesFeaturesBootloaderHashFromJSONTyped = TypesFeaturesBootloaderHashFromJSONTyped;
28896function TypesFeaturesBootloaderHashToJSON(value) {
28897  return value;
28898}
28899TypesFeaturesBootloaderHash.TypesFeaturesBootloaderHashToJSON = TypesFeaturesBootloaderHashToJSON;
28900var TypesFeaturesFirmwareHash = {};
28901Object.defineProperty(TypesFeaturesFirmwareHash, "__esModule", { value: true });
28902TypesFeaturesFirmwareHash.TypesFeaturesFirmwareHashToJSON = TypesFeaturesFirmwareHash.TypesFeaturesFirmwareHashFromJSONTyped = TypesFeaturesFirmwareHash.TypesFeaturesFirmwareHashFromJSON = TypesFeaturesFirmwareHash.instanceOfTypesFeaturesFirmwareHash = void 0;
28903function instanceOfTypesFeaturesFirmwareHash(value) {
28904  let isInstance = true;
28905  return isInstance;
28906}
28907TypesFeaturesFirmwareHash.instanceOfTypesFeaturesFirmwareHash = instanceOfTypesFeaturesFirmwareHash;
28908function TypesFeaturesFirmwareHashFromJSON(json) {
28909  return TypesFeaturesFirmwareHashFromJSONTyped(json);
28910}
28911TypesFeaturesFirmwareHash.TypesFeaturesFirmwareHashFromJSON = TypesFeaturesFirmwareHashFromJSON;
28912function TypesFeaturesFirmwareHashFromJSONTyped(json, ignoreDiscriminator) {
28913  return json;
28914}
28915TypesFeaturesFirmwareHash.TypesFeaturesFirmwareHashFromJSONTyped = TypesFeaturesFirmwareHashFromJSONTyped;
28916function TypesFeaturesFirmwareHashToJSON(value) {
28917  return value;
28918}
28919TypesFeaturesFirmwareHash.TypesFeaturesFirmwareHashToJSON = TypesFeaturesFirmwareHashToJSON;
28920var TypesFeaturesMajorVersion = {};
28921Object.defineProperty(TypesFeaturesMajorVersion, "__esModule", { value: true });
28922TypesFeaturesMajorVersion.TypesFeaturesMajorVersionToJSON = TypesFeaturesMajorVersion.TypesFeaturesMajorVersionFromJSONTyped = TypesFeaturesMajorVersion.TypesFeaturesMajorVersionFromJSON = TypesFeaturesMajorVersion.instanceOfTypesFeaturesMajorVersion = void 0;
28923function instanceOfTypesFeaturesMajorVersion(value) {
28924  let isInstance = true;
28925  return isInstance;
28926}
28927TypesFeaturesMajorVersion.instanceOfTypesFeaturesMajorVersion = instanceOfTypesFeaturesMajorVersion;
28928function TypesFeaturesMajorVersionFromJSON(json) {
28929  return TypesFeaturesMajorVersionFromJSONTyped(json);
28930}
28931TypesFeaturesMajorVersion.TypesFeaturesMajorVersionFromJSON = TypesFeaturesMajorVersionFromJSON;
28932function TypesFeaturesMajorVersionFromJSONTyped(json, ignoreDiscriminator) {
28933  return json;
28934}
28935TypesFeaturesMajorVersion.TypesFeaturesMajorVersionFromJSONTyped = TypesFeaturesMajorVersionFromJSONTyped;
28936function TypesFeaturesMajorVersionToJSON(value) {
28937  return value;
28938}
28939TypesFeaturesMajorVersion.TypesFeaturesMajorVersionToJSON = TypesFeaturesMajorVersionToJSON;
28940var TypesFeaturesMinorVersion = {};
28941Object.defineProperty(TypesFeaturesMinorVersion, "__esModule", { value: true });
28942TypesFeaturesMinorVersion.TypesFeaturesMinorVersionToJSON = TypesFeaturesMinorVersion.TypesFeaturesMinorVersionFromJSONTyped = TypesFeaturesMinorVersion.TypesFeaturesMinorVersionFromJSON = TypesFeaturesMinorVersion.instanceOfTypesFeaturesMinorVersion = void 0;
28943function instanceOfTypesFeaturesMinorVersion(value) {
28944  let isInstance = true;
28945  return isInstance;
28946}
28947TypesFeaturesMinorVersion.instanceOfTypesFeaturesMinorVersion = instanceOfTypesFeaturesMinorVersion;
28948function TypesFeaturesMinorVersionFromJSON(json) {
28949  return TypesFeaturesMinorVersionFromJSONTyped(json);
28950}
28951TypesFeaturesMinorVersion.TypesFeaturesMinorVersionFromJSON = TypesFeaturesMinorVersionFromJSON;
28952function TypesFeaturesMinorVersionFromJSONTyped(json, ignoreDiscriminator) {
28953  return json;
28954}
28955TypesFeaturesMinorVersion.TypesFeaturesMinorVersionFromJSONTyped = TypesFeaturesMinorVersionFromJSONTyped;
28956function TypesFeaturesMinorVersionToJSON(value) {
28957  return value;
28958}
28959TypesFeaturesMinorVersion.TypesFeaturesMinorVersionToJSON = TypesFeaturesMinorVersionToJSON;
28960var TypesFeaturesPatchVersion = {};
28961Object.defineProperty(TypesFeaturesPatchVersion, "__esModule", { value: true });
28962TypesFeaturesPatchVersion.TypesFeaturesPatchVersionToJSON = TypesFeaturesPatchVersion.TypesFeaturesPatchVersionFromJSONTyped = TypesFeaturesPatchVersion.TypesFeaturesPatchVersionFromJSON = TypesFeaturesPatchVersion.instanceOfTypesFeaturesPatchVersion = void 0;
28963function instanceOfTypesFeaturesPatchVersion(value) {
28964  let isInstance = true;
28965  return isInstance;
28966}
28967TypesFeaturesPatchVersion.instanceOfTypesFeaturesPatchVersion = instanceOfTypesFeaturesPatchVersion;
28968function TypesFeaturesPatchVersionFromJSON(json) {
28969  return TypesFeaturesPatchVersionFromJSONTyped(json);
28970}
28971TypesFeaturesPatchVersion.TypesFeaturesPatchVersionFromJSON = TypesFeaturesPatchVersionFromJSON;
28972function TypesFeaturesPatchVersionFromJSONTyped(json, ignoreDiscriminator) {
28973  return json;
28974}
28975TypesFeaturesPatchVersion.TypesFeaturesPatchVersionFromJSONTyped = TypesFeaturesPatchVersionFromJSONTyped;
28976function TypesFeaturesPatchVersionToJSON(value) {
28977  return value;
28978}
28979TypesFeaturesPatchVersion.TypesFeaturesPatchVersionToJSON = TypesFeaturesPatchVersionToJSON;
28980var TypesFeaturesRevision = {};
28981Object.defineProperty(TypesFeaturesRevision, "__esModule", { value: true });
28982TypesFeaturesRevision.TypesFeaturesRevisionToJSON = TypesFeaturesRevision.TypesFeaturesRevisionFromJSONTyped = TypesFeaturesRevision.TypesFeaturesRevisionFromJSON = TypesFeaturesRevision.instanceOfTypesFeaturesRevision = void 0;
28983function instanceOfTypesFeaturesRevision(value) {
28984  let isInstance = true;
28985  return isInstance;
28986}
28987TypesFeaturesRevision.instanceOfTypesFeaturesRevision = instanceOfTypesFeaturesRevision;
28988function TypesFeaturesRevisionFromJSON(json) {
28989  return TypesFeaturesRevisionFromJSONTyped(json);
28990}
28991TypesFeaturesRevision.TypesFeaturesRevisionFromJSON = TypesFeaturesRevisionFromJSON;
28992function TypesFeaturesRevisionFromJSONTyped(json, ignoreDiscriminator) {
28993  return json;
28994}
28995TypesFeaturesRevision.TypesFeaturesRevisionFromJSONTyped = TypesFeaturesRevisionFromJSONTyped;
28996function TypesFeaturesRevisionToJSON(value) {
28997  return value;
28998}
28999TypesFeaturesRevision.TypesFeaturesRevisionToJSON = TypesFeaturesRevisionToJSON;
29000var TypesPolicy = {};
29001Object.defineProperty(TypesPolicy, "__esModule", { value: true });
29002TypesPolicy.TypesPolicyToJSON = TypesPolicy.TypesPolicyFromJSONTyped = TypesPolicy.TypesPolicyFromJSON = TypesPolicy.instanceOfTypesPolicy = void 0;
29003function instanceOfTypesPolicy(value) {
29004  let isInstance = true;
29005  isInstance = isInstance && "enabled" in value;
29006  isInstance = isInstance && "policy_name" in value;
29007  return isInstance;
29008}
29009TypesPolicy.instanceOfTypesPolicy = instanceOfTypesPolicy;
29010function TypesPolicyFromJSON(json) {
29011  return TypesPolicyFromJSONTyped(json);
29012}
29013TypesPolicy.TypesPolicyFromJSON = TypesPolicyFromJSON;
29014function TypesPolicyFromJSONTyped(json, ignoreDiscriminator) {
29015  if (json === void 0 || json === null) {
29016    return json;
29017  }
29018  return {
29019    "enabled": json["enabled"],
29020    "policy_name": json["policy_name"]
29021  };
29022}
29023TypesPolicy.TypesPolicyFromJSONTyped = TypesPolicyFromJSONTyped;
29024function TypesPolicyToJSON(value) {
29025  if (value === void 0) {
29026    return void 0;
29027  }
29028  if (value === null) {
29029    return null;
29030  }
29031  return {
29032    "enabled": value.enabled,
29033    "policy_name": value.policy_name
29034  };
29035}
29036TypesPolicy.TypesPolicyToJSON = TypesPolicyToJSON;
29037Object.defineProperty(TypesFeatures, "__esModule", { value: true });
29038TypesFeatures.TypesFeaturesToJSON = TypesFeatures.TypesFeaturesFromJSONTyped = TypesFeatures.TypesFeaturesFromJSON = TypesFeatures.instanceOfTypesFeatures = void 0;
29039const runtime_1$4 = runtime$d;
29040const TypesFeaturesAutoLockDelayMs_1 = TypesFeaturesAutoLockDelayMs;
29041const TypesFeaturesBootloaderHash_1 = TypesFeaturesBootloaderHash;
29042const TypesFeaturesFirmwareHash_1 = TypesFeaturesFirmwareHash;
29043const TypesFeaturesMajorVersion_1 = TypesFeaturesMajorVersion;
29044const TypesFeaturesMinorVersion_1 = TypesFeaturesMinorVersion;
29045const TypesFeaturesPatchVersion_1 = TypesFeaturesPatchVersion;
29046const TypesFeaturesRevision_1 = TypesFeaturesRevision;
29047const TypesPolicy_1 = TypesPolicy;
29048function instanceOfTypesFeatures(value) {
29049  let isInstance = true;
29050  return isInstance;
29051}
29052TypesFeatures.instanceOfTypesFeatures = instanceOfTypesFeatures;
29053function TypesFeaturesFromJSON(json) {
29054  return TypesFeaturesFromJSONTyped(json);
29055}
29056TypesFeatures.TypesFeaturesFromJSON = TypesFeaturesFromJSON;
29057function TypesFeaturesFromJSONTyped(json, ignoreDiscriminator) {
29058  if (json === void 0 || json === null) {
29059    return json;
29060  }
29061  return {
29062    "auto_lock_delay_ms": !(0, runtime_1$4.exists)(json, "auto_lock_delay_ms") ? void 0 : (0, TypesFeaturesAutoLockDelayMs_1.TypesFeaturesAutoLockDelayMsFromJSON)(json["auto_lock_delay_ms"]),
29063    "wipe_code_protection": !(0, runtime_1$4.exists)(json, "wipe_code_protection") ? void 0 : json["wipe_code_protection"],
29064    "no_backup": !(0, runtime_1$4.exists)(json, "no_backup") ? void 0 : json["no_backup"],
29065    "firmware_hash": !(0, runtime_1$4.exists)(json, "firmware_hash") ? void 0 : (0, TypesFeaturesFirmwareHash_1.TypesFeaturesFirmwareHashFromJSON)(json["firmware_hash"]),
29066    "firmware_variant": !(0, runtime_1$4.exists)(json, "firmware_variant") ? void 0 : json["firmware_variant"],
29067    "model": !(0, runtime_1$4.exists)(json, "model") ? void 0 : json["model"],
29068    "policies": !(0, runtime_1$4.exists)(json, "policies") ? void 0 : json["policies"].map(TypesPolicy_1.TypesPolicyFromJSON),
29069    "passphrase_cached": !(0, runtime_1$4.exists)(json, "passphrase_cached") ? void 0 : json["passphrase_cached"],
29070    "pin_cached": !(0, runtime_1$4.exists)(json, "pin_cached") ? void 0 : json["pin_cached"],
29071    "imported": !(0, runtime_1$4.exists)(json, "imported") ? void 0 : json["imported"],
29072    "bootloader_hash": !(0, runtime_1$4.exists)(json, "bootloader_hash") ? void 0 : (0, TypesFeaturesBootloaderHash_1.TypesFeaturesBootloaderHashFromJSON)(json["bootloader_hash"]),
29073    "revision": !(0, runtime_1$4.exists)(json, "revision") ? void 0 : (0, TypesFeaturesRevision_1.TypesFeaturesRevisionFromJSON)(json["revision"]),
29074    "initialized": !(0, runtime_1$4.exists)(json, "initialized") ? void 0 : json["initialized"],
29075    "label": !(0, runtime_1$4.exists)(json, "label") ? void 0 : json["label"],
29076    "language": !(0, runtime_1$4.exists)(json, "language") ? void 0 : json["language"],
29077    "passphrase_protection": !(0, runtime_1$4.exists)(json, "passphrase_protection") ? void 0 : json["passphrase_protection"],
29078    "pin_protection": !(0, runtime_1$4.exists)(json, "pin_protection") ? void 0 : json["pin_protection"],
29079    "device_id": !(0, runtime_1$4.exists)(json, "device_id") ? void 0 : json["device_id"],
29080    "bootloader_mode": !(0, runtime_1$4.exists)(json, "bootloader_mode") ? void 0 : json["bootloader_mode"],
29081    "patch_version": !(0, runtime_1$4.exists)(json, "patch_version") ? void 0 : (0, TypesFeaturesPatchVersion_1.TypesFeaturesPatchVersionFromJSON)(json["patch_version"]),
29082    "minor_version": !(0, runtime_1$4.exists)(json, "minor_version") ? void 0 : (0, TypesFeaturesMinorVersion_1.TypesFeaturesMinorVersionFromJSON)(json["minor_version"]),
29083    "major_version": !(0, runtime_1$4.exists)(json, "major_version") ? void 0 : (0, TypesFeaturesMajorVersion_1.TypesFeaturesMajorVersionFromJSON)(json["major_version"]),
29084    "vendor": !(0, runtime_1$4.exists)(json, "vendor") ? void 0 : json["vendor"]
29085  };
29086}
29087TypesFeatures.TypesFeaturesFromJSONTyped = TypesFeaturesFromJSONTyped;
29088function TypesFeaturesToJSON(value) {
29089  if (value === void 0) {
29090    return void 0;
29091  }
29092  if (value === null) {
29093    return null;
29094  }
29095  return {
29096    "auto_lock_delay_ms": (0, TypesFeaturesAutoLockDelayMs_1.TypesFeaturesAutoLockDelayMsToJSON)(value.auto_lock_delay_ms),
29097    "wipe_code_protection": value.wipe_code_protection,
29098    "no_backup": value.no_backup,
29099    "firmware_hash": (0, TypesFeaturesFirmwareHash_1.TypesFeaturesFirmwareHashToJSON)(value.firmware_hash),
29100    "firmware_variant": value.firmware_variant,
29101    "model": value.model,
29102    "policies": value.policies === void 0 ? void 0 : value.policies.map(TypesPolicy_1.TypesPolicyToJSON),
29103    "passphrase_cached": value.passphrase_cached,
29104    "pin_cached": value.pin_cached,
29105    "imported": value.imported,
29106    "bootloader_hash": (0, TypesFeaturesBootloaderHash_1.TypesFeaturesBootloaderHashToJSON)(value.bootloader_hash),
29107    "revision": (0, TypesFeaturesRevision_1.TypesFeaturesRevisionToJSON)(value.revision),
29108    "initialized": value.initialized,
29109    "label": value.label,
29110    "language": value.language,
29111    "passphrase_protection": value.passphrase_protection,
29112    "pin_protection": value.pin_protection,
29113    "device_id": value.device_id,
29114    "bootloader_mode": value.bootloader_mode,
29115    "patch_version": (0, TypesFeaturesPatchVersion_1.TypesFeaturesPatchVersionToJSON)(value.patch_version),
29116    "minor_version": (0, TypesFeaturesMinorVersion_1.TypesFeaturesMinorVersionToJSON)(value.minor_version),
29117    "major_version": (0, TypesFeaturesMajorVersion_1.TypesFeaturesMajorVersionToJSON)(value.major_version),
29118    "vendor": value.vendor
29119  };
29120}
29121TypesFeatures.TypesFeaturesToJSON = TypesFeaturesToJSON;
29122var TypesHDNode = {};
29123Object.defineProperty(TypesHDNode, "__esModule", { value: true });
29124TypesHDNode.TypesHDNodeToJSON = TypesHDNode.TypesHDNodeFromJSONTyped = TypesHDNode.TypesHDNodeFromJSON = TypesHDNode.instanceOfTypesHDNode = void 0;
29125const runtime_1$3 = runtime$d;
29126const TypesHexBytesLower_1$1 = TypesHexBytesLower;
29127const TypesNumericU32_1$1 = TypesNumericU32;
29128function instanceOfTypesHDNode(value) {
29129  let isInstance = true;
29130  isInstance = isInstance && "chain_code" in value;
29131  isInstance = isInstance && "child_num" in value;
29132  isInstance = isInstance && "fingerprint" in value;
29133  isInstance = isInstance && "depth" in value;
29134  return isInstance;
29135}
29136TypesHDNode.instanceOfTypesHDNode = instanceOfTypesHDNode;
29137function TypesHDNodeFromJSON(json) {
29138  return TypesHDNodeFromJSONTyped(json);
29139}
29140TypesHDNode.TypesHDNodeFromJSON = TypesHDNodeFromJSON;
29141function TypesHDNodeFromJSONTyped(json, ignoreDiscriminator) {
29142  if (json === void 0 || json === null) {
29143    return json;
29144  }
29145  return {
29146    "public_key": !(0, runtime_1$3.exists)(json, "public_key") ? void 0 : (0, TypesHexBytesLower_1$1.TypesHexBytesLowerFromJSON)(json["public_key"]),
29147    "private_key": !(0, runtime_1$3.exists)(json, "private_key") ? void 0 : (0, TypesHexBytesLower_1$1.TypesHexBytesLowerFromJSON)(json["private_key"]),
29148    "chain_code": (0, TypesHexBytesLower_1$1.TypesHexBytesLowerFromJSON)(json["chain_code"]),
29149    "child_num": (0, TypesNumericU32_1$1.TypesNumericU32FromJSON)(json["child_num"]),
29150    "fingerprint": (0, TypesNumericU32_1$1.TypesNumericU32FromJSON)(json["fingerprint"]),
29151    "depth": (0, TypesNumericU32_1$1.TypesNumericU32FromJSON)(json["depth"])
29152  };
29153}
29154TypesHDNode.TypesHDNodeFromJSONTyped = TypesHDNodeFromJSONTyped;
29155function TypesHDNodeToJSON(value) {
29156  if (value === void 0) {
29157    return void 0;
29158  }
29159  if (value === null) {
29160    return null;
29161  }
29162  return {
29163    "public_key": (0, TypesHexBytesLower_1$1.TypesHexBytesLowerToJSON)(value.public_key),
29164    "private_key": (0, TypesHexBytesLower_1$1.TypesHexBytesLowerToJSON)(value.private_key),
29165    "chain_code": (0, TypesHexBytesLower_1$1.TypesHexBytesLowerToJSON)(value.chain_code),
29166    "child_num": (0, TypesNumericU32_1$1.TypesNumericU32ToJSON)(value.child_num),
29167    "fingerprint": (0, TypesNumericU32_1$1.TypesNumericU32ToJSON)(value.fingerprint),
29168    "depth": (0, TypesNumericU32_1$1.TypesNumericU32ToJSON)(value.depth)
29169  };
29170}
29171TypesHDNode.TypesHDNodeToJSON = TypesHDNodeToJSON;
29172var TypesNumericUnsignedInteger = {};
29173Object.defineProperty(TypesNumericUnsignedInteger, "__esModule", { value: true });
29174TypesNumericUnsignedInteger.TypesNumericUnsignedIntegerToJSON = TypesNumericUnsignedInteger.TypesNumericUnsignedIntegerFromJSONTyped = TypesNumericUnsignedInteger.TypesNumericUnsignedIntegerFromJSON = TypesNumericUnsignedInteger.instanceOfTypesNumericUnsignedInteger = void 0;
29175function instanceOfTypesNumericUnsignedInteger(value) {
29176  let isInstance = true;
29177  return isInstance;
29178}
29179TypesNumericUnsignedInteger.instanceOfTypesNumericUnsignedInteger = instanceOfTypesNumericUnsignedInteger;
29180function TypesNumericUnsignedIntegerFromJSON(json) {
29181  return TypesNumericUnsignedIntegerFromJSONTyped(json);
29182}
29183TypesNumericUnsignedInteger.TypesNumericUnsignedIntegerFromJSON = TypesNumericUnsignedIntegerFromJSON;
29184function TypesNumericUnsignedIntegerFromJSONTyped(json, ignoreDiscriminator) {
29185  return json;
29186}
29187TypesNumericUnsignedInteger.TypesNumericUnsignedIntegerFromJSONTyped = TypesNumericUnsignedIntegerFromJSONTyped;
29188function TypesNumericUnsignedIntegerToJSON(value) {
29189  return value;
29190}
29191TypesNumericUnsignedInteger.TypesNumericUnsignedIntegerToJSON = TypesNumericUnsignedIntegerToJSON;
29192var UtxoGetAddress200Response = {};
29193Object.defineProperty(UtxoGetAddress200Response, "__esModule", { value: true });
29194UtxoGetAddress200Response.UtxoGetAddress200ResponseToJSON = UtxoGetAddress200Response.UtxoGetAddress200ResponseFromJSONTyped = UtxoGetAddress200Response.UtxoGetAddress200ResponseFromJSON = UtxoGetAddress200Response.instanceOfUtxoGetAddress200Response = void 0;
29195function instanceOfUtxoGetAddress200Response(value) {
29196  let isInstance = true;
29197  isInstance = isInstance && "address" in value;
29198  return isInstance;
29199}
29200UtxoGetAddress200Response.instanceOfUtxoGetAddress200Response = instanceOfUtxoGetAddress200Response;
29201function UtxoGetAddress200ResponseFromJSON(json) {
29202  return UtxoGetAddress200ResponseFromJSONTyped(json);
29203}
29204UtxoGetAddress200Response.UtxoGetAddress200ResponseFromJSON = UtxoGetAddress200ResponseFromJSON;
29205function UtxoGetAddress200ResponseFromJSONTyped(json, ignoreDiscriminator) {
29206  if (json === void 0 || json === null) {
29207    return json;
29208  }
29209  return {
29210    "address": json["address"]
29211  };
29212}
29213UtxoGetAddress200Response.UtxoGetAddress200ResponseFromJSONTyped = UtxoGetAddress200ResponseFromJSONTyped;
29214function UtxoGetAddress200ResponseToJSON(value) {
29215  if (value === void 0) {
29216    return void 0;
29217  }
29218  if (value === null) {
29219    return null;
29220  }
29221  return {
29222    "address": value.address
29223  };
29224}
29225UtxoGetAddress200Response.UtxoGetAddress200ResponseToJSON = UtxoGetAddress200ResponseToJSON;
29226var UtxoGetAddressRequest = {};
29227Object.defineProperty(UtxoGetAddressRequest, "__esModule", { value: true });
29228UtxoGetAddressRequest.UtxoGetAddressRequestToJSON = UtxoGetAddressRequest.UtxoGetAddressRequestFromJSONTyped = UtxoGetAddressRequest.UtxoGetAddressRequestFromJSON = UtxoGetAddressRequest.instanceOfUtxoGetAddressRequest = void 0;
29229const runtime_1$2 = runtime$d;
29230const BTCInputScriptType_1 = BTCInputScriptType;
29231const TypesNumericU32_1 = TypesNumericU32;
29232function instanceOfUtxoGetAddressRequest(value) {
29233  let isInstance = true;
29234  isInstance = isInstance && "coin" in value;
29235  isInstance = isInstance && "address_n" in value;
29236  return isInstance;
29237}
29238UtxoGetAddressRequest.instanceOfUtxoGetAddressRequest = instanceOfUtxoGetAddressRequest;
29239function UtxoGetAddressRequestFromJSON(json) {
29240  return UtxoGetAddressRequestFromJSONTyped(json);
29241}
29242UtxoGetAddressRequest.UtxoGetAddressRequestFromJSON = UtxoGetAddressRequestFromJSON;
29243function UtxoGetAddressRequestFromJSONTyped(json, ignoreDiscriminator) {
29244  if (json === void 0 || json === null) {
29245    return json;
29246  }
29247  return {
29248    "show_display": !(0, runtime_1$2.exists)(json, "show_display") ? void 0 : json["show_display"],
29249    "script_type": !(0, runtime_1$2.exists)(json, "script_type") ? void 0 : (0, BTCInputScriptType_1.BTCInputScriptTypeFromJSON)(json["script_type"]),
29250    "coin": json["coin"],
29251    "address_n": json["address_n"].map(TypesNumericU32_1.TypesNumericU32FromJSON)
29252  };
29253}
29254UtxoGetAddressRequest.UtxoGetAddressRequestFromJSONTyped = UtxoGetAddressRequestFromJSONTyped;
29255function UtxoGetAddressRequestToJSON(value) {
29256  if (value === void 0) {
29257    return void 0;
29258  }
29259  if (value === null) {
29260    return null;
29261  }
29262  return {
29263    "show_display": value.show_display,
29264    "script_type": (0, BTCInputScriptType_1.BTCInputScriptTypeToJSON)(value.script_type),
29265    "coin": value.coin,
29266    "address_n": value.address_n.map(TypesNumericU32_1.TypesNumericU32ToJSON)
29267  };
29268}
29269UtxoGetAddressRequest.UtxoGetAddressRequestToJSON = UtxoGetAddressRequestToJSON;
29270var UtxoSignTransaction200Response = {};
29271Object.defineProperty(UtxoSignTransaction200Response, "__esModule", { value: true });
29272UtxoSignTransaction200Response.UtxoSignTransaction200ResponseToJSON = UtxoSignTransaction200Response.UtxoSignTransaction200ResponseFromJSONTyped = UtxoSignTransaction200Response.UtxoSignTransaction200ResponseFromJSON = UtxoSignTransaction200Response.instanceOfUtxoSignTransaction200Response = void 0;
29273const TypesHexBytesLower_1 = TypesHexBytesLower;
29274function instanceOfUtxoSignTransaction200Response(value) {
29275  let isInstance = true;
29276  isInstance = isInstance && "serializedTx" in value;
29277  return isInstance;
29278}
29279UtxoSignTransaction200Response.instanceOfUtxoSignTransaction200Response = instanceOfUtxoSignTransaction200Response;
29280function UtxoSignTransaction200ResponseFromJSON(json) {
29281  return UtxoSignTransaction200ResponseFromJSONTyped(json);
29282}
29283UtxoSignTransaction200Response.UtxoSignTransaction200ResponseFromJSON = UtxoSignTransaction200ResponseFromJSON;
29284function UtxoSignTransaction200ResponseFromJSONTyped(json, ignoreDiscriminator) {
29285  if (json === void 0 || json === null) {
29286    return json;
29287  }
29288  return {
29289    "serializedTx": (0, TypesHexBytesLower_1.TypesHexBytesLowerFromJSON)(json["serializedTx"])
29290  };
29291}
29292UtxoSignTransaction200Response.UtxoSignTransaction200ResponseFromJSONTyped = UtxoSignTransaction200ResponseFromJSONTyped;
29293function UtxoSignTransaction200ResponseToJSON(value) {
29294  if (value === void 0) {
29295    return void 0;
29296  }
29297  if (value === null) {
29298    return null;
29299  }
29300  return {
29301    "serializedTx": (0, TypesHexBytesLower_1.TypesHexBytesLowerToJSON)(value.serializedTx)
29302  };
29303}
29304UtxoSignTransaction200Response.UtxoSignTransaction200ResponseToJSON = UtxoSignTransaction200ResponseToJSON;
29305var UtxoSignTransactionRequest = {};
29306Object.defineProperty(UtxoSignTransactionRequest, "__esModule", { value: true });
29307UtxoSignTransactionRequest.UtxoSignTransactionRequestToJSON = UtxoSignTransactionRequest.UtxoSignTransactionRequestFromJSONTyped = UtxoSignTransactionRequest.UtxoSignTransactionRequestFromJSON = UtxoSignTransactionRequest.instanceOfUtxoSignTransactionRequest = void 0;
29308const runtime_1$1 = runtime$d;
29309function instanceOfUtxoSignTransactionRequest(value) {
29310  let isInstance = true;
29311  isInstance = isInstance && "outputs" in value;
29312  isInstance = isInstance && "inputs" in value;
29313  isInstance = isInstance && "coin" in value;
29314  return isInstance;
29315}
29316UtxoSignTransactionRequest.instanceOfUtxoSignTransactionRequest = instanceOfUtxoSignTransactionRequest;
29317function UtxoSignTransactionRequestFromJSON(json) {
29318  return UtxoSignTransactionRequestFromJSONTyped(json);
29319}
29320UtxoSignTransactionRequest.UtxoSignTransactionRequestFromJSON = UtxoSignTransactionRequestFromJSON;
29321function UtxoSignTransactionRequestFromJSONTyped(json, ignoreDiscriminator) {
29322  if (json === void 0 || json === null) {
29323    return json;
29324  }
29325  return {
29326    "opReturnData": !(0, runtime_1$1.exists)(json, "opReturnData") ? void 0 : json["opReturnData"],
29327    "vaultAddress": !(0, runtime_1$1.exists)(json, "vaultAddress") ? void 0 : json["vaultAddress"],
29328    "outputs": json["outputs"],
29329    "inputs": json["inputs"],
29330    "coin": json["coin"]
29331  };
29332}
29333UtxoSignTransactionRequest.UtxoSignTransactionRequestFromJSONTyped = UtxoSignTransactionRequestFromJSONTyped;
29334function UtxoSignTransactionRequestToJSON(value) {
29335  if (value === void 0) {
29336    return void 0;
29337  }
29338  if (value === null) {
29339    return null;
29340  }
29341  return {
29342    "opReturnData": value.opReturnData,
29343    "vaultAddress": value.vaultAddress,
29344    "outputs": value.outputs,
29345    "inputs": value.inputs,
29346    "coin": value.coin
29347  };
29348}
29349UtxoSignTransactionRequest.UtxoSignTransactionRequestToJSON = UtxoSignTransactionRequestToJSON;
29350var XrpSignTransactionRequest = {};
29351var XrpSignTransactionRequestPayment = {};
29352Object.defineProperty(XrpSignTransactionRequestPayment, "__esModule", { value: true });
29353XrpSignTransactionRequestPayment.XrpSignTransactionRequestPaymentToJSON = XrpSignTransactionRequestPayment.XrpSignTransactionRequestPaymentFromJSONTyped = XrpSignTransactionRequestPayment.XrpSignTransactionRequestPaymentFromJSON = XrpSignTransactionRequestPayment.instanceOfXrpSignTransactionRequestPayment = void 0;
29354function instanceOfXrpSignTransactionRequestPayment(value) {
29355  let isInstance = true;
29356  isInstance = isInstance && "destinationTag" in value;
29357  isInstance = isInstance && "destination" in value;
29358  isInstance = isInstance && "amount" in value;
29359  return isInstance;
29360}
29361XrpSignTransactionRequestPayment.instanceOfXrpSignTransactionRequestPayment = instanceOfXrpSignTransactionRequestPayment;
29362function XrpSignTransactionRequestPaymentFromJSON(json) {
29363  return XrpSignTransactionRequestPaymentFromJSONTyped(json);
29364}
29365XrpSignTransactionRequestPayment.XrpSignTransactionRequestPaymentFromJSON = XrpSignTransactionRequestPaymentFromJSON;
29366function XrpSignTransactionRequestPaymentFromJSONTyped(json, ignoreDiscriminator) {
29367  if (json === void 0 || json === null) {
29368    return json;
29369  }
29370  return {
29371    "destinationTag": json["destinationTag"],
29372    "destination": json["destination"],
29373    "amount": json["amount"]
29374  };
29375}
29376XrpSignTransactionRequestPayment.XrpSignTransactionRequestPaymentFromJSONTyped = XrpSignTransactionRequestPaymentF
29376romJSONTyped;
29377function XrpSignTransactionRequestPaymentToJSON(value) {
29378  if (value === void 0) {
29379    return void 0;
29380  }
29381  if (value === null) {
29382    return null;
29383  }
29384  return {
29385    "destinationTag": value.destinationTag,
29386    "destination": value.destination,
29387    "amount": value.amount
29388  };
29389}
29390XrpSignTransactionRequestPayment.XrpSignTransactionRequestPaymentToJSON = XrpSignTransactionRequestPaymentToJSON;
29391Object.defineProperty(XrpSignTransactionRequest, "__esModule", { value: true });
29392XrpSignTransactionRequest.XrpSignTransactionRequestToJSON = XrpSignTransactionRequest.XrpSignTransactionRequestFromJSONTyped = XrpSignTransactionRequest.XrpSignTransactionRequestFromJSON = XrpSignTransactionRequest.instanceOfXrpSignTransactionRequest = void 0;
29393const runtime_1 = runtime$d;
29394const XrpSignTransactionRequestPayment_1 = XrpSignTransactionRequestPayment;
29395function instanceOfXrpSignTransactionRequest(value) {
29396  let isInstance = true;
29397  isInstance = isInstance && "payment" in value;
29398  isInstance = isInstance && "lastLedgerSequence" in value;
29399  isInstance = isInstance && "sequence" in value;
29400  isInstance = isInstance && "tx" in value;
29401  isInstance = isInstance && "addressNList" in value;
29402  return isInstance;
29403}
29404XrpSignTransactionRequest.instanceOfXrpSignTransactionRequest = instanceOfXrpSignTransactionRequest;
29405function XrpSignTransactionRequestFromJSON(json) {
29406  return XrpSignTransactionRequestFromJSONTyped(json);
29407}
29408XrpSignTransactionRequest.XrpSignTransactionRequestFromJSON = XrpSignTransactionRequestFromJSON;
29409function XrpSignTransactionRequestFromJSONTyped(json, ignoreDiscriminator) {
29410  if (json === void 0 || json === null) {
29411    return json;
29412  }
29413  return {
29414    "payment": (0, XrpSignTransactionRequestPayment_1.XrpSignTransactionRequestPaymentFromJSON)(json["payment"]),
29415    "lastLedgerSequence": json["lastLedgerSequence"],
29416    "sequence": json["sequence"],
29417    "flags": !(0, runtime_1.exists)(json, "flags") ? void 0 : json["flags"],
29418    "tx": json["tx"],
29419    "addressNList": json["addressNList"]
29420  };
29421}
29422XrpSignTransactionRequest.XrpSignTransactionRequestFromJSONTyped = XrpSignTransactionRequestFromJSONTyped;
29423function XrpSignTransactionRequestToJSON(value) {
29424  if (value === void 0) {
29425    return void 0;
29426  }
29427  if (value === null) {
29428    return null;
29429  }
29430  return {
29431    "payment": (0, XrpSignTransactionRequestPayment_1.XrpSignTransactionRequestPaymentToJSON)(value.payment),
29432    "lastLedgerSequence": value.lastLedgerSequence,
29433    "sequence": value.sequence,
29434    "flags": value.flags,
29435    "tx": value.tx,
29436    "addressNList": value.addressNList
29437  };
29438}
29439XrpSignTransactionRequest.XrpSignTransactionRequestToJSON = XrpSignTransactionRequestToJSON;
29440(function(exports) {
29441  var __createBinding2 = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m2, k2, k22) {
29442    if (k22 === void 0)
29443      k22 = k2;
29444    var desc = Object.getOwnPropertyDescriptor(m2, k2);
29445    if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
29446      desc = { enumerable: true, get: function() {
29447        return m2[k2];
29448      } };
29449    }
29450    Object.defineProperty(o, k22, desc);
29451  } : function(o, m2, k2, k22) {
29452    if (k22 === void 0)
29453      k22 = k2;
29454    o[k22] = m2[k2];
29455  });
29456  var __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function(m2, exports2) {
29457    for (var p2 in m2)
29458      if (p2 !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p2))
29459        __createBinding2(exports2, m2, p2);
29460  };
29461  Object.defineProperty(exports, "__esModule", { value: true });
29462  __exportStar(ApplySettingsRequest, exports);
29463  __exportStar(BTCInputScriptType, exports);
29464  __exportStar(BinanceGetAddress200Response, exports);
29465  __exportStar(BinanceGetAddressRequest, exports);
29466  __exportStar(BnbSignTransaction200Response, exports);
29467  __exportStar(BnbSignTransactionRequest, exports);
29468  __exportStar(ChangePinRequest, exports);
29469  __exportStar(CipherKeyValueRequest, exports);
29470  __exportStar(CipherKeyValueRequestAllOf, exports);
29471  __exportStar(CipherKeyValueRequestAllOf1, exports);
29472  __exportStar(CipherKeyValueRequestAllOf1AnyOf, exports);
29473  __exportStar(CipherKeyValueRequestAllOf1AnyOf1, exports);
29474  __exportStar(CipherKeyValueRequestAllOfIv, exports);
29475  __exportStar(CosmosGetAddress200Response, exports);
29476  __exportStar(CosmosSignAmino200Response, exports);
29477  __exportStar(CosmosSignAminoRequest, exports);
29478  __exportStar(DebugLinkFlashDumpRequest, exports);
29479  __exportStar(DebugLinkGetState200Response, exports);
29480  __exportStar(DebugLinkGetState200ResponseFirmwareHash, exports);
29481  __exportStar(DebugLinkGetState200ResponseNode, exports);
29482  __exportStar(DebugLinkGetState200ResponseResetEntropy, exports);
29483  __exportStar(DebugLinkGetState200ResponseStorageHash, exports);
29484  __exportStar(EthSignRequest, exports);
29485  __exportStar(EthSignTransaction200Response, exports);
29486  __exportStar(EthSignTransactionRequest, exports);
29487  __exportStar(EthSignTransactionRequestAllOf, exports);
29488  __exportStar(EthSignTransactionRequestAllOf1, exports);
29489  __exportStar(EthSignTransactionRequestAllOf1AnyOf, exports);
29490  __exportStar(EthSignTransactionRequestAllOf1AnyOf1, exports);
29491  __exportStar(EthSignTypedDataRequest, exports);
29492  __exportStar(EthVerifyRequest, exports);
29493  __exportStar(EthereumGetAddress200Response, exports);
29494  __exportStar(FlashHashRequest, exports);
29495  __exportStar(FlashWriteRequest, exports);
29496  __exportStar(GetEntropyRequest, exports);
29497  __exportStar(GetPublicKey200Response, exports);
29498  __exportStar(GetPublicKeyRequest, exports);
29499  __exportStar(LoadDeviceRequest, exports);
29500  __exportStar(LoadDeviceRequestAllOf, exports);
29501  __exportStar(LoadDeviceRequestAllOf1, exports);
29502  __exportStar(LoadDeviceRequestAllOf1AnyOf, exports);
29503  __exportStar(LoadDeviceRequestAllOf1AnyOf1, exports);
29504  __exportStar(Pair200Response, exports);
29505  __exportStar(PairingInfo, exports);
29506  __exportStar(Ping200Response, exports);
29507  __exportStar(PingRequest, exports);
29508  __exportStar(RecoverDeviceRequest, exports);
29509  __exportStar(RecoverDeviceRequestAutoLockDelayMs, exports);
29510  __exportStar(ResetDeviceRequest, exports);
29511  __exportStar(SignIdentityRequest, exports);
29512  __exportStar(SignIdentityRequestChallengeHidden, exports);
29513  __exportStar(SignIdentityRequestIndex, exports);
29514  __exportStar(TypesBnbAddress, exports);
29515  __exportStar(TypesBnbCoin, exports);
29516  __exportStar(TypesBnbMsg, exports);
29517  __exportStar(TypesBnbMsgInputOutput, exports);
29518  __exportStar(TypesBnbSignDoc, exports);
29519  __exportStar(TypesCoin, exports);
29520  __exportStar(TypesCosmosAminoAny, exports);
29521  __exportStar(TypesCosmosAminoSignDoc, exports);
29522  __exportStar(TypesCosmosAminoSignDocCosmosSdkBeginRedelegate, exports);
29523  __exportStar(TypesCosmosAminoSignDocCosmosSdkBeginRedelegateAllOf, exports);
29524  __exportStar(TypesCosmosAminoSignDocCosmosSdkDelegate, exports);
29525  __exportStar(TypesCosmosAminoSignDocCosmosSdkDelegateAllOf, exports);
29526  __exportStar(TypesCosmosAminoSignDocCosmosSdkSend, exports);
29527  __exportStar(TypesCosmosAminoSignDocCosmosSdkSendAllOf, exports);
29528  __exportStar(TypesCosmosAminoSignDocCosmosSdkUndelegate, exports);
29529  __exportStar(TypesCosmosAminoSignDocCosmosSdkUndelegateAllOf, exports);
29530  __exportStar(TypesCosmosAminoSignDocCosmosSdkWithdrawDelegationReward, exports);
29531  __exportStar(TypesCosmosAminoSignDocCosmosSdkWithdrawDelegationRewardAllOf, exports);
29532  __exportStar(TypesCosmosAminoSignDocFee, exports);
29533  __exportStar(TypesCosmosAminoSignDocIbcGoTransfer, exports);
29534  __exportStar(TypesCosmosAminoSignDocIbcGoTransferAllOf, exports);
29535  __exportStar(TypesCosmosAminoSignDocMsgsInner, exports);
29536  __exportStar(TypesCosmosAminoSignDocThornodeSend, exports);
29537  __exportStar(TypesCosmosAminoSignDocThornodeSendAllOf, exports);
29538  __exportStar(TypesCosmosCoin, exports);
29539  __exportStar(TypesCosmosMessagesCosmosSdkDelegate, exports);
29540  __exportStar(TypesCosmosMessagesCosmosSdkSend, exports);
29541  __exportStar(TypesCosmosMessagesCosmosSdkUndelegate, exports);
29542  __exportStar(TypesCosmosMessagesCosmosSdkWithdrawDelegatorReward, exports);
29543  __exportStar(TypesCosmosMessagesIbcGoTransfer, exports);
29544  __exportStar(TypesCosmosMessagesIbcGoTransferHeight, exports);
29545  __exportStar(TypesCosmosMessagesThornodeSend, exports);
29546  __exportStar(TypesEthSignature, exports);
29547  __exportStar(TypesFeatures, exports);
29548  __exportStar(TypesFeaturesAutoLockDelayMs, exports);
29549  __exportStar(TypesFeaturesBootloaderHash, exports);
29550  __exportStar(TypesFeaturesFirmwareHash, exports);
29551  __exportStar(TypesFeaturesMajorVersion, exports);
29552  __exportStar(TypesFeaturesMinorVersion, exports);
29553  __exportStar(TypesFeaturesPatchVersion, exports);
29554  __exportStar(TypesFeaturesRevision, exports);
29555  __exportStar(TypesHDNode, exports);
29556  __exportStar(TypesHexBytesLower, exports);
29557  __exportStar(TypesHexSecp256k1Signature, exports);
29558  __exportStar(TypesNumericU32, exports);
29559  __exportStar(TypesNumericU64, exports);
29560  __exportStar(TypesNumericUnsignedInteger, exports);
29561  __exportStar(TypesPolicy, exports);
29562  __exportStar(UtxoGetAddress200Response, exports);
29563  __exportStar(UtxoGetAddressRequest, exports);
29564  __exportStar(UtxoSignTransaction200Response, exports);
29565  __exportStar(UtxoSignTransactionRequest, exports);
29566  __exportStar(XrpSignTransactionRequest, exports);
29567  __exportStar(XrpSignTransactionRequestPayment, exports);
29568})(models);
29569var __createBinding$c = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m2, k2, k22) {
29570  if (k22 === void 0)
29571    k22 = k2;
29572  var desc = Object.getOwnPropertyDescriptor(m2, k2);
29573  if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
29574    desc = { enumerable: true, get: function() {
29575      return m2[k2];
29576    } };
29577  }
29578  Object.defineProperty(o, k22, desc);
29579} : function(o, m2, k2, k22) {
29580  if (k22 === void 0)
29581    k22 = k2;
29582  o[k22] = m2[k2];
29583});
29584var __setModuleDefault$c = commonjsGlobal && commonjsGlobal.__setModuleDefault || (Object.create ? function(o, v2) {
29585  Object.defineProperty(o, "default", { enumerable: true, value: v2 });
29586} : function(o, v2) {
29587  o["default"] = v2;
29588});
29589var __importStar$c = commonjsGlobal && commonjsGlobal.__importStar || function(mod) {
29590  if (mod && mod.__esModule)
29591    return mod;
29592  var result = {};
29593  if (mod != null) {
29594    for (var k2 in mod)
29595      if (k2 !== "default" && Object.prototype.hasOwnProperty.call(mod, k2))
29596        __createBinding$c(result, mod, k2);
29597  }
29598  __setModuleDefault$c(result, mod);
29599  return result;
29600};
29601Object.defineProperty(AddressApi$1, "__esModule", { value: true });
29602AddressApi$1.AddressApi = void 0;
29603const runtime$c = __importStar$c(runtime$d);
29604const models_1$b = models;
29605class AddressApi extends runtime$c.BaseAPI {
29606  /**
29607   * Get a Binance Chain address, loading it into the current session and optionally displaying it on-device.
29608   * Get Binance Address
29609   */
29610  async binanceGetAddressRaw(requestParameters, initOverrides) {
29611    if (requestParameters.BinanceGetAddressRequest === null || requestParameters.BinanceGetAddressRequest === void 0) {
29612      throw new runtime$c.RequiredError("BinanceGetAddressRequest", "Required parameter requestParameters.BinanceGetAddressRequest was null or undefined when calling binanceGetAddress.");
29613    }
29614    const queryParameters = {};
29615    const headerParameters = {};
29616    headerParameters["Content-Type"] = "application/json";
29617    if (this.configuration && this.configuration.accessToken) {
29618      const token2 = this.configuration.accessToken;
29619      const tokenString = await token2("apiKey", []);
29620      if (tokenString) {
29621        headerParameters["Authorization"] = `Bearer ${tokenString}`;
29622      }
29623    }
29624    const response = await this.request({
29625      path: `/addresses/bnb`,
29626      method: "POST",
29627      headers: headerParameters,
29628      query: queryParameters,
29629      body: (0, models_1$b.BinanceGetAddressRequestToJSON)(requestParameters.BinanceGetAddressRequest)
29630    }, initOverrides);
29631    return new runtime$c.JSONApiResponse(response, (jsonValue) => (0, models_1$b.BinanceGetAddress200ResponseFromJSON)(jsonValue));
29632  }
29633  /**
29634   * Get a Binance Chain address, loading it into the current session and optionally displaying it on-device.
29635   * Get Binance Address
29636   */
29637  async binanceGetAddress(BinanceGetAddressRequest2, initOverrides) {
29638    const response = await this.binanceGetAddressRaw({ BinanceGetAddressRequest: BinanceGetAddressRequest2 }, initOverrides);
29639    return await response.value();
29640  }
29641  /**
29642   * Get a Cosmos address, loading it into the current session and optionally displaying it on-device.
29643   * Get Cosmos Address
29644   */
29645  async cosmosGetAddressRaw(requestParameters, initOverrides) {
29646    if (requestParameters.BinanceGetAddressRequest === null || requestParameters.BinanceGetAddressRequest === void 0) {
29647      throw new runtime$c.RequiredError("BinanceGetAddressRequest", "Required parameter requestParameters.BinanceGetAddressRequest was null or undefined when calling cosmosGetAddress.");
29648    }
29649    const queryParameters = {};
29650    const headerParameters = {};
29651    headerParameters["Content-Type"] = "application/json";
29652    if (this.configuration && this.configuration.accessToken) {
29653      const token2 = this.configuration.accessToken;
29654      const tokenString = await token2("apiKey", []);
29655      if (tokenString) {
29656        headerParameters["Authorization"] = `Bearer ${tokenString}`;
29657      }
29658    }
29659    const response = await this.request({
29660      path: `/addresses/cosmos`,
29661      method: "POST",
29662      headers: headerParameters,
29663      query: queryParameters,
29664      body: (0, models_1$b.BinanceGetAddressRequestToJSON)(requestParameters.BinanceGetAddressRequest)
29665    }, initOverrides);
29666    return new runtime$c.JSONApiResponse(response, (jsonValue) => (0, models_1$b.CosmosGetAddress200ResponseFromJSON)(jsonValue));
29667  }
29668  /**
29669   * Get a Cosmos address, loading it into the current session and optionally displaying it on-device.
29670   * Get Cosmos Address
29671   */
29672  async cosmosGetAddress(BinanceGetAddressRequest2, initOverrides) {
29673    const response = await this.cosmosGetAddressRaw({ BinanceGetAddressRequest: BinanceGetAddressRequest2 }, initOverrides);
29674    return await response.value();
29675  }
29676  /**
29677   * Get an Ethereum address, loading it into the current session and optionally displaying it on-device.
29678   * Get Ethereum Address
29679   */
29680  async ethereumGetAddressRaw(requestParameters, initOverrides) {
29681    if (requestParameters.BinanceGetAddressRequest === null || requestParameters.BinanceGetAddressRequest === void 0) {
29682      throw new runtime$c.RequiredError("BinanceGetAddressRequest", "Required parameter requestParameters.BinanceGetAddressRequest was null or undefined when calling ethereumGetAddress.");
29683    }
29684    const queryParameters = {};
29685    const headerParameters = {};
29686    headerParameters["Content-Type"] = "application/json";
29687    if (this.configuration && this.configuration.accessToken) {
29688      const token2 = this.configuration.accessToken;
29689      const tokenString = await token2("apiKey", []);
29690      if (tokenString) {
29691        headerParameters["Authorization"] = `Bearer ${tokenString}`;
29692      }
29693    }
29694    const response = await this.request({
29695      path: `/addresses/eth`,
29696      method: "POST",
29697      headers: headerParameters,
29698      query: queryParameters,
29699      body: (0, models_1$b.BinanceGetAddressRequestToJSON)(requestParameters.BinanceGetAddressRequest)
29700    }, initOverrides);
29701    return new runtime$c.JSONApiResponse(response, (jsonValue) => (0, models_1$b.EthereumGetAddress200ResponseFromJSON)(jsonValue));
29702  }
29703  /**
29704   * Get an Ethereum address, loading it into the current session and optionally displaying it on-device.
29705   * Get Ethereum Address
29706   */
29707  async ethereumGetAddress(BinanceGetAddressRequest2, initOverrides) {
29708    const response = await this.ethereumGetAddressRaw({ BinanceGetAddressRequest: BinanceGetAddressRequest2 }, initOverrides);
29709    return await response.value();
29710  }
29711  /**
29712   * Get a Tendermint address, loading it into the current session and optionally displaying it on-device.
29713   * Get Tendermint Address
29714   */
29715  async tendermintGetAddressRaw(requestParameters, initOverrides) {
29716    if (requestParameters.BinanceGetAddressRequest === null || requestParameters.BinanceGetAddressRequest === void 0) {
29717      throw new runtime$c.RequiredError("BinanceGetAddressRequest", "Required parameter requestParameters.BinanceGetAddressRequest was null or undefined when calling tendermintGetAddress.");
29718    }
29719    const queryParameters = {};
29720    const headerParameters = {};
29721    headerParameters["Content-Type"] = "application/json";
29722    if (this.configuration && this.configuration.accessToken) {
29723      const token2 = this.configuration.accessToken;
29724      const tokenString = await token2("apiKey", []);
29725      if (tokenString) {
29726        headerParameters["Authorization"] = `Bearer ${tokenString}`;
29727      }
29728    }
29729    const response = await this.request({
29730      path: `/addresses/tendermint`,
29731      method: "POST",
29732      headers: headerParameters,
29733      query: queryParameters,
29734      body: (0, models_1$b.BinanceGetAddressRequestToJSON)(requestParameters.BinanceGetAddressRequest)
29735    }, initOverrides);
29736    return new runtime$c.JSONApiResponse(response, (jsonValue) => (0, models_1$b.EthereumGetAddress200ResponseFromJSON)(jsonValue));
29737  }
29738  /**
29739   * Get a Tendermint address, loading it into the current session and optionally displaying it on-device.
29740   * Get Tendermint Address
29741   */
29742  async tendermintGetAddress(BinanceGetAddressRequest2, initOverrides) {
29743    const response = await this.tendermintGetAddressRaw({ BinanceGetAddressRequest: BinanceGetAddressRequest2 }, initOverrides);
29744    return await response.value();
29745  }
29746  /**
29747   * Get a Thorchain address, loading it into the current session and optionally displaying it on-device.
29748   * Get Thorchain Address
29749   */
29750  async thorchainGetAddressRaw(requestParameters, initOverrides) {
29751    if (requestParameters.BinanceGetAddressRequest === null || requestParameters.BinanceGetAddressRequest === void 0) {
29752      throw new runtime$c.RequiredError("BinanceGetAddressRequest", "Required parameter requestParameters.BinanceGetAddressRequest was null or undefined when calling thorchainGetAddress.");
29753    }
29754    const queryParameters = {};
29755    const headerParameters = {};
29756    headerParameters["Content-Type"] = "application/json";
29757    if (this.configuration && this.configuration.accessToken) {
29758      const token2 = this.configuration.accessToken;
29759      const tokenString = await token2("apiKey", []);
29760      if (tokenString) {
29761        headerParameters["Authorization"] = `Bearer ${tokenString}`;
29762      }
29763    }
29764    const response = await this.request({
29765      path: `/addresses/thorchain`,
29766      method: "POST",
29767      headers: headerParameters,
29768      query: queryParameters,
29769      body: (0, models_1$b.BinanceGetAddressRequestToJSON)(requestParameters.BinanceGetAddressRequest)
29770    }, initOverrides);
29771    return new runtime$c.JSONApiResponse(response, (jsonValue) => (0, models_1$b.CosmosGetAddress200ResponseFromJSON)(jsonValue));
29772  }
29773  /**
29774   * Get a Thorchain address, loading it into the current session and optionally displaying it on-device.
29775   * Get Thorchain Address
29776   */
29777  async thorchainGetAddress(BinanceGetAddressRequest2, initOverrides) {
29778    const response = await this.thorchainGetAddressRaw({ BinanceGetAddressRequest: BinanceGetAddressRequest2 }, initOverrides);
29779    return await response.value();
29780  }
29781  /**
29782   * Get a Bitcoin/Dogecoin/Dash.... cont. (see coin-support) Chain address, loading it into the current session and optionally displaying it on-device.
29783   * Get Binance Address
29784   */
29785  async utxoGetAddressRaw(requestParameters, initOverrides) {
29786    if (requestParameters.UtxoGetAddressRequest === null || requestParameters.UtxoGetAddressRequest === void 0) {
29787      throw new runtime$c.RequiredError("UtxoGetAddressRequest", "Required parameter requestParameters.UtxoGetAddressRequest was null or undefined when calling utxoGetAddress.");
29788    }
29789    const queryParameters = {};
29790    const headerParameters = {};
29791    headerParameters["Content-Type"] = "application/json";
29792    if (this.configuration && this.configuration.accessToken) {
29793      const token2 = this.configuration.accessToken;
29794      const tokenString = await token2("apiKey", []);
29795      if (tokenString) {
29796        headerParameters["Authorization"] = `Bearer ${tokenString}`;
29797      }
29798    }
29799    const response = await this.request({
29800      path: `/addresses/utxo`,
29801      method: "POST",
29802      headers: headerParameters,
29803      query: queryParameters,
29804      body: (0, models_1$b.UtxoGetAddressRequestToJSON)(requestParameters.UtxoGetAddressRequest)
29805    }, initOverrides);
29806    return new runtime$c.JSONApiResponse(response, (jsonValue) => (0, models_1$b.UtxoGetAddress200ResponseFromJSON)(jsonValue));
29807  }
29808  /**
29809   * Get a Bitcoin/Dogecoin/Dash.... cont. (see coin-support) Chain address, loading it into the current session and optionally displaying it on-device.
29810   * Get Binance Address
29811   */
29812  async utxoGetAddress(UtxoGetAddressRequest2, initOverrides) {
29813    const response = await this.utxoGetAddressRaw({ UtxoGetAddressRequest: UtxoGetAddressRequest2 }, initOverrides);
29814    return await response.value();
29815  }
29816  /**
29817   * Get an XRP address, loading it into the current session and optionally displaying it on-device.
29818   * Get XRP Address
29819   */
29820  async xrpGetAddressRaw(requestParameters, initOverrides) {
29821    if (requestParameters.BinanceGetAddressRequest === null || requestParameters.BinanceGetAddressRequest === void 0) {
29822      throw new runtime$c.RequiredError("BinanceGetAddressRequest", "Required parameter requestParameters.BinanceGetAddressRequest was null or undefined when calling xrpGetAddress.");
29823    }
29824    const queryParameters = {};
29825    const headerParameters = {};
29826    headerParameters["Content-Type"] = "application/json";
29827    if (this.configuration && this.configuration.accessToken) {
29828      const token2 = this.configuration.accessToken;
29829      const tokenString = await token2("apiKey", []);
29830      if (tokenString) {
29831        headerParameters["Authorization"] = `Bearer ${tokenString}`;
29832      }
29833    }
29834    const response = await this.request({
29835      path: `/addresses/xrp`,
29836      method: "POST",
29837      headers: headerParameters,
29838      query: queryParameters,
29839      body: (0, models_1$b.BinanceGetAddressRequestToJSON)(requestParameters.BinanceGetAddressRequest)
29840    }, initOverrides);
29841    return new runtime$c.JSONApiResponse(response, (jsonValue) => (0, models_1$b.CosmosGetAddress200ResponseFromJSON)(jsonValue));
29842  }
29843  /**
29844   * Get an XRP address, loading it into the current session and optionally displaying it on-device.
29845   * Get XRP Address
29846   */
29847  async xrpGetAddress(BinanceGetAddressRequest2, initOverrides) {
29848    const response = await this.xrpGetAddressRaw({ BinanceGetAddressRequest: BinanceGetAddressRequest2 }, initOverrides);
29849    return await response.value();
29850  }
29851}
29852AddressApi$1.AddressApi = AddressApi;
29853var AuthApi$1 = {};
29854var __createBinding$b = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m2, k2, k22) {
29855  if (k22 === void 0)
29856    k22 = k2;
29857  var desc = Object.getOwnPropertyDescriptor(m2, k2);
29858  if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
29859    desc = { enumerable: true, get: function() {
29860      return m2[k2];
29861    } };
29862  }
29863  Object.defineProperty(o, k22, desc);
29864} : function(o, m2, k2, k22) {
29865  if (k22 === void 0)
29866    k22 = k2;
29867  o[k22] = m2[k2];
29868});
29869var __setModuleDefault$b = commonjsGlobal && commonjsGlobal.__setModuleDefault || (Object.create ? function(o, v2) {
29870  Object.defineProperty(o, "default", { enumerable: true, value: v2 });
29871} : function(o, v2) {
29872  o["default"] = v2;
29873});
29874var __importStar$b = commonjsGlobal && commonjsGlobal.__importStar || function(mod) {
29875  if (mod && mod.__esModule)
29876    return mod;
29877  var result = {};
29878  if (mod != null) {
29879    for (var k2 in mod)
29880      if (k2 !== "default" && Object.prototype.hasOwnProperty.call(mod, k2))
29881        __createBinding$b(result, mod, k2);
29882  }
29883  __setModuleDefault$b(result, mod);
29884  return result;
29885};
29886Object.defineProperty(AuthApi$1, "__esModule", { value: true });
29887AuthApi$1.AuthApi = void 0;
29888const runtime$b = __importStar$b(runtime$d);
29889const models_1$a = models;
29890class AuthApi extends runtime$b.BaseAPI {
29891  /**
29892   * Pair new SDK client
29893   */
29894  async pairRaw(requestParameters, initOverrides) {
29895    if (requestParameters.PairingInfo === null || requestParameters.PairingInfo === void 0) {
29896      throw new runtime$b.RequiredError("PairingInfo", "Required parameter requestParameters.PairingInfo was null or undefined when calling pair.");
29897    }
29898    const queryParameters = {};
29899    const headerParameters = {};
29900    headerParameters["Content-Type"] = "application/json";
29901    const response = await this.request({
29902      path: `/auth/pair`,
29903      method: "POST",
29904      headers: headerParameters,
29905      query: queryParameters,
29906      body: (0, models_1$a.PairingInfoToJSON)(requestParameters.PairingInfo)
29907    }, initOverrides);
29908    return new runtime$b.JSONApiResponse(response, (jsonValue) => (0, models_1$a.Pair200ResponseFromJSON)(jsonValue));
29909  }
29910  /**
29911   * Pair new SDK client
29912   */
29913  async pair(PairingInfo2, initOverrides) {
29914    const response = await this.pairRaw({ PairingInfo: PairingInfo2 }, initOverrides);
29915    return await response.value();
29916  }
29917  /**
29918   * Verify new SDK client
29919   */
29920  async verifyRaw(initOverrides) {
29921    const queryParameters = {};
29922    const headerParameters = {};
29923    if (this.configuration && this.configuration.accessToken) {
29924      const token2 = this.configuration.accessToken;
29925      const tokenString = await token2("apiKey", []);
29926      if (tokenString) {
29927        headerParameters["Authorization"] = `Bearer ${tokenString}`;
29928      }
29929    }
29930    const response = await this.request({
29931      path: `/auth/pair`,
29932      method: "GET",
29933      headers: headerParameters,
29934      query: queryParameters
29935    }, initOverrides);
29936    return new runtime$b.JSONApiResponse(response, (jsonValue) => (0, models_1$a.PairingInfoFromJSON)(jsonValue));
29937  }
29938  /**
29939   * Verify new SDK client
29940   */
29941  async verify(initOverrides) {
29942    const response = await this.verifyRaw(initOverrides);
29943    return await response.value();
29944  }
29945}
29946AuthApi$1.AuthApi = AuthApi;
29947var BNBApi$1 = {};
29948var __createBinding$a = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m2, k2, k22) {
29949  if (k22 === void 0)
29950    k22 = k2;
29951  var desc = Object.getOwnPropertyDescriptor(m2, k2);
29952  if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
29953    desc = { enumerable: true, get: function() {
29954      return m2[k2];
29955    } };
29956  }
29957  Object.defineProperty(o, k22, desc);
29958} : function(o, m2, k2, k22) {
29959  if (k22 === void 0)
29960    k22 = k2;
29961  o[k22] = m2[k2];
29962});
29963var __setModuleDefault$a = commonjsGlobal && commonjsGlobal.__setModuleDefault || (Object.create ? function(o, v2) {
29964  Object.defineProperty(o, "default", { enumerable: true, value: v2 });
29965} : function(o, v2) {
29966  o["default"] = v2;
29967});
29968var __importStar$a = commonjsGlobal && commonjsGlobal.__importStar || function(mod) {
29969  if (mod && mod.__esModule)
29970    return mod;
29971  var result = {};
29972  if (mod != null) {
29973    for (var k2 in mod)
29974      if (k2 !== "default" && Object.prototype.hasOwnProperty.call(mod, k2))
29975        __createBinding$a(result, mod, k2);
29976  }
29977  __setModuleDefault$a(result, mod);
29978  return result;
29979};
29980Object.defineProperty(BNBApi$1, "__esModule", { value: true });
29981BNBApi$1.BNBApi = void 0;
29982const runtime$a = __importStar$a(runtime$d);
29983const models_1$9 = models;
29984class BNBApi extends runtime$a.BaseAPI {
29985  /**
29986   * Sign a Binance Chain transaction
29987   */
29988  async bnbSignTransactionRaw(requestParameters, initOverrides) {
29989    if (requestParameters.BnbSignTransactionRequest === null || requestParameters.BnbSignTransactionRequest === void 0) {
29990      throw new runtime$a.RequiredError("BnbSignTransactionRequest", "Required parameter requestParameters.BnbSignTransactionRequest was null or undefined when calling bnbSignTransaction.");
29991    }
29992    const queryParameters = {};
29993    const headerParameters = {};
29994    headerParameters["Content-Type"] = "application/json";
29995    if (this.configuration && this.configuration.accessToken) {
29996      const token2 = this.configuration.accessToken;
29997      const tokenString = await token2("apiKey", []);
29998      if (tokenString) {
29999        headerParameters["Authorization"] = `Bearer ${tokenString}`;
30000      }
30001    }
30002    const response = await this.request({
30003      path: `/bnb/sign-transaction`,
30004      method: "POST",
30005      headers: headerParameters,
30006      query: queryParameters,
30007      body: (0, models_1$9.BnbSignTransactionRequestToJSON)(requestParameters.BnbSignTransactionRequest)
30008    }, initOverrides);
30009    return new runtime$a.JSONApiResponse(response, (jsonValue) => (0, models_1$9.BnbSignTransaction200ResponseFromJSON)(jsonValue));
30010  }
30011  /**
30012   * Sign a Binance Chain transaction
30013   */
30014  async bnbSignTransaction(BnbSignTransactionRequest2, initOverrides) {
30015    const response = await this.bnbSignTransactionRaw({ BnbSignTransactionRequest: BnbSignTransactionRequest2 }, initOverrides);
30016    return await response.value();
30017  }
30018}
30019BNBApi$1.BNBApi = BNBApi;
30020var CosmosApi$1 = {};
30021var __createBinding$9 = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m2, k2, k22) {
30022  if (k22 === void 0)
30023    k22 = k2;
30024  var desc = Object.getOwnPropertyDescriptor(m2, k2);
30025  if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
30026    desc = { enumerable: true, get: function() {
30027      return m2[k2];
30028    } };
30029  }
30030  Object.defineProperty(o, k22, desc);
30031} : function(o, m2, k2, k22) {
30032  if (k22 === void 0)
30033    k22 = k2;
30034  o[k22] = m2[k2];
30035});
30036var __setModuleDefault$9 = commonjsGlobal && commonjsGlobal.__setModuleDefault || (Object.create ? function(o, v2) {
30037  Object.defineProperty(o, "default", { enumerable: true, value: v2 });
30038} : function(o, v2) {
30039  o["default"] = v2;
30040});
30041var __importStar$9 = commonjsGlobal && commonjsGlobal.__importStar || function(mod) {
30042  if (mod && mod.__esModule)
30043    return mod;
30044  var result = {};
30045  if (mod != null) {
30046    for (var k2 in mod)
30047      if (k2 !== "default" && Object.prototype.hasOwnProperty.call(mod, k2))
30048        __createBinding$9(result, mod, k2);
30049  }
30050  __setModuleDefault$9(result, mod);
30051  return result;
30052};
30053Object.defineProperty(CosmosApi$1, "__esModule", { value: true });
30054CosmosApi$1.CosmosApi = void 0;
30055const runtime$9 = __importStar$9(runtime$d);
30056const models_1$8 = models;
30057class CosmosApi extends runtime$9.BaseAPI {
30058  /**
30059   * Sign a Cosmos SDK transaction using SIGN_MODE_AMINO_JSON
30060   */
30061  async cosmosSignAminoRaw(requestParameters, initOverrides) {
30062    if (requestParameters.CosmosSignAminoRequest === null || requestParameters.CosmosSignAminoRequest === void 0) {
30063      throw new runtime$9.RequiredError("CosmosSignAminoRequest", "Required parameter requestParameters.CosmosSignAminoRequest was null or undefined when calling cosmosSignAmino.");
30064    }
30065    const queryParameters = {};
30066    const headerParameters = {};
30067    headerParameters["Content-Type"] = "application/json";
30068    if (this.configuration && this.configuration.accessToken) {
30069      const token2 = this.configuration.accessToken;
30070      const tokenString = await token2("apiKey", []);
30071      if (tokenString) {
30072        headerParameters["Authorization"] = `Bearer ${tokenString}`;
30073      }
30074    }
30075    const response = await this.request({
30076      path: `/cosmos/sign-amino`,
30077      method: "POST",
30078      headers: headerParameters,
30079      query: queryParameters,
30080      body: (0, models_1$8.CosmosSignAminoRequestToJSON)(requestParameters.CosmosSignAminoRequest)
30081    }, initOverrides);
30082    return new runtime$9.JSONApiResponse(response, (jsonValue) => (0, models_1$8.CosmosSignAmino200ResponseFromJSON)(jsonValue));
30083  }
30084  /**
30085   * Sign a Cosmos SDK transaction using SIGN_MODE_AMINO_JSON
30086   */
30087  async cosmosSignAmino(CosmosSignAminoRequest2, initOverrides) {
30088    const response = await this.cosmosSignAminoRaw({ CosmosSignAminoRequest: CosmosSignAminoRequest2 }, initOverrides);
30089    return await response.value();
30090  }
30091}
30092CosmosApi$1.CosmosApi = CosmosApi;
30093var DebugApi$1 = {};
30094var __createBinding$8 = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m2, k2, k22) {
30095  if (k22 === void 0)
30096    k22 = k2;
30097  var desc = Object.getOwnPropertyDescriptor(m2, k2);
30098  if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
30099    desc = { enumerable: true, get: function() {
30100      return m2[k2];
30101    } };
30102  }
30103  Object.defineProperty(o, k22, desc);
30104} : function(o, m2, k2, k22) {
30105  if (k22 === void 0)
30106    k22 = k2;
30107  o[k22] = m2[k2];
30108});
30109var __setModuleDefault$8 = commonjsGlobal && commonjsGlobal.__setModuleDefault || (Object.create ? function(o, v2) {
30110  Object.defineProperty(o, "default", { enumerable: true, value: v2 });
30111} : function(o, v2) {
30112  o["default"] = v2;
30113});
30114var __importStar$8 = commonjsGlobal && commonjsGlobal.__importStar || function(mod) {
30115  if (mod && mod.__esModule)
30116    return mod;
30117  var result = {};
30118  if (mod != null) {
30119    for (var k2 in mod)
30120      if (k2 !== "default" && Object.prototype.hasOwnProperty.call(mod, k2))
30121        __createBinding$8(result, mod, k2);
30122  }
30123  __setModuleDefault$8(result, mod);
30124  return result;
30125};
30126Object.defineProperty(DebugApi$1, "__esModule", { value: true });
30127DebugApi$1.DebugApi = void 0;
30128const runtime$8 = __importStar$8(runtime$d);
30129const models_1$7 = models;
30130class DebugApi extends runtime$8.BaseAPI {
30131  /**
30132   * On a DEBUG_LINK bootloader, fills the storage sectors with a dummy data pattern.
30133   * Fill storage with dummy data
30134   */
30135  async debugLinkFillConfigRaw(initOverrides) {
30136    const queryParameters = {};
30137    const headerParameters = {};
30138    const response = await this.request({
30139      path: `/system/debug/fill-config`,
30140      method: "POST",
30141      headers: headerParameters,
30142      query: queryParameters
30143    }, initOverrides);
30144    return new runtime$8.VoidApiResponse(response);
30145  }
30146  /**
30147   * On a DEBUG_LINK bootloader, fills the storage sectors with a dummy data pattern.
30148   * Fill storage with dummy data
30149   */
30150  async debugLinkFillConfig(initOverrides) {
30151    await this.debugLinkFillConfigRaw(initOverrides);
30152  }
30153  /**
30154   * On DEBUG_LINK firmware, dumps a section of flash memory.
30155   * Dump flash memory
30156   */
30157  async debugLinkFlashDumpRaw(requestParameters, initOverrides) {
30158    if (requestParameters.DebugLinkFlashDumpRequest === null || requestParameters.DebugLinkFlashDumpRequest === void 0) {
30159      throw new runtime$8.RequiredError("DebugLinkFlashDumpRequest", "Required parameter requestParameters.DebugLinkFlashDumpRequest was null or undefined when calling debugLinkFlashDump.");
30160    }
30161    const queryParameters = {};
30162    const headerParameters = {};
30163    headerParameters["Content-Type"] = "application/json";
30164    const response = await this.request({
30165      path: `/system/debug/flash-dump`,
30166      method: "POST",
30167      headers: headerParameters,
30168      query: queryParameters,
30169      body: (0, models_1$7.DebugLinkFlashDumpRequestToJSON)(requestParameters.DebugLinkFlashDumpRequest)
30170    }, initOverrides);
30171    return new runtime$8.BlobApiResponse(response);
30172  }
30173  /**
30174   * On DEBUG_LINK firmware, dumps a section of flash memory.
30175   * Dump flash memory
30176   */
30177  async debugLinkFlashDump(DebugLinkFlashDumpRequest2, initOverrides) {
30178    const response = await this.debugLinkFlashDumpRaw({ DebugLinkFlashDumpRequest: DebugLinkFlashDumpRequest2 }, initOverrides);
30179    return await response.value();
30180  }
30181  /**
30182   * On DEBUG_LINK firmware, dumps various internal sensitive paramters.
30183   * Dump sensitive device state
30184   */
30185  async debugLinkGetStateRaw(initOverrides) {
30186    const queryParameters = {};
30187    const headerParameters = {};
30188    const response = await this.request({
30189      path: `/system/debug/get-state`,
30190      method: "POST",
30191      headers: headerParameters,
30192      query: queryParameters
30193    }, initOverrides);
30194    return new runtime$8.JSONApiResponse(response, (jsonValue) => (0, models_1$7.DebugLinkGetState200ResponseFromJSON)(jsonValue));
30195  }
30196  /**
30197   * On DEBUG_LINK firmware, dumps various internal sensitive paramters.
30198   * Dump sensitive device state
30199   */
30200  async debugLinkGetState(initOverrides) {
30201    const response = await this.debugLinkGetStateRaw(initOverrides);
30202    return await response.value();
30203  }
30204}
30205DebugApi$1.DebugApi = DebugApi;
30206var ETHApi$1 = {};
30207var __createBinding$7 = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m2, k2, k22) {
30208  if (k22 === void 0)
30209    k22 = k2;
30210  var desc = Object.getOwnPropertyDescriptor(m2, k2);
30211  if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
30212    desc = { enumerable: true, get: function() {
30213      return m2[k2];
30214    } };
30215  }
30216  Object.defineProperty(o, k22, desc);
30217} : function(o, m2, k2, k22) {
30218  if (k22 === void 0)
30219    k22 = k2;
30220  o[k22] = m2[k2];
30221});
30222var __setModuleDefault$7 = commonjsGlobal && commonjsGlobal.__setModuleDefault || (Object.create ? function(o, v2) {
30223  Object.defineProperty(o, "default", { enumerable: true, value: v2 });
30224} : function(o, v2) {
30225  o["default"] = v2;
30226});
30227var __importStar$7 = commonjsGlobal && commonjsGlobal.__importStar || function(mod) {
30228  if (mod && mod.__esModule)
30229    return mod;
30230  var result = {};
30231  if (mod != null) {
30232    for (var k2 in mod)
30233      if (k2 !== "default" && Object.prototype.hasOwnProperty.call(mod, k2))
30234        __createBinding$7(result, mod, k2);
30235  }
30236  __setModuleDefault$7(result, mod);
30237  return result;
30238};
30239Object.defineProperty(ETHApi$1, "__esModule", { value: true });
30240ETHApi$1.ETHApi = void 0;
30241const runtime$7 = __importStar$7(runtime$d);
30242const models_1$6 = models;
30243class ETHApi extends runtime$7.BaseAPI {
30244  /**
30245   * Sign an Etherum message
30246   */
30247  async ethSignRaw(requestParameters, initOverrides) {
30248    if (requestParameters.EthSignRequest === null || requestParameters.EthSignRequest === void 0) {
30249      throw new runtime$7.RequiredError("EthSignRequest", "Required parameter requestParameters.EthSignRequest was null or undefined when calling ethSign.");
30250    }
30251    const queryParameters = {};
30252    const headerParameters = {};
30253    headerParameters["Content-Type"] = "application/json";
30254    if (this.configuration && this.configuration.accessToken) {
30255      const token2 = this.configuration.accessToken;
30256      const tokenString = await token2("apiKey", []);
30257      if (tokenString) {
30258        headerParameters["Authorization"] = `Bearer ${tokenString}`;
30259      }
30260    }
30261    const response = await this.request({
30262      path: `/eth/sign`,
30263      method: "POST",
30264      headers: headerParameters,
30265      query: queryParameters,
30266      body: (0, models_1$6.EthSignRequestToJSON)(requestParameters.EthSignRequest)
30267    }, initOverrides);
30268    return new runtime$7.JSONApiResponse(response, (jsonValue) => (0, models_1$6.TypesEthSignatureFromJSON)(jsonValue));
30269  }
30270  /**
30271   * Sign an Etherum message
30272   */
30273  async ethSign(EthSignRequest2, initOverrides) {
30274    const response = await this.ethSignRaw({ EthSignRequest: EthSignRequest2 }, initOverrides);
30275    return await response.value();
30276  }
30277  /**
30278   * Sign an Ethereum transaction
30279   */
30280  async ethSignTransactionRaw(requestParameters, initOverrides) {
30281    if (requestParameters.EthSignTransactionRequest === null || requestParameters.EthSignTransactionRequest === void 0) {
30282      throw new runtime$7.RequiredError("EthSignTransactionRequest", "Required parameter requestParameters.EthSignTransactionRequest was null or undefined when calling ethSignTransaction.");
30283    }
30284    const queryParameters = {};
30285    const headerParameters = {};
30286    headerParameters["Content-Type"] = "application/json";
30287    if (this.configuration && this.configuration.accessToken) {
30288      const token2 = this.configuration.accessToken;
30289      const tokenString = await token2("apiKey", []);
30290      if (tokenString) {
30291        headerParameters["Authorization"] = `Bearer ${tokenString}`;
30292      }
30293    }
30294    const response = await this.request({
30295      path: `/eth/sign-transaction`,
30296      method: "POST",
30297      headers: headerParameters,
30298      query: queryParameters,
30299      body: (0, models_1$6.EthSignTransactionRequestToJSON)(requestParameters.EthSignTransactionRequest)
30300    }, initOverrides);
30301    return new runtime$7.JSONApiResponse(response, (jsonValue) => (0, models_1$6.EthSignTransaction200ResponseFromJSON)(jsonValue));
30302  }
30303  /**
30304   * Sign an Ethereum transaction
30305   */
30306  async ethSignTransaction(EthSignTransactionRequest2, initOverrides) {
30307    const response = await this.ethSignTransactionRaw({ EthSignTransactionRequest: EthSignTransactionRequest2 }, initOverrides);
30308    return await response.value();
30309  }
30310  /**
30311   * Sign EIP-712 typed data
30312   */
30313  async ethSignTypedDataRaw(requestParameters, initOverrides) {
30314    if (requestParameters.EthSignTypedDataRequest === null || requestParameters.EthSignTypedDataRequest === void 0) {
30315      throw new runtime$7.RequiredError("EthSignTypedDataRequest", "Required parameter requestParameters.EthSignTypedDataRequest was null or undefined when calling ethSignTypedData.");
30316    }
30317    const queryParameters = {};
30318    const headerParameters = {};
30319    headerParameters["Content-Type"] = "application/json";
30320    if (this.configuration && this.configuration.accessToken) {
30321      const token2 = this.configuration.accessToken;
30322      const tokenString = await token2("apiKey", []);
30323      if (tokenString) {
30324        headerParameters["Authorization"] = `Bearer ${tokenString}`;
30325      }
30326    }
30327    const response = await this.request({
30328      path: `/eth/sign-typed-data`,
30329      method: "POST",
30330      headers: headerParameters,
30331      query: queryParameters,
30332      body: (0, models_1$6.EthSignTypedDataRequestToJSON)(requestParameters.EthSignTypedDataRequest)
30333    }, initOverrides);
30334    return new runtime$7.JSONApiResponse(response, (jsonValue) => (0, models_1$6.TypesEthSignatureFromJSON)(jsonValue));
30335  }
30336  /**
30337   * Sign EIP-712 typed data
30338   */
30339  async ethSignTypedData(EthSignTypedDataRequest2, initOverrides) {
30340    const response = await this.ethSignTypedDataRaw({ EthSignTypedDataRequest: EthSignTypedDataRequest2 }, initOverrides);
30341    return await response.value();
30342  }
30343  /**
30344   * Verify an Etherum message
30345   */
30346  async ethVerifyRaw(requestParameters, initOverrides) {
30347    if (requestParameters.EthVerifyRequest === null || requestParameters.EthVerifyRequest === void 0) {
30348      throw new runtime$7.RequiredError("EthVerifyRequest", "Required parameter requestParameters.EthVerifyRequest was null or undefined when calling ethVerify.");
30349    }
30350    const queryParameters = {};
30351    const headerParameters = {};
30352    headerParameters["Content-Type"] = "application/json";
30353    if (this.configuration && this.configuration.accessToken) {
30354      const token2 = this.configuration.accessToken;
30355      const tokenString = await token2("apiKey", []);
30356      if (tokenString) {
30357        headerParameters["Authorization"] = `Bearer ${tokenString}`;
30358      }
30359    }
30360    const response = await this.request({
30361      path: `/eth/verify`,
30362      method: "POST",
30363      headers: headerParameters,
30364      query: queryParameters,
30365      body: (0, models_1$6.EthVerifyRequestToJSON)(requestParameters.EthVerifyRequest)
30366    }, initOverrides);
30367    return new runtime$7.TextApiResponse(response);
30368  }
30369  /**
30370   * Verify an Etherum message
30371   */
30372  async ethVerify(EthVerifyRequest2, initOverrides) {
30373    const response = await this.ethVerifyRaw({ EthVerifyRequest: EthVerifyRequest2 }, initOverrides);
30374    return await response.value();
30375  }
30376}
30377ETHApi$1.ETHApi = ETHApi;
30378var InfoApi$1 = {};
30379var __createBinding$6 = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m2, k2, k22) {
30380  if (k22 === void 0)
30381    k22 = k2;
30382  var desc = Object.getOwnPropertyDescriptor(m2, k2);
30383  if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
30384    desc = { enumerable: true, get: function() {
30385      return m2[k2];
30386    } };
30387  }
30388  Object.defineProperty(o, k22, desc);
30389} : function(o, m2, k2, k22) {
30390  if (k22 === void 0)
30391    k22 = k2;
30392  o[k22] = m2[k2];
30393});
30394var __setModuleDefault$6 = commonjsGlobal && commonjsGlobal.__setModuleDefault || (Object.create ? function(o, v2) {
30395  Object.defineProperty(o, "default", { enumerable: true, value: v2 });
30396} : function(o, v2) {
30397  o["default"] = v2;
30398});
30399var __importStar$6 = commonjsGlobal && commonjsGlobal.__importStar || function(mod) {
30400  if (mod && mod.__esModule)
30401    return mod;
30402  var result = {};
30403  if (mod != null) {
30404    for (var k2 in mod)
30405      if (k2 !== "default" && Object.prototype.hasOwnProperty.call(mod, k2))
30406        __createBinding$6(result, mod, k2);
30407  }
30408  __setModuleDefault$6(result, mod);
30409  return result;
30410};
30411Object.defineProperty(InfoApi$1, "__esModule", { value: true });
30412InfoApi$1.InfoApi = void 0;
30413const runtime$6 = __importStar$6(runtime$d);
30414const models_1$5 = models;
30415class InfoApi extends runtime$6.BaseAPI {
30416  /**
30417   * Get entropy from the device\'s RNG.
30418   * Get entropy
30419   */
30420  async getEntropyRaw(requestParameters, initOverrides) {
30421    if (requestParameters.GetEntropyRequest === null || requestParameters.GetEntropyRequest === void 0) {
30422      throw new runtime$6.RequiredError("GetEntropyRequest", "Required parameter requestParameters.GetEntropyRequest was null or undefined when calling getEntropy.");
30423    }
30424    const queryParameters = {};
30425    const headerParameters = {};
30426    headerParameters["Content-Type"] = "application/json";
30427    if (this.configuration && this.configuration.accessToken) {
30428      const token2 = this.configuration.accessToken;
30429      const tokenString = await token2("apiKey", []);
30430      if (tokenString) {
30431        headerParameters["Authorization"] = `Bearer ${tokenString}`;
30432      }
30433    }
30434    const response = await this.request({
30435      path: `/system/info/get-entropy`,
30436      method: "POST",
30437      headers: headerParameters,
30438      query: queryParameters,
30439      body: (0, models_1$5.GetEntropyRequestToJSON)(requestParameters.GetEntropyRequest)
30440    }, initOverrides);
30441    return new runtime$6.BlobApiResponse(response);
30442  }
30443  /**
30444   * Get entropy from the device\'s RNG.
30445   * Get entropy
30446   */
30447  async getEntropy(GetEntropyRequest2, initOverrides) {
30448    const response = await this.getEntropyRaw({ GetEntropyRequest: GetEntropyRequest2 }, initOverrides);
30449    return await response.value();
30450  }
30451  /**
30452   * Get device features object
30453   * Get features
30454   */
30455  async getFeaturesRaw(initOverrides) {
30456    const queryParameters = {};
30457    const headerParameters = {};
30458    if (this.configuration && this.configuration.accessToken) {
30459      const token2 = this.configuration.accessToken;
30460      const tokenString = await token2("apiKey", []);
30461      if (tokenString) {
30462        headerParameters["Authorization"] = `Bearer ${tokenString}`;
30463      }
30464    }
30465    const response = await this.request({
30466      path: `/system/info/get-features`,
30467      method: "POST",
30468      headers: headerParameters,
30469      query: queryParameters
30470    }, initOverrides);
30471    return new runtime$6.JSONApiResponse(response, (jsonValue) => (0, models_1$5.TypesFeaturesFromJSON)(jsonValue));
30472  }
30473  /**
30474   * Get device features object
30475   * Get features
30476   */
30477  async getFeatures(initOverrides) {
30478    const response = await this.getFeaturesRaw(initOverrides);
30479    return await response.value();
30480  }
30481  /**
30482   * Get public key associated with a particular BIP-32 node.
30483   * Get public key
30484   */
30485  async getPublicKeyRaw(requestParameters, initOverrides) {
30486    if (requestParameters.GetPublicKeyRequest === null || requestParameters.GetPublicKeyRequest === void 0) {
30487      throw new runtime$6.RequiredError("GetPublicKeyRequest", "Required parameter requestParameters.GetPublicKeyRequest was null or undefined when calling getPublicKey.");
30488    }
30489    const queryParameters = {};
30490    const headerParameters = {};
30491    headerParameters["Content-Type"] = "application/json";
30492    if (this.configuration && this.configuration.accessToken) {
30493      const token2 = this.configuration.accessToken;
30494      const tokenString = await token2("apiKey", []);
30495      if (tokenString) {
30496        headerParameters["Authorization"] = `Bearer ${tokenString}`;
30497      }
30498    }
30499    const response = await this.request({
30500      path: `/system/info/get-public-key`,
30501      method: "POST",
30502      headers: headerParameters,
30503      query: queryParameters,
30504      body: (0, models_1$5.GetPublicKeyRequestToJSON)(requestParameters.GetPublicKeyRequest)
30505    }, initOverrides);
30506    return new runtime$6.JSONApiResponse(response, (jsonValue) => (0, models_1$5.GetPublicKey200ResponseFromJSON)(jsonValue));
30507  }
30508  /**
30509   * Get public key associated with a particular BIP-32 node.
30510   * Get public key
30511   */
30512  async getPublicKey(GetPublicKeyRequest2, initOverrides) {
30513    const response = await this.getPublicKeyRaw({ GetPublicKeyRequest: GetPublicKeyRequest2 }, initOverrides);
30514    return await response.value();
30515  }
30516  /**
30517   * Dump device coins table.
30518   * List coins
30519   */
30520  async listCoinsRaw(initOverrides) {
30521    const queryParameters = {};
30522    const headerParameters = {};
30523    if (this.configuration && this.configuration.accessToken) {
30524      const token2 = this.configuration.accessToken;
30525      const tokenString = await token2("apiKey", []);
30526      if (tokenString) {
30527        headerParameters["Authorization"] = `Bearer ${tokenString}`;
30528      }
30529    }
30530    const response = await this.request({
30531      path: `/system/info/list-coins`,
30532      method: "POST",
30533      headers: headerParameters,
30534      query: queryParameters
30535    }, initOverrides);
30536    return new runtime$6.JSONApiResponse(response, (jsonValue) => jsonValue.map(models_1$5.TypesCoinFromJSON));
30537  }
30538  /**
30539   * Dump device coins table.
30540   * List coins
30541   */
30542  async listCoins(initOverrides) {
30543    const response = await this.listCoinsRaw(initOverrides);
30544    return await response.value();
30545  }
30546  /**
30547   * Confirm device connectivity, optionally with on-device confirmation.
30548   * Ping
30549   */
30550  async pingRaw(requestParameters, initOverrides) {
30551    if (requestParameters.PingRequest === null || requestParameters.PingRequest === void 0) {
30552      throw new runtime$6.RequiredError("PingRequest", "Required parameter requestParameters.PingRequest was null or undefined when calling ping.");
30553    }
30554    const queryParameters = {};
30555    const headerParameters = {};
30556    headerParameters["Content-Type"] = "application/json";
30557    if (this.configuration && this.configuration.accessToken) {
30558      const token2 = this.configuration.accessToken;
30559      const tokenString = await token2("apiKey", []);
30560      if (tokenString) {
30561        headerParameters["Authorization"] = `Bearer ${tokenString}`;
30562      }
30563    }
30564    const response = await this.request({
30565      path: `/system/info/ping`,
30566      method: "POST",
30567      headers: headerParameters,
30568      query: queryParameters,
30569      body: (0, models_1$5.PingRequestToJSON)(requestParameters.PingRequest)
30570    }, initOverrides);
30571    return new runtime$6.JSONApiResponse(response, (jsonValue) => (0, models_1$5.Ping200ResponseFromJSON)(jsonValue));
30572  }
30573  /**
30574   * Confirm device connectivity, optionally with on-device confirmation.
30575   * Ping
30576   */
30577  async ping(PingRequest2, initOverrides) {
30578    const response = await this.pingRaw({ PingRequest: PingRequest2 }, initOverrides);
30579    return await response.value();
30580  }
30581}
30582InfoApi$1.InfoApi = InfoApi;
30583var InitializeApi$1 = {};
30584var __createBinding$5 = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m2, k2, k22) {
30585  if (k22 === void 0)
30586    k22 = k2;
30587  var desc = Object.getOwnPropertyDescriptor(m2, k2);
30588  if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
30589    desc = { enumerable: true, get: function() {
30590      return m2[k2];
30591    } };
30592  }
30593  Object.defineProperty(o, k22, desc);
30594} : function(o, m2, k2, k22) {
30595  if (k22 === void 0)
30596    k22 = k2;
30597  o[k22] = m2[k2];
30598});
30599var __setModuleDefault$5 = commonjsGlobal && commonjsGlobal.__setModuleDefault || (Object.create ? function(o, v2) {
30600  Object.defineProperty(o, "default", { enumerable: true, value: v2 });
30601} : function(o, v2) {
30602  o["default"] = v2;
30603});
30604var __importStar$5 = commonjsGlobal && commonjsGlobal.__importStar || function(mod) {
30605  if (mod && mod.__esModule)
30606    return mod;
30607  var result = {};
30608  if (mod != null) {
30609    for (var k2 in mod)
30610      if (k2 !== "default" && Object.prototype.hasOwnProperty.call(mod, k2))
30611        __createBinding$5(result, mod, k2);
30612  }
30613  __setModuleDefault$5(result, mod);
30614  return result;
30615};
30616Object.defineProperty(InitializeApi$1, "__esModule", { value: true });
30617InitializeApi$1.InitializeApi = void 0;
30618const runtime$5 = __importStar$5(runtime$d);
30619const models_1$4 = models;
30620class InitializeApi extends runtime$5.BaseAPI {
30621  /**
30622   * Load a device with externally-derived key material. (Not recommended.)
30623   * Load device
30624   */
30625  async loadDeviceRaw(requestParameters, initOverrides) {
30626    if (requestParameters.LoadDeviceRequest === null || requestParameters.LoadDeviceRequest === void 0) {
30627      throw new runtime$5.RequiredError("LoadDeviceRequest", "Required parameter requestParameters.LoadDeviceRequest was null or undefined when calling loadDevice.");
30628    }
30629    const queryParameters = {};
30630    const headerParameters = {};
30631    headerParameters["Content-Type"] = "application/json";
30632    if (this.configuration && this.configuration.accessToken) {
30633      const token2 = this.configuration.accessToken;
30634      const tokenString = await token2("apiKey", []);
30635      if (tokenString) {
30636        headerParameters["Authorization"] = `Bearer ${tokenString}`;
30637      }
30638    }
30639    const response = await this.request({
30640      path: `/system/initialize/load-device`,
30641      method: "POST",
30642      headers: headerParameters,
30643      query: queryParameters,
30644      body: (0, models_1$4.LoadDeviceRequestToJSON)(requestParameters.LoadDeviceRequest)
30645    }, initOverrides);
30646    return new runtime$5.VoidApiResponse(response);
30647  }
30648  /**
30649   * Load a device with externally-derived key material. (Not recommended.)
30650   * Load device
30651   */
30652  async loadDevice(LoadDeviceRequest2, initOverrides) {
30653    await this.loadDeviceRaw({ LoadDeviceRequest: LoadDeviceRequest2 }, initOverrides);
30654  }
30655  /**
30656   * Start safe recovery workflow to restore from a recovery sentence.
30657   * Recover device
30658   */
30659  async recoverDeviceRaw(requestParameters, initOverrides) {
30660    if (requestParameters.RecoverDeviceRequest === null || requestParameters.RecoverDeviceRequest === void 0) {
30661      throw new runtime$5.RequiredError("RecoverDeviceRequest", "Required parameter requestParameters.RecoverDeviceRequest was null or undefined when calling recoverDevice.");
30662    }
30663    const queryParameters = {};
30664    const headerParameters = {};
30665    headerParameters["Content-Type"] = "application/json";
30666    if (this.configuration && this.configuration.accessToken) {
30667      const token2 = this.configuration.accessToken;
30668      const tokenString = await token2("apiKey", []);
30669      if (tokenString) {
30670        headerParameters["Authorization"] = `Bearer ${tokenString}`;
30671      }
30672    }
30673    const response = await this.request({
30674      path: `/system/initialize/recover-device`,
30675      method: "POST",
30676      headers: headerParameters,
30677      query: queryParameters,
30678      body: (0, models_1$4.RecoverDeviceRequestToJSON)(requestParameters.RecoverDeviceRequest)
30679    }, initOverrides);
30680    return new runtime$5.VoidApiResponse(response);
30681  }
30682  /**
30683   * Start safe recovery workflow to restore from a recovery sentence.
30684   * Recover device
30685   */
30686  async recoverDevice(RecoverDeviceRequest2, initOverrides) {
30687    await this.recoverDeviceRaw({ RecoverDeviceRequest: RecoverDeviceRequest2 }, initOverrides);
30688  }
30689  /**
30690   * Perform device setup and generate new seed.
30691   * Set up device
30692   */
30693  async resetDeviceRaw(requestParameters, initOverrides) {
30694    if (requestParameters.ResetDeviceRequest === null || requestParameters.ResetDeviceRequest === void 0) {
30695      throw new runtime$5.RequiredError("ResetDeviceRequest", "Required parameter requestParameters.ResetDeviceRequest was null or undefined when calling resetDevice.");
30696    }
30697    const queryParameters = {};
30698    const headerParameters = {};
30699    headerParameters["Content-Type"] = "application/json";
30700    if (this.configuration && this.configuration.accessToken) {
30701      const token2 = this.configuration.accessToken;
30702      const tokenString = await token2("apiKey", []);
30703      if (tokenString) {
30704        headerParameters["Authorization"] = `Bearer ${tokenString}`;
30705      }
30706    }
30707    const response = await this.request({
30708      path: `/system/initialize/reset-device`,
30709      method: "POST",
30710      headers: headerParameters,
30711      query: queryParameters,
30712      body: (0, models_1$4.ResetDeviceRequestToJSON)(requestParameters.ResetDeviceRequest)
30713    }, initOverrides);
30714    return new runtime$5.VoidApiResponse(response);
30715  }
30716  /**
30717   * Perform device setup and generate new seed.
30718   * Set up device
30719   */
30720  async resetDevice(ResetDeviceRequest2, initOverrides) {
30721    await this.resetDeviceRaw({ ResetDeviceRequest: ResetDeviceRequest2 }, initOverrides);
30722  }
30723}
30724InitializeApi$1.InitializeApi = InitializeApi;
30725var ManufacturingApi$1 = {};
30726var __createBinding$4 = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m2, k2, k22) {
30727  if (k22 === void 0)
30728    k22 = k2;
30729  var desc = Object.getOwnPropertyDescriptor(m2, k2);
30730  if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
30731    desc = { enumerable: true, get: function() {
30732      return m2[k2];
30733    } };
30734  }
30735  Object.defineProperty(o, k22, desc);
30736} : function(o, m2, k2, k22) {
30737  if (k22 === void 0)
30738    k22 = k2;
30739  o[k22] = m2[k2];
30740});
30741var __setModuleDefault$4 = commonjsGlobal && commonjsGlobal.__setModuleDefault || (Object.create ? function(o, v2) {
30742  Object.defineProperty(o, "default", { enumerable: true, value: v2 });
30743} : function(o, v2) {
30744  o["default"] = v2;
30745});
30746var __importStar$4 = commonjsGlobal && commonjsGlobal.__importStar || function(mod) {
30747  if (mod && mod.__esModule)
30748    return mod;
30749  var result = {};
30750  if (mod != null) {
30751    for (var k2 in mod)
30752      if (k2 !== "default" && Object.prototype.hasOwnProperty.call(mod, k2))
30753        __createBinding$4(result, mod, k2);
30754  }
30755  __setModuleDefault$4(result, mod);
30756  return result;
30757};
30758Object.defineProperty(ManufacturingApi$1, "__esModule", { value: true });
30759ManufacturingApi$1.ManufacturingApi = void 0;
30760const runtime$4 = __importStar$4(runtime$d);
30761const models_1$3 = models;
30762class ManufacturingApi extends runtime$4.BaseAPI {
30763  /**
30764   * On devices with manufacturing firmware, gets the Keccak-256 hash of a section of flash memory.
30765   * Hash flash memory
30766   */
30767  async flashHashRaw(requestParameters, initOverrides) {
30768    if (requestParameters.FlashHashRequest === null || requestParameters.FlashHashRequest === void 0) {
30769      throw new runtime$4.RequiredError("FlashHashRequest", "Required parameter requestParameters.FlashHashRequest was null or undefined when calling flashHash.");
30770    }
30771    const queryParameters = {};
30772    const headerParameters = {};
30773    headerParameters["Content-Type"] = "application/json";
30774    if (this.configuration && this.configuration.accessToken) {
30775      const token2 = this.configuration.accessToken;
30776      const tokenString = await token2("apiKey", []);
30777      if (tokenString) {
30778        headerParameters["Authorization"] = `Bearer ${tokenString}`;
30779      }
30780    }
30781    const response = await this.request({
30782      path: `/system/manufacturing/flash-hash`,
30783      method: "POST",
30784      headers: headerParameters,
30785      query: queryParameters,
30786      body: (0, models_1$3.FlashHashRequestToJSON)(requestParameters.FlashHashRequest)
30787    }, initOverrides);
30788    return new runtime$4.TextApiResponse(response);
30789  }
30790  /**
30791   * On devices with manufacturing firmware, gets the Keccak-256 hash of a section of flash memory.
30792   * Hash flash memory
30793   */
30794  async flashHash(FlashHashRequest2, initOverrides) {
30795    const response = await this.flashHashRaw({ FlashHashRequest: FlashHashRequest2 }, initOverrides);
30796    return await response.value();
30797  }
30798  /**
30799   * On devices with manufacturing firmware, writes a payload to flash memory and returns the resulting Keccak-256 hash.
30800   * Write flash memory
30801   */
30802  async flashWriteRaw(requestParameters, initOverrides) {
30803    if (requestParameters.FlashWriteRequest === null || requestParameters.FlashWriteRequest === void 0) {
30804      throw new runtime$4.RequiredError("FlashWriteRequest", "Required parameter requestParameters.FlashWriteRequest was null or undefined when calling flashWrite.");
30805    }
30806    const queryParameters = {};
30807    const headerParameters = {};
30808    headerParameters["Content-Type"] = "application/json";
30809    if (this.configuration && this.configuration.accessToken) {
30810      const token2 = this.configuration.accessToken;
30811      const tokenString = await token2("apiKey", []);
30812      if (tokenString) {
30813        headerParameters["Authorization"] = `Bearer ${tokenString}`;
30814      }
30815    }
30816    const response = await this.request({
30817      path: `/system/manufacturing/flash-write`,
30818      method: "POST",
30819      headers: headerParameters,
30820      query: queryParameters,
30821      body: (0, models_1$3.FlashWriteRequestToJSON)(requestParameters.FlashWriteRequest)
30822    }, initOverrides);
30823    return new runtime$4.TextApiResponse(response);
30824  }
30825  /**
30826   * On devices with manufacturing firmware, writes a payload to flash memory and returns the resulting Keccak-256 hash.
30827   * Write flash memory
30828   */
30829  async flashWrite(FlashWriteRequest2, initOverrides) {
30830    const response = await this.flashWriteRaw({ FlashWriteRequest: FlashWriteRequest2 }, initOverrides);
30831    return await response.value();
30832  }
30833  /**
30834   * On devices with manufacturing firmware, triggers a soft reset.
30835   * Soft reset
30836   */
30837  async softResetRaw(initOverrides) {
30838    const queryParameters = {};
30839    const headerParameters = {};
30840    if (this.configuration && this.configuration.accessToken) {
30841      const token2 = this.configuration.accessToken;
30842      const tokenString = await token2("apiKey", []);
30843      if (tokenString) {
30844        headerParameters["Authorization"] = `Bearer ${tokenString}`;
30845      }
30846    }
30847    const response = await this.request({
30848      path: `/system/manufacturing/soft-reset`,
30849      method: "POST",
30850      headers: headerParameters,
30851      query: queryParameters
30852    }, initOverrides);
30853    return new runtime$4.VoidApiResponse(response);
30854  }
30855  /**
30856   * On devices with manufacturing firmware, triggers a soft reset.
30857   * Soft reset
30858   */
30859  async softReset(initOverrides) {
30860    await this.softResetRaw(initOverrides);
30861  }
30862}
30863ManufacturingApi$1.ManufacturingApi = ManufacturingApi;
30864var RawApi$1 = {};
30865var __createBinding$3 = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m2, k2, k22) {
30866  if (k22 === void 0)
30867    k22 = k2;
30868  var desc = Object.getOwnPropertyDescriptor(m2, k2);
30869  if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
30870    desc = { enumerable: true, get: function() {
30871      return m2[k2];
30872    } };
30873  }
30874  Object.defineProperty(o, k22, desc);
30875} : function(o, m2, k2, k22) {
30876  if (k22 === void 0)
30877    k22 = k2;
30878  o[k22] = m2[k2];
30879});
30880var __setModuleDefault$3 = commonjsGlobal && commonjsGlobal.__setModuleDefault || (Object.create ? function(o, v2) {
30881  Object.defineProperty(o, "default", { enumerable: true, value: v2 });
30882} : function(o, v2) {
30883  o["default"] = v2;
30884});
30885var __importStar$3 = commonjsGlobal && commonjsGlobal.__importStar || function(mod) {
30886  if (mod && mod.__esModule)
30887    return mod;
30888  var result = {};
30889  if (mod != null) {
30890    for (var k2 in mod)
30891      if (k2 !== "default" && Object.prototype.hasOwnProperty.call(mod, k2))
30892        __createBinding$3(result, mod, k2);
30893  }
30894  __setModuleDefault$3(result, mod);
30895  return result;
30896};
30897Object.defineProperty(RawApi$1, "__esModule", { value: true });
30898RawApi$1.RawApi = void 0;
30899const runtime$3 = __importStar$3(runtime$d);
30900class RawApi extends runtime$3.BaseAPI {
30901  /**
30902   * Raw KeepKey Device I/0
30903   */
30904  async rawRaw(requestParameters, initOverrides) {
30905    if (requestParameters.body === null || requestParameters.body === void 0) {
30906      throw new runtime$3.RequiredError("body", "Required parameter requestParameters.body was null or undefined when calling raw.");
30907    }
30908    const queryParameters = {};
30909    const headerParameters = {};
30910    headerParameters["Content-Type"] = "application/octet-stream";
30911    if (this.configuration && this.configuration.accessToken) {
30912      const token2 = this.configuration.accessToken;
30913      const tokenString = await token2("apiKey", []);
30914      if (tokenString) {
30915        headerParameters["Authorization"] = `Bearer ${tokenString}`;
30916      }
30917    }
30918    const response = await this.request({
30919      path: `/raw`,
30920      method: "POST",
30921      headers: headerParameters,
30922      query: queryParameters,
30923      body: requestParameters.body
30924    }, initOverrides);
30925    return new runtime$3.BlobApiResponse(response);
30926  }
30927  /**
30928   * Raw KeepKey Device I/0
30929   */
30930  async raw(body, initOverrides) {
30931    const response = await this.rawRaw({ body }, initOverrides);
30932    return await response.value();
30933  }
30934}
30935RawApi$1.RawApi = RawApi;
30936var SystemApi$1 = {};
30937var __createBinding$2 = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m2, k2, k22) {
30938  if (k22 === void 0)
30939    k22 = k2;
30940  var desc = Object.getOwnPropertyDescriptor(m2, k2);
30941  if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
30942    desc = { enumerable: true, get: function() {
30943      return m2[k2];
30944    } };
30945  }
30946  Object.defineProperty(o, k22, desc);
30947} : function(o, m2, k2, k22) {
30948  if (k22 === void 0)
30949    k22 = k2;
30950  o[k22] = m2[k2];
30951});
30952var __setModuleDefault$2 = commonjsGlobal && commonjsGlobal.__setModuleDefault || (Object.create ? function(o, v2) {
30953  Object.defineProperty(o, "default", { enumerable: true, value: v2 });
30954} : function(o, v2) {
30955  o["default"] = v2;
30956});
30957var __importStar$2 = commonjsGlobal && commonjsGlobal.__importStar || function(mod) {
30958  if (mod && mod.__esModule)
30959    return mod;
30960  var result = {};
30961  if (mod != null) {
30962    for (var k2 in mod)
30963      if (k2 !== "default" && Object.prototype.hasOwnProperty.call(mod, k2))
30964        __createBinding$2(result, mod, k2);
30965  }
30966  __setModuleDefault$2(result, mod);
30967  return result;
30968};
30969Object.defineProperty(SystemApi$1, "__esModule", { value: true });
30970SystemApi$1.SystemApi = void 0;
30971const runtime$2 = __importStar$2(runtime$d);
30972const models_1$2 = models;
30973class SystemApi extends runtime$2.BaseAPI {
30974  /**
30975   * Enable or disable certain device configuration values
30976   * Apply policies
30977   */
30978  async applyPoliciesRaw(requestParameters, initOverrides) {
30979    if (requestParameters.TypesPolicy === null || requestParameters.TypesPolicy === void 0) {
30980      throw new runtime$2.RequiredError("TypesPolicy", "Required parameter requestParameters.TypesPolicy was null or undefined when calling applyPolicies.");
30981    }
30982    const queryParameters = {};
30983    const headerParameters = {};
30984    headerParameters["Content-Type"] = "application/json";
30985    if (this.configuration && this.configuration.accessToken) {
30986      const token2 = this.configuration.accessToken;
30987      const tokenString = await token2("apiKey", []);
30988      if (tokenString) {
30989        headerParameters["Authorization"] = `Bearer ${tokenString}`;
30990      }
30991    }
30992    const response = await this.request({
30993      path: `/system/apply-policies`,
30994      method: "POST",
30995      headers: headerParameters,
30996      query: queryParameters,
30997      body: requestParameters.TypesPolicy.map(models_1$2.TypesPolicyToJSON)
30998    }, initOverrides);
30999    return new runtime$2.VoidApiResponse(response);
31000  }
31001  /**
31002   * Enable or disable certain device configuration values
31003   * Apply policies
31004   */
31005  async applyPolicies(TypesPolicy2, initOverrides) {
31006    await this.applyPoliciesRaw({ TypesPolicy: TypesPolicy2 }, initOverrides);
31007  }
31008  /**
31009   * Change device configuration
31010   * Apply settings
31011   */
31012  async applySettingsRaw(requestParameters, initOverrides) {
31013    if (requestParameters.ApplySettingsRequest === null || requestParameters.ApplySettingsRequest === void 0) {
31014      throw new runtime$2.RequiredError("ApplySettingsRequest", "Required parameter requestParameters.ApplySettingsRequest was null or undefined when calling applySettings.");
31015    }
31016    const queryParameters = {};
31017    const headerParameters = {};
31018    headerParameters["Content-Type"] = "application/json";
31019    if (this.configuration && this.configuration.accessToken) {
31020      const token2 = this.configuration.accessToken;
31021      const tokenString = await token2("apiKey", []);
31022      if (tokenString) {
31023        headerParameters["Authorization"] = `Bearer ${tokenString}`;
31024      }
31025    }
31026    const response = await this.request({
31027      path: `/system/apply-settings`,
31028      method: "POST",
31029      headers: headerParameters,
31030      query: queryParameters,
31031      body: (0, models_1$2.ApplySettingsRequestToJSON)(requestParameters.ApplySettingsRequest)
31032    }, initOverrides);
31033    return new runtime$2.VoidApiResponse(response);
31034  }
31035  /**
31036   * Change device configuration
31037   * Apply settings
31038   */
31039  async applySettings(ApplySettingsRequest2, initOverrides) {
31040    await this.applySettingsRaw({ ApplySettingsRequest: ApplySettingsRequest2 }, initOverrides);
31041  }
31042  /**
31043   * Change or remove the device\'s PIN
31044   */
31045  async changePinRaw(requestParameters, initOverrides) {
31046    if (requestParameters.ChangePinRequest === null || requestParameters.ChangePinRequest === void 0) {
31047      throw new runtime$2.RequiredError("ChangePinRequest", "Required parameter requestParameters.ChangePinRequest was null or undefined when calling changePin.");
31048    }
31049    const queryParameters = {};
31050    const headerParameters = {};
31051    headerParameters["Content-Type"] = "application/json";
31052    if (this.configuration && this.configuration.accessToken) {
31053      const token2 = this.configuration.accessToken;
31054      const tokenString = await token2("apiKey", []);
31055      if (tokenString) {
31056        headerParameters["Authorization"] = `Bearer ${tokenString}`;
31057      }
31058    }
31059    const response = await this.request({
31060      path: `/system/change-pin`,
31061      method: "POST",
31062      headers: headerParameters,
31063      query: queryParameters,
31064      body: (0, models_1$2.ChangePinRequestToJSON)(requestParameters.ChangePinRequest)
31065    }, initOverrides);
31066    return new runtime$2.VoidApiResponse(response);
31067  }
31068  /**
31069   * Change or remove the device\'s PIN
31070   */
31071  async changePin(ChangePinRequest2, initOverrides) {
31072    await this.changePinRaw({ ChangePinRequest: ChangePinRequest2 }, initOverrides);
31073  }
31074  /**
31075   * Change or remove the device\'s wipe code
31076   */
31077  async changeWipeCodeRaw(requestParameters, initOverrides) {
31078    if (requestParameters.ChangePinRequest === null || requestParameters.ChangePinRequest === void 0) {
31079      throw new runtime$2.RequiredError("ChangePinRequest", "Required parameter requestParameters.ChangePinRequest was null or undefined when calling changeWipeCode.");
31080    }
31081    const queryParameters = {};
31082    const headerParameters = {};
31083    headerParameters["Content-Type"] = "application/json";
31084    if (this.configuration && this.configuration.accessToken) {
31085      const token2 = this.configuration.accessToken;
31086      const tokenString = await token2("apiKey", []);
31087      if (tokenString) {
31088        headerParameters["Authorization"] = `Bearer ${tokenString}`;
31089      }
31090    }
31091    const response = await this.request({
31092      path: `/system/change-wipe-code`,
31093      method: "POST",
31094      headers: headerParameters,
31095      query: queryParameters,
31096      body: (0, models_1$2.ChangePinRequestToJSON)(requestParameters.ChangePinRequest)
31097    }, initOverrides);
31098    return new runtime$2.VoidApiResponse(response);
31099  }
31100  /**
31101   * Change or remove the device\'s wipe code
31102   */
31103  async changeWipeCode(ChangePinRequest2, initOverrides) {
31104    await this.changeWipeCodeRaw({ ChangePinRequest: ChangePinRequest2 }, initOverrides);
31105  }
31106  /**
31107   * Encrypt or decrypt a key and associated block of data, possibly with an on-device verification step
31108   * Encrypt or decrypt a key/value pair
31109   */
31110  async cipherKeyValueRaw(requestParameters, initOverrides) {
31111    if (requestParameters.CipherKeyValueRequest === null || requestParameters.CipherKeyValueRequest === void 0) {
31112      throw new runtime$2.RequiredError("CipherKeyValueRequest", "Required parameter requestParameters.CipherKeyValueRequest was null or undefined when calling cipherKeyValue.");
31113    }
31114    const queryParameters = {};
31115    const headerParameters = {};
31116    headerParameters["Content-Type"] = "application/json";
31117    if (this.configuration && this.configuration.accessToken) {
31118      const token2 = this.configuration.accessToken;
31119      const tokenString = await token2("apiKey", []);
31120      if (tokenString) {
31121        headerParameters["Authorization"] = `Bearer ${tokenString}`;
31122      }
31123    }
31124    const response = await this.request({
31125      path: `/system/cipher-key-value`,
31126      method: "POST",
31127      headers: headerParameters,
31128      query: queryParameters,
31129      body: (0, models_1$2.CipherKeyValueRequestToJSON)(requestParameters.CipherKeyValueRequest)
31130    }, initOverrides);
31131    return new runtime$2.BlobApiResponse(response);
31132  }
31133  /**
31134   * Encrypt or decrypt a key and associated block of data, possibly with an on-device verification step
31135   * Encrypt or decrypt a key/value pair
31136   */
31137  async cipherKeyValue(CipherKeyValueRequest2, initOverrides) {
31138    const response = await this.cipherKeyValueRaw({ CipherKeyValueRequest: CipherKeyValueRequest2 }, initOverrides);
31139    return await response.value();
31140  }
31141  /**
31142   * Causes the device to forget any cached PIN or passphrase. (Does not end the API session.)
31143   * Lock the device
31144   */
31145  async clearSessionRaw(initOverrides) {
31146    const queryParameters = {};
31147    const headerParameters = {};
31148    if (this.configuration && this.configuration.accessToken) {
31149      const token2 = this.configuration.accessToken;
31150      const tokenString = await token2("apiKey", []);
31151      if (tokenString) {
31152        headerParameters["Authorization"] = `Bearer ${tokenString}`;
31153      }
31154    }
31155    const response = await this.request({
31156      path: `/system/clear-session`,
31157      method: "POST",
31158      headers: headerParameters,
31159      query: queryParameters
31160    }, initOverrides);
31161    return new runtime$2.VoidApiResponse(response);
31162  }
31163  /**
31164   * Causes the device to forget any cached PIN or passphrase. (Does not end the API session.)
31165   * Lock the device
31166   */
31167  async clearSession(initOverrides) {
31168    await this.clearSessionRaw(initOverrides);
31169  }
31170  /**
31171   * Updates the device\'s firmware
31172   * Firmware update
31173   */
31174  async firmwareUpdateRaw(requestParameters, initOverrides) {
31175    if (requestParameters.body === null || requestParameters.body === void 0) {
31176      throw new runtime$2.RequiredError("body", "Required parameter requestParameters.body was null or undefined when calling firmwareUpdate.");
31177    }
31178    const queryParameters = {};
31179    if (requestParameters.skipErase !== void 0) {
31180      queryParameters["skipErase"] = requestParameters.skipErase;
31181    }
31182    const headerParameters = {};
31183    headerParameters["Content-Type"] = "application/octet-stream";
31184    if (this.configuration && this.configuration.accessToken) {
31185      const token2 = this.configuration.accessToken;
31186      const tokenString = await token2("apiKey", []);
31187      if (tokenString) {
31188        headerParameters["Authorization"] = `Bearer ${tokenString}`;
31189      }
31190    }
31191    const response = await this.request({
31192      path: `/system/firmware-update`,
31193      method: "POST",
31194      headers: headerParameters,
31195      query: queryParameters,
31196      body: requestParameters.body
31197    }, initOverrides);
31198    return new runtime$2.VoidApiResponse(response);
31199  }
31200  /**
31201   * Updates the device\'s firmware
31202   * Firmware update
31203   */
31204  async firmwareUpdate(body, skipErase, initOverrides) {
31205    await this.firmwareUpdateRaw({ body, skipErase }, initOverrides);
31206  }
31207  /**
31208   * Sign an identity challenge
31209   */
31210  async signIdentityRaw(requestParameters, initOverrides) {
31211    if (requestParameters.SignIdentityRequest === null || requestParameters.SignIdentityRequest === void 0) {
31212      throw new runtime$2.RequiredError("SignIdentityRequest", "Required parameter requestParameters.SignIdentityRequest was null or undefined when calling signIdentity.");
31213    }
31214    const queryParameters = {};
31215    const headerParameters = {};
31216    headerParameters["Content-Type"] = "application/json";
31217    if (this.configuration && this.configuration.accessToken) {
31218      const token2 = this.configuration.accessToken;
31219      const tokenString = await token2("apiKey", []);
31220      if (tokenString) {
31221        headerParameters["Authorization"] = `Bearer ${tokenString}`;
31222      }
31223    }
31224    const response = await this.request({
31225      path: `/system/sign-identity`,
31226      method: "POST",
31227      headers: headerParameters,
31228      query: queryParameters,
31229      body: (0, models_1$2.SignIdentityRequestToJSON)(requestParameters.SignIdentityRequest)
31230    }, initOverrides);
31231    return new runtime$2.VoidApiResponse(response);
31232  }
31233  /**
31234   * Sign an identity challenge
31235   */
31236  async signIdentity(SignIdentityRequest2, initOverrides) {
31237    await this.signIdentityRaw({ SignIdentityRequest: SignIdentityRequest2 }, initOverrides);
31238  }
31239  /**
31240   * Wipe keys and reset device
31241   */
31242  async wipeDeviceRaw(initOverrides) {
31243    const queryParameters = {};
31244    const headerParameters = {};
31245    if (this.configuration && this.configuration.accessToken) {
31246      const token2 = this.configuration.accessToken;
31247      const tokenString = await token2("apiKey", []);
31248      if (tokenString) {
31249        headerParameters["Authorization"] = `Bearer ${tokenString}`;
31250      }
31251    }
31252    const response = await this.request({
31253      path: `/system/wipe-device`,
31254      method: "POST",
31255      headers: headerParameters,
31256      query: queryParameters
31257    }, initOverrides);
31258    return new runtime$2.VoidApiResponse(response);
31259  }
31260  /**
31261   * Wipe keys and reset device
31262   */
31263  async wipeDevice(initOverrides) {
31264    await this.wipeDeviceRaw(initOverrides);
31265  }
31266}
31267SystemApi$1.SystemApi = SystemApi;
31268var UTXOApi$1 = {};
31269var __createBinding$1 = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m2, k2, k22) {
31270  if (k22 === void 0)
31271    k22 = k2;
31272  var desc = Object.getOwnPropertyDescriptor(m2, k2);
31273  if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
31274    desc = { enumerable: true, get: function() {
31275      return m2[k2];
31276    } };
31277  }
31278  Object.defineProperty(o, k22, desc);
31279} : function(o, m2, k2, k22) {
31280  if (k22 === void 0)
31281    k22 = k2;
31282  o[k22] = m2[k2];
31283});
31284var __setModuleDefault$1 = commonjsGlobal && commonjsGlobal.__setModuleDefault || (Object.create ? function(o, v2) {
31285  Object.defineProperty(o, "default", { enumerable: true, value: v2 });
31286} : function(o, v2) {
31287  o["default"] = v2;
31288});
31289var __importStar$1 = commonjsGlobal && commonjsGlobal.__importStar || function(mod) {
31290  if (mod && mod.__esModule)
31291    return mod;
31292  var result = {};
31293  if (mod != null) {
31294    for (var k2 in mod)
31295      if (k2 !== "default" && Object.prototype.hasOwnProperty.call(mod, k2))
31296        __createBinding$1(result, mod, k2);
31297  }
31298  __setModuleDefault$1(result, mod);
31299  return result;
31300};
31301Object.defineProperty(UTXOApi$1, "__esModule", { value: true });
31302UTXOApi$1.UTXOApi = void 0;
31303const runtime$1 = __importStar$1(runtime$d);
31304const models_1$1 = models;
31305class UTXOApi extends runtime$1.BaseAPI {
31306  /**
31307   * Sign a UTXO transaction
31308   */
31309  async utxoSignTransactionRaw(requestParameters, initOverrides) {
31310    if (requestParameters.UtxoSignTransactionRequest === null || requestParameters.UtxoSignTransactionRequest === void 0) {
31311      throw new runtime$1.RequiredError("UtxoSignTransactionRequest", "Required parameter requestParameters.UtxoSignTransactionRequest was null or undefined when calling utxoSignTransaction.");
31312    }
31313    const queryParameters = {};
31314    const headerParameters = {};
31315    headerParameters["Content-Type"] = "application/json";
31316    if (this.configuration && this.configuration.accessToken) {
31317      const token2 = this.configuration.accessToken;
31318      const tokenString = await token2("apiKey", []);
31319      if (tokenString) {
31320        headerParameters["Authorization"] = `Bearer ${tokenString}`;
31321      }
31322    }
31323    const response = await this.request({
31324      path: `/utxo/sign-transaction`,
31325      method: "POST",
31326      headers: headerParameters,
31327      query: queryParameters,
31328      body: (0, models_1$1.UtxoSignTransactionRequestToJSON)(requestParameters.UtxoSignTransactionRequest)
31329    }, initOverrides);
31330    return new runtime$1.JSONApiResponse(response, (jsonValue) => (0, models_1$1.UtxoSignTransaction200ResponseFromJSON)(jsonValue));
31331  }
31332  /**
31333   * Sign a UTXO transaction
31334   */
31335  async utxoSignTransaction(UtxoSignTransactionRequest2, initOverrides) {
31336    const response = await this.utxoSignTransactionRaw({ UtxoSignTransactionRequest: UtxoSignTransactionRequest2 }, initOverrides);
31337    return await response.value();
31338  }
31339}
31340UTXOApi$1.UTXOApi = UTXOApi;
31341var XRPApi$1 = {};
31342var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m2, k2, k22) {
31343  if (k22 === void 0)
31344    k22 = k2;
31345  var desc = Object.getOwnPropertyDescriptor(m2, k2);
31346  if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
31347    desc = { enumerable: true, get: function() {
31348      return m2[k2];
31349    } };
31350  }
31351  Object.defineProperty(o, k22, desc);
31352} : function(o, m2, k2, k22) {
31353  if (k22 === void 0)
31354    k22 = k2;
31355  o[k22] = m2[k2];
31356});
31357var __setModuleDefault = commonjsGlobal && commonjsGlobal.__setModuleDefault || (Object.create ? function(o, v2) {
31358  Object.defineProperty(o, "default", { enumerable: true, value: v2 });
31359} : function(o, v2) {
31360  o["default"] = v2;
31361});
31362var __importStar = commonjsGlobal && commonjsGlobal.__importStar || function(mod) {
31363  if (mod && mod.__esModule)
31364    return mod;
31365  var result = {};
31366  if (mod != null) {
31367    for (var k2 in mod)
31368      if (k2 !== "default" && Object.prototype.hasOwnProperty.call(mod, k2))
31369        __createBinding(result, mod, k2);
31370  }
31371  __setModuleDefault(result, mod);
31372  return result;
31373};
31374Object.defineProperty(XRPApi$1, "__esModule", { value: true });
31375XRPApi$1.XRPApi = void 0;
31376const runtime = __importStar(runtime$d);
31377const models_1 = models;
31378class XRPApi extends runtime.BaseAPI {
31379  /**
31380   * Sign an XRP transaction
31381   */
31382  async xrpSignTransactionRaw(requestParameters, initOverrides) {
31383    if (requestParameters.XrpSignTransactionRequest === null || requestParameters.XrpSignTransactionRequest === void 0) {
31384      throw new runtime.RequiredError("XrpSignTransactionRequest", "Required parameter requestParameters.XrpSignTransactionRequest was null or undefined when calling xrpSignTransaction.");
31385    }
31386    const queryParameters = {};
31387    const headerParameters = {};
31388    headerParameters["Content-Type"] = "application/json";
31389    if (this.configuration && this.configuration.accessToken) {
31390      const token2 = this.configuration.accessToken;
31391      const tokenString = await token2("apiKey", []);
31392      if (tokenString) {
31393        headerParameters["Authorization"] = `Bearer ${tokenString}`;
31394      }
31395    }
31396    const response = await this.request({
31397      path: `/xrp/sign-transaction`,
31398      method: "POST",
31399      headers: headerParameters,
31400      query: queryParameters,
31401      body: (0, models_1.XrpSignTransactionRequestToJSON)(requestParameters.XrpSignTransactionRequest)
31402    }, initOverrides);
31403    return new runtime.TextApiResponse(response);
31404  }
31405  /**
31406   * Sign an XRP transaction
31407   */
31408  async xrpSignTransaction(XrpSignTransactionRequest2, initOverrides) {
31409    const response = await this.xrpSignTransactionRaw({ XrpSignTransactionRequest: XrpSignTransactionRequest2 }, initOverrides);
31410    return await response.value();
31411  }
31412}
31413XRPApi$1.XRPApi = XRPApi;
31414(function(exports) {
31415  var __createBinding2 = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m2, k2, k22) {
31416    if (k22 === void 0)
31417      k22 = k2;
31418    var desc = Object.getOwnPropertyDescriptor(m2, k2);
31419    if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
31420      desc = { enumerable: true, get: function() {
31421        return m2[k2];
31422      } };
31423    }
31424    Object.defineProperty(o, k22, desc);
31425  } : function(o, m2, k2, k22) {
31426    if (k22 === void 0)
31427      k22 = k2;
31428    o[k22] = m2[k2];
31429  });
31430  var __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function(m2, exports2) {
31431    for (var p2 in m2)
31432      if (p2 !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p2))
31433        __createBinding2(exports2, m2, p2);
31434  };
31435  Object.defineProperty(exports, "__esModule", { value: true });
31436  __exportStar(AddressApi$1, exports);
31437  __exportStar(AuthApi$1, exports);
31438  __exportStar(BNBApi$1, exports);
31439  __exportStar(CosmosApi$1, exports);
31440  __exportStar(DebugApi$1, exports);
31441  __exportStar(ETHApi$1, exports);
31442  __exportStar(InfoApi$1, exports);
31443  __exportStar(InitializeApi$1, exports);
31444  __exportStar(ManufacturingApi$1, exports);
31445  __exportStar(RawApi$1, exports);
31446  __exportStar(SystemApi$1, exports);
31447  __exportStar(UTXOApi$1, exports);
31448  __exportStar(XRPApi$1, exports);
31449})(apis);
31450(function(exports) {
31451  var __createBinding2 = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m2, k2, k22) {
31452    if (k22 === void 0)
31453      k22 = k2;
31454    var desc = Object.getOwnPropertyDescriptor(m2, k2);
31455    if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
31456      desc = { enumerable: true, get: function() {
31457        return m2[k2];
31458      } };
31459    }
31460    Object.defineProperty(o, k22, desc);
31461  } : function(o, m2, k2, k22) {
31462    if (k22 === void 0)
31463      k22 = k2;
31464    o[k22] = m2[k2];
31465  });
31466  var __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function(m2, exports2) {
31467    for (var p2 in m2)
31468      if (p2 !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p2))
31469        __createBinding2(exports2, m2, p2);
31470  };
31471  Object.defineProperty(exports, "__esModule", { value: true });
31472  __exportStar(runtime$d, exports);
31473  __exportStar(apis, exports);
31474  __exportStar(models, exports);
31475})(generated);
31476(function(exports) {
31477  var __createBinding2 = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m2, k2, k22) {
31478    if (k22 === void 0)
31479      k22 = k2;
31480    var desc = Object.getOwnPropertyDescriptor(m2, k2);
31481    if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
31482      desc = { enumerable: true, get: function() {
31483        return m2[k2];
31484      } };
31485    }
31486    Object.defineProperty(o, k22, desc);
31487  } : function(o, m2, k2, k22) {
31488    if (k22 === void 0)
31489      k22 = k2;
31490    o[k22] = m2[k2];
31491  });
31492  var __setModuleDefault2 = commonjsGlobal && commonjsGlobal.__setModuleDefault || (Object.create ? function(o, v2) {
31493    Object.defineProperty(o, "default", { enumerable: true, value: v2 });
31494  } : function(o, v2) {
31495    o["default"] = v2;
31496  });
31497  var __importStar2 = commonjsGlobal && commonjsGlobal.__importStar || function(mod) {
31498    if (mod && mod.__esModule)
31499      return mod;
31500    var result = {};
31501    if (mod != null) {
31502      for (var k2 in mod)
31503        if (k2 !== "default" && Object.prototype.hasOwnProperty.call(mod, k2))
31504          __createBinding2(result, mod, k2);
31505    }
31506    __setModuleDefault2(result, mod);
31507    return result;
31508  };
31509  var __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function(m2, exports2) {
31510    for (var p2 in m2)
31511      if (p2 !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p2))
31512        __createBinding2(exports2, m2, p2);
31513  };
31514  Object.defineProperty(exports, "__esModule", { value: true });
31515  exports.KeepKeySdk = void 0;
31516  const generated_1 = generated;
31517  const apis$1 = __importStar2(apis);
31518  __exportStar(generated, exports);
31519  class KeepKeySdk {
31520    constructor(configuration) {
31521      this.address = new apis$1.AddressApi(configuration);
31522      this.auth = new apis$1.AuthApi(configuration);
31523      this.utxo = new apis$1.UTXOApi(configuration);
31524      this.bnb = new apis$1.BNBApi(configuration);
31525      this.cosmos = new apis$1.CosmosApi(configuration);
31526      this.eth = new apis$1.ETHApi(configuration);
31527      this.raw = new apis$1.RawApi(configuration);
31528      this.system = Object.freeze(Object.assign(Object.create(new apis$1.SystemApi(configuration), {}), {
31529        debug: new apis$1.DebugApi(configuration),
31530        info: new apis$1.InfoApi(configuration),
31531        initialize: new apis$1.InitializeApi(configuration),
31532        manufacturing: new apis$1.ManufacturingApi(configuration)
31533      }));
31534      this.xrp = new apis$1.XRPApi(configuration);
31535    }
31536    static async create(config2) {
31537      const middleware2 = [
31538        {
31539          async post(context) {
31540            if (context.response.status === 500) {
31541              throw await context.response.json();
31542            }
31543          }
31544        }
31545      ];
31546      const existingKey = config2.apiKey;
31547      const sdkWithExistingKey = new KeepKeySdk(new generated_1.Configuration({
31548        basePath: config2 == null ? void 0 : config2.basePath,
31549        middleware: middleware2,
31550        accessToken: existingKey
31551      }));
31552      const keyOk = await sdkWithExistingKey.auth.verify().then((x2) => {
31553        console.log("verified", x2);
31554        return true;
31555      }, (e2) => {
31556        if (typeof window !== "undefined" && e2.message === "The request failed and the interceptors did not return an alternative response") {
31557          window.location.assign("keepkey://launch");
31558        }
31559        console.warn("verify failed", e2);
31560        return false;
31561      });
31562      if (keyOk)
31563        return sdkWithExistingKey;
31564      if (!config2.pairingInfo) {
31565        throw new Error("bad API key, and no pairingInfo provided");
31566      }
31567      const { apiKey: newKey } = await sdkWithExistingKey.auth.pair(config2.pairingInfo);
31568      config2.apiKey = newKey;
31569      return new KeepKeySdk(new generated_1.Configuration({
31570        basePath: config2 == null ? void 0 : config2.basePath,
31571        middleware: middleware2,
31572        accessToken: newKey
31573      }));
31574    }
31575  }
31576  exports.KeepKeySdk = KeepKeySdk;
31577})(dist);
31578var DefaultContext = {
31579  color: void 0,
31580  size: void 0,
31581  className: void 0,
31582  style: void 0,
31583  attr: void 0
31584};
31585var IconContext = React$1.createContext && React$1.createContext(DefaultContext);
31586var __assign = globalThis && globalThis.__assign || function() {
31587  __assign = Object.assign || function(t2) {
31588    for (var s, i = 1, n2 = arguments.length; i < n2; i++) {
31589      s = arguments[i];
31590      for (var p2 in s)
31591        if (Object.prototype.hasOwnProperty.call(s, p2))
31592          t2[p2] = s[p2];
31593    }
31594    return t2;
31595  };
31596  return __assign.apply(this, arguments);
31597};
31598var __rest = globalThis && globalThis.__rest || function(s, e2) {
31599  var t2 = {};
31600  for (var p2 in s)
31601    if (Object.prototype.hasOwnProperty.call(s, p2) && e2.indexOf(p2) < 0)
31602      t2[p2] = s[p2];
31603  if (s != null && typeof Object.getOwnPropertySymbols === "function")
31604    for (var i = 0, p2 = Object.getOwnPropertySymbols(s); i < p2.length; i++) {
31605      if (e2.indexOf(p2[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p2[i]))
31606        t2[p2[i]] = s[p2[i]];
31607    }
31608  return t2;
31609};
31610function Tree2Element(tree) {
31611  return tree && tree.map(function(node2, i) {
31612    return React$1.createElement(node2.tag, __assign({
31613      key: i
31614    }, node2.attr), Tree2Element(node2.child));
31615  });
31616}
31617function GenIcon(data) {
31618  return function(props) {
31619    return React$1.createElement(IconBase, __assign({
31620      attr: __assign({}, data.attr)
31621    }, props), Tree2Element(data.child));
31622  };
31623}
31624function IconBase(props) {
31625  var elem = function(conf) {
31626    var attr = props.attr, size2 = props.size, title = props.title, svgProps = __rest(props, ["attr", "size", "title"]);
31627    var computedSize = size2 || conf.size || "1em";
31628    var className;
31629    if (conf.className)
31630      className = conf.className;
31631    if (props.className)
31632      className = (className ? className + " " : "") + props.className;
31633    return React$1.createElement("svg", __assign({
31634      stroke: "currentColor",
31635      fill: "currentColor",
31636      strokeWidth: "0"
31637    }, conf.attr, attr, svgProps, {
31638      className,
31639      style: __assign(__assign({
31640        color: props.color || conf.color
31641      }, conf.style), props.style),
31642      height: computedSize,
31643      width: computedSize,
31644      xmlns: "http://www.w3.org/2000/svg"
31645    }), title && React$1.createElement("title", null, title), props.children);
31646  };
31647  return IconContext !== void 0 ? React$1.createElement(IconContext.Consumer, null, function(conf) {
31648    return elem(conf);
31649  }) : elem(DefaultContext);
31650}
31651function RiMoonFill(props) {
31652  return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24" }, "child": [{ "tag": "g", "attr": {}, "child": [{ "tag": "path", "attr": { "fill": "none", "d": "M0 0h24v24H0z" } }, { "tag": "path", "attr": { "d": "M11.38 2.019a7.5 7.5 0 1 0 10.6 10.6C21.662 17.854 17.316 22 12.001 22 6.477 22 2 17.523 2 12c0-5.315 4.146-9.661 9.38-9.981z" } }] }] })(props);
31653}
31654function RiSunLine(props) {
31655  return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24" }, "child": [{ "tag": "g", "attr": {}, "child": [{ "tag": "path", "attr": { "fill": "none", "d": "M0 0h24v24H0z" } }, { "tag": "path", "attr": { "fillRule": "nonzero", "d": "M12 18a6 6 0 1 1 0-12 6 6 0 0 1 0 12zm0-2a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM11 1h2v3h-2V1zm0 19h2v3h-2v-3zM3.515 4.929l1.414-1.414L7.05 5.636 5.636 7.05 3.515 4.93zM16.95 18.364l1.414-1.414 2.121 2.121-1.414 1.414-2.121-2.121zm2.121-14.85l1.414 1.415-2.121 2.121-1.414-1.414 2.121-2.121zM5.636 16.95l1.414 1.414-2.121 2.121-1.414-1.414 2.121-2.121zM23 11v2h-3v-2h3zM4 11v2H1v-2h3z" } }] }] })(props);
31656}
31657const ThemeToggle = () => {
31658  const { colorMode, toggleColorMode } = useColorMode();
31659  return /* @__PURE__ */ jsx(
31660    IconButton,
31661    {
31662      "aria-label": "theme toggle",
31663      icon: colorMode === "light" ? /* @__PURE__ */ jsx(RiMoonFill, {}) : /* @__PURE__ */ jsx(RiSunLine, {}),
31664      onClick: toggleColorMode
31665    }
31666  );
31667};
31668const spec = "http://localhost:1646/spec/swagger.json";
31669const configKeepKey = {
31670  pairingInfo: {
31671    name: "KeepKey-Template",
31672    imageUrl: "https://assets.coincap.io/assets/icons/[email protected]",
31673    basePath: spec,
31674    url: "https://keepkey-template.vercel.app/"
31675  }
31676};
31677const Header = () => {
31678  const [keepkeyError, setKeepKeyError] = reactExports.useState(false);
31679  const onStart = async function() {
31680    try {
31681      const apiKey = localStorage.getItem("apiKey") || "1234";
31682      configKeepKey.apiKey = apiKey;
31683      const sdk = await dist.KeepKeySdk.create(configKeepKey);
31684      localStorage.setItem("apiKey", configKeepKey.apiKey);
31685      const featuresKK = await sdk.system.info.getFeatures();
31686      console.log("features: ", featuresKK);
31687    } catch (e2) {
31688      setKeepKeyError("Bridge is offline!");
31689    }
31690  };
31691  reactExports.useEffect(() => {
31692    onStart();
31693  }, []);
31694  return /* @__PURE__ */ jsx(
31695    Flex,
31696    {
31697      as: "header",
31698      width: "full",
31699      align: "center",
31700      alignSelf: "flex-start",
31701      justifyContent: "center",
31702      gridGap: 2,
31703      children: /* @__PURE__ */ jsxs(Box, { marginLeft: "auto", children: [
vendor: 26,054 bytes, lines 31704-32377
31704        /* @__PURE__ */ jsx("div", { children: keepkeyError && /* @__PURE__ */ jsxs("div", { children: [
31705          "error: ",
31706          keepkeyError
31707        ] }) }),
31708        /* @__PURE__ */ jsx(ThemeToggle, {})
31709      ] })
31710    }
31711  );
31712};
31713function _interopDefault(ex) {
31714  return ex && typeof ex === "object" && "default" in ex ? ex["default"] : ex;
31715}
31716var React = reactExports;
31717var React__default = _interopDefault(React);
31718function _defineProperty(obj, key, value) {
31719  if (key in obj) {
31720    Object.defineProperty(obj, key, {
31721      value,
31722      enumerable: true,
31723      configurable: true,
31724      writable: true
31725    });
31726  } else {
31727    obj[key] = value;
31728  }
31729  return obj;
31730}
31731function _inheritsLoose(subClass, superClass) {
31732  subClass.prototype = Object.create(superClass.prototype);
31733  subClass.prototype.constructor = subClass;
31734  subClass.__proto__ = superClass;
31735}
31736var canUseDOM = !!(typeof window !== "undefined" && window.document && window.document.createElement);
31737function withSideEffect(reducePropsToState3, handleStateChangeOnClient, mapStateOnServer3) {
31738  if (typeof reducePropsToState3 !== "function") {
31739    throw new Error("Expected reducePropsToState to be a function.");
31740  }
31741  if (typeof handleStateChangeOnClient !== "function") {
31742    throw new Error("Expected handleStateChangeOnClient to be a function.");
31743  }
31744  if (typeof mapStateOnServer3 !== "undefined" && typeof mapStateOnServer3 !== "function") {
31745    throw new Error("Expected mapStateOnServer to either be undefined or a function.");
31746  }
31747  function getDisplayName(WrappedComponent) {
31748    return WrappedComponent.displayName || WrappedComponent.name || "Component";
31749  }
31750  return function wrap2(WrappedComponent) {
31751    if (typeof WrappedComponent !== "function") {
31752      throw new Error("Expected WrappedComponent to be a React component.");
31753    }
31754    var mountedInstances = [];
31755    var state2;
31756    function emitChange() {
31757      state2 = reducePropsToState3(mountedInstances.map(function(instance) {
31758        return instance.props;
31759      }));
31760      if (SideEffect.canUseDOM) {
31761        handleStateChangeOnClient(state2);
31762      } else if (mapStateOnServer3) {
31763        state2 = mapStateOnServer3(state2);
31764      }
31765    }
31766    var SideEffect = /* @__PURE__ */ function(_PureComponent) {
31767      _inheritsLoose(SideEffect2, _PureComponent);
31768      function SideEffect2() {
31769        return _PureComponent.apply(this, arguments) || this;
31770      }
31771      SideEffect2.peek = function peek2() {
31772        return state2;
31773      };
31774      SideEffect2.rewind = function rewind() {
31775        if (SideEffect2.canUseDOM) {
31776          throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");
31777        }
31778        var recordedState = state2;
31779        state2 = void 0;
31780        mountedInstances = [];
31781        return recordedState;
31782      };
31783      var _proto = SideEffect2.prototype;
31784      _proto.UNSAFE_componentWillMount = function UNSAFE_componentWillMount() {
31785        mountedInstances.push(this);
31786        emitChange();
31787      };
31788      _proto.componentDidUpdate = function componentDidUpdate() {
31789        emitChange();
31790      };
31791      _proto.componentWillUnmount = function componentWillUnmount() {
31792        var index = mountedInstances.indexOf(this);
31793        mountedInstances.splice(index, 1);
31794        emitChange();
31795      };
31796      _proto.render = function render() {
31797        return /* @__PURE__ */ React__default.createElement(WrappedComponent, this.props);
31798      };
31799      return SideEffect2;
31800    }(React.PureComponent);
31801    _defineProperty(SideEffect, "displayName", "SideEffect(" + getDisplayName(WrappedComponent) + ")");
31802    _defineProperty(SideEffect, "canUseDOM", canUseDOM);
31803    return SideEffect;
31804  };
31805}
31806var lib = withSideEffect;
31807/*
31808object-assign
31809(c) Sindre Sorhus
31810@license MIT
31811*/
31812var getOwnPropertySymbols = Object.getOwnPropertySymbols;
31813var hasOwnProperty = Object.prototype.hasOwnProperty;
31814var propIsEnumerable = Object.prototype.propertyIsEnumerable;
31815function toObject(val) {
31816  if (val === null || val === void 0) {
31817    throw new TypeError("Object.assign cannot be called with null or undefined");
31818  }
31819  return Object(val);
31820}
31821function shouldUseNative() {
31822  try {
31823    if (!Object.assign) {
31824      return false;
31825    }
31826    var test1 = new String("abc");
31827    test1[5] = "de";
31828    if (Object.getOwnPropertyNames(test1)[0] === "5") {
31829      return false;
31830    }
31831    var test2 = {};
31832    for (var i = 0; i < 10; i++) {
31833      test2["_" + String.fromCharCode(i)] = i;
31834    }
31835    var order2 = Object.getOwnPropertyNames(test2).map(function(n2) {
31836      return test2[n2];
31837    });
31838    if (order2.join("") !== "0123456789") {
31839      return false;
31840    }
31841    var test3 = {};
31842    "abcdefghijklmnopqrst".split("").forEach(function(letter) {
31843      test3[letter] = letter;
31844    });
31845    if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") {
31846      return false;
31847    }
31848    return true;
31849  } catch (err) {
31850    return false;
31851  }
31852}
31853var objectAssign = shouldUseNative() ? Object.assign : function(target, source) {
31854  var from2;
31855  var to = toObject(target);
31856  var symbols;
31857  for (var s = 1; s < arguments.length; s++) {
31858    from2 = Object(arguments[s]);
31859    for (var key in from2) {
31860      if (hasOwnProperty.call(from2, key)) {
31861        to[key] = from2[key];
31862      }
31863    }
31864    if (getOwnPropertySymbols) {
31865      symbols = getOwnPropertySymbols(from2);
31866      for (var i = 0; i < symbols.length; i++) {
31867        if (propIsEnumerable.call(from2, symbols[i])) {
31868          to[symbols[i]] = from2[symbols[i]];
31869        }
31870      }
31871    }
31872  }
31873  return to;
31874};
31875var ATTRIBUTE_NAMES = {
31876  BODY: "bodyAttributes",
31877  HTML: "htmlAttributes",
31878  TITLE: "titleAttributes"
31879};
31880var TAG_NAMES = {
31881  BASE: "base",
31882  BODY: "body",
31883  HEAD: "head",
31884  HTML: "html",
31885  LINK: "link",
31886  META: "meta",
31887  NOSCRIPT: "noscript",
31888  SCRIPT: "script",
31889  STYLE: "style",
31890  TITLE: "title"
31891};
31892Object.keys(TAG_NAMES).map(function(name2) {
31893  return TAG_NAMES[name2];
31894});
31895var TAG_PROPERTIES = {
31896  CHARSET: "charset",
31897  CSS_TEXT: "cssText",
31898  HREF: "href",
31899  HTTPEQUIV: "http-equiv",
31900  INNER_HTML: "innerHTML",
31901  ITEM_PROP: "itemprop",
31902  NAME: "name",
31903  PROPERTY: "property",
31904  REL: "rel",
31905  SRC: "src",
31906  TARGET: "target"
31907};
31908var REACT_TAG_MAP = {
31909  accesskey: "accessKey",
31910  charset: "charSet",
31911  class: "className",
31912  contenteditable: "contentEditable",
31913  contextmenu: "contextMenu",
31914  "http-equiv": "httpEquiv",
31915  itemprop: "itemProp",
31916  tabindex: "tabIndex"
31917};
31918var HELMET_PROPS = {
31919  DEFAULT_TITLE: "defaultTitle",
31920  DEFER: "defer",
31921  ENCODE_SPECIAL_CHARACTERS: "encodeSpecialCharacters",
31922  ON_CHANGE_CLIENT_STATE: "onChangeClientState",
31923  TITLE_TEMPLATE: "titleTemplate"
31924};
31925var HTML_TAG_MAP = Object.keys(REACT_TAG_MAP).reduce(function(obj, key) {
31926  obj[REACT_TAG_MAP[key]] = key;
31927  return obj;
31928}, {});
31929var SELF_CLOSING_TAGS = [TAG_NAMES.NOSCRIPT, TAG_NAMES.SCRIPT, TAG_NAMES.STYLE];
31930var HELMET_ATTRIBUTE = "data-react-helmet";
31931var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function(obj) {
31932  return typeof obj;
31933} : function(obj) {
31934  return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
31935};
31936var classCallCheck = function(instance, Constructor) {
31937  if (!(instance instanceof Constructor)) {
31938    throw new TypeError("Cannot call a class as a function");
31939  }
31940};
31941var createClass = function() {
31942  function defineProperties(target, props) {
31943    for (var i = 0; i < props.length; i++) {
31944      var descriptor = props[i];
31945      descriptor.enumerable = descriptor.enumerable || false;
31946      descriptor.configurable = true;
31947      if ("value" in descriptor)
31948        descriptor.writable = true;
31949      Object.defineProperty(target, descriptor.key, descriptor);
31950    }
31951  }
31952  return function(Constructor, protoProps, staticProps) {
31953    if (protoProps)
31954      defineProperties(Constructor.prototype, protoProps);
31955    if (staticProps)
31956      defineProperties(Constructor, staticProps);
31957    return Constructor;
31958  };
31959}();
31960var _extends = Object.assign || function(target) {
31961  for (var i = 1; i < arguments.length; i++) {
31962    var source = arguments[i];
31963    for (var key in source) {
31964      if (Object.prototype.hasOwnProperty.call(source, key)) {
31965        target[key] = source[key];
31966      }
31967    }
31968  }
31969  return target;
31970};
31971var inherits = function(subClass, superClass) {
31972  if (typeof superClass !== "function" && superClass !== null) {
31973    throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
31974  }
31975  subClass.prototype = Object.create(superClass && superClass.prototype, {
31976    constructor: {
31977      value: subClass,
31978      enumerable: false,
31979      writable: true,
31980      configurable: true
31981    }
31982  });
31983  if (superClass)
31984    Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
31985};
31986var objectWithoutProperties = function(obj, keys2) {
31987  var target = {};
31988  for (var i in obj) {
31989    if (keys2.indexOf(i) >= 0)
31990      continue;
31991    if (!Object.prototype.hasOwnProperty.call(obj, i))
31992      continue;
31993    target[i] = obj[i];
31994  }
31995  return target;
31996};
31997var possibleConstructorReturn = function(self2, call) {
31998  if (!self2) {
31999    throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
32000  }
32001  return call && (typeof call === "object" || typeof call === "function") ? call : self2;
32002};
32003var encodeSpecialCharacters = function encodeSpecialCharacters2(str) {
32004  var encode = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
32005  if (encode === false) {
32006    return String(str);
32007  }
32008  return String(str).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#x27;");
32009};
32010var getTitleFromPropsList = function getTitleFromPropsList2(propsList) {
32011  var innermostTitle = getInnermostProperty(propsList, TAG_NAMES.TITLE);
32012  var innermostTemplate = getInnermostProperty(propsList, HELMET_PROPS.TITLE_TEMPLATE);
32013  if (innermostTemplate && innermostTitle) {
32014    return innermostTemplate.replace(/%s/g, function() {
32015      return Array.isArray(innermostTitle) ? innermostTitle.join("") : innermostTitle;
32016    });
32017  }
32018  var innermostDefaultTitle = getInnermostProperty(propsList, HELMET_PROPS.DEFAULT_TITLE);
32019  return innermostTitle || innermostDefaultTitle || void 0;
32020};
32021var getOnChangeClientState = function getOnChangeClientState2(propsList) {
32022  return getInnermostProperty(propsList, HELMET_PROPS.ON_CHANGE_CLIENT_STATE) || function() {
32023  };
32024};
32025var getAttributesFromPropsList = function getAttributesFromPropsList2(tagType, propsList) {
32026  return propsList.filter(function(props) {
32027    return typeof props[tagType] !== "undefined";
32028  }).map(function(props) {
32029    return props[tagType];
32030  }).reduce(function(tagAttrs, current) {
32031    return _extends({}, tagAttrs, current);
32032  }, {});
32033};
32034var getBaseTagFromPropsList = function getBaseTagFromPropsList2(primaryAttributes, propsList) {
32035  return propsList.filter(function(props) {
32036    return typeof props[TAG_NAMES.BASE] !== "undefined";
32037  }).map(function(props) {
32038    return props[TAG_NAMES.BASE];
32039  }).reverse().reduce(function(innermostBaseTag, tag) {
32040    if (!innermostBaseTag.length) {
32041      var keys2 = Object.keys(tag);
32042      for (var i = 0; i < keys2.length; i++) {
32043        var attributeKey = keys2[i];
32044        var lowerCaseAttributeKey = attributeKey.toLowerCase();
32045        if (primaryAttributes.indexOf(lowerCaseAttributeKey) !== -1 && tag[lowerCaseAttributeKey]) {
32046          return innermostBaseTag.concat(tag);
32047        }
32048      }
32049    }
32050    return innermostBaseTag;
32051  }, []);
32052};
32053var getTagsFromPropsList = function getTagsFromPropsList2(tagName, primaryAttributes, propsList) {
32054  var approvedSeenTags = {};
32055  return propsList.filter(function(props) {
32056    if (Array.isArray(props[tagName])) {
32057      return true;
32058    }
32059    if (typeof props[tagName] !== "undefined") {
32060      warn("Helmet: " + tagName + ' should be of type "Array". Instead found type "' + _typeof(props[tagName]) + '"');
32061    }
32062    return false;
32063  }).map(function(props) {
32064    return props[tagName];
32065  }).reverse().reduce(function(approvedTags, instanceTags) {
32066    var instanceSeenTags = {};
32067    instanceTags.filter(function(tag) {
32068      var primaryAttributeKey = void 0;
32069      var keys3 = Object.keys(tag);
32070      for (var i2 = 0; i2 < keys3.length; i2++) {
32071        var attributeKey2 = keys3[i2];
32072        var lowerCaseAttributeKey = attributeKey2.toLowerCase();
32073        if (primaryAttributes.indexOf(lowerCaseAttributeKey) !== -1 && !(primaryAttributeKey === TAG_PROPERTIES.REL && tag[primaryAttributeKey].toLowerCase() === "canonical") && !(lowerCaseAttributeKey === TAG_PROPERTIES.REL && tag[lowerCaseAttributeKey].toLowerCase() === "stylesheet")) {
32074          primaryAttributeKey = lowerCaseAttributeKey;
32075        }
32076        if (primaryAttributes.indexOf(attributeKey2) !== -1 && (attributeKey2 === TAG_PROPERTIES.INNER_HTML || attributeKey2 === TAG_PROPERTIES.CSS_TEXT || attributeKey2 === TAG_PROPERTIES.ITEM_PROP)) {
32077          primaryAttributeKey = attributeKey2;
32078        }
32079      }
32080      if (!primaryAttributeKey || !tag[primaryAttributeKey]) {
32081        return false;
32082      }
32083      var value = tag[primaryAttributeKey].toLowerCase();
32084      if (!approvedSeenTags[primaryAttributeKey]) {
32085        approvedSeenTags[primaryAttributeKey] = {};
32086      }
32087      if (!instanceSeenTags[primaryAttributeKey]) {
32088        instanceSeenTags[primaryAttributeKey] = {};
32089      }
32090      if (!approvedSeenTags[primaryAttributeKey][value]) {
32091        instanceSeenTags[primaryAttributeKey][value] = true;
32092        return true;
32093      }
32094      return false;
32095    }).reverse().forEach(function(tag) {
32096      return approvedTags.push(tag);
32097    });
32098    var keys2 = Object.keys(instanceSeenTags);
32099    for (var i = 0; i < keys2.length; i++) {
32100      var attributeKey = keys2[i];
32101      var tagUnion = objectAssign({}, approvedSeenTags[attributeKey], instanceSeenTags[attributeKey]);
32102      approvedSeenTags[attributeKey] = tagUnion;
32103    }
32104    return approvedTags;
32105  }, []).reverse();
32106};
32107var getInnermostProperty = function getInnermostProperty2(propsList, property) {
32108  for (var i = propsList.length - 1; i >= 0; i--) {
32109    var props = propsList[i];
32110    if (props.hasOwnProperty(property)) {
32111      return props[property];
32112    }
32113  }
32114  return null;
32115};
32116var reducePropsToState = function reducePropsToState2(propsList) {
32117  return {
32118    baseTag: getBaseTagFromPropsList([TAG_PROPERTIES.HREF, TAG_PROPERTIES.TARGET], propsList),
32119    bodyAttributes: getAttributesFromPropsList(ATTRIBUTE_NAMES.BODY, propsList),
32120    defer: getInnermostProperty(propsList, HELMET_PROPS.DEFER),
32121    encode: getInnermostProperty(propsList, HELMET_PROPS.ENCODE_SPECIAL_CHARACTERS),
32122    htmlAttributes: getAttributesFromPropsList(ATTRIBUTE_NAMES.HTML, propsList),
32123    linkTags: getTagsFromPropsList(TAG_NAMES.LINK, [TAG_PROPERTIES.REL, TAG_PROPERTIES.HREF], propsList),
32124    metaTags: getTagsFromPropsList(TAG_NAMES.META, [TAG_PROPERTIES.NAME, TAG_PROPERTIES.CHARSET, TAG_PROPERTIES.HTTPEQUIV, TAG_PROPERTIES.PROPERTY, TAG_PROPERTIES.ITEM_PROP], propsList),
32125    noscriptTags: getTagsFromPropsList(TAG_NAMES.NOSCRIPT, [TAG_PROPERTIES.INNER_HTML], propsList),
32126    onChangeClientState: getOnChangeClientState(propsList),
32127    scriptTags: getTagsFromPropsList(TAG_NAMES.SCRIPT, [TAG_PROPERTIES.SRC, TAG_PROPERTIES.INNER_HTML], propsList),
32128    styleTags: getTagsFromPropsList(TAG_NAMES.STYLE, [TAG_PROPERTIES.CSS_TEXT], propsList),
32129    title: getTitleFromPropsList(propsList),
32130    titleAttributes: getAttributesFromPropsList(ATTRIBUTE_NAMES.TITLE, propsList)
32131  };
32132};
32133var rafPolyfill = function() {
32134  var clock = Date.now();
32135  return function(callback) {
32136    var currentTime = Date.now();
32137    if (currentTime - clock > 16) {
32138      clock = currentTime;
32139      callback(currentTime);
32140    } else {
32141      setTimeout(function() {
32142        rafPolyfill(callback);
32143      }, 0);
32144    }
32145  };
32146}();
32147var cafPolyfill = function cafPolyfill2(id2) {
32148  return clearTimeout(id2);
32149};
32150var requestAnimationFrame$1 = typeof window !== "undefined" ? window.requestAnimationFrame && window.requestAnimationFrame.bind(window) || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || rafPolyfill : global$1.requestAnimationFrame || rafPolyfill;
32151var cancelAnimationFrame = typeof window !== "undefined" ? window.cancelAnimationFrame || window.webkitCancelAnimationFrame || window.mozCancelAnimationFrame || cafPolyfill : global$1.cancelAnimationFrame || cafPolyfill;
32152var warn = function warn2(msg) {
32153  return console && typeof console.warn === "function" && console.warn(msg);
32154};
32155var _helmetCallback = null;
32156var handleClientStateChange = function handleClientStateChange2(newState) {
32157  if (_helmetCallback) {
32158    cancelAnimationFrame(_helmetCallback);
32159  }
32160  if (newState.defer) {
32161    _helmetCallback = requestAnimationFrame$1(function() {
32162      commitTagChanges(newState, function() {
32163        _helmetCallback = null;
32164      });
32165    });
32166  } else {
32167    commitTagChanges(newState);
32168    _helmetCallback = null;
32169  }
32170};
32171var commitTagChanges = function commitTagChanges2(newState, cb2) {
32172  var baseTag = newState.baseTag, bodyAttributes = newState.bodyAttributes, htmlAttributes = newState.htmlAttributes, linkTags = newState.linkTags, metaTags = newState.metaTags, noscriptTags = newState.noscriptTags, onChangeClientState = newState.onChangeClientState, scriptTags = newState.scriptTags, styleTags = newState.styleTags, title = newState.title, titleAttributes = newState.titleAttributes;
32173  updateAttributes(TAG_NAMES.BODY, bodyAttributes);
32174  updateAttributes(TAG_NAMES.HTML, htmlAttributes);
32175  updateTitle(title, titleAttributes);
32176  var tagUpdates = {
32177    baseTag: updateTags(TAG_NAMES.BASE, baseTag),
32178    linkTags: updateTags(TAG_NAMES.LINK, linkTags),
32179    metaTags: updateTags(TAG_NAMES.META, metaTags),
32180    noscriptTags: updateTags(TAG_NAMES.NOSCRIPT, noscriptTags),
32181    scriptTags: updateTags(TAG_NAMES.SCRIPT, scriptTags),
32182    styleTags: updateTags(TAG_NAMES.STYLE, styleTags)
32183  };
32184  var addedTags = {};
32185  var removedTags = {};
32186  Object.keys(tagUpdates).forEach(function(tagType) {
32187    var _tagUpdates$tagType = tagUpdates[tagType], newTags = _tagUpdates$tagType.newTags, oldTags = _tagUpdates$tagType.oldTags;
32188    if (newTags.length) {
32189      addedTags[tagType] = newTags;
32190    }
32191    if (oldTags.length) {
32192      removedTags[tagType] = tagUpdates[tagType].oldTags;
32193    }
32194  });
32195  cb2 && cb2();
32196  onChangeClientState(newState, addedTags, removedTags);
32197};
32198var flattenArray = function flattenArray2(possibleArray) {
32199  return Array.isArray(possibleArray) ? possibleArray.join("") : possibleArray;
32200};
32201var updateTitle = function updateTitle2(title, attributes) {
32202  if (typeof title !== "undefined" && document.title !== title) {
32203    document.title = flattenArray(title);
32204  }
32205  updateAttributes(TAG_NAMES.TITLE, attributes);
32206};
32207var updateAttributes = function updateAttributes2(tagName, attributes) {
32208  var elementTag = document.getElementsByTagName(tagName)[0];
32209  if (!elementTag) {
32210    return;
32211  }
32212  var helmetAttributeString = elementTag.getAttribute(HELMET_ATTRIBUTE);
32213  var helmetAttributes = helmetAttributeString ? helmetAttributeString.split(",") : [];
32214  var attributesToRemove = [].concat(helmetAttributes);
32215  var attributeKeys = Object.keys(attributes);
32216  for (var i = 0; i < attributeKeys.length; i++) {
32217    var attribute = attributeKeys[i];
32218    var value = attributes[attribute] || "";
32219    if (elementTag.getAttribute(attribute) !== value) {
32220      elementTag.setAttribute(attribute, value);
32221    }
32222    if (helmetAttributes.indexOf(attribute) === -1) {
32223      helmetAttributes.push(attribute);
32224    }
32225    var indexToSave = attributesToRemove.indexOf(attribute);
32226    if (indexToSave !== -1) {
32227      attributesToRemove.splice(indexToSave, 1);
32228    }
32229  }
32230  for (var _i = attributesToRemove.length - 1; _i >= 0; _i--) {
32231    elementTag.removeAttribute(attributesToRemove[_i]);
32232  }
32233  if (helmetAttributes.length === attributesToRemove.length) {
32234    elementTag.removeAttribute(HELMET_ATTRIBUTE);
32235  } else if (elementTag.getAttribute(HELMET_ATTRIBUTE) !== attributeKeys.join(",")) {
32236    elementTag.setAttribute(HELMET_ATTRIBUTE, attributeKeys.join(","));
32237  }
32238};
32239var updateTags = function updateTags2(type, tags2) {
32240  var headElement = document.head || document.querySelector(TAG_NAMES.HEAD);
32241  var tagNodes = headElement.querySelectorAll(type + "[" + HELMET_ATTRIBUTE + "]");
32242  var oldTags = Array.prototype.slice.call(tagNodes);
32243  var newTags = [];
32244  var indexToDelete = void 0;
32245  if (tags2 && tags2.length) {
32246    tags2.forEach(function(tag) {
32247      var newElement = document.createElement(type);
32248      for (var attribute in tag) {
32249        if (tag.hasOwnProperty(attribute)) {
32250          if (attribute === TAG_PROPERTIES.INNER_HTML) {
32251            newElement.innerHTML = tag.innerHTML;
32252          } else if (attribute === TAG_PROPERTIES.CSS_TEXT) {
32253            if (newElement.styleSheet) {
32254              newElement.styleSheet.cssText = tag.cssText;
32255            } else {
32256              newElement.appendChild(document.createTextNode(tag.cssText));
32257            }
32258          } else {
32259            var value = typeof tag[attribute] === "undefined" ? "" : tag[attribute];
32260            newElement.setAttribute(attribute, value);
32261          }
32262        }
32263      }
32264      newElement.setAttribute(HELMET_ATTRIBUTE, "true");
32265      if (oldTags.some(function(existingTag, index) {
32266        indexToDelete = index;
32267        return newElement.isEqualNode(existingTag);
32268      })) {
32269        oldTags.splice(indexToDelete, 1);
32270      } else {
32271        newTags.push(newElement);
32272      }
32273    });
32274  }
32275  oldTags.forEach(function(tag) {
32276    return tag.parentNode.removeChild(tag);
32277  });
32278  newTags.forEach(function(tag) {
32279    return headElement.appendChild(tag);
32280  });
32281  return {
32282    oldTags,
32283    newTags
32284  };
32285};
32286var generateElementAttributesAsString = function generateElementAttributesAsString2(attributes) {
32287  return Object.keys(attributes).reduce(function(str, key) {
32288    var attr = typeof attributes[key] !== "undefined" ? key + '="' + attributes[key] + '"' : "" + key;
32289    return str ? str + " " + attr : attr;
32290  }, "");
32291};
32292var generateTitleAsString = function generateTitleAsString2(type, title, attributes, encode) {
32293  var attributeString = generateElementAttributesAsString(attributes);
32294  var flattenedTitle = flattenArray(title);
32295  return attributeString ? "<" + type + " " + HELMET_ATTRIBUTE + '="true" ' + attributeString + ">" + encodeSpecialCharacters(flattenedTitle, encode) + "</" + type + ">" : "<" + type + " " + HELMET_ATTRIBUTE + '="true">' + encodeSpecialCharacters(flattenedTitle, encode) + "</" + type + ">";
32296};
32297var generateTagsAsString = function generateTagsAsString2(type, tags2, encode) {
32298  return tags2.reduce(function(str, tag) {
32299    var attributeHtml = Object.keys(tag).filter(function(attribute) {
32300      return !(attribute === TAG_PROPERTIES.INNER_HTML || attribute === TAG_PROPERTIES.CSS_TEXT);
32301    }).reduce(function(string, attribute) {
32302      var attr = typeof tag[attribute] === "undefined" ? attribute : attribute + '="' + encodeSpecialCharacters(tag[attribute], encode) + '"';
32303      return string ? string + " " + attr : attr;
32304    }, "");
32305    var tagContent = tag.innerHTML || tag.cssText || "";
32306    var isSelfClosing = SELF_CLOSING_TAGS.indexOf(type) === -1;
32307    return str + "<" + type + " " + HELMET_ATTRIBUTE + '="true" ' + attributeHtml + (isSelfClosing ? "/>" : ">" + tagContent + "</" + type + ">");
32308  }, "");
32309};
32310var convertElementAttributestoReactProps = function convertElementAttributestoReactProps2(attributes) {
32311  var initProps = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
32312  return Object.keys(attributes).reduce(function(obj, key) {
32313    obj[REACT_TAG_MAP[key] || key] = attributes[key];
32314    return obj;
32315  }, initProps);
32316};
32317var convertReactPropstoHtmlAttributes = function convertReactPropstoHtmlAttributes2(props) {
32318  var initAttributes = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
32319  return Object.keys(props).reduce(function(obj, key) {
32320    obj[HTML_TAG_MAP[key] || key] = props[key];
32321    return obj;
32322  }, initAttributes);
32323};
32324var generateTitleAsReactComponent = function generateTitleAsReactComponent2(type, title, attributes) {
32325  var _initProps;
32326  var initProps = (_initProps = {
32327    key: title
32328  }, _initProps[HELMET_ATTRIBUTE] = true, _initProps);
32329  var props = convertElementAttributestoReactProps(attributes, initProps);
32330  return [React$1.createElement(TAG_NAMES.TITLE, props, title)];
32331};
32332var generateTagsAsReactComponent = function generateTagsAsReactComponent2(type, tags2) {
32333  return tags2.map(function(tag, i) {
32334    var _mappedTag;
32335    var mappedTag = (_mappedTag = {
32336      key: i
32337    }, _mappedTag[HELMET_ATTRIBUTE] = true, _mappedTag);
32338    Object.keys(tag).forEach(function(attribute) {
32339      var mappedAttribute = REACT_TAG_MAP[attribute] || attribute;
32340      if (mappedAttribute === TAG_PROPERTIES.INNER_HTML || mappedAttribute === TAG_PROPERTIES.CSS_TEXT) {
32341        var content = tag.innerHTML || tag.cssText;
32342        mappedTag.dangerouslySetInnerHTML = { __html: content };
32343      } else {
32344        mappedTag[mappedAttribute] = tag[attribute];
32345      }
32346    });
32347    return React$1.createElement(type, mappedTag);
32348  });
32349};
32350var getMethodsForTag = function getMethodsForTag2(type, tags2, encode) {
32351  switch (type) {
32352    case TAG_NAMES.TITLE:
32353      return {
32354        toComponent: function toComponent() {
32355          return generateTitleAsReactComponent(type, tags2.title, tags2.titleAttributes);
32356        },
32357        toString: function toString() {
32358          return generateTitleAsString(type, tags2.title, tags2.titleAttributes, encode);
32359        }
32360      };
32361    case ATTRIBUTE_NAMES.BODY:
32362    case ATTRIBUTE_NAMES.HTML:
32363      return {
32364        toComponent: function toComponent() {
32365          return convertElementAttributestoReactProps(tags2);
32366        },
32367        toString: function toString() {
32368          return generateElementAttributesAsString(tags2);
32369        }
32370      };
32371    default:
32372      return {
32373        toComponent: function toComponent() {
32374          return generateTagsAsReactComponent(type, tags2);
32375        },
32376        toString: function toString() {
32377          return generateTagsAsString(type, tags2
vendor: 6,207 bytes, lines 32377-32503
32377, encode);
32378        }
32379      };
32380  }
32381};
32382var mapStateOnServer = function mapStateOnServer2(_ref) {
32383  var baseTag = _ref.baseTag, bodyAttributes = _ref.bodyAttributes, encode = _ref.encode, htmlAttributes = _ref.htmlAttributes, linkTags = _ref.linkTags, metaTags = _ref.metaTags, noscriptTags = _ref.noscriptTags, scriptTags = _ref.scriptTags, styleTags = _ref.styleTags, _ref$title = _ref.title, title = _ref$title === void 0 ? "" : _ref$title, titleAttributes = _ref.titleAttributes;
32384  return {
32385    base: getMethodsForTag(TAG_NAMES.BASE, baseTag, encode),
32386    bodyAttributes: getMethodsForTag(ATTRIBUTE_NAMES.BODY, bodyAttributes, encode),
32387    htmlAttributes: getMethodsForTag(ATTRIBUTE_NAMES.HTML, htmlAttributes, encode),
32388    link: getMethodsForTag(TAG_NAMES.LINK, linkTags, encode),
32389    meta: getMethodsForTag(TAG_NAMES.META, metaTags, encode),
32390    noscript: getMethodsForTag(TAG_NAMES.NOSCRIPT, noscriptTags, encode),
32391    script: getMethodsForTag(TAG_NAMES.SCRIPT, scriptTags, encode),
32392    style: getMethodsForTag(TAG_NAMES.STYLE, styleTags, encode),
32393    title: getMethodsForTag(TAG_NAMES.TITLE, { title, titleAttributes }, encode)
32394  };
32395};
32396var Helmet = function Helmet2(Component) {
32397  var _class, _temp;
32398  return _temp = _class = function(_React$Component) {
32399    inherits(HelmetWrapper, _React$Component);
32400    function HelmetWrapper() {
32401      classCallCheck(this, HelmetWrapper);
32402      return possibleConstructorReturn(this, _React$Component.apply(this, arguments));
32403    }
32404    HelmetWrapper.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) {
32405      return !reactFastCompare(this.props, nextProps);
32406    };
32407    HelmetWrapper.prototype.mapNestedChildrenToProps = function mapNestedChildrenToProps(child, nestedChildren) {
32408      if (!nestedChildren) {
32409        return null;
32410      }
32411      switch (child.type) {
32412        case TAG_NAMES.SCRIPT:
32413        case TAG_NAMES.NOSCRIPT:
32414          return {
32415            innerHTML: nestedChildren
32416          };
32417        case TAG_NAMES.STYLE:
32418          return {
32419            cssText: nestedChildren
32420          };
32421      }
32422      throw new Error("<" + child.type + " /> elements are self-closing and can not contain children. Refer to our API for more information.");
32423    };
32424    HelmetWrapper.prototype.flattenArrayTypeChildren = function flattenArrayTypeChildren(_ref) {
32425      var _babelHelpers$extends;
32426      var child = _ref.child, arrayTypeChildren = _ref.arrayTypeChildren, newChildProps = _ref.newChildProps, nestedChildren = _ref.nestedChildren;
32427      return _extends({}, arrayTypeChildren, (_babelHelpers$extends = {}, _babelHelpers$extends[child.type] = [].concat(arrayTypeChildren[child.type] || [], [_extends({}, newChildProps, this.mapNestedChildrenToProps(child, nestedChildren))]), _babelHelpers$extends));
32428    };
32429    HelmetWrapper.prototype.mapObjectTypeChildren = function mapObjectTypeChildren(_ref2) {
32430      var _babelHelpers$extends2, _babelHelpers$extends3;
32431      var child = _ref2.child, newProps = _ref2.newProps, newChildProps = _ref2.newChildProps, nestedChildren = _ref2.nestedChildren;
32432      switch (child.type) {
32433        case TAG_NAMES.TITLE:
32434          return _extends({}, newProps, (_babelHelpers$extends2 = {}, _babelHelpers$extends2[child.type] = nestedChildren, _babelHelpers$extends2.titleAttributes = _extends({}, newChildProps), _babelHelpers$extends2));
32435        case TAG_NAMES.BODY:
32436          return _extends({}, newProps, {
32437            bodyAttributes: _extends({}, newChildProps)
32438          });
32439        case TAG_NAMES.HTML:
32440          return _extends({}, newProps, {
32441            htmlAttributes: _extends({}, newChildProps)
32442          });
32443      }
32444      return _extends({}, newProps, (_babelHelpers$extends3 = {}, _babelHelpers$extends3[child.type] = _extends({}, newChildProps), _babelHelpers$extends3));
32445    };
32446    HelmetWrapper.prototype.mapArrayTypeChildrenToProps = function mapArrayTypeChildrenToProps(arrayTypeChildren, newProps) {
32447      var newFlattenedProps = _extends({}, newProps);
32448      Object.keys(arrayTypeChildren).forEach(function(arrayChildName) {
32449        var _babelHelpers$extends4;
32450        newFlattenedProps = _extends({}, newFlattenedProps, (_babelHelpers$extends4 = {}, _babelHelpers$extends4[arrayChildName] = arrayTypeChildren[arrayChildName], _babelHelpers$extends4));
32451      });
32452      return newFlattenedProps;
32453    };
32454    HelmetWrapper.prototype.warnOnInvalidChildren = function warnOnInvalidChildren(child, nestedChildren) {
32455      return true;
32456    };
32457    HelmetWrapper.prototype.mapChildrenToProps = function mapChildrenToProps(children, newProps) {
32458      var _this2 = this;
32459      var arrayTypeChildren = {};
32460      React$1.Children.forEach(children, function(child) {
32461        if (!child || !child.props) {
32462          return;
32463        }
32464        var _child$props = child.props, nestedChildren = _child$props.children, childProps = objectWithoutProperties(_child$props, ["children"]);
32465        var newChildProps = convertReactPropstoHtmlAttributes(childProps);
32466        _this2.warnOnInvalidChildren(child, nestedChildren);
32467        switch (child.type) {
32468          case TAG_NAMES.LINK:
32469          case TAG_NAMES.META:
32470          case TAG_NAMES.NOSCRIPT:
32471          case TAG_NAMES.SCRIPT:
32472          case TAG_NAMES.STYLE:
32473            arrayTypeChildren = _this2.flattenArrayTypeChildren({
32474              child,
32475              arrayTypeChildren,
32476              newChildProps,
32477              nestedChildren
32478            });
32479            break;
32480          default:
32481            newProps = _this2.mapObjectTypeChildren({
32482              child,
32483              newProps,
32484              newChildProps,
32485              nestedChildren
32486            });
32487            break;
32488        }
32489      });
32490      newProps = this.mapArrayTypeChildrenToProps(arrayTypeChildren, newProps);
32491      return newProps;
32492    };
32493    HelmetWrapper.prototype.render = function render() {
32494      var _props = this.props, children = _props.children, props = objectWithoutProperties(_props, ["children"]);
32495      var newProps = _extends({}, props);
32496      if (children) {
32497        newProps = this.mapChildrenToProps(children, newProps);
32498      }
32499      return React$1.createElement(Component, newProps);
32500    };
32501    createClass(HelmetWrapper, null, [{
32502      key: "canUseDOM",
32503      
vendor: 3,402 bytes, lines 32503-32577
32503// Component.peek comes from react-side-effect:
32504      // For testing, you may use a static peek() method available on the returned component.
32505      // It lets you get the current state without resetting the mounted instance stack.
32506      // Don’t use it for anything other than testing.
32507      /**
32508       * @param {Object} base: {"target": "_blank", "href": "http://mysite.com/"}
32509       * @param {Object} bodyAttributes: {"className": "root"}
32510       * @param {String} defaultTitle: "Default Title"
32511       * @param {Boolean} defer: true
32512       * @param {Boolean} encodeSpecialCharacters: true
32513       * @param {Object} htmlAttributes: {"lang": "en", "amp": undefined}
32514       * @param {Array} link: [{"rel": "canonical", "href": "http://mysite.com/example"}]
32515       * @param {Array} meta: [{"name": "description", "content": "Test description"}]
32516       * @param {Array} noscript: [{"innerHTML": "<img src='http://mysite.com/js/test.js'"}]
32517       * @param {Function} onChangeClientState: "(newState) => console.log(newState)"
32518       * @param {Array} script: [{"type": "text/javascript", "src": "http://mysite.com/js/test.js"}]
32519       * @param {Array} style: [{"type": "text/css", "cssText": "div { display: block; color: blue; }"}]
32520       * @param {String} title: "Title"
32521       * @param {Object} titleAttributes: {"itemprop": "name"}
32522       * @param {String} titleTemplate: "MySite.com - %s"
32523       */
32524      set: function set$$1(canUseDOM2) {
32525        Component.canUseDOM = canUseDOM2;
32526      }
32527    }]);
32528    return HelmetWrapper;
32529  }(React$1.Component), _class.propTypes = {
32530    base: propTypesExports.object,
32531    bodyAttributes: propTypesExports.object,
32532    children: propTypesExports.oneOfType([propTypesExports.arrayOf(propTypesExports.node), propTypesExports.node]),
32533    defaultTitle: propTypesExports.string,
32534    defer: propTypesExports.bool,
32535    encodeSpecialCharacters: propTypesExports.bool,
32536    htmlAttributes: propTypesExports.object,
32537    link: propTypesExports.arrayOf(propTypesExports.object),
32538    meta: propTypesExports.arrayOf(propTypesExports.object),
32539    noscript: propTypesExports.arrayOf(propTypesExports.object),
32540    onChangeClientState: propTypesExports.func,
32541    script: propTypesExports.arrayOf(propTypesExports.object),
32542    style: propTypesExports.arrayOf(propTypesExports.object),
32543    title: propTypesExports.string,
32544    titleAttributes: propTypesExports.object,
32545    titleTemplate: propTypesExports.string
32546  }, _class.defaultProps = {
32547    defer: true,
32548    encodeSpecialCharacters: true
32549  }, _class.peek = Component.peek, _class.rewind = function() {
32550    var mappedState = Component.rewind();
32551    if (!mappedState) {
32552      mappedState = mapStateOnServer({
32553        baseTag: [],
32554        bodyAttributes: {},
32555        encodeSpecialCharacters: true,
32556        htmlAttributes: {},
32557        linkTags: [],
32558        metaTags: [],
32559        noscriptTags: [],
32560        scriptTags: [],
32561        styleTags: [],
32562        title: "",
32563        titleAttributes: {}
32564      });
32565    }
32566    return mappedState;
32567  }, _temp;
32568};
32569var NullComponent = function NullComponent2() {
32570  return null;
32571};
32572var HelmetSideEffects = lib(reducePropsToState, handleClientStateChange, mapStateOnServer)(NullComponent);
32573var HelmetExport = Helmet(HelmetSideEffects);
32574HelmetExport.renderStatic = HelmetExport.rewind;
32575const APP_NAME = "vite-react-chakra-starter";
32576const Meta = () => {
32577  return /* @__PURE__ */ jsxs(HelmetExport, { children: [
32578    /* @__PURE__ */ jsx("title", { children: "Vite React Chakra Starter" }),
32579    /* @__PURE__ */ jsx("meta", { name: "description", content: "Vite React Chakra Starter Template" }),
32580    /* @__PURE__ */ jsx("meta", { name: "application-name", content: APP_NAME }),
32581    /* @__PURE__ */ jsx("meta", { name: "apple-mobile-web-app-capable", content: "yes" }),
32582    /* @__PURE__ */ jsx("meta", { name: "apple-mobile-web-app-status-bar-style", content: "default" }),
32583    /* @__PURE__ */ jsx("meta", { name: "apple-mobile-web-app-title", content: APP_NAME }),
32584    /* @__PURE__ */ jsx("meta", { name: "format-detection", content: "telephone=no" }),
32585    /* @__PURE__ */ jsx("meta", { name: "mobile-web-app-capable", content: "yes" }),
32586    /* @__PURE__ */ jsx("meta", { name: "theme-color", content: "#FFFFFF" }),
32587    /* @__PURE__ */ jsx("link", { rel: "shortcut icon", href: "/assets/favicon.svg" }),
32588    /* @__PURE__ */ jsx("link", { rel: "manifest", href: "/manifest.json" })
32589  ] });
32590};
32591const Layout = ({ children }) => {
32592  return /* @__PURE__ */ jsxs(Box, { margin: "0 auto", maxWidth: 800, transition: "0.5s ease-out", children: [
32593    /* @__PURE__ */ jsx(Meta, {}),
32594    /* @__PURE__ */ jsxs(Flex, { wrap: "wrap", margin: "8", minHeight: "90vh", children: [
32595      /* @__PURE__ */ jsx(Header, {}),
32596      /* @__PURE__ */ jsx(Box, { width: "full", as: "main", marginY: 22, children }),
32597      /* @__PURE__ */ jsx(Footer, {})
32598    ] })
32599  ] });
32600};
32601const RequireAuth = ({
32602  children,
32603  redirectTo = "/login"
32604}) => {
32605  const isAuthenticated = true;
32606  return isAuthenticated ? children : /* @__PURE__ */ jsx(Navigate, { to: redirectTo });
32607};
32608const Page404 = () => {
32609  const navigate = useNavigate();
32610  const handleBackToHome = () => navigate("/");
32611  return /* @__PURE__ */ jsxs(Grid, { gap: 4, textAlign: "center", children: [
32612    /* @__PURE__ */ jsx(Heading, { children: "Page not Found" }),
32613    /* @__PURE__ */ jsxs(Box, { maxWidth: [280, 400], marginX: "auto", children: [
32614      /* @__PURE__ */ jsx(Image$1, { width: 400, src: "/assets/404 Error-rafiki.svg" }),
32615      /* @__PURE__ */ jsx(Link, { fontSize: "xs", href: "https://stories.freepik.com/web", isExternal: true, children: "Illustration by Freepik Stories" })
32616    ] }),
32617    /* @__PURE__ */ jsxs(Box, { children: [
32618      /* @__PURE__ */ jsx(Text, { children: "It's Okay!" }),
32619      /* @__PURE__ */ jsx(Button, { onClick: handleBackToHome, children: "Let's Head Back" })
32620    ] })
32621  ] });
32622};
32623var web3_minExports = {};
32624var web3_min = {
32625  get exports() {
32626    return web3_minExports;
32627  },
32628  set exports(v2) {
32629    web3_minExports = v2;
32630  }
32631};
32632/*! For license information please see web3.min.js.LICENSE.txt */
32633(function(module, exports) {
32634  !function(e2, t2) {
32635    module.exports = t2();
32636  }(self, () => (() => {
32637    var e2 = { 1645: (e3, t3, r3) => {
32638      var n2 = function(e4) {
32639        return e4 && e4.__esModule ? e4 : { default: e4 };
32640      };
32641      Object.defineProperty(t3, "__esModule", { value: true }), t3.chains = t3._getInitializedChains = void 0;
32642      var i = n2(r3(7295)), o = n2(r3(1227)), a = n2(r3(439)), s = n2(r3(7098)), u2 = n2(r3(7687));
32643      function c2(e4) {
32644        var t4, r4, n3 = { 1: "mainnet", 3: "ropsten", 4: "rinkeby", 42: "kovan", 5: "goerli" }, c3 = { mainnet: i.default, ropsten: o.default, rinkeby: a.default, kovan: s.default, goerli: u2.default };
32645        if (e4)
32646          try {
32647            for (var f2 = function(e5) {
32648              var t5 = "function" == typeof Symbol && Symbol.iterator, r5 = t5 && e5[t5], n4 = 0;
32649              if (r5)
32650                return r5.call(e5);
32651              if (e5 && "number" == typeof e5.length)
32652                return { next: function() {
32653                  return e5 && n4 >= e5.length && (e5 = void 0), { value: e5 && e5[n4++], done: !e5 };
32654                } };
32655              throw new TypeError(t5 ? "Object is not iterable." : "Symbol.iterator is not defined.");
32656            }(e4), d2 = f2.next(); !d2.done; d2 = f2.next()) {
32657              var l2 = d2.value, h2 = l2.name;
32658              n3[l2.chainId.toString()] = h2, c3[h2] = l2;
32659            }
32660          } catch (e5) {
32661            t4 = { error: e5 };
32662          } finally {
32663            try {
32664              d2 && !d2.done && (r4 = f2.return) && r4.call(f2);
32665            } finally {
32666              if (t4)
32667                throw t4.error;
32668            }
32669          }
32670        return c3.names = n3, c3;
32671      }
32672      t3._getInitializedChains = c2, t3.chains = c2();
32673    }, 425: (e3, t3, r3) => {
32674      Object.defineProperty(t3, "__esModule", { value: true }), t3.EIPs = void 0, t3.EIPs = { 1559: r3(7523), 2315: r3(3339), 2537: r3(6769), 2565: r3(7897), 2718: r3(2170), 2929: r3(8436), 2930: r3(6213), 3198: r3(5491), 3529: r3(7852), 3541: r3(1871), 3554: r3(7225), 3675: r3(8571) };
32675    }, 7002: (e3, t3, r3) => {
32676      Object.defineProperty(t3, "__esModule", { value: true }), t3.hardforks = void 0, t3.hardforks = [["chainstart", r3(114)], ["homestead", r3(2800)], ["dao", r3(7197)], ["tangerineWhistle", r3(2302)], ["spuriousDragon", r3(716)], ["byzantium", r3(6985)], ["constantinople", r3(5993)], ["petersburg", r3(4064)], ["istanbul", r3(3166)], ["muirGlacier", r3(2946)], ["berlin", r3(15)], ["london", r3(1250)], ["shanghai", r3(5553)], ["merge", r3(8648)]];
32677    }, 3863: (e3, t3, r3) => {
32678      var n2, i = r3(9033).Buffer, o = r3(8847)(r3(3355)), a = (n2 = function(e4, t4) {
32679        return n2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e5, t5) {
32680          e5.__proto__ = t5;
32681        } || function(e5, t5) {
32682          for (var r4 in t5)
32683            Object.prototype.hasOwnProperty.call(t5, r4) && (e5[r4] = t5[r4]);
32684        }, n2(e4, t4);
32685      }, function(e4, t4) {
32686        if ("function" != typeof t4 && null !== t4)
32687          throw new TypeError("Class extends value " + String(t4) + " is not a constructor or null");
32688        function r4() {
32689          this.constructor = e4;
32690        }
32691        n2(e4, t4), e4.prototype = null === t4 ? Object.create(t4) : (r4.prototype = t4.prototype, new r4());
32692      }), s = function() {
32693        return s = Object.assign || function(e4) {
32694          for (var t4, r4 = 1, n3 = arguments.length; r4 < n3; r4++)
32695            for (var i2 in t4 = arguments[r4])
32696              Object.prototype.hasOwnProperty.call(t4, i2) && (e4[i2] = t4[i2]);
32697          return e4;
32698        }, s.apply(this, arguments);
32699      }, u2 = function(e4) {
32700        var t4 = "function" == typeof Symbol && Symbol.iterator, r4 = t4 && e4[t4], n3 = 0;
32701        if (r4)
32702          return r4.call(e4);
32703        if (e4 && "number" == typeof e4.length)
32704          return { next: function() {
32705            return e4 && n3 >= e4.length && (e4 = void 0), { value: e4 && e4[n3++], done: !e4 };
32706          } };
32707        throw new TypeError(t4 ? "Object is not iterable." : "Symbol.iterator is not defined.");
32708      };
32709      Object.defineProperty(t3, "__esModule", { value: true }), t3.ConsensusAlgorithm = t3.ConsensusType = t3.Hardfork = t3.Chain = t3.CustomChain = void 0;
32710      var c2, f2, d2, l2, h2, p2 = r3(8291), b2 = r3(4628), y2 = r3(3062), m2 = r3(1645), v2 = r3(7002), g2 = r3(425);
32711      !function(e4) {
32712        e4.PolygonMainnet = "polygon-mainnet", e4.PolygonMumbai = "polygon-mumbai", e4.ArbitrumRinkebyTestnet = "arbitrum-rinkeby-testnet", e4.xDaiChain = "x-dai-chain";
32713      }(c2 = t3.CustomChain || (t3.CustomChain = {})), (h2 = t3.Chain || (t3.Chain = {}))[h2.Mainnet = 1] = "Mainnet", h2[h2.Ropsten = 3] = "Ropsten", h2[h2.Rinkeby = 4] = "Rinkeby", h2[h2.Kovan 
32713= 42] = "Kovan", h2[h2.Goerli = 5] = "Goerli", function(e4) {
32714        e4.Chainstart = "chainstart", e4.Homestead = "homestead", e4.Dao = "dao", e4.TangerineWhistle = "tangerineWhistle", e4.SpuriousDragon = "spuriousDragon", e4.Byzantium = "byzantium", e4.Constantinople = "constantinople", e4.Petersburg = "petersburg", e4.Istanbul = "istanbul", e4.MuirGlacier = "muirGlacier", e4.Berlin = "berlin", e4.London = "london", e4.Shanghai = "shanghai", e4.Merge = "merge";
32715      }(f2 = t3.Hardfork || (t3.Hardfork = {})), (l2 = t3.ConsensusType || (t3.ConsensusType = {})).ProofOfStake = "pos", l2.ProofOfWork = "pow", l2.ProofOfAuthority = "poa", (d2 = t3.ConsensusAlgorithm || (t3.ConsensusAlgorithm = {})).Ethash = "ethash", d2.Clique = "clique", d2.Casper = "casper";
32716      var w2 = function(e4) {
32717        function t4(t5) {
32718          var r4, n3, i2, o2, a2 = e4.call(this) || this;
32719          a2._supportedHardforks = [], a2._eips = [], a2._customChains = null !== (i2 = t5.customChains) && void 0 !== i2 ? i2 : [], a2._chainParams = a2.setChain(t5.chain), a2.DEFAULT_HARDFORK = null !== (o2 = a2._chainParams.defaultHardfork) && void 0 !== o2 ? o2 : f2.Istanbul;
32720          try {
32721            for (var s2 = u2(a2._chainParams.hardforks), c3 = s2.next(); !c3.done; c3 = s2.next()) {
32722              var d3 = c3.value;
32723              d3.forkHash || (d3.forkHash = a2._calcForkHash(d3.name));
32724            }
32725          } catch (e5) {
32726            r4 = { error: e5 };
32727          } finally {
32728            try {
32729              c3 && !c3.done && (n3 = s2.return) && n3.call(s2);
32730            } finally {
32731              if (r4)
32732                throw r4.error;
32733            }
32734          }
32735          return a2._hardfork = a2.DEFAULT_HARDFORK, t5.supportedHardforks && (a2._supportedHardforks = t5.supportedHardforks), t5.hardfork && a2.setHardfork(t5.hardfork), t5.eips && a2.setEIPs(t5.eips), a2;
32736        }
32737        return a(t4, e4), t4.custom = function(e5, r4) {
32738          var n3;
32739          void 0 === r4 && (r4 = {});
32740          var i2 = null !== (n3 = r4.baseChain) && void 0 !== n3 ? n3 : "mainnet", o2 = s({}, t4._getChainParams(i2));
32741          if (o2.name = "custom-chain", "string" != typeof e5)
32742            return new t4(s({ chain: s(s({}, o2), e5) }, r4));
32743          if (e5 === c2.PolygonMainnet)
32744            return t4.custom({ name: c2.PolygonMainnet, chainId: 137, networkId: 137 });
32745          if (e5 === c2.PolygonMumbai)
32746            return t4.custom({ name: c2.PolygonMumbai, chainId: 80001, networkId: 80001 });
32747          if (e5 === c2.ArbitrumRinkebyTestnet)
32748            return t4.custom({ name: c2.ArbitrumRinkebyTestnet, chainId: 421611, networkId: 421611 });
32749          if (e5 === c2.xDaiChain)
32750            return t4.custom({ name: c2.xDaiChain, chainId: 100, networkId: 100 });
32751          throw new Error("Custom chain " + e5 + " not supported");
32752        }, t4.forCustomChain = function(e5, r4, n3, i2) {
32753          var o2 = t4._getChainParams(e5);
32754          return new t4({ chain: s(s({}, o2), r4), hardfork: n3, supportedHardforks: i2 });
32755        }, t4.isSupportedChainId = function(e5) {
32756          var t5 = (0, m2._getInitializedChains)();
32757          return Boolean(t5.names[e5.toString()]);
32758        }, t4._getChainParams = function(e5, t5) {
32759          var r4 = (0, m2._getInitializedChains)(t5);
32760          if ("number" == typeof e5 || y2.BN.isBN(e5)) {
32761            if (e5 = e5.toString(), r4.names[e5])
32762              return r4[r4.names[e5]];
32763            throw new Error("Chain with ID " + e5 + " not supported");
32764          }
32765          if (r4[e5])
32766            return r4[e5];
32767          throw new Error("Chain with name " + e5 + " not supported");
32768        }, t4.prototype.setChain = function(e5) {
32769          var r4, n3;
32770          if ("number" == typeof e5 || "string" == typeof e5 || y2.BN.isBN(e5)) {
32771            var i2;
32772            i2 = this._customChains && this._customChains.length > 0 && Array.isArray(this._customChains[0]) ? this._customChains.map(function(e6) {
32773              return e6[0];
32774            }) : this._customChains, this._chainParams = t4._getChainParams(e5, i2);
32775          } else {
32776            if ("object" !== (0, o.default)(e5))
32777              throw new Error("Wrong input format");
32778            if (this._customChains.length > 0)
32779              throw new Error("Chain must be a string, number, or BN when initialized with customChains passed in");
32780            try {
32781              for (var a2 = u2(["networkId", "genesis", "hardforks", "bootstrapNodes"]), s2 = a2.next(); !s2.done; s2 = a2.next()) {
32782                var c3 = s2.value;
32783                if (void 0 === e5[c3])
32784                  throw new Error("Missing required chain parameter: " + c3);
32785              }
32786            } catch (e6) {
32787              r4 = { error: e6 };
32788            } finally {
32789              try {
32790                s2 && !s2.done && (n3 = a2.return) && n3.call(a2);
32791              } finally {
32792                if (r4)
32793                  throw r4.error;
32794              }
32795            }
32796            this._chainParams = e5;
32797          }
32798          return this._chainParams;
32799        }, t4.prototype.setHardfork = function(e5) {
32800          var t5, r4;
32801          if (!this._isSupportedHardfork(e5))
32802            throw new Error("Hardfork " + e5 + " not set as supp
32802orted in supportedHardforks");
32803          var n3 = false;
32804          try {
32805            for (var i2 = u2(v2.hardforks), o2 = i2.next(); !o2.done; o2 = i2.next())
32806              o2.value[0] === e5 && (this._hardfork !== e5 && (this._hardfork = e5, this.emit("hardforkChanged", e5)), n3 = true);
32807          } catch (e6) {
32808            t5 = { error: e6 };
32809          } finally {
32810            try {
32811              o2 && !o2.done && (r4 = i2.return) && r4.call(i2);
32812            } finally {
32813              if (t5)
32814                throw t5.error;
32815            }
32816          }
32817          if (!n3)
32818            throw new Error("Hardfork with name " + e5 + " not supported");
32819        }, t4.prototype.getHardforkByBlockNumber = function(e5, t5) {
32820          var r4, n3;
32821          e5 = (0, y2.toType)(e5, y2.TypeOutput.BN), t5 = t5 ? (0, y2.toType)(t5, y2.TypeOutput.BN) : void 0;
32822          var i2, o2, a2, s2 = f2.Chainstart;
32823          try {
32824            for (var c3 = u2(this.hardforks()), d3 = c3.next(); !d3.done; d3 = c3.next()) {
32825              var l3 = d3.value;
32826              if (null !== l3.block)
32827                e5.gte(new y2.BN(l3.block)) && (s2 = l3.name), t5 && l3.td && (t5.gten(l3.td) ? i2 = l3.name : o2 = a2), a2 = l3.name;
32828              else if (t5 && l3.td && t5.gten(l3.td))
32829                return l3.name;
32830            }
32831          } catch (e6) {
32832            r4 = { error: e6 };
32833          } finally {
32834            try {
32835              d3 && !d3.done && (n3 = c3.return) && n3.call(c3);
32836            } finally {
32837              if (r4)
32838                throw r4.error;
32839            }
32840          }
32841          if (t5) {
32842            var h3 = "block number: " + e5 + " (-> " + s2 + "), ";
32843            if (i2 && !this.hardforkGteHardfork(s2, i2)) {
32844              var p3 = "HF determined by block number is lower than the minimum total difficulty HF";
32845              throw h3 += "total difficulty: " + t5 + " (-> " + i2 + ")", new Error(p3 + ": " + h3);
32846            }
32847            if (o2 && !this.hardforkGteHardfork(o2, s2))
32848              throw p3 = "Maximum HF determined by total difficulty is lower than the block number HF", h3 += "total difficulty: " + t5 + " (-> " + o2 + ")", new Error(p3 + ": " + h3);
32849          }
32850          return s2;
32851        }, t4.prototype.setHardforkByBlockNumber = function(e5, t5) {
32852          var r4 = this.getHardforkByBlockNumber(e5, t5);
32853          return this.setHardfork(r4), r4;
32854        }, t4.prototype._chooseHardfork = function(e5, t5) {
32855          if (void 0 === t5 && (t5 = true), e5) {
32856            if (t5 && !this._isSupportedHardfork(e5))
32857              throw new Error("Hardfork " + e5 + " not set as supported in supportedHardforks");
32858          } else
32859            e5 = this._hardfork;
32860          return e5;
32861        }, t4.prototype._getHardfork = function(e5) {
32862          var t5, r4, n3 = this.hardforks();
32863          try {
32864            for (var i2 = u2(n3), o2 = i2.next(); !o2.done; o2 = i2.next()) {
32865              var a2 = o2.value;
32866              if (a2.name === e5)
32867                return a2;
32868            }
32869          } catch (e6) {
32870            t5 = { error: e6 };
32871          } finally {
32872            try {
32873              o2 && !o2.done && (r4 = i2.return) && r4.call(i2);
32874            } finally {
32875              if (t5)
32876                throw t5.error;
32877            }
32878          }
32879          throw new Error("Hardfork " + e5 + " not defined for chain " + this.chainName());
32880        }, t4.prototype._isSupportedHardfork = function(e5) {
32881          var t5, r4;
32882          if (!(this._supportedHardforks.length > 0))
32883            return true;
32884          try {
32885            for (var n3 = u2(this._supportedHardforks), i2 = n3.next(); !i2.done; i2 = n3.next())
32886              if (e5 === i2.value)
32887                return true;
32888          } catch (e6) {
32889            t5 = { error: e6 };
32890          } finally {
32891            try {
32892              i2 && !i2.done && (r4 = n3.return) && r4.call(n3);
32893            } finally {
32894              if (t5)
32895                throw t5.error;
32896            }
32897          }
32898          return false;
32899        }, t4.prototype.setEIPs = function(e5) {
32900          var t5, r4, n3 = this;
32901          void 0 === e5 && (e5 = []);
32902          var i2 = function(t6) {
32903            if (!(t6 in g2.EIPs))
32904              throw new Error(t6 + " not supported");
32905            var r5 = o2.gteHardfork(g2.EIPs[t6].minimumHardfork);
32906            if (!r5)
32907              throw new Error(t6 + " cannot be activated on hardfork " + o2.hardfork() + ", minimumHardfork: " + r5);
32908            g2.EIPs[t6].requiredEIPs && g2.EIPs[t6].requiredEIPs.forEac
32908h(function(r6) {
32909              if (!e5.includes(r6) && !n3.isActivatedEIP(r6))
32910                throw new Error(t6 + " requires EIP " + r6 + ", but is not included in the EIP list");
32911            });
32912          }, o2 = this;
32913          try {
32914            for (var a2 = u2(e5), s2 = a2.next(); !s2.done; s2 = a2.next())
32915              i2(s2.value);
32916          } catch (e6) {
32917            t5 = { error: e6 };
32918          } finally {
32919            try {
32920              s2 && !s2.done && (r4 = a2.return) && r4.call(a2);
32921            } finally {
32922              if (t5)
32923                throw t5.error;
32924            }
32925          }
32926          this._eips = e5;
32927        }, t4.prototype.param = function(e5, t5) {
32928          var r4, n3, i2 = null;
32929          try {
32930            for (var o2 = u2(this._eips), a2 = o2.next(); !a2.done; a2 = o2.next()) {
32931              var s2 = a2.value;
32932              if (null !== (i2 = this.paramByEIP(e5, t5, s2)))
32933                return i2;
32934            }
32935          } catch (e6) {
32936            r4 = { error: e6 };
32937          } finally {
32938            try {
32939              a2 && !a2.done && (n3 = o2.return) && n3.call(o2);
32940            } finally {
32941              if (r4)
32942                throw r4.error;
32943            }
32944          }
32945          return this.paramByHardfork(e5, t5, this._hardfork);
32946        }, t4.prototype.paramByHardfork = function(e5, t5, r4) {
32947          var n3, i2, o2, a2;
32948          r4 = this._chooseHardfork(r4);
32949          var s2 = null;
32950          try {
32951            for (var c3 = u2(v2.hardforks), f3 = c3.next(); !f3.done; f3 = c3.next()) {
32952              var d3 = f3.value;
32953              if ("eips" in d3[1]) {
32954                var l3 = d3[1].eips;
32955                try {
32956                  for (var h3 = (o2 = void 0, u2(l3)), p3 = h3.next(); !p3.done; p3 = h3.next()) {
32957                    var b3 = p3.value, y3 = this.paramByEIP(e5, t5, b3);
32958                    s2 = null !== y3 ? y3 : s2;
32959                  }
32960                } catch (e6) {
32961                  o2 = { error: e6 };
32962                } finally {
32963                  try {
32964                    p3 && !p3.done && (a2 = h3.return) && a2.call(h3);
32965                  } finally {
32966                    if (o2)
32967                      throw o2.error;
32968                  }
32969                }
32970              } else {
32971                if (!d3[1][e5])
32972                  throw new Error("Topic " + e5 + " not defined");
32973                void 0 !== d3[1][e5][t5] && (s2 = d3[1][e5][t5].v);
32974              }
32975              if (d3[0] === r4)
32976                break;
32977            }
32978          } catch (e6) {
32979            n3 = { error: e6 };
32980          } finally {
32981            try {
32982              f3 && !f3.done && (i2 = c3.return) && i2.call(c3);
32983            } finally {
32984              if (n3)
32985                throw n3.error;
32986            }
32987          }
32988          return s2;
32989        }, t4.prototype.paramByEIP = function(e5, t5, r4) {
32990          if (!(r4 in g2.EIPs))
32991            throw new Error(r4 + " not supported");
32992          var n3 = g2.EIPs[r4];
32993          if (!(e5 in n3))
32994            throw new Error("Topic " + e5 + " not defined");
32995          return void 0 === n3[e5][t5] ? null : n3[e5][t5].v;
32996        }, t4.prototype.paramByBlock = function(e5, t5, r4) {
32997          var n3 = this.activeHardforks(r4), i2 = n3[n3.length - 1].name;
32998          return this.paramByHardfork(e5, t5, i2);
32999        }, t4.prototype.isActivatedEIP = function(e5) {
33000          var t5, r4;
33001          if (this.eips().includes(e5))
33002            return true;
33003          try {
33004            for (var n3 = u2(v2.hardforks), i2 = n3.next(); !i2.done; i2 = n3.next()) {
33005              var o2 = i2.value[1];
33006              if (this.gteHardfork(o2.name) && "eips" in o2 && o2.eips.includes(e5))
33007                return true;
33008            }
33009          } catch (e6) {
33010            t5 = { error: e6 };
33011          } finally {
33012            try {
33013              i2 && !i2.done && (r4 = n3.return) && r4.call(n3);
33014            } finally {
33015              if (t5)
33016                throw t5.error;
33017            }
33018          }
33019          return false;
33020        }, t4.prototype.hardforkIsActiveOnBlock = function(e5, t5, r4) {
33021          var n3;
33022          void 0 === r4 && (r4 = {}), t5 = (0, y2.toType)(t5, y2.TypeOutput.BN);
33023          var i2 = null !== (n3 = r4.onlySupported) && void 0 !== n3 && n3;
33024          e5 = this._chooseHardfork(e5, i2);
33025          var o2 = this.hardforkBlockBN(e5);
33026          return !(!o2 || !t5.gte(o2));
33027        }, t4.prototype.activeOnBlock = function(e5, t5) {
33028          return this.hardforkIsActiveOnBlock(null, e5, t5);
33029        }, t4.prototype.hardforkGteHardfork = function(e5, t5, r4) {
33030          var n3, i2;
33031          void 0 === r4 && (r4 = {});
33032          var o2, a2 = void 0 !== r4.onlyActive && r4.onlyActive;
33033          e5 = this._chooseHardfork(e5, r4.onlySupported), o2 = a2 ? this.activeHardforks(null, r4) : this.hardforks();
33034          var s2 = -1, c3 = -1, f3 = 0;
33035          try {
33036            for (var d3 = u2(o2), l3 = d3.next(); !l3.done; l3 = d3.next()) {
33037              var h3 = l3.value;
33038              h3.name === e5 && (s2 = f3), h3.name === t5 && (c3 = f3), f3 += 1;
33039            }
33040          } catch (e6) {
33041            n3 = { error: e6 };
33042          } finally {
33043            try {
33044              l3 && !l3.done && (i2 = d3.return) && i2.call(d3);
33045            } finally {
33046              if (n3)
33047                throw n3.error;
33048            }
33049          }
33050          return s2 >= c3 && -1 !== c3;
33051        }, t4.prototype.gteHardfork = function(e5, t5) {
33052          return this.hardforkGteHardfork(null, e5, t5);
33053        }, t4.prototype.hardforkIsActiveOnChain = function(e5, t5) {
33054          var r4, n3, i2;
33055          void 0 === t5 && (t5 = {});
33056          var o2 = null !== (i2 = t5.onlySupported) && void 0 !== i2 && i2;
33057          e5 = this._chooseHardfork(e5, o2);
33058          try {
33059            for (var a2 = u2(this.hardforks()), s2 = a2.next(); !s2.done; s2 = a2.next()) {
33060              var c3 = s2.value;
33061              if (c3.name === e5 && null !== c3.block)
33062                return true;
33063            }
33064          } catch (e6) {
33065            r4 = { error: e6 };
33066          } finally {
33067            try {
33068              s2 && !s2.done && (n3 = a2.return) && n3.call(a2);
33069            } finally {
33070              if (r4)
33071                throw r4.error;
33072            }
33073          }
33074          return false;
33075        }, t4.prototype.activeHardforks = function(e5, t5) {
33076          var r4, n3;
33077          void 0 === t5 && (t5 = {});
33078          var i2 = [], o2 = this.hardforks();
33079          try {
33080            for (var a2 = u2(o2), s2 = a2.next(); !s2.done; s2 = a2.next()) {
33081              var c3 = s2.value;
33082              if (null !== c3.block) {
33083                if (null != e5 && e5 < c3.block)
33084                  break;
33085                t5.onlySupported && !this._isSupportedHardfork(c3.name) || i2.push(c3);
33086              }
33087            }
33088          } catch (e6) {
33089            r4 = { error: e6 };
33090          } finally {
33091            try {
33092              s2 && !s2.done && (n3 = a2.return) && n3.call(a2);
33093            } finally {
33094              if (r4)
33095                throw r4.error;
33096            }
33097          }
33098          return i2;
33099        }, t4.prototype.activeHardfork = function(e5, t5) {
33100          void 0 === t5 && (t5 = {});
33101          var r4 = this.activeHardforks(e5, t5);
33102          if (r4.length > 0)
33103            return r4[r4.length - 1].name;
33104          throw new Error("No (supported) active hardfork found");
33105        }, t4.prototype.hardforkBlock = function(e5) {
33106          var t5 = this.hardforkBlockBN(e5);
33107          return t5 ? (0, y2.toType)(t5, y2.TypeOutput.Number) : null;
33108        }, t4.prototype.hardforkBlockBN = function(e5) {
33109          e5 = this._chooseHardfork(e5, false);
33110          var t5 = this._getHardfork(e5).block;
33111          return null == t5 ? null : new y2.BN(t5);
33112        }, t4.prototype.hardforkTD = function(e5) {
33113          e5 = this._chooseHardfork(e5, false);
33114          var t5 = this._getHardfork(e5).td;
33115          return null == t5 ? null : new y2.BN(t5);
33116        }, t4.prototype.isHardforkBlock = function(e5, t5) {
33117          e5 = (0, y2.toType)(e5, y2.TypeOutput.BN), t5 = this._chooseHardfork(t5, false);
33118          var r4 = this.hardforkBlockBN(t5);
33119          return !!r4 && r4.eq(e5);
33120        }, t4.prototype.nextHardforkBlock = function(e5) {
33121          var t5 = this.nextHardforkBlockBN(e5);
33122          return null === t5 ? null : (0, y2.toType)(t5, y2.TypeOutput.Number);
33123        }, t4.prototype.nextHardforkBlockBN = function(e5) {
33124          e5 = this._chooseHardfork(e5, false);
33125          var t5 = this.hardforkBlockBN(e5);
33126          return null === t5 ? null : this.hardforks().reduce(function(e6, r4) {
33127            var n3 = new y2.BN(r4.block);
33128            return n3.gt(t5) && null === e6 ? n3 : e6;
33129          }, null);
33130        }, t4.prototype.isNextHardforkBlock = function(e5, t5) {
33131          e5 = (0, y2.toType)(e5, y2.TypeOutput.BN), t5 = this._chooseHardfork(t5, false);
33132          var r4 = this.nextHardforkBlockBN(t5);
33133          return null !== r4 && r4.eq(e5);
33134        }, t4.prototype._calcForkHash = function(e5) {
33135          var t5, r4, n3 = i.from(this.genesis().hash.substr(2), "hex"), o2 = i.alloc(0), a2 = 0;
33136          try {
33137            for (var s2 = u2(this.hardforks()), c3 = s2.next(); !c3.done; c3 = s2.next()) {
33138              var f3 = c3.value, d3 = f3.block;
33139              if (0 !== d3 && null !== d3 && d3 !== a2) {
33140                var l3 = i.from(d3.toString(16).padStart(16, "0"), "hex");
33141                o2 = i.concat([o2, l3]);
33142              }
33143              if (f3.name === e5)
33144                break;
33145              null !== d3 && (a2 = d3);
33146            }
33147          } catch (e6) {
33148            t5 = { error: e6 };
33149          } finally {
33150            try {
33151              c3 && !c3.done && (r4 = s2.return) && r4.call(s2);
33152            } finally {
33153              if (t5)
33154                throw t5.error;
33155            }
33156          }
33157          var h3 = i.concat([n3, o2]);
33158          return "0x" + (0, y2.intToBuffer)((0, b2.buf)(h3) >>> 0).toString("hex");
33159        }, t4.prototype.forkHash = function(e5) {
33160          e5 = this._chooseHardfork(e5, false);
33161          var t5 = this._getHardfork(e5);
33162          if (null === t5.block)
33163            throw new Error("No fork hash calculation possible for non-applied or future hardfork");
33164          return void 0 !== t5.forkHash ? t5.forkHash : this._calcForkHash(e5);
33165        }, t4.prototype.hardforkForForkHash = function(e5) {
33166          var t5 = this.hardforks().filter(function(t6) {
33167            return t6.forkHash === e5;
33168          });
33169          return t5.length >= 1 ? t5[t5.length - 1] : null;
33170        }, t4.prototype.genesis = function() {
33171          return this._chainParams.genesis;
33172        }, t4.prototype.genesisState = function() {
33173          var e5, t5;
33174          switch (this.chainName()) {
33175            case "mainnet":
33176              return r3(Object(function() {
33177                var e6 = new Error("Cannot find module './genesisStates/mainnet.json'");
33178                throw e6.code = "MODULE_NOT_FOUND", e6;
33179              }()));
33180            case "ropsten":
33181              return r3(Object(function() {
33182                var e6 = new Error("Cannot find module './genesisStates/ropsten.json'");
33183                throw e6.code = "MODULE_NOT_FOUND", e6;
33184              }()));
33185            case "rinkeby":
33186              return r3(Object(function() {
33187                var e6 = new Error("Cannot find module './genesisStates/rinkeby.json'");
33188                throw e6.code = "MODULE_NOT_FOUND", e6;
33189              }()));
33190            case "kovan":
33191              return r3(Object(function() {
33192                var e6 = new Error("Cannot find module './genesisStates/kovan.json'");
33193                throw e6.code = "MODULE_NOT_FOUND", e6;
33194              }()));
33195            case "goerli":
33196              return r3(Object(function() {
33197                var e6 = new Error("Cannot find module './genesisStates/goerli.json'");
33198                throw e6.code = "MODULE_NOT_FOUND", e6;
33199              }()));
33200          }
33201          if (this._customChains && this._customChains.length > 0 && Array.isArray(this._customChains[0]))
33202            try {
33203              for (var n3 = u2(this._customChains), i2 = n3.next(); !i2.done; i2 = n3.next()) {
33204                var o2 = i2.value;
33205                if (o2[0].name === this.chainName())
33206                  return o2[1];
33207              }
33208            } catch (t6) {
33209              e5 = { error: t6 };
33210            } finally {
33211              try {
33212                i2 && !i2.done && (t5 = n3.return) && t5.call(n3);
33213              } finally {
33214                if (e5)
33215                  throw e5.error;
33216              }
33217            }
33218          return {};
33219        }, t4.prototype.hardforks = function() {
33220          return this._chainParams.hardforks;
33221        }, t4.prototype.bootstrapNodes = function() {
33222          return this._chainParams.bootstrapNodes;
33223        }, t4.prototype.dnsNetworks = function() {
33224          return this._chainParams.dnsNetworks;
33225        }, t4.prototype.hardfork = function() {
33226          return this._hardfork;
33227        }, t4.prototype.chainId = function() {
33228          return (0, y2.toType)(this.chainIdBN(), y2.TypeOutput.Number);
33229        }, t4.prototype.chainIdBN = function() {
33230          return new y2.BN(this._chainParams.chainId);
33231        }, t4.prototype.chainName = function() {
33232          return this._chainParams.name;
33233        }, t4.prototype.networkId = function() {
33234          return (0, y2.toType)(this.networkIdBN(), y2.TypeOutput.Number);
33235        }, t4.prototype.networkIdBN = function() {
33236          return new y2.BN(this._chainParams.networkId);
33237        }, t4.prototype.eips = function() {
33238          return this._eips;
33239        }, t4.prototype.consensusType = function() {
33240          var e5, t5, r4, n3 = this.hardfork();
33241          try {
33242            for (var i2 = u2(v2.hardforks), o2 = i2.next(); !o2.done; o2 = i2.next()) {
33243              var a2 = o2.value;
33244              if ("consensus" in a2[1] && (r4 = a2[1].consensus.type), a2[0] === n3)
33245                break;
33246            }
33247          } catch (t6) {
33248            e5 = { error: t6 };
33249          } finally {
33250            try {
33251              o2 && !o2.done && (t5 = i2.return) && t5.call(i2);
33252            } finally {
33253              if (e5)
33254                throw e5.error;
33255            }
33256          }
33257          return r4 || this._chainParams.consensus.type;
33258        }, t4.prototype.consensusAlgorithm = function() {
33259          var e5, t5, r4, n3 = this.hardfork();
33260          try {
33261            for (var i2 = u2(v2.hardforks), o2 = i2.next(); !o2.done; o2 = i2.next()) {
33262              var a2 = o2.value;
33263              if ("consensus" in a2[1] && (r4 = a2[1].consensus.algorithm), a2[0] === n3)
33264                break;
33265            }
33266          } catch (t6) {
33267            e5 = { error: t6 };
33268          } finally {
33269            try {
33270              o2 && !o2.done && (t5 = i2.return) && t5.call(i2);
33271            } finally {
33272              if (e5)
33273                throw e5.error;
33274            }
33275          }
33276          return r4 || this._chainParams.consensus.algorithm;
33277        }, t4.prototype.consensusConfig = function() {
33278          var e5, t5, r4, n3 = this.hardfork();
33279          try {
33280            for (var i2 = u2(v2.hardforks), o2 = i2.next(); !o2.done; o2 = i2.next()) {
33281              var a2 = o2.value;
33282              if ("consensus" in a2[1] && (r4 = a2[1].consensus[a2[1].consensus.algorithm]), a2[0] === n3)
33283                break;
33284            }
33285          } catch (t6) {
33286            e5 = { error: t6 };
33287          } finally {
33288            try {
33289              o2 && !o2.done && (t5 = i2.return) && t5.call(i2);
33290            } finally {
33291              if (e5)
33292                throw e5.error;
33293            }
33294          }
33295          if (r4)
33296            return r4;
33297          var s2 = this.consensusAlgorithm();
33298          return this._chainParams.consensus[s2];
33299        }, t4.prototype.copy = function() {
33300          return Object.assign(Object.create(Object.getPrototypeOf(this)), this);
33301        }, t4;
33302      }(p2.EventEmitter);
33303      t3.default = w2;
33304    }, 4383: (e3, t3, r3) => {
33305      var n2 = Object.create ? function(e4, t4, r4, n3) {
33306        void 0 === n3 && (n3 = r4), Object.defineProperty(e4, n3, { enumerable: true, get: function() {
33307          return t4[r4];
33308        } });
33309      } : function(e4, t4, r4, n3) {
33310        void 0 === n3 && (n3 = r4), e4[n3] = t4[r4];
33311      }, i = Object.create ? function(e4, t4) {
33312        Object.defineProperty(e4, "default", { enumerable: true, value: t4 });
33313      } : function(e4, t4) {
33314        e4.default = t4;
33315      }, o = function(e4, t4) {
33316        var r4 = "function" == typeof Symbol && e4[Symbol.iterator];
33317        if (!r4)
33318          return e4;
33319        var n3, i2, o2 = r4.call(e4), a2 = [];
33320        try {
33321          for (; (void 0 === t4 || t4-- > 0) && !(n3 = o2.next()).done; )
33322            a2.push(n3.value);
33323        } catch (e5) {
33324          i2 = { error: e5 };
33325        } finally {
33326          try {
33327            n3 && !n3.done && (r4 = o2.return) && r4.call(o2);
33328          } finally {
33329            if (i2)
33330              throw i2.error;
33331          }
33332        }
33333        return a2;
33334      };
33335      Object.defineProperty(t3, "__esModule", { value: true }), t3.BaseTransaction = void 0;
33336      var a = function(e4) {
33337        if (e4 && e4.__esModule)
33338          return e4;
33339        var t4 = {};
33340        if (null != e4)
33341          for (var r4 in e4)
33342            "default" !== r4 && Object.prototype.hasOwnProperty.call(e4, r4) && n2(t4, e4, r4);
33343        return i(t4, e4), t4;
33344      }(r3(3863)), s = r3(3062), u2 = r3(7325), c2 = function() {
33345        function e4(e5) {
33346          this.cache = { hash: void 0 }, this.activeCapabilities = [], this.DEFAULT_CHAIN = a.Chain.Mainnet, this.DEFAULT_HARDFORK = a.Hardfork.Istanbul;
33347          var t4 = e5.nonce, r4 = e5.gasLimit, n3 = e5.to, i2 = e5.value, o2 = e5.data, u3 = e5.v, c3 = e5.r, f2 = e5.s, d2 = e5.type;
33348          this._type = new s.BN((0, s.toBuffer)(d2)).toNumber();
33349          var l2 = (0, s.toBuffer)("" === n3 ? "0x" : n3), h2 = (0, s.toBuffer)("" === u3 ? "0x" : u3), p2 = (0, s.toBuffer)("" === c3 ? "0x" : c3), b2 = (0, s.toBuffer)("" === f2 ? "0x" : f2);
33350          this.nonce = new s.BN((0, s.toBuffer)("" === t4 ? "0x" : t4)), this.gasLimit = new s.BN((0, s.toBuffer)("" === r4 ? "0x" : r4)), this.to = l2.length > 0 ? new s.Address(l2) : void 0, this.value = new s.BN((0, s.toBuffer)("" === i2 ? "0x" : i2)), this.data = (0, s.toBuffer)("" === o2 ? "0x" : o2), this.v = h2.length > 0 ? new s.BN(h2) : void 0, this.r = p2.length > 0 ? new s.BN(p2) : void 0, this.s = b2.length > 0 ? new s.BN(b2) : void 0, this._validateCannotExceedMaxInteger({ nonce: this.nonce, gasLimit: this.gasLimit, value: this.value, r: this.r, s: this.s });
33351        }
33352        return Object.defineProperty(e4.prototype, "transactionType", { get: function() {
33353          return this.type;
33354        }, enumerable: false, configurable: true }), Object.defineProperty(e4.prototype, "type", { get: function() {
33355          return this._type;
33356        }, enumerable: false, configurable: true }), e4.prototype.supports = function(e5) {
33357          return this.activeCapabilities.includes(e5);
33358        }, e4.prototype.validate = function(e5) {
33359          void 0 === e5 && (e5 = false);
33360          var t4 = [];
33361          return this.getBaseFee().gt(this.gasLimit) && t4.push("gasLimit is too low. given " + this.gasLimit + ", need at least " + this.getBaseFee()), this.isSigned() && !this.verifySignature() && t4.push("Invalid Signature"), e5 ? t4 : 0 === t4.length;
33362        }, e4.prototype.getBaseFee = function() {
33363          var e5 = this.getDataFee().addn(this.common.param("gasPrices", "tx"));
33364          return this.common.gteHardfork("homestead") && this.toCreationAddress() && e5.iaddn(this.common.param("gasPrices", "txCreation")), e5;
33365        }, e4.prototype.getDataFee = function() {
33366          for (var e5 = this.common.param("gasPrices", "txDataZero"), t4 = this.common.param("gasPrices", "txDataNonZero"), r4 = 0, n3 = 0; n3 < this.data.length; n3++)
33367            0 === this.data[n3] ? r4 += e5 : r4 += t4;
33368          return new s.BN(r4);
33369        }, e4.prototype.toCreationAddress = function() {
33370          return void 0 === this.to || 0 === this.to.buf.length;
33371        }, e4.prototype.isSigned = function() {
33372          var e5 = this, t4 = e5.v, r4 = e5.r, n3 = e5.s;
33373          return 0 === this.type ? !!(t4 && r4 && n3) : !(void 0 === t4 || !r4 || !n3);
33374        }, e4.prototype.verifySignature = function() {
33375          try {
33376            var e5 = this.getSenderPublicKey();
33377            return 0 !== (0, s.unpadBuffer)(e5).length;
33378          } catch (e6) {
33379            return false;
33380          }
33381        }, e4.prototype.getSenderAddress = function() {
33382          return new s.Address((0, s.publicToAddress)(this.getSenderPublicKey()));
33383        }, e4.prototype.sign = function(e5) {
33384          if (32 !== e5.length)
33385            throw new Error("Private key must be 32 bytes in length.");
33386          var t4 = false;
33387          0 === this.type && this.common.gteHardfork("spuriousDragon") && !this.supports(u2.Capability.EIP155ReplayProtection) && (this.activeCapabilities.push(u2.Capability.EIP155ReplayProtection), t4 = true);
33388          var r4 = this.getMessageToSign(true), n3 = (0, s.ecsign)(r4, e5), i2 = n3.v, o2 = n3.r, a2 = n3.s, c3 = this._processSignature(i2, o2, a2);
33389          if (t4) {
33390            var f2 = this.activeCapabilities.indexOf(u2.Capability.EIP155ReplayProtection);
33391            f2 > -1 && this.activeCapabilities.splice(f2, 1);
33392          }
33393          return c3;
33394        }, e4.prototype._getCommon = function(e5, t4) {
33395          var r4;
33396          if (t4) {
33397            var n3 = new s.BN((0, s.toBuffer)(t4));
33398            if (e5) {
33399              if (!e5.chainIdBN().eq(n3))
33400                throw new Error("The chain ID does not match the chain ID of Common");
33401              return e5.copy();
33402            }
33403            return a.default.isSupportedChainId(n3) ? new a.default({ chain: n3, hardfork: this.DEFAULT_HARDFORK }) : a.default.forCustomChain(this.DEFAULT_CHAIN, { name: "custom-chain", networkId: n3, chainId: n3 }, this.DEFAULT_HARDFORK);
33404          }
33405          return null !== (r4 = null == e5 ? void 0 : e5.copy()) && void 0 !== r4 ? r4 : new a.default({ chain: this.DEFAULT_CHAIN, hardfork: this.DEFAULT_HARDFORK });
33406        }, e4.prototype._validateCannotExceedMaxInteger = function(e5, t4) {
33407          var r4, n3;
33408          void 0 === t4 && (t4 = 53);
33409          try {
33410            for (var i2 = function(e6) {
33411              var t5 = "function" == typeof Symbol && Symbol.iterator, r5 = t5 && e6[t5], n4 = 0;
33412              if (r5)
33413                return r5.call(e6);
33414              if (e6 && "number" == typeof e6.length)
33415                return { next: function() {
33416                  return e6 && n4 >= e6.length && (e6 = void 0), { value: e6 && e6[n4++], done: !e6 };
33417                } };
33418              throw new TypeError(t5 ? "Object is not iterable." : "Symbol.iterator is not defined.");
33419            }(Object.entries(e5)), a2 = i2.next(); !a2.done; a2 = i2.next()) {
33420              var u3 = o(a2.value, 2), c3 = u3[0], f2 = u3[1];
33421              if (53 === t4) {
33422                if (null == f2 ? void 0 : f2.gt(s.MAX_INTEGER))
33423                  throw new Error(c3 + " cannot exceed MAX_INTEGER, given " + f2);
33424              } else {
33425                if (256 !== t4)
33426                  throw new Error("unimplemented bits value");
33427                if (null == f2 ? void 0 : f2.gte(s.TWO_POW256))
33428                  throw new Error(c3 + " must be less than 2^256, given " + f2);
33429              }
33430            }
33431          } catch (e6) {
33432            r4 = { error: e6 };
33433          } finally {
33434            try {
33435              a2 && !a2.done && (n3 = i2.return) && n3.call(i2);
33436            } finally {
33437              if (r4)
33438                throw r4.error;
33439            }
33440          }
33441        }, e4;
33442      }();
33443      t3.BaseTransaction = c2;
33444    }, 660: (e3, t3, r3) => {
33445      var n2, i = r3(9033).Buffer, o = (n2 = function(e4, t4) {
33446        return n2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e5, t5) {
33447          e5.__proto__ = t5;
33448        } || function(e5, t5) {
33449          for (var r4 in t5)
33450            Object.prototype.hasOwnProperty.call(t5, r4) && (e5[r4] = t5[r4]);
33451        }, n2(e4, t4);
33452      }, function(e4, t4) {
33453        if ("function" != typeof t4 && null !== t4)
33454          throw new TypeError("Class extends value " + String(t4) + " is not a constructor or null");
33455        function r4() {
33456          this.constructor = e4;
33457        }
33458        n2(e4, t4), e4.prototype = null === t4 ? Object.create(t4) : (r4.prototype = t4.prototype, new r4());
33459      }), a = function() {
33460        return a = Object.assign || function(e4) {
33461          for (var t4, r4 = 1, n3 = arguments.length; r4 < n3; r4++)
33462            for (var i2 in t4 = arguments[r4])
33463              Object.prototype.hasOwnProperty.call(t4, i2) && (e4[i2] = t4[i2]);
33464          return e4;
33465        }, a.apply(this, arguments);
33466      };
33467      Object.defineProperty(t3, "__esModule", { value: true });
33468      var s = r3(3062), u2 = r3(4383), c2 = r3(7325), f2 = r3(3789), d2 = i.from(2 .toString(16).padStart(2, "0"), "hex"), l2 = function(e4) {
33469        function t4(t5, r4) {
33470          var n3, i2;
33471          void 0 === r4 && (r4 = {});
33472          var o2 = e4.call(this, a(a({}, t5), { type: 2 })) || this;
33473          o2.DEFAULT_HARDFORK = "london";
33474          var u3 = t5.chainId, d3 = t5.accessList, l3 = t5.maxFeePerGas, h2 = t5.maxPriorityFeePerGas;
33475          if (o2.common = o2._getCommon(r4.common, u3), o2.chainId = o2.common.chainIdBN(), !o2.common.isActivatedEIP(1559))
33476            throw new Error("EIP-1559 not enabled on Common");
33477          o2.activeCapabilities = o2.activeCapabilities.concat([1559, 2718, 2930]);
33478          var p2 = f2.AccessLists.getAccessListData(null != d3 ? d3 : []);
33479          if (o2.accessList = p2.accessList, o2.AccessListJSON = p2.AccessListJSON, f2.AccessLists.verifyAccessList(o2.accessList), o2.maxFeePerGas = new s.BN((0, s.toBuffer)("" === l3 ? "0x" : l3)), o2.maxPriorityFeePerGas = new s.BN((0, s.toBuffer)("" === h2 ? "0x" : h2)), o2._validateCannotExceedMaxInteger({ maxFeePerGas: o2.maxFeePerGas, maxPriorityFeePerGas: o2.maxPriorityFeePerGas }, 256), o2.maxFeePerGas.lt(o2.maxPriorityFeePerGas))
33480            throw new Error("maxFeePerGas cannot be less than maxPriorityFeePerGas (The total must be the larger of the two)");
33481          if (o2.v && !o2.v.eqn(0) && !o2.v.eqn(1))
33482            throw new Error("The y-parity of the transaction should either be 0 or 1");
33483          if (o2.common.gteHardfork("homestead") && (null === (n3 = o2.s) || void 0 === n3 ? void 0 : n3.gt(c2.N_DIV_2)))
33484            throw new Error("Invalid Signature: s-values greater than secp256k1n/2 are considered invali
33484d");
33485          return (null === (i2 = null == r4 ? void 0 : r4.freeze) || void 0 === i2 || i2) && Object.freeze(o2), o2;
33486        }
33487        return o(t4, e4), Object.defineProperty(t4.prototype, "senderR", { get: function() {
33488          return this.r;
33489        }, enumerable: false, configurable: true }), Object.defineProperty(t4.prototype, "senderS", { get: function() {
33490          return this.s;
33491        }, enumerable: false, configurable: true }), Object.defineProperty(t4.prototype, "yParity", { get: function() {
33492          return this.v;
33493        }, enumerable: false, configurable: true }), t4.fromTxData = function(e5, r4) {
33494          return void 0 === r4 && (r4 = {}), new t4(e5, r4);
33495        }, t4.fromSerializedTx = function(e5, r4) {
33496          if (void 0 === r4 && (r4 = {}), !e5.slice(0, 1).equals(d2))
33497            throw new Error("Invalid serialized tx input: not an EIP-1559 transaction (wrong tx type, expected: 2, received: " + e5.slice(0, 1).toString("hex"));
33498          var n3 = s.rlp.decode(e5.slice(1));
33499          if (!Array.isArray(n3))
33500            throw new Error("Invalid serialized tx input: must be array");
33501          return t4.fromValuesArray(n3, r4);
33502        }, t4.fromRlpSerializedTx = function(e5, r4) {
33503          return void 0 === r4 && (r4 = {}), t4.fromSerializedTx(e5, r4);
33504        }, t4.fromValuesArray = function(e5, r4) {
33505          if (void 0 === r4 && (r4 = {}), 9 !== e5.length && 12 !== e5.length)
33506            throw new Error("Invalid EIP-1559 transaction. Only expecting 9 values (for unsigned tx) or 12 values (for signed tx).");
33507          var n3 = function(e6, t5) {
33508            var r5 = "function" == typeof Symbol && e6[Symbol.iterator];
33509            if (!r5)
33510              return e6;
33511            var n4, i3, o3 = r5.call(e6), a3 = [];
33512            try {
33513              for (; (void 0 === t5 || t5-- > 0) && !(n4 = o3.next()).done; )
33514                a3.push(n4.value);
33515            } catch (e7) {
33516              i3 = { error: e7 };
33517            } finally {
33518              try {
33519                n4 && !n4.done && (r5 = o3.return) && r5.call(o3);
33520              } finally {
33521                if (i3)
33522                  throw i3.error;
33523              }
33524            }
33525            return a3;
33526          }(e5, 12), i2 = n3[0], o2 = n3[1], a2 = n3[2], u3 = n3[3], c3 = n3[4], f3 = n3[5], d3 = n3[6], l3 = n3[7], h2 = n3[8], p2 = n3[9], b2 = n3[10], y2 = n3[11];
33527          return new t4({ chainId: new s.BN(i2), nonce: o2, maxPriorityFeePerGas: a2, maxFeePerGas: u3, gasLimit: c3, to: f3, value: d3, data: l3, accessList: null != h2 ? h2 : [], v: void 0 !== p2 ? new s.BN(p2) : void 0, r: b2, s: y2 }, r4);
33528        }, t4.prototype.getDataFee = function() {
33529          var t5 = e4.prototype.getDataFee.call(this);
33530          return t5.iaddn(f2.AccessLists.getDataFeeEIP2930(this.accessList, this.common)), t5;
33531        }, t4.prototype.getUpfrontCost = function(e5) {
33532          void 0 === e5 && (e5 = new s.BN(0));
33533          var t5 = s.BN.min(this.maxPriorityFeePerGas, this.maxFeePerGas.sub(e5)).add(e5);
33534          return this.gasLimit.mul(t5).add(this.value);
33535        }, t4.prototype.raw = function() {
33536          return [(0, s.bnToUnpaddedBuffer)(this.chainId), (0, s.bnToUnpaddedBuffer)(this.nonce), (0, s.bnToUnpaddedBuffer)(this.maxPriorityFeePerGas), (0, s.bnToUnpaddedBuffer)(this.maxFeePerGas), (0, s.bnToUnpaddedBuffer)(this.gasLimit), void 0 !== this.to ? this.to.buf : i.from([]), (0, s.bnToUnpaddedBuffer)(this.value), this.data, this.accessList, void 0 !== this.v ? (0, s.bnToUnpaddedBuffer)(this.v) : i.from([]), void 0 !== this.r ? (0, s.bnToUnpaddedBuffer)(this.r) : i.from([]), void 0 !== this.s ? (0, s.bnToUnpaddedBuffer)(this.s) : i.from([])];
33537        }, t4.prototype.serialize = function() {
33538          var e5 = this.raw();
33539          return i.concat([d2, s.rlp.encode(e5)]);
33540        }, t4.prototype.getMessageToSign = function(e5) {
33541          void 0 === e5 && (e5 = true);
33542          var t5 = this.raw().slice(0, 9), r4 = i.concat([d2, s.rlp.encode(t5)]);
33543          return e5 ? (0, s.keccak256)(r4) : r4;
33544        }, t4.prototype.hash = function() {
33545          if (!this.isSigned())
33546            throw new Error("Cannot call hash method if transaction is not signed");
33547          return Object.isFrozen(this) ? (this.cache.hash || (this.cache.hash = (0, s.keccak256)(this.serialize())), this.cache.hash) : (0, s.keccak256)(this.serialize());
33548        }, t4.prototype.getMessageToVerifySignature = function() {
33549          return this.getMessageToSign();
33550        }, t4.prototype.getSenderPublicKey = function() {
33551          var e5;
33552          if (!this.isSigned())
33553            throw new Error("Cannot call this method if transaction is not signed");
33554          var t5 = this.getMessageToVerifySignature();
33555          if (this.common.gteHardfork("homestead") && (null === (e5 = this.s) || void 0 === e5 ? void 0 : e5.gt(c2.N_DIV_2)))
33556            throw new Error("Invalid Signature: s-values greater than secp256k1n/2 are considered invali
33556d");
33557          var r4 = this, n3 = r4.v, i2 = r4.r, o2 = r4.s;
33558          try {
33559            return (0, s.ecrecover)(t5, n3.addn(27), (0, s.bnToUnpaddedBuffer)(i2), (0, s.bnToUnpaddedBuffer)(o2));
33560          } catch (e6) {
33561            throw new Error("Invalid Signature");
33562          }
33563        }, t4.prototype._processSignature = function(e5, r4, n3) {
33564          var i2 = { common: this.common };
33565          return t4.fromTxData({ chainId: this.chainId, nonce: this.nonce, maxPriorityFeePerGas: this.maxPriorityFeePerGas, maxFeePerGas: this.maxFeePerGas, gasLimit: this.gasLimit, to: this.to, value: this.value, data: this.data, accessList: this.accessList, v: new s.BN(e5 - 27), r: new s.BN(r4), s: new s.BN(n3) }, i2);
33566        }, t4.prototype.toJSON = function() {
33567          var e5 = f2.AccessLists.getAccessListJSON(this.accessList);
33568          return { chainId: (0, s.bnToHex)(this.chainId), nonce: (0, s.bnToHex)(this.nonce), maxPriorityFeePerGas: (0, s.bnToHex)(this.maxPriorityFeePerGas), maxFeePerGas: (0, s.bnToHex)(this.maxFeePerGas), gasLimit: (0, s.bnToHex)(this.gasLimit), to: void 0 !== this.to ? this.to.toString() : void 0, value: (0, s.bnToHex)(this.value), data: "0x" + this.data.toString("hex"), accessList: e5, v: void 0 !== this.v ? (0, s.bnToHex)(this.v) : void 0, r: void 0 !== this.r ? (0, s.bnToHex)(this.r) : void 0, s: void 0 !== this.s ? (0, s.bnToHex)(this.s) : void 0 };
33569        }, t4;
33570      }(u2.BaseTransaction);
33571      t3.default = l2;
33572    }, 7613: (e3, t3, r3) => {
33573      var n2, i = r3(9033).Buffer, o = (n2 = function(e4, t4) {
33574        return n2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e5, t5) {
33575          e5.__proto__ = t5;
33576        } || function(e5, t5) {
33577          for (var r4 in t5)
33578            Object.prototype.hasOwnProperty.call(t5, r4) && (e5[r4] = t5[r4]);
33579        }, n2(e4, t4);
33580      }, function(e4, t4) {
33581        if ("function" != typeof t4 && null !== t4)
33582          throw new TypeError("Class extends value " + String(t4) + " is not a constructor or null");
33583        function r4() {
33584          this.constructor = e4;
33585        }
33586        n2(e4, t4), e4.prototype = null === t4 ? Object.create(t4) : (r4.prototype = t4.prototype, new r4());
33587      }), a = function() {
33588        return a = Object.assign || function(e4) {
33589          for (var t4, r4 = 1, n3 = arguments.length; r4 < n3; r4++)
33590            for (var i2 in t4 = arguments[r4])
33591              Object.prototype.hasOwnProperty.call(t4, i2) && (e4[i2] = t4[i2]);
33592          return e4;
33593        }, a.apply(this, arguments);
33594      };
33595      Object.defineProperty(t3, "__esModule", { value: true });
33596      var s = r3(3062), u2 = r3(4383), c2 = r3(7325), f2 = r3(3789), d2 = i.from(1 .toString(16).padStart(2, "0"), "hex"), l2 = function(e4) {
33597        function t4(t5, r4) {
33598          var n3, i2;
33599          void 0 === r4 && (r4 = {});
33600          var o2 = e4.call(this, a(a({}, t5), { type: 1 })) || this;
33601          o2.DEFAULT_HARDFORK = "berlin";
33602          var u3 = t5.chainId, d3 = t5.accessList, l3 = t5.gasPrice;
33603          if (o2.common = o2._getCommon(r4.common, u3), o2.chainId = o2.common.chainIdBN(), !o2.common.isActivatedEIP(2930))
33604            throw new Error("EIP-2930 not enabled on Common");
33605          o2.activeCapabilities = o2.activeCapabilities.concat([2718, 2930]);
33606          var h2 = f2.AccessLists.getAccessListData(null != d3 ? d3 : []);
33607          if (o2.accessList = h2.accessList, o2.AccessListJSON = h2.AccessListJSON, f2.AccessLists.verifyAccessList(o2.accessList), o2.gasPrice = new s.BN((0, s.toBuffer)("" === l3 ? "0x" : l3)), o2._validateCannotExceedMaxInteger({ gasPrice: o2.gasPrice }), o2.v && !o2.v.eqn(0) && !o2.v.eqn(1))
33608            throw new Error("The y-parity of the transaction should either be 0 or 1");
33609          if (o2.common.gteHardfork("homestead") && (null === (n3 = o2.s) || void 0 === n3 ? void 0 : n3.gt(c2.N_DIV_2)))
33610            throw new Error("Invalid Signature: s-values greater than secp256k1n/2 are considered invali
33610d");
33611          return (null === (i2 = null == r4 ? void 0 : r4.freeze) || void 0 === i2 || i2) && Object.freeze(o2), o2;
33612        }
33613        return o(t4, e4), Object.defineProperty(t4.prototype, "senderR", { get: function() {
33614          return this.r;
33615        }, enumerable: false, configurable: true }), Object.defineProperty(t4.prototype, "senderS", { get: function() {
33616          return this.s;
33617        }, enumerable: false, configurable: true }), Object.defineProperty(t4.prototype, "yParity", { get: function() {
33618          return this.v;
33619        }, enumerable: false, configurable: true }), t4.fromTxData = function(e5, r4) {
33620          return void 0 === r4 && (r4 = {}), new t4(e5, r4);
33621        }, t4.fromSerializedTx = function(e5, r4) {
33622          if (void 0 === r4 && (r4 = {}), !e5.slice(0, 1).equals(d2))
33623            throw new Error("Invalid serialized tx input: not an EIP-2930 transaction (wrong tx type, expected: 1, received: " + e5.slice(0, 1).toString("hex"));
33624          var n3 = s.rlp.decode(e5.slice(1));
33625          if (!Array.isArray(n3))
33626            throw new Error("Invalid serialized tx input: must be array");
33627          return t4.fromValuesArray(n3, r4);
33628        }, t4.fromRlpSerializedTx = function(e5, r4) {
33629          return void 0 === r4 && (r4 = {}), t4.fromSerializedTx(e5, r4);
33630        }, t4.fromValuesArray = function(e5, r4) {
33631          if (void 0 === r4 && (r4 = {}), 8 !== e5.length && 11 !== e5.length)
33632            throw new Error("Invalid EIP-2930 transaction. Only expecting 8 values (for unsigned tx) or 11 values (for signed tx).");
33633          var n3 = function(e6, t5) {
33634            var r5 = "function" == typeof Symbol && e6[Symbol.iterator];
33635            if (!r5)
33636              return e6;
33637            var n4, i3, o3 = r5.call(e6), a3 = [];
33638            try {
33639              for (; (void 0 === t5 || t5-- > 0) && !(n4 = o3.next()).done; )
33640                a3.push(n4.value);
33641            } catch (e7) {
33642              i3 = { error: e7 };
33643            } finally {
33644              try {
33645                n4 && !n4.done && (r5 = o3.return) && r5.call(o3);
33646              } finally {
33647                if (i3)
33648                  throw i3.error;
33649              }
33650            }
33651            return a3;
33652          }(e5, 11), i2 = n3[0], o2 = n3[1], a2 = n3[2], u3 = n3[3], c3 = n3[4], f3 = n3[5], d3 = n3[6], l3 = n3[7], h2 = n3[8], p2 = n3[9], b2 = n3[10];
33653          return new t4({ chainId: new s.BN(i2), nonce: o2, gasPrice: a2, gasLimit: u3, to: c3, value: f3, data: d3, accessList: null != l3 ? l3 : [], v: void 0 !== h2 ? new s.BN(h2) : void 0, r: p2, s: b2 }, r4);
33654        }, t4.prototype.getDataFee = function() {
33655          var t5 = e4.prototype.getDataFee.call(this);
33656          return t5.iaddn(f2.AccessLists.getDataFeeEIP2930(this.accessList, this.common)), t5;
33657        }, t4.prototype.getUpfrontCost = function() {
33658          return this.gasLimit.mul(this.gasPrice).add(this.value);
33659        }, t4.prototype.raw = function() {
33660          return [(0, s.bnToUnpaddedBuffer)(this.chainId), (0, s.bnToUnpaddedBuffer)(this.nonce), (0, s.bnToUnpaddedBuffer)(this.gasPrice), (0, s.bnToUnpaddedBuffer)(this.gasLimit), void 0 !== this.to ? this.to.buf : i.from([]), (0, s.bnToUnpaddedBuffer)(this.value), this.data, this.accessList, void 0 !== this.v ? (0, s.bnToUnpaddedBuffer)(this.v) : i.from([]), void 0 !== this.r ? (0, s.bnToUnpaddedBuffer)(this.r) : i.from([]), void 0 !== this.s ? (0, s.bnToUnpaddedBuffer)(this.s) : i.from([])];
33661        }, t4.prototype.serialize = function() {
33662          var e5 = this.raw();
33663          return i.concat([d2, s.rlp.encode(e5)]);
33664        }, t4.prototype.getMessageToSign = function(e5) {
33665          void 0 === e5 && (e5 = true);
33666          var t5 = this.raw().slice(0, 8), r4 = i.concat([d2, s.rlp.encode(t5)]);
33667          return e5 ? (0, s.keccak256)(r4) : r4;
33668        }, t4.prototype.hash = function() {
33669          if (!this.isSigned())
33670            throw new Error("Cannot call hash method if transaction is not signed");
33671          return Object.isFrozen(this) ? (this.cache.hash || (this.cache.hash = (0, s.keccak256)(this.serialize())), this.cache.hash) : (0, s.keccak256)(this.serialize());
33672        }, t4.prototype.getMessageToVerifySignature = function() {
33673          return this.getMessageToSign();
33674        }, t4.prototype.getSenderPublicKey = function() {
33675          var e5;
33676          if (!this.isSigned())
33677            throw new Error("Cannot call this method if transaction is not signed");
33678          var t5 = this.getMessageToVerifySignature();
33679          if (this.common.gteHardfork("homestead") && (null === (e5 = this.s) || void 0 === e5 ? void 0 : e5.gt(c2.N_DIV_2)))
33680            throw new Error("Invalid Signature: s-values greater than secp256k1n/2 are considered invali
33680d");
33681          var r4 = this, n3 = r4.yParity, i2 = r4.r, o2 = r4.s;
33682          try {
33683            return (0, s.ecrecover)(t5, n3.addn(27), (0, s.bnToUnpaddedBuffer)(i2), (0, s.bnToUnpaddedBuffer)(o2));
33684          } catch (e6) {
33685            throw new Error("Invalid Signature");
33686          }
33687        }, t4.prototype._processSignature = function(e5, r4, n3) {
33688          var i2 = { common: this.common };
33689          return t4.fromTxData({ chainId: this.chainId, nonce: this.nonce, gasPrice: this.gasPrice, gasLimit: this.gasLimit, to: this.to, value: this.value, data: this.data, accessList: this.accessList, v: new s.BN(e5 - 27), r: new s.BN(r4), s: new s.BN(n3) }, i2);
33690        }, t4.prototype.toJSON = function() {
33691          var e5 = f2.AccessLists.getAccessListJSON(this.accessList);
33692          return { chainId: (0, s.bnToHex)(this.chainId), nonce: (0, s.bnToHex)(this.nonce), gasPrice: (0, s.bnToHex)(this.gasPrice), gasLimit: (0, s.bnToHex)(this.gasLimit), to: void 0 !== this.to ? this.to.toString() : void 0, value: (0, s.bnToHex)(this.value), data: "0x" + this.data.toString("hex"), accessList: e5, v: void 0 !== this.v ? (0, s.bnToHex)(this.v) : void 0, r: void 0 !== this.r ? (0, s.bnToHex)(this.r) : void 0, s: void 0 !== this.s ? (0, s.bnToHex)(this.s) : void 0 };
33693        }, t4;
33694      }(u2.BaseTransaction);
33695      t3.default = l2;
33696    }, 2339: (e3, t3, r3) => {
33697      var n2 = Object.create ? function(e4, t4, r4, n3) {
33698        void 0 === n3 && (n3 = r4), Object.defineProperty(e4, n3, { enumerable: true, get: function() {
33699          return t4[r4];
33700        } });
33701      } : function(e4, t4, r4, n3) {
33702        void 0 === n3 && (n3 = r4), e4[n3] = t4[r4];
33703      }, i = function(e4) {
33704        return e4 && e4.__esModule ? e4 : { default: e4 };
33705      };
33706      Object.defineProperty(t3, "__esModule", { value: true }), t3.FeeMarketEIP1559Transaction = t3.TransactionFactory = t3.AccessListEIP2930Transaction = t3.Transaction = void 0;
33707      var o = r3(3088);
33708      Object.defineProperty(t3, "Transaction", { enumerable: true, get: function() {
33709        return i(o).default;
33710      } });
33711      var a = r3(7613);
33712      Object.defineProperty(t3, "AccessListEIP2930Transaction", { enumerable: true, get: function() {
33713        return i(a).default;
33714      } });
33715      var s = r3(9562);
33716      Object.defineProperty(t3, "TransactionFactory", { enumerable: true, get: function() {
33717        return i(s).default;
33718      } });
33719      var u2 = r3(660);
33720      Object.defineProperty(t3, "FeeMarketEIP1559Transaction", { enumerable: true, get: function() {
33721        return i(u2).default;
33722      } }), function(e4, t4) {
33723        for (var r4 in e4)
33724          "default" === r4 || Object.prototype.hasOwnProperty.call(t4, r4) || n2(t4, e4, r4);
33725      }(r3(7325), t3);
33726    }, 3088: (e3, t3, r3) => {
33727      var n2, i = r3(9033).Buffer, o = (n2 = function(e4, t4) {
33728        return n2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e5, t5) {
33729          e5.__proto__ = t5;
33730        } || function(e5, t5) {
33731          for (var r4 in t5)
33732            Object.prototype.hasOwnProperty.call(t5, r4) && (e5[r4] = t5[r4]);
33733        }, n2(e4, t4);
33734      }, function(e4, t4) {
33735        if ("function" != typeof t4 && null !== t4)
33736          throw new TypeError("Class extends value " + String(t4) + " is not a constructor or null");
33737        function r4() {
33738          this.constructor = e4;
33739        }
33740        n2(e4, t4), e4.prototype = null === t4 ? Object.create(t4) : (r4.prototype = t4.prototype, new r4());
33741      }), a = function() {
33742        return a = Object.assign || function(e4) {
33743          for (var t4, r4 = 1, n3 = arguments.length; r4 < n3; r4++)
33744            for (var i2 in t4 = arguments[r4])
33745              Object.prototype.hasOwnProperty.call(t4, i2) && (e4[i2] = t4[i2]);
33746          return e4;
33747        }, a.apply(this, arguments);
33748      };
33749      Object.defineProperty(t3, "__esModule", { value: true });
33750      var s = r3(3062), u2 = r3(7325), c2 = function(e4) {
33751        function t4(t5, r4) {
33752          var n3;
33753          void 0 === r4 && (r4 = {});
33754          var i2 = e4.call(this, a(a({}, t5), { type: 0 })) || this;
33755          if (i2.common = i2._validateTxV(i2.v, r4.common), i2.gasPrice = new s.BN((0, s.toBuffer)("" === t5.gasPrice ? "0x" : t5.gasPrice)), i2._validateCannotExceedMaxInteger({ gasPrice: i2.gasPrice }), i2.common.gteHardfork("spuriousDragon"))
33756            if (i2.isSigned()) {
33757              var o2 = i2.v, c3 = i2.common.chainIdBN().muln(2);
33758              (o2.eq(c3.addn(35)) || o2.eq(c3.addn(36))) && i2.activeCapabilities.push(u2.Capability.EIP155ReplayProtection);
33759            } else
33760              i2.activeCapabilities.push(u2.Capability.EIP155ReplayProtection);
33761          return (null === (n3 = null == r4 ? void 0 : r4.freeze) || void 0 === n3 || n3) && Object.freeze(i2), i2;
33762        }
33763        return o(t4, e4), t4.fromTxData = function(e5, r4) {
33764          return void 0 === r4 && (r4 = {}), new t4(e5, r4);
33765        }, t4.fromSerializedTx = function(e5, t5) {
33766          void 0 === t5 && (t5 = {});
33767          var r4 = s.rlp.decode(e5);
33768          if (!Array.isArray(r4))
33769            throw new Error("Invalid serialized tx input. Must be array");
33770          return this.fromValuesArray(r4, t5);
33771        }, t4.fromRlpSerializedTx = function(e5, r4) {
33772          return void 0 === r4 && (r4 = {}), t4.fromSerializedTx(e5, r4);
33773        }, t4.fromValuesArray = function(e5, r4) {
33774          if (void 0 === r4 && (r4 = {}), 6 !== e5.length && 9 !== e5.length)
33775            throw new Error("Invalid transaction. Only expecting 6 values (for unsigned tx) or 9 values (for signed tx).");
33776          var n3 = function(e6, t5) {
33777            var r5 = "function" == typeof Symbol && e6[Symbol.iterator];
33778            if (!r5)
33779              return e6;
33780            var n4, i2, o2 = r5.call(e6), a2 = [];
33781            try {
33782              for (; (void 0 === t5 || t5-- > 0) && !(n4 = o2.next()).done; )
33783                a2.push(n4.value);
33784            } catch (e7) {
33785              i2 = { error: e7 };
33786            } finally {
33787              try {
33788                n4 && !n4.done && (r5 = o2.return) && r5.call(o2);
33789              } finally {
33790                if (i2)
33791                  throw i2.error;
33792              }
33793            }
33794            return a2;
33795          }(e5, 9);
33796          return new t4({ nonce: n3[0], gasPrice: n3[1], gasLimit: n3[2], to: n3[3], value: n3[4], data: n3[5], v: n3[6], r: n3[7], s: n3[8] }, r4);
33797        }, t4.prototype.raw = function() {
33798          return [(0, s.bnToUnpaddedBuffer)(this.nonce), (0, s.bnToUnpaddedBuffer)(this.gasPrice), (0, s.bnToUnpaddedBuffer)(this.gasLimit), void 0 !== this.to ? this.to.buf : i.from([]), (0, s.bnToUnpaddedBuffer)(this.value), this.data, void 0 !== this.v ? (0, s.bnToUnpaddedBuffer)(this.v) : i.from([]), void 0 !== this.r ? (0, s.bnToUnpaddedBuffer)(this.r) : i.from([]), void 0 !== this.s ? (0, s.bnToUnpaddedBuffer)(this.s) : i.from([])];
33799        }, t4.prototype.serialize = function() {
33800          return s.rlp.encode(this.raw());
33801        }, t4.prototype._getMessageToSign = function() {
33802          var e5 = [(0, s.bnToUnpaddedBuffer)(this.nonce), (0, s.bnToUnpaddedBuffer)(this.gasPrice), (0, s.bnToUnpaddedBuffer)(this.gasLimit), void 0 !== this.to ? this.to.buf : i.from([]), (0, s.bnToUnpaddedBuffer)(this.value), this.data];
33803          return this.supports(u2.Capability.EIP155ReplayProtection) && (e5.push((0, s.toBuffer)(this.common.chainIdBN())), e5.push((0, s.unpadBuffer)((0, s.toBuffer)(0))), e5.push((0, s.unpadBuffer)((0, s.toBuffer)(0)))), e5;
33804        }, t4.prototype.getMessageToSign = function(e5) {
33805          void 0 === e5 && (e5 = true);
33806          var t5 = this._getMessageToSign();
33807          return e5 ? (0, s.rlphash)(t5) : t5;
33808        }, t4.prototype.getUpfrontCost = function() {
33809          return this.gasLimit.mul(this.gasPrice).add(this.value);
33810        }, t4.prototype.hash = function() {
33811          return Object.isFrozen(this) ? (this.cache.hash || (this.cache.hash = (0, s.rlphash)(this.raw())), this.cache.hash) : (0, s.rlphash)(this.raw());
33812        }, t4.prototype.getMessageToVerifySignature = function() {
33813          if (!this.isSigned())
33814            throw Error("This transaction is not signed");
33815          var e5 = this._getMessageToSign();
33816          return (0, s.rlphash)(e5);
33817        }, t4.prototype.getSenderPublicKey = function() {
33818          var e5, t5 = this.getMessageToVerifySignature();
33819          if (this.common.gteHardfork("homestead") && (null === (e5 = this.s) || void 0 === e5 ? void 0 : e5.gt(u2.N_DIV_2)))
33820            throw new Error("Invalid Signature: s-values greater than secp256k1n/2 are considered invali
33820d");
33821          var r4 = this, n3 = r4.v, i2 = r4.r, o2 = r4.s;
33822          try {
33823            return (0, s.ecrecover)(t5, n3, (0, s.bnToUnpaddedBuffer)(i2), (0, s.bnToUnpaddedBuffer)(o2), this.supports(u2.Capability.EIP155ReplayProtection) ? this.common.chainIdBN() : void 0);
33824          } catch (e6) {
33825            throw new Error("Invalid Signature");
33826          }
33827        }, t4.prototype._processSignature = function(e5, r4, n3) {
33828          var i2 = new s.BN(e5);
33829          this.supports(u2.Capability.EIP155ReplayProtection) && i2.iadd(this.common.chainIdBN().muln(2).addn(8));
33830          var o2 = { common: this.common };
33831          return t4.fromTxData({ nonce: this.nonce, gasPrice: this.gasPrice, gasLimit: this.gasLimit, to: this.to, value: this.value, data: this.data, v: i2, r: new s.BN(r4), s: new s.BN(n3) }, o2);
33832        }, t4.prototype.toJSON = function() {
33833          return { nonce: (0, s.bnToHex)(this.nonce), gasPrice: (0, s.bnToHex)(this.gasPrice), gasLimit: (0, s.bnToHex)(this.gasLimit), to: void 0 !== this.to ? this.to.toString() : void 0, value: (0, s.bnToHex)(this.value), data: "0x" + this.data.toString("hex"), v: void 0 !== this.v ? (0, s.bnToHex)(this.v) : void 0, r: void 0 !== this.r ? (0, s.bnToHex)(this.r) : void 0, s: void 0 !== this.s ? (0, s.bnToHex)(this.s) : void 0 };
33834        }, t4.prototype._validateTxV = function(e5, t5) {
33835          var r4;
33836          if (void 0 !== e5 && !e5.eqn(0) && (!t5 || t5.gteHardfork("spuriousDragon")) && !e5.eqn(27) && !e5.eqn(28))
33837            if (t5) {
33838              var n3 = t5.chainIdBN().muln(2);
33839              if (!e5.eq(n3.addn(35)) && !e5.eq(n3.addn(36)))
33840                throw new Error("Incompatible EIP155-based V " + e5.toString() + " and chain id " + t5.chainIdBN().toString() + ". See the Common parameter of the Transaction constructor to set the chain id.");
33841            } else {
33842              var i2;
33843              i2 = e5.subn(35).isEven() ? 35 : 36, r4 = e5.subn(i2).divn(2);
33844            }
33845          return this._getCommon(t5, r4);
33846        }, t4.prototype._unsignedTxImplementsEIP155 = function() {
33847          return this.common.gteHardfork("spuriousDragon");
33848        }, t4.prototype._signedTxImplementsEIP155 = function() {
33849          if (!this.isSigned())
33850            throw Error("This transaction is not signed");
33851          var e5 = this.common.gteHardfork("spuriousDragon"), t5 = this.v, r4 = this.common.chainIdBN().muln(2);
33852          return (t5.eq(r4.addn(35)) || t5.eq(r4.addn(36))) && e5;
33853        }, t4;
33854      }(r3(4383).BaseTransaction);
33855      t3.default = c2;
33856    }, 9562: (e3, t3, r3) => {
33857      var n2 = r3(9033).Buffer;
33858      Object.defineProperty(t3, "__esModule", { value: true });
33859      var i = r3(3062), o = r3(2339), a = function() {
33860        function e4() {
33861        }
33862        return e4.fromTxData = function(e5, t4) {
33863          if (void 0 === t4 && (t4 = {}), "type" in e5 && void 0 !== e5.type) {
33864            var r4 = new i.BN((0, i.toBuffer)(e5.type)).toNumber();
33865            if (0 === r4)
33866              return o.Transaction.fromTxData(e5, t4);
33867            if (1 === r4)
33868              return o.AccessListEIP2930Transaction.fromTxData(e5, t4);
33869            if (2 === r4)
33870              return o.FeeMarketEIP1559Transaction.fromTxData(e5, t4);
33871            throw new Error("Tx instantiation with type " + r4 + " not supported");
33872          }
33873          return o.Transaction.fromTxData(e5, t4);
33874        }, e4.fromSerializedData = function(e5, t4) {
33875          if (void 0 === t4 && (t4 = {}), e5[0] <= 127) {
33876            var r4 = void 0;
33877            switch (e5[0]) {
33878              case 1:
33879                r4 = 2930;
33880                break;
33881              case 2:
33882                r4 = 1559;
33883                break;
33884              default:
33885                throw new Error("TypedTransaction with ID " + e5[0] + " unknown");
33886            }
33887            return 1559 === r4 ? o.FeeMarketEIP1559Transaction.fromSerializedTx(e5, t4) : o.AccessListEIP2930Transaction.fromSerializedTx(e5, t4);
33888          }
33889          return o.Transaction.fromSerializedTx(e5, t4);
33890        }, e4.fromBlockBodyData = function(e5, t4) {
33891          if (void 0 === t4 && (t4 = {}), n2.isBuffer(e5))
33892            return this.fromSerializedData(e5, t4);
33893          if (Array.isArray(e5))
33894            return o.Transaction.fromValuesArray(e5, t4);
33895          throw new Error("Cannot decode transaction: unknown type input");
33896        }, e4.getTransactionClass = function(e5, t4) {
33897          if (void 0 === e5 && (e5 = 0), 0 == e5 || e5 >= 128 && e5 <= 255)
33898            return o.Transaction;
33899          switch (e5) {
33900            case 1:
33901              return o.AccessListEIP2930Transaction;
33902            case 2:
33903              return o.FeeMarketEIP1559Transaction;
33904            default:
33905              throw new Error("TypedTransaction with ID " + e5 + " unknown");
33906          }
33907        }, e4;
33908      }();
33909      t3.default = a;
33910    }, 7325: (e3, t3, r3) => {
33911      Object.defineProperty(t3, "__esModule", { value: true }), t3.N_DIV_2 = t3.isAccessList = t3.isAccessListBuffer = t3.Capability = void 0;
33912      var n2, i = r3(3062);
33913      function o(e4) {
33914        if (0 === e4.length)
33915          return true;
33916        var t4 = e4[0];
33917        return !!Array.isArray(t4);
33918      }
33919      (n2 = t3.Capability || (t3.Capability = {}))[n2.EIP155ReplayProtection = 155] = "EIP155ReplayProtection", n2[n2.EIP1559FeeMarket = 1559] = "EIP1559FeeMarket", n2[n2.EIP2718TypedTransaction = 2718] = "EIP2718TypedTransaction", n2[n2.EIP2930AccessLists = 2930] = "EIP2930AccessLists", t3.isAccessListBuffer = o, t3.isAccessList = function(e4) {
33920        return !o(e4);
33921      }, t3.N_DIV_2 = new i.BN("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0", 16);
33922    }, 3789: (e3, t3, r3) => {
33923      Object.defineProperty(t3, "__esModule", { value: true }), t3.AccessLists = void 0;
33924      var n2 = r3(3062), i = r3(7325), o = function() {
33925        function e4() {
33926        }
33927        return e4.getAccessListData = function(e5) {
33928          var t4, r4;
33929          if (e5 && (0, i.isAccessList)(e5)) {
33930            t4 = e5;
33931            for (var o2 = [], a = 0; a < e5.length; a++) {
33932              for (var s = e5[a], u2 = (0, n2.toBuffer)(s.address), c2 = [], f2 = 0; f2 < s.storageKeys.length; f2++)
33933                c2.push((0, n2.toBuffer)(s.storageKeys[f2]));
33934              o2.push([u2, c2]);
33935            }
33936            r4 = o2;
33937          } else {
33938            r4 = null != e5 ? e5 : [];
33939            var d2 = [];
33940            for (a = 0; a < r4.length; a++) {
33941              var l2 = r4[a], h2 = (0, n2.bufferToHex)(l2[0]), p2 = [];
33942              for (s = 0; s < l2[1].length; s++)
33943                p2.push((0, n2.bufferToHex)(l2[1][s]));
33944              var b2 = { address: h2, storageKeys: p2 };
33945              d2.push(b2);
33946            }
33947            t4 = d2;
33948          }
33949          return { AccessListJSON: t4, accessList: r4 };
33950        }, e4.verifyAccessList = function(e5) {
33951          for (var t4 = 0; t4 < e5.length; t4++) {
33952            var r4 = e5[t4], n3 = r4[0], i2 = r4[1];
33953            if (void 0 !== r4[2])
33954              throw new Error("Access list item cannot have 3 elements. It can only have an address, and an array of storage slots.");
33955            if (20 != n3.length)
33956              throw new Error("Invalid EIP-2930 transaction: address length should be 20 bytes");
33957            for (var o2 = 0; o2 < i2.length; o2++)
33958              if (32 != i2[o2].length)
33959                throw new Error("Invalid EIP-2930 transaction: storage slot length should be 32 bytes");
33960          }
33961        }, e4.getAccessListJSON = function(e5) {
33962          for (var t4 = [], r4 = 0; r4 < e5.length; r4++) {
33963            for (var i2 = e5[r4], o2 = { address: "0x" + (0, n2.setLengthLeft)(i2[0], 20).toString("hex"), storageKeys: [] }, a = i2[1], s = 0; s < a.length; s++) {
33964              var u2 = a[s];
33965              o2.storageKeys.push("0x" + (0, n2.setLengthLeft)(u2, 32).toString("hex"));
33966            }
33967            t4.push(o2);
33968          }
33969          return t4;
33970        }, e4.getDataFeeEIP2930 = function(e5, t4) {
33971          for (var r4 = t4.param("gasPrices", "accessListStorageKeyCost"), n3 = t4.param("gasPrices", "accessListAddressCost"), i2 = 0, o2 = 0; o2 < e5.length; o2++)
33972            i2 += e5[o2][1].length;
33973          return e5.length * n3 + i2 * r4;
33974        }, e4;
33975      }();
33976      t3.AccessLists = o;
33977    }, 8067: (e3, t3) => {
33978      Object.defineProperty(t3, "__esModule", { value: true }), t3.version = void 0, t3.version = "abi/5.7.0";
33979    }, 4937: (e3, t3, r3) => {
33980      var n2 = r3(8847);
33981      Object.defineProperty(t3, "__esModule", { value: true }), t3.defaultAbiCoder = t3.AbiCoder = void 0;
33982      var i = n2(r3(9721)), o = n2(r3(8985)), a = r3(908), s = r3(3694), u2 = r3(4327), c2 = r3(8067), f2 = r3(7316), d2 = r3(9146), l2 = r3(4341), h2 = r3(24), p2 = r3(3861), b2 = r3(28), y2 = r3(4522), m2 = r3(8287), v2 = r3(8040), g2 = r3(2010), w2 = r3(800), A2 = new u2.Logger(c2.version), k2 = new RegExp(/^bytes([0-9]*)$/), _ = new RegExp(/^(u?int)([0-9]*)$/), S2 = function() {
33983        function e4(t4) {
33984          (0, i.default)(this, e4), (0, s.defineReadOnly)(this, "coerceFunc", t4 || null);
33985        }
33986        return (0, o.default)(e4, [{ key: "_getCoder", value: function(e5) {
33987          var t4 = this;
33988          switch (e5.baseType) {
33989            case "address":
33990              return new d2.AddressCoder(e5.name);
33991            case "bool":
33992              return new h2.BooleanCoder(e5.name);
33993            case "string":
33994              return new v2.StringCoder(e5.name);
33995            case "bytes":
33996              return new p2.BytesCoder(e5.name);
33997            case "array":
33998              return new l2.ArrayCoder(this._getCoder(e5.arrayChildren), e5.arrayLength, e5.name);
33999            case "tuple":
34000              return new g2.TupleCoder((e5.components || []).map(function(e6) {
34001                return t4._getCoder(e6);
34002              }), e5.name);
34003            case "":
34004              return new y2.NullCoder(e5.name);
34005          }
34006          var r4 = e5.type.match(_);
34007          if (r4) {
34008            var n3 = parseInt(r4[2] || "256");
34009            return (0 === n3 || n3 > 256 || n3 % 8 != 0) && A2.throwArgumentError("invalid " + r4[1] + " bit length", "param", e5), new m2.NumberCoder(n3 / 8, "int" === r4[1], e5.name);
34010          }
34011          if (r4 = e5.type.match(k2)) {
34012            var i2 = parseInt(r4[1]);
34013            return (0 === i2 || i2 > 32) && A2.throwArgumentError("invalid bytes length", "param", e5), new b2.FixedBytesCoder(i2, e5.name);
34014          }
34015          return A2.throwArgumentError("invalid type", "type", e5.type);
34016        } }, { key: "_getWordSize", value: function() {
34017          return 32;
34018        } }, { key: "_getReader", value: function(e5, t4) {
34019          return new f2.Reader(e5, this._getWordSize(), this.coerceFunc, t4);
34020        } }, { key: "_getWriter", value: function() {
34021          return new f2.Writer(this._getWordSize());
34022        } }, { key: "getDefaultValue", value: function(e5) {
34023          var t4 = this, r4 = e5.map(function(e6) {
34024            return t4._getCoder(w2.ParamType.from(e6));
34025          });
34026          return new g2.TupleCoder(r4, "_").defaultValue();
34027        } }, { key: "encode", value: function(e5, t4) {
34028          var r4 = this;
34029          e5.length !== t4.length && A2.throwError("types/values length mismatch", u2.Logger.errors.INVALID_ARGUMENT, { count: { types: e5.length, values: t4.length }, value: { types: e5, values: t4 } });
34030          var n3 = e5.map(function(e6) {
34031            return r4._getCoder(w2.ParamType.from(e6));
34032          }), i2 = new g2.TupleCoder(n3, "_"), o2 = this._getWriter();
34033          return i2.encode(o2, t4), o2.data;
34034        } }, { key: "decode", value: function(e5, t4, r4) {
34035          var n3 = this, i2 = e5.map(function(e6) {
34036            return n3._getCoder(w2.ParamType.from(e6));
34037          });
34038          return new g2.TupleCoder(i2, "_").decode(this._getReader((0, a.arrayify)(t4), r4));
34039        } }]), e4;
34040      }();
34041      t3.AbiCoder = S2;
34042      var x2 = new S2();
34043      t3.defaultAbiCoder = x2;
34044    }, 7316: (e3, t3, r3) => {
34045      var n2 = r3(8847);
34046      Object.defineProperty(t3, "__esModule", { value: true }), t3.Writer = t3.Reader = t3.Coder = void 0, t3.checkResultErrors = function(e4) {
34047        var t4 = [];
34048        return function e5(r4, n3) {
34049          if (Array.isArray(n3))
34050            for (var i2 in n3) {
34051              var o2 = r4.slice();
34052              o2.push(i2);
34053              try {
34054                e5(o2, n3[i2]);
34055              } catch (e6) {
34056                t4.push({ path: o2, error: e6 });
34057              }
34058            }
34059        }([], e4), t4;
34060      };
34061      var i = n2(r3(9721)), o = n2(r3(8985)), a = r3(908), s = r3(4952), u2 = r3(3694), c2 = r3(4327), f2 = r3(8067), d2 = new c2.Logger(f2.version), l2 = function() {
34062        function e4(t4, r4, n3, o2) {
34063          (0, i.default)(this, e4), this.name = t4, this.type = r4, this.localName = n3, this.dynamic = o2;
34064        }
34065        return (0, o.default)(e4, [{ key: "_throwError", value: function(e5, t4) {
34066          d2.throwArgumentError(e5, this.localName, t4);
34067        } }]), e4;
34068      }();
34069      t3.Coder = l2;
34070      var h2 = function() {
34071        function e4(t4) {
34072          (0, i.default)(this, e4), (0, u2.defineReadOnly)(this, "wordSize", t4 || 32), this._data = [], this._dataLength = 0, this._padding = new Uint8Array(t4);
34073        }
34074        return (0, o.default)(e4, [{ key: "data", get: function() {
34075          return (0, a.hexConcat)(this._data);
34076        } }, { key: "length", get: function() {
34077          return this._dataLength;
34078        } }, { key: "_writeData", value: function(e5) {
34079          return this._data.push(e5), this._dataLength += e5.length, e5.length;
34080        } }, { key: "appendWriter", value: function(e5) {
34081          return this._writeData((0, a.concat)(e5._data));
34082        } }, { key: "writeBytes", value: function(e5) {
34083          var t4 = (0, a.arrayify)(e5), r4 = t4.length % this.wordSize;
34084          return r4 && (t4 = (0, a.concat)([t4, this._padding.slice(r4)])), this._writeData(t4);
34085        } }, { key: "_getValue", value: function(e5) {
34086          var t4 = (0, a.arrayify)(s.BigNumber.from(e5));
34087          return t4.length > this.wordSize && d2.throwError("value out-of-bounds", c2.Logger.errors.BUFFER_OVERRUN, { length: this.wordSize, offset: t4.length }), t4.length % this.wordSize && (t4 = (0, a.concat)([this._padding.slice(t4.length % this.wordSize), t4])), t4;
34088        } }, { key: "writeValue", value: function(e5) {
34089          return this._writeData(this._getValue(e5));
34090        } }, { key: "writeUpdatableValue", value: function() {
34091          var e5 = this, t4 = this._data.length;
34092          return this._data.push(this._padding), this._dataLength += this.wordSize, function(r4) {
34093            e5._data[t4] = e5._getValue(r4);
34094          };
34095        } }]), e4;
34096      }();
34097      t3.Writer = h2;
34098      var p2 = function() {
34099        function e4(t4, r4, n3, o2) {
34100          (0, i.default)(this, e4), (0, u2.defineReadOnly)(this, "_data", (0, a.arrayify)(t4)), (0, u2.defineReadOnly)(this, "wordSize", r4 || 32), (0, u2.defineReadOnly)(this, "_coerceFunc", n3), (0, u2.defineReadOnly)(this, "allowLoose", o2), this._offset = 0;
34101        }
34102        return (0, o.default)(e4, [{ key: "data", get: function() {
34103          return (0, a.hexlify)(this._data);
34104        } }, { key: "consumed", get: function() {
34105          return this._offset;
34106        } }, { key: "coerce", value: function(t4, r4) {
34107          return this._coerceFunc ? this._coerceFunc(t4, r4) : e4.coerce(t4, r4);
34108        } }, { key: "_peekBytes", value: function(e5, t4, r4) {
34109          var n3 = Math.ceil(t4 / this.wordSize) * this.wordSize;
34110          return this._offset + n3 > this._data.length && (this.allowLoose && r4 && this._offset + t4 <= this._data.length ? n3 = t4 : d2.throwError("data out-of-bounds", c2.Logger.errors.BUFFER_OVERRUN, { length: this._data.length, offset: this._offset + n3 })), this._data.slice(this._offset, this._offset + n3);
34111        } }, { key: "subReader", value: function(t4) {
34112          return new e4(this._data.slice(this._offset + t4), this.wordSize, this._coerceFunc, this.allowLoose);
34113        } }, { key: "readBytes", value: function(e5, t4) {
34114          var r4 = this._peekBytes(0, e5, !!t4);
34115          return this._offset += r4.length, r4.slice(0, e5);
34116        } }, { key: "readValue", value: function() {
34117          return s.BigNumber.from(this.readBytes(this.wordSize));
34118        } }], [{ key: "coerce", value: function(e5, t4) {
34119          var r4 = e5.match("^u?int([0-9]+)$");
34120          return r4 && parseInt(r4[1]) <= 48 && (t4 = t4.toNumber()), t4;
34121        } }]), e4;
34122      }();
34123      t3.Reader = p2;
34124    }, 9146: (e3, t3, r3) => {
34125      var n2 = r3(8847);
34126      Object.defineProperty(t3, "__esModule", { value: true }), t3.AddressCoder = void 0;
34127      var i = n2(r3(9721)), o = n2(r3(8985)), a = n2(r3(5163)), s = n2(r3(4650)), u2 = n2(r3(1949)), c2 = r3(7921), f2 = r3(908);
34128      var d2 = function(e4) {
34129        (0, a.default)(d3, e4);
34130        var t4, r4, n3 = (t4 = d3, r4 = function() {
34131          if ("undefined" == typeof Reflect || !Reflect.construct)
34132            return false;
34133          if (Reflect.construct.sham)
34134            return false;
34135          if ("function" == typeof Proxy)
34136            return true;
34137          try {
34138            return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
34139            })), true;
34140          } catch (e5) {
34141            return false;
34142          }
34143        }(), function() {
34144          var e5, n4 = (0, u2.default)(t4);
34145          if (r4) {
34146            var i2 = (0, u2.default)(this).constructor;
34147            e5 = Reflect.construct(n4, arguments, i2);
34148          } else
34149            e5 = n4.apply(this, arguments);
34150          return (0, s.default)(this, e5);
34151        });
34152        function d3(e5) {
34153          return (0, i.default)(this, d3), n3.call(this, "address", "address", e5, false);
34154        }
34155        return (0, o.default)(d3, [{ key: "defaultValue", value: function() {
34156          return "0x0000000000000000000000000000000000000000";
34157        } }, { key: "encode", value: function(e5, t5) {
34158          try {
34159            t5 = (0, c2.getAddress)(t5);
34160          } catch (e6) {
34161            this._throwError(e6.message, t5);
34162          }
34163          return e5.writeValue(t5);
34164        } }, { key: "decode", value: function(e5) {
34165          return (0, c2.getAddress)((0, f2.hexZeroPad)(e5.readValue().toHexString(), 20));
34166        } }]), d3;
34167      }(r3(7316).Coder);
34168      t3.AddressCoder = d2;
34169    }, 8090: (e3, t3, r3) => {
34170      var n2 = r3(8847);
34171      Object.defineProperty(t3, "__esModule", { value: true }), t3.AnonymousCoder = void 0;
34172      var i = n2(r3(9721)), o = n2(r3(8985)), a = n2(r3(5163)), s = n2(r3(4650)), u2 = n2(r3(1949));
34173      var c2 = function(e4) {
34174        (0, a.default)(c3, e4);
34175        var t4, r4, n3 = (t4 = c3, r4 = function() {
34176          if ("undefined" == typeof Reflect || !Reflect.construct)
34177            return false;
34178          if (Reflect.construct.sham)
34179            return false;
34180          if ("function" == typeof Proxy)
34181            return true;
34182          try {
34183            return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
34184            })), true;
34185          } catch (e5) {
34186            return false;
34187          }
34188        }(), function() {
34189          var e5, n4 = (0, u2.default)(t4);
34190          if (r4) {
34191            var i2 = (0, u2.default)(this).constructor;
34192            e5 = Reflect.construct(n4, arguments, i2);
34193          } else
34194            e5 = n4.apply(this, arguments);
34195          return (0, s.default)(this, e5);
34196        });
34197        function c3(e5) {
34198          var t5;
34199          return (0, i.default)(this, c3), (t5 = n3.call(this, e5.name, e5.type, void 0, e5.dynamic)).coder = e5, t5;
34200        }
34201        return (0, o.default)(c3, [{ key: "defaultValue", value: function() {
34202          return this.coder.defaultValue();
34203        } }, { key: "encode", value: function(e5, t5) {
34204          return this.coder.encode(e5, t5);
34205        } }, { key: "decode", value: function(e5) {
34206          return this.coder.decode(e5);
34207        } }]), c3;
34208      }(r3(7316).Coder);
34209      t3.AnonymousCoder = c2;
34210    }, 4341: (e3, t3, r3) => {
34211      var n2 = r3(8847);
34212      Object.defineProperty(t3, "__esModule", { value: true }), t3.ArrayCoder = void 0, t3.pack = b2, t3.unpack = y2;
34213      var i = n2(r3(9721)), o = n2(r3(8985)), a = n2(r3(5163)), s = n2(r3(4650)), u2 = n2(r3(1949)), c2 = n2(r3(3355)), f2 = r3(4327), d2 = r3(8067), l2 = r3(7316), h2 = r3(8090);
34214      var p2 = new f2.Logger(d2.version);
34215      function b2(e4, t4, r4) {
34216        var n3 = null;
34217        if (Array.isArray(r4))
34218          n3 = r4;
34219        else if (r4 && "object" === (0, c2.default)(r4)) {
34220          var i2 = {};
34221          n3 = t4.map(function(e5) {
34222            var t5 = e5.localName;
34223            return t5 || p2.throwError("cannot encode object for signature with missing names", f2.Logger.errors.INVALID_ARGUMENT, { argument: "values", coder: e5, value: r4 }), i2[t5] && p2.throwError("cannot encode object for signature with duplicate names", f2.Logger.errors.INVALID_ARGUMENT, { argument: "values", coder: e5, value: r4 }), i2[t5] = true, r4[t5];
34224          });
34225        } else
34226          p2.throwArgumentError("invalid tuple value", "tuple", r4);
34227        t4.length !== n3.length && p2.throwArgumentError("types/value length mismatch", "tuple", r4);
34228        var o2 = new l2.Writer(e4.wordSize), a2 = new l2.Writer(e4.wordSize), s2 = [];
34229        return t4.forEach(function(e5, t5) {
34230          var r5 = n3[t5];
34231          if (e5.dynamic) {
34232            var i3 = a2.length;
34233            e5.encode(a2, r5);
34234            var u3 = o2.writeUpdatableValue();
34235            s2.push(function(e6) {
34236              u3(e6 + i3);
34237            });
34238          } else
34239            e5.encode(o2, r5);
34240        }), s2.forEach(function(e5) {
34241          e5(o2.length);
34242        }), e4.appendWriter(o2) + e4.appendWriter(a2);
34243      }
34244      function y2(e4, t4) {
34245        var r4 = [], n3 = e4.subReader(0);
34246        t4.forEach(function(t5) {
34247          var i3 = null;
34248          if (t5.dynamic) {
34249            var o3 = e4.readValue(), a3 = n3.subReader(o3.toNumber());
34250            try {
34251              i3 = t5.decode(a3);
34252            } catch (e5) {
34253              if (e5.code === f2.Logger.errors.BUFFER_OVERRUN)
34254                throw e5;
34255              (i3 = e5).baseType = t5.name, i3.name = t5.localName, i3.type = t5.type;
34256            }
34257          } else
34258            try {
34259              i3 = t5.decode(e4);
34260            } catch (e5) {
34261              if (e5.code === f2.Logger.errors.BUFFER_OVERRUN)
34262                throw e5;
34263              (i3 = e5).baseType = t5.name, i3.name = t5.localName, i3.type = t5.type;
34264            }
34265          null != i3 && r4.push(i3);
34266        });
34267        var i2 = t4.reduce(function(e5, t5) {
34268          var r5 = t5.localName;
34269          return r5 && (e5[r5] || (e5[r5] = 0), e5[r5]++), e5;
34270        }, {});
34271        t4.forEach(function(e5, t5) {
34272          var n4 = e5.localName;
34273          if (n4 && 1 === i2[n4] && ("length" === n4 && (n4 = "_length"), null == r4[n4])) {
34274            var o3 = r4[t5];
34275            o3 instanceof Error ? Object.defineProperty(r4, n4, { enumerable: true, get: function() {
34276              throw o3;
34277            } }) : r4[n4] = o3;
34278          }
34279        });
34280        for (var o2 = function(e5) {
34281          var t5 = r4[e5];
34282          t5 instanceof Error && Object.defineProperty(r4, e5, { enumerable: true, get: function() {
34283            throw t5;
34284          } });
34285        }, a2 = 0; a2 < r4.length; a2++)
34286          o2(a2);
34287        return Object.freeze(r4);
34288      }
34289      var m2 = function(e4) {
34290        (0, a.default)(c3, e4);
34291        var t4, r4, n3 = (t4 = c3, r4 = function() {
34292          if ("undefined" == typeof Reflect || !Reflect.construct)
34293            return false;
34294          if (Reflect.construct.sham)
34295            return false;
34296          if ("function" == typeof Proxy)
34297            return true;
34298          try {
34299            return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
34300            })), true;
34301          } catch (e5) {
34302            return false;
34303          }
34304        }(), function() {
34305          var e5, n4 = (0, u2.default)(t4);
34306          if (r4) {
34307            var i2 = (0, u2.default)(this).constructor;
34308            e5 = Reflect.construct(n4, arguments, i2);
34309          } else
34310            e5 = n4.apply(this, arguments);
34311          return (0, s.default)(this, e5);
34312        });
34313        function c3(e5, t5, r5) {
34314          var o2;
34315          (0, i.default)(this, c3);
34316          var a2 = e5.type + "[" + (t5 >= 0 ? t5 : "") + "]", s2 = -1 === t5 || e5.dynamic;
34317          return (o2 = n3.call(this, "array", a2, r5, s2)).coder = e5, o2.length = t5, o2;
34318        }
34319        return (0, o.default)(c3, [{ key: "defaultValue", value: function() {
34320          for (var e5 = this.coder.defaultValue(), t5 = [], r5 = 0; r5 < this.length; r5++)
34321            t5.push(e5);
34322          return t5;
34323        } }, { key: "encode", value: function(e5, t5) {
34324          Array.isArray(t5) || this._throwError("expected array value", t5);
34325          var r5 = this.length;
34326          -1 === r5 && (r5 = t5.length, e5.writeValue(t5.length)), p2.checkArgumentCount(t5.length, r5, "coder array" + (this.localName ? " " + this.localName : ""));
34327          for (var n4 = [], i2 = 0; i2 < t5.length; i2++)
34328            n4.push(this.coder);
34329          return b2(e5, n4, t5);
34330        } }, { key: "decode", value: function(e5) {
34331          var t5 = this.length;
34332          -1 === t5 && 32 * (t5 = e5.readValue().toNumber()) > e5._data.length && p2.throwError("insufficient data length", f2.Logger.errors.BUFFER_OVERRUN, { length: e5._data.length, count: t5 });
34333          for (var r5 = [], n4 = 0; n4 < t5; n4++)
34334            r5.push(new h2.AnonymousCoder(this.coder));
34335          return e5.coerce(this.name, y2(e5, r5));
34336        } }]), c3;
34337      }(l2.Coder);
34338      t3.ArrayCoder = m2;
34339    }, 24: (e3, t3, r3) => {
34340      var n2 = r3(8847);
34341      Object.defineProperty(t3, "__esModule", { value: true }), t3.BooleanCoder = void 0;
34342      var i = n2(r3(9721)), o = n2(r3(8985)), a = n2(r3(5163)), s = n2(r3(4650)), u2 = n2(r3(1949));
34343      var c2 = function(e4) {
34344        (0, a.default)(c3, e4);
34345        var t4, r4, n3 = (t4 = c3, r4 = function() {
34346          if ("undefined" == typeof Reflect || !Reflect.construct)
34347            return false;
34348          if (Reflect.construct.sham)
34349            return false;
34350          if ("function" == typeof Proxy)
34351            return true;
34352          try {
34353            return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
34354            })), true;
34355          } catch (e5) {
34356            return false;
34357          }
34358        }(), function() {
34359          var e5, n4 = (0, u2.default)(t4);
34360          if (r4) {
34361            var i2 = (0, u2.default)(this).constructor;
34362            e5 = Reflect.construct(n4, arguments, i2);
34363          } else
34364            e5 = n4.apply(this, arguments);
34365          return (0, s.default)(this, e5);
34366        });
34367        function c3(e5) {
34368          return (0, i.default)(this, c3), n3.call(this, "bool", "bool", e5, false);
34369        }
34370        return (0, o.default)(c3, [{ key: "defaultValue", value: function() {
34371          return false;
34372        } }, { key: "encode", value: function(e5, t5) {
34373          return e5.writeValue(t5 ? 1 : 0);
34374        } }, { key: "decode", value: function(e5) {
34375          return e5.coerce(this.type, !e5.readValue().isZero());
34376        } }]), c3;
34377      }(r3(7316).Coder);
34378      t3.BooleanCoder = c2;
34379    }, 3861: (e3, t3, r3) => {
34380      var n2 = r3(8847);
34381      Object.defineProperty(t3, "__esModule", { value: true }), t3.DynamicBytesCoder = t3.BytesCoder = void 0;
34382      var i = n2(r3(119)), o = n2(r3(9721)), a = n2(r3(8985)), s = n2(r3(5163)), u2 = n2(r3(4650)), c2 = n2(r3(1949)), f2 = r3(908);
34383      function d2(e4) {
34384        var t4 = function() {
34385          if ("undefined" == typeof Reflect || !Reflect.construct)
34386            return false;
34387          if (Reflect.construct.sham)
34388            return false;
34389          if ("function" == typeof Proxy)
34390            return true;
34391          try {
34392            return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
34393            })), true;
34394          } catch (e5) {
34395            return false;
34396          }
34397        }();
34398        return function() {
34399          var r4, n3 = (0, c2.default)(e4);
34400          if (t4) {
34401            var i2 = (0, c2.default)(this).constructor;
34402            r4 = Reflect.construct(n3, arguments, i2);
34403          } else
34404            r4 = n3.apply(this, arguments);
34405          return (0, u2.default)(this, r4);
34406        };
34407      }
34408      var l2 = function(e4) {
34409        (0, s.default)(r4, e4);
34410        var t4 = d2(r4);
34411        function r4(e5, n3) {
34412          return (0, o.default)(this, r4), t4.call(this, e5, e5, n3, true);
34413        }
34414        return (0, a.default)(r4, [{ key: "defaultValue", value: function() {
34415          return "0x";
34416        } }, { key: "encode", value: function(e5, t5) {
34417          return t5 = (0, f2.arrayify)(t5), e5.writeValue(t5.length) + e5.writeBytes(t5);
34418        } }, { key: "decode", value: function(e5) {
34419          return e5.readBytes(e5.readValue().toNumber(), true);
34420        } }]), r4;
34421      }(r3(7316).Coder);
34422      t3.DynamicBytesCoder = l2;
34423      var h2 = function(e4) {
34424        (0, s.default)(r4, e4);
34425        var t4 = d2(r4);
34426        function r4(e5) {
34427          return (0, o.default)(this, r4), t4.call(this, "bytes", e5);
34428        }
34429        return (0, a.default)(r4, [{ key: "decode", value: function(e5) {
34430          return e5.coerce(this.name, (0, f2.hexlify)((0, i.default)((0, c2.default)(r4.prototype), "decode", this).call(this, e5)));
34431        } }]), r4;
34432      }(l2);
34433      t3.BytesCoder = h2;
34434    }, 28: (e3, t3, r3) => {
34435      var n2 = r3(8847);
34436      Object.defineProperty(t3, "__esModule", { value: true }), t3.FixedBytesCoder = void 0;
34437      var i = n2(r3(9721)), o = n2(r3(8985)), a = n2(r3(5163)), s = n2(r3(4650)), u2 = n2(r3(1949)), c2 = r3(908);
34438      var f2 = function(e4) {
34439        (0, a.default)(f3, e4);
34440        var t4, r4, n3 = (t4 = f3, r4 = function() {
34441          if ("undefined" == typeof Reflect || !Reflect.construct)
34442            return false;
34443          if (Reflect.construct.sham)
34444            return false;
34445          if ("function" == typeof Proxy)
34446            return true;
34447          try {
34448            return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
34449            })), true;
34450          } catch (e5) {
34451            return false;
34452          }
34453        }(), function() {
34454          var e5, n4 = (0, u2.default)(t4);
34455          if (r4) {
34456            var i2 = (0, u2.default)(this).constructor;
34457            e5 = Reflect.construct(n4, arguments, i2);
34458          } else
34459            e5 = n4.apply(this, arguments);
34460          return (0, s.default)(this, e5);
34461        });
34462        function f3(e5, t5) {
34463          var r5;
34464          (0, i.default)(this, f3);
34465          var o2 = "bytes" + String(e5);
34466          return (r5 = n3.call(this, o2, o2, t5, false)).size = e5, r5;
34467        }
34468        return (0, o.default)(f3, [{ key: "defaultValue", value: function() {
34469          return "0x0000000000000000000000000000000000000000000000000000000000000000".substring(0, 2 + 2 * this.size);
34470        } }, { key: "encode", value: function(e5, t5) {
34471          var r5 = (0, c2.arrayify)(t5);
34472          return r5.length !== this.size && this._throwError("incorrect data length", t5), e5.writeBytes(r5);
34473        } }, { key: "decode", value: function(e5) {
34474          return e5.coerce(this.name, (0, c2.hexlify)(e5.readBytes(this.size)));
34475        } }]), f3;
34476      }(r3(7316).Coder);
34477      t3.FixedBytesCoder = f2;
34478    }, 4522: (e3, t3, r3) => {
34479      var n2 = r3(8847);
34480      Object.defineProperty(t3, "__esModule", { value: true }), t3.NullCoder = void 0;
34481      var i = n2(r3(9721)), o = n2(r3(8985)), a = n2(r3(5163)), s = n2(r3(4650)), u2 = n2(r3(1949));
34482      var c2 = function(e4) {
34483        (0, a.default)(c3, e4);
34484        var t4, r4, n3 = (t4 = c3, r4 = function() {
34485          if ("undefined" == typeof Reflect || !Reflect.construct)
34486            return false;
34487          if (Reflect.construct.sham)
34488            return false;
34489          if ("function" == typeof Proxy)
34490            return true;
34491          try {
34492            return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
34493            })), true;
34494          } catch (e5) {
34495            return false;
34496          }
34497        }(), function() {
34498          var e5, n4 = (0, u2.default)(t4);
34499          if (r4) {
34500            var i2 = (0, u2.default)(this).constructor;
34501            e5 = Reflect.construct(n4, arguments, i2);
34502          } else
34503            e5 = n4.apply(this, arguments);
34504          return (0, s.default)(this, e5);
34505        });
34506        function c3(e5) {
34507          return (0, i.default)(this, c3), n3.call(this, "null", "", e5, false);
34508        }
34509        return (0, o.default)(c3, [{ key: "defaultValue", value: function() {
34510          return null;
34511        } }, { key: "encode", value: function(e5, t5) {
34512          return null != t5 && this._throwError("not null", t5), e5.writeBytes([]);
34513        } }, { key: "decode", value: function(e5) {
34514          return e5.readBytes(0), e5.coerce(this.name, null);
34515        } }]), c3;
34516      }(r3(7316).Coder);
34517      t3.NullCoder = c2;
34518    }, 8287: (e3, t3, r3) => {
34519      var n2 = r3(8847);
34520      Object.defineProperty(t3, "__esModule", { value: true }), t3.NumberCoder = void 0;
34521      var i = n2(r3(9721)), o = n2(r3(8985)), a = n2(r3(5163)), s = n2(r3(4650)), u2 = n2(r3(1949)), c2 = r3(4952), f2 = r3(5465);
34522      var d2 = function(e4) {
34523        (0, a.default)(d3, e4);
34524        var t4, r4, n3 = (t4 = d3, r4 = function() {
34525          if ("undefined" == typeof Reflect || !Reflect.construct)
34526            return false;
34527          if (Reflect.construct.sham)
34528            return false;
34529          if ("function" == typeof Proxy)
34530            return true;
34531          try {
34532            return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
34533            })), true;
34534          } catch (e5) {
34535            return false;
34536          }
34537        }(), function() {
34538          var e5, n4 = (0, u2.default)(t4);
34539          if (r4) {
34540            var i2 = (0, u2.default)(this).constructor;
34541            e5 = Reflect.construct(n4, arguments, i2);
34542          } else
34543            e5 = n4.apply(this, arguments);
34544          return (0, s.default)(this, e5);
34545        });
34546        function d3(e5, t5, r5) {
34547          var o2;
34548          (0, i.default)(this, d3);
34549          var a2 = (t5 ? "int" : "uint") + 8 * e5;
34550          return (o2 = n3.call(this, a2, a2, r5, false)).size = e5, o2.signed = t5, o2;
34551        }
34552        return (0, o.default)(d3, [{ key: "defaultValue", value: function() {
34553          return 0;
34554        } }, { key: "encode", value: function(e5, t5) {
34555          var r5 = c2.BigNumber.from(t5), n4 = f2.MaxUint256.mask(8 * e5.wordSize);
34556          if (this.signed) {
34557            var i2 = n4.mask(8 * this.size - 1);
34558            (r5.gt(i2) || r5.lt(i2.add(f2.One).mul(f2.NegativeOne))) && this._throwError("value out-of-bounds", t5);
34559          } else
34560            (r5.lt(f2.Zero) || r5.gt(n4.mask(8 * this.size))) && this._throwError("value out-of-bounds", t5);
34561          return r5 = r5.toTwos(8 * this.size).mask(8 * this.size), this.signed && (r5 = r5.fromTwos(8 * this.size).toTwos(8 * e5.wordSize)), e5.writeValue(r5);
34562        } }, { key: "decode", value: function(e5) {
34563          var t5 = e5.readValue().mask(8 * this.size);
34564          return this.signed && (t5 = t5.fromTwos(8 * this.size)), e5.coerce(this.name, t5);
34565        } }]), d3;
34566      }(r3(7316).Coder);
34567      t3.NumberCoder = d2;
34568    }, 8040: (e3, t3, r3) => {
34569      var n2 = r3(8847);
34570      Object.defineProperty(t3, "__esModule", { value: true }), t3.StringCoder = void 0;
34571      var i = n2(r3(9721)), o = n2(r3(8985)), a = n2(r3(119)), s = n2(r3(5163)), u2 = n2(r3(4650)), c2 = n2(r3(1949)), f2 = r3(8627);
34572      var d2 = function(e4) {
34573        (0, s.default)(d3, e4);
34574        var t4, r4, n3 = (t4 = d3, r4 = function() {
34575          if ("undefined" == typeof Reflect || !Reflect.construct)
34576            return false;
34577          if (Reflect.construct.sham)
34578            return false;
34579          if ("function" == typeof Proxy)
34580            return true;
34581          try {
34582            return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
34583            })), true;
34584          } catch (e5) {
34585            return false;
34586          }
34587        }(), function() {
34588          var e5, n4 = (0, c2.default)(t4);
34589          if (r4) {
34590            var i2 = (0, c2.default)(this).constructor;
34591            e5 = Reflect.construct(n4, arguments, i2);
34592          } else
34593            e5 = n4.apply(this, arguments);
34594          return (0, u2.default)(this, e5);
34595        });
34596        function d3(e5) {
34597          return (0, i.default)(this, d3), n3.call(this, "string", e5);
34598        }
34599        return (0, o.default)(d3, [{ key: "defaultValue", value: function() {
34600          return "";
34601        } }, { key: "encode", value: function(e5, t5) {
34602          return (0, a.default)((0, c2.default)(d3.prototype), "encode", this).call(this, e5, (0, f2.toUtf8Bytes)(t5));
34603        } }, { key: "decode", value: function(e5) {
34604          return (0, f2.toUtf8String)((0, a.default)((0, c2.default)(d3.prototype), "decode", this).call(this, e5));
34605        } }]), d3;
34606      }(r3(3861).DynamicBytesCoder);
34607      t3.StringCoder = d2;
34608    }, 2010: (e3, t3, r3) => {
34609      var n2 = r3(8847);
34610      Object.defineProperty(t3, "__esModule", { value: true }), t3.TupleCoder = void 0;
34611      var i = n2(r3(9721)), o = n2(r3(8985)), a = n2(r3(5163)), s = n2(r3(4650)), u2 = n2(r3(1949)), c2 = r3(7316), f2 = r3(4341);
34612      var d2 = function(e4) {
34613        (0, a.default)(c3, e4);
34614        var t4, r4, n3 = (t4 = c3, r4 = function() {
34615          if ("undefined" == typeof Reflect || !Reflect.construct)
34616            return false;
34617          if (Reflect.construct.sham)
34618            return false;
34619          if ("function" == typeof Proxy)
34620            return true;
34621          try {
34622            return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
34623            })), true;
34624          } catch (e5) {
34625            return false;
34626          }
34627        }(), function() {
34628          var e5, n4 = (0, u2.default)(t4);
34629          if (r4) {
34630            var i2 = (0, u2.default)(this).constructor;
34631            e5 = Reflect.construct(n4, arguments, i2);
34632          } else
34633            e5 = n4.apply(this, arguments);
34634          return (0, s.default)(this, e5);
34635        });
34636        function c3(e5, t5) {
34637          var r5;
34638          (0, i.default)(this, c3);
34639          var o2 = false, a2 = [];
34640          e5.forEach(function(e6) {
34641            e6.dynamic && (o2 = true), a2.push(e6.type);
34642          });
34643          var s2 = "tuple(" + a2.join(",") + ")";
34644          return (r5 = n3.call(this, "tuple", s2, t5, o2)).coders = e5, r5;
34645        }
34646        return (0, o.default)(c3, [{ key: "defaultValue", value: function() {
34647          var e5 = [];
34648          this.coders.forEach(function(t6) {
34649            e5.push(t6.defaultValue());
34650          });
34651          var t5 = this.coders.reduce(function(e6, t6) {
34652            var r5 = t6.localName;
34653            return r5 && (e6[r5] || (e6[r5] = 0), e6[r5]++), e6;
34654          }, {});
34655          return this.coders.forEach(function(r5, n4) {
34656            var i2 = r5.localName;
34657            i2 && 1 === t5[i2] && ("length" === i2 && (i2 = "_length"), null == e5[i2] && (e5[i2] = e5[n4]));
34658          }), Object.freeze(e5);
34659        } }, { key: "encode", value: function(e5, t5) {
34660          return (0, f2.pack)(e5, this.coders, t5);
34661        } }, { key: "decode", value: function(e5) {
34662          return e5.coerce(this.name, (0, f2.unpack)(e5, this.coders));
34663        } }]), c3;
34664      }(c2.Coder);
34665      t3.TupleCoder = d2;
34666    }, 800: (e3, t3, r3) => {
34667      var n2 = r3(8847);
34668      Object.defineProperty(t3, "__esModule", { value: true }), t3.ParamType = t3.FunctionFragment = t3.Fragment = t3.FormatTypes = t3.EventFragment = t3.ErrorFragment = t3.ConstructorFragment = void 0;
34669      var i = n2(r3(5163)), o = n2(r3(4650)), a = n2(r3(1949)), s = n2(r3(9721)), u2 = n2(r3(8985)), c2 = r3(4952), f2 = r3(3694), d2 = r3(4327), l2 = r3(8067);
34670      function h2(e4) {
34671        var t4 = function() {
34672          if ("undefined" == typeof Reflect || !Reflect.construct)
34673            return false;
34674          if (Reflect.construct.sham)
34675            return false;
34676          if ("function" == typeof Proxy)
34677            return true;
34678          try {
34679            return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
34680            })), true;
34681          } catch (e5) {
34682            return false;
34683          }
34684        }();
34685        return function() {
34686          var r4, n3 = (0, a.default)(e4);
34687          if (t4) {
34688            var i2 = (0, a.default)(this).constructor;
34689            r4 = Reflect.construct(n3, arguments, i2);
34690          } else
34691            r4 = n3.apply(this, arguments);
34692          return (0, o.default)(this, r4);
34693        };
34694      }
34695      var p2 = new d2.Logger(l2.version), b2 = {}, y2 = { calldata: true, memory: true, storage: true }, m2 = { calldata: true, memory: true };
34696      function v2(e4, t4) {
34697        if ("bytes" === e4 || "string" === e4) {
34698          if (y2[t4])
34699            return true;
34700        } else if ("address" === e4) {
34701          if ("payable" === t4)
34702            return true;
34703        } else if ((e4.indexOf("[") >= 0 || "tuple" === e4) && m2[t4])
34704          return true;
34705        return (y2[t4] || "payable" === t4) && p2.throwArgumentError("invalid modifier", "name", t4), false;
34706      }
34707      function g2(e4, t4) {
34708        for (var r4 in t4)
34709          (0, f2.defineReadOnly)(e4, r4, t4[r4]);
34710      }
34711      var w2 = Object.freeze({ sighash: "sighash", minimal: "minimal", full: "full", json: "json" });
34712      t3.FormatTypes = w2;
34713      var A2 = new RegExp(/^(.*)\[([0-9]*)\]$/), k2 = function() {
34714        function e4(t4, r4) {
34715          (0, s.default)(this, e4), t4 !== b2 && p2.throwError("use fromString", d2.Logger.errors.UNSUPPORTED_OPERATION, { operation: "new ParamType()" }), g2(this, r4);
34716          var n3 = this.type.match(A2);
34717          g2(this, n3 ? { arrayLength: parseInt(n3[2] || "-1"), arrayChildren: e4.fromObject({ type: n3[1], components: this.components }), baseType: "array" } : { arrayLength: null, arrayChildren: null, baseType: null != this.components ? "tuple" : this.type }), this._isParamType = true, Object.freeze(this);
34718        }
34719        return (0, u2.default)(e4, [{ key: "format", value: function(e5) {
34720          if (e5 || (e5 = w2.sighash), w2[e5] || p2.throwArgumentError("invalid format type", "format", e5), e5 === w2.json) {
34721            var t4 = { type: "tuple" === this.baseType ? "tuple" : this.type, name: this.name || void 0 };
34722            return "boolean" == typeof this.indexed && (t4.indexed = this.indexed), this.components && (t4.components = this.components.map(function(t5) {
34723              return JSON.parse(t5.format(e5));
34724            })), JSON.stringify(t4);
34725          }
34726          var r4 = "";
34727          return "array" === this.baseType ? (r4 += this.arrayChildren.format(e5), r4 += "[" + (this.arrayLength < 0 ? "" : String(this.arrayLength)) + "]") : "tuple" === this.baseType ? (e5 !== w2.sighash && (r4 += this.type), r4 += "(" + this.components.map(function(t5) {
34728            return t5.format(e5);
34729          }).join(e5 === w2.full ? ", " : ",") + ")") : r4 += this.type, e5 !== w2.sighash && (true === this.indexed && (r4 += " indexed"), e5 === w2.full && this.name && (r4 += " " + this.name)), r4;
34730        } }], [{ key: "from", value: function(t4, r4) {
34731          return "string" == typeof t4 ? e4.fromString(t4, r4) : e4.fromObject(t4);
34732        } }, { key: "fromObject", value: function(t4) {
34733          return e4.isParamType(t4) ? t4 : new e4(b2, { name: t4.name || null, type: M2(t4.type), indexed: null == t4.indexed ? null : !!t4.indexed, components: t4.components ? t4.components.map(e4.fromObject) : null });
34734        } }, { key: "fromString", value: function(t4, r4) {
34735          return n3 = function(e5, t5) {
34736            var r5 = e5;
34737            function n4(t6) {
34738              p2.throwArgumentError("unexpected character at position ".concat(t6), "param", e5);
34739            }
34740            function i2(e6) {
34741              var r6 = { type: "", name: "", parent: e6, state: { allowType: true } };
34742              return t5 && (r6.indexed = false), r6;
34743            }
34744            e5 = e5.replace(/\s/g, " ");
34745            for (var o2 = { type: "", name: "", state: { allowType: true } }, a2 = o2, s2 = 0; s2 < e5.length; s2++) {
34746              var u3 = e5[s2];
34747              switch (u3) {
34748                case "(":
34749                  a2.state.allowType && "" === a2.type ? a2.type = "tuple" : a2.state.allowParams || n4(s2), a2.state.allowType = false, a2.type = M2(a2.type), a2.components = [i2(a2)], a2 = a2.components[0];
34750                  break;
34751                case ")":
34752                  delete a2.state, "indexed" === a2.name && (t5 || n4(s2), a2.indexed = true, a2.name = ""), v2(a2.type, a2.name) && (a2.name = ""), a2.type = M2(a2.type);
34753                  var c3 = a2;
34754                  (a2 = a2.parent) || n4(s2), delete c3.parent, a2.state.allowParams = false, a2.state.allowName = true, a2.state.allowArray = true;
34755                  break;
34756                case ",":
34757                  delete a2.state, "indexed" === a2.name && (t5 || n4(s2), a2.indexed = true, a2.name = ""), v2(a2.type, a2.name) && (a2.name = ""), a2.type = M2(a2.type);
34758                  var f3 = i2(a2.parent);
34759                  a2.parent.components.push(f3), delete a2.parent, a2 = f3;
34760                  break;
34761                case " ":
34762                  a2.state.allowType && "" !== a2.type && (a2.type = M2(a2.type), delete a2.state.allowType, a2.state.allowName = true, a2.state.allowParams = true), a2.state.allowName && "" !== a2.name && ("indexed" === a2.name ? (t5 || n4(s2), a2.indexed && n4(s2), a2.indexed = true, a2.name = "") : v2(a2.type, a2.name) ? a2.name = "" : a2.state.allowName = false);
34763                  break;
34764                case "[":
34765                  a2.state.allowArray || n4(s2), a2.type += u3, a2.state.allowArray = false, a2.state.allowName = false, a2.state.readArray = true;
34766                  break;
34767                case "]":
34768                  a2.state.readArray || n4(s2), a2.type += u3, a2.state.readArray = false, a2.state.allowArray = true, a2.state.allowName = true;
34769                  break;
34770                default:
34771                  a2.state.allowType ? (a2.type += u3, a2.state.allowParams = true, a2.state.allowArray = true) : a2.state.allowName ? (a2.name += u3, delete a2.state.allowArray) : a2.state.readArray ? a2.type += u3 : n4(s2);
34772              }
34773            }
34774            return a2.parent && p2.throwArgumentError("unexpected eof", "param", e5), delete o2.state, "indexed" === a2.name ? (t5 || n4(r5.length - 7), a2.indexed && n4(r5.length - 7), a2.indexed = true, a2.name = "") : v2(a2.type, a2.name) && (a2.name = ""), o2.type = M2(o2.type), o2;
34775          }(t4, !!r4), e4.fromObject({ name: n3.name, type: n3.type, indexed: n3.indexed, components: n3.components });
34776          var n3;
34777        } }, { key: "isParamType", value: function(e5) {
34778          return !(null == e5 || !e5._isParamType);
34779        } }]), e4;
34780      }();
34781      function _(e4, t4) {
34782        return function(e5) {
34783          e5 = e5.trim();
34784          for (var t5 = [], r4 = "", n3 = 0, i2 = 0; i2 < e5.length; i2++) {
34785            var o2 = e5[i2];
34786            "," === o2 && 0 === n3 ? (t5.push(r4), r4 = "") : (r4 += o2, "(" === o2 ? n3++ : ")" === o2 && -1 == --n3 && p2.throwArgumentError("unbalanced parenthesis", "value", e5));
34787          }
34788          return r4 && t5.push(r4), t5;
34789        }(e4).map(function(e5) {
34790          return k2.fromString(e5, t4);
34791        });
34792      }
34793      t3.ParamType = k2;
34794      var S2 = function() {
34795        function e4(t4, r4) {
34796          (0, s.default)(this, e4), t4 !== b2 && p2.throwError("use a static from method", d2.Logger.errors.UNSUPPORTED_OPERATION, { operation: "new Fragment()" }), g2(this, r4), this._isFragment = true, Object.freeze(this);
34797        }
34798        return (0, u2.default)(e4, null, [{ key: "from", value: function(t4) {
34799          return e4.isFragment(t4) ? t4 : "string" == typeof t4 ? e4.fromString(t4) : e4.fromObject(t4);
34800        } }, { key: "fromObject", value: function(t4) {
34801          if (e4.isFragment(t4))
34802            return t4;
34803          switch (t4.type) {
34804            case "function":
34805              return T2.fromObject(t4);
34806            case "event":
34807              return x2.fromObject(t4);
34808            case "constructor":
34809              return B2.fromObject(t4);
34810            case "error":
34811              return I2.fromObject(t4);
34812            case "fallback":
34813            case "receive":
34814              return null;
34815          }
34816          return p2.throwArgumentError("invalid fragment object", "value", t4);
34817        } }, { key: "fromString", value: function(e5) {
34818          return "event" === (e5 = (e5 = (e5 = e5.replace(/\s/g, " ")).replace(/\(/g, " (").replace(/\)/g, ") ").replace(/\s+/g, " ")).trim()).split(" ")[0] ? x2.fromString(e5.substring(5).trim()) : "function" === e5.split(" ")[0] ? T2.fromString(e5.substring(8).trim()) : "constructor" === e5.split("(")[0].trim() ? B2.fromString(e5.trim()) : "error" === e5.split(" ")[0] ? I2.fromString(e5.substring(5).trim()) : p2.throwArgumentError("unsupported fragment", "value", e5);
34819        } }, { key: "isFragment", value: function(e5) {
34820          return !(!e5 || !e5._isFragment);
34821        } }]), e4;
34822      }();
34823      t3.Fragment = S2;
34824      var x2 = function(e4) {
34825        (0, i.default)(r4, e4);
34826        var t4 = h2(r4);
34827        function r4() {
34828          return (0, s.default)(this, r4), t4.apply(this, arguments);
34829        }
34830        return (0, u2.default)(r4, [{ key: "format", value: function(e5) {
34831          if (e5 || (e5 = w2.sighash), w2[e5] || p2.throwArgumentError("invalid format type", "format", e5), e5 === w2.json)
34832            return JSON.stringify({ type: "event", anonymous: this.anonymous, name: this.name, inputs: this.inputs.map(function(t6) {
34833              return JSON.parse(t6.format(e5));
34834            }) });
34835          var t5 = "";
34836          return e5 !== w2.sighash && (t5 += "event "), t5 += this.name + "(" + this.inputs.map(function(t6) {
34837            return t6.format(e5);
34838          }).join(e5 === w2.full ? ", " : ",") + ") ", e5 !== w2.sighash && this.anonymous && (t5 += "anonymous "), t5.trim();
34839        } }], [{ key: "from", value: function(e5) {
34840          return "string" == typeof e5 ? r4.fromString(e5) : r4.fromObject(e5);
34841        } }, { key: "fromObject", value: function(e5) {
34842          if (r4.isEventFragment(e5))
34843            return e5;
34844          "event" !== e5.type && p2.throwArgumentError("invalid event object", "value", e5);
34845          var t5 = { name: R2(e5.name), anonymous: e5.anonymous, inputs: e5.inputs ? e5.inputs.map(k2.fromObject) : [], type: "event" };
34846          return new r4(b2, t5);
34847        } }, { key: "fromString", value: function(e5) {
34848          var t5 = e5.match(j);
34849          t5 || p2.throwArgumentError("invalid event string", "value", e5);
34850          var n3 = false;
34851          return t5[3].split(" ").forEach(function(e6) {
34852            switch (e6.trim()) {
34853              case "anonymous":
34854                n3 = true;
34855                break;
34856              case "":
34857                break;
34858              default:
34859                p2.warn("unknown modifier: " + e6);
34860            }
34861          }), r4.fromObject({ name: t5[1].trim(), anonymous: n3, inputs: _(t5[2], true), type: "event" });
34862        } }, { key: "isEventFragment", value: function(e5) {
34863          return e5 && e5._isFragment && "event" === e5.type;
34864        } }]), r4;
34865      }(S2);
34866      function E2(e4, t4) {
34867        t4.gas = null;
34868        var r4 = e4.split("@");
34869        return 1 !== r4.length ? (r4.length > 2 && p2.throwArgumentError("invalid human-readable ABI signature", "value", e4), r4[1].match(/^[0-9]+$/) || p2.throwArgumentError("invalid human-readable ABI signature gas", "value", e4), t4.gas = c2.BigNumber.from(r4[1]), r4[0]) : e4;
34870      }
34871      function P2(e4, t4) {
34872        t4.constant = false, t4.payable = false, t4.stateMutability = "nonpayable", e4.split(" ").forEach(function(e5) {
34873          switch (e5.trim()) {
34874            case "constant":
34875              t4.constant = true;
34876              break;
34877            case "payable":
34878              t4.payable = true, t4.stateMutability = "payable";
34879              break;
34880            case "nonpayable":
34881              t4.payable = false, t4.stateMutability = "nonpayable";
34882              break;
34883            case "pure":
34884              t4.constant = true, t4.stateMutability = "pure";
34885              break;
34886            case "view":
34887              t4.constant = true, t4.stateMutability = "view";
34888              break;
34889            case "external":
34890            case "public":
34891            case "":
34892              break;
34893            default:
34894              console.log("unknown modifier: " + e5);
34895          }
34896        });
34897      }
34898      function O2(e4) {
34899        var t4 = { constant: false, payable: true, stateMutability: "payable" };
34900        return null != e4.stateMutability ? (t4.stateMutability = e4.stateMutability, t4.constant = "view" === t4.stateMutability || "pure" === t4.stateMutability, null != e4.constant && !!e4.constant !== t4.constant && p2.throwArgumentError("cannot have constant function with mutability " + t4.stateMutability, "value", e4), t4.payable = "payable" === t4.stateMutability, null != e4.payable && !!e4.payable !== t4.payable && p2.throwArgumentError("cannot have payable function with mutability " + t4.stateMutability, "value", e4)) : null != e4.payable ? (t4.payable = !!e4.payable, null != e4.constant || t4.payable || "constructor" === e4.type || p2.throwArgumentError("unable to determine stateMutability", "value", e4), t4.constant = !!e4.constant, t4.constant ? t4.stateMutability = "view" : t4.stateMutability = t4.payable ? "payable" : "nonpayable", t4.payable && t4.constant && p2.throwArgumentError("cannot have constant payable function", "value", e4)) : null != e4.constant ? (t4.constant = !!e4.constant, t4.payable = !t4.constant, t4.stateMutability = t4.constant ? "view" : "payable") : "constructor" !== e4.type && p2.throwArgumentError("unable to determine stateMutability", "value", e4), t4;
34901      }
34902      t3.EventFragment = x2;
34903      var B2 = function(e4) {
34904        (0, i.default)(r4, e4);
34905        var t4 = h2(r4);
34906        function r4() {
34907          return (0, s.default)(this, r4), t4.apply(this, arguments);
34908        }
34909        return (0, u2.default)(r4, [{ key: "format", value: function(e5) {
34910          if (e5 || (e5 = w2.sighash), w2[e5] || p2.throwArgumentError("invalid format type", "format", e5), e5 === w2.json)
34911            return JSON.stringify({ type: "constructor", stateMutability: "nonpayable" !== this.stateMutability ? this.stateMutability : void 0, payable: this.payable, gas: this.gas ? this.gas.toNumber() : void 0, inputs: this.inputs.map(function(t6) {
34912              return JSON.parse(t6.format(e5));
34913            }) });
34914          e5 === w2.sighash && p2.throwError("cannot format a constructor for sighash", d2.Logger.errors.UNSUPPORTED_OPERATION, { operation: "format(sighash)" });
34915          var t5 = "constructor(" + this.inputs.map(function(t6) {
34916            return t6.format(e5);
34917          }).join(e5 === w2.full ? ", " : ",") + ") ";
34918          return this.stateMutability && "nonpayable" !== this.stateMutability && (t5 += this.stateMutability + " "), t5.trim();
34919        } }], [{ key: "from", value: function(e5) {
34920          return "string" == typeof e5 ? r4.fromString(e5) : r4.fromObject(e5);
34921        } }, { key: "fromObject", value: function(e5) {
34922          if (r4.isConstructorFragment(e5))
34923            return e5;
34924          "constructor" !== e5.type && p2.throwArgumentError("invalid constructor object", "value", e5);
34925          var t5 = O2(e5);
34926          t5.constant && p2.throwArgumentError("constructor cannot be constant", "value", e5);
34927          var n3 = { name: null, type: e5.type, inputs: e5.inputs ? e5.inputs.map(k2.fromObject) : [], payable: t5.payable, stateMutability: t5.stateMutability, gas: e5.gas ? c2.BigNumber.from(e5.gas) : null };
34928          return new r4(b2, n3);
34929        } }, { key: "fromString", value: function(e5) {
34930          var t5 = { type: "constructor" }, n3 = (e5 = E2(e5, t5)).match(j);
34931          return n3 && "constructor" === n3[1].trim() || p2.throwArgumentError("invalid constructor string", "value", e5), t5.inputs = _(n3[2].trim(), false), P2(n3[3].trim(), t5), r4.fromObject(t5);
34932        } }, { key: "isConstructorFragment", value: function(e5) {
34933          return e5 && e5._isFragment && "constructor" === e5.type;
34934        } }]), r4;
34935      }(S2);
34936      t3.ConstructorFragment = B2;
34937      var T2 = function(e4) {
34938        (0, i.default)(r4, e4);
34939        var t4 = h2(r4);
34940        function r4() {
34941          return (0, s.default)(this, r4), t4.apply(this, arguments);
34942        }
34943        return (0, u2.default)(r4, [{ key: "format", value: function(e5) {
34944          if (e5 || (e5 = w2.sighash), w2[e5] || p2.throwArgumentError("invalid format type", "format", e5), e5 === w2.json)
34945            return JSON.stringify({ type: "function", name: this.name, constant: this.constant, stateMutability: "nonpayable" !== this.stateMutability ? this.stateMutability : void 0, payable: this.payable, gas: this.gas ? this.gas.toNumber() : void 0, inputs: this.inputs.map(function(t6) {
34946              return JSON.parse(t6.format(e5));
34947            }), outputs: this.outputs.map(function(t6) {
34948              return JSON.parse(t6.format(e5));
34949            }) });
34950          var t5 = "";
34951          return e5 !== w2.sighash && (t5 += "function "), t5 += this.name + "(" + this.inputs.map(function(t6) {
34952            return t6.format(e5);
34953          }).join(e5 === w2.full ? ", " : ",") + ") ", e5 !== w2.sighash && (this.stateMutability ? "nonpayable" !== this.stateMutability && (t5 += this.stateMutability + " ") : this.constant && (t5 += "view "), this.outputs && this.outputs.length && (t5 += "returns (" + this.outputs.map(function(t6) {
34954            return t6.format(e5);
34955          }).join(", ") + ") "), null != this.gas && (t5 += "@" + this.gas.toString() + " ")), t5.trim();
34956        } }], [{ key: "from", value: function(e5) {
34957          return "string" == typeof e5 ? r4.fromString(e5) : r4.fromObject(e5);
34958        } }, { key: "fromObject", value: function(e5) {
34959          if (r4.isFunctionFragment(e5))
34960            return e5;
34961          "function" !== e5.type && p2.throwArgumentError("invalid function object", "value", e5);
34962          var t5 = O2(e5), n3 = { type: e5.type, name: R2(e5.name), constant: t5.constant, inputs: e5.inputs ? e5.inputs.map(k2.fromObject) : [], outputs: e5.outputs ? e5.outputs.map(k2.fromObject) : [], payable: t5.payable, stateMutability: t5.stateMutability, gas: e5.gas ? c2.BigNumber.from(e5.gas) : null };
34963          return new r4(b2, n3);
34964        } }, { key: "fromString", value: function(e5) {
34965          var t5 = { type: "function" }, n3 = (e5 = E2(e5, t5)).split(" returns ");
34966          n3.length > 2 && p2.throwArgumentError("invalid function string", "value", e5);
34967          var i2 = n3[0].match(j);
34968          if (i2 || p2.throwArgumentError("invalid function signature", "value", e5), t5.name = i2[1].trim(), t5.name && R2(t5.name), t5.inputs = _(i2[2], false), P2(i2[3].trim(), t5), n3.length > 1) {
34969            var o2 = n3[1].match(j);
34970            "" == o2[1].trim() && "" == o2[3].trim() || p2.throwArgumentError("unexpected tokens", "value", e5), t5.outputs = _(o2[2], false);
34971          } else
34972            t5.outputs = [];
34973          return r4.fromObject(t5);
34974        } }, { key: "isFunctionFragment", value: function(e5) {
34975          return e5 && e5._isFragment && "function" === e5.type;
34976        } }]), r4;
34977      }(B2);
34978      function C2(e4) {
34979        var t4 = e4.format();
34980        return "Error(string)" !== t4 && "Panic(uint256)" !== t4 || p2.throwArgumentError("cannot specify user defined ".concat(t4, " error"), "fragment", e4), e4;
34981      }
34982      t3.FunctionFragment = T2;
34983      var I2 = function(e4) {
34984        (0, i.default)(r4, e4);
34985        var t4 = h2(r4);
34986        function r4() {
34987          return (0, s.default)(this, r4), t4.apply(this, arguments);
34988        }
34989        return (0, u2.default)(r4, [{ key: "format", value: function(e5) {
34990          if (e5 || (e5 = w2.sighash), w2[e5] || p2.throwArgumentError("invalid format type", "format", e5), e5 === w2.json)
34991            return JSON.stringify({ type: "error", name: this.name, inputs: this.inputs.map(function(t6) {
34992              return JSON.parse(t6.format(e5));
34993            }) });
34994          var t5 = "";
34995          return e5 !== w2.sighash && (t5 += "error "), (t5 += this.name + "(" + this.inputs.map(function(t6) {
34996            return t6.format(e5);
34997          }).join(e5 === w2.full ? ", " : ",") + ") ").trim();
34998        } }], [{ key: "from", value: function(e5) {
34999          return "string" == typeof e5 ? r4.fromString(e5) : r4.fromObject(e5);
35000        } }, { key: "fromObject", value: function(e5) {
35001          if (r4.isErrorFragment(e5))
35002            return e5;
35003          "error" !== e5.type && p2.throwArgumentError("invalid error object", "value", e5);
35004          var t5 = { type: e5.type, name: R2(e5.name), inputs: e5.inputs ? e5.inputs.map(k2.fromObject) : [] };
35005          return C2(new r4(b2, t5));
35006        } }, { key: "fromString", value: function(e5) {
35007          var t5 = { type: "error" }, n3 = e5.match(j);
35008          return n3 || p2.throwArgumentError("invalid error signature", "value", e5), t5.name = n3[1].trim(), t5.name && R2(t5.name), t5.inputs = _(n3[2], false), C2(r4.fromObject(t5));
35009        } }, { key: "isErrorFragment", value: function(e5) {
35010          return e5 && e5._isFragment && "error" === e5.type;
35011        } }]), r4;
35012      }(S2);
35013      function M2(e4) {
35014        return e4.match(/^uint($|[^1-9])/) ? e4 = "uint256" + e4.substring(4) : e4.match(/^int($|[^1-9])/) && (e4 = "int256" + e4.substring(3)), e4;
35015      }
35016      t3.ErrorFragment = I2;
35017      var U2 = new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");
35018      function R2(e4) {
35019        return e4 && e4.match(U2) || p2.throwArgumentError('invalid identifier "'.concat(e4, '"'), "value", e4), e4;
35020      }
35021      var j = new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");
35022    }, 2914: (e3, t3, r3) => {
35023      Object.defineProperty(t3, "RQ", { enumerable: true, get: function() {
35024        return i.AbiCoder;
35025      } }), Object.defineProperty(t3, "_R", { enumerable: true, get: function() {
35026        return n2.ParamType;
35027      } });
35028      var n2 = r3(800), i = r3(4937);
35029      r3(9044);
35030    }, 9044: (e3, t3, r3) => {
35031      var n2 = r3(8847);
35032      Object.defineProperty(t3, "__esModule", { value: true }), t3.TransactionDescription = t3.LogDescription = t3.Interface = t3.Indexed = t3.ErrorDescription = void 0, Object.defineProperty(t3, "checkResultErrors", { enumerable: true, get: function() {
35033        return y2.checkResultErrors;
35034      } });
35035      var i = n2(r3(8985)), o = n2(r3(9721)), a = n2(r3(5163)), s = n2(r3(4650)), u2 = n2(r3(1949)), c2 = r3(7921), f2 = r3(4952), d2 = r3(908), l2 = r3(7515), h2 = r3(4642), p2 = r3(3694), b2 = r3(4937), y2 = r3(7316), m2 = r3(800), v2 = r3(4327), g2 = r3(8067);
35036      function w2(e4) {
35037        var t4 = function() {
35038          if ("undefined" == typeof Reflect || !Reflect.construct)
35039            return false;
35040          if (Reflect.construct.sham)
35041            return false;
35042          if ("function" == typeof Proxy)
35043            return true;
35044          try {
35045            return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
35046            })), true;
35047          } catch (e5) {
35048            return false;
35049          }
35050        }();
35051        return function() {
35052          var r4, n3 = (0, u2.default)(e4);
35053          if (t4) {
35054            var i2 = (0, u2.default)(this).constructor;
35055            r4 = Reflect.construct(n3, arguments, i2);
35056          } else
35057            r4 = n3.apply(this, arguments);
35058          return (0, s.default)(this, r4);
35059        };
35060      }
35061      var A2 = new v2.Logger(g2.version), k2 = function(e4) {
35062        (0, a.default)(r4, e4);
35063        var t4 = w2(r4);
35064        function r4() {
35065          return (0, o.default)(this, r4), t4.apply(this, arguments);
35066        }
35067        return (0, i.default)(r4);
35068      }(p2.Description);
35069      t3.LogDescription = k2;
35070      var _ = function(e4) {
35071        (0, a.default)(r4, e4);
35072        var t4 = w2(r4);
35073        function r4() {
35074          return (0, o.default)(this, r4), t4.apply(this, arguments);
35075        }
35076        return (0, i.default)(r4);
35077      }(p2.Description);
35078      t3.TransactionDescription = _;
35079      var S2 = function(e4) {
35080        (0, a.default)(r4, e4);
35081        var t4 = w2(r4);
35082        function r4() {
35083          return (0, o.default)(this, r4), t4.apply(this, arguments);
35084        }
35085        return (0, i.default)(r4);
35086      }(p2.Description);
35087      t3.ErrorDescription = S2;
35088      var x2 = function(e4) {
35089        (0, a.default)(r4, e4);
35090        var t4 = w2(r4);
35091        function r4() {
35092          return (0, o.default)(this, r4), t4.apply(this, arguments);
35093        }
35094        return (0, i.default)(r4, null, [{ key: "isIndexed", value: function(e5) {
35095          return !(!e5 || !e5._isIndexed);
35096        } }]), r4;
35097      }(p2.Description);
35098      t3.Indexed = x2;
35099      var E2 = { "0x08c379a0": { signature: "Error(string)", name: "Error", inputs: ["string"], reason: true }, "0x4e487b71": { signature: "Panic(uint256)", name: "Panic", inputs: ["uint256"] } };
35100      function P2(e4, t4) {
35101        var r4 = new Error("deferred error during ABI decoding triggered accessing ".concat(e4));
35102        return r4.error = t4, r4;
35103      }
35104      var O2 = function() {
35105        function e4(t4) {
35106          var r4 = this;
35107          (0, o.default)(this, e4);
35108          var n3 = [];
35109          n3 = "string" == typeof t4 ? JSON.parse(t4) : t4, (0, p2.defineReadOnly)(this, "fragments", n3.map(function(e5) {
35110            return m2.Fragment.from(e5);
35111          }).filter(function(e5) {
35112            return null != e5;
35113          })), (0, p2.defineReadOnly)(this, "_abiCoder", (0, p2.getStatic)(this instanceof e4 ? this.constructor : void 0, "getAbiCoder")()), (0, p2.defineReadOnly)(this, "functions", {}), (0, p2.defineReadOnly)(this, "errors", {}), (0, p2.defineReadOnly)(this, "events", {}), (0, p2.defineReadOnly)(this, "structs", {}
35113), this.fragments.forEach(function(e5) {
35114            var t5 = null;
35115            switch (e5.type) {
35116              case "constructor":
35117                return r4.deploy ? void A2.warn("duplicate definition - constructor") : void (0, p2.defineReadOnly)(r4, "deploy", e5);
35118              case "function":
35119                t5 = r4.functions;
35120                break;
35121              case "event":
35122                t5 = r4.events;
35123                break;
35124              case "error":
35125                t5 = r4.errors;
35126                break;
35127              default:
35128                return;
35129            }
35130            var n4 = e5.format();
35131            t5[n4] ? A2.warn("duplicate definition - " + n4) : t5[n4] = e5;
35132          }), this.deploy || (0, p2.defineReadOnly)(this, "deploy", m2.ConstructorFragment.from({ payable: false, type: "constructor" })), (0, p2.defineReadOnly)(this, "_isInterface", true);
35133        }
35134        return (0, i.default)(e4, [{ key: "format", value: function(e5) {
35135          e5 || (e5 = m2.FormatTypes.full), e5 === m2.FormatTypes.sighash && A2.throwArgumentError("interface does not support formatting sighash", "format", e5);
35136          var t4 = this.fragments.map(function(t5) {
35137            return t5.format(e5);
35138          });
35139          return e5 === m2.FormatTypes.json ? JSON.stringify(t4.map(function(e6) {
35140            return JSON.parse(e6);
35141          })) : t4;
35142        } }, { key: "getFunction", value: function(e5) {
35143          if ((0, d2.isHexString)(e5)) {
35144            for (var t4 in this.functions)
35145              if (e5 === this.getSighash(t4))
35146                return this.functions[t4];
35147            A2.throwArgumentError("no matching function", "sighash", e5);
35148          }
35149          if (-1 === e5.indexOf("(")) {
35150            var r4 = e5.trim(), n3 = Object.keys(this.functions).filter(function(e6) {
35151              return e6.split("(")[0] === r4;
35152            });
35153            return 0 === n3.length ? A2.throwArgumentError("no matching function", "name", r4) : n3.length > 1 && A2.throwArgumentError("multiple matching functions", "name", r4), this.functions[n3[0]];
35154          }
35155          var i2 = this.functions[m2.FunctionFragment.fromString(e5).format()];
35156          return i2 || A2.throwArgumentError("no matching function", "signature", e5), i2;
35157        } }, { key: "getEvent", value: function(e5) {
35158          if ((0, d2.isHexString)(e5)) {
35159            var t4 = e5.toLowerCase();
35160            for (var r4 in this.events)
35161              if (t4 === this.getEventTopic(r4))
35162                return this.events[r4];
35163            A2.throwArgumentError("no matching event", "topichash", t4);
35164          }
35165          if (-1 === e5.indexOf("(")) {
35166            var n3 = e5.trim(), i2 = Object.keys(this.events).filter(function(e6) {
35167              return e6.split("(")[0] === n3;
35168            });
35169            return 0 === i2.length ? A2.throwArgumentError("no matching event", "name", n3) : i2.length > 1 && A2.throwArgumentError("multiple matching events", "name", n3), this.events[i2[0]];
35170          }
35171          var o2 = this.events[m2.EventFragment.fromString(e5).format()];
35172          return o2 || A2.throwArgumentError("no matching event", "signature", e5), o2;
35173        } }, { key: "getError", value: function(e5) {
35174          if ((0, d2.isHexString)(e5)) {
35175            var t4 = (0, p2.getStatic)(this.constructor, "getSighash");
35176            for (var r4 in this.errors)
35177              if (e5 === t4(this.errors[r4]))
35178                return this.errors[r4];
35179            A2.throwArgumentError("no matching error", "sighash", e5);
35180          }
35181          if (-1 === e5.indexOf("(")) {
35182            var n3 = e5.trim(), i2 = Object.keys(this.errors).filter(function(e6) {
35183              return e6.split("(")[0] === n3;
35184            });
35185            return 0 === i2.length ? A2.throwArgumentError("no matching error", "name", n3) : i2.length > 1 && A2.throwArgumentError("multiple matching errors", "name", n3), this.errors[i2[0]];
35186          }
35187          var o2 = this.errors[m2.FunctionFragment.fromString(e5).format()];
35188          return o2 || A2.throwArgumentError("no matching error", "signature", e5), o2;
35189        } }, { key: "getSighash", value: function(e5) {
35190          if ("string" == typeof e5)
35191            try {
35192              e5 = this.getFunction(e5);
35193            } catch (t4) {
35194              try {
35195                e5 = this.getError(e5);
35196              } catch (e6) {
35197                throw t4;
35198              }
35199            }
35200          return (0, p2.getStatic)(this.constructor, "getSighash")(e5);
35201        } }, { key: "getEventTopic", value: function(e5) {
35202          return "string" == typeof e5 && (e5 = this.getEvent(e5)), (0, p2.getStatic)(this.constructor, "getEventTopic")(e5);
35203        } }, { key: "_decodeParams", value: function(e5, t4) {
35204          return this._abiCoder.decode(e5, t4);
35205        } }, { key: "_encodeParams", value: function(e5, t4) {
35206          return this._abiCoder.encode(e5, t4);
35207        } }, { key: "encodeDeploy", value: function(e5) {
35208          return this._encodeParams(this.deploy.inputs, e5 || []);
35209        } }, { key: "decodeErrorResult", value: function(e5, t4) {
35210          "string" == typeof e5 && (e5 = this.getError(e5));
35211          var r4 = (0, d2.arrayify)(t4);
35212          return (0, d2.hexlify)(r4.slice(0, 4)) !== this.getSighash(e5) && A2.throwArgumentError("data signature does not match error ".concat(e5.name, "."), "data", (0, d2.hexlify)(r4)), this._decodeParams(e5.inputs, r4.slice(4));
35213        } }, { key: "encodeErrorResult", value: function(e5, t4) {
35214          return "string" == typeof e5 && (e5 = this.getError(e5)), (0, d2.hexlify)((0, d2.concat)([this.getSighash(e5), this._encodeParams(e5.inputs, t4 || [])]));
35215        } }, { key: "decodeFunctionData", value: function(e5, t4) {
35216          "string" == typeof e5 && (e5 = this.getFunction(e5));
35217          var r4 = (0, d2.arrayify)(t4);
35218          return (0, d2.hexlify)(r4.slice(0, 4)) !== this.getSighash(e5) && A2.throwArgumentError("data signature does not match function ".concat(e5.name, "."), "data", (0, d2.hexlify)(r4)), this._decodeParams(e5.inputs, r4.slice(4));
35219        } }, { key: "encodeFunctionData", value: function(e5, t4) {
35220          return "string" == typeof e5 && (e5 = this.getFunction(e5)), (0, d2.hexlify)((0, d2.concat)([this.get
35220Sighash(e5), this._encodeParams(e5.inputs, t4 || [])]));
35221        } }, { key: "decodeFunctionResult", value: function(e5, t4) {
35222          "string" == typeof e5 && (e5 = this.getFunction(e5));
35223          var r4 = (0, d2.arrayify)(t4), n3 = null, i2 = "", o2 = null, a2 = null, s2 = null;
35224          switch (r4.length % this._abiCoder._getWordSize()) {
35225            case 0:
35226              try {
35227                return this._abiCoder.decode(e5.outputs, r4);
35228              } catch (f4) {
35229              }
35230              break;
35231            case 4:
35232              var u3 = (0, d2.hexlify)(r4.slice(0, 4)), c3 = E2[u3];
35233              if (c3)
35234                o2 = this._abiCoder.decode(c3.inputs, r4.slice(4)), a2 = c3.name, s2 = c3.signature, c3.reason && (n3 = o2[0]), "Error" === a2 ? i2 = "; VM Exception while processing transaction: reverted with reason string ".concat(JSON.stringify(o2[0])) : "Panic" === a2 && (i2 = "; VM Exception while processing transaction: reverted with panic code ".concat(o2[0]));
35235              else
35236                try {
35237                  var f3 = this.getError(u3);
35238                  o2 = this._abiCoder.decode(f3.inputs, r4.slice(4)), a2 = f3.name, s2 = f3.format();
35239                } catch (f4) {
35240                }
35241          }
35242          return A2.throwError("call revert exception" + i2, v2.Logger.errors.CALL_EXCEPTION, { method: e5.format(), data: (0, d2.hexlify)(t4), errorArgs: o2, errorName: a2, errorSignature: s2, reason: n3 });
35243        } }, { key: "encodeFunctionResult", value: function(e5, t4) {
35244          return "string" == typeof e5 && (e5 = this.getFunction(e5)), (0, d2.hexlify)(this._abiCoder.encode(e5.outputs, t4 || []));
35245        } }, { key: "encodeFilterTopics", value: function(e5, t4) {
35246          var r4 = this;
35247          "string" == typeof e5 && (e5 = this.getEvent(e5)), t4.length > e5.inputs.length && A2.throwError("too many arguments for " + e5.format(), v2.Logger.errors.UNEXPECTED_ARGUMENT, { argument: "values", value: t4 });
35248          var n3 = [];
35249          e5.anonymous || n3.push(this.getEventTopic(e5));
35250          var i2 = function(e6, t5) {
35251            return "string" === e6.type ? (0, l2.id)(t5) : "bytes" === e6.type ? (0, h2.keccak256)((0, d2.hexlify)(t5)) : ("bool" === e6.type && "boolean" == typeof t5 && (t5 = t5 ? "0x01" : "0x00"), e6.type.match(/^u?int/) && (t5 = f2.BigNumber.from(t5).toHexString()), "address" === e6.type && r4._abiCoder.encode(["address"], [t5]), (0, d2.hexZeroPad)((0, d2.hexlify)(t5), 32));
35252          };
35253          for (t4.forEach(function(t5, r5) {
35254            var o2 = e5.inputs[r5];
35255            o2.indexed ? null == t5 ? n3.push(null) : "array" === o2.baseType || "tuple" === o2.baseType ? A2.throwArgumentError("filtering with tuples or arrays not supported", "contract." + o2.name, t5) : Array.isArray(t5) ? n3.push(t5.map(function(e6) {
35256              return i2(o2, e6);
35257            })) : n3.push(i2(o2, t5)) : null != t5 && A2.throwArgumentError("cannot filter non-indexed parameters; must be null", "contract." + o2.name, t5);
35258          }); n3.length && null === n3[n3.length - 1]; )
35259            n3.pop();
35260          return n3;
35261        } }, { key: "encodeEventLog", value: function(e5, t4) {
35262          var r4 = this;
35263          "string" == typeof e5 && (e5 = this.getEvent(e5));
35264          var n3 = [], i2 = [], o2 = [];
35265          return e5.anonymous || n3.push(this.getEventTopic(e5)), t4.length !== e5.inputs.length && A2.throwArgumentError("event arguments/values mismatch", "values", t4), e5.inputs.forEach(function(e6, a2) {
35266            var s2 = t4[a2];
35267            if (e6.indexed)
35268              if ("string" === e6.type)
35269                n3.push((0, l2.id)(s2));
35270              else if ("bytes" === e6.type)
35271                n3.push((0, h2.keccak256)(s2));
35272              else {
35273                if ("tuple" === e6.baseType || "array" === e6.baseType)
35274                  throw new Error("not implemented");
35275                n3.push(r4._abiCoder.encode([e6.type], [s2]));
35276              }
35277            else
35278              i2.push(e6), o2.push(s2);
35279          }), { data: this._abiCoder.encode(i2, o2), topics: n3 };
35280        } }, { key: "decodeEventLog", value: function(e5, t4, r4) {
35281          if ("string" == typeof e5 && (e5 = this.getEvent(e5)), null != r4 && !e5.anonymous) {
35282            var n3 = this.getEventTopic(e5);
35283            (0, d2.isHexString)(r4[0], 32) && r4[0].toLowerCase() === n3 || A2.throwError("fragment/topic mismatch", v2.Logger.errors.INVALID_ARGUMENT, { argument: "topics[0]", expected: n3, value: r4[0] }), r4 = r4.slice(1);
35284          }
35285          var i2 = [], o2 = [], a2 = [];
35286          e5.inputs.forEach(function(e6, t5) {
35287            e6.indexed ? "string" === e6.type || "bytes" === e6.type || "tuple" === e6.baseType || "array" === e6.baseType ? (i2.push(m2.ParamType.fromObject({ type: "bytes32", name: e6.name })), a2.push(true)) : (i2.push(e6), a2.push(false)) : (o2.push(e6), a2.push(false));
35288          });
35289          var s2 = null != r4 ? this._abiCoder.decode(i2, (0, d2.concat)(r4)) : null, u3 = this._abiCoder.decode(o2, t4, true), c3 = [], f3 = 0, l3 = 0;
35290          e5.inputs.forEach(function(e6, t5) {
35291            if (e6.indexed)
35292              if (null == s2)
35293                c3[t5] = new x2({ _isIndexed: true, hash: null });
35294              else if (a2[t5])
35295                c3[t5] = new x2({ _isIndexed: true, hash: s2[l3++] });
35296              else
35297                try {
35298                  c3[t5] = s2[l3++];
35299                } catch (e7) {
35300                  c3[t5] = e7;
35301                }
35302            else
35303              try {
35304                c3[t5] = u3[f3++];
35305              } catch (e7) {
35306                c3[t5] = e7;
35307              }
35308            if (e6.name && null == c3[e6.name]) {
35309              var r5 = c3[t5];
35310              r5 instanceof Error ? Object.defineProperty(c3, e6.name, { enumerable: true, get: function() {
35311                throw P2("property ".concat(JSON.stringify(e6.name)), r5);
35312              } }) : c3[e6.name] = r5;
35313            }
35314          });
35315          for (var h3 = function(e6) {
35316            var t5 = c3[e6];
35317            t5 instanceof Error && Object.defineProperty(c3, e6, { enumerable: true, get: function() {
35318              throw P2("index ".concat(e6), t5);
35319            } });
35320          }, p3 = 0; p3 < c3.length; p3++)
35321            h3(p3);
35322          return Object.freeze(c3);
35323        } }, { key: "parseTransaction", value: function(e5) {
35324          var t4 = this.getFunction(e5.data.substring(0, 10).toLowerCase());
35325          return t4 ? new _({ args: this._abiCoder.decode(t4.inputs, "0x" + e5.data.substring(10)), functionFragment: t4, name: t4.name, signature: t4.format(), sighash: this.getSighash(t4), value: f2.BigNumber.from(e5.value || "0") }) : null;
35326        } }, { key: "parseLog", value: function(e5) {
35327          var t4 = this.getEvent(e5.topics[0]);
35328          return !t4 || t4.anonymous ? null : new k2({ eventFragment: t4, name: t4.name, signature: t4.format(), topic: this.getEventTopic(t4), args: this.decodeEventLog(t4, e5.data, e5.topics) });
35329        } }, { key: "parseError", value: function(e5) {
35330          var t4 = (0, d2.hexlify)(e5), r4 = this.getError(t4.substring(0, 10).toLowerCase());
35331          return r4 ? new S2({ args: this._abiCoder.decode(r4.inputs, "0x" + t4.substring(10)), errorFragment: r4, name: r4.name, signature: r4.format(), sighash: this.getSighash(r4) }) : null;
35332        } }], [{ key: "getAbiCoder", value: function() {
35333          return b2.defaultAbiCoder;
35334        } }, { key: "getAddress", value: function(e5) {
35335          return (0, c2.getAddress)(e5);
35336        } }, { key: "getSighash", value: function(e5) {
35337          return (0, d2.hexDataSlice)((0, l2.id)(e5.format()), 0, 4);
35338        } }, { key: "getEventTopic", value: function(e5) {
35339          return (0, l2.id)(e5.format());
35340        } }, { key: "isInterface", value: function(e5) {
35341          return !(!e5 || !e5._isInterface);
35342        } }]), e4;
35343      }();
35344      t3.Interface = O2;
35345    }, 8222: (e3, t3) => {
35346      Object.defineProperty(t3, "__esModule", { value: true }), t3.version = void 0, t3.version = "address/5.7.0";
35347    }, 7921: (e3, t3, r3) => {
35348      Object.defineProperty(t3, "__esModule", { value: true }), t3.getAddress = m2, t3.getContractAddress = function(e4) {
35349        var t4 = null;
35350        try {
35351          t4 = m2(e4.from);
35352        } catch (t5) {
35353          c2.throwArgumentError("missing from address", "transaction", e4);
35354        }
35355        var r4 = (0, n2.stripZeros)((0, n2.arrayify)(i.BigNumber.from(e4.nonce).toHexString()));
35356        return m2((0, n2.hexDataSlice)((0, o.keccak256)((0, a.encode)([t4, r4])), 12));
35357      }, t3.getCreate2Address = function(e4, t4, r4) {
35358        return 32 !== (0, n2.hexDataLength)(t4) && c2.throwArgumentError("salt must be 32 bytes", "salt", t4), 32 !== (0, n2.hexDataLength)(r4) && c2.throwArgumentError("initCodeHash must be 32 bytes", "initCodeHash", r4), m2((0, n2.hexDataSlice)((0, o.keccak256)((0, n2.concat)(["0xff", m2(e4), t4, r4])), 12));
35359      }, t3.getIcapAddress = function(e4) {
35360        for (var t4 = (0, i._base16To36)(m2(e4).substring(2)).toUpperCase(); t4.length < 30; )
35361          t4 = "0" + t4;
35362        return "XE" + y2("XE00" + t4) + t4;
35363      }, t3.isAddress = function(e4) {
35364        try {
35365          return m2(e4), true;
35366        } catch (e5) {
35367        }
35368        return false;
35369      };
35370      var n2 = r3(908), i = r3(4952), o = r3(4642), a = r3(5265), s = r3(4327), u2 = r3(8222), c2 = new s.Logger(u2.version);
35371      function f2(e4) {
35372        (0, n2.isHexString)(e4, 20) || c2.throwArgumentError("invalid address", "address", e4);
35373        for (var t4 = (e4 = e4.toLowerCase()).substring(2).split(""), r4 = new Uint8Array(40), i2 = 0; i2 < 40; i2++)
35374          r4[i2] = t4[i2].charCodeAt(0);
35375        for (var a2 = (0, n2.arrayify)((0, o.keccak256)(r4)), s2 = 0; s2 < 40; s2 += 2)
35376          a2[s2 >> 1] >> 4 >= 8 && (t4[s2] = t4[s2].toUpperCase()), (15 & a2[s2 >> 1]) >= 8 && (t4[s2 + 1] = t4[s2 + 1].toUpperCase());
35377        return "0x" + t4.join("");
35378      }
35379      for (var d2 = {}, l2 = 0; l2 < 10; l2++)
35380        d2[String(l2)] = String(l2);
35381      for (var h2 = 0; h2 < 26; h2++)
35382        d2[String.fromCharCode(65 + h2)] = String(10 + h2);
35383      var p2, b2 = Math.floor((p2 = 9007199254740991, Math.log10 ? Math.log10(p2) : Math.log(p2) / Math.LN10));
35384      function y2(e4) {
35385        for (var t4 = (e4 = (e4 = e4.toUpperCase()).substring(4) + e4.substring(0, 2) + "00").split("").map(function(e5) {
35386          return d2[e5];
35387        }).join(""); t4.length >= b2; ) {
35388          var r4 = t4.substring(0, b2);
35389          t4 = parseInt(r4, 10) % 97 + t4.substring(r4.length);
35390        }
35391        for (var n3 = String(98 - parseInt(t4, 10) % 97); n3.length < 2; )
35392          n3 = "0" + n3;
35393        return n3;
35394      }
35395      function m2(e4) {
35396        var t4 = null;
35397        if ("string" != typeof e4 && c2.throwArgumentError("invalid address", "address", e4), e4.match(/^(0x)?[0-9a-fA-F]{40}$/))
35398          "0x" !== e4.substring(0, 2) && (e4 = "0x" + e4), t4 = f2(e4), e4.match(/([A-F].*[a-f])|([a-f].*[A-F])/) && t4 !== e4 && c2.throwArgumentError("bad address checksum", "address", e4);
35399        else if (e4.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)) {
35400          for (e4.substring(2, 4) !== y2(e4) && c2.throwArgumentError("bad icap checksum", "address", e4), t4 = (0, i._base36To16)(e4.substring(4)); t4.length < 40; )
35401            t4 = "0" + t4;
35402          t4 = f2("0x" + t4);
35403        } else
35404          c2.throwArgumentError("invalid address", "address", e4);
35405        return t4;
35406      }
35407    }, 5798: (e3, t3, r3) => {
35408      Object.defineProperty(t3, "__esModule", { value: true }), t3.decode = function(e4) {
35409        e4 = atob(e4);
35410        for (var t4 = [], r4 = 0; r4 < e4.length; r4++)
35411          t4.push(e4.charCodeAt(r4));
35412        return (0, n2.arrayify)(t4);
35413      }, t3.encode = function(e4) {
35414        e4 = (0, n2.arrayify)(e4);
35415        for (var t4 = "", r4 = 0; r4 < e4.length; r4++)
35416          t4 += String.fromCharCode(e4[r4]);
35417        return btoa(t4);
35418      };
35419      var n2 = r3(908);
35420    }, 997: (e3, t3, r3) => {
35421      Object.defineProperty(t3, "__esModule", { value: true }), Object.defineProperty(t3, "decode", { enumerable: true, get: function() {
35422        return n2.decode;
35423      } }), Object.defineProperty(t3, "encode", { enumerable: true, get: function() {
35424        return n2.encode;
35425      } });
35426      var n2 = r3(5798);
35427    }, 3042: (e3, t3) => {
35428      Object.defineProperty(t3, "__esModule", { value: true }), t3.version = void 0, t3.version = "bignumber/5.7.0";
35429    }, 1872: (e3, t3, r3) => {
35430      var n2 = r3(8847);
35431      Object.defineProperty(t3, "__esModule", { value: true }), t3.BigNumber = void 0, t3._base16To36 = function(e4) {
35432        return new f2(e4, 16).toString(36);
35433      }, t3._base36To16 = function(e4) {
35434        return new f2(e4, 36).toString(16);
35435      }, t3.isBigNumberish = function(e4) {
35436        return null != e4 && (b2.isBigNumber(e4) || "number" == typeof e4 && e4 % 1 == 0 || "string" == typeof e4 && !!e4.match(/^-?[0-9]+$/) || (0, s.isHexString)(e4) || "bigint" == typeof e4 || (0, s.isBytes)(e4));
35437      };
35438      var i = n2(r3(9721)), o = n2(r3(8985)), a = n2(r3(1734)), s = r3(908), u2 = r3(4327), c2 = r3(3042), f2 = a.default.BN, d2 = new u2.Logger(c2.version), l2 = {}, h2 = 9007199254740991, p2 = false, b2 = function() {
35439        function e4(t4, r4) {
35440          (0, i.default)(this, e4), t4 !== l2 && d2.throwError("cannot call constructor directly; use BigNumber.from", u2.Logger.errors.UNSUPPORTED_OPERATION, { operation: "new (BigNumber)" }), this._hex = r4, this._isBigNumber = true, Object.freeze(this);
35441        }
35442        return (0, o.default)(e4, [{ key: "fromTwos", value: function(e5) {
35443          return m2(v2(this).fromTwos(e5));
35444        } }, { key: "toTwos", value: function(e5) {
35445          return m2(v2(this).toTwos(e5));
35446        } }, { key: "abs", value: function() {
35447          return "-" === this._hex[0] ? e4.from(this._hex.substring(1)) : this;
35448        } }, { key: "add", value: function(e5) {
35449          return m2(v2(this).add(v2(e5)));
35450        } }, { key: "sub", value: function(e5) {
35451          return m2(v2(this).sub(v2(e5)));
35452        } }, { key: "div", value: function(t4) {
35453          return e4.from(t4).isZero() && g2("division-by-zero", "div"), m2(v2(this).div(v2(t4)));
35454        } }, { key: "mul", value: function(e5) {
35455          return m2(v2(this).mul(v2(e5)));
35456        } }, { key: "mod", value: function(e5) {
35457          var t4 = v2(e5);
35458          return t4.isNeg() && g2("division-by-zero", "mod"), m2(v2(this).umod(t4));
35459        } }, { key: "pow", value: function(e5) {
35460          var t4 = v2(e5);
35461          return t4.isNeg() && g2("negative-power", "pow"), m2(v2(this).pow(t4));
35462        } }, { key: "and", value: function(e5) {
35463          var t4 = v2(e5);
35464          return (this.isNegative() || t4.isNeg()) && g2("unbound-bitwise-result", "and"), m2(v2(this).and(t4));
35465        } }, { key: "or", value: function(e5) {
35466          var t4 = v2(e5);
35467          return (this.isNegative() || t4.isNeg()) && g2("unbound-bitwise-result", "or"), m2(v2(this).or(t4));
35468        } }, { key: "xor", value: function(e5) {
35469          var t4 = v2(e5);
35470          return (this.isNegative() || t4.isNeg()) && g2("unbound-bitwise-result", "xor"), m2(v2(this).xor(t4));
35471        } }, { key: "mask", value: function(e5) {
35472          return (this.isNegative() || e5 < 0) && g2("negative-width", "mask"), m2(v2(this).maskn(e5));
35473        } }, { key: "shl", value: function(e5) {
35474          return (this.isNegative() || e5 < 0) && g2("negative-width", "shl"), m2(v2(this).shln(e5));
35475        } }, { key: "shr", value: function(e5) {
35476          return (this.isNegative() || e5 < 0) && g2("negative-width", "shr"), m2(v2(this).shrn(e5));
35477        } }, { key: "eq", value: function(e5) {
35478          return v2(this).eq(v2(e5));
35479        } }, { key: "lt", value: function(e5) {
35480          return v2(this).lt(v2(e5));
35481        } }, { key: "lte", value: function(e5) {
35482          return v2(this).lte(v2(e5));
35483        } }, { key: "gt", value: function(e5) {
35484          return v2(this).gt(v2(e5));
35485        } }, { key: "gte", value: function(e5) {
35486          return v2(this).gte(v2(e5));
35487        } }, { key: "isNegative", value: function() {
35488          return "-" === this._hex[0];
35489        } }, { key: "isZero", value: function() {
35490          return v2(this).isZero();
35491        } }, { key: "toNumber", value: function() {
35492          try {
35493            return v2(this).toNumber();
35494          } catch (e5) {
35495            g2("overflow", "toNumber", this.toString());
35496          }
35497          return null;
35498        } }, { key: "toBigInt", value: function() {
35499          try {
35500            return BigInt(this.toString());
35501          } catch (e5) {
35502          }
35503          return d2.throwError("this platform does not support BigInt", u2.Logger.errors.UNSUPPORTED_OPERATION, { value: this.toString() });
35504        } }, { key: "toString", value: function() {
35505          return arguments.length > 0 && (10 === arguments[0] ? p2 || (p2 = true, d2.warn("BigNumber.toString does not accept any parameters;
35505 base-10 is assumed")) : 16 === arguments[0] ? d2.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()", u2.Logger.errors.UNEXPECTED_ARGUMENT, {}) : d2.throwError("BigNumber.toString does not accept parameters", u2.Logger.errors.UNEXPECTED_ARGUMENT, {})), v2(this).toString(10);
35506        } }, { key: "toHexString", value: function() {
35507          return this._hex;
35508        } }, { key: "toJSON", value: function(e5) {
35509          return { type: "BigNumber", hex: this.toHexString() };
35510        } }], [{ key: "from", value: function(t4) {
35511          if (t4 instanceof e4)
35512            return t4;
35513          if ("string" == typeof t4)
35514            return t4.match(/^-?0x[0-9a-f]+$/i) ? new e4(l2, y2(t4)) : t4.match(/^-?[0-9]+$/) ? new e4(l2, y2(new f2(t4))) : d2.throwArgumentError("invalid BigNumber string", "value", t4);
35515          if ("number" == typeof t4)
35516            return t4 % 1 && g2("underflow", "BigNumber.from", t4), (t4 >= h2 || t4 <= -h2) && g2("overflow", "BigNumber.from", t4), e4.from(String(t4));
35517          var r4 = t4;
35518          if ("bigint" == typeof r4)
35519            return e4.from(r4.toString());
35520          if ((0, s.isBytes)(r4))
35521            return e4.from((0, s.hexlify)(r4));
35522          if (r4)
35523            if (r4.toHexString) {
35524              var n3 = r4.toHexString();
35525              if ("string" == typeof n3)
35526                return e4.from(n3);
35527            } else {
35528              var i2 = r4._hex;
35529              if (null == i2 && "BigNumber" === r4.type && (i2 = r4.hex), "string" == typeof i2 && ((0, s.isHexString)(i2) || "-" === i2[0] && (0, s.isHexString)(i2.substring(1))))
35530                return e4.from(i2);
35531            }
35532          return d2.throwArgumentError("invalid BigNumber value", "value", t4);
35533        } }, { key: "isBigNumber", value: function(e5) {
35534          return !(!e5 || !e5._isBigNumber);
35535        } }]), e4;
35536      }();
35537      function y2(e4) {
35538        if ("string" != typeof e4)
35539          return y2(e4.toString(16));
35540        if ("-" === e4[0])
35541          return "-" === (e4 = e4.substring(1))[0] && d2.throwArgumentError("invalid hex", "value", e4), "0x00" === (e4 = y2(e4)) ? e4 : "-" + e4;
35542        if ("0x" !== e4.substring(0, 2) && (e4 = "0x" + e4), "0x" === e4)
35543          return "0x00";
35544        for (e4.length % 2 && (e4 = "0x0" + e4.substring(2)); e4.length > 4 && "0x00" === e4.substring(0, 4); )
35545          e4 = "0x" + e4.substring(4);
35546        return e4;
35547      }
35548      function m2(e4) {
35549        return b2.from(y2(e4));
35550      }
35551      function v2(e4) {
35552        var t4 = b2.from(e4).toHexString();
35553        return "-" === t4[0] ? new f2("-" + t4.substring(3), 16) : new f2(t4.substring(2), 16);
35554      }
35555      function g2(e4, t4, r4) {
35556        var n3 = { fault: e4, operation: t4 };
35557        return null != r4 && (n3.value = r4), d2.throwError(e4, u2.Logger.errors.NUMERIC_FAULT, n3);
35558      }
35559      t3.BigNumber = b2;
35560    }, 8390: (e3, t3, r3) => {
35561      var n2 = r3(8847);
35562      Object.defineProperty(t3, "__esModule", { value: true }), t3.FixedNumber = t3.FixedFormat = void 0, t3.formatFixed = v2, t3.parseFixed = g2;
35563      var i = n2(r3(3355)), o = n2(r3(9721)), a = n2(r3(8985)), s = r3(908), u2 = r3(4327), c2 = r3(3042), f2 = r3(1872), d2 = new u2.Logger(c2.version), l2 = {}, h2 = f2.BigNumber.from(0), p2 = f2.BigNumber.from(-1);
35564      function b2(e4, t4, r4, n3) {
35565        var i2 = { fault: t4, operation: r4 };
35566        return void 0 !== n3 && (i2.value = n3), d2.throwError(e4, u2.Logger.errors.NUMERIC_FAULT, i2);
35567      }
35568      for (var y2 = "0"; y2.length < 256; )
35569        y2 += y2;
35570      function m2(e4) {
35571        if ("number" != typeof e4)
35572          try {
35573            e4 = f2.BigNumber.from(e4).toNumber();
35574          } catch (e5) {
35575          }
35576        return "number" == typeof e4 && e4 >= 0 && e4 <= 256 && !(e4 % 1) ? "1" + y2.substring(0, e4) : d2.throwArgumentError("invalid decimal size", "decimals", e4);
35577      }
35578      function v2(e4, t4) {
35579        null == t4 && (t4 = 0);
35580        var r4 = m2(t4), n3 = (e4 = f2.BigNumber.from(e4)).lt(h2);
35581        n3 && (e4 = e4.mul(p2));
35582        for (var i2 = e4.mod(r4).toString(); i2.length < r4.length - 1; )
35583          i2 = "0" + i2;
35584        i2 = i2.match(/^([0-9]*[1-9]|0)(0*)/)[1];
35585        var o2 = e4.div(r4).toString();
35586        return e4 = 1 === r4.length ? o2 : o2 + "." + i2, n3 && (e4 = "-" + e4), e4;
35587      }
35588      function g2(e4, t4) {
35589        null == t4 && (t4 = 0);
35590        var r4 = m2(t4);
35591        "string" == typeof e4 && e4.match(/^-?[0-9.]+$/) || d2.throwArgumentError("invalid decimal value", "value", e4);
35592        var n3 = "-" === e4.substring(0, 1);
35593        n3 && (e4 = e4.substring(1)), "." === e4 && d2.throwArgumentError("missing value", "value", e4);
35594        var i2 = e4.split(".");
35595        i2.length > 2 && d2.throwArgumentError("too many decimal points", "value", e4);
35596        var o2 = i2[0], a2 = i2[1];
35597        for (o2 || (o2 = "0"), a2 || (a2 = "0"); "0" === a2[a2.length - 1]; )
35598          a2 = a2.substring(0, a2.length - 1);
35599        for (a2.length > r4.length - 1 && b2("fractional component exceeds decimals", "underflow", "parseFixed"), "" === a2 && (a2 = "0"); a2.length < r4.length - 1; )
35600          a2 += "0";
35601        var s2 = f2.BigNumber.from(o2), u3 = f2.BigNumber.from(a2), c3 = s2.mul(r4).add(u3);
35602        return n3 && (c3 = c3.mul(p2)), c3;
35603      }
35604      var w2 = function() {
35605        function e4(t4, r4, n3, i2) {
35606          (0, o.default)(this, e4), t4 !== l2 && d2.throwError("cannot use FixedFormat constructor; use FixedFormat.from", u2.Logger.errors.UNSUPPORTED_OPERATION, { operation: "new FixedFormat" }), this.signed = r4, this.width = n3, this.decimals = i2, this.name = (r4 ? "" : "u") + "fixed" + String(n3) + "x" + String(i2), this._multiplier = m2(i2), Object.freeze(this);
35607        }
35608        return (0, a.default)(e4, null, [{ key: "from", value: function(t4) {
35609          if (t4 instanceof e4)
35610            return t4;
35611          "number" == typeof t4 && (t4 = "fixed128x".concat(t4));
35612          var r4 = true, n3 = 128, o2 = 18;
35613          if ("string" == typeof t4)
35614            if ("fixed" === t4)
35615              ;
35616            else if ("ufixed" === t4)
35617              r4 = false;
35618            else {
35619              var a2 = t4.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);
35620              a2 || d2.throwArgumentError("invalid fixed format", "format", t4), r4 = "u" !== a2[1], n3 = parseInt(a2[2]), o2 = parseInt(a2[3]);
35621            }
35622          else if (t4) {
35623            var s2 = function(e5, r5, n4) {
35624              return null == t4[e5] ? n4 : ((0, i.default)(t4[e5]) !== r5 && d2.throwArgumentError("invalid fixed format (" + e5 + " not " + r5 + ")", "format." + e5, t4[e5]), t4[e5]);
35625            };
35626            r4 = s2("signed", "boolean", r4), n3 = s2("width", "number", n3), o2 = s2("decimals", "number", o2);
35627          }
35628          return n3 % 8 && d2.throwArgumentError("invalid fixed format width (not byte aligned)", "format.width", n3), o2 > 80 && d2.throwArgumentError("invalid fixed format (decimals too large)", "format.decimals", o2), new e4(l2, r4, n3, o2);
35629        } }]), e4;
35630      }();
35631      t3.FixedFormat = w2;
35632      var A2 = function() {
35633        function e4(t4, r4, n3, i2) {
35634          (0, o.default)(this, e4), t4 !== l2 && d2.throwError("cannot use FixedNumber constructor; use FixedNumber.from", u2.Logger.errors.UNSUPPORTED_OPERATION, { operation: "new FixedFormat" }), this.format = i2, this._hex = r4, this._value = n3, this._isFixedNumber = true, Object.freeze(this);
35635        }
35636        return (0, a.default)(e4, [{ key: "_checkFormat", value: function(e5) {
35637          this.format.name !== e5.format.name && d2.throwArgumentError("incompatible format; use fixedNumber.toFormat", "other", e5);
35638        } }, { key: "addUnsafe", value: function(t4) {
35639          this._checkFormat(t4);
35640          var r4 = g2(this._value, this.format.decimals), n3 = g2(t4._value, t4.format.decimals);
35641          return e4.fromValue(r4.add(n3), this.format.decimals, this.format);
35642        } }, { key: "subUnsafe", value: function(t4) {
35643          this._checkFormat(t4);
35644          var r4 = g2(this._value, this.format.decimals), n3 = g2(t4._value, t4.format.decimals);
35645          return e4.fromValue(r4.sub(n3), this.format.decimals, this.format);
35646        } }, { key: "mulUnsafe", value: function(t4) {
35647          this._checkFormat(t4);
35648          var r4 = g2(this._value, this.format.decimals), n3 = g2(t4._value, t4.format.decimals);
35649          return e4.fromValue(r4.mul(n3).div(this.format._multiplier), this.format.decimals, this.format);
35650        } }, { key: "divUnsafe", value: function(t4) {
35651          this._checkFormat(t4);
35652          var r4 = g2(this._value, this.format.decimals), n3 = g2(t4._value, t4.format.decimals);
35653          return e4.fromValue(r4.mul(this.format._multiplier).div(n3), this.format.decimals, this.format);
35654        } }, { key: "floor", value: function() {
35655          var t4 = this.toString().split(".");
35656          1 === t4.length && t4.push("0");
35657          var r4 = e4.from(t4[0], this.format), n3 = !t4[1].match(/^(0*)$/);
35658          return this.isNegative() && n3 && (r4 = r4.subUnsafe(k2.toF
35658ormat(r4.format))), r4;
35659        } }, { key: "ceiling", value: function() {
35660          var t4 = this.toString().split(".");
35661          1 === t4.length && t4.push("0");
35662          var r4 = e4.from(t4[0], this.format), n3 = !t4[1].match(/^(0*)$/);
35663          return !this.isNegative() && n3 && (r4 = r4.addUnsafe(k2.toFormat(r4.format))), r4;
35664        } }, { key: "round", value: function(t4) {
35665          null == t4 && (t4 = 0);
35666          var r4 = this.toString().split(".");
35667          if (1 === r4.length && r4.push("0"), (t4 < 0 || t4 > 80 || t4 % 1) && d2.throwArgumentError("invalid decimal count", "decimals", t4), r4[1].length <= t4)
35668            return this;
35669          var n3 = e4.from("1" + y2.substring(0, t4), this.format), i2 = _.toFormat(this.format);
35670          return this.mulUnsafe(n3).addUnsafe(i2).floor().divUnsafe(n3);
35671        } }, { key: "isZero", value: function() {
35672          return "0.0" === this._value || "0" === this._value;
35673        } }, { key: "isNegative", value: function() {
35674          return "-" === this._value[0];
35675        } }, { key: "toString", value: function() {
35676          return this._value;
35677        } }, { key: "toHexString", value: function(e5) {
35678          if (null == e5)
35679            return this._hex;
35680          e5 % 8 && d2.throwArgumentError("invalid byte width", "width", e5);
35681          var t4 = f2.BigNumber.from(this._hex).fromTwos(this.format.width).toTwos(e5).toHexString();
35682          return (0, s.hexZeroPad)(t4, e5 / 8);
35683        } }, { key: "toUnsafeFloat", value: function() {
35684          return parseFloat(this.toString());
35685        } }, { key: "toFormat", value: function(t4) {
35686          return e4.fromString(this._value, t4);
35687        } }], [{ key: "fromValue", value: function(t4, r4, n3) {
35688          return null != n3 || null == r4 || (0, f2.isBigNumberish)(r4) || (n3 = r4, r4 = null), null == r4 && (r4 = 0), null == n3 && (n3 = "fixed"), e4.fromString(v2(t4, r4), w2.from(n3));
35689        } }, { key: "fromString", value: function(t4, r4) {
35690          null == r4 && (r4 = "fixed");
35691          var n3 = w2.from(r4), i2 = g2(t4, n3.decimals);
35692          !n3.signed && i2.lt(h2) && b2("unsigned value cannot be negative", "overflow", "value", t4);
35693          var o2 = null;
35694          n3.signed ? o2 = i2.toTwos(n3.width).toHexString() : (o2 = i2.toHexString(), o2 = (0, s.hexZeroPad)(o2, n3.width / 8));
35695          var a2 = v2(i2, n3.decimals);
35696          return new e4(l2, o2, a2, n3);
35697        } }, { key: "fromBytes", value: function(t4, r4) {
35698          null == r4 && (r4 = "fixed");
35699          var n3 = w2.from(r4);
35700          if ((0, s.arrayify)(t4).length > n3.width / 8)
35701            throw new Error("overflow");
35702          var i2 = f2.BigNumber.from(t4);
35703          n3.signed && (i2 = i2.fromTwos(n3.width));
35704          var o2 = i2.toTwos((n3.signed ? 0 : 1) + n3.width).toHexString(), a2 = v2(i2, n3.decimals);
35705          return new e4(l2, o2, a2, n3);
35706        } }, { key: "from", value: function(t4, r4) {
35707          if ("string" == typeof t4)
35708            return e4.fromString(t4, r4);
35709          if ((0, s.isBytes)(t4))
35710            return e4.fromBytes(t4, r4);
35711          try {
35712            return e4.fromValue(t4, 0, r4);
35713          } catch (e5) {
35714            if (e5.code !== u2.Logger.errors.INVALID_ARGUMENT)
35715              throw e5;
35716          }
35717          return d2.throwArgumentError("invalid FixedNumber value", "value", t4);
35718        } }, { key: "isFixedNumber", value: function(e5) {
35719          return !(!e5 || !e5._isFixedNumber);
35720        } }]), e4;
35721      }();
35722      t3.FixedNumber = A2;
35723      var k2 = A2.from(1), _ = A2.from("0.5");
35724    }, 4952: (e3, t3, r3) => {
35725      Object.defineProperty(t3, "__esModule", { value: true }), Object.defineProperty(t3, "BigNumber", { enumerable: true, get: function() {
35726        return n2.BigNumber;
35727      } }), Object.defineProperty(t3, "FixedFormat", { enumerable: true, get: function() {
35728        return i.FixedFormat;
35729      } }), Object.defineProperty(t3, "FixedNumber", { enumerable: true, get: function() {
35730        return i.FixedNumber;
35731      } }), Object.defineProperty(t3, "_base16To36", { enumerable: true, get: function() {
35732        return n2._base16To36;
35733      } }), Object.defineProperty(t3, "_base36To16", { enumerable: true, get: function() {
35734        return n2._base36To16;
35735      } }), Object.defineProperty(t3, "formatFixed", { enumerable: true, get: function() {
35736        return i.formatFixed;
35737      } }), Object.defineProperty(t3, "parseFixed", { enumerable: true, get: function() {
35738        return i.parseFixed;
35739      } });
35740      var n2 = r3(1872), i = r3(8390);
35741    }, 8729: (e3, t3) => {
35742      Object.defineProperty(t3, "__esModule", { value: true }), t3.version = void 0, t3.version = "bytes/5.7.0";
35743    }, 908: (e3, t3, r3) => {
35744      Object.defineProperty(t3, "__esModule", { value: true }), t3.arrayify = d2, t3.concat = l2, t3.hexConcat = function(e4) {
35745        var t4 = "0x";
35746        return e4.forEach(function(e5) {
35747          t4 += y2(e5).substring(2);
35748        }), t4;
35749      }, t3.hexDataLength = function(e4) {
35750        if ("string" != typeof e4)
35751          e4 = y2(e4);
35752        else if (!p2(e4) || e4.length % 2)
35753          return null;
35754        return (e4.length - 2) / 2;
35755      }, t3.hexDataSlice = function(e4, t4, r4) {
35756        return "string" != typeof e4 ? e4 = y2(e4) : (!p2(e4) || e4.length % 2) && o.throwArgumentError("invalid hexData", "value", e4), t4 = 2 + 2 * t4, null != r4 ? "0x" + e4.substring(t4, 2 + 2 * r4) : "0x" + e4.substring(t4);
35757      }, t3.hexStripZeros = m2, t3.hexValue = function(e4) {
35758        var t4 = m2(y2(e4, { hexPad: "left" }));
35759        return "0x" === t4 ? "0x0" : t4;
35760      }, t3.hexZeroPad = v2, t3.hexlify = y2, t3.isBytes = f2, t3.isBytesLike = u2, t3.isHexString = p2, t3.joinSignature = function(e4) {
35761        return y2(l2([(e4 = g2(e4)).r, e4.s, e4.recoveryParam ? "0x1c" : "0x1b"]));
35762      }, t3.splitSignature = g2, t3.stripZeros = function(e4) {
35763        var t4 = d2(e4);
35764        if (0 === t4.length)
35765          return t4;
35766        for (var r4 = 0; r4 < t4.length && 0 === t4[r4]; )
35767          r4++;
35768        return r4 && (t4 = t4.slice(r4)), t4;
35769      }, t3.zeroPad = h2;
35770      var n2 = r3(4327), i = r3(8729), o = new n2.Logger(i.version);
35771      function a(e4) {
35772        return !!e4.toHexString;
35773      }
35774      function s(e4) {
35775        return e4.slice || (e4.slice = function() {
35776          var t4 = Array.prototype.slice.call(arguments);
35777          return s(new Uint8Array(Array.prototype.slice.apply(e4, t4)));
35778        }), e4;
35779      }
35780      function u2(e4) {
35781        return p2(e4) && !(e4.length % 2) || f2(e4);
35782      }
35783      function c2(e4) {
35784        return "number" == typeof e4 && e4 == e4 && e4 % 1 == 0;
35785      }
35786      function f2(e4) {
35787        if (null == e4)
35788          return false;
35789        if (e4.constructor === Uint8Array)
35790          return true;
35791        if ("string" == typeof e4)
35792          return false;
35793        if (!c2(e4.length) || e4.length < 0)
35794          return false;
35795        for (var t4 = 0; t4 < e4.length; t4++) {
35796          var r4 = e4[t4];
35797          if (!c2(r4) || r4 < 0 || r4 >= 256)
35798            return false;
35799        }
35800        return true;
35801      }
35802      function d2(e4, t4) {
35803        if (t4 || (t4 = {}), "number" == typeof e4) {
35804          o.checkSafeUint53(e4, "invalid arrayify value");
35805          for (var r4 = []; e4; )
35806            r4.unshift(255 & e4), e4 = parseInt(String(e4 / 256));
35807          return 0 === r4.length && r4.push(0), s(new Uint8Array(r4));
35808        }
35809        if (t4.allowMissingPrefix && "string" == typeof e4 && "0x" !== e4.substring(0, 2) && (e4 = "0x" + e4), a(e4) && (e4 = e4.toHexString()), p2(e4)) {
35810          var n3 = e4.substring(2);
35811          n3.length % 2 && ("left" === t4.hexPad ? n3 = "0" + n3 : "right" === t4.hexPad ? n3 += "0" : o.throwArgumentError("hex data is odd-length", "value", e4));
35812          for (var i2 = [], u3 = 0; u3 < n3.length; u3 += 2)
35813            i2.push(parseInt(n3.substring(u3, u3 + 2), 16));
35814          return s(new Uint8Array(i2));
35815        }
35816        return f2(e4) ? s(new Uint8Array(e4)) : o.throwArgumentError("invalid arrayify value", "value", e4);
35817      }
35818      function l2(e4) {
35819        var t4 = e4.map(function(e5) {
35820          return d2(e5);
35821        }), r4 = t4.reduce(function(e5, t5) {
35822          return e5 + t5.length;
35823        }, 0), n3 = new Uint8Array(r4);
35824        return t4.reduce(function(e5, t5) {
35825          return n3.set(t5, e5), e5 + t5.length;
35826        }, 0), s(n3);
35827      }
35828      function h2(e4, t4) {
35829        (e4 = d2(e4)).length > t4 && o.throwArgumentError("value out of range", "value", arguments[0]);
35830        var r4 = new Uint8Array(t4);
35831        return r4.set(e4, t4 - e4.length), s(r4);
35832      }
35833      function p2(e4, t4) {
35834        return !("string" != typeof e4 || !e4.match(/^0x[0-9A-Fa-f]*$/) || t4 && e4.length !== 2 + 2 * t4);
35835      }
35836      var b2 = "0123456789abcdef";
35837      function y2(e4, t4) {
35838        if (t4 || (t4 = {}), "number" == typeof e4) {
35839          o.checkSafeUint53(e4, "invalid hexlify value");
35840          for (var r4 = ""; e4; )
35841            r4 = b2[15 & e4] + r4, e4 = Math.floor(e4 / 16);
35842          return r4.length ? (r4.length % 2 && (r4 = "0" + r4), "0x" + r4) : "0x00";
35843        }
35844        if ("bigint" == typeof e4)
35845          return (e4 = e4.toString(16)).length % 2 ? "0x0" + e4 : "0x" + e4;
35846        if (t4.allowMissingPrefix && "string" == typeof e4 && "0x" !== e4.substring(0, 2) && (e4 = "0x" + e4), a(e4))
35847          return e4.toHexString();
35848        if (p2(e4))
35849          return e4.length % 2 && ("left" === t4.hexPad ? e4 = "0x0" + e4.substring(2) : "right" === t4.hexPad ? e4 += "0" : o.throwArgumentError("hex data is odd-length", "value", e4)), e4.toLowerCase();
35850        if (f2(e4)) {
35851          for (var n3 = "0x", i2 = 0; i2 < e4.length; i2++) {
35852            var s2 = e4[i2];
35853            n3 += b2[(240 & s2) >> 4] + b2[15 & s2];
35854          }
35855          return n3;
35856        }
35857        return o.throwArgumentError("invalid hexlify value", "value", e4);
35858      }
35859      function m2(e4) {
35860        "string" != typeof e4 && (e4 = y2(e4)), p2(e4) || o.throwArgumentError("invalid hex string", "value", e4), e4 = e4.substring(2);
35861        for (var t4 = 0; t4 < e4.length && "0" === e4[t4]; )
35862          t4++;
35863        return "0x" + e4.substring(t4);
35864      }
35865      function v2(e4, t4) {
35866        for ("string" != typeof e4 ? e4 = y2(e4) : p2(e4) || o.throwArgumentError("invalid hex string", "value", e4), e4.length > 2 * t4 + 2 && o.throwArgumentError("value out of range", "value", arguments[1]); e4.length < 2 * t4 + 2; )
35867          e4 = "0x0" + e4.substring(2);
35868        return e4;
35869      }
35870      function g2(e4) {
35871        var t4 = { r: "0x", s: "0x", _vs: "0x", recoveryParam: 0, v: 0, yParityAndS: "0x", compact: "0x" };
35872        if (u2(e4)) {
35873          var r4 = d2(e4);
35874          64 === r4.length ? (t4.v = 27 + (r4[32] >> 7), r4[32] &= 127, t4.r = y2(r4.slice(0, 32)), t4.s = y2(r4.slice(32, 64))) : 65 === r4.length ? (t4.r = y2(r4.slice(0, 32)), t4.s = y2(r4.slice(32, 64)), t4.v = r4[64]) : o.throwArgumentError("invalid signature string", "signature", e4), t4.v < 27 && (0 === t4.v || 1 === t4.v ? t4.v += 27 : o.throwArgumentError("signature invalid v byte", "signature", e4)), t4.recoveryParam = 1 - t4.v % 2, t4.recoveryParam && (r4[32] |= 128), t4._vs = y2(r4.slice(32, 64));
35875        } else {
35876          if (t4.r = e4.r, t4.s = e4.s, t4.v = e4.v, t4.recoveryParam = e4.recoveryParam, t4._vs = e4._vs, null != t4._vs) {
35877            var n3 = h2(d2(t4._vs), 32);
35878            t4._vs = y2(n3);
35879            var i2 = n3[0] >= 128 ? 1 : 0;
35880            null == t4.recoveryParam ? t4.recoveryParam = i2 : t4.recoveryParam !== i2 && o.throwArgumentError("signature recoveryParam mismatch _vs", "signature", e4), n3[0] &= 127;
35881            var a2 = y2(n3);
35882            null == t4.s ? t4.s = a2 : t4.s !== a2 && o.throwArgumentError("signature v mismatch _vs", "signature", e4);
35883          }
35884          if (null == t4.recoveryParam)
35885            null == t4.v ? o.throwArgumentError("signature missing v and recoveryParam", "signature", e4) : 0 === t4.v || 1 === t4.v ? t4.recoveryParam = t4.v : t4.recoveryParam = 1 - t4.v % 2;
35886          else if (null == t4.v)
35887            t4.v = 27 + t4.recoveryParam;
35888          else {
35889            var s2 = 0 === t4.v || 1 === t4.v ? t4.v : 1 - t4.v % 2;
35890            t4.recoveryParam !== s2 && o.throwArgumentError("signature recoveryParam mismatch v", "signature", e4);
35891          }
35892          null != t4.r && p2(t4.r) ? t4.r = v2(t4.r, 32) : o.throwArgumentError("signature missing or invalid r", "signature", e4), null != t4.s && p2(t4.s) ? t4.s = v2(t4.s, 32) : o.throwArgumentError("signature missing or invalid s", "signature", e4);
35893          var c3 = d2(t4.s);
35894          c3[0] >= 128 && o.throwArgumentError("signature s out of range", "signature", e4), t4.recoveryParam && (c3[0] |= 128);
35895          var f3 = y2(c3);
35896          t4._vs && (p2(t4._vs) || o.throwArgumentError("signature invalid _vs", "signature", e4), t4._vs = v2(t4._vs, 32)), null == t4._vs ? t4._vs = f3 : t4._vs !== f3 && o.throwArgumentError("signature _vs mismatch v and s", "signature", e4);
35897        }
35898        return t4.yParityAndS = t4._vs, t4.compact = t4.r + t4.yParityAndS.substring(2), t4;
35899      }
35900    }, 8721: (e3, t3) => {
35901      Object.defineProperty(t3, "__esModule", { value: true }), t3.AddressZero = void 0, t3.AddressZero = "0x0000000000000000000000000000000000000000";
35902    }, 2997: (e3, t3, r3) => {
35903      Object.defineProperty(t3, "__esModule", { value: true }), t3.Zero = t3.WeiPerEther = t3.Two = t3.One = t3.NegativeOne = t3.MinInt256 = t3.MaxUint256 = t3.MaxInt256 = void 0;
35904      var n2 = r3(4952), i = n2.BigNumber.from(-1);
35905      t3.NegativeOne = i;
35906      var o = n2.BigNumber.from(0);
35907      t3.Zero = o;
35908      var a = n2.BigNumber.from(1);
35909      t3.One = a;
35910      var s = n2.BigNumber.from(2);
35911      t3.Two = s;
35912      var u2 = n2.BigNumber.from("1000000000000000000");
35913      t3.WeiPerEther = u2;
35914      var c2 = n2.BigNumber.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
35915      t3.MaxUint256 = c2;
35916      var f2 = n2.BigNumber.from("-0x8000000000000000000000000000000000000000000000000000000000000000");
35917      t3.MinInt256 = f2;
35918      var d2 = n2.BigNumber.from("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
35919      t3.MaxInt256 = d2;
35920    }, 396: (e3, t3) => {
35921      Object.defineProperty(t3, "__esModule", { value: true }), t3.HashZero = void 0, t3.HashZero = "0x0000000000000000000000000000000000000000000000000000000000000000";
35922    }, 5465: (e3, t3, r3) => {
35923      Object.defineProperty(t3, "__esModule", { value: true }), Object.defineProperty(t3, "AddressZero", { enumerable: true, get: function() {
35924        return n2.AddressZero;
35925      } }), Object.defineProperty(t3, "EtherSymbol", { enumerable: true, get: function() {
35926        return a.EtherSymbol;
35927      } }), Object.defineProperty(t3, "HashZero", { enumerable: true, get: function() {
35928        return o.HashZero;
35929      } }), Object.defineProperty(t3, "MaxInt256", { enumerable: true, get: function() {
35930        return i.MaxInt256;
35931      } }), Object.defineProperty(t3, "MaxUint256", { enumerable: true, get: function() {
35932        return i.MaxUint256;
35933      } }), Object.defineProperty(t3, "MinInt256", { enumerable: true, get: function() {
35934        return i.MinInt256;
35935      } }), Object.defineProperty(t3, "NegativeOne", { enumerable: true, get: function() {
35936        return i.NegativeOne;
35937      } }), Object.defineProperty(t3, "One", { enumerable: true, get: function() {
35938        return i.One;
35939      } }), Object.defineProperty(t3, "Two", { enumerable: true, get: function() {
35940        return i.Two;
35941      } }), Object.defineProperty(t3, "WeiPerEther", { enumerable: true, get: function() {
35942        return i.WeiPerEther;
35943      } }), Object.defineProperty(t3, "Zero", { enumerable: true, get: function() {
35944        return i.Zero;
35945      } });
35946      var n2 = r3(8721), i = r3(2997), o = r3(396), a = r3(8347);
35947    }, 8347: (e3, t3) => {
35948      Object.defineProperty(t3, "__esModule", { value: true }), t3.EtherSymbol = void 0, t3.EtherSymbol = "Ξ";
35949    }, 3989: (e3, t3) => {
35950      Object.defineProperty(t3, "__esModule", { value: true }), t3.version = void 0, t3.version = "hash/5.7.0";
35951    }, 3731: (e3, t3) => {
35952      function r3(e4, t4) {
35953        null == t4 && (t4 = 1);
35954        var r4 = [], n3 = r4.forEach;
35955        return function e5(t5, i2) {
35956          n3.call(t5, function(t6) {
35957            i2 > 0 && Array.isArray(t6) ? e5(t6, i2 - 1) : r4.push(t6);
35958          });
35959        }(e4, t4), r4;
35960      }
35961      function n2(e4) {
35962        var t4 = 0;
35963        function r4() {
35964          return e4[t4++] << 8 | e4[t4++];
35965        }
35966        for (var n3 = r4(), i2 = 1, o2 = [0, 1], a2 = 1; a2 < n3; a2++)
35967          o2.push(i2 += r4());
35968        var s2 = r4(), u3 = t4;
35969        t4 += s2;
35970        var c3 = 0, f3 = 0;
35971        function d3() {
35972          return 0 == c3 && (f3 = f3 << 8 | e4[t4++], c3 = 8), f3 >> --c3 & 1;
35973        }
35974        for (var l3 = Math.pow(2, 31), h2 = l3 >>> 1, p2 = h2 >> 1, b2 = l3 - 1, y2 = 0, m2 = 0; m2 < 31; m2++)
35975          y2 = y2 << 1 | d3();
35976        for (var v2 = [], g2 = 0, w2 = l3; ; ) {
35977          for (var A2 = Math.floor(((y2 - g2 + 1) * i2 - 1) / w2), k2 = 0, _ = n3; _ - k2 > 1; ) {
35978            var S2 = k2 + _ >>> 1;
35979            A2 < o2[S2] ? _ = S2 : k2 = S2;
35980          }
35981          if (0 == k2)
35982            break;
35983          v2.push(k2);
35984          for (var x2 = g2 + Math.floor(w2 * o2[k2] / i2), E2 = g2 + Math.floor(w2 * o2[k2 + 1] / i2) - 1; 0 == ((x2 ^ E2) & h2); )
35985            y2 = y2 << 1 & b2 | d3(), x2 = x2 << 1 & b2, E2 = E2 << 1 & b2 | 1;
35986          for (; x2 & ~E2 & p2; )
35987            y2 = y2 & h2 | y2 << 1 & b2 >>> 1 | d3(), x2 = x2 << 1 ^ h2, E2 = (E2 ^ h2) << 1 | h2 | 1;
35988          g2 = x2, w2 = 1 + E2 - x2;
35989        }
35990        var P2 = n3 - 4;
35991        return v2.map(function(t5) {
35992          switch (t5 - P2) {
35993            case 3:
35994              return P2 + 65792 + (e4[u3++] << 16 | e4[u3++] << 8 | e4[u3++]);
35995            case 2:
35996              return P2 + 256 + (e4[u3++] << 8 | e4[u3++]);
35997            case 1:
35998              return P2 + e4[u3++];
35999            default:
36000              return t5 - 1;
36001          }
36002        });
36003      }
36004      function i(e4) {
36005        var t4 = 0;
36006        return function() {
36007          return e4[t4++];
36008        };
36009      }
36010      function o(e4) {
36011        return 1 & e4 ? ~e4 >> 1 : e4 >> 1;
36012      }
36013      function a(e4, t4) {
36014        for (var r4 = Array(e4), n3 = 0, i2 = -1; n3 < e4; n3++)
36015          r4[n3] = i2 += 1 + t4();
36016        return r4;
36017      }
36018      function s(e4, t4) {
36019        for (var r4 = Array(e4), n3 = 0, i2 = 0; n3 < e4; n3++)
36020          r4[n3] = i2 += o(t4());
36021        return r4;
36022      }
36023      function u2(e4, t4) {
36024        for (var r4 = a(e4(), e4), n3 = e4(), i2 = a(n3, e4), o2 = function(e5, t5) {
36025          for (var r5 = Array(e5), n4 = 0; n4 < e5; n4++)
36026            r5[n4] = 1 + t5();
36027          return r5;
36028        }(n3, e4), s2 = 0; s2 < n3; s2++)
36029          for (var u3 = 0; u3 < o2[s2];
36029 u3++)
36030            r4.push(i2[s2] + u3);
36031        return t4 ? r4.map(function(e5) {
36032          return t4[e5];
36033        }) : r4;
36034      }
36035      function c2(e4) {
36036        for (var t4 = []; ; ) {
36037          var r4 = e4();
36038          if (0 == r4)
36039            break;
36040          t4.push(r4);
36041        }
36042        return t4;
36043      }
36044      function f2(e4, t4, r4) {
36045        for (var n3 = Array(e4).fill(void 0).map(function() {
36046          return [];
36047        }), i2 = 0; i2 < t4; i2++)
36048          s(e4, r4).forEach(function(e5, t5) {
36049            return n3[t5].push(e5);
36050          });
36051        return n3;
36052      }
36053      function d2(e4, t4) {
36054        var n3 = 1 + t4(), i2 = t4(), o2 = c2(t4);
36055        return r3(f2(o2.length, 1 + e4, t4).map(function(e5, t5) {
36056          var r4 = e5[0], a2 = e5.slice(1);
36057          return Array(o2[t5]).fill(void 0).map(function(e6, t6) {
36058            var o3 = t6 * i2;
36059            return [r4 + t6 * n3, a2.map(function(e7) {
36060              return e7 + o3;
36061            })];
36062          });
36063        }));
36064      }
36065      function l2(e4, t4) {
36066        return f2(1 + t4(), 1 + e4, t4).map(function(e5) {
36067          return [e5[0], e5.slice(1)];
36068        });
36069      }
36070      Object.defineProperty(t3, "__esModule", { value: true }), t3.decode_arithmetic = n2, t3.read_compressed_payload = function(e4) {
36071        return i(n2(e4));
36072      }, t3.read_emoji_trie = function(e4) {
36073        var t4 = u2(e4).sort(function(e5, t5) {
36074          return e5 - t5;
36075        });
36076        return function r4() {
36077          for (var n3 = []; ; ) {
36078            var i2 = u2(e4, t4);
36079            if (0 == i2.length)
36080              break;
36081            n3.push({ set: new Set(i2), node: r4() });
36082          }
36083          n3.sort(function(e5, t5) {
36084            return t5.set.size - e5.set.size;
36085          });
36086          var o2 = e4();
36087          return { branches: n3, valid: o2 % 3, fe0f: !!(1 & (o2 = o2 / 3 | 0)), save: 1 == (o2 >>= 1), check: 2 == o2 };
36088        }();
36089      }, t3.read_mapped_map = function(e4) {
36090        for (var t4 = []; ; ) {
36091          var n3 = e4();
36092          if (0 == n3)
36093            break;
36094          t4.push(d2(n3, e4));
36095        }
36096        for (; ; ) {
36097          var i2 = e4() - 1;
36098          if (i2 < 0)
36099            break;
36100          t4.push(l2(i2, e4));
36101        }
36102        return function(e5) {
36103          for (var t5 = {}, r4 = 0; r4 < e5.length; r4++) {
36104            var n4 = e5[r4];
36105            t5[n4[0]] = n4[1];
36106          }
36107          return t5;
36108        }(r3(t4));
36109      }, t3.read_member_array = u2, t3.read_payload = i, t3.read_zero_terminated_array = c2, t3.signed = o;
36110    }, 3961: (e3, t3, r3) => {
36111      Object.defineProperty(t3, "__esModule", { value: true }), t3.getData = function() {
36112        return (0, i.read_compressed_payload)((0, n2.decode)
vendor: 14,757 bytes, line 36112
36112("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABsZBTMNJipjOhc19gcIDR8bBwQHEggCWi6DIgLuAQYA+BAFCha3A5XiAEsqM7UFFgFLhAMjFTMYE1Klnw74nRVBG/ASCm0BYRN/BrsU3VoWy+S0vV8LQx+vN8gF2AC2AK5EAWwApgYDKmAAroQ0NDQ0AT+OCg7wAAIHRAbpNgVcBV0APTA5BfbPFgMLzcYL/QqqA82eBALKCjQCjqYCht0/k2+OAsXQAoP3ASTKDgDw6ACKAUYCMpIKJpRaAE4A5womABzZvs0REEKiACIQAd5QdAECAj4Ywg/wGqY2AVgAYADYvAoCGAEubA0gvAY2ALAAbpbvqpyEAGAEpgQAJgAG7gAgAEACmghUFwCqAMpAINQIwC4DthRAAPcycKgApoIdABwBfCisABoATwBqASIAvhnSBP8aH/ECeAKXAq40NjgDBTwFYQU6AXs3oABgAD4XNgmcCY1eCl5tIFZeUqGgyoNHABgAEQAaABNwWQAmABMATPMa3T34ADldyprmM1M2XociUQgLzvwAXT3xABgAEQAaABNwIGFAnADD8AAgAD4BBJWzaCcIAIEBFMAWwKoAAdq9BWAF5wLQpALEtQAKUSGkahR4GnJM+gsAwCgeFAiUAECQ0BQuL8AAIAAAADKeIheclvFqQAAETr4iAMxIARMgAMIoHhQIAn0E0pDQFC4HhznoAAAAIAI2C0/4lvFqQAAETgBJJwYCAy4ABgYAFAA8MBKYEH4eRhTkAjYeFcgACAYAeABsOqyQ5gRwDayqugEgaIIAtgoACgDmEABmBAWGme5OBJJA2m4cDeoAmITWAXwrMgOgAGwBCh6CBXYF1Tzg1wKAAFdiuABRAFwAXQBsAG8AdgBrAHYAbwCEAHEwfxQBVE5TEQADVFhTBwBDANILAqcCzgLTApQCrQL6vAAMAL8APLhNBKkE6glGKTAU4Dr4N2EYEwBCkABKk8rHAbYBmwIoAiU4Ajf/Aq4CowCAANIChzgaNBsCsTgeODcFXrgClQKdAqQBiQGYAqsCsjTsNHsfNPA0ixsAWTWiOAMFPDQSNCk2BDZHNow2TTZUNhk28Jk9VzI3QkEoAoICoQKwAqcAQAAxBV4FXbS9BW47YkIXP1ciUqs05DS/FwABUwJW11e6nHuYZmSh/RAYA8oMKvZ8KASoUAJYWAJ6ILAsAZSoqjpgA0ocBIhmDgDWAAawRDQoAAcuAj5iAHABZiR2AIgiHgCaAU68ACxuHAG0ygM8MiZIAlgBdF4GagJqAPZOHAMuBgoATkYAsABiAHgAMLoGDPj0HpKEBAAOJgAuALggTAHWAeAMEDbd20Uege0ADwAWADkAQgA9OHd+2MUQZBBhBgNNDkxxPxUQArEPqwvqERoM1irQ090ANK4H8ANYB/ADWANYB/AH8ANYB/ADWANYA1gDWBwP8B/YxRBkD00EcgWTBZAE2wiIJk4RhgctCNdUEnQjHEwDSgEBIypJITuYMxAlR0wRTQgIATZHbKx9PQNMMbBU+pCnA9AyVDlxBgMedhKlAC8PeCE1uk6DekxxpQpQT7NX9wBFBgASqwAS5gBJDSgAUCwGPQBI4zTYABNGAE2bAE3KAExdGABKaAbgAFBXAFCOAFBJABI2SWdObALDOq0//QomCZhvwHdTBkIQHCemEPgMNAG2ATwN7kvZBPIGPATKH34ZGg/OlZ0Ipi3eDO4m5C6igFsj9iqEBe5L9TzeC05RaQ9aC2YJ5DpkgU8DIgEOIowK3g06CG4Q9ArKbA3mEUYHOgPWSZsApgcCCxIdNhW2JhFirQsKOXgG/Br3C5AmsBMqev0F1BoiBk4BKhsAANAu6IWxWjJcHU9gBgQLJiPIFKlQIQ0mQLh4SRocBxYlqgKSQ3FKiFE3HpQh9zw+DWcuFFF9B/Y8BhlQC4I8n0asRQ8R0z6OPUkiSkwtBDaALDAnjAnQD4YMunxzAVoJIgmyDHITMhEYN8YIOgcaLpclJxYIIkaWYJsE+KAD9BPSAwwFQAlCBxQDthwuEy8VKgUOgSXYAvQ21i60ApBWgQEYBcwPJh/gEFFH4Q7qCJwCZgOEJewALhUiABginAhEZABgj9lTBi7MCMhqbSN1A2gU6GIRdAeSDlgHqBw0FcAc4nDJXgyGCSiksAlcAXYJmgFgBOQICjVcjKEgQmdUi1kYnCBiQUBd/QIyDGYVoES+h3kCjA9sEhwBNgF0BzoNAgJ4Ee4RbBCWCOyGBTW2M/k6JgRQIYQgEgooA1BszwsoJvoM+WoBpBJjAw00PnfvZ6xgtyUX/gcaMsZBYSHyC5NPzgydGsIYQ1QvGeUHwAP0GvQn60FYBgADpAQUOk4z7wS+C2oIjAlAAEoOpBgH2BhrCnKM0QEyjAG4mgNYkoQCcJAGOAcMAGgMiAV65gAeAqgIpAAGANADWAA6Aq4HngAaAIZCAT4DKDABIuYCkAOUCDLMAZYwAfQqBBzEDBYA+DhuSwLDsgKAa2ajBd5ZAo8CSjYBTiYEBk9IUgOwcuIA3ABMBhTgSAEWrEvMG+REAeBwLADIAPwABjYHBkIBzgH0bgC4AWALMgmjtLYBTuoqAIQAFmwB2AKKAN4ANgCA8gFUAE4FWvoF1AJQSgESMhksWGIBvAMgATQBDgB6BsyOpsoIIARuB9QCEBwV4gLvLwe2AgMi4BPOQsYCvd9WADIXUu5eZwqoCqdeaAC0YTQHMnM9UQAPH6k+yAdy/BZIiQImSwBQ5gBQQzSaNTFWSTYBpwGqKQK38AFtqwBI/wK37gK3rQK3sAK6280C0gK33AK3zxAAUEIAUD9SklKDArekArw5AEQAzAHCO147WTteO1k7XjtZO147WTteO1kDmChYI03AVU0oJqkKbV9GYewMpw3VRMk6ShPcYFJgMxPJLbgUwhXPJVcZPhq9JwYl5VUKDwUt1GYxCC00dhe9AEApaYNCY4ceMQpMHOhTklT5LRwAskujM7ANrRsWREEFSHXuYisWDwojAmSCAmJDXE6wXDchAqH4AmiZAmYKAp+FOBwMAmY8AmYnBG8EgAN/FAN+kzkHOXgYOYM6JCQCbB4CMjc4CwJtyAJtr/CLADRoRiwBaADfAOIASwYHmQyOAP8MwwAOtgJ3MAJ2o0ACeUxEAni7Hl3cRa9G9AJ8QAJ6yQJ9CgJ88UgBSH5kJQAsFklZSlwWGErNAtECAtDNSygDiFADh+dExpEzAvKiXQQDA69Lz0wuJgTQTU1NsAKLQAKK2cIcCB5EaAa4Ao44Ao5dQZiCAo7aAo5deVG1UzYLUtVUhgKT/AKTDQDqAB1VH1WwVdEHLBwplocy4nhnRTw6ApegAu+zWCKpAFomApaQApZ9nQCqWa1aCoJOADwClrYClk9cRVzSApnMApllXMtdCBoCnJw5wzqeApwXAp+cAp65iwAeEDIrEAKd8gKekwC2PmE1YfACntQCoG8BqgKeoCACnk+mY8lkKCYsAiewAiZ/AqD8AqBN2AKmMAKlzwKoAAB+AqfzaH1osgAESmodatICrOQCrK8CrWgCrQMCVx4CVd0CseLYAx9PbJgCsr4OArLpGGzhbWRtSWADJc4Ctl08QG6RAylGArhfArlIFgK5K3hwN3DiAr0aAy2zAzISAr6JcgMDM3ICvhtzI3NQAsPMAsMFc4N0TDZGdOEDPKgDPJsDPcACxX0CxkgCxhGKAshqUgLIRQLJUALJLwJkngLd03h6YniveSZL0QMYpGcDAmH1GfSVJXsMXpNevBICz2wCz20wTFTT9BSgAMeuAs90ASrrA04TfkwGAtwoAtuLAtJQA1JdA1NgAQIDVY2AikABzBfuYUZ2AILPg44C2sgC2d+EEYRKpz0DhqYAMANkD4ZyWvoAVgLfZgLeuXR4AuIw7RUB8zEoAfScAfLTiALr9ALpcXoAAur6AurlAPpIAboC7ooC652Wq5cEAu5AA4XhmHpw4XGiAvMEAGoDjheZlAL3FAORbwOSiAL3mQL52gL4Z5odmqy8OJsfA52EAv77ARwAOp8dn7QDBY4DpmsDptoA0sYDBmuhiaIGCgMMSgFgASACtgNGAJwEgLpoBgC8BGzAEowcggCEDC6kdjoAJAM0C5IKRoABZCgiAIzw3AYBLACkfng9ogigkgNmWAN6AEQCvrkEVqTGAwCsBRbAA+4iQkMCHR072jI2PTbUNsk2RjY5NvA23TZKNiU3EDcZN5I+RTxDRTBCJkK5VBYKFhZfwQCWygU3AJBRHpu+OytgNxa61A40GMsYjsn7BVwFXQVcBV0FaAVdBVwFXQVcBV0FXAVdBVwFXUsaCNyKAK4AAQUHBwKU7oICoW1e7jAEzgPxA+YDwgCkBFDAwADABKzAAOxFLhitA1UFTDeyPkM+bj51QkRCuwTQWWQ8X+0AWBYzsACNA8xwzAGm7EZ/QisoCTAbLDs6fnLfb8H2GccsbgFw13M1HAVkBW/Jxsm9CNRO8E8FDD0FBQw9FkcClOYCoMFegpDfADgcMiA2AJQACB8AsigKAIzIEAJKeBIApY5yPZQIAKQiHb4fvj5BKSRPQrZCOz0oXyxgOywfKAnGbgMClQaCAkILXgdeCD9IIGUgQj5fPoY+dT52Ao5CM0dAX9BTVG9SDzFwWTQAbxBzJF/lOEIQQglCCkKJIAls5AcClQICoKPMODEFxhi6KSAbiyfIRrMjtCgdWCAkPlFBIitCsEJRzAbMAV/OEyQzDg0OAQQEJ36i328/Mk9AybDJsQlq3tDRApUKAkFzXf1d/j9uALYP6hCoFgCTGD8kPsFKQiobrm0+zj0KSD8kPnVCRBwMDyJRTHFgMTJa5rwXQiQ2YfI/JD7BMEJEHGINTw4TOFlIRzwJO0icMQpyPyQ+wzJCRBv6DVgnKB01NgUKj2bwYzMqCoBkznBgEF+zYDIocwRIX+NgHj4HICNfh2C4CwdwFWpTG/lgUhYGAwRfv2Ts8mAaXzVgml/XYIJfuWC4HI1gUF9pYJZgMR6ilQHMAOwLAlDRefC0in4AXAEJA6PjCwc0IamOANMMCAECRQDFNRTZBgd+CwQlRA+r6+gLBDEFBnwUBXgKATIArwAGRAAHA3cDdAN2A3kDdwN9A3oDdQN7A30DfAN4A3oDfQAYEAAlAtYASwMAUAFsAHcKAHcAmgB3AHUAdQB2AHVu8UgAygDAAHcAdQB1AHYAdQALCgB3AAsAmgB3AAsCOwB3AAtu8UgAygDAAHgKAJoAdwB3AHUAdQB2AHUAeAB1AHUAdgB1bvFIAMoAwAALCgCaAHcACwB3AAsCOwB3AAtu8UgAygDAAH4ACwGgALcBpwC6AahdAu0COwLtbvFIAMoAwAALCgCaAu0ACwLtAAsCOwLtAAtu8UgAygDAA24ACwNvAAu0VsQAAzsAABCkjUIpAAsAUIusOggWcgMeBxVsGwL67U/2HlzmWOEeOgALASvuAAseAfpKUpnpGgYJDCIZM6YyARUE9ThqAD5iXQgnAJYJPnOzw0ZAEZxEKsIAkA4DhAHnTAIDxxUDK0lxCQlPYgIvIQVYJQBVqE1GakUAKGYiDToSBA1EtAYAXQJYAIF8GgMHRyAAIAjOe9YncekRAA0KACUrjwE7Ayc6AAYWAqaiKG4McEcqANoN3+Mg9TwCBhIkuCny+JwUQ29L008JluRxu3K+oAdqiHOqFH0AG5SUIfUJ5SxCGfxdipRzqTmT4V5Zb+r1Uo4Vm+NqSSEl2mNvR2JhIa8SpYO6ntdwFXHCWTCK8f2+Hxo7uiG3drDycAuKIMP5bhi06ACnqArH1rz4Rqg//lm6SgJGEVbF9xJHISaR6HxqxSnkw6shDnelHKNEfGUXSJRJ1GcsmtJw25xrZMDK9gXSm1/YMkdX4/6NKYOdtk/NQ3/NnDASjTc3fPjIjW/5sVfVObX2oTDWkr1dF9f3kxBsD3/3aQO8hPfRz+e0uEiJqt1161griu7gz8hDDwtpy+F+BWtefnKHZPAxcZoWbnznhJpy0e842j36bcNzGnIEusgGX0a8ZxsnjcSsPDZ09yZ36fCQbriHeQ72JRMILNl6ePPf2HWoVwgWAm1fb3V2sAY0+B6rAXqSwPBgseVmoqsBTSrm91+XasMYYySI8eeRxH3ZvHkMz3BQ5aJ3iUVbYPNM3/7emRtjlsMgv/9VyTsyt/mK+8fgWeT6SoFaclXqn42dAIsvAarF5vNNWHzKSkKQ/8Hfk5ZWK7r9yliOsooyBjRhfkHP4Q2DkWXQi6FG/9r/IwbmkV5T7JSopHKn1pJwm9tb5Ot0oyN1Z2mPpKXHTxx2nlK08fKk1hEYA8WgVVWL5lgx0iTv+KdojJeU23ZDjmiubXOxVXJKKi2Wjuh2HLZOFLiSC7Tls5SMh4f+Pj6xUSrNjFqLGehRNB8lC0QSLNmkJJx/wSG3MnjE9T1CkPwJI0wH2lfzwETIiVqUxg0dfu5q39Gt+hwdcxkhhNvQ4TyrBceof3Mhs/IxFci1HmHr4FMZgXEEczPiGCx0HRwzAqDq2j9AVm1kwN0mRVLWLylgtoPNapF5cY4Y1wJh/e0BBwZj44YgZrDNqvD/9Hv7GFYdUQeDJuQ3EWI4HaKqavU1XjC/n41kT4L79kqGq0kLhdTZvgP3TA3fS0ozVz+5piZsoOtIvBUFoMKbNcmBL6YxxaUAusHB38XrS8dQMnQwJfUUkpRoGr5AUeWicvBTzyK9g77+yCkf5PAysL7r/JjcZgrbvRpMW9iyaxZvKO6ceZN2EwIxKwVFPuvFuiEPGCoagbMo+SpydLrXqBzNCDGFCrO/rkcwa2xhokQZ5CdZ0AsU3JfSqJ6n5I14YA+P/uAgfhPU84Tlw7cEFfp7AEE8ey4sP12PTt4Cods1GRgDOB5xvyiR5m+Bx8O5nBCNctU8BevfV5A08x6RHd5jcwPTMDSZJOedIZ1cGQ704lxbAzqZOP05ZxaOghzSdvFBHYqomATARyAADK4elP8Ly3IrUZKfWh23Xy20uBUmLS4Pfagu9+oyVa2iPgqRP3F2CTUsvJ7+RYnN8fFZbU/HVvxvcFFDKkiTqV5UBZ3Gz54JAKByi9hkKMZJvuGgcSYXFmw08UyoQyVdfTD1/dMkCHXcTGAKeROgArsvmRrQTLUOXioOHGK2QkjHuoYFgXciZoTJd6Fs5q1QX1G+p/e26hYsEf7QZD1nnIyl/SFkNtYYmmBhpBrxl9WbY0YpHWRuw2Ll/tj9mD8P4snVzJl4F9J+1arVeTb9E5r2ILH04qStjxQNwn3m4YNqxmaNbLAqW2TN6LidwuJRqS+NXbtqxoeDXpxeGWmxzSkWxjkyCkX4NQRme6q5SAcC+M7+9ETfA/EwrzQajKakCwYyeunP6ZFlxU2oMEn1Pz31zeStW74G406ZJFCl1wAXIoUKkWotYEpOuXB1uVNxJ63dpJEqfxBeptwIHNrPz8BllZoIcBoXwgfJ+8VAUnVPvRvexnw0Ma/WiGYuJO5y8QTvEYBigFmhUxY5RqzE8OcywN/8m4UYrlaniJO75XQ6KSo9+tWHlu+hMi0UVdiKQp7NelnoZUzNaIyBPVeOwK6GNp+FfHuPOoyhaWuNvTYFkvxscMQWDh+zeFCFkgwbXftiV23ywJ4+uwRqmg9k3KzwIQpzppt8DBBOMbrqwQM5Gb05sEwdKzMiAqOloaA/lr0KA+1pr0/+HiWoiIjHA/wir2nIuS3PeU/ji3O6ZwoxcR1SZ9FhtLC5S0FIzFhbBWcGVP/KpxOPSiUoAdWUpqKH++6Scz507iCcxYI6rdMBICPJZea7OcmeFw5mObJSiqpjg2UoWNIs+cFhyDSt6geV5qgi3FunmwwDoGSMgerFOZGX1m0dMCYo5XOruxO063dwENK9DbnVM9wYFREzh4vyU1WYYJ/LRRp6oxgjqP/X5a8/4Af6p6NWkQferzBmXme0zY/4nwMJm/wd1tIqSwGz+E3xPEAOoZlJit3XddD7/BT1pllzOx+8bmQtANQ/S6fZexc6qi3W+Q2xcmXTUhuS5mpHQRvcxZUN0S5+PL9lXWUAaRZhEH8hTdAcuNMMCuVNKTEGtSUKNi3O6KhSaTzck8csZ2vWRZ+d7mW8c4IKwXIYd25S/zIftPkwPzufjEvOHWVD1m+FjpDVUTV0DGDuHj6QnaEwLu/dEgdLQOg9E1Sro9XHJ8ykLAwtPu+pxqKDuFexqON1sKQm7rwbE1E68UCfA/erovrTCG+DBSNg0l4goDQvZN6uNlbyLpcZAwj2UclycvLpIZMgv4yRlpb3YuMftozorbcGVHt/VeDV3+Fdf1TP0iuaCsPi2G4XeGhsyF1ubVDxkoJhmniQ0/jSg/eYML9KLfnCFgISWkp91eauR3IQvED0nAPXK+6hPCYs+n3+hCZbiskmVMG2da+0EsZPonUeIY8EbfusQXjsK/eFDaosbPjEfQS0RKG7yj5GG69M7MeO1HmiUYocgygJHL6M1qzUDDwUSmr99V7Sdr2F3JjQAJY+F0yH33Iv3+C9M38eML7gTgmNu/r2bUMiPvpYbZ6v1/IaESirBHNa7mPKn4dEmYg7v/+HQgPN1G79jBQ1+soydfDC2r+h2Bl/KIc5KjMK7OH6nb1jLsNf0EHVe2KBiE51ox636uyG6Lho0t3J34L5QY/ilE3mikaF4HKXG1mG1rCevT1Vv6GavltxoQe/bMrpZvRggnBxSEPEeEzkEdOxTnPXHVjUYdw8JYvjB/o7Eegc3Ma+NUxLLnsK0kJlinPmUHzHGtrk5+CAbVzFOBqpyy3QVUnzTDfC/0XD94/okH+OB+i7g9lolhWIjSnfIb+Eq43ZXOWmwvjyV/qqD+t0e+7mTEM74qP/Ozt8nmC7mRpyu63OB4KnUzFc074SqoyPUAgM+/TJGFo6T44EHnQU4X4z6qannVqgw/U7zCpwcmXV1AubIrvOmkKHazJAR55ePjp5tLBsN8vAqs3NAHdcEHOR2xQ0lsNAFzSUuxFQCFYvXLZJdOj9p4fNq6p0HBGUik2YzaI4xySy91KzhQ0+q1hjxvImRwPRf76tChlRkhRCi74NXZ9qUNeIwP+s5p+3m5nwPdNOHgSLD79n7O9m1n1uDHiMntq4nkYwV5OZ1ENbXxFd4PgrlvavZsyUO4MqYlqqn1O8W/I1dEZq5dXhrbETLaZIbC2Kj/Aa/QM+fqUOHdf0tXAQ1huZ3cmWECWSXy/43j35+Mvq9xws7JKseriZ1pEWKc8qlzNrGPUGcVgOa9cPJYIJsGnJTAUsEcDOEVULO5x0rXBijc1lgXEzQQKhROf8zIV82w8eswc78YX11KYLWQRcgHNJElBxfXr72lS2RBSl07qTKorO2uUDZr3sFhYsvnhLZn0A94KRzJ/7DEGIAhW5ZWFpL8gEwu1aLA9MuWZzNwl8Oze9Y+bX+v9gywRVnoB5I/8kXTXU3141yRLYrIOOz6SOnyHNy4SieqzkBXharjfjqq1q6tklaEbA8Qfm2DaIPs7OTq/nvJBjKfO2H9bH2cCMh1+5gspfycu8f/cuuRmtDjyqZ7uCIMyjdV3a+p3fqmXsRx4C8lujezIFHnQiVTXLXuI1XrwN3+siYYj2HHTvESUx8DlOTXpak9qFRK+L3mgJ1WsD7F4cu1aJoFoYQnu+wGDMOjJM3kiBQWHCcvhJ/HRdxodOQp45YZaOTA22Nb4XKCVxqkbwMYFhzYQYIAnCW8FW14uf98jhUG2zrKhQQ0q0CEq0t5nXyvUyvR8DvD69LU+g3i+HFWQMQ8PqZuHD+sNKAV0+M6EJC0szq7rEr7B5bQ8BcNHzvDMc9eqB5ZCQdTf80Obn4uzjwpYU7SISdtV0QGa9D3Wrh2BDQtpBKxaNFV+/Cy2P/Sv+8s7Ud0Fd74X4+o/TNztWgETUapy+majNQ68Lq3ee0ZO48VEbTZYiH1Co4OlfWef82RWeyUXo7woM03PyapGfikTnQinoNq5z5veLpeMV3HCAMTaZmA1oGLAn7XS3XYsz+XK7VMQsc4XKrmDXOLU/pSXVNUq8dIqTba///3x6LiLS6xs1xuCAYSfcQ3+rQgmu7uvf3THKt5Ooo97TqcbRqxx7EASizaQCBQllG/rYxVapMLgtLbZS64w1MDBMXX+PQpBKNwqUKOf2DDRDUXQf9EhOS0Qj4nTmlA8dzSLz/G1d+Ud8MTy/6ghhdiLpeerGY/UlDOfiuqFsMUU5/UYlP+BAmgRLuNpvrUaLlVkrqDievNVEAwF+4CoM1MZTmjxjJMsKJq+u8Zd7tNCUFy6LiyYXRJQ4VyvEQFFaCGKsxIwQkk7EzZ6LTJq2hUuPhvAW+gQnSG6J+MszC+7QCRHcnqDdyNRJ6T9xyS87A6MDutbzKGvGktpbXqtzWtXb9HsfK2cBMomjN9a4y+TaJLnXxAeX/HWzmf4cR4vALt/P4w4qgKY04ml4ZdLOinFYS6cup3G/1ie4+t1eOnpBNlqGqs75ilzkT4+DsZQxNvaSKJ//6zIbbk/M7LOhFmRc/1R+kBtz7JFGdZm/COotIdvQoXpTqP/1uqEUmCb/QWoGLMwO5ANcHzxdY48IGP5+J+zKOTBFZ4Pid+GTM+Wq12MV/H86xEJptBa6T+p3kgpwLedManBHC2GgNrFpoN2xnrMz9WFWX/8/ygSBkavq2Uv7FdCsLEYLu9LLIvAU0bNRDtzYl+/vXmjpIvuJFYjmI0im6QEYqnIeMsNjXG4vIutIGHijeAG/9EDBozKV5cldkHbLxHh25vT+ZEzbhXlqvpzKJwcEgfNwLAKFeo0/pvEE10XDB+EXRTXtSzJozQKFFAJhMxYkVaCW+E9AL7tMeU8acxidHqzb6lX4691UsDpy/LLRmT+epgW56+5Cw8tB4kMUv6s9lh3eRKbyGs+H/4mQMaYzPTf2OOdokEn+zzgvoD3FqNKk8QqGAXVsqcGdXrT62fSPkR2vROFi68A6se86UxRUk4cajfPyCC4G5wDhD+zNq4jodQ4u4n/m37Lr36n4LIAAsVr02dFi9AiwA81MYs2rm4eDlDNmdMRvEKRHfBwW5DdMNp0jPFZMeARqF/wL4XBfd+EMLBfMzpH5GH6NaW+1vrvMdg+VxDzatk3MXgO3ro3P/DpcC6+Mo4MySJhKJhSR01SGGGp5hPWmrrUgrv3lDnP+HhcI3nt3YqBoVAVTBAQT5iuhTg8nvPtd8ZeYj6w1x6RqGUBrSku7+N1+BaasZvjTk64RoIDlL8brpEcJx3OmY7jLoZsswdtmhfC/G21llXhITOwmvRDDeTTPbyASOa16cF5/A1fZAidJpqju3wYAy9avPR1ya6eNp9K8XYrrtuxlqi+bDKwlfrYdR0RRiKRVTLOH85+ZY7XSmzRpfZBJjaTa81VDcJHpZnZnSQLASGYW9l51ZV/h7eVzTi3Hv6hUsgc/51AqJRTkpbFVLXXszoBL8nBX0u/0jBLT8nH+fJePbrwURT58OY+UieRjd1vs04w0VG5VN2U6MoGZkQzKN/ptz0Q366dxoTGmj7i1NQGHi9GgnquXFYdrCfZBmeb7s0T6yrdlZH5cZuwHFyIJ/kAtGsTg0xH5taAAq44BAk1CPk9KVVbqQzrCUiFdF/6gtlPQ8bHHc1G1W92MXGZ5HEHftyLYs8mbD/9xYRUWkHmlM0zC2ilJlnNgV4bfALpQghxOUoZL7VTqtCHIaQSXm+YUMnpkXybnV+A6xlm2CVy8fn0Xlm2XRa0+zzOa21JWWmixfiPMSCZ7qA4rS93VN3pkpF1s5TonQjisHf7iU9ZGvUPOAKZcR1pbeVf/Ul7OhepGCaId9wOtqo7pJ7yLcBZ0pFkOF28y4zEI/kcUNmutBHaQpBdNM8vjCS6HZRokkeo88TBAjGyG7SR+6vUgTcyK9Imalj0kuxz0wmK+byQU11AiJFk/ya5dNduRClcnU64yGu/ieWSeOos1t3ep+RPIWQ2pyTYVbZltTbsb7NiwSi3AV+8KLWk7LxCnfZUetEM8ThnsSoGH38/nyAwFguJp8FjvlHtcWZuU4hPva0rHfr0UhOOJ/F6vS62FW7KzkmRll2HEc7oUq4fyi5T70Vl7YVIfsPHUCdHesf9Lk7WNVWO75JDkYbMI8TOW8JKVtLY9d6UJRITO8oKo0xS+o99Yy04iniGHAaGj88kEWgwv0OrHdY/nr76DOGNS59hXCGXzTKUvDl9iKpLSWYN1lxIeyywdNpTkhay74w2jFT6NS8qkjo5CxA1yfSYwp6AJIZNKIeEK5PJAW7ORgWgwp0VgzYpqovMrWxbu+DGZ6Lhie1RAqpzm8VUzKJOH3mCzWuTOLsN3VT/dv2eeYe9UjbR8YTBsLz7q60VN1sU51k+um1f8JxD5pPhbhSC8rRaB454tmh6YUWrJI3+GWY0qeWioj/tbkYITOkJaeuGt4JrJvHA+l0Gu7kY7XOaa05alMnRWVCXqFgLIwSY4uF59Ue5SU4QKuc/HamDxbr0x6csCetXGoP7Qn1Bk/J9DsynO/UD6iZ1Hyrz+jit0hDCwi/E9OjgKTbB3ZQKQ/0ZOvevfNHG0NK4Aj3Cp7NpRk07RT1i/S0EL93Ag8GRgKI9CfpajKyK6+Jj/PI1KO5/85VAwz2AwzP8FTBb075IxCXv6T9RVvWT2tUaqxDS92zrGUbWzUYk9mSs82pECH+fkqsDt93VW++4YsR/dHCYcQSYTO/KaBMDj9LSD/J/+z20Kq8XvZUAIHtm9hRPP3ItbuAu2Hm5lkPs92pd7kCxgRs0xOVBnZ13ccdA0aunrwv9SdqElJRC3g+oCu+nXyCgmXUs9yMjTMAIHfxZV+aPKcZeUBWt057Xo85Ks1Ir5gzEHCWqZEhrLZMuF11ziGtFQUds/EESajhagzcKsxamcSZxGth4UII+adPhQkUnx2WyN+4YWR+r3f8MnkyGFuR4zjzxJS8WsQYR5PTyRaD9ixa6Mh741nBHbzfjXHskGDq179xaRNrCIB1z1xRfWfjqw2pHc1zk9xlPpL8sQWAIuETZZhbnmL54rceXVNRvUiKrrqIkeogsl0XXb17ylNb0f4GA9Wd44vffEG8FSZGHEL2fbaTGRcSiCeA8PmA/f6Hz8HCS76fXUHwgwkzSwlI71ekZ7Fapmlk/KC+Hs8hUcw3N2LN5LhkVYyizYFl/uPeVP5lsoJHhhfWvvSWruCUW1ZcJOeuTbrDgywJ/qG07gZJplnTvLcYdNaH0KMYOYMGX+rB4NGPFmQsNaIwlWrfCezxre8zXBrsMT+edVLbLqN1BqB76JH4BvZTqUIMfGwPGEn+EnmTV86fPBaYbFL3DFEhjB45CewkXEAtJxk4/Ms2pPXnaRqdky0HOYdcUcE2zcXq4vaIvW2/v0nHFJH2XXe22ueDmq/18XGtELSq85j9X8q0tcNSSKJIX8FTuJF/Pf8j5PhqG2u+osvsLxYrvvfeVJL+4tkcXcr9JV7v0ERmj/X6fM3NC4j6dS1+9Umr2oPavqiAydTZPLMNRGY23LO9zAVDly7jD+70G5TPPLdhRIl4WxcYjLnM+SNcJ26FOrkrISUtPObIz5Zb3AG612krnpy15RMW+1cQjlnWFI6538qky9axd2oJmHIHP08KyP0ubGO+TQNOYuv2uh17yCIvR8VcStw7o1g0NM60sk+8Tq7YfIBJrtp53GkvzXH7OA0p8/n/u1satf/VJhtR1l8Wa6Gmaug7haSpaCaYQax6ta0mkutlb+eAOSG1aobM81D9A4iS1RRlzBBoVX6tU1S6WE2N9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA=="))
36112;
36113      };
36114      var n2 = r3(997), i = r3(3731);
36115    }, 7032: (e3, t3, r3) => {
36116      var n2 = r3(8847);
36117      Object.defineProperty(t3, "__esModule", { value: true }), t3.ens_normalize = function(e4) {
36118        return y2(function(e5, t4) {
36119          for (var r4 = p2(e5).reverse(), n3 = []; r4.length; ) {
36120            var o2 = m2(r4);
36121            if (o2)
36122              n3.push.apply(n3, (0, i.default)(t4(o2)));
36123            else {
36124              var a2 = r4.pop();
36125              if (f2.has(a2))
36126                n3.push(a2);
36127              else if (!d2.has(a2)) {
36128                var s2 = l2[a2];
36129                if (!s2)
36130                  throw new Error("Disallowed codepoint: 0x".concat(a2.toString(16).toUpperCase()));
36131                n3.push.apply(n3, (0, i.default)(s2));
36132              }
36133            }
36134          }
36135          return y2(String.fromCodePoint.apply(String, n3).normalize("NFC"));
36136        }(e4, b2));
36137      }, t3.ens_normalize_post_check = y2;
36138      var i = n2(r3(3106)), o = r3(8627), a = r3(3961), s = r3(3731);
36139      function u2(e4, t4) {
36140        (null == t4 || t4 > e4.length) && (t4 = e4.length);
36141        for (var r4 = 0, n3 = new Array(t4); r4 < t4; r4++)
36142          n3[r4] = e4[r4];
36143        return n3;
36144      }
36145      var c2 = (0, a.getData)(), f2 = new Set((0, s.read_member_array)(c2)), d2 = new Set((0, s.read_member_array)(c2)), l2 = (0, s.read_mapped_map)(c2), h2 = (0, s.read_emoji_trie)(c2);
36146      function p2(e4) {
36147        return (0, o.toUtf8CodePoints)(e4);
36148      }
36149      function b2(e4) {
36150        return e4.filter(function(e5) {
36151          return 65039 != e5;
36152        });
36153      }
36154      function y2(e4) {
36155        var t4, r4 = function(e5, t5) {
36156          var r5 = "undefined" != typeof Symbol && e5[Symbol.iterator] || e5["@@iterator"];
36157          if (!r5) {
36158            if (Array.isArray(e5) || (r5 = function(e6, t6) {
36159              if (e6) {
36160                if ("string" == typeof e6)
36161                  return u2(e6, t6);
36162                var r6 = Object.prototype.toString.call(e6).slice(8, -1);
36163                return "Object" === r6 && e6.constructor && (r6 = e6.constructor.name), "Map" === r6 || "Set" === r6 ? Array.from(e6) : "Arguments" === r6 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r6) ? u2(e6, t6) : void 0;
36164              }
36165            }(e5)) || t5 && e5 && "number" == typeof e5.length) {
36166              r5 && (e5 = r5);
36167              var n4 = 0, i3 = function() {
36168              };
36169              return { s: i3, n: function() {
36170                return n4 >= e5.length ? { done: true } : { done: false, value: e5[n4++] };
36171              }, e: function(e6) {
36172                throw e6;
36173              }, f: i3 };
36174            }
36175            throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
36176          }
36177          var o3, a2 = true, s2 = false;
36178          return { s: function() {
36179            r5 = r5.call(e5);
36180          }, n: function() {
36181            var e6 = r5.next();
36182            return a2 = e6.done, e6;
36183          }, e: function(e6) {
36184            s2 = true, o3 = e6;
36185          }, f: function() {
36186            try {
36187              a2 || null == r5.return || r5.return();
36188            } finally {
36189              if (s2)
36190                throw o3;
36191            }
36192          } };
36193        }(e4.split("."));
36194        try {
36195          for (r4.s(); !(t4 = r4.n()).done; ) {
36196            var n3 = t4.value, i2 = p2(n3);
36197            try {
36198              for (var o2 = i2.lastIndexOf(95) - 1; o2 >= 0; o2--)
36199                if (95 !== i2[o2])
36200                  throw new Error("underscore only allowed at start");
36201              if (i2.length >= 4 && i2.every(function(e5) {
36202                return e5 < 128;
36203              }) && 45 === i2[2] && 45 === i2[3])
36204                throw new Error("invalid label extension");
36205            } catch (e5) {
36206              throw new Error('Invalid label "'.concat(n3, '": ').concat(e5.message));
36207            }
36208          }
36209        } catch (e5) {
36210          r4.e(e5);
36211        } finally {
36212          r4.f();
36213        }
36214        return e4;
36215      }
36216      function m2(e4, t4) {
36217        var r4, n3, o2, a2 = h2, s2 = [], u3 = e4.length;
36218        t4 && (t4.length = 0);
36219        for (var c3 = function() {
36220          var c4 = e4[--u3];
36221          if (!(a2 = null === (r4 = a2.branches.find(function(e5) {
36222            return e5.set.has(c4);
36223          })) || void 0 === r4 ? void 0 : r4.node))
36224            return "break";
36225          if (a2.save)
36226            o2 = c4;
36227          else if (a2.check && c4 === o2)
36228            return "break";
36229          s2.push(c4), a2.fe0f && (s2.push(65039), u3 > 0 && 65039 == e4[u3 - 1] && u3--), a2.valid && (n3 = s2.slice(), 2 == a2.valid && n3.splice(1, 1), t4 && t4.push.apply(t4, (0, i.default)(e4.slice(u3).reverse())), e4.length = u3);
36230        }; u3 && "break" !== c3(); )
36231          ;
36232        return n3;
36233      }
36234    }, 7901: (e3, t3, r3) => {
36235      Object.defineProperty(t3, "__esModule", { value: true }), t3.id = function(e4) {
36236        return (0, n2.keccak256)((0, i.toUtf8Bytes)(e4));
36237      };
36238      var n2 = r3(4642), i = r3(8627);
36239    }, 7515: (e3, t3, r3) => {
36240      Object.defineProperty(t3, "__esModule", { value: true }), Object.defineProperty(t3, "_TypedDataEncoder", { enumerable: true, get: function() {
36241        return a.TypedDataEncoder;
36242      } }), Object.defineProperty(t3, "dnsEncode", { enumerable: true, get: function() {
36243        return i.dnsEncode;
36244      } }), Object.defineProperty(t3, "ensNormalize", { enumerable: true, get: function() {
36245        return i.ensNormalize;
36246      } }), Object.defineProperty(t3, "hashMessage", { enumerable: true, get: function() {
36247        return o.hashMessage;
36248      } }), Object.defineProperty(t3, "id", { enumerable: true, get: function() {
36249        return n2.id;
36250      } }), Object.defineProperty(t3, "isValidName", { enumerable: true, get: function() {
36251        return i.isValidName;
36252      } }), Object.defineProperty(t3, "messagePrefix", { enumerable: true, get: function() {
36253        return o.messagePrefix;
36254      } }), Object.defineProperty(t3, "namehash", { enumerable: true, get: function() {
36255        return i.namehash;
36256      } });
36257      var n2 = r3(7901), i = r3(4898), o = r3(4443), a = r3(2171);
36258    }, 4443: (e3, t3, r3) => {
36259      Object.defineProperty(t3, "__esModule", { value: true }), t3.hashMessage = function(e4) {
36260        return "string" == typeof e4 && (e4 = (0, o.toUtf8Bytes)(e4)), (0, i.keccak256)((0, n2.concat)([(0, o.toUtf8Bytes)(a), (0, o.toUtf8Bytes)(String(e4.length)), e4]));
36261      }, t3.messagePrefix = void 0;
36262      var n2 = r3(908), i = r3(4642), o = r3(8627), a = "�Ethereum Signed Message:\n";
36263      t3.messagePrefix = a;
36264    }, 4898: (e3, t3, r3) => {
36265      Object.defineProperty(t3, "__esModule", { value: true }), t3.dnsEncode = function(e4) {
36266        return (0, n2.hexlify)((0, n2.concat)(l2(e4).map(function(e5) {
36267          if (e5.length > 63)
36268            throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");
36269          var t4 = new Uint8Array(e5.length + 1);
36270          return t4.set(e5, 1), t4[0] = t4.length - 1, t4;
36271        }))) + "00";
36272      }, t3.ensNormalize = function(e4) {
36273        return l2(e4).map(function(e5) {
36274          return (0, i.toUtf8String)(e5);
36275        }).join(".");
36276      }, t3.isValidName = function(e4) {
36277        try {
36278          return 0 !== l2(e4).length;
36279        } catch (e5) {
36280        }
36281        return false;
36282      }, t3.namehash = function(e4) {
36283        "string" != typeof e4 && c2.throwArgumentError("invalid ENS name; not a string", "name", e4);
36284        for (var t4 = f2, r4 = l2(e4); r4.length; )
36285          t4 = (0, o.keccak256)((0, n2.concat)([t4, (0, o.keccak256)(r4.pop())]));
36286        return (0, n2.hexlify)(t4);
36287      };
36288      var n2 = r3(908), i = r3(8627), o = r3(4642), a = r3(4327), s = r3(3989), u2 = r3(7032), c2 = new a.Logger(s.version), f2 = new Uint8Array(32);
36289      function d2(e4) {
36290        if (0 === e4.length)
36291          throw new Error("invalid ENS name; empty component");
36292        return e4;
36293      }
36294      function l2(e4) {
36295        var t4 = (0, i.toUtf8Bytes)((0, u2.ens_normalize)(e4)), r4 = [];
36296        if (0 === e4.length)
36297          return r4;
36298        for (var n3 = 0, o2 = 0; o2 < t4.length; o2++)
36299          46 === t4[o2] && (r4.push(d2(t4.slice(n3, o2))), n3 = o2 + 1);
36300        if (n3 >= t4.length)
36301          throw new Error("invalid ENS name; empty component");
36302        return r4.push(d2(t4.slice(n3))), r4;
36303      }
36304      f2.fill(0);
36305    }, 2171: (e3, t3, r3) => {
36306      var n2 = r3(8847);
36307      Object.defineProperty(t3, "__esModule", { value: true }), t3.TypedDataEncoder = void 0;
36308      var i = n2(r3(2247)), o = n2(r3(9721)), a = n2(r3(8985)), s = r3(7921), u2 = r3(4952), c2 = r3(908), f2 = r3(4642), d2 = r3(3694), l2 = r3(4327), h2 = r3(3989), p2 = r3(7901), b2 = new l2.Logger(h2.version), y2 = new Uint8Array(32);
36309      y2.fill(0);
36310      var m2 = u2.BigNumber.from(-1), v2 = u2.BigNumber.from(0), g2 = u2.BigNumber.from(1), w2 = u2.BigNumber.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"), A2 = (0, c2.hexZeroPad)(g2.toHexString(), 32), k2 = (0, c2.hexZeroPad)(v2.toHexString(), 32), _ = { name: "string", version: "string", chainId: "uint256", verifyingContract: "address", salt: "bytes32" }, S2 = ["name", "version", "chainId", "verifyingContract", "salt"];
36311      function x2(e4) {
36312        return function(t4) {
36313          return "string" != typeof t4 && b2.throwArgumentError("invalid domain value for ".concat(JSON.stringify(e4)), "domain.".concat(e4), t4), t4;
36314        };
36315      }
36316      var E2 = { name: x2("name"), version: x2("version"), chainId: function(e4) {
36317        try {
36318          return u2.BigNumber.from(e4).toString();
36319        } catch (e5) {
36320        }
36321        return b2.throwArgumentError('invalid domain value for "chainId"', "domain.chainId", e4);
36322      }, verifyingContract: function(e4) {
36323        try {
36324          return (0, s.getAddress)(e4).toLowerCase();
36325        } catch (e5) {
36326        }
36327        return b2.throwArgumentError('invalid domain value "verifyingContract"', "domain.verifyingContract", e4);
36328      }, salt: function(e4) {
36329        try {
36330          var t4 = (0, c2.arrayify)(e4);
36331          if (32 !== t4.length)
36332            throw new Error("bad length");
36333          return (0, c2.hexlify)(t4);
36334        } catch (e5) {
36335        }
36336        return b2.throwArgumentError('invalid domain value "salt"', "domain.salt", e4);
36337      } };
36338      function P2(e4) {
36339        var t4 = e4.match(/^(u?)int(\d*)$/);
36340        if (t4) {
36341          var r4 = "" === t4[1], n3 = parseInt(t4[2] || "256");
36342          (n3 % 8 != 0 || n3 > 256 || t4[2] && t4[2] !== String(n3)) && b2.throwArgumentError("invalid numeric width", "type", e4);
36343          var i2 = w2.mask(r4 ? n3 - 1 : n3), o2 = r4 ? i2.add(g2).mul(m2) : v2;
36344          return function(t5) {
36345            var r5 = u2.BigNumber.from(t5);
36346            return (r5.lt(o2) || r5.gt(i2)) && b2.throwArgumentError("value out-of-bounds for ".concat(e4), "value", t5), (0, c2.hexZeroPad)(r5.toTwos(256).toHexString(), 32);
36347          };
36348        }
36349        var a2 = e4.match(/^bytes(\d+)$/);
36350        if (a2) {
36351          var d3 = parseInt(a2[1]);
36352          return (0 === d3 || d3 > 32 || a2[1] !== String(d3)) && b2.throwArgumentError("invalid bytes width", "type", e4), function(t5) {
36353            return (0, c2.arrayify)(t5).length !== d3 && b2.throwArgumentError("invalid length for ".concat(e4), "value", t5), function(e5) {
36354              var t6 = (0, c2.arrayify)(e5), r5 = t6.length % 32;
36355              return r5 ? (0, c2.hexConcat)([t6, y2.slice(r5)]) : (0, c2.hexlify)(t6);
36356            }(t5);
36357          };
36358        }
36359        switch (e4) {
36360          case "address":
36361            return function(e5) {
36362              return (0, c2.hexZeroPad)((0, s.getAddress)(e5), 32);
36363            };
36364          case "bool":
36365            return function(e5) {
36366              return e5 ? A2 : k2;
36367            };
36368          case "bytes":
36369            return function(e5) {
36370              return (0, f2.keccak256)(e5);
36371            };
36372          case "string":
36373            return function(e5) {
36374              return (0, p2.id)(e5);
36375            };
36376        }
36377        return null;
36378      }
36379      function O2(e4, t4) {
36380        return "".concat(e4, "(").concat(t4.map(function(e5) {
36381          var t5 = e5.name;
36382          return e5.type + " " + t5;
36383        }).join(","), ")");
36384      }
36385      var B2 = function() {
36386        function e4(t4) {
36387          (0, o.default)(this, e4), (0, d2.defineReadOnly)(this, "types", Object.freeze((0, d2.deepCopy)(t4))), (0, d2.defineReadOnly)(this, "_encoderCache", {}), (0, d2.defineReadOnly)(this, "_types", {});
36388          var r4 = {}, n3 = {}, i2 = {};
36389          Object.keys(t4).forEach(function(e5) {
36390            r4[e5] = {}, n3[e5] = [], i2[e5] = {};
36391          });
36392          var a2 = function(e5) {
36393            var i3 = {};
36394            t4[e5].forEach(function(o2) {
36395              i3[o2.name] && b2.throwArgumentError("duplicate variable name ".concat(JSON.stringify(o2.name), " in ").concat(JSON.stringify(e5)), "types", t4), i3[o2.name] = true;
36396              var a3 = o2.type.match(/^([^\x5b]*)(\x5b|$)/)[1];
36397              a3 === e5 && b2.throwArgumentError("circular type reference to ".concat(JSON.stringify(a3)), "types", t4), P2(a3) || (n3[a3] || b2.throwArgumentError("unknown type ".concat(JSON.stringify(a3)), "types", t4), n3[a3].push(e5), r4[e5][a3] = true);
36398            });
36399          };
36400          for (var s2 in t4)
36401            a2(s2);
36402          var u3 = Object.keys(n3).filter(function(e5) {
36403            return 0 === n3[e5].length;
36404          });
36405          for (var c3 in 0 === u3.length ? b2.throwArgumentError("missing primary type", "types", t4) : u3.length > 1 && b2.throwArgumentError("ambiguous primary types or unused types: ".concat(u3.map(function(e5) {
36406            return JSON.stringify(e5);
36407          }).join(", ")), "types", t4), (0, d2.defineReadOnly)(this, "primaryType", u3[0]), function e5(o2, a3) {
36408            a3[o2] && b2.throwArgumentError("circular type reference to ".concat(JSON.stringify(o2)), "types", t4), a3[o2] = true, Object.keys(r4[o2]).forEach(function(t5) {
36409              n3[t5] && (e5(t5, a3), Object.keys(a3).forEach(function(e6) {
36410                i2[e6][t5] = true;
36411              }));
36412            }), delete a3[o2];
36413          }(this.primaryType, {}), i2) {
36414            var f3 = Object.keys(i2[c3]);
36415            f3.sort(), this._types[c3] = O2(c3, t4[c3]) + f3.map(function(e5) {
36416              return O2(e5, t4[e5]);
36417            }).join("");
36418          }
36419        }
36420        return (0, a.default)(e4, [{ key: "getEncoder", value: function(e5) {
36421          var t4 = this._encoderCache[e5];
36422          return t4 || (t4 = this._encoderCache[e5] = this._getEncoder(e5)), t4;
36423        } }, { key: "_getEncoder", value: function(e5) {
36424          var t4 = this, r4 = P2(e5);
36425          if (r4)
36426            return r4;
36427          var n3 = e5.match(/^(.*)(\x5b(\d*)\x5d)$/);
36428          if (n3) {
36429            var i2 = n3[1], o2 = this.getEncoder(i2), a2 = parseInt(n3[3]);
36430            return function(e6) {
36431              a2 >= 0 && e6.length !== a2 && b2.throwArgumentError("array length mismatch; expected length ${ arrayLength }", "value", e6);
36432              var r5 = e6.map(o2);
36433              return t4._types[i2] && (r5 = r5.map(f2.keccak256)), (0, f2.keccak256)((0, c2.hexConcat)(r5));
36434            };
36435          }
36436          var s2 = this.types[e5];
36437          if (s2) {
36438            var u3 = (0, p2.id)(this._types[e5]);
36439            return function(e6) {
36440              var r5 = s2.map(function(r6) {
36441                var n4 = r6.name, i3 = r6.type, o3 = t4.getEncoder(i3)(e6[n4]);
36442                return t4._types[i3] ? (0, f2.keccak256)(o3) : o3;
36443              });
36444              return r5.unshift(u3), (0, c2.hexConcat)(r5);
36445            };
36446          }
36447          return b2.throwArgumentError("unknown type: ".concat(e5), "type", e5);
36448        } }, { key: "encodeType", value: function(e5) {
36449          var t4 = this._types[e5];
36450          return t4 || b2.throwArgumentError("unknown type: ".concat(JSON.stringify(e5)), "name", e5), t4;
36451        } }, { key: "encodeData", value: function(e5, t4) {
36452          return this.getEncoder(e5)(t4);
36453        } }, { key: "hashStruct", value: function(e5, t4) {
36454          return (0, f2.keccak256)(this.encodeData(e5, t4));
36455        } }, { key: "encode", value: function(e5) {
36456          return this.encodeData(this.primaryType, e5);
36457        } }, { key: "hash", value: function(e5) {
36458          return this.hashStruct(this.primaryType, e5);
36459        } }, { key: "_visit", value: function(e5, t4, r4) {
36460          var n3 = this;
36461          if (P2(e5))
36462            return r4(e5, t4);
36463          var i2 = e5.match(/^(.*)(\x5b(\d*)\x5d)$/);
36464          if (i2) {
36465            var o2 = i2[1], a2 = parseInt(i2[3]);
36466            return a2 >= 0 && t4.length !== a2 && b2.throwArgumentError("array length mismatch; expected length ${ arrayLength }", "value", t4), t4.map(function(e6) {
36467              return n3._visit(o2, e6, r4);
36468            });
36469          }
36470          var s2 = this.types[e5];
36471          return s2 ? s2.reduce(function(e6, i3) {
36472            var o3 = i3.name, a3 = i3.type;
36473            return e6[o3] = n3._visit(a3, t4[o3], r4), e6;
36474          }, {}) : b2.throwArgumentError("unknown type: ".concat(e5), "type", e5);
36475        } }, { key: "visit", value: function(e5, t4) {
36476          return this._visit(this.primaryType, e5, t4);
36477        } }], [{ key: "from", value: function(t4) {
36478          return new e4(t4);
36479        } }, { key: "getPrimaryType", value: function(t4) {
36480          return e4.from(t4).primaryType;
36481        } }, { key: "hashStruct", value: function(t4, r4, n3) {
36482          return e4.from(r4).hashStruct(t4, n3);
36483        } }, { key: "hashDomain", value: function(t4) {
36484          var r4 = [];
36485          for (var n3 in t4) {
36486            var i2 = _[n3];
36487            i2 || b2.throwArgumentError("invalid typed-data domain key: ".concat(JSON.stringify(n3)), "domain", t4), r4.push({ name: n3, type: i2 });
36488          }
36489          return r4.sort(function(e5, t5) {
36490            return S2.indexOf(e5.name) - S2.indexOf(t5.name);
36491          }), e4.hashStruct("EIP712Domain", { EIP712Domain: r4 }, t4);
36492        } }, { key: "encode", value: function(t4, r4, n3) {
36493          return (0, c2.hexConcat)(["0x1901", e4.hashDomain(t4), e4.from(r4).hash(n3)]);
36494        } }, { key: "hash", value: function(t4, r4, n3) {
36495          return (0, f2.keccak256)(e4.encode(t4, r4, n3));
36496        } }, { key: "resolveNames", value: function(t4, r4, n3, o2) {
36497          return a2 = this, s2 = void 0, u3 = void 0, f3 = i.default.mark(function a3() {
36498            var s3, u4, f4;
36499            return i.default.wrap(function(a4) {
36500              for (; ; )
36501                switch (a4.prev = a4.next) {
36502                  case 0:
36503                    t4 = (0, d2.shallowCopy)(t4), s3 = {}, t4.verifyingContract && !(0, c2.isHexString)(t4.verifyingContract, 20) && (s3[t4.verifyingContract] = "0x"), (u4 = e4.from(r4)).visit(n3, function(e5, t5) {
36504                      return "address" !== e5 || (0, c2.isHexString)(t5, 20) || (s3[t5] = "0x"), t5;
36505                    }), a4.t0 = i.default.keys(s3);
36506                  case 6:
36507                    if ((a4.t1 = a4.t0()).done) {
36508                      a4.next = 13;
36509                      break;
36510                    }
36511                    return f4 = a4.t1.value, a4.next = 10, o2(f4);
36512                  case 10:
36513                    s3[f4] = a4.sent, a4.next = 6;
36514                    break;
36515                  case 13:
36516                    return t4.verifyingContract && s3[t4.verifyingContract] && (t4.verifyingContract = s3[t4.verifyingContract]), n3 = u4.visit(n3, function(e5, t5) {
36517                      return "address" === e5 && s3[t5] ? s3[t5] : t5;
36518                    }), a4.abrupt("return", { domain: t4, value: n3 });
36519                  case 16:
36520                  case "end":
36521                    return a4.stop();
36522                }
36523            }, a3);
36524          }), new (u3 || (u3 = Promise))(function(e5, t5) {
36525            function r5(e6) {
36526              try {
36527                i2(f3.next(e6));
36528              } catch (e7) {
36529                t5(e7);
36530              }
36531            }
36532            function n4(e6) {
36533              try {
36534                i2(f3.throw(e6));
36535              } catch (e7) {
36536                t5(e7);
36537              }
36538            }
36539            function i2(t6) {
36540              var i3;
36541              t6.done ? e5(t6.value) : (i3 = t6.value, i3 instanceof u3 ? i3 : new u3(function(e6) {
36542                e6(i3);
36543              })).then(r5, n4);
36544            }
36545            i2((f3 = f3.apply(a2, s2 || [])).next());
36546          });
36547          var a2, s2, u3, f3;
36548        } }, { key: "getPayload", value: function(t4, r4, n3) {
36549          e4.hashDomain(t4);
36550          var i2 = {}, o2 = [];
36551          S2.forEach(function(e5) {
36552            var r5 = t4[e5];
36553            null != r5 && (i2[e5] = E2[e5](r5), o2.push({ name: e5, type: _[e5] }));
36554          });
36555          var a2 = e4.from(r4), s2 = (0, d2.shallowCopy)(r4);
36556          return s2.EIP712Domain ? b2.throwArgumentError("types must not contain EIP712Domain type", "types.EIP712Domain", r4) : s2.EIP712Domain = o2, a2.encode(n3), { types: s2, domain: i2, primaryType: a2.primaryType, message: a2.visit(n3, function(e5, t5) {
36557            if (e5.match(/^bytes(\d*)/))
36558              return (0, c2.hexlify)((0, c2.arrayify)(t5));
36559            if (e5.match(/^u?int/))
36560              return u2.BigNumber.from(t5).toString();
36561            switch (e5) {
36562              case "address":
36563                return t5.toLowerCase();
36564              case "bool":
36565                return !!t5;
36566              case "string":
36567                return "string" != typeof t5 && b2.throwArgumentError("invalid string", "value", t5), t5;
36568            }
36569            return b2.throwArgumentError("unsupported type", "type", e5);
36570          }) };
36571        } }]), e4;
36572      }();
36573      t3.TypedDataEncoder = B2;
36574    }, 4642: (e3, t3, r3) => {
36575      var n2 = r3(8847);
36576      Object.defineProperty(t3, "__esModule", { value: true }), t3.keccak256 = function(e4) {
36577        return "0x" + i.default.keccak_256((0, o.arrayify)(e4));
36578      };
36579      var i = n2(r3(5975)), o = r3(908);
36580    }, 5975: (e3, t3, r3) => {
36581      e3 = r3.nmd(e3);
36582      var n2, i = r3(9142), o = r3(8847)(r3(3355));
36583      !function() {
36584        var a = "input is invalid type", s = "object" === ("undefined" == typeof window ? "undefined" : (0, o.default)(window)), u2 = s ? window : {};
36585        u2.JS_SHA3_NO_WINDOW && (s = false);
36586        var c2 = !s && "object" === ("undefined" == typeof self ? "undefined" : (0, o.default)(self));
36587        !u2.JS_SHA3_NO_NODE_JS && "object" === (void 0 === i ? "undefined" : (0, o.default)(i)) && i.versions && i.versions.node ? u2 = r3.g : c2 && (u2 = self);
36588        var f2 = !u2.JS_SHA3_NO_COMMON_JS && "object" === (0, o.default)(e3) && e3.exports, d2 = r3.amdO, l2 = !u2.JS_SHA3_NO_ARRAY_BUFFER && "undefined" != typeof ArrayBuffer, h2 = "0123456789abcdef".split(""), p2 = [4, 1024, 262144, 67108864], b2 = [0, 8, 16, 24], y2 = [1, 0, 32898, 0, 32906, 2147483648, 2147516416, 2147483648, 32907, 0, 2147483649, 0, 2147516545, 2147483648, 32777, 2147483648, 138, 0, 136, 0, 2147516425, 0, 2147483658, 0, 2147516555, 0, 139, 2147483648, 32905, 2147483648, 32771, 2147483648, 32770, 2147483648, 128, 2147483648, 32778, 0, 2147483658, 2147483648, 2147516545, 2147483648, 32896, 2147483648, 2147483649, 0, 2147516424, 2147483648], m2 = [224, 256, 384, 512], v2 = [128, 256], g2 = ["hex", "buffer", "arrayBuffer", "array", "digest"], w2 = { 128: 168, 256: 136 };
36589        !u2.JS_SHA3_NO_NODE_JS && Array.isArray || (Array.isArray = function(e4) {
36590          return "[object Array]" === Object.prototype.toString.call(e4);
36591        }), !l2 || !u2.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW && ArrayBuffer.isView || (ArrayBuffer.isView = function(e4) {
36592          return "object" === (0, o.default)(e4) && e4.buffer && e4.buffer.constructor === ArrayBuffer;
36593        });
36594        for (var A2 = function(e4, t4, r4) {
36595          return function(n3) {
36596            return new j(e4, t4, e4).update(n3)[r4]();
36597          };
36598        }, k2 = function(e4, t4, r4) {
36599          return function(n3, i2) {
36600            return new j(e4, t4, i2).update(n3)[r4]();
36601          };
36602        }, _ = function(e4, t4, r4) {
36603          return function(t5, n3, i2, o2) {
36604            return O2["cshake" + e4].update(t5, n3, i2, o2)[r4]();
36605          };
36606        }, S2 = function(e4, t4, r4) {
36607          return function(t5, n3, i2, o2) {
36608            return O2["kmac" + e4].update(t5, n3, i2, o2)[r4]();
36609          };
36610        }, x2 = function(e4, t4, r4, n3) {
36611          for (var i2 = 0; i2 < g2.length; ++i2) {
36612            var o2 = g2[i2];
36613            e4[o2] = t4(r4, n3, o2);
36614          }
36615          return e4;
36616        }, E2 = function(e4, t4) {
36617          var r4 = A2(e4, t4, "hex");
36618          return r4.create = function() {
36619            return new j(e4, t4, e4);
36620          }, r4.update = function(e5) {
36621            return r4.create().update(e5);
36622          }, x2(r4, A2, e4, t4);
36623        }, P2 = [{ name: "keccak", padding: [1, 256, 65536, 16777216], bits: m2, createMethod: E2 }, { name: "sha3", padding: [6, 1536, 393216, 100663296], bits: m2, createMethod: E2 }, { name: "shake", padding: [31, 7936, 2031616, 520093696], bits: v2, createMethod: function(e4, t4) {
36624          var r4 = k2(e4, t4, "hex");
36625          return r4.create = function(r5) {
36626            return new j(e4, t4, r5);
36627          }, r4.update = function(e5, t5) {
36628            return r4.create(t5).update(e5);
36629          }, x2(r4, k2, e4, t4);
36630        } }, { name: "cshake", padding: p2, bits: v2, createMethod: function(e4, t4) {
36631          var r4 = w2[e4], n3 = _(e4, 0, "hex");
36632          return n3.create = function(n4, i2, o2) {
36633            return i2 || o2 ? new j(e4, t4, n4).bytepad([i2, o2], r4) : O2["shake" + e4].create(n4);
36634          }, n3.update = function(e5, t5, r5, i2) {
36635            return n3.create(t5, r5, i2).update(e5);
36636          }, x2(n3, _, e4, t4);
36637        } }, { name: "kmac", padding: p2, bits: v2, createMethod: function(e4, t4) {
36638          var r4 = w2[e4], n3 = S2(e4, 0, "hex");
36639          return n3.create = function(n4, i2, o2) {
36640            return new N2(e4, t4, i2).bytepad(["KMAC", o2], r4).bytepad([n4], r4);
36641          }, n3.update = function(e5, t5, r5, i2) {
36642            return n3.create(e5, r5, i2).update(t5);
36643          }, x2(n3, S2, e4, t4);
36644        } }], O2 = {}, B2 = [], T2 = 0; T2 < P2.length; ++T2)
36645          for (var C2 = P2[T2], I2 = C2.bits, M2 = 0; M2 < I2.length; ++M2) {
36646            var U2 = C2.name + "_" + I2[M2];
36647            if (B2.push(U2), O2[U2] = C2.createMethod(I2[M2], C2.padding), "sha3" !== C2.name) {
36648              var R2 = C2.name + I2[M2];
36649              B2.push(R2), O2[R2] = O2[U2];
36650            }
36651          }
36652        function j(e4, t4, r4) {
36653          this.blocks = [], this.s = [], this.padding = t4, this.outputBits = r4, this.reset = true, this.finalized = false, this.block = 0, this.start = 0, this.blockCount = 1600 - (e4 << 1) >> 5, this.byteCount = this.blockCount << 2, this.outputBlocks = r4 >> 5, this.extraBytes = (31 & r4) >> 3;
36654          for (var n3 = 0; n3 < 50; ++n3)
36655            this.s[n3] = 0;
36656        }
36657        function N2(e4, t4, r4) {
36658          j.call(this, e4, t4, r4);
36659        }
36660        j.prototype.update = function(e4) {
36661          if (this.finalized)
36662            throw new Error("finalize already called");
36663          var t4, r4 = (0, o.default)(e4);
36664          if ("string" !== r4) {
36665            if ("object" !== r4)
36666              throw new Error(a);
36667            if (null === e4)
36668              throw new Error(a);
36669            if (l2 && e4.constructor === ArrayBuffer)
36670              e4 = new Uint8Array(e4);
36671            else if (!(Array.isArray(e4) || l2 && ArrayBuffer.isView(e4)))
36672              throw new Error(a);
36673            t4 = true;
36674          }
36675          for (var n3, i2, s2 = this.blocks, u3 = this.byteCount, c3 = e4.length, f3 = this.blockCount, d3 = 0, h3 = this.s; d3 < c3; ) {
36676            if (this.reset)
36677              for (this.reset = false, s2[0] = this.block, n3 = 1; n3 < f3 + 1; ++n3)
36678                s2[n3] = 0;
36679            if (t4)
36680              for (n3 = this.start; d3 < c3 && n3 < u3; ++d3)
36681                s2[n3 >> 2] |= e4[d3] << b2[3 & n3++];
36682            else
36683              for (n3 = this.start; d3 < c3 && n3 < u3; ++d3)
36684                (i2 = e4.charCodeAt(d3)) < 128 ? s2[n3 >> 2] |= i2 << b2[3 & n3++] : i2 < 2048 ? (s2[n3 >> 2] |= (192 | i2 >> 6) << b2[3 & n3++], s2[n3 >> 2] |= (128 | 63 & i2) << b2[3 & n3++]) : i2 < 55296 || i2 >= 57344 ? (s2[n3 >> 2] |= (224 | i2 >> 12) << b2[3 & n3++], s2[n3 >> 2] |= (128 | i2 >> 6 & 63) << b2[3 & n3++], s2[n3 >> 2] |= (128 | 63 & i2) << b2[3 & n3++]) : (i2 = 65536 + ((1023 & i2) << 10 | 1023 & e4.charCodeAt(++d3)), s2[n3 >> 2] |= (240 | i2 >> 18) << b2[3 & n3++], s2[n3 >> 2] |= (128 | i2 >> 12 & 63) << b2[3 & n3++], s2[n3 >> 2] |= (128 | i2 >> 6 & 63) << b2[3 & n3++], s2[n3 >> 2] |= (128 | 63 & i2) << b2[3 & n3++]);
36685            if (this.lastByteIndex = n3, n3 >= u3) {
36686              for (this.start = n3 - u3, this.block = s2[f3], n3 = 0; n3 < f3; ++n3)
36687                h3[n3] ^= s2[n3];
36688              F2(h3), this.reset = true;
36689            } else
36690              this.start = n3;
36691          }
36692          return this;
36693        }, j.prototype.encode = function(e4, t4) {
36694          var r4 = 255 & e4, n3 = 1, i2 = [r4];
36695          for (r4 = 255 & (e4 >>= 8); r4 > 0; )
36696            i2.unshift(r4), r4 = 255 & (e4 >>= 8), ++n3;
36697          return t4 ? i2.push(n3) : i2.unshift(n3), this.update(i2), i2.length;
36698        }, j.prototype.encodeString = function(e4) {
36699          var t4, r4 = (0, o.default)(e4);
36700          if ("string" !== r4) {
36701            if ("object" !== r4)
36702              throw new Error(a);
36703            if (null === e4)
36704              throw new Error(a);
36705            if (l2 && e4.constructor === ArrayBuffer)
36706              e4 = new Uint8Array(e4);
36707            else if (!(Array.isArray(e4) || l2 && ArrayBuffer.isView(e4)))
36708              throw new Error(a);
36709            t4 = true;
36710          }
36711          var n3 = 0, i2 = e4.length;
36712          if (t4)
36713            n3 = i2;
36714          else
36715            for (var s2 = 0; s2 < e4.length; ++s2) {
36716              var u3 = e4.charCodeAt(s2);
36717              u3 < 128 ? n3 += 1 : u3 < 2048 ? n3 += 2 : u3 < 55296 || u3 >= 57344 ? n3 += 3 : (u3 = 65536 + ((1023 & u3) << 10 | 1023 & e4.charCodeAt(++s2)), n3 += 4);
36718            }
36719          return n3 += this.encode(8 * n3), this.update(e4), n3;
36720        }, j.prototype.bytepad = function(e4, t4) {
36721          for (var r4 = this.encode(t4), n3 = 0; n3 < e4.length; ++n3)
36722            r4 += this.encodeString(e4[n3]);
36723          var i2 = t4 - r4 % t4, o2 = [];
36724          return o2.length = i2, this.update(o2), this;
36725        }, j.prototype.finalize = function() {
36726          if (!this.finalized) {
36727            this.finalized = true;
36728            var e4 = this.blocks, t4 = this.lastByteIndex, r4 = this.blockCount, n3 = this.s;
36729            if (e4[t4 >> 2] |= this.padding[3 & t4], this.lastByteIndex === this.byteCount)
36730              for (e4[0] = e4[r4], t4 = 1; t4 < r4 + 1; ++t4)
36731                e4[t4] = 0;
36732            for (e4[r4 - 1] |= 2147483648, t4 = 0; t4 < r4; ++t4)
36733              n3[t4] ^= e4[t4];
36734            F2(n3);
36735          }
36736        }, j.prototype.toString = j.prototype.hex = function() {
36737          this.finalize();
36738          for (var e4, t4 = this.blockCount, r4 = this.s, n3 = this.outputBlocks, i2 = this.extraBytes, o2 = 0, a2 = 0, s2 = ""; a2 < n3; ) {
36739            for (o2 = 0; o2 < t4 && a2 < n3; ++o2, ++a2)
36740              e4 = r4[o2], s2 += h2[e4 >> 4 & 15] + h2[15 & e4] + h2[e4 >> 12 & 15] + h2[e4 >> 8 & 15] + h2[e4 >> 20 & 15] + h2[e4 >> 16 & 15] + h2[e4 >> 28 & 15] + h2[e4 >> 24 & 15];
36741            a2 % t4 == 0 && (F2(r4), o2 = 0);
36742          }
36743          return i2 && (e4 = r4[o2], s2 += h2[e4 >> 4 & 15] + h2[15 & e4], i2 > 1 && (s2 += h2[e4 >> 12 & 15] + h2[e4 >> 8 & 15]), i2 > 2 && (s2 += h2[e4 >> 20 & 15] + h2[e4 >> 16 & 15])), s2;
36744        }, j.prototype.arrayBuffer = function() {
36745          this.finalize();
36746          var e4, t4 = this.blockCount, r4 = this.s, n3 = this.outputBlocks, i2 = this.extraBytes, o2 = 0, a2 = 0, s2 = this.outputBits >> 3;
36747          e4 = i2 ? new ArrayBuffer(n3 + 1 << 2) : new ArrayBuffer(s2);
36748          for (var u3 = new Uint32Array(e4); a2 < n3; ) {
36749            for (o2 = 0; o2 < t4 && a2 < n3; ++o2, ++a2)
36750              u3[a2] = r4[o2];
36751            a2 % t4 == 0 && F2(r4);
36752          }
36753          return i2 && (u3[o2] = r4[o2], e4 = e4.slice(0, s2)), e4;
36754        }, j.prototype.buffer = j.prototype.arrayBuffer, j.prototype.digest = j.prototype.array = function() {
36755          this.finalize();
36756          for (var e4, t4, r4 = this.blockCount, n3 = this.s, i2 = this.outputBlocks, o2 = this.extraBytes, a2 = 0, s2 = 0, u3 = []; s2 < i2; ) {
36757            for (a2 = 0; a2 < r4 && s2 < i2; ++a2, ++s2)
36758              e4 = s2 << 2, t4 = n3[a2], u3[e4] = 255 & t4, u3[e4 + 1] = t4 >> 8 & 255, u3[e4 + 2] = t4 >> 16 & 255, u3[e4 + 3] = t4 >> 24 & 255;
36759            s2 % r4 == 0 && F2(n3);
36760          }
36761          return o2 && (e4 = s2 << 2, t4 = n3[a2], u3[e4] = 255 & t4, o2 > 1 && (u3[e4 + 1] = t4 >> 8 & 255), o2 > 2 && (u3[e4 + 2] = t4 >> 16 & 255)), u3;
36762        }, N2.prototype = new j(), N2.prototype.finalize = function() {
36763          return this.encode(this.outputBits, true), j.prototype.finalize.call(this);
36764        };
36765        var F2 = function(e4) {
36766          var t4, r4, n3, i2, o2, a2, s2, u3, c3, f3, d3, l3, h3, p3, b3, m3, v3, g3, w3, A3, k3, _2, S3, x3, E3, P3, O3, B3, T3, C3, I3, M3, U3, R3, j2, N3, F3, L2, D2, H2, q2, z2, G2, K2, V2, J2, W2, Y2, X2, Q2, Z2, $, ee2, te2, re2, ne2, ie2, oe2, ae2, se2, ue2, ce2, fe2;
36767          for (n3 = 0; n3 < 48; n3 += 2)
36768            i2 = e4[0] ^ e4[10] ^ e4[20] ^ e4[30] ^ e4[40], o2 = e4[1] ^ e4[11] ^ e4[21] ^ e4[31] ^ e4[41], a2 = e4[2] ^ e4[12] ^ e4[22] ^ e4[32] ^ e4[42], s2 = e4[3] ^ e4[13] ^ e4[23] ^ e4[33] ^ e4[43], u3 = e4[4] ^ e4[14] ^ e4[24] ^ e4[34] ^ e4[44], c3 = e4[5] ^ e4[15] ^ e4[25] ^ e4[35] ^ e4[45], f3 = e4[6] ^ e4[16] ^ e4[26] ^ e4[36] ^ e4[46], d3 = e4[7] ^ e4[17] ^ e4[27] ^ e4[37] ^ e4[47], t4 = (l3 = e4[8] ^ e4[18] ^ e4[28] ^ e4[38] ^ e4[48]) ^ (a2 << 1 | s2 >>> 31), r4 = (h3 = e4[9] ^ e4[19] ^ e4[29] ^ e4[39] ^ e4[49]) ^ (s2 << 1 | a2 >>> 31), e4[0] ^= t4, e4[1] ^= r4, e4[10] ^= t4, e4[11] ^= r4, e4[20] ^= t4, e4[21] ^= r4, e4[30] ^= t4, e4[31] ^= r4, e4[40] ^= t4, e4[41] ^= r4, t4 = i2 ^ (u3 << 1 | c3 >>> 31), r4 = o2 ^ (c3 << 1 | u3 >>> 31), e4[2] ^= t4, e4[3] ^= r4, e4[12] ^= t4, e4[13] ^= r4, e4[22] ^= t4, e4[23] ^= r4, e4[32] ^= t4, e4[33] ^= r4, e4[42] ^= t4, e4[43] ^= r4, t4 = a2 ^ (f3 << 1 | d3 >>>
36768 31), r4 = s2 ^ (d3 << 1 | f3 >>> 31), e4[4] ^= t4, e4[5] ^= r4, e4[14] ^= t4, e4[15] ^= r4, e4[24] ^= t4, e4[25] ^= r4, e4[34] ^= t4, e4[35] ^= r4, e4[44] ^= t4, e4[45] ^= r4, t4 = u3 ^ (l3 << 1 | h3 >>> 31), r4 = c3 ^ (h3 << 1 | l3 >>> 31), e4[6] ^= t4, e4[7] ^= r4, e4[16] ^= t4, e4[17] ^= r4, e4[26] ^= t4, e4[27] ^= r4, e4[36] ^= t4, e4[37] ^= r4, e4[46] ^= t4, e4[47] ^= r4, t4 = f3 ^ (i2 << 1 | o2 >>> 31), r4 = d3 ^ (o2 << 1 | i2 >>> 31), e4[8] ^= t4, e4[9] ^= r4, e4[18] ^= t4, e4[19] ^= r4, e4[28] ^= t4, e4[29] ^= r4, e4[38] ^= t4, e4[39] ^= r4, e4[48] ^= t4, e4[49] ^= r4, p3 = e4[0], b3 = e4[1], J2 = e4[11] << 4 | e4[10] >>> 28, W2 = e4[10] << 4 | e4[11] >>> 28, B3 = e4[20] << 3 | e4[21] >>> 29, T3 = e4[21] << 3 | e4[20] >>> 29, se2 = e4[31] << 9 | e4[30] >>> 23, ue2 = e4[30] << 9 | e4[31] >>> 23, z2 = e4[40] << 18 | e4[41] >>> 14, G2 = e4[41] << 18 | e4[40] >>> 14, R3 = e4[2] << 1 | e4[3] >>> 31, j2 = e4[3] << 1 | e4[2] >>> 31, m3 = e4[13] << 12 | e4[12] >>> 20, v3 = e4[12] << 12 | e4[13] >>> 20, Y2 = e4[22] << 10 | e4[23] >>> 22, X2 = e4[23] << 10 | e4[22] >>> 22, C3 = e4[33] << 13 | e4[32] >>> 19, I3 = e4[32] << 13 | e4[33] >>> 19, ce2 = e4[42] << 2 | e4[43] >>> 30, fe2 = e4[43] << 2 | e4[42] >>> 30, te2 = e4[5] << 30 | e4[4] >>> 2, re2 = e4[4] << 30 | e4[5] >>> 2, N3 = e4[14] << 6 | e4[15] >>> 26, F3 = e4[15] << 6 | e4[14] >>> 26, g3 = e4[25] << 11 | e4[24] >>> 21, w3 = e4[24] << 11 | e4[25] >>> 21, Q2 = e4[34] << 15 | e4[35] >>> 17, Z2 = e4[35] << 15 | e4[34] >>> 17, M3 = e4[45] << 29 | e4[44] >>> 3, U3 = e4[44] << 29 | e4[45] >>> 3, x3 = e4[6] << 28 | e4[7] >>> 4, E3 = e4[7] << 28 | e4[6] >>> 4, ne2 = e4[17] << 23 | e4[16] >>> 9, ie2 = e4[16] << 23 | e4[17] >>> 9, L2 = e4[26] << 25 | e4[27] >>> 7, D2 = e4[27] << 25 | e4[26] >>> 7, A3 = e4[36] << 21 | e4[37] >>> 11, k3 = e4[37] << 21 | e4[36] >>> 11, $ = e4[47] << 24 | e4[46] >>> 8, ee2 = e4[46] << 24 | e4[47] >>> 8, K2 = e4[8] << 27 | e4[9] >>> 5, V2 = e4[9] << 27 | e4[8] >>> 5, P3 = e4[18] << 20 | e4[19] >>> 12, O3 = e4[19] << 20 | e4[18] >>> 12, oe2 = e4[29] << 7 | e4[28] >>> 25, ae2 = e4[28] << 7 | e4[29] >>> 25, H2 = e4[38] << 8 | e4[39] >>> 24, q2 = e4[39] << 8 | e4[38] >>> 24, _2 = e4[48] << 14 | e4[49] >>> 18, S3 = e4[49] << 14 | e4[48] >>> 18, e4[0] = p3 ^ ~m3 & g3, e4[1] = b3 ^ ~v3 & w3, e4[10] = x3 ^ ~P3 & B3, e4[11] = E3 ^ ~O3 & T3, e4[20] = R3 ^ ~N3 & L2, e4[21] = j2 ^ ~F3 & D2, e4[30] = K2 ^ ~J2 & Y2, e4[31] = V2 ^ ~W2 & X2, e4[40] = te2 ^ ~ne2 & oe2, e4[41] = re2 ^ ~ie2 & ae2, e4[2] = m3 ^ ~g3 & A3, e4[3] = v3 ^ ~w3 & k3, e4[12] = P3 ^ ~B3 & C3, e4[13] = O3 ^ ~T3 & I3, e4[22] = N3 ^ ~L2 & H2, e4[23] = F3 ^ ~D2 & q2, e4[32] = J2 ^ ~Y2 & Q2, e4[33] = W2 ^ ~X2 & Z2, e4[42] = ne2 ^ ~oe2 & se2, e4[43] = ie2 ^ ~ae2 & ue2, e4[4] = g3 ^ ~A3 & _2, e4[5] = w3 ^ ~k3 & S3, e4[14] = B3 ^ ~C3 & M3, e4[15] = T3 ^ ~I3 & U3, e4[24] = L2 ^ ~H2 & z2, e4[25] = D2 ^ ~q2 & G2, e4[34] = Y2 ^ ~Q2 & $, e4[35] = X2 ^ ~Z2 & ee2, e4[44] = oe2 ^ ~se2 & ce2, e4[45] = ae2 ^ ~ue2 & fe2, e4[6] = A3 ^ ~_2 & p3, e4[7] = k3 ^ ~S3 & b3, e4[16] = C3 ^ ~M3 & x3, e4[17] = I3 ^ ~U3 & E3, e4[26] = H2 ^ ~z2 & R3, e4[27] = q2 ^ ~G2 & j2, e4[36] = Q2 ^ ~$ & K2, e4[37] = Z2 ^ ~ee2 & V2, e4[46] = se2 ^ ~ce2 & te2, e4[47] = ue2 ^ ~fe2 & re2, e4[8] = _2 ^ ~p3 & m3, e4[9] = S3 ^ ~b3 & v3, e4[18] = M3 ^ ~x3 & P3, e4[19] = U3 ^ ~E3 & O3, e4[28] = z2 ^ ~R3 & N3, e4[29] = G2 ^ ~j2 & F3, e4[38] = $ ^ ~K2 & J2, e4[39] = ee2 ^ ~V2 & W2, e4[48] = ce2 ^ ~te2 & ne2, e4[49] = fe2 ^ ~re2 & ie2, e4[0] ^= y2[n3], e4[1] ^= y2[n3 + 1];
36769        };
36770        if (f2)
36771          e3.exports = O2;
36772        else {
36773          for (T2 = 0; T2 < B2.length; ++T2)
36774            u2[B2[T2]] = O2[B2[T2]];
36775          d2 && (void 0 === (n2 = function() {
36776            return O2;
36777          }.call(t3, r3, t3, e3)) || (e3.exports = n2));
36778        }
36779      }();
36780    }, 7252: (e3, t3) => {
36781      Object.defineProperty(t3, "__esModule", { value: true }), t3.version = void 0, t3.version = "logger/5.7.0";
36782    }, 4327: (e3, t3, r3) => {
36783      var n2 = r3(8847);
36784      Object.defineProperty(t3, "__esModule", { value: true }), t3.Logger = t3.LogLevel = t3.ErrorCode = void 0;
36785      var i, o, a = n2(r3(9721)), s = n2(r3(8985)), u2 = r3(7252), c2 = false, f2 = false, d2 = { debug: 1, default: 2, info: 2, warning: 3, error: 4, off: 5 }, l2 = d2.default, h2 = null, p2 = function() {
36786        try {
36787          var e4 = [];
36788          if (["NFD", "NFC", "NFKD", "NFKC"].forEach(function(t4) {
36789            try {
36790              if ("test" !== "test".normalize(t4))
36791                throw new Error("bad normalize");
36792            } catch (r4) {
36793              e4.push(t4);
36794            }
36795          }), e4.length)
36796            throw new Error("missing " + e4.join(", "));
36797          if (String.fromCharCode(233).normalize("NFD") !== String.fromCharCode(101, 769))
36798            throw new Error("broken implementation");
36799        } catch (e5) {
36800          return e5.message;
36801        }
36802        return null;
36803      }();
36804      t3.LogLevel = i, function(e4) {
36805        e4.DEBUG = "DEBUG", e4.INFO = "INFO", e4.WARNING = "WARNING", e4.ERROR = "ERROR", e4.OFF = "OFF";
36806      }(i || (t3.LogLevel = i = {})), t3.ErrorCode = o, function(e4) {
36807        e4.UNKNOWN_ERROR = "UNKNOWN_ERROR", e4.NOT_IMPLEMENTED = "NOT_IMPLEMENTED", e4.UNSUPPORTED_OPERATION = "UNSUPPORTED_OPERATION", e4.NETWORK_ERROR = "NETWORK_ERROR", e4.SERVER_ERROR = "SERVER_ERROR", e4.TIMEOUT = "TIMEOUT", e4.BUFFER_OVERRUN = "BUFFER_OVERRUN", e4.NUMERIC_FAULT = "NUMERIC_FAULT", e4.MISSING_NEW = "MISSING_NEW", e4.INVALID_ARGUMENT = "INVALID_ARGUMENT", e4.MISSING_ARGUMENT = "MISSING_ARGUMENT", e4.UNEXPECTED_ARGUMENT = "UNEXPECTED_ARGUMENT", e4.CALL_EXCEPTION = "CALL_EXCEPTION", e4.INSUFFICIENT_FUNDS = "INSUFFICIENT_FUNDS", e4.NONCE_EXPIRED = "NONCE_EXPIRED", e4.REPLACEMENT_UNDERPRICED = "REPLACEMENT_UNDERPRICED", e4.UNPREDICTABLE_GAS_LIMIT = "UNPREDICTABLE_GAS_LIMIT", e4.TRANSACTION_REPLACED = "TRANSACTION_REPLACED", e4.ACTION_REJECTED = "ACTION_REJECTED";
36808      }(o || (t3.ErrorCode = o = {}));
36809      var b2 = "0123456789abcdef", y2 = function() {
36810        function e4(t4) {
36811          (0, a.default)(this, e4), Object.defineProperty(this, "version", { enumerable: true, value: t4, writable: false });
36812        }
36813        return (0, s.default)(e4, [{ key: "_log", value: function(e5, t4) {
36814          var r4 = e5.toLowerCase();
36815          null == d2[r4] && this.throwArgumentError("invalid log level name", "logLevel", e5), l2 > d2[r4] || console.log.apply(console, t4);
36816        } }, { key: "debug", value: function() {
36817          for (var t4 = arguments.length, r4 = new Array(t4), n3 = 0; n3 < t4; n3++)
36818            r4[n3] = arguments[n3];
36819          this._log(e4.levels.DEBUG, r4);
36820        } }, { key: "info", value: function() {
36821          for (var t4 = arguments.length, r4 = new Array(t4), n3 = 0; n3 < t4; n3++)
36822            r4[n3] = arguments[n3];
36823          this._log(e4.levels.INFO, r4);
36824        } }, { key: "warn", value: function() {
36825          for (var t4 = arguments.length, r4 = new Array(t4), n3 = 0; n3 < t4; n3++)
36826            r4[n3] = arguments[n3];
36827          this._log(e4.levels.WARNING, r4);
36828        } }, { key: "makeError", value: function(t4, r4, n3) {
36829          if (f2)
36830            return this.makeError("censored error", r4, {});
36831          r4 || (r4 = e4.errors.UNKNOWN_ERROR), n3 || (n3 = {});
36832          var i2 = [];
36833          Object.keys(n3).forEach(function(e5) {
36834            var t5 = n3[e5];
36835            try {
36836              if (t5 instanceof Uint8Array) {
36837                for (var r5 = "", o2 = 0; o2 < t5.length; o2++)
36838                  r5 += b2[t5[o2] >> 4], r5 += b2[15 & t5[o2]];
36839                i2.push(e5 + "=Uint8Array(0x" + r5 + ")");
36840              } else
36841                i2.push(e5 + "=" + JSON.stringify(t5));
36842            } catch (t6) {
36843              i2.push(e5 + "=" + JSON.stringify(n3[e5].toString()));
36844            }
36845          }), i2.push("code=".concat(r4)), i2.push("version=".concat(this.version));
36846          var a2 = t4, s2 = "";
36847          switch (r4) {
36848            case o.NUMERIC_FAULT:
36849              s2 = "NUMERIC_FAULT";
36850              var u3 = t4;
36851              switch (u3) {
36852                case "overflow":
36853                case "underflow":
36854                case "division-by-zero":
36855                  s2 += "-" + u3;
36856                  break;
36857                case "negative-power":
36858                case "negative-width":
36859                  s2 += "-unsupported";
36860                  break;
36861                case "unbound-bitwise-result":
36862                  s2 += "-unbound-result";
36863              }
36864              break;
36865            case o.CALL_EXCEPTION:
36866            case o.INSUFFICIENT_FUNDS:
36867            case o.MISSING_NEW:
36868            case o.NONCE_EXPIRED:
36869            case o.REPLACEMENT_UNDERPRICED:
36870            case o.TRANSACTION_REPLACED:
36871            case o.UNPREDICTABLE_GAS_LIMIT:
36872              s2 = r4;
36873          }
36874          s2 && (t4 += " [ See: https://links.ethers.org/v5-errors-" + s2 + " ]"), i2.length && (t4 += " (" + i2.join(", ") + ")");
36875          var c3 = new Error(t4);
36876          return c3.reason = a2, c3.code = r4, Object.keys(n3).forEach(function(e5) {
36877            c3[e5] = n3[e5];
36878          }), c3;
36879        } }, { key: "throwError", value: function(e5, t4, r4) {
36880          throw this.makeError(e5, t4, r4);
36881        } }, { key: "throwArgumentError", value: function(t4, r4, n3) {
36882          return this.throwError(t4, e4.errors.INVALID_ARGUMENT, { argument: r4, value: n3 });
36883        } }, { key: "assert", value: function(e5, t4, r4, n3) {
36884          e5 || this.throwError(t4, r4, n3);
36885        } }, { key: "assertArgument", value: function(e5, t4, r4, n3) {
36886          e5 || this.throwArgumentError(t4, r4, n3);
36887        } }, { key: "checkNormalize", value: function(t4) {
36888          p2 && this.throwError("platform missing String.prototype.normalize", e4.errors.UNSUPPORTED_OPERATION, { operation: "String.prototype.normalize", form: p2 });
36889        } }, { key: "checkSafeUint53", value: function(t4, r4) {
36890          "number" == typeof t4 && (null == r4 && (r4 = "value not safe"), (t4 < 0 || t4 >= 9007199254740991) && this.throwError(r4, e4.errors.NUMERIC_FAULT, { operation: "checkSafeInteger", fault: "out-of-safe-range", value: t4 }), t4 % 1 && this.throwError(r4, e4.errors.NUMERIC_FAULT, { operation: "checkSafeInteger", fault: "non-integer", value: t4 }));
36891        } }, { key: "checkArgumentCount", value: function(t4, r4, n3) {
36892          n3 = n3 ? ": " + n3 : "", t4 < r4 && this.throwError("missing argument" + n3, e4.errors.MISSING_ARGUMENT, { count: t4, expectedCount: r4 }), t4 > r4 && this.throwError("too many arguments" + n3, e4.errors.UNEXPECTED_ARGUMENT, { count: t4, expectedCount: r4 });
36893        } }, { key: "checkNew", value: function(t4, r4) {
36894          t4 !== Object && null != t4 || this.throwError("missing new", e4.errors.MISSING_NEW, { name: r4.name });
36895        } }, { key: "checkAbstract", value: function(t4, r4) {
36896          t4 === r4 ? this.throwError("cannot instantiate abstract class " + JSON.stringify(r4.name) + " directly; use a sub-class", e4.errors.UNSUPPORTED_OPERATION, { name: t4.name, operation: "new" }) : t4 !== Object && null != t4 || this.throwError("missing new", e4.errors.MISSING_NEW, { name: r4.name });
36897        } }], [{ key: "globalLogger", value: function() {
36898          return h2 || (h2 = new e4(u2.version)), h2;
36899        } }, { key: "setCensorship", value: function(t4, r4) {
36900          if (!t4 && r4 && this.globalLogger().throwError("cannot permanently disable censorship", e4.errors.UNSUPPORTED_OPERATION, { operation: "setCensorship" }), c2) {
36901            if (!t4)
36902              return;
36903            this.globalLogger().throwError("error censorship permanent", e4.errors.UNSUPPORTED_OPERATION, { operation: "setCensorship" });
36904          }
36905          f2 = !!t4, c2 = !!r4;
36906        } }, { key: "setLogLevel", value: function(t4) {
36907          var r4 = d2[t4.toLowerCase()];
36908          null != r4 ? l2 = r4 : e4.globalLogger().warn("invalid log level - " + t4);
36909        } }, { key: "from", value: function(t4) {
36910          return new e4(t4);
36911        } }]), e4;
36912      }();
36913      t3.Logger = y2, y2.errors = o, y2.levels = i;
36914    }, 4071: (e3, t3) => {
36915      Object.defineProperty(t3, "__esModule", { value: true }), t3.version = void 0, t3.version = "properties/5.7.0";
36916    }, 3694: (e3, t3, r3) => {
36917      var n2 = r3(8847);
36918      Object.defineProperty(t3, "__esModule", { value: true }), t3.Description = void 0, t3.checkProperties = function(e4, t4) {
36919        e4 && "object" === (0, s.default)(e4) || d2.throwArgumentError("invalid object", "object", e4), Object.keys(e4).forEach(function(r4) {
36920          t4[r4] || d2.throwArgumentError("invalid object key - " + r4, "transaction:" + r4, e4);
36921        });
36922      }, t3.deepCopy = y2, t3.defineReadOnly = l2, t3.getStatic = function(e4, t4) {
36923        for (var r4 = 0; r4 < 32; r4++) {
36924          if (e4[t4])
36925            return e4[t4];
36926          if (!e4.prototype || "object" !== (0, s.default)(e4.prototype))
36927            break;
36928          e4 = Object.getPrototypeOf(e4.prototype).constructor;
36929        }
36930        return null;
36931      }, t3.resolveProperties = function(e4) {
36932        return f2(this, void 0, void 0, i.default.mark(function t4() {
36933          var r4, n3;
36934          return i.default.wrap(function(t5) {
36935            for (; ; )
36936              switch (t5.prev = t5.next) {
36937                case 0:
36938                  return r4 = Object.keys(e4).map(function(t6) {
36939                    var r5 = e4[t6];
36940                    return Promise.resolve(r5).then(function(e5) {
36941                      return { key: t6, value: e5 };
36942                    });
36943                  }), t5.next = 3, Promise.all(r4);
36944                case 3:
36945                  return n3 = t5.sent, t5.abrupt("return", n3.reduce(function(e5, t6) {
36946                    return e5[t6.key] = t6.value, e5;
36947                  }, {}));
36948                case 5:
36949                case "end":
36950                  return t5.stop();
36951              }
36952          }, t4);
36953        }));
36954      }, t3.shallowCopy = function(e4) {
36955        var t4 = {};
36956        for (var r4 in e4)
36957          t4[r4] = e4[r4];
36958        return t4;
36959      };
36960      var i = n2(r3(2247)), o = n2(r3(8985)), a = n2(r3(9721)), s = n2(r3(3355)), u2 = r3(4327), c2 = r3(4071), f2 = function(e4, t4, r4, n3) {
36961        return new (r4 || (r4 = Promise))(function(i2, o2) {
36962          function a2(e5) {
36963            try {
36964              u3(n3.next(e5));
36965            } catch (e6) {
36966              o2(e6);
36967            }
36968          }
36969          function s2(e5) {
36970            try {
36971              u3(n3.throw(e5));
36972            } catch (e6) {
36973              o2(e6);
36974            }
36975          }
36976          function u3(e5) {
36977            var t5;
36978            e5.done ? i2(e5.value) : (t5 = e5.value, t5 instanceof r4 ? t5 : new r4(function(e6) {
36979              e6(t5);
36980            })).then(a2, s2);
36981          }
36982          u3((n3 = n3.apply(e4, t4 || [])).next());
36983        });
36984      }, d2 = new u2.Logger(c2.version);
36985      function l2(e4, t4, r4) {
36986        Object.defineProperty(e4, t4, { enumerable: true, value: r4, writable: false });
36987      }
36988      var h2 = { bigint: true, boolean: true, function: true, number: true, string: true };
36989      function p2(e4) {
36990        if (null == e4 || h2[(0, s.default)(e4)])
36991          return true;
36992        if (Array.isArray(e4) || "object" === (0, s.default)(e4)) {
36993          if (!Object.isFrozen(e4))
36994            return false;
36995          for (var t4 = Object.keys(e4), r4 = 0; r4 < t4.length; r4++) {
36996            var n3 = null;
36997            try {
36998              n3 = e4[t4[r4]];
36999            } catch (e5) {
37000              continue;
37001            }
37002            if (!p2(n3))
37003              return false;
37004          }
37005          return true;
37006        }
37007        return d2.throwArgumentError("Cannot deepCopy ".concat((0, s.default)(e4)), "object", e4);
37008      }
37009      function b2(e4) {
37010        if (p2(e4))
37011          return e4;
37012        if (Array.isArray(e4))
37013          return Object.freeze(e4.map(function(e5) {
37014            return y2(e5);
37015          }));
37016        if ("object" === (0, s.default)(e4)) {
37017          var t4 = {};
37018          for (var r4 in e4) {
37019            var n3 = e4[r4];
37020            void 0 !== n3 && l2(t4, r4, y2(n3));
37021          }
37022          return t4;
37023        }
37024        return d2.throwArgumentError("Cannot deepCopy ".concat((0, s.default)(e4)), "object", e4);
37025      }
37026      function y2(e4) {
37027        return b2(e4);
37028      }
37029      var m2 = (0, o.default)(function e4(t4) {
37030        for (var r4 in (0, a.default)(this, e4), t4)
37031          this[r4] = y2(t4[r4]);
37032      });
37033      t3.Description = m2;
37034    }, 1466: (e3, t3) => {
37035      Object.defineProperty(t3, "__esModule", { value: true }), t3.version = void 0, t3.version = "rlp/5.7.0";
37036    }, 5265: (e3, t3, r3) => {
37037      Object.defineProperty(t3, "__esModule", { value: true }), t3.decode = function(e4) {
37038        var t4 = (0, n2.arrayify)(e4), r4 = d2(t4, 0);
37039        return r4.consumed !== t4.length && a.throwArgumentError("invalid rlp data", "data", e4), r4.result;
37040      }, t3.encode = function(e4) {
37041        return (0, n2.hexlify)(c2(e4));
37042      };
37043      var n2 = r3(908), i = r3(4327), o = r3(1466), a = new i.Logger(o.version);
37044      function s(e4) {
37045        for (var t4 = []; e4; )
37046          t4.unshift(255 & e4), e4 >>= 8;
37047        return t4;
37048      }
37049      function u2(e4, t4, r4) {
37050        for (var n3 = 0, i2 = 0; i2 < r4; i2++)
37051          n3 = 256 * n3 + e4[t4 + i2];
37052        return n3;
37053      }
37054      function c2(e4) {
37055        if (Array.isArray(e4)) {
37056          var t4 = [];
37057          if (e4.forEach(function(e5) {
37058            t4 = t4.concat(c2(e5));
37059          }), t4.length <= 55)
37060            return t4.unshift(192 + t4.length), t4;
37061          var r4 = s(t4.length);
37062          return r4.unshift(247 + r4.length), r4.concat(t4);
37063        }
37064        (0, n2.isBytesLike)(e4) || a.throwArgumentError("RLP object must be BytesLike", "object", e4);
37065        var i2 = Array.prototype.slice.call((0, n2.arrayify)(e4));
37066        if (1 === i2.length && i2[0] <= 127)
37067          return i2;
37068        if (i2.length <= 55)
37069          return i2.unshift(128 + i2.length), i2;
37070        var o2 = s(i2.length);
37071        return o2.unshift(183 + o2.length), o2.concat(i2);
37072      }
37073      function f2(e4, t4, r4, n3) {
37074        for (var o2 = []; r4 < t4 + 1 + n3; ) {
37075          var s2 = d2(e4, r4);
37076          o2.push(s2.result), (r4 += s2.consumed) > t4 + 1 + n3 && a.throwError("child data too short", i.Logger.errors.BUFFER_OVERRUN, {});
37077        }
37078        return { consumed: 1 + n3, result: o2 };
37079      }
37080      function d2(e4, t4) {
37081        if (0 === e4.length && a.throwError("data too short", i.Logger.errors.BUFFER_OVERRUN, {}), e4[t4] >= 248) {
37082          var r4 = e4[t4] - 247;
37083          t4 + 1 + r4 > e4.length && a.throwError("data short segment too short", i.Logger.errors.BUFFER_OVERRUN, {});
37084          var o2 = u2(e4, t4 + 1, r4);
37085          return t4 + 1 + r4 + o2 > e4.length && a.throwError("data long segment too short", i.Logger.errors.BUFFER_OVERRUN, {}), f2(e4, t4, t4 + 1 + r4, r4 + o2);
37086        }
37087        if (e4[t4] >= 192) {
37088          var s2 = e4[t4] - 192;
37089          return t4 + 1 + s2 > e4.length && a.throwError("data array too short", i.Logger.errors.BUFFER_OVERRUN, {}), f2(e4, t4, t4 + 1, s2);
37090        }
37091        if (e4[t4] >= 184) {
37092          var c3 = e4[t4] - 183;
37093          t4 + 1 + c3 > e4.length && a.throwError("data array too short", i.Logger.errors.BUFFER_OVERRUN, {});
37094          var d3 = u2(e4, t4 + 1, c3);
37095          return t4 + 1 + c3 + d3 > e4.length && a.throwError("data array too short", i.Logger.errors.BUFFER_OVERRUN, {}), { consumed: 1 + c3 + d3, result: (0, n2.hexlify)(e4.slice(t4 + 1 + c3, t4 + 1 + c3 + d3)) };
37096        }
37097        if (e4[t4] >= 128) {
37098          var l2 = e4[t4] - 128;
37099          return t4 + 1 + l2 > e4.length && a.throwError("data too short", i.Logger.errors.BUFFER_OVERRUN, {}), { consumed: 1 + l2, result: (0, n2.hexlify)(e4.slice(t4 + 1, t4 + 1 + l2)) };
37100        }
37101        return { consumed: 1, result: (0, n2.hexlify)(e4[t4]) };
37102      }
37103    }, 8100: (e3, t3) => {
37104      Object.defineProperty(t3, "__esModule", { value: true }), t3.version = void 0, t3.version = "signing-key/5.7.0";
37105    }, 6918: (e3, t3, r3) => {
37106      var n2 = r3(8847);
37107      Object.defineProperty(t3, "__esModule", { value: true }), t3.EC = void 0;
37108      var i = n2(r3(3355)), o = n2(r3(1734)), a = n2(r3(7198));
37109      function s(e4, t4, r4) {
37110        return r4 = { path: t4, exports: {}, require: function(e5, t5) {
37111          return function() {
37112            throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs");
37113          }(null == t5 && r4.path);
37114        } }
37114, e4(r4, r4.exports), r4.exports;
37115      }
37116      "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : void 0 !== r3.g ? r3.g : "undefined" != typeof self && self;
37117      var u2 = c2;
37118      function c2(e4, t4) {
37119        if (!e4)
37120          throw new Error(t4 || "Assertion failed");
37121      }
37122      c2.equal = function(e4, t4, r4) {
37123        if (e4 != t4)
37124          throw new Error(r4 || "Assertion failed: " + e4 + " != " + t4);
37125      };
37126      var f2 = s(function(e4, t4) {
37127        var r4 = t4;
37128        function n3(e5) {
37129          return 1 === e5.length ? "0" + e5 : e5;
37130        }
37131        function i2(e5) {
37132          for (var t5 = "", r5 = 0; r5 < e5.length; r5++)
37133            t5 += n3(e5[r5].toString(16));
37134          return t5;
37135        }
37136        r4.toArray = function(e5, t5) {
37137          if (Array.isArray(e5))
37138            return e5.slice();
37139          if (!e5)
37140            return [];
37141          var r5 = [];
37142          if ("string" != typeof e5) {
37143            for (var n4 = 0; n4 < e5.length; n4++)
37144              r5[n4] = 0 | e5[n4];
37145            return r5;
37146          }
37147          if ("hex" === t5)
37148            for ((e5 = e5.replace(/[^a-z0-9]+/gi, "")).length % 2 != 0 && (e5 = "0" + e5), n4 = 0; n4 < e5.length; n4 += 2)
37149              r5.push(parseInt(e5[n4] + e5[n4 + 1], 16));
37150          else
37151            for (n4 = 0; n4 < e5.length; n4++) {
37152              var i3 = e5.charCodeAt(n4), o2 = i3 >> 8, a2 = 255 & i3;
37153              o2 ? r5.push(o2, a2) : r5.push(a2);
37154            }
37155          return r5;
37156        }, r4.zero2 = n3, r4.toHex = i2, r4.encode = function(e5, t5) {
37157          return "hex" === t5 ? i2(e5) : e5;
37158        };
37159      }), d2 = s(function(e4, t4) {
37160        var r4 = t4;
37161        r4.assert = u2, r4.toArray = f2.toArray, r4.zero2 = f2.zero2, r4.toHex = f2.toHex, r4.encode = f2.encode, r4.getNAF = function(e5, t5, r5) {
37162          var n3 = new Array(Math.max(e5.bitLength(), r5) + 1);
37163          n3.fill(0);
37164          for (var i2 = 1 << t5 + 1, o2 = e5.clone(), a2 = 0; a2 < n3.length; a2++) {
37165            var s2, u3 = o2.andln(i2 - 1);
37166            o2.isOdd() ? (s2 = u3 > (i2 >> 1) - 1 ? (i2 >> 1) - u3 : u3, o2.isubn(s2)) : s2 = 0, n3[a2] = s2, o2.iushrn(1);
37167          }
37168          return n3;
37169        }, r4.getJSF = function(e5, t5) {
37170          var r5 = [[], []];
37171          e5 = e5.clone(), t5 = t5.clone();
37172          for (var n3, i2 = 0, o2 = 0; e5.cmpn(-i2) > 0 || t5.cmpn(-o2) > 0; ) {
37173            var a2, s2, u3 = e5.andln(3) + i2 & 3, c3 = t5.andln(3) + o2 & 3;
37174            3 === u3 && (u3 = -1), 3 === c3 && (c3 = -1), a2 = 0 == (1 & u3) ? 0 : 3 != (n3 = e5.andln(7) + i2 & 7) && 5 !== n3 || 2 !== c3 ? u3 : -u3, r5[0].push(a2), s2 = 0 == (1 & c3) ? 0 : 3 != (n3 = t5.andln(7) + o2 & 7) && 5 !== n3 || 2 !== u3 ? c3 : -c3, r5[1].push(s2), 2 * i2 === a2 + 1 && (i2 = 1 - i2), 2 * o2 === s2 + 1 && (o2 = 1 - o2), e5.iushrn(1), t5.iushrn(1);
37175          }
37176          return r5;
37177        }, r4.cachedProperty = function(e5, t5, r5) {
37178          var n3 = "_" + t5;
37179          e5.prototype[t5] = function() {
37180            return void 0 !== this[n3] ? this[n3] : this[n3] = r5.call(this);
37181          };
37182        }, r4.parseBytes = function(e5) {
37183          return "string" == typeof e5 ? r4.toArray(e5, "hex") : e5;
37184        }, r4.intFromLE = function(e5) {
37185          return new o.default(e5, "hex", "le");
37186        };
37187      }), l2 = d2.getNAF, h2 = d2.getJSF, p2 = d2.assert;
37188      function b2(e4, t4) {
37189        this.type = e4, this.p = new o.default(t4.p, 16), this.red = t4.prime ? o.default.red(t4.prime) : o.default.mont(this.p), this.zero = new o.default(0).toRed(this.red), this.one = new o.default(1).toRed(this.red), this.two = new o.default(2).toRed(this.red), this.n = t4.n && new o.default(t4.n, 16), this.g = t4.g && this.pointFromJSON(t4.g, t4.gRed), this._wnafT1 = new Array(4), this._wnafT2 = new Array(4), this._wnafT3 = new Array(4), this._wnafT4 = new Array(4), this._bitLength = this.n ? this.n.bitLength() : 0;
37190        var r4 = this.n && this.p.div(this.n);
37191        !r4 || r4.cmpn(100) > 0 ? this.redN = null : (this._maxwellTrick = true, this.redN = this.n.toRed(this.red));
37192      }
37193      var y2 = b2;
37194      function m2(e4, t4) {
vendor: 5,131 bytes, lines 37195-37288
37195        this.curve = e4, this.type = t4, this.precomputed = null;
37196      }
37197      b2.prototype.point = function() {
37198        throw new Error("Not implemented");
37199      }, b2.prototype.validate = function() {
37200        throw new Error("Not implemented");
37201      }, b2.prototype._fixedNafMul = function(e4, t4) {
37202        p2(e4.precomputed);
37203        var r4 = e4._getDoubles(), n3 = l2(t4, 1, this._bitLength), i2 = (1 << r4.step + 1) - (r4.step % 2 == 0 ? 2 : 1);
37204        i2 /= 3;
37205        var o2, a2, s2 = [];
37206        for (o2 = 0; o2 < n3.length; o2 += r4.step) {
37207          a2 = 0;
37208          for (var u3 = o2 + r4.step - 1; u3 >= o2; u3--)
37209            a2 = (a2 << 1) + n3[u3];
37210          s2.push(a2);
37211        }
37212        for (var c3 = this.jpoint(null, null, null), f3 = this.jpoint(null, null, null), d3 = i2; d3 > 0; d3--) {
37213          for (o2 = 0; o2 < s2.length; o2++)
37214            (a2 = s2[o2]) === d3 ? f3 = f3.mixedAdd(r4.points[o2]) : a2 === -d3 && (f3 = f3.mixedAdd(r4.points[o2].neg()));
37215          c3 = c3.add(f3);
37216        }
37217        return c3.toP();
37218      }, b2.prototype._wnafMul = function(e4, t4) {
37219        var r4 = 4, n3 = e4._getNAFPoints(r4);
37220        r4 = n3.wnd;
37221        for (var i2 = n3.points, o2 = l2(t4, r4, this._bitLength), a2 = this.jpoint(null, null, null), s2 = o2.length - 1; s2 >= 0; s2--) {
37222          for (var u3 = 0; s2 >= 0 && 0 === o2[s2]; s2--)
37223            u3++;
37224          if (s2 >= 0 && u3++, a2 = a2.dblp(u3), s2 < 0)
37225            break;
37226          var c3 = o2[s2];
37227          p2(0 !== c3), a2 = "affine" === e4.type ? c3 > 0 ? a2.mixedAdd(i2[c3 - 1 >> 1]) : a2.mixedAdd(i2[-c3 - 1 >> 1].neg()) : c3 > 0 ? a2.add(i2[c3 - 1 >> 1]) : a2.add(i2[-c3 - 1 >> 1].neg());
37228        }
37229        return "affine" === e4.type ? a2.toP() : a2;
37230      }, b2.prototype._wnafMulAdd = function(e4, t4, r4, n3, i2) {
37231        var o2, a2, s2, u3 = this._wnafT1, c3 = this._wnafT2, f3 = this._wnafT3, d3 = 0;
37232        for (o2 = 0; o2 < n3; o2++) {
37233          var p3 = (s2 = t4[o2])._getNAFPoints(e4);
37234          u3[o2] = p3.wnd, c3[o2] = p3.points;
37235        }
37236        for (o2 = n3 - 1; o2 >= 1; o2 -= 2) {
37237          var b3 = o2 - 1, y3 = o2;
37238          if (1 === u3[b3] && 1 === u3[y3]) {
37239            var m3 = [t4[b3], null, null, t4[y3]];
37240            0 === t4[b3].y.cmp(t4[y3].y) ? (m3[1] = t4[b3].add(t4[y3]), m3[2] = t4[b3].toJ().mixedAdd(t4[y3].neg())) : 0 === t4[b3].y.cmp(t4[y3].y.redNeg()) ? (m3[1] = t4[b3].toJ().mixedAdd(t4[y3]), m3[2] = t4[b3].add(t4[y3].neg())) : (m3[1] = t4[b3].toJ().mixedAdd(t4[y3]), m3[2] = t4[b3].toJ().mixedAdd(t4[y3].neg()));
37241            var v3 = [-3, -1, -5, -7, 0, 7, 5, 1, 3], g3 = h2(r4[b3], r4[y3]);
37242            for (d3 = Math.max(g3[0].length, d3), f3[b3] = new Array(d3), f3[y3] = new Array(d3), a2 = 0; a2 < d3; a2++) {
37243              var w3 = 0 | g3[0][a2], A3 = 0 | g3[1][a2];
37244              f3[b3][a2] = v3[3 * (w3 + 1) + (A3 + 1)], f3[y3][a2] = 0, c3[b3] = m3;
37245            }
37246          } else
37247            f3[b3] = l2(r4[b3], u3[b3], this._bitLength), f3[y3] = l2(r4[y3], u3[y3], this._bitLength), d3 = Math.max(f3[b3].length, d3), d3 = Math.max(f3[y3].length, d3);
37248        }
37249        var k3 = this.jpoint(null, null, null), _2 = this._wnafT4;
37250        for (o2 = d3; o2 >= 0; o2--) {
37251          for (var S3 = 0; o2 >= 0; ) {
37252            var x3 = true;
37253            for (a2 = 0; a2 < n3; a2++)
37254              _2[a2] = 0 | f3[a2][o2], 0 !== _2[a2] && (x3 = false);
37255            if (!x3)
37256              break;
37257            S3++, o2--;
37258          }
37259          if (o2 >= 0 && S3++, k3 = k3.dblp(S3), o2 < 0)
37260            break;
37261          for (a2 = 0; a2 < n3; a2++) {
37262            var E3 = _2[a2];
37263            0 !== E3 && (E3 > 0 ? s2 = c3[a2][E3 - 1 >> 1] : E3 < 0 && (s2 = c3[a2][-E3 - 1 >> 1].neg()), k3 = "affine" === s2.type ? k3.mixedAdd(s2) : k3.add(s2));
37264          }
37265        }
37266        for (o2 = 0; o2 < n3; o2++)
37267          c3[o2] = null;
37268        return i2 ? k3 : k3.toP();
37269      }, b2.BasePoint = m2, m2.prototype.eq = function() {
37270        throw new Error("Not implemented");
37271      }, m2.prototype.validate = function() {
37272        return this.curve.validate(this);
37273      }, b2.prototype.decodePoint = function(e4, t4) {
37274        e4 = d2.toArray(e4, t4);
37275        var r4 = this.p.byteLength();
37276        if ((4 === e4[0] || 6 === e4[0] || 7 === e4[0]) && e4.length - 1 == 2 * r4)
37277          return 6 === e4[0] ? p2(e4[e4.length - 1] % 2 == 0) : 7 === e4[0] && p2(e4[e4.length - 1] % 2 == 1), this.point(e4.slice(1, 1 + r4), e4.slice(1 + r4, 1 + 2 * r4));
37278        if ((2 === e4[0] || 3 === e4[0]) && e4.length - 1 === r4)
37279          return this.pointFromX(e4.slice(1, 1 + r4), 3 === e4[0]);
37280        throw new Error("Unknown point format");
37281      }, m2.prototype.encodeCompressed = function(e4) {
37282        return this.encode(e4, true);
37283      }, m2.prototype._encode = function(e4) {
37284        var t4 = this.curve.p.byteLength(), r4 = this.getX().toArray("be", t4);
37285        return e4 ? [this.getY().isEven() ? 2 : 3].concat(r4) : [4].concat(r4, this.getY().toArray("be", t4));
37286      }, m2.prototype.encode = function(e4, t4) {
37287        return d2.encode(this._encode(t4), e4);
37288      }, m2.prototype.precompute = function(e4) {
37289        if (this.precomputed)
37290          return this;
37291        var t4 = { doubles: null, naf: null, beta: null };
37292        return t4.naf = this._getNAFPoints(8), t4.doubles = this._getDoubles(4, e4), t4.beta = this._getBeta(), this.precomputed = t4, this;
37293      }, m2.prototype._hasDoubles = function(e4) {
37294        if (!this.precomputed)
37295          return false;
37296        var t4 = this.precomputed.doubles;
37297        return !!t4 && t4.points.length >= Math.ceil((e4.bitLength() + 1) / t4.step);
37298      }, m2.prototype._getDoubles = function(e4, t4) {
37299        if (this.precomputed && this.precomputed.doubles)
37300          return this.precomputed.doubles;
37301        for (var r4 = [this], n3 = this, i2 = 0; i2 < t4; i2 += e4) {
37302          for (var o2 = 0; o2 < e4; o2++)
37303            n3 = n3.dbl();
37304          r4.push(n3);
37305        }
37306        return { step: e4, points: r4 };
37307      }, m2.prototype._getNAFPoints = function(e4) {
37308        if (this.precomputed && this.precomputed.naf)
37309          return this.precomputed.naf;
37310        for (var t4 = [this], r4 = (1 << e4) - 1, n3 = 1 === r4 ? null : this.dbl(), i2 = 1; i2 < r4; i2++)
37311          t4[i2] = t4[i2 - 1].add(n3);
37312        return { wnd: e4, points: t4 };
37313      }, m2.prototype._getBeta = function() {
37314        return null;
37315      }, m2.prototype.dblp = function(e4) {
37316        for (var t4 = this, r4 = 0; r4 < e4; r4++)
37317          t4 = t4.dbl();
37318        return t4;
37319      };
37320      var v2 = s(function(e4) {
37321        "function" == typeof Object.create ? e4.exports = function(e5, t4) {
37322          t4 && (e5.super_ = t4, e5.prototype = Object.create(t4.prototype, { constructor: { value: e5, enumerable: false, writable: true, configurable: true } }));
37323        } : e4.exports = function(e5, t4) {
37324          if (t4) {
37325            e5.super_ = t4;
37326            var r4 = function() {
37327            };
37328            r4.prototype = t4.prototype, e5.prototype = new r4(), e5.prototype.constructor = e5;
37329          }
37330        };
37331      }), g2 = d2.assert;
37332      function w2(e4) {
37333        y2.call(this, "short", e4), this.a = new o.default(e4.a, 16).toRed(this.red), this.b = new o.default(e4.b, 16).toRed(this.red), this.tinv = this.two.redInvm(), this.zeroA = 0 === this.a.fromRed().cmpn(0), this.threeA = 0 === this.a.fromRed().sub(this.p).cmpn(-3), this.endo = this._getEndomorphism(e4), this._endoWnafT1 = new Array(4), this._endoWnafT2 = new Array(4);
37334      }
37335      v2(w2, y2);
37336      var A2 = w2;
37337      function k2(e4, t4, r4, n3) {
37338        y2.BasePoint.call(this, e4, "affine"), null === t4 && null === r4 ? (this.x = null, this.y = null, this.inf = true) : (this.x = new o.default(t4, 16), this.y = new o.default(r4, 16), n3 && (this.x.forceRed(this.curve.red), this.y.forceRed(this.curve.red)), this.x.red || (this.x = this.x.toRed(this.curve.red)), this.y.red || (this.y = this.y.toRed(this.curve.red)), this.inf = false);
37339      }
37340      function _(e4, t4, r4, n3) {
37341        y2.BasePoint.call(this, e4, "jacobian"), null === t4 && null === r4 && null === n3 ? (this.x = this.curve.one, this.y = this.curve.one, this.z = new o.default(0)) : (this.x = new o.default(t4, 16), this.y = new o.default(r4, 16), this.z = new o.default(n3, 16)), this.x.red || (this.x = this.x.toRed(this.curve.red)), this.y.red || (this.y = this.y.toRed(this.curve.red)), this.z.red || (this.z = this.z.toRed(this.curve.red)), this.zOne = this.z === this.curve.one;
37342      }
37343      w2.prototype._getEndomorphism = function(e4) {
37344        if (this.zeroA && this.g && this.n && 1 === this.p.modn(3)) {
37345          var t4, r4;
37346          if (e4.beta)
37347            t4 = new o.default(e4.beta, 16).toRed(this.red);
37348          else {
37349            var n3 = this._getEndoRoots(this.p);
37350            t4 = (t4 = n3[0].cmp(n3[1]) < 0 ? n3[0] : n3[1]).toRed(this.red);
37351          }
37352          if (e4.lambda)
37353            r4 = new o.default(e4.lambda, 16);
37354          else {
37355            var i2 = this._getEndoRoots(this.n);
37356            0 === this.g.mul(i2[0]).x.cmp(this.g.x.redMul(t4)) ? r4 = i2[0] : (r4 = i2[1], g2(0 === this.g.mul(r4).x.cmp(this.g.x.redMul(t4))));
37357          }
37358          return { beta: t4, lambda: r4, basis: e4.basis ? e4.basis.map(function(e5) {
37359            return { a: new o.default(e5.a, 16), b: new o.default(e5.b, 16) };
37360          }) : this._getEndoBasis(r4) };
37361        }
37362      }, w2.prototype._getEndoRoots = function(e4) {
37363        var t4 = e4 === this.p ? this.red : o.default.mont(e4), r4 = new o.default(2).toRed(t4).redInvm(), n3 = r4.redNeg(), i2 = new o.default(3).toRed(t4).redNeg().redSqrt().redMul(r4);
37364        return [n3.redAdd(i2).fromRed(), n3.redSub(i2).fromRed()];
37365      }
vendor: 14,530 bytes, lines 37365-37598
37365, w2.prototype._getEndoBasis = function(e4) {
37366        for (var t4, r4, n3, i2, a2, s2, u3, c3, f3, d3 = this.n.ushrn(Math.floor(this.n.bitLength() / 2)), l3 = e4, h3 = this.n.clone(), p3 = new o.default(1), b3 = new o.default(0), y3 = new o.default(0), m3 = new o.default(1), v3 = 0; 0 !== l3.cmpn(0); ) {
37367          var g3 = h3.div(l3);
37368          c3 = h3.sub(g3.mul(l3)), f3 = y3.sub(g3.mul(p3));
37369          var w3 = m3.sub(g3.mul(b3));
37370          if (!n3 && c3.cmp(d3) < 0)
37371            t4 = u3.neg(), r4 = p3, n3 = c3.neg(), i2 = f3;
37372          else if (n3 && 2 == ++v3)
37373            break;
37374          u3 = c3, h3 = l3, l3 = c3, y3 = p3, p3 = f3, m3 = b3, b3 = w3;
37375        }
37376        a2 = c3.neg(), s2 = f3;
37377        var A3 = n3.sqr().add(i2.sqr());
37378        return a2.sqr().add(s2.sqr()).cmp(A3) >= 0 && (a2 = t4, s2 = r4), n3.negative && (n3 = n3.neg(), i2 = i2.neg()), a2.negative && (a2 = a2.neg(), s2 = s2.neg()), [{ a: n3, b: i2 }, { a: a2, b: s2 }];
37379      }, w2.prototype._endoSplit = function(e4) {
37380        var t4 = this.endo.basis, r4 = t4[0], n3 = t4[1], i2 = n3.b.mul(e4).divRound(this.n), o2 = r4.b.neg().mul(e4).divRound(this.n), a2 = i2.mul(r4.a), s2 = o2.mul(n3.a), u3 = i2.mul(r4.b), c3 = o2.mul(n3.b);
37381        return { k1: e4.sub(a2).sub(s2), k2: u3.add(c3).neg() };
37382      }, w2.prototype.pointFromX = function(e4, t4) {
37383        (e4 = new o.default(e4, 16)).red || (e4 = e4.toRed(this.red));
37384        var r4 = e4.redSqr().redMul(e4).redIAdd(e4.redMul(this.a)).redIAdd(this.b), n3 = r4.redSqrt();
37385        if (0 !== n3.redSqr().redSub(r4).cmp(this.zero))
37386          throw new Error("invalid point");
37387        var i2 = n3.fromRed().isOdd();
37388        return (t4 && !i2 || !t4 && i2) && (n3 = n3.redNeg()), this.point(e4, n3);
37389      }, w2.prototype.validate = function(e4) {
37390        if (e4.inf)
37391          return true;
37392        var t4 = e4.x, r4 = e4.y, n3 = this.a.redMul(t4), i2 = t4.redSqr().redMul(t4).redIAdd(n3).redIAdd(this.b);
37393        return 0 === r4.redSqr().redISub(i2).cmpn(0);
37394      }, w2.prototype._endoWnafMulAdd = function(e4, t4, r4) {
37395        for (var n3 = this._endoWnafT1, i2 = this._endoWnafT2, o2 = 0; o2 < e4.length; o2++) {
37396          var a2 = this._endoSplit(t4[o2]), s2 = e4[o2], u3 = s2._getBeta();
37397          a2.k1.negative && (a2.k1.ineg(), s2 = s2.neg(true)), a2.k2.negative && (a2.k2.ineg(), u3 = u3.neg(true)), n3[2 * o2] = s2, n3[2 * o2 + 1] = u3, i2[2 * o2] = a2.k1, i2[2 * o2 + 1] = a2.k2;
37398        }
37399        for (var c3 = this._wnafMulAdd(1, n3, i2, 2 * o2, r4), f3 = 0; f3 < 2 * o2; f3++)
37400          n3[f3] = null, i2[f3] = null;
37401        return c3;
37402      }, v2(k2, y2.BasePoint), w2.prototype.point = function(e4, t4, r4) {
37403        return new k2(this, e4, t4, r4);
37404      }, w2.prototype.pointFromJSON = function(e4, t4) {
37405        return k2.fromJSON(this, e4, t4);
37406      }, k2.prototype._getBeta = function() {
37407        if (this.curve.endo) {
37408          var e4 = this.precomputed;
37409          if (e4 && e4.beta)
37410            return e4.beta;
37411          var t4 = this.curve.point(this.x.redMul(this.curve.endo.beta), this.y);
37412          if (e4) {
37413            var r4 = this.curve, n3 = function(e5) {
37414              return r4.point(e5.x.redMul(r4.endo.beta), e5.y);
37415            };
37416            e4.beta = t4, t4.precomputed = { beta: null, naf: e4.naf && { wnd: e4.naf.wnd, points: e4.naf.points.map(n3) }, doubles: e4.doubles && { step: e4.doubles.step, points: e4.doubles.points.map(n3) } };
37417          }
37418          return t4;
37419        }
37420      }, k2.prototype.toJSON = function() {
37421        return this.precomputed ? [this.x, this.y, this.precomputed && { doubles: this.precomputed.doubles && { step: this.precomputed.doubles.step, points: this.precomputed.doubles.points.slice(1) }, naf: this.precomputed.naf && { wnd: this.precomputed.naf.wnd, points: this.precomputed.naf.points.slice(1) } }] : [this.x, this.y];
37422      }, k2.fromJSON = function(e4, t4, r4) {
37423        "string" == typeof t4 && (t4 = JSON.parse(t4));
37424        var n3 = e4.point(t4[0], t4[1], r4);
37425        if (!t4[2])
37426          return n3;
37427        function i2(t5) {
37428          return e4.point(t5[0], t5[1], r4);
37429        }
37430        var o2 = t4[2];
37431        return n3.precomputed = { beta: null, doubles: o2.doubles && { step: o2.doubles.step, points: [n3].concat(o2.doubles.points.map(i2)) }, naf: o2.naf && { wnd: o2.naf.wnd, points: [n3].concat(o2.naf.points.map(i2)) } }, n3;
37432      }, k2.prototype.inspect = function() {
37433        return this.isInfinity() ? "<EC Point Infinity>" : "<EC Point x: " + this.x.fromRed().toString(16, 2) + " y: " + this.y.fromRed().toString(16, 2) + ">";
37434      }, k2.prototype.isInfinity = function() {
37435        return this.inf;
37436      }, k2.prototype.add = function(e4) {
37437        if (this.inf)
37438          return e4;
37439        if (e4.inf)
37440          return this;
37441        if (this.eq(e4))
37442          return this.dbl();
37443        if (this.neg().eq(e4))
37444          return this.curve.point(null, null);
37445        if (0 === this.x.cmp(e4.x))
37446          return this.curve.point(null, null);
37447        var t4 = this.y.redSub(e4.y);
37448        0 !== t4.cmpn(0) && (t4 = t4.redMul(this.x.redSub(e4.x).redInvm()));
37449        var r4 = t4.redSqr().redISub(this.x).redISub(e4.x), n3 = t4.redMul(this.x.redSub(r4)).redISub(this.y);
37450        return this.curve.point(r4, n3);
37451      }, k2.prototype.dbl = function() {
37452        if (this.inf)
37453          return this;
37454        var e4 = this.y.redAdd(this.y);
37455        if (0 === e4.cmpn(0))
37456          return this.curve.point(null, null);
37457        var t4 = this.curve.a, r4 = this.x.redSqr(), n3 = e4.redInvm(), i2 = r4.redAdd(r4).redIAdd(r4).redIAdd(t4).redMul(n3), o2 = i2.redSqr().redISub(this.x.redAdd(this.x)), a2 = i2.redMul(this.x.redSub(o2)).redISub(this.y);
37458        return this.curve.point(o2, a2);
37459      }, k2.prototype.getX = function() {
37460        return this.x.fromRed();
37461      }, k2.prototype.getY = function() {
37462        return this.y.fromRed();
37463      }, k2.prototype.mul = function(e4) {
37464        return e4 = new o.default(e4, 16), this.isInfinity() ? this : this._hasDoubles(e4) ? this.curve._fixedNafMul(this, e4) : this.curve.endo ? this.curve._endoWnafMulAdd([this], [e4]) : this.curve._wnafMul(this, e4);
37465      }, k2.prototype.mulAdd = function(e4, t4, r4) {
37466        var n3 = [this, t4], i2 = [e4, r4];
37467        return this.curve.endo ? this.curve._endoWnafMulAdd(n3, i2) : this.curve._wnafMulAdd(1, n3, i2, 2);
37468      }, k2.prototype.jmulAdd = function(e4, t4, r4) {
37469        var n3 = [this, t4], i2 = [e4, r4];
37470        return this.curve.endo ? this.curve._endoWnafMulAdd(n3, i2, true) : this.curve._wnafMulAdd(1, n3, i2, 2, true);
37471      }, k2.prototype.eq = function(e4) {
37472        return this === e4 || this.inf === e4.inf && (this.inf || 0 === this.x.cmp(e4.x) && 0 === this.y.cmp(e4.y));
37473      }, k2.prototype.neg = function(e4) {
37474        if (this.inf)
37475          return this;
37476        var t4 = this.curve.point(this.x, this.y.redNeg());
37477        if (e4 && this.precomputed) {
37478          var r4 = this.precomputed, n3 = function(e5) {
37479            return e5.neg();
37480          };
37481          t4.precomputed = { naf: r4.naf && { wnd: r4.naf.wnd, points: r4.naf.points.map(n3) }, doubles: r4.doubles && { step: r4.doubles.step, points: r4.doubles.points.map(n3) } };
37482        }
37483        return t4;
37484      }, k2.prototype.toJ = function() {
37485        return this.inf ? this.curve.jpoint(null, null, null) : this.curve.jpoint(this.x, this.y, this.curve.one);
37486      }, v2(_, y2.BasePoint), w2.prototype.jpoint = function(e4, t4, r4) {
37487        return new _(this, e4, t4, r4);
37488      }, _.prototype.toP = function() {
37489        if (this.isInfinity())
37490          return this.curve.point(null, null);
37491        var e4 = this.z.redInvm(), t4 = e4.redSqr(), r4 = this.x.redMul(t4), n3 = this.y.redMul(t4).redMul(e4);
37492        return this.curve.point(r4, n3);
37493      }, _.prototype.neg = function() {
37494        return this.curve.jpoint(this.x, this.y.redNeg(), this.z);
37495      }, _.prototype.add = function(e4) {
37496        if (this.isInfinity())
37497          return e4;
37498        if (e4.isInfinity())
37499          return this;
37500        var t4 = e4.z.redSqr(), r4 = this.z.redSqr(), n3 = this.x.redMul(t4), i2 = e4.x.redMul(r4), o2 = this.y.redMul(t4.redMul(e4.z)), a2 = e4.y.redMul(r4.redMul(this.z)), s2 = n3.redSub(i2), u3 = o2.redSub(a2);
37501        if (0 === s2.cmpn(0))
37502          return 0 !== u3.cmpn(0) ? this.curve.jpoint(null, null, null) : this.dbl();
37503        var c3 = s2.redSqr(), f3 = c3.redMul(s2), d3 = n3.redMul(c3), l3 = u3.redSqr().redIAdd(f3).redISub(d3).redISub(d3), h3 = u3.redMul(d3.redISub(l3)).redISub(o2.redMul(f3)), p3 = this.z.redMul(e4.z).redMul(s2);
37504        return this.curve.jpoint(l3, h3, p3);
37505      }, _.prototype.mixedAdd = function(e4) {
37506        if (this.isInfinity())
37507          return e4.toJ();
37508        if (e4.isInfinity())
37509          return this;
37510        var t4 = this.z.redSqr(), r4 = this.x, n3 = e4.x.redMul(t4), i2 = this.y, o2 = e4.y.redMul(t4).redMul(this.z), a2 = r4.redSub(n3), s2 = i2.redSub(o2);
37511        if (0 === a2.cmpn(0))
37512          return 0 !== s2.cmpn(0) ? this.curve.jpoint(null, null, null) : this.dbl();
37513        var u3 = a2.redSqr(), c3 = u3.redMul(a2), f3 = r4.redMul(u3), d3 = s2.redSqr().redIAdd(c3).redISub(f3).redISub(f3), l3 = s2.redMul(f3.redISub(d3)).redISub(i2.redMul(c3)), h3 = this.z.redMul(a2);
37514        return this.curve.jpoint(d3, l3, h3);
37515      }, _.prototype.dblp = function(e4) {
37516        if (0 === e4)
37517          return this;
37518        if (this.isInfinity())
37519          return this;
37520        if (!e4)
37521          return this.dbl();
37522        var t4;
37523        if (this.curve.zeroA || this.curve.threeA) {
37524          var r4 = this;
37525          for (t4 = 0; t4 < e4; t4++)
37526            r4 = r4.dbl();
37527          return r4;
37528        }
37529        var n3 = this.curve.a, i2 = this.curve.tinv, o2 = this.x, a2 = this.y, s2 = this.z, u3 = s2.redSqr().redSqr(), c3 = a2.redAdd(a2);
37530        for (t4 = 0; t4 < e4; t4++) {
37531          var f3 = o2.redSqr(), d3 = c3.redSqr(), l3 = d3.redSqr(), h3 = f3.redAdd(f3).redIAdd(f3).redIAdd(n3.redMul(u3)), p3 = o2.redMul(d3), b3 = h3.redSqr().redISub(p3.redAdd(p3)), y3 = p3.redISub(b3), m3 = h3.redMul(y3);
37532          m3 = m3.redIAdd(m3).redISub(l3);
37533          var v3 = c3.redMul(s2);
37534          t4 + 1 < e4 && (u3 = u3.redMul(l3)), o2 = b3, s2 = v3, c3 = m3;
37535        }
37536        return this.curve.jpoint(o2, c3.redMul(i2), s2);
37537      }, _.prototype.dbl = function() {
37538        return this.isInfinity() ? this : this.curve.zeroA ? this._zeroDbl() : this.curve.threeA ? this._threeDbl() : this._dbl();
37539      }, _.prototype._zeroDbl = function() {
37540        var e4, t4, r4;
37541        if (this.zOne) {
37542          var n3 = this.x.redSqr(), i2 = this.y.redSqr(), o2 = i2.redSqr(), a2 = this.x.redAdd(i2).redSqr().redISub(n3).redISub(o2);
37543          a2 = a2.redIAdd(a2);
37544          var s2 = n3.redAdd(n3).redIAdd(n3), u3 = s2.redSqr().redISub(a2).redISub(a2), c3 = o2.redIAdd(o2);
37545          c3 = (c3 = c3.redIAdd(c3)).redIAdd(c3), e4 = u3, t4 = s2.redMul(a2.redISub(u3)).redISub(c3), r4 = this.y.redAdd(this.y);
37546        } else {
37547          var f3 = this.x.redSqr(), d3 = this.y.redSqr(), l3 = d3.redSqr(), h3 = this.x.redAdd(d3).redSqr().redISub(f3).redISub(l3);
37548          h3 = h3.redIAdd(h3);
37549          var p3 = f3.redAdd(f3).redIAdd(f3), b3 = p3.redSqr(), y3 = l3.redIAdd(l3);
37550          y3 = (y3 = y3.redIAdd(y3)).redIAdd(y3), e4 = b3.redISub(h3).redISub(h3), t4 = p3.redMul(h3.redISub(e4)).redISub(y3), r4 = (r4 = this.y.redMul(this.z)).redIAdd(r4);
37551        }
37552        return this.curve.jpoint(e4, t4, r4);
37553      }, _.prototype._threeDbl = function() {
37554        var e4, t4, r4;
37555        if (this.zOne) {
37556          var n3 = this.x.redSqr(), i2 = this.y.redSqr(), o2 = i2.redSqr(), a2 = this.x.redAdd(i2).redSqr().redISub(n3).redISub(o2);
37557          a2 = a2.redIAdd(a2);
37558          var s2 = n3.redAdd(n3).redIAdd(n3).redIAdd(this.curve.a), u3 = s2.redSqr().redISub(a2).redISub(a2);
37559          e4 = u3;
37560          var c3 = o2.redIAdd(o2);
37561          c3 = (c3 = c3.redIAdd(c3)).redIAdd(c3), t4 = s2.redMul(a2.redISub(u3)).redISub(c3), r4 = this.y.redAdd(this.y);
37562        } else {
37563          var f3 = this.z.redSqr(), d3 = this.y.redSqr(), l3 = this.x.redMul(d3), h3 = this.x.redSub(f3).redMul(this.x.redAdd(f3));
37564          h3 = h3.redAdd(h3).redIAdd(h3);
37565          var p3 = l3.redIAdd(l3), b3 = (p3 = p3.redIAdd(p3)).redAdd(p3);
37566          e4 = h3.redSqr().redISub(b3), r4 = this.y.redAdd(this.z).redSqr().redISub(d3).redISub(f3);
37567          var y3 = d3.redSqr();
37568          y3 = (y3 = (y3 = y3.redIAdd(y3)).redIAdd(y3)).redIAdd(y3), t4 = h3.redMul(p3.redISub(e4)).redISub(y3);
37569        }
37570        return this.curve.jpoint(e4, t4, r4);
37571      }, _.prototype._dbl = function() {
37572        var e4 = this.curve.a, t4 = this.x, r4 = this.y, n3 = this.z, i2 = n3.redSqr().redSqr(), o2 = t4.redSqr(), a2 = r4.redSqr(), s2 = o2.redAdd(o2).redIAdd(o2).redIAdd(e4.redMul(i2)), u3 = t4.redAdd(t4), c3 = (u3 = u3.redIAdd(u3)).redMul(a2), f3 = s2.redSqr().redISub(c3.redAdd(c3)), d3 = c3.redISub(f3), l3 = a2.redSqr();
37573        l3 = (l3 = (l3 = l3.redIAdd(l3)).redIAdd(l3)).redIAdd(l3);
37574        var h3 = s2.redMul(d3).redISub(l3), p3 = r4.redAdd(r4).redMul(n3);
37575        return this.curve.jpoint(f3, h3, p3);
37576      }, _.prototype.trpl = function() {
37577        if (!this.curve.zeroA)
37578          return this.dbl().add(this);
37579        var e4 = this.x.redSqr(), t4 = this.y.redSqr(), r4 = this.z.redSqr(), n3 = t4.redSqr(), i2 = e4.redAdd(e4).redIAdd(e4), o2 = i2.redSqr(), a2 = this.x.redAdd(t4).redSqr().redISub(e4).redISub(n3), s2 = (a2 = (a2 = (a2 = a2.redIAdd(a2)).redAdd(a2).redIAdd(a2)).redISub(o2)).redSqr(), u3 = n3.redIAdd(n3);
37580        u3 = (u3 = (u3 = u3.redIAdd(u3)).redIAdd(u3)).redIAdd(u3);
37581        var c3 = i2.redIAdd(a2).redSqr().redISub(o2).redISub(s2).redISub(u3), f3 = t4.redMul(c3);
37582        f3 = (f3 = f3.redIAdd(f3)).redIAdd(f3);
37583        var d3 = this.x.redMul(s2).redISub(f3);
37584        d3 = (d3 = d3.redIAdd(d3)).redIAdd(d3);
37585        var l3 = this.y.redMul(c3.redMul(u3.redISub(c3)).redISub(a2.redMul(s2)));
37586        l3 = (l3 = (l3 = l3.redIAdd(l3)).redIAdd(l3)).redIAdd(l3);
37587        var h3 = this.z.redAdd(a2).redSqr().redISub(r4).redISub(s2);
37588        return this.curve.jpoint(d3, l3, h3);
37589      }, _.prototype.mul = function(e4, t4) {
37590        return e4 = new o.default(e4, t4), this.curve._wnafMul(this, e4);
37591      }, _.prototype.eq = function(e4) {
37592        if ("affine" === e4.type)
37593          return this.eq(e4.toJ());
37594        if (this === e4)
37595          return true;
37596        var t4 = this.z.redSqr(), r4 = e4.z.redSqr();
37597        if (0 !== this.x.redMul(r4).redISub(e4.x.redMul(t4)).cmpn(0))
37598          return false;
37599        var n3 = t4.redMul(this.z), i2 = r4.redMul(e4.z);
37600        return 0 === this.y.redMul(i2).redISub(e4.y.redMul(n3)).cmpn(0);
37601      }, _.prototype.eqXToP = function(e4) {
37602        var t4 = this.z.redSqr(), r4 = e4.toRed(this.curve.red).redMul(t4);
37603        if (0 === this.x.cmp(r4))
37604          return true;
37605        for (var n3 = e4.clone(), i2 = this.curve.redN.redMul(t4); ; ) {
37606          if (n3.iadd(this.curve.n), n3.cmp(this.curve.p) >= 0)
37607            return false;
37608          if (r4.redIAdd(i2), 0 === this.x.cmp(r4))
37609            return true;
37610        }
37611      }, _.prototype.inspect = function() {
37612        return this.isInfinity() ? "<EC JPoint Infinity>" : "<EC JPoint x: " + this.x.toString(16, 2) + " y: " + this.y.toString(16, 2) + " z: " + this.z.toString(16, 2) + ">";
37613      }, _.prototype.isInfinity = function() {
37614        return 0 === this.z.cmpn(0);
37615      };
37616      var S2 = s(function(e4, t4) {
37617        var r4 = t4;
37618        r4.base = y2, r4.short = A2, r4.mont = null, r4.edwards = null;
37619      }), x2 = s(function(e4, t4) {
37620        var r4, n3 = t4, i2 = d2.assert;
37621        function o2(e5) {
37622          "short" === e5.type ? this.curve = new S2.short(e5) : "edwards" === e5.type ? this.curve = new S2.edwards(e5) : this.curve = new S2.mont(e5), this.g = this.curve.g, this.n = this.curve.n, this.hash = e5.hash, i2(this.g.validate(), "Invalid curve"), i2(this.g.mul(this.n).isInfinity(), "Invalid curve, G*N != O");
37623        }
37624        function s2(e5, t5) {
37625          Object.defineProperty(n3, e5, { configurable: true, enumerable: true, get: function() {
37626            var r5 = new o2(t5);
37627            return Object.defineProperty(n3, e5, { configurable: true, enumerable: true, value: r5 }), r5;
37628          } });
37629        }
37630        n3.PresetCurve = o2, s2("p192", { type: "short", prime: "p192", p: "ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff", a: "ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc", b: "64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1", n: "ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831", hash: a.default.sha256, gRed: false, g: ["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012", "07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"] }), s2("p224", { type: "short", prime: "p224", p: "ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001", a: "ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe", b: "b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4", n: "ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d", hash: a.default.sha256, gRed: false, g: ["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21", "bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"] }), s2("p256", { type: "short", prime: null, p: "ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff", a: "ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc", b: "5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b", n: "ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551", hash: a.default.sha256, gRed: false, g: ["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296", "4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"] }), s2("p384", { type: "short", prime: null, p: "ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff", a: "ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc", b: "b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef", n: "ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973", hash: a.default.sha384, gRed: false, g: ["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7", "3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"] }), s2("p521", { type: "short", prime: null, p: "000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff", a: "000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc", b: "00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00", n: "000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409", hash: a.default.sha512, gRed: fal
37630se, g: ["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66", "00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"] }), s2("curve25519", { type: "mont", prime: "p25519", p: "7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed", a: "76d06", b: "1", n: "1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed", hash: a.default.sha256, gRed: false, g: ["9"] }), s2("ed25519", { type: "edwards", prime: "p25519", p: "7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed", a: "-1", c: "1", d: "52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3", n: "1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed", hash: a.default.sha256, gRed: false, g: ["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a", "6666666666666666666666666666666666666666666666666666666666666658"] });
37631        try {
37632          r4 = null.crash();
37633        } catch (e5) {
37634          r4 = void 0;
37635        }
37636        s2("secp256k1", { type: "short", prime: "k256", p: "ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f", a: "0", b: "7", n: "ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141", h: "1", hash: a.default.sha256, beta: "7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee", lambda: "5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72", basis: [{ a: "3086d221a7d46bcde86c90e49284eb15", b: "-e4437ed6010e88286f547fa90abfe4c3" }, { a: "114ca50f7a8e2f3f657c1108d9d44cfd8", b: "3086d221a7d46bcde86c90e49284eb15" }
37636], gRed: false, g: ["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798", "483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8", r4] });
37637      });
37638      function E2(e4) {
37639        if (!(this instanceof E2))
37640          return new E2(e4);
37641        this.hash = e4.hash, this.predResist = !!e4.predResist, this.outLen = this.hash.outSize, this.minEntropy = e4.minEntropy || this.hash.hmacStrength, this._reseed = null, this.reseedInterval = null, this.K = null, this.V = null;
37642        var t4 = f2.toArray(e4.entropy, e4.entropyEnc || "hex"), r4 = f2.toArray(e4.nonce, e4.nonceEnc || "hex"), n3 = f2.toArray(e4.pers, e4.persEnc || "hex");
37643        u2(t4.length >= this.minEntropy / 8, "Not enough entropy. Minimum is: " + this.minEntropy + " bits"), this._init(t4, r4, n3);
37644      }
37645      var P2 = E2;
37646      E2.prototype._init = function(e4, t4, r4) {
37647        var n3 = e4.concat(t4).concat(r4);
37648        this.K = new Array(this.outLen / 8), this.V = new Array(this.outLen / 8);
37649        for (var i2 = 0; i2 < this.V.length; i2++)
37650          this.K[i2] = 0, this.V[i2] = 1;
37651        this._update(n3), this._reseed = 1, this.reseedInterval = 281474976710656;
37652      }, E2.prototype._hmac = function() {
37653        return new a.default.hmac(this.hash, this.K);
37654      }, E2.prototype._update = function(e4) {
37655        var t4 = this._hmac().update(this.V).update([0]);
37656        e4 && (t4 = t4.update(e4)), this.K = t4.digest(), this.V = this._hmac().update(this.V).digest(), e4 && (this.K = this._hmac().update(this.V).update([1]).update(e4).digest(), this.V = this._hmac().update(this.V).digest());
37657      }, E2.prototype.reseed = function(e4, t4, r4, n3) {
37658        "string" != typeof t4 && (n3 = r4, r4 = t4, t4 = null), e4 = f2.toArray(e4, t4), r4 = f2.toArray(r4, n3), u2(e4.length >= this.minEntropy / 8, "Not enough entropy. Minimum is: " + this.minEntropy + " bits"), this._update(e4.concat(r4 || [])), this._reseed = 1;
37659      }, E2.prototype.generate = function(e4, t4, r4, n3) {
37660        if (this._reseed > this.reseedInterval)
37661          throw new Error("Reseed is required");
37662        "string" != typeof t4 && (n3 = r4, r4 = t4, t4 = null), r4 && (r4 = f2.toArray(r4, n3 || "hex"), this._update(r4));
37663        for (var i2 = []; i2.length < e4; )
37664          this.V = this._hmac().update(this.V).digest(), i2 = i2.concat(this.V);
37665        var o2 = i2.slice(0, e4);
37666        return this._update(r4), this._reseed++, f2.encode(o2, t4);
37667      };
37668      var O2 = d2.assert;
37669      function B2(e4, t4) {
37670        this.ec = e4, this.priv = null, this.pub = null, t4.priv && this._importPrivate(t4.priv, t4.privEnc), t4.pub && this._importPublic(t4.pub, t4.pubEnc);
37671      }
37672      var T2 = B2;
37673      B2.fromPublic = function(e4, t4, r4) {
37674        return t4 instanceof B2 ? t4 : new B2(e4, { pub: t4, pubEnc: r4 });
37675      }, B2.fromPrivate = function(e4, t4, r4) {
37676        return t4 instanceof B2 ? t4 : new B2(e4, { priv: t4, privEnc: r4 });
37677      }, B2.prototype.validate = function() {
37678        var e4 = this.getPublic();
37679        return e4.isInfinity() ? { result: false, reason: "Invalid public key" } : e4.validate() ? e4.mul(this.ec.curve.n).isInfinity() ? { result: true, reason: null } : { result: false, reason: "Public key * N != O" } : { result: false, reason: "Public key is not a point" };
37680      }, B2.prototype.getPublic = function(e4, t4) {
37681        return "string" == typeof e4 && (t4 = e4, e4 = null), this.pub || (this.pub = this.ec.g.mul(this.priv)), t4 ? this.pub.encode(t4, e4) : this.pub;
37682      }, B2.prototype.getPrivate = function(e4) {
37683        return "hex" === e4 ? this.priv.toString(16, 2) : this.priv;
37684      }, B2.prototype._importPrivate = function(e4, t4) {
37685        this.priv = new o.default(e4, t4 || 16), this.priv = this.priv.umod(this.ec.curve.n);
37686      }, B2.prototype._importPublic = function(e4, t4) {
37687        if (e4.x || e4.y)
37688          return "mont" === this.ec.curve.type ? O2(e4.x, "Need x coordinate") : "short" !== this.ec.curve.type && "edwards" !== this.ec.curve.type || O2(e4.x && e4.y, "Need both x and y coordinate"), void (this.pub = this.ec.curve.point(e4.x, e4.y));
37689        this.pub = this.ec.curve.decodePoint(e4, t4);
37690      }, B2.prototype.derive = function(e4) {
37691        return e4.validate() || O2(e4.validate(), "public point not validated"), e4.mul(this.priv).getX();
37692      }, B2.prototype.sign = function(e4, t4, r4) {
37693        return this.ec.sign(e4, this, t4, r4);
37694      }, B2.prototype.verify = function(e4, t4) {
37695        return this.ec.verify(e4, t4, this);
37696      }, B2.prototype.inspect = function() {
37697        return "<Key priv: " + (this.priv && this.priv.toString(16, 2)) + " pub: " + (this.pub && this.pub.inspect()) + " >";
37698      };
37699      var C2 = d2.assert;
37700      function I2(e4, t4) {
37701        if (e4 instanceof I2)
37702          return e4;
37703        this._importDER(e4, t4) || (C2(e4.r && e4.s, "Signature without r or s"), this.r = new o.default(e4.r, 16), this.s = new o.default(e4.s, 16), void 0 === e4.recoveryParam ? this.recoveryParam = null : this.recoveryParam = e4.recoveryParam);
37704      }
37705      var M2 = I2;
37706      function U2() {
37707        this.place = 0;
37708      }
37709      function R2(e4, t4) {
37710        var r4 = e4[t4.place++];
37711        if (!(128 & r4))
37712          return r4;
37713        var n3 = 15 & r4;
37714        if (0 === n3 || n3 > 4)
37715          return false;
37716        for (var i2 = 0, o2 = 0, a2 = t4.place; o2 < n3; o2++, a2++)
37717          i2 <<= 8, i2 |= e4[a2], i2 >>>= 0;
37718        return !(i2 <= 127) && (t4.place = a2, i2);
37719      }
37720      function j(e4) {
37721        for (var t4 = 0, r4 = e4.length - 1; !e4[t4] && !(128 & e4[t4 + 1]) && t4 < r4; )
37722          t4++;
37723        return 0 === t4 ? e4 : e4.slice(t4);
37724      }
37725      function N2(e4, t4) {
37726        if (t4 < 128)
37727          e4.push(t4);
37728        else {
37729          var r4 = 1 + (Math.log(t4) / Math.LN2 >>> 3);
37730          for (e4.push(128 | r4); --r4; )
37731            e4.push(t4 >>> (r4 << 3) & 255);
37732          e4.push(t4);
37733        }
37734      }
37735      I2.prototype._importDER = function(e4, t4) {
37736        e4 = d2.toArray(e4, t4);
37737        var r4 = new U2();
37738        if (48 !== e4[r4.place++])
37739          return false;
37740        var n3 = R2(e4, r4);
37741        if (false === n3)
37742          return false;
37743        if (n3 + r4.place !== e4.length)
37744          return false;
37745        if (2 !== e4[r4.place++])
37746          return false;
37747        var i2 = R2(e4, r4);
37748        if (false === i2)
37749          return false;
37750        var a2 = e4.slice(r4.place, i2 + r4.place);
37751        if (r4.place += i2, 2 !== e4[r4.place++])
37752          return false;
37753        var s2 = R2(e4, r4);
37754        if (false === s2)
37755          return false;
37756        if (e4.length !== s2 + r4.place)
37757          return false;
37758        var u3 = e4.slice(r4.place, s2 + r4.place);
37759        if (0 === a2[0]) {
37760          if (!(128 & a2[1]))
37761            return false;
37762          a2 = a2.slice(1);
37763        }
37764        if (0 === u3[0]) {
37765          if (!(128 & u3[1]))
37766            return false;
37767          u3 = u3.slice(1);
37768        }
37769        return this.r = new o.default(a2), this.s = new o.default(u3), this.recoveryParam = null, true;
37770      }, I2.prototype.toDER = function(e4) {
37771        var t4 = this.r.toArray(), r4 = this.s.toArray();
37772        for (128 & t4[0] && (t4 = [0].concat(t4)), 128 & r4[0] && (r4 = [0].concat(r4)), t4 = j(t4), r4 = j(r4); !(r4[0] || 128 & r4[1]); )
37773          r4 = r4.slice(1);
37774        var n3 = [2];
37775        N2(n3, t4.length), (n3 = n3.concat(t4)).push(2), N2(n3, r4.length);
37776        var i2 = n3.concat(r4), o2 = [48];
37777        return N2(o2, i2.length), o2 = o2.concat(i2), d2.encode(o2, e4);
37778      };
37779      var F2 = function() {
37780        throw new Error("unsupported");
37781      }, L2 = d2.assert;
37782      function D2(e4) {
37783        if (!(this instanceof D2))
37784          return new D2(e4);
37785        "string" == typeof e4 && (L2(Object.prototype.hasOwnProperty.call(x2, e4), "Unknown curve " + e4), e4 = x2[e4]), e4 instanceof x2.PresetCurve && (e4 = { curve: e4 }), this.curve = e4.curve.curve, this.n = this.curve.n, this.nh = this.n.ushrn(1), this.g = this.curve.g, this.g = e4.curve.g, this.g.precompute(e4.curve.n.bitLength() + 1), this.hash = e4.hash || e4.curve.hash;
37786      }
37787      var H2 = D2;
37788      D2.prototype.keyPair = function(e4) {
37789        return new T2(this, e4);
37790      }, D2.prototype.keyFromPrivate = function(e4, t4) {
37791        return T2.fromPrivate(this, e4, t4);
37792      }, D2.prototype.keyFromPublic = function(e4, t4) {
37793        return T2.fromPublic(this, e4, t4);
37794      }, D2.prototype.genKeyPair = function(e4) {
37795        e4 || (e4 = {});
37796        for (var t4 = new P2({ hash: this.hash, pers: e4.pers, persEnc: e4.persEnc || "utf8", entropy: e4.entropy || F2(this.hash.hmacStrength), entropyEnc: e4.entropy && e4.entropyEnc || "utf8", nonce: this.n.toArray() }), r4 = this.n.byteLength(), n3 = this.n.sub(new o.default(2)); ; ) {
37797          var i2 = new o.default(t4.generate(r4));
37798          if (!(i2.cmp(n3) > 0))
37799            return i2.iaddn(1), this.keyFromPrivate(i2);
37800        }
37801      }, D2.prototype._truncateToN = function(e4, t4) {
37802        var r4 = 8 * e4.byteLength() - this.n.bitLength();
37803        return r4 > 0 && (e4 = e4.ushrn(r4)), !t4 && e4.cmp(this.n) >= 0 ? e4.sub(this.n) : e4;
37804      }, D2.prototype.sign = function(e4, t4, r4, n3) {
37805        "object" === (0, i.default)(r4) && (n3 = r4, r4 = null), n3 || (n3 = {}), t4 = this.keyFromPrivate(t4, r4), e4 = this._truncateToN(new o.default(e4, 16));
37806        for (var a2 = this.n.byteLength(), s2 = t4.getPrivate().toArray("be", a2), u3 = e4.toArray("be", a2), c3 = new P2({ hash: this.hash, entropy: s2, nonce: u3, pers: n3.pers, persEnc: n3.persEnc || "utf8" }), f3 = this.n.sub(new o.default(1)), d3 = 0; ; d3++) {
37807          var l3 = n3.k ? n3.k(d3) : new o.default(c3.generate(this.n.byteLength()));
37808          if (!((l3 = this._truncateToN(l3, true)).cmpn(1) <= 0 || l3.cmp(f3) >= 0)) {
37809            var h3 = this.g.mul(l3);
37810            if (!h3.isInfinity()) {
37811              var p3 = h3.getX(), b3 = p3.umod(this.n);
37812              if (0 !== b3.cmpn(0)) {
37813                var y3 = l3.invm(this.n).mul(b3.mul(t4.getPrivate()).iadd(e4));
37814                if (0 !== (y3 = y3.umod(this.n)).cmpn(0)) {
37815                  var m3 = (h3.getY().isOdd() ? 1 : 0) | (0 !== p3.cmp(b3) ? 2 : 0);
37816                  return n3.canonical && y3.cmp(this.nh) > 0 && (y3 = this.n.sub(y3), m3 ^= 1), new M2({ r: b3, s: y3, recoveryParam: m3 });
37817                }
37818              }
37819            }
37820          }
37821        }
37822      }, D2.prototype.verify = function(e4, t4, r4, n3) {
37823        e4 = this._truncateToN(new o.default(e4, 16)), r4 = this.keyFromPublic(r4, n3);
37824        var i2 = (t4 = new M2(t4, "hex")).r, a2 = t4.s;
37825        if (i2.cmpn(1) < 0 || i2.cmp(this.n) >= 0)
37826          return false;
37827        if (a2.cmpn(1) < 0 || a2.cmp(this.n) >= 0)
37828          return false;
37829        var s2, u3 = a2.invm(this.n), c3 = u3.mul(e4).umod(this.n), f3 = u3.mul(i2).umod(this.n);
37830        return this.curve._maxwellTrick ? !(s2 = this.g.jmulAdd(c3, r4.getPublic(), f3)).isInfinity() && s2.eqXToP(i2) : !(s2 = this.g.mulAdd(c3, r4.getPublic(), f3)).isInfinity() && 0 === s2.getX().umod(this.n).cmp(i2);
37831      }, D2.prototype.recoverPubKey = function(e4, t4, r4, n3) {
37832        L2((3 & r4) === r4, "The recovery param is more than two bits"), t4 = new M2(t4, n3);
37833        var i2 = this.n, a2 = new o.default(e4), s2 = t4.r, u3 = t4.s, c3 = 1 & r4, f3 = r4 >> 1;
37834        if (s2.cmp(this.curve.p.umod(this.curve.n)) >= 0 && f3)
37835          throw new Error("Unable to find sencond key candinate");
37836        s2 = f3 ? this.curve.pointFromX(s2.add(this.curve.n), c3) : this.curve.pointFromX(s2, c3);
37837        var d3 = t4.r.invm(i2), l3 = i2.sub(a2).mul(d3).umod(i2), h3 = u3.mul(d3).umod(i2);
37838        return this.g.mulAdd(l3, s2, h3);
37839      }, D2.prototype.getKeyRecoveryParam = function(e4, t4, r4, n3) {
37840        if (null !== (t4 = new M2(t4, n3)).recoveryParam)
37841          return t4.recoveryParam;
37842        for (var i2 = 0; i2 < 4; i2++) {
37843          var o2;
37844          try {
37845            o2 = this.recoverPubKey(e4, t4, i2);
37846          } catch (e5) {
37847            continue;
37848          }
37849          if (o2.eq(r4))
37850            return i2;
37851        }
37852        throw new Error("Unable to find valid recovery factor");
37853      };
37854      var q2 = s(function(e4, t4) {
37855        var r4 = t4;
37856        r4.version = "6.5.4", r4.utils = d2, r4.rand = function() {
37857          throw new Error("unsupported");
37858        }, r4.curve = S2, r4.curves = x2, r4.ec = H2, r4.eddsa = null;
37859      }), z2 = q2.ec;
37860      t3.EC = z2;
37861    }, 7612: (e3, t3, r3) => {
37862      var n2 = r3(8847);
37863      Object.defineProperty(t3, "__esModule", { value: true }), t3.SigningKey = void 0, t3.computePublicKey = b2, t3.recoverPublicKey = function(e4, t4) {
37864        var r4 = (0, s.splitSignature)(t4), n3 = { r: (0, s.arrayify)(r4.r), s: (0, s.arrayify)(r4.s) };
37865        return "0x" + h2().recoverPubKey((0, s.arrayify)(e4), n3, r4.recoveryParam).encode("hex", false);
37866      };
37867      var i = n2(r3(9721)), o = n2(r3(8985)), a = r3(6918), s = r3(908), u2 = r3(3694), c2 = r3(4327), f2 = r3(8100), d2 = new c2.Logger(f2.version), l2 = null;
37868      function h2() {
37869        return l2 || (l2 = new a.EC("secp256k1")), l2;
37870      }
37871      var p2 = function() {
37872        function e4(t4) {
37873          (0, i.default)(this, e4), (0, u2.defineReadOnly)(this, "curve", "secp256k1"), (0, u2.defineReadOnly)(this, "privateKey", (0, s.hexlify)(t4)), 32 !== (0, s.hexDataLength)(this.privateKey) && d2.throwArgumentError("invalid private key", "privateKey", "[[ REDACTED ]]");
37874          var r4 = h2().keyFromPrivate((0, s.arrayify)(this.privateKey));
37875          (0, u2.defineReadOnly)(this, "publicKey", "0x" + r4.getPublic(false, "hex")), (0, u2.defineReadOnly)(this, "compressedPublicKey", "0x" + r4.getPublic(true, "hex")), (0, u2.defineReadOnly)(this, "_isSigningKey", true);
37876        }
37877        return (0, o.default)(e4, [{ key: "_addPoint", value: function(e5) {
37878          var t4 = h2().keyFromPublic((0, s.arrayify)(this.publicKey)), r4 = h2().keyFromPublic((0, s.arrayify)(e5));
37879          return "0x" + t4.pub.add(r4.pub).encodeCompressed("hex");
37880        } }, { key: "signDigest", value: function(e5) {
37881          var t4 = h2().keyFromPrivate((0, s.arrayify)(this.privateKey)), r4 = (0, s.arrayify)(e5);
37882          32 !== r4.length && d2.throwArgumentError("bad digest length", "digest", e5);
37883          var n3 = t4.sign(r4, { canonical: true });
37884          return (0, s.splitSignature)({ recoveryParam: n3.recoveryParam, r: (0, s.hexZeroPad)("0x" + n3.r.toString(16), 32), s: (0, s.hexZeroPad)("0x" + n3.s.toString(16), 32) });
37885        } }, { key: "computeSharedSecret", value: function(e5) {
37886          var t4 = h2().keyFromPrivate((0, s.arrayify)(this.privateKey)), r4 = h2().keyFromPublic((0, s.arrayify)(b2(e5)));
37887          return (0, s.hexZeroPad)("0x" + t4.derive(r4.getPublic()).toString(16), 32);
37888        } }], [{ key: "isSigningKey", value: function(e5) {
37889          return !(!e5 || !e5._isSigningKey);
37890        } }]), e4;
37891      }();
37892      function b2(e4, t4) {
37893        var r4 = (0, s.arrayify)(e4);
37894        if (32 === r4.length) {
37895          var n3 = new p2(r4);
37896          return t4 ? "0x" + h2().keyFromPrivate(r4).getPublic(true, "hex") : n3.publicKey;
37897        }
37898        return 33 === r4.length ? t4 ? (0, s.hexlify)(r4) : "0x" + h2().keyFromPublic(r4).getPublic(false, "hex") : 65 === r4.length ? t4 ? "0x" + h2().keyFromPublic(r4).getPublic(true, "hex") : (0, s.hexlify)(r4) : d2.throwArgumentError("invalid public or private key", "key", "[REDACTED]");
37899      }
37900      t3.SigningKey = p2;
37901    }, 6518: (e3, t3) => {
37902      Object.defineProperty(t3, "__esModule", { value: true }), t3.version = void 0, t3.version = "strings/5.7.0";
37903    }, 5856: (e3, t3, r3) => {
37904      Object.defineProperty(t3, "__esModule", { value: true }), t3.formatBytes32String = function(e4) {
37905        var t4 = (0, o.toUtf8Bytes)(e4);
37906        if (t4.length > 31)
37907          throw new Error("bytes32 string must be less than 32 bytes");
37908        return (0, i.hexlify)((0, i.concat)([t4, n2.HashZero]).slice(0, 32));
37909      }, t3.parseBytes32String = function(e4) {
37910        var t4 = (0, i.arrayify)(e4);
37911        if (32 !== t4.length)
37912          throw new Error("invalid bytes32 - not 32 bytes long");
37913        if (0 !== t4[31])
37914          throw new Error("invalid bytes32 string - no null terminator");
37915        for (var r4 = 31; 0 === t4[r4 - 1]; )
37916          r4--;
37917        return (0, o.toUtf8String)(t4.slice(0, r4));
37918      };
37919      var n2 = r3(5465), i = r3(908), o = r3(4997);
37920    }, 8645: (e3, t3, r3) => {
37921      Object.defineProperty(t3, "__esModule", { value: true }), t3._nameprepTableA1 = p2, t3._nameprepTableB2 = b2, t3._nameprepTableC = y2, t3.nameprep = function(e4) {
37922        if (e4.match(/^[a-z0-9-]*$/i) && e4.length <= 59)
37923          return e4.toLowerCase();
37924        var t4, r4 = (0, n2.toUtf8CodePoints)(e4);
37925        t4 = r4.map(function(e5) {
37926          return u2.indexOf(e5) >= 0 || e5 >= 65024 && e5 <= 65039 ? [] : b2(e5) || [e5];
37927        }), r4 = t4.reduce(function(e5, t5) {
37928          return t5.forEach(function(t6) {
37929            e5.push(t6);
37930          }), e5;
37931        }, []), (r4 = (0, n2.toUtf8CodePoints)((0, n2._toUtf8String)(r4), n2.UnicodeNormalizationForm.NFKC)).forEach(function(e5) {
37932          if (y2(e5))
37933            throw new Error("STRINGPREP_CONTAINS_PROHIBITED");
37934        }), r4.forEach(function(e5) {
37935          if (p2(e5))
37936            throw new Error("STRINGPREP_CONTAINS_UNASSIGNED");
37937        });
37938        var i2 = (0, n2._toUtf8String)(r4);
37939        if ("-" === i2.substring(0, 1) || "--" === i2.substring(2, 4) || "-" === i2.substring(i2.length - 1))
37940          throw new Error("invalid hyphen");
37941        return i2;
37942      };
37943      var n2 = r3(4997);
37944      function i(e4, t4) {
37945        t4 || (t4 = function(e5) {
37946          return [parseInt(e5, 16)];
37947        });
37948        var r4 = 0, n3 = {};
37949        return e4.split(",").forEach(function(e5) {
37950          var i2 = e5.split(":");
37951          r4 += parseInt(i2[0], 16), n3[r4] = t4(i2[1]);
37952        }), n3;
37953      }
37954      function o(e4) {
37955        var t4 = 0;
37956        return e4.split(",").map(function(e5) {
37957          var r4 = e5.split("-");
37958          return 1 === r4.length ? r4[1] = "0" : "" === r4[1] && (r4[1] = "1"), { l: t4 + parseInt(r4[0], 16), h: t4 = parseInt(r4[1], 16) };
37959        });
37960      }
37961      function a(e4, t4) {
37962        for (var r4 = 0, n3 = 0; n3 < t4.length; n3++) {
37963          var i2 = t4[n3];
37964          if (e4 >= (r4 += i2.l) && e4 <= r4 + i2.h && (e4 - r4) % (i2.d || 1) == 0) {
37965            if (i2.e && -1 !== i2.e.indexOf(e4 - r4))
37966              continue;
37967            return i2;
37968          }
37969        }
37970        return null;
37971      }
37972      var s = o("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,
37972115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"), u2 = "ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map(function(e4) {
37973        return parseInt(e4, 16);
37974      }), c2 = [{ h: 25, s: 32, l: 65 }, { h: 30, s: 32, e: [23], l: 127 }, { h: 54, s: 1, e: [48], l: 64, d: 2 }, { h: 14, s: 1, l: 57, d: 2 }, { h: 44, s: 1, l: 17, d: 2 }, { h: 10, s: 1, e: [2, 6, 8], l: 61, d: 2 }, { h: 16, s: 1, l: 68, d: 2 }, { h: 84, s: 1, e: [18, 24, 66], l: 19, d: 2 }, { h: 26, s: 32, e: [17], l: 435 }, { h: 22, s: 1, l: 71, d: 2 }, { h: 15, s: 80, l: 40 }, { h: 31, s: 32, l: 16 }, { h: 32, s: 1, l: 80, d: 2 }, { h: 52, s: 1, l: 42, d: 2 }, { h: 12, s: 1, l: 55, d: 2 }, { h: 40, s: 1, e: [38], l: 15, d: 2 }, { h: 14, s: 1, l: 48, d: 2 }, { h: 37, s: 48, l: 49 }, { h: 148, s: 1, l: 6351, d: 2 }, { h: 88, s: 1, l: 160, d: 2 }, { h: 15, s: 16, l: 704 }, { h: 25, s: 26, l: 854 }, { h: 25, s: 32, l: 55915 }, { h: 37, s: 40, l: 1247 }, { h: 25, s: -119711, l: 53248 }, { h: 25, s: -119763, l: 52 }, { h: 25, s: -119815, l: 52 }, { h: 25, s: -119867, e: [1, 4, 5, 7, 8, 11, 12, 17], l: 52 }, { h: 25, s: -119919, l: 52 }, { h: 24, s: -119971, e: [2, 7, 8, 17], l: 52 }, { h: 24, s: -120023, e: [2, 7, 13, 15, 16, 17], l: 52 }, { h: 25, s: -120075, l: 52 }, { h: 25, s: -120127, l: 52 }, { h: 25, s: -120179, l: 52 }, { h: 25, s: -120231, l: 52 }, { h: 25, s: -120283, l: 52 }, { h: 25, s: -120335, l: 52 }, { h: 24, s: -119543, e: [17], l: 56 }, { h: 24, s: -119601, e: [17], l: 58 }, { h: 24, s: -119659, e: [17], l: 58 }, { h: 24, s: -119717, e: [17], l: 58 }, { h: 24, s: -119775, e: [17], l: 58 }], f2 = i("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"), d2 = i("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"), l2 = i("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D", function(e4) {
37975        if (e4.length % 4 != 0)
37976          throw new Error("bad data");
37977        for (var t4 = [], r4 = 0; r4 < e4.length; r4 += 4)
37978          t4.push(parseInt(e4.substring(r4, r4 + 4), 16));
37979        return t4;
37980      }), h2 = o("80-20,2a0-,39c,32,f71,18e,7f2-f,19-7,30-4,7-5,f81-b,5,a800-20ff,4d1-1f,110,fa-6,d174-7,2e84-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,2,1f-5f,ff7f-20001");
37981      function p2(e4) {
37982        return !!a(e4, s);
37983      }
37984      function b2(e4) {
37985        var t4 = a(e4, c2);
37986        if (t4)
37987          return [e4 + t4.s];
37988        var r4 = f2[e4];
37989        if (r4)
37990          return r4;
37991        var n3 = d2[e4];
37992        return n3 ? [e4 + n3[0]] : l2[e4] || null;
37993      }
37994      function y2(e4) {
37995        return !!a(e4, h2);
37996      }
37997    }, 8627: (e3, t3, r3) => {
37998      Object.defineProperty(t3, "__esModule", { value: true }), Object.defineProperty(t3, "UnicodeNormalizationForm", { enumerable: true, get: function() {
37999        return o.UnicodeNormalizationForm;
38000      } }), Object.defineProperty(t3, "Utf8ErrorFuncs", { enumerable: true, get: function() {
38001        return o.Utf8ErrorFuncs;
38002      } }), Object.defineProperty(t3, "Utf8ErrorReason", { enumerable: true, get: function() {
38003        return o.Utf8ErrorReason;
38004      } }), Object.defineProperty(t3, "_toEscapedUtf8String", { enumerable: true, get: function() {
38005        return o._toEscapedUtf8String;
38006      } }), Object.defineProperty(t3, "formatBytes32String", { enumerable: true, get: function() {
38007        return n2.formatBytes32String;
38008      } }), Object.defineProperty(t3, "nameprep", { enumerable: true, get: function() {
38009        return i.nameprep;
38010      } }), Object.defineProperty(t3, "parseBytes32String", { enumerable: true, get: function() {
38011        return n2.parseBytes32String;
38012      } }), Object.defineProperty(t3, "toUtf8Bytes", { enumerable: true, get: function() {
38013        return o.toUtf8Bytes;
38014      } }), Object.defineProperty(t3, "toUtf8CodePoints", { enumerable: true, get: function() {
38015        return o.toUtf8CodePoints;
38016      } }), Object.defineProperty(t3, "toUtf8String", { enumerable: true, get: function() {
38017        return o.toUtf8String;
38018      } });
38019      var n2 = r3(5856), i = r3(8645), o = r3(4997);
38020    }, 4997: (e3, t3, r3) => {
38021      Object.defineProperty(t3, "__esModule", { value: true }), t3.Utf8ErrorReason = t3.Utf8ErrorFuncs = t3.UnicodeNormalizationForm = void 0, t3._toEscapedUtf8String = function(e4, t4) {
38022        return '"' + d2(e4, t4).map(function(e5) {
38023          if (e5 < 256) {
38024            switch (e5) {
38025              case 8:
38026                return "\\b";
38027              case 9:
38028                return "\\t";
38029              case 10:
38030                return "\\n";
38031              case 13:
38032                return "\\r";
38033              case 34:
38034                return '\\"';
38035              case 92:
38036                return "\\\\";
38037            }
38038            if (e5 >= 32 && e5 < 127)
38039              return String.fromCharCode(e5);
38040          }
38041          return e5 <= 65535 ? h2(e5) : h2(55296 + ((e5 -= 65536) >> 10 & 1023)) + h2(56320 + (1023 & e5));
38042        }).join("") + '"';
38043      }, t3._toUtf8String = p2, t3.toUtf8Bytes = l2, t3.toUtf8CodePoints = function(e4) {
38044        var t4 = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : n2.current;
38045        return d2(l2(e4, t4));
38046      }, t3.toUtf8String = function(e4, t4) {
38047        return p2(d2(e4, t4));
38048      };
38049      var n2, i, o = r3(908), a = r3(4327), s = r3(6518), u2 = new a.Logger(s.version);
38050      function c2(e4, t4, r4, n3, o2) {
38051        if (e4 === i.BAD_PREFIX || e4 === i.UNEXPECTED_CONTINUE) {
38052          for (var a2 = 0, s2 = t4 + 1; s2 < r4.length && r4[s2] >> 6 == 2; s2++)
38053            a2++;
38054          return a2;
38055        }
38056        return e4 === i.OVERRUN ? r4.length - t4 - 1 : 0;
38057      }
38058      t3.UnicodeNormalizationForm = n2, function(e4) {
38059        e4.current = "", e4.NFC = "NFC", e4.NFD = "NFD", e4.NFKC = "NFKC", e4.NFKD = "NFKD";
38060      }(n2 || (t3.UnicodeNormalizationForm = n2 = {})), t3.Utf8ErrorReason = i, function(e4) {
38061        e4.UNEXPECTED_CONTINUE = "unexpected continuation byte", e4.BAD_PREFIX = "bad codepoint prefix", e4.OVERRUN = "string overrun", e4.MISSING_CONTINUE = "missing continuation byte", e4.OUT_OF_RANGE = "out of UTF-8 range", e4.UTF16_SURROGATE = "UTF-16 surrogate", e4.OVERLONG = "overlong representation";
38062      }(i || (t3.Utf8ErrorReason = i = {}));
38063      var f2 = Object.freeze({ error: function(e4, t4, r4, n3, i2) {
38064        return u2.throwArgumentError("invalid codepoint at offset ".concat(t4, ";
38064 ").concat(e4), "bytes", r4);
38065      }, ignore: c2, replace: function(e4, t4, r4, n3, o2) {
38066        return e4 === i.OVERLONG ? (n3.push(o2), 0) : (n3.push(65533), c2(e4, t4, r4));
38067      } });
38068      function d2(e4, t4) {
38069        null == t4 && (t4 = f2.error), e4 = (0, o.arrayify)(e4);
38070        for (var r4 = [], n3 = 0; n3 < e4.length; ) {
38071          var a2 = e4[n3++];
38072          if (a2 >> 7 != 0) {
38073            var s2 = null, u3 = null;
38074            if (192 == (224 & a2))
38075              s2 = 1, u3 = 127;
38076            else if (224 == (240 & a2))
38077              s2 = 2, u3 = 2047;
38078            else {
38079              if (240 != (248 & a2)) {
38080                n3 += t4(128 == (192 & a2) ? i.UNEXPECTED_CONTINUE : i.BAD_PREFIX, n3 - 1, e4, r4);
38081                continue;
38082              }
38083              s2 = 3, u3 = 65535;
38084            }
38085            if (n3 - 1 + s2 >= e4.length)
38086              n3 += t4(i.OVERRUN, n3 - 1, e4, r4);
38087            else {
38088              for (var c3 = a2 & (1 << 8 - s2 - 1) - 1, d3 = 0; d3 < s2; d3++) {
38089                var l3 = e4[n3];
38090                if (128 != (192 & l3)) {
38091                  n3 += t4(i.MISSING_CONTINUE, n3, e4, r4), c3 = null;
38092                  break;
38093                }
38094                c3 = c3 << 6 | 63 & l3, n3++;
38095              }
38096              null !== c3 && (c3 > 1114111 ? n3 += t4(i.OUT_OF_RANGE, n3 - 1 - s2, e4, r4, c3) : c3 >= 55296 && c3 <= 57343 ? n3 += t4(i.UTF16_SURROGATE, n3 - 1 - s2, e4, r4, c3) : c3 <= u3 ? n3 += t4(i.OVERLONG, n3 - 1 - s2, e4, r4, c3) : r4.push(c3));
38097            }
38098          } else
38099            r4.push(a2);
38100        }
38101        return r4;
38102      }
38103      function l2(e4) {
38104        var t4 = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : n2.current;
38105        t4 != n2.current && (u2.checkNormalize(), e4 = e4.normalize(t4));
38106        for (var r4 = [], i2 = 0; i2 < e4.length; i2++) {
38107          var a2 = e4.charCodeAt(i2);
38108          if (a2 < 128)
38109            r4.push(a2);
38110          else if (a2 < 2048)
38111            r4.push(a2 >> 6 | 192), r4.push(63 & a2 | 128);
38112          else if (55296 == (64512 & a2)) {
38113            i2++;
38114            var s2 = e4.charCodeAt(i2);
38115            if (i2 >= e4.length || 56320 != (64512 & s2))
38116              throw new Error("invalid utf-8 string");
38117            var c3 = 65536 + ((1023 & a2) << 10) + (1023 & s2);
38118            r4.push(c3 >> 18 | 240), r4.push(c3 >> 12 & 63 | 128), r4.push(c3 >> 6 & 63 | 128), r4.push(63 & c3 | 128);
38119          } else
38120            r4.push(a2 >> 12 | 224), r4.push(a2 >> 6 & 63 | 128), r4.push(63 & a2 | 128);
38121        }
38122        return (0, o.arrayify)(r4);
38123      }
38124      function h2(e4) {
38125        var t4 = "0000" + e4.toString(16);
38126        return "\\u" + t4.substring(t4.length - 4);
38127      }
38128      function p2(e4) {
38129        return e4.map(function(e5) {
38130          return e5 <= 65535 ? String.fromCharCode(e5) : (e5 -= 65536, String.fromCharCode(55296 + (e5 >> 10 & 1023), 56320 + (1023 & e5)));
38131        }).join("");
38132      }
38133      t3.Utf8ErrorFuncs = f2;
38134    }, 6783: (e3, t3) => {
38135      Object.defineProperty(t3, "__esModule", { value: true }), t3.version = void 0, t3.version = "transactions/5.7.0";
38136    }, 1936: (e3, t3, r3) => {
38137      var n2 = r3(3355);
38138      Object.defineProperty(t3, "__esModule", { value: true }), t3.TransactionTypes = void 0, t3.accessListify = x2, t3.computeAddress = A2, t3.parse = function(e4) {
38139        var t4 = (0, a.arrayify)(e4);
38140        if (t4[0] > 127)
38141          return function(e5) {
38142            var t5 = f2.decode(e5);
38143            9 !== t5.length && 6 !== t5.length && y2.throwArgumentError("invalid raw transaction", "rawTransaction", e5);
38144            var r4 = { nonce: v2(t5[0]).toNumber(), gasPrice: v2(t5[1]), gasLimit: v2(t5[2]), to: m2(t5[3]), value: v2(t5[4]), data: t5[5], chainId: 0 };
38145            if (6 === t5.length)
38146              return r4;
38147            try {
38148              r4.v = o.BigNumber.from(t5[6]).toNumber();
38149            } catch (e6) {
38150              return r4;
38151            }
38152            if (r4.r = (0, a.hexZeroPad)(t5[7], 32), r4.s = (0, a.hexZeroPad)(t5[8], 32), o.BigNumber.from(r4.r).isZero() && o.BigNumber.from(r4.s).isZero())
38153              r4.chainId = r4.v, r4.v = 0;
38154            else {
38155              r4.chainId = Math.floor((r4.v - 35) / 2), r4.chainId < 0 && (r4.chainId = 0);
38156              var n3 = r4.v - 27, i2 = t5.slice(0, 6);
38157              0 !== r4.chainId && (i2.push((0, a.hexlify)(r4.chainId)), i2.push("0x"), i2.push("0x"), n3 -= 2 * r4.chainId + 8);
38158              var s2 = (0, u2.keccak256)(f2.encode(i2));
38159              try {
38160                r4.from = k2(s2, { r: (0, a.hexlify)(r4.r), s: (0, a.hexlify)(r4.s), recoveryParam: n3 });
38161              } catch (e6) {
38162              }
38163              r4.hash = (0, u2.keccak256)(e5);
38164            }
38165            return r4.type = null, r4;
38166          }(t4);
38167        switch (t4[0]) {
38168          case 1:
38169            return function(e5) {
38170              var t5 = f2.decode(e5.slice(1));
38171              8 !== t5.length && 11 !== t5.length && y2.throwArgumentError("invalid component count for transaction type: 1", "payload", (0, a.hexlify)(e5));
38172              var r4 = { type: 1, chainId: v2(t5[0]).toNumber(), nonce: v2(t5[1]).toNumber(), gasPrice: v2(t5[2]), gasLimit: v2(t5[3]), to: m2(t5[4]), value: v2(t5[5]), data: t5[6], accessList: x2(t5[7]) };
38173              return 8 === t5.length || (r4.hash = (0, u2.keccak256)(e5), B2(r4, t5.slice(8), O2)), r4;
38174            }(t4);
38175          case 2:
38176            return function(e5) {
38177              var t5 = f2.decode(e5.slice(1));
38178              9 !== t5.length && 12 !== t5.length && y2.throwArgumentError("invalid component count for transaction type: 2", "payload", (0, a.hexlify)(e5));
38179              var r4 = v2(t5[2]), n3 = v2(t5[3]), i2 = { type: 2, chainId: v2(t5[0]).toNumber(), nonce: v2(t5[1]).toNumber(), maxPriorityFeePerGas: r4, maxFeePerGas: n3, gasPrice: null, gasLimit: v2(t5[4]), to: m2(t5[5]), value: v2(t5[6]), data: t5[7], accessList: x2(t5[8]) };
38180              return 9 === t5.length || (i2.hash = (0, u2.keccak256)(e5), B2(i2, t5.slice(9), P2)), i2;
38181            }(t4);
38182        }
38183        return y2.throwError("unsupported transaction type: ".concat(t4[0]), l2.Logger.errors.UNSUPPORTED_OPERATION, { operation: "parseTransaction", transactionType: t4[0] });
38184      }, t3.recoverAddress = k2, t3.serialize = function(e4, t4) {
38185        if (null == e4.type || 0 === e4.type)
38186          return null != e4.accessList && y2.throwArgumentError("untyped transactions do not support accessList; include type: 1", "transaction", e4), function(e5, t5) {
38187            (0, c2.checkProperties)(e5, w2);
38188            var r4 = [];
38189            g2.forEach(function(t6) {
38190              var n4 = e5[t6.name] || [], i3 = {};
38191              t6.numeric && (i3.hexPad = "left"), n4 = (0, a.arrayify)((0, a.hexlify)(n4, i3)), t6.length && n4.length !== t6.length && n4.length > 0 && y2.throwArgumentError("invalid length for " + t6.name, "transaction:" + t6.name, n4), t6.maxLength && (n4 = (0, a.stripZeros)(n4)).length > t6.maxLength && y2.throwArgumentError("invalid length for " + t6.name, "transaction:" + t6.name, n4), r4.push((0, a.hexlify)(n4));
38192            });
38193            var n3 = 0;
38194            if (null != e5.chainId ? "number" != typeof (n3 = e5.chainId) && y2.throwArgumentError("invalid transaction.chainId", "transaction", e5) : t5 && !(0, a.isBytesLike)(t5) && t5.v > 28 && (n3 = Math.floor((t5.v - 35) / 2)), 0 !== n3 && (r4.push((0, a.hexlify)(n3)), r4.pu
38194sh("0x"), r4.push("0x")), !t5)
38195              return f2.encode(r4);
38196            var i2 = (0, a.splitSignature)(t5), o2 = 27 + i2.recoveryParam;
38197            return 0 !== n3 ? (r4.pop(), r4.pop(), r4.pop(), o2 += 2 * n3 + 8, i2.v > 28 && i2.v !== o2 && y2.throwArgumentError("transaction.chainId/signature.v mismatch", "signature", t5)) : i2.v !== o2 && y2.throwArgumentError("transaction.chainId/signature.v mismatch", "signature", t5), r4.push((0, a.hexlify)(o2)), r4.push((0, a.stripZeros)((0, a.arrayify)(i2.r))), r4.push((0, a.stripZeros)((0, a.arrayify)(i2.s))), f2.encode(r4);
38198          }(e4, t4);
38199        switch (e4.type) {
38200          case 1:
38201            return O2(e4, t4);
38202          case 2:
38203            return P2(e4, t4);
38204        }
38205        return y2.throwError("unsupported transaction type: ".concat(e4.type), l2.Logger.errors.UNSUPPORTED_OPERATION, { operation: "serializeTransaction", transactionType: e4.type });
38206      };
38207      var i = r3(7921), o = r3(4952), a = r3(908), s = r3(5465), u2 = r3(4642), c2 = r3(3694), f2 = function(e4, t4) {
38208        if (e4 && e4.__esModule)
38209          return e4;
38210        if (null === e4 || "object" !== n2(e4) && "function" != typeof e4)
38211          return { default: e4 };
38212        var r4 = p2(t4);
38213        if (r4 && r4.has(e4))
38214          return r4.get(e4);
38215        var i2 = {}, o2 = Object.defineProperty && Object.getOwnPropertyDescriptor;
38216        for (var a2 in e4)
38217          if ("default" !== a2 && Object.prototype.hasOwnProperty.call(e4, a2)) {
38218            var s2 = o2 ? Object.getOwnPropertyDescriptor(e4, a2) : null;
38219            s2 && (s2.get || s2.set) ? Object.defineProperty(i2, a2, s2) : i2[a2] = e4[a2];
38220          }
38221        return i2.default = e4, r4 && r4.set(e4, i2), i2;
38222      }(r3(5265)), d2 = r3(7612), l2 = r3(4327), h2 = r3(6783);
38223      function p2(e4) {
38224        if ("function" != typeof WeakMap)
38225          return null;
38226        var t4 = /* @__PURE__ */ new WeakMap(), r4 = /* @__PURE__ */ new WeakMap();
38227        return (p2 = function(e5) {
38228          return e5 ? r4 : t4;
38229        })(e4);
38230      }
38231      var b2, y2 = new l2.Logger(h2.version);
38232      function m2(e4) {
38233        return "0x" === e4 ? null : (0, i.getAddress)(e4);
38234      }
38235      function v2(e4) {
38236        return "0x" === e4 ? s.Zero : o.BigNumber.from(e4);
38237      }
38238      t3.TransactionTypes = b2, function(e4) {
38239        e4[e4.legacy = 0] = "legacy", e4[e4.eip2930 = 1] = "eip2930", e4[e4.eip1559 = 2] = "eip1559";
38240      }(b2 || (t3.TransactionTypes = b2 = {}));
38241      var g2 = [{ name: "nonce", maxLength: 32, numeric: true }, { name: "gasPrice", maxLength: 32, numeric: true }, { name: "gasLimit", maxLength: 32, numeric: true }, { name: "to", length: 20 }, { name: "value", maxLength: 32, numeric: true }, { name: "data" }], w2 = { chainId: true, data: true, gasLimit: true, gasPrice: true, nonce: true, to: true, type: true, value: true };
38242      function A2(e4) {
38243        var t4 = (0, d2.computePublicKey)(e4);
38244        return (0, i.getAddress)((0, a.hexDataSlice)((0, u2.keccak256)((0, a.hexDataSlice)(t4, 1)), 12));
38245      }
38246      function k2(e4, t4) {
38247        return A2((0, d2.recoverPublicKey)((0, a.arrayify)(e4), t4));
38248      }
38249      function _(e4, t4) {
38250        var r4 = (0, a.stripZeros)(o.BigNumber.from(e4).toHexString());
38251        return r4.length > 32 && y2.throwArgumentError("invalid length for " + t4, "transaction:" + t4, e4), r4;
38252      }
38253      function S2(e4, t4) {
38254        return { address: (0, i.getAddress)(e4), storageKeys: (t4 || []).map(function(t5, r4) {
38255          return 32 !== (0, a.hexDataLength)(t5) && y2.throwArgumentError("invalid access list storageKey", "accessList[".concat(e4, ":").concat(r4, "]"), t5), t5.toLowerCase();
38256        }) };
38257      }
38258      function x2(e4) {
38259        if (Array.isArray(e4))
38260          return e4.map(function(e5, t5) {
38261            return Array.isArray(e5) ? (e5.length > 2 && y2.throwArgumentError("access list expected to be [ address, storageKeys[] ]", "value[".concat(t5, "]"), e5), S2(e5[0], e5[1])) : S2(e5.address, e5.storageKeys);
38262          });
38263        var t4 = Object.keys(e4).map(function(t5) {
38264          var r4 = e4[t5].reduce(function(e5, t6) {
38265            return e5[t6] = true, e5;
38266          }, {});
38267          return S2(t5, Object.keys(r4).sort());
38268        });
38269        return t4.sort(function(e5, t5) {
38270          return e5.address.localeCompare(t5.address);
38271        }), t4;
38272      }
38273      function E2(e4) {
38274        return x2(e4).map(function(e5) {
38275          return [e5.address, e5.storageKeys];
38276        });
38277      }
38278      function P2(e4, t4) {
38279        if (null != e4.gasPrice) {
38280          var r4 = o.BigNumber.from(e4.gasPrice), n3 = o.BigNumber.from(e4.maxFeePerGas || 0);
38281          r4.eq(n3) || y2.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas", "tx", { gasPrice: r4, maxFeePerGas: n3 });
38282        }
38283        var s2 = [_(e4.chainId || 0, "chainId"), _(e4.nonce || 0, "nonce"), _(e4.maxPriorityFeePerGas || 0, "maxPriorityFeePerGas"), _(e4.maxFeePerGas || 0, "maxFeePerGas"), _(e4.gasLim
38283it || 0, "gasLimit"), null != e4.to ? (0, i.getAddress)(e4.to) : "0x", _(e4.value || 0, "value"), e4.data || "0x", E2(e4.accessList || [])];
38284        if (t4) {
38285          var u3 = (0, a.splitSignature)(t4);
38286          s2.push(_(u3.recoveryParam, "recoveryParam")), s2.push((0, a.stripZeros)(u3.r)), s2.push((0, a.stripZeros)(u3.s));
38287        }
38288        return (0, a.hexConcat)(["0x02", f2.encode(s2)]);
38289      }
38290      function O2(e4, t4) {
38291        var r4 = [_(e4.chainId || 0, "chainId"), _(e4.nonce || 0, "nonce"), _(e4.gasPrice || 0, "gasPrice"), _(e4.gasLimit || 0, "gasLimit"), null != e4.to ? (0, i.getAddress)(e4.to) : "0x", _(e4.value || 0, "value"), e4.data || "0x", E2(e4.accessList || [])];
38292        if (t4) {
38293          var n3 = (0, a.splitSignature)(t4);
38294          r4.push(_(n3.recoveryParam, "recoveryParam")), r4.push((0, a.stripZeros)(n3.r)), r4.push((0, a.stripZeros)(n3.s));
38295        }
38296        return (0, a.hexConcat)(["0x01", f2.encode(r4)]);
38297      }
38298      function B2(e4, t4, r4) {
38299        try {
38300          var n3 = v2(t4[0]).toNumber();
38301          if (0 !== n3 && 1 !== n3)
38302            throw new Error("bad recid");
38303          e4.v = n3;
38304        } catch (e5) {
38305          y2.throwArgumentError("invalid v for transaction type: 1", "v", t4[0]);
38306        }
38307        e4.r = (0, a.hexZeroPad)(t4[1], 32), e4.s = (0, a.hexZeroPad)(t4[2], 32);
38308        try {
38309          var i2 = (0, u2.keccak256)(r4(e4));
38310          e4.from = k2(i2, { r: e4.r, s: e4.s, recoveryParam: e4.v });
38311        } catch (e5) {
38312        }
38313      }
38314    }, 3368: (e3, t3, r3) => {
38315      var n2, i, o = r3(8847)(r3(3355));
38316      void 0 === (i = "function" == typeof (n2 = function() {
38317        function e4(e5, t5) {
38318          if (!(e5 instanceof t5))
38319            throw new TypeError("Cannot call a class as a function");
38320        }
38321        function t4(e5, t5) {
38322          for (var r4 = 0; r4 < t5.length; r4++) {
38323            var n4 = t5[r4];
38324            n4.enumerable = n4.enumerable || false, n4.configurable = true, "value" in n4 && (n4.writable = true), Object.defineProperty(e5, n4.key, n4);
38325          }
38326        }
38327        function n3(e5, r4, n4) {
38328          return r4 && t4(e5.prototype, r4), n4 && t4(e5, n4), Object.defineProperty(e5, "prototype", { writable: false }), e5;
38329        }
38330        function i2(e5) {
38331          return i2 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e6) {
38332            return e6.__proto__ || Object.getPrototypeOf(e6);
38333          }, i2(e5);
38334        }
38335        function a(e5, t5) {
38336          return a = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e6, t6) {
38337            return e6.__proto__ = t6, e6;
38338          }, a(e5, t5);
38339        }
38340        function s(e5) {
38341          if (void 0 === e5)
38342            throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
38343          return e5;
38344        }
38345        function u2(e5, t5) {
38346          if (t5 && ("object" === (0, o.default)(t5) || "function" == typeof t5))
38347            return t5;
38348          if (void 0 !== t5)
38349            throw new TypeError("Derived constructors may only return object or undefined");
38350          return s(e5);
38351        }
38352        function c2(e5) {
38353          var t5 = function() {
38354            if ("undefined" == typeof Reflect || !Reflect.construct)
38355              return false;
38356            if (Reflect.construct.sham)
38357              return false;
38358            if ("function" == typeof Proxy)
38359              return true;
38360            try {
38361              return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
38362              })), true;
38363            } catch (e6) {
38364              return false;
38365            }
38366          }();
38367          return function() {
38368            var r4, n4 = i2(e5);
38369            if (t5) {
38370              var o2 = i2(this).constructor;
38371              r4 = Reflect.construct(n4, arguments, o2);
38372            } else
38373              r4 = n4.apply(this, arguments);
38374            return u2(this, r4);
38375          };
38376        }
38377        function f2(e5, t5) {
38378          for (; !Object.prototype.hasOwnProperty.call(e5, t5) && null !== (e5 = i2(e5)); )
38379            ;
38380          return e5;
38381        }
38382        function d2() {
38383          return d2 = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function(e5, t5, r4) {
38384            var n4 = f2(e5, t5);
38385            if (n4) {
38386              var i3 = Object.getOwnPropertyDescriptor(n4, t5);
38387              return i3.get ? i3.get.call(arguments.length < 3 ? e5 : r4) : i3.value;
38388            }
38389          }, d2.apply(this, arguments);
38390        }
38391        var l2 = function() {
38392          function t5() {
38393            e4(this, t5), Object.defineProperty(this, "listeners", { value: {}, writable: true, configurable: true });
38394          }
38395          return n3(t5, [{ key: "addEventListener", value: function(e5, t6, r4) {
38396            e5 in this.listeners || (this.listeners[e5] = []), this.listeners[e5].push({ callback: t6, options: r4 });
38397          } }, { key: "removeEventListener", value: function(e5, t6) {
38398            if (e5 in this.listeners) {
38399              for (var r4 = this.listeners[e5], n4 = 0, i3 = r4.length; n4 < i3; n4++)
38400                if (r4[n4].callback === t6)
38401                  return void r4.splice(n4, 1);
38402            }
38403          } }, { key: "dispatchEvent", value: function(e5) {
38404            if (e5.type in this.listeners) {
38405              for (var t6 = this.listeners[e5.type].slice(), r4 = 0, n4 = t6.length; r4 < n4; r4++) {
38406                var i3 = t6[r4];
38407                try {
38408                  i3.callback.call(this, e5);
38409                } catch (e6) {
38410                  Promise.resolve().then(function() {
38411                    throw e6;
38412                  });
38413                }
38414                i3.options && i3.options.once && this.removeEventListener(e5.type, i3.callback);
38415              }
38416              return !e5.defaultPrevented;
38417            }
38418          } }]), t5;
38419        }(), h2 = function(t5) {
38420          !function(e5, t6) {
38421            if ("function" != typeof t6 && null !== t6)
38422              throw new TypeError("Super expression must either be null or a function");
38423            e5.prototype = Object.create(t6 && t6.prototype, { constructor: { value: e5, writable: true, configurable: true } }), Object.defineProperty(e5, "prototype", { writable: false }), t6 && a(e5, t6);
38424          }(o2, t5);
38425          var r4 = c2(o2);
38426          function o2() {
38427            var t6;
38428            return e4(this, o2), (t6 = r4.call(this)).listeners || l2.call(s(t6)), Object.defineProperty(s(t6), "aborted", { value: false, writable: true, configurable: true }), Object.defineProperty(s(t6), "onabort", { value: null, writable: true, configurable: true }), Object.defineProperty(s(t6), "reason", { value: void 0, writable: true, configurable: true }), t6;
38429          }
38430          return n3(o2, [{ key: "toString", value: function() {
38431            return "[object AbortSignal]";
38432          } }, { key: "dispatchEvent", value: function(e5) {
38433            "abort" === e5.type && (this.aborted = true, "function" == typeof this.onabort && this.onabort.call(this, e5)), d2(i2(o2.prototype), "dispatchEvent", this).call(this, e5);
38434          } }]), o2;
38435        }(l2), p2 = function() {
38436          function t5() {
38437            e4(this, t5), Object.defineProperty(this, "signal", { value: new h2(), writable: true, configurable: true });
38438          }
38439          return n3(t5, [{ key: "abort", value: function(e5) {
38440            var t6;
38441            try {
38442              t6 = new Event("abort");
38443            } catch (e6) {
38444              "undefined" != typeof document ? document.createEvent ? (t6 = document.createEvent("Event")).initEvent("abort", false, false) : (t6 = document.createEventObject()).type = "abort" : t6 = { type: "abort", bubbles: false, cancelable: false };
38445            }
38446            var r4 = e5;
38447            if (void 0 === r4)
38448              if ("undefined" == typeof document)
38449                (r4 = new Error("This operation was aborted")).name = "AbortError";
38450              else
38451                try {
38452                  r4 = new DOMException("signal is aborted without reason");
38453                } catch (e6) {
38454                  (r4 = new Error("This operation was aborted")).name = "AbortError";
38455                }
38456            this.signal.reason = r4, this.signal.dispatchEvent(t6);
38457          } }, { key: "toString", value: function() {
38458            return "[object AbortController]";
38459          } }]), t5;
38460        }();
38461        function b2(e5) {
38462          return e5.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL ? (console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"), true) : "function" == typeof e5.Request && !e5.Request.prototype.hasOwnProperty("signal") || !e5.AbortController;
38463        }
38464        "undefined" != typeof Symbol && Symbol.toStringTag && (p2.prototype[Symbol.toStringTag] = "AbortController", h2.prototype[Symbol.toStringTag] = "AbortSignal"), function(e5) {
38465          if (b2(e5))
38466            if (e5.fetch) {
38467              var t5 = function(e6) {
38468                "function" == typeof e6 && (e6 = { fetch: e6 });
38469                var t6 = e6, r5 = t6.fetch, n5 = t6.Request, i3 = void 0 === n5 ? r5.Request : n5, o2 = t6.AbortController, a2 = t6.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL, s2 = void 0 !== a2 && a2;
38470                if (!b2({ fetch: r5, Request: i3, AbortController: o2, __FORCE_INSTALL_ABORTCONTROLLER_POLYFILL: s2 }))
38471                  return { fetch: r5, Request: u3 };
38472                var u3 = i3;
38473                (u3 && !u3.prototype.hasOwnProperty("signal") || s2) && ((u3 = function(e7, t7) {
38474                  var r6;
38475                  t7 && t7.signal && (r6 = t7.signal, delete t7.signal);
38476                  var n6 = new i3(e7, t7);
38477                  return r6 && Object.defineProperty(n6, "signal", { writable: false, enumerable: false, configurable: true, value: r6 }), n6;
38478                }).prototype = i3.prototype);
38479                var c3 = r5;
38480                return { fetch: function(e7, t7) {
38481                  var r6 = u3 && u3.prototype.isPrototypeOf(e7) ? e7.signal : t7 ? t7.signal : void 0;
38482                  if (r6) {
38483                    var n6;
38484                    try {
38485                      n6 = new DOMException("Aborted", "AbortError");
38486                    } catch (e8) {
38487                      (n6 = new Error("Aborted")).name = "AbortError";
38488                    }
38489                    if (r6.aborted)
38490                      return Promise.reject(n6);
38491                    var i4 = new Promise(function(e8, t8) {
38492                      r6.addEventListener("abort", function() {
38493                        return t8(n6);
38494                      }, { once: true });
38495                    });
38496                    return t7 && t7.signal && delete t7.signal, Promise.race([i4, c3(e7, t7)]);
38497                  }
38498                  return c3(e7, t7);
38499                }, Request: u3 };
38500              }(e5), r4 = t5.fetch, n4 = t5.Request;
38501              e5.fetch = r4, e5.Request = n4, Object.defineProperty(e5, "AbortController", { writable: true, enumerable: false, configurable: true, value: p2 }), Object.defineProperty(e5, "AbortSignal", { writable: true, enumerable: false, configurable: true, value: h2 });
38502            } else
38503              console.warn("fetch() is not available, cannot install abortcontroller-polyfill");
38504        }("undefined" != typeof self ? self : r3.g);
38505      }) ? n2.call(t3, r3, t3, e3) : n2) || (e3.exports = i);
38506    }, 8357: (e3, t3, r3) => {
38507      var n2 = t3;
38508      n2.bignum = r3(1734), n2.define = r3(1568).define, n2.base = r3(2412), n2.constants = r3(9387), n2.decoders = r3(1500), n2.encoders = r3(7506);
38509    }, 1568: (e3, t3, r3) => {
38510      var n2 = r3(7506), i = r3(1500), o = r3(1736);
38511      function a(e4, t4) {
38512        this.name = e4, this.body = t4, this.decoders = {}, this.encoders = {};
38513      }
38514      t3.define = function(e4, t4) {
38515        return new a(e4, t4);
38516      }, a.prototype._createNamed = function(e4) {
38517        var t4 = this.name;
38518        function r4(e5) {
38519          this._initNamed(e5, t4);
38520        }
38521        return o(r4, e4), r4.prototype._initNamed = function(t5, r5) {
38522          e4.call(this, t5, r5);
38523        }, new r4(this);
38524      }, a.prototype._getDecoder = function(e4) {
38525        return e4 = e4 || "der", this.decoders.hasOwnProperty(e4) || (this.decoders[e4] = this._createNamed(i[e4])), this.decoders[e4];
38526      }, a.prototype.decode = function(e4, t4, r4) {
38527        return this._getDecoder(t4).decode(e4, r4);
38528      }, a.prototype._getEncoder = function(e4) {
38529        return e4 = e4 || "der", this.encoders.hasOwnProperty(e4) || (this.encoders[e4] = this._createNamed(n2[e4])), this.encoders[e4];
38530      }, a.prototype.encode = function(e4, t4, r4) {
38531        return this._getEncoder(t4).encode(e4, r4);
38532      };
38533    }, 585: (e3, t3, r3) => {
38534      var n2 = r3(8847)(r3(3355)), i = r3(1736), o = r3(2719).b, a = r3(1755).Buffer;
38535      function s(e4, t4) {
38536        o.call(this, t4), a.isBuffer(e4) ? (this.base = e4, this.offset = 0, this.length = e4.length) : this.error("Input not Buffer");
38537      }
38538      function u2(e4, t4) {
38539        if (Array.isArray(e4))
38540          this.length = 0, this.value = e4.map(function(e5) {
38541            return u2.isEncoderBuffer(e5) || (e5 = new u2(e5, t4)), this.length += e5.length, e5;
38542          }, this);
38543        else if ("number" == typeof e4) {
38544          if (!(0 <= e4 && e4 <= 255))
38545            return t4.error("non-byte EncoderBuffer value");
38546          this.value = e4, this.length = 1;
38547        } else if ("string" == typeof e4)
38548          this.value = e4, this.length = a.byteLength(e4);
38549        else {
38550          if (!a.isBuffer(e4))
38551            return t4.error("Unsupported type: " + (0, n2.default)(e4));
38552          this.value = e4, this.length = e4.length;
38553        }
38554      }
38555      i(s, o), t3.C = s, s.isDecoderBuffer = function(e4) {
38556        return e4 instanceof s || "object" === (0, n2.default)(e4) && a.isBuffer(e4.base) && "DecoderBuffer" === e4.constructor.name && "number" == typeof e4.offset && "number" == typeof e4.length && "function" == typeof e4.save && "function" == typeof e4.restore && "function" == typeof e4.isEmpty && "function" == typeof e4.readUInt8 && "function" == typeof e4.ski
38556p && "function" == typeof e4.raw;
38557      }, s.prototype.save = function() {
38558        return { offset: this.offset, reporter: o.prototype.save.call(this) };
38559      }, s.prototype.restore = function(e4) {
38560        var t4 = new s(this.base);
38561        return t4.offset = e4.offset, t4.length = this.offset, this.offset = e4.offset, o.prototype.restore.call(this, e4.reporter), t4;
38562      }, s.prototype.isEmpty = function() {
38563        return this.offset === this.length;
38564      }, s.prototype.readUInt8 = function(e4) {
38565        return this.offset + 1 <= this.length ? this.base.readUInt8(this.offset++, true) : this.error(e4 || "DecoderBuffer overrun");
38566      }, s.prototype.skip = function(e4, t4) {
38567        if (!(this.offset + e4 <= this.length))
38568          return this.error(t4 || "DecoderBuffer overrun");
38569        var r4 = new s(this.base);
38570        return r4._reporterState = this._reporterState, r4.offset = this.offset, r4.length = this.offset + e4, this.offset += e4, r4;
38571      }, s.prototype.raw = function(e4) {
38572        return this.base.slice(e4 ? e4.offset : this.offset, this.length);
38573      }, t3.R = u2, u2.isEncoderBuffer = function(e4) {
38574        return e4 instanceof u2 || "object" === (0, n2.default)(e4) && "EncoderBuffer" === e4.constructor.name && "number" == typeof e4.length && "function" == typeof e4.join;
38575      }, u2.prototype.join = function(e4, t4) {
38576        return e4 || (e4 = a.alloc(this.length)), t4 || (t4 = 0), 0 === this.length || (Array.isArray(this.value) ? this.value.forEach(function(r4) {
38577          r4.join(e4, t4), t4 += r4.length;
38578        }) : ("number" == typeof this.value ? e4[t4] = this.value : "string" == typeof this.value ? e4.write(this.value, t4) : a.isBuffer(this.value) && this.value.copy(e4, t4), t4 += this.length)), e4;
38579      };
38580    }, 2412: (e3, t3, r3) => {
38581      var n2 = t3;
38582      n2.Reporter = r3(2719).b, n2.DecoderBuffer = r3(585).C, n2.EncoderBuffer = r3(585).R, n2.Node = r3(1371);
38583    }, 1371: (e3, t3, r3) => {
38584      var n2 = r3(8847)(r3(3355)), i = r3(2719).b, o = r3(585).R, a = r3(585).C, s = r3(4504), u2 = ["seq", "seqof", "set", "setof", "objid", "bool", "gentime", "utctime", "null_", "enum", "int", "objDesc", "bitstr", "bmpstr", "charstr", "genstr", "graphstr", "ia5str", "iso646str", "numstr", "octstr", "printstr", "t61str", "unistr", "utf8str", "videostr"], c2 = ["key", "obj", "use", "optional", "explicit", "implicit", "def", "choice", "any", "contains"].concat(u2);
38585      function f2(e4, t4, r4) {
38586        var n3 = {};
38587        this._baseState = n3, n3.name = r4, n3.enc = e4, n3.parent = t4 || null, n3.children = null, n3.tag = null, n3.args = null, n3.reverseArgs = null, n3.choice = null, n3.optional = false, n3.any = false, n3.obj = false, n3.use = null, n3.useDecoder = null, n3.key = null, n3.default = null, n3.explicit = null, n3.implicit = null, n3.contains = null, n3.parent || (n3.children = [], this._wrap());
38588      }
38589      e3.exports = f2;
38590      var d2 = ["enc", "parent", "children", "tag", "args", "reverseArgs", "choice", "optional", "any", "obj", "use", "alteredUse", "key", "default", "explicit", "implicit", "contains"];
38591      f2.prototype.clone = function() {
38592        var e4 = this._baseState, t4 = {};
38593        d2.forEach(function(r5) {
38594          t4[r5] = e4[r5];
38595        });
38596        var r4 = new this.constructor(t4.parent);
38597        return r4._baseState = t4, r4;
38598      }, f2.prototype._wrap = function() {
38599        var e4 = this._baseState;
38600        c2.forEach(function(t4) {
38601          this[t4] = function() {
38602            var r4 = new this.constructor(this);
38603            return e4.children.push(r4), r4[t4].apply(r4, arguments);
38604          };
38605        }, this);
38606      }, f2.prototype._init = function(e4) {
38607        var t4 = this._baseState;
38608        s(null === t4.parent), e4.call(this), t4.children = t4.children.filter(function(e5) {
38609          return e5._baseState.parent === this;
38610        }, this), s.equal(t4.children.length, 1, "Root node can have only one child");
38611      }, f2.prototype._useArgs = function(e4) {
38612        var t4 = this._baseState, r4 = e4.filter(function(e5) {
38613          return e5 instanceof this.constructor;
38614        }, this);
38615        e4 = e4.filter(function(e5) {
38616          return !(e5 instanceof this.constructor);
38617        }, this), 0 !== r4.length && (s(null === t4.children), t4.children = r4, r4.forEach(function(e5) {
38618          e5._baseState.parent = this;
38619        }, this)), 0 !== e4.length && (s(null === t4.args), t4.args = e4, t4.reverseArgs = e4.map(function(e5) {
38620          if ("object" !== (0, n2.default)(e5) || e5.constructor !== Object)
38621            return e5;
38622          var t5 = {};
38623          return Object.keys(e5).forEach(function(r5) {
38624            r5 == (0 | r5) && (r5 |= 0);
38625            var n3 = e5[r5];
38626            t5[n3] = r5;
38627          }), t5;
38628        }));
38629      }, ["_peekTag", "_decodeTag", "_use", "_decodeStr", "_decodeObjid", "_decodeTime", "_decodeNull", "_decodeInt", "_decodeBool", "_decodeList", "_encodeComposite", "_encodeStr", "_encodeObjid", "_encodeTime", "_encodeNull", "_encodeInt", "_encodeBool"].forEach(function(e4) {
38630        f2.prototype[e4] = function() {
38631          var t4 = this._baseState;
38632          throw new Error(e4 + " not implemented for encoding: " + t4.enc);
38633        };
38634      }), u2.forEach(function(e4) {
38635        f2.prototype[e4] = function() {
38636          var t4 = this._baseState, r4 = Array.prototype.slice.call(arguments);
38637          return s(null === t4.tag), t4.tag = e4, this._useArgs(r4), this;
38638        };
38639      }), f2.prototype.use = function(e4) {
38640        s(e4);
38641        var t4 = this._baseState;
38642        return s(null === t4.use), t4.use = e4, this;
38643      }, f2.prototype.optional = function() {
38644        return this._baseState.optional = true, this;
38645      }, f2.prototype.def = function(e4) {
38646        var t4 = this._baseState;
38647        return s(null === t4.default), t4.default = e4, t4.optional = true, this;
38648      }, f2.prototype.explicit = function(e4) {
38649        var t4 = this._baseState;
38650        return s(null === t4.explicit && null === t4.implicit), t4.explicit = e4, this;
38651      }, f2.prototype.implicit = function(e4) {
38652        var t4 = this._baseState;
38653        return s(null === t4.explicit && null === t4.implicit), t4.implicit = e4, this;
38654      }, f2.prototype.obj = function() {
38655        var e4 = this._baseState, t4 = Array.prototype.slice.call(arguments);
38656        return e4.obj = true, 0 !== t4.length && this._useArgs(t4), this;
38657      }, f2.prototype.key = function(e4) {
38658        var t4 = this._baseState;
38659        return s(null === t4.key), t4.key = e4, this;
38660      }, f2.prototype.any = function() {
38661        return this._baseState.any = true, this;
38662      }, f2.prototype.choice = function(e4) {
38663        var t4 = this._baseState;
38664        return s(null === t4.choice), t4.choice = e4, this._useArgs(Object.keys(e4).map(function(t5) {
38665          return e4[t5];
38666        })), this;
38667      }, f2.prototype.contains = function(e4) {
38668        var t4 = this._baseState;
38669        return s(null === t4.use), t4.contains = e4, this;
38670      }, f2.prototype._decode = function(e4, t4) {
38671        var r4 = this._baseState;
38672        if (null === r4.parent)
38673          return e4.wrapResult(r4.children[0]._decode(e4, t4));
38674        var n3, i2 = r4.default, o2 = true, s2 = null;
38675        if (null !== r4.key && (s2 = e4.enterKey(r4.key)), r4.optional) {
38676          var u3 = null;
38677          if (null !== r4.explicit ? u3 = r4.explicit : null !== r4.implicit ? u3 = r4.implicit : null !== r4.tag && (u3 = r4.tag), null !== u3 || r4.any) {
38678            if (o2 = this._peekTag(e4, u3, r4.any), e4.isError(o2))
38679              return o2;
38680          } else {
38681            var c3 = e4.save();
38682            try {
38683              null === r4.choice ? this._decodeGeneric(r4.tag, e4, t4) : this._decodeChoice(e4, t4), o2 = true;
38684            } catch (e5) {
38685              o2 = false;
38686            }
38687            e4.restore(c3);
38688          }
38689        }
38690        if (r4.obj && o2 && (n3 = e4.enterObject()), o2) {
38691          if (null !== r4.explicit) {
38692            var f3 = this._decodeTag(e4, r4.explicit);
38693            if (e4.isError(f3))
38694              return f3;
38695            e4 = f3;
38696          }
38697          var d3 = e4.offset;
38698          if (null === r4.use && null === r4.choice) {
38699            var l2;
38700            r4.any && (l2 = e4.save());
38701            var h2 = this._decodeTag(e4, null !== r4.implicit ? r4.implicit : r4.tag, r4.any);
38702            if (e4.isError(h2))
38703              return h2;
38704            r4.any ? i2 = e4.raw(l2) : e4 = h2;
38705          }
38706          if (t4 && t4.track && null !== r4.tag && t4.track(e4.path(), d3, e4.length, "tagged"), t4 && t4.track && null !== r4.tag && t4.track(e4.path(), e4.offset, e4.length, "content"), r4.any || (i2 = null === r4.choice ? this._decodeGeneric(r4.tag, e4, t4) : this._decodeChoice(e4, t4)), e4.isError(i2))
38707            return i2;
38708          if (r4.any || null !== r4.choice || null === r4.children || r4.children.forEac
vendor: 23,241 bytes, lines 38708-39184
38708h(function(r5) {
38709            r5._decode(e4, t4);
38710          }), r4.contains && ("octstr" === r4.tag || "bitstr" === r4.tag)) {
38711            var p2 = new a(i2);
38712            i2 = this._getUse(r4.contains, e4._reporterState.obj)._decode(p2, t4);
38713          }
38714        }
38715        return r4.obj && o2 && (i2 = e4.leaveObject(n3)), null === r4.key || null === i2 && true !== o2 ? null !== s2 && e4.exitKey(s2) : e4.leaveKey(s2, r4.key, i2), i2;
38716      }, f2.prototype._decodeGeneric = function(e4, t4, r4) {
38717        var n3 = this._baseState;
38718        return "seq" === e4 || "set" === e4 ? null : "seqof" === e4 || "setof" === e4 ? this._decodeList(t4, e4, n3.args[0], r4) : /str$/.test(e4) ? this._decodeStr(t4, e4, r4) : "objid" === e4 && n3.args ? this._decodeObjid(t4, n3.args[0], n3.args[1], r4) : "objid" === e4 ? this._decodeObjid(t4, null, null, r4) : "gentime" === e4 || "utctime" === e4 ? this._decodeTime(t4, e4, r4) : "null_" === e4 ? this._decodeNull(t4, r4) : "bool" === e4 ? this._decodeBool(t4, r4) : "objDesc" === e4 ? this._decodeStr(t4, e4, r4) : "int" === e4 || "enum" === e4 ? this._decodeInt(t4, n3.args && n3.args[0], r4) : null !== n3.use ? this._getUse(n3.use, t4._reporterState.obj)._decode(t4, r4) : t4.error("unknown tag: " + e4);
38719      }, f2.prototype._getUse = function(e4, t4) {
38720        var r4 = this._baseState;
38721        return r4.useDecoder = this._use(e4, t4), s(null === r4.useDecoder._baseState.parent), r4.useDecoder = r4.useDecoder._baseState.children[0], r4.implicit !== r4.useDecoder._baseState.implicit && (r4.useDecoder = r4.useDecoder.clone(), r4.useDecoder._baseState.implicit = r4.implicit), r4.useDecoder;
38722      }, f2.prototype._decodeChoice = function(e4, t4) {
38723        var r4 = this._baseState, n3 = null, i2 = false;
38724        return Object.keys(r4.choice).some(function(o2) {
38725          var a2 = e4.save(), s2 = r4.choice[o2];
38726          try {
38727            var u3 = s2._decode(e4, t4);
38728            if (e4.isError(u3))
38729              return false;
38730            n3 = { type: o2, value: u3 }, i2 = true;
38731          } catch (t5) {
38732            return e4.restore(a2), false;
38733          }
38734          return true;
38735        }, this), i2 ? n3 : e4.error("Choice not matched");
38736      }, f2.prototype._createEncoderBuffer = function(e4) {
38737        return new o(e4, this.reporter);
38738      }, f2.prototype._encode = function(e4, t4, r4) {
38739        var n3 = this._baseState;
38740        if (null === n3.default || n3.default !== e4) {
38741          var i2 = this._encodeValue(e4, t4, r4);
38742          if (void 0 !== i2 && !this._skipDefault(i2, t4, r4))
38743            return i2;
38744        }
38745      }, f2.prototype._encodeValue = function(e4, t4, r4) {
38746        var o2 = this._baseState;
38747        if (null === o2.parent)
38748          return o2.children[0]._encode(e4, t4 || new i());
38749        var a2 = null;
38750        if (this.reporter = t4, o2.optional && void 0 === e4) {
38751          if (null === o2.default)
38752            return;
38753          e4 = o2.default;
38754        }
38755        var s2 = null, u3 = false;
38756        if (o2.any)
38757          a2 = this._createEncoderBuffer(e4);
38758        else if (o2.choice)
38759          a2 = this._encodeChoice(e4, t4);
38760        else if (o2.contains)
38761          s2 = this._getUse(o2.contains, r4)._encode(e4, t4), u3 = true;
38762        else if (o2.children)
38763          s2 = o2.children.map(function(r5) {
38764            if ("null_" === r5._baseState.tag)
38765              return r5._encode(null, t4, e4);
38766            if (null === r5._baseState.key)
38767              return t4.error("Child should have a key");
38768            var i2 = t4.enterKey(r5._baseState.key);
38769            if ("object" !== (0, n2.default)(e4))
38770              return t4.error("Child expected, but input is not object");
38771            var o3 = r5._encode(e4[r5._baseState.key], t4, e4);
38772            return t4.leaveKey(i2), o3;
38773          }, this).filter(function(e5) {
38774            return e5;
38775          }), s2 = this._createEncoderBuffer(s2);
38776        else if ("seqof" === o2.tag || "setof" === o2.tag) {
38777          if (!o2.args || 1 !== o2.args.length)
38778            return t4.error("Too many args for : " + o2.tag);
38779          if (!Array.isArray(e4))
38780            return t4.error("seqof/setof, but data is not Array");
38781          var c3 = this.clone();
38782          c3._baseState.implicit = null, s2 = this._createEncoderBuffer(e4.map(function(r5) {
38783            var n3 = this._baseState;
38784            return this._getUse(n3.args[0], e4)._encode(r5, t4);
38785          }, c3));
38786        } else
38787          null !== o2.use ? a2 = this._getUse(o2.use, r4)._encode(e4, t4) : (s2 = this._encodePrimitive(o2.tag, e4), u3 = true);
38788        if (!o2.any && null === o2.choice) {
38789          var f3 = null !== o2.implicit ? o2.implicit : o2.tag, d3 = null === o2.implicit ? "universal" : "context";
38790          null === f3 ? null === o2.use && t4.error("Tag could be omitted only for .use()") : null === o2.use && (a2 = this._encodeComposite(f3, u3, d3, s2));
38791        }
38792        return null !== o2.explicit && (a2 = this._encodeComposite(o2.explicit, false, "context", a2)), a2;
38793      }, f2.prototype._encodeChoice = function(e4, t4) {
38794        var r4 = this._baseState, n3 = r4.choice[e4.type];
38795        return n3 || s(false, e4.type + " not found in " + JSON.stringify(Object.keys(r4.choice))), n3._encode(e4.value, t4);
38796      }, f2.prototype._encodePrimitive = function(e4, t4) {
38797        var r4 = this._baseState;
38798        if (/str$/.test(e4))
38799          return this._encodeStr(t4, e4);
38800        if ("objid" === e4 && r4.args)
38801          return this._encodeObjid(t4, r4.reverseArgs[0], r4.args[1]);
38802        if ("objid" === e4)
38803          return this._encodeObjid(t4, null, null);
38804        if ("gentime" === e4 || "utctime" === e4)
38805          return this._encodeTime(t4, e4);
38806        if ("null_" === e4)
38807          return this._encodeNull();
38808        if ("int" === e4 || "enum" === e4)
38809          return this._encodeInt(t4, r4.args && r4.reverseArgs[0]);
38810        if ("bool" === e4)
38811          return this._encodeBool(t4);
38812        if ("objDesc" === e4)
38813          return this._encodeStr(t4, e4);
38814        throw new Error("Unsupported tag: " + e4);
38815      }, f2.prototype._isNumstr = function(e4) {
38816        return /^[0-9 ]*$/.test(e4);
38817      }, f2.prototype._isPrintstr = function(e4) {
38818        return /^[A-Za-z0-9 '()+,-./:=?]*$/.test(e4);
38819      };
38820    }, 2719: (e3, t3, r3) => {
38821      var n2 = r3(1736);
38822      function i(e4) {
38823        this._reporterState = { obj: null, path: [], options: e4 || {}, errors: [] };
38824      }
38825      function o(e4, t4) {
38826        this.path = e4, this.rethrow(t4);
38827      }
38828      t3.b = i, i.prototype.isError = function(e4) {
38829        return e4 instanceof o;
38830      }, i.prototype.save = function() {
38831        var e4 = this._reporterState;
38832        return { obj: e4.obj, pathLen: e4.path.length };
38833      }, i.prototype.restore = function(e4) {
38834        var t4 = this._reporterState;
38835        t4.obj = e4.obj, t4.path = t4.path.slice(0, e4.pathLen);
38836      }, i.prototype.enterKey = function(e4) {
38837        return this._reporterState.path.push(e4);
38838      }, i.prototype.exitKey = function(e4) {
38839        var t4 = this._reporterState;
38840        t4.path = t4.path.slice(0, e4 - 1);
38841      }, i.prototype.leaveKey = function(e4, t4, r4) {
38842        var n3 = this._reporterState;
38843        this.exitKey(e4), null !== n3.obj && (n3.obj[t4] = r4);
38844      }, i.prototype.path = function() {
38845        return this._reporterState.path.join("/");
38846      }, i.prototype.enterObject = function() {
38847        var e4 = this._reporterState, t4 = e4.obj;
38848        return e4.obj = {}, t4;
38849      }, i.prototype.leaveObject = function(e4) {
38850        var t4 = this._reporterState, r4 = t4.obj;
38851        return t4.obj = e4, r4;
38852      }, i.prototype.error = function(e4) {
38853        var t4, r4 = this._reporterState, n3 = e4 instanceof o;
38854        if (t4 = n3 ? e4 : new o(r4.path.map(function(e5) {
38855          return "[" + JSON.stringify(e5) + "]";
38856        }).join(""), e4.message || e4, e4.stack), !r4.options.partial)
38857          throw t4;
38858        return n3 || r4.errors.push(t4), t4;
38859      }, i.prototype.wrapResult = function(e4) {
38860        var t4 = this._reporterState;
38861        return t4.options.partial ? { result: this.isError(e4) ? null : e4, errors: t4.errors } : e4;
38862      }, n2(o, Error), o.prototype.rethrow = function(e4) {
38863        if (this.message = e4 + " at: " + (this.path || "(shallow)"), Error.captureStackTrace && Error.captureStackTrace(this, o), !this.stack)
38864          try {
38865            throw new Error(this.message);
38866          } catch (e5) {
38867            this.stack = e5.stack;
38868          }
38869        return this;
38870      };
38871    }, 6520: (e3, t3) => {
38872      function r3(e4) {
38873        var t4 = {};
38874        return Object.keys(e4).forEach(function(r4) {
38875          (0 | r4) == r4 && (r4 |= 0);
38876          var n2 = e4[r4];
38877          t4[n2] = r4;
38878        }), t4;
38879      }
38880      t3.tagClass = { 0: "universal", 1: "application", 2: "context", 3: "private" }, t3.tagClassByName = r3(t3.tagClass), t3.tag = { 0: "end", 1: "bool", 2: "int", 3: "bitstr", 4: "octstr", 5: "null_", 6: "objid", 7: "objDesc", 8: "external", 9: "real", 10: "enum", 11: "embed", 12: "utf8str", 13: "relativeOid", 16: "seq", 17: "set", 18: "numstr", 19: "printstr", 20: "t61str", 21: "videostr", 22: "ia5str", 23: "utctime", 24: "gentime", 25: "graphstr", 26: "iso646str", 27: "genstr", 28: "unistr", 29: "charstr", 30: "bmpstr" }, t3.tagByName = r3(t3.tag);
38881    }, 9387: (e3, t3, r3) => {
38882      var n2 = t3;
38883      n2._reverse = function(e4) {
38884        var t4 = {};
38885        return Object.keys(e4).forEach(function(r4) {
38886          (0 | r4) == r4 && (r4 |= 0);
38887          var n3 = e4[r4];
38888          t4[n3] = r4;
38889        }), t4;
38890      }, n2.der = r3(6520);
38891    }, 2387: (e3, t3, r3) => {
38892      var n2 = r3(1736), i = r3(1734), o = r3(585).C, a = r3(1371), s = r3(6520);
38893      function u2(e4) {
38894        this.enc = "der", this.name = e4.name, this.entity = e4, this.tree = new c2(), this.tree._init(e4.body);
38895      }
38896      function c2(e4) {
38897        a.call(this, "der", e4);
38898      }
38899      function f2(e4, t4) {
38900        var r4 = e4.readUInt8(t4);
38901        if (e4.isError(r4))
38902          return r4;
38903        var n3 = s.tagClass[r4 >> 6], i2 = 0 == (32 & r4);
38904        if (31 == (31 & r4)) {
38905          var o2 = r4;
38906          for (r4 = 0; 128 == (128 & o2); ) {
38907            if (o2 = e4.readUInt8(t4), e4.isError(o2))
38908              return o2;
38909            r4 <<= 7, r4 |= 127 & o2;
38910          }
38911        } else
38912          r4 &= 31;
38913        return { cls: n3, primitive: i2, tag: r4, tagStr: s.tag[r4] };
38914      }
38915      function d2(e4, t4, r4) {
38916        var n3 = e4.readUInt8(r4);
38917        if (e4.isError(n3))
38918          return n3;
38919        if (!t4 && 128 === n3)
38920          return null;
38921        if (0 == (128 & n3))
38922          return n3;
38923        var i2 = 127 & n3;
38924        if (i2 > 4)
38925          return e4.error("length octect is too long");
38926        n3 = 0;
38927        for (var o2 = 0; o2 < i2; o2++) {
38928          n3 <<= 8;
38929          var a2 = e4.readUInt8(r4);
38930          if (e4.isError(a2))
38931            return a2;
38932          n3 |= a2;
38933        }
38934        return n3;
38935      }
38936      e3.exports = u2, u2.prototype.decode = function(e4, t4) {
38937        return o.isDecoderBuffer(e4) || (e4 = new o(e4, t4)), this.tree._decode(e4, t4);
38938      }, n2(c2, a), c2.prototype._peekTag = function(e4, t4, r4) {
38939        if (e4.isEmpty())
38940          return false;
38941        var n3 = e4.save(), i2 = f2(e4, 'Failed to peek tag: "' + t4 + '"');
38942        return e4.isError(i2) ? i2 : (e4.restore(n3), i2.tag === t4 || i2.tagStr === t4 || i2.tagStr + "of" === t4 || r4);
38943      }, c2.prototype._decodeTag = function(e4, t4, r4) {
38944        var n3 = f2(e4, 'Failed to decode tag of "' + t4 + '"');
38945        if (e4.isError(n3))
38946          return n3;
38947        var i2 = d2(e4, n3.primitive, 'Failed to get length of "' + t4 + '"');
38948        if (e4.isError(i2))
38949          return i2;
38950        if (!r4 && n3.tag !== t4 && n3.tagStr !== t4 && n3.tagStr + "of" !== t4)
38951          return e4.error('Failed to match tag: "' + t4 + '"');
38952        if (n3.primitive || null !== i2)
38953          return e4.skip(i2, 'Failed to match body of: "' + t4 + '"');
38954        var o2 = e4.save(), a2 = this._skipUntilEnd(e4, 'Failed to skip indefinite length body: "' + this.tag + '"');
38955        return e4.isError(a2) ? a2 : (i2 = e4.offset - o2.offset, e4.restore(o2), e4.skip(i2, 'Failed to match body of: "' + t4 + '"'));
38956      }, c2.prototype._skipUntilEnd = function(e4, t4) {
38957        for (; ; ) {
38958          var r4 = f2(e4, t4);
38959          if (e4.isError(r4))
38960            return r4;
38961          var n3 = d2(e4, r4.primitive, t4);
38962          if (e4.isError(n3))
38963            return n3;
38964          var i2;
38965          if (i2 = r4.primitive || null !== n3 ? e4.skip(n3) : this._skipUntilEnd(e4, t4), e4.isError(i2))
38966            return i2;
38967          if ("end" === r4.tagStr)
38968            break;
38969        }
38970      }, c2.prototype._decodeList = function(e4, t4, r4, n3) {
38971        for (var i2 = []; !e4.isEmpty(); ) {
38972          var o2 = this._peekTag(e4, "end");
38973          if (e4.isError(o2))
38974            return o2;
38975          var a2 = r4.decode(e4, "der", n3);
38976          if (e4.isError(a2) && o2)
38977            break;
38978          i2.push(a2);
38979        }
38980        return i2;
38981      }, c2.prototype._decodeStr = function(e4, t4) {
38982        if ("bitstr" === t4) {
38983          var r4 = e4.readUInt8();
38984          return e4.isError(r4) ? r4 : { unused: r4, data: e4.raw() };
38985        }
38986        if ("bmpstr" === t4) {
38987          var n3 = e4.raw();
38988          if (n3.length % 2 == 1)
38989            return e4.error("Decoding of string type: bmpstr length mismatch");
38990          for (var i2 = "", o2 = 0; o2 < n3.length / 2; o2++)
38991            i2 += String.fromCharCode(n3.readUInt16BE(2 * o2));
38992          return i2;
38993        }
38994        if ("numstr" === t4) {
38995          var a2 = e4.raw().toString("ascii");
38996          return this._isNumstr(a2) ? a2 : e4.error("Decoding of string type: numstr unsupported characters");
38997        }
38998        if ("octstr" === t4)
38999          return e4.raw();
39000        if ("objDesc" === t4)
39001          return e4.raw();
39002        if ("printstr" === t4) {
39003          var s2 = e4.raw().toString("ascii");
39004          return this._isPrintstr(s2) ? s2 : e4.error("Decoding of string type: printstr unsupported characters");
39005        }
39006        return /str$/.test(t4) ? e4.raw().toString() : e4.error("Decoding of string type: " + t4 + " unsupported");
39007      }, c2.prototype._decodeObjid = function(e4, t4, r4) {
39008        for (var n3, i2 = [], o2 = 0, a2 = 0; !e4.isEmpty(); )
39009          o2 <<= 7, o2 |= 127 & (a2 = e4.readUInt8()), 0 == (128 & a2) && (i2.push(o2), o2 = 0);
39010        128 & a2 && i2.push(o2);
39011        var s2 = i2[0] / 40 | 0, u3 = i2[0] % 40;
39012        if (n3 = r4 ? i2 : [s2, u3].concat(i2.slice(1)), t4) {
39013          var c3 = t4[n3.join(" ")];
39014          void 0 === c3 && (c3 = t4[n3.join(".")]), void 0 !== c3 && (n3 = c3);
39015        }
39016        return n3;
39017      }, c2.prototype._decodeTime = function(e4, t4) {
39018        var r4, n3, i2, o2, a2, s2, u3 = e4.raw().toString();
39019        if ("gentime" === t4)
39020          r4 = 0 | u3.slice(0, 4), n3 = 0 | u3.slice(4, 6), i2 = 0 | u3.slice(6, 8), o2 = 0 | u3.slice(8, 10), a2 = 0 | u3.slice(10, 12), s2 = 0 | u3.slice(12, 14);
39021        else {
39022          if ("utctime" !== t4)
39023            return e4.error("Decoding " + t4 + " time is not supported yet");
39024          r4 = 0 | u3.slice(0, 2), n3 = 0 | u3.slice(2, 4), i2 = 0 | u3.slice(4, 6), o2 = 0 | u3.slice(6, 8), a2 = 0 | u3.slice(8, 10), s2 = 0 | u3.slice(10, 12), r4 = r4 < 70 ? 2e3 + r4 : 1900 + r4;
39025        }
39026        return Date.UTC(r4, n3 - 1, i2, o2, a2, s2, 0);
39027      }, c2.prototype._decodeNull = function() {
39028        return null;
39029      }, c2.prototype._decodeBool = function(e4) {
39030        var t4 = e4.readUInt8();
39031        return e4.isError(t4) ? t4 : 0 !== t4;
39032      }, c2.prototype._decodeInt = function(e4, t4) {
39033        var r4 = e4.raw(), n3 = new i(r4);
39034        return t4 && (n3 = t4[n3.toString(10)] || n3), n3;
39035      }, c2.prototype._use = function(e4, t4) {
39036        return "function" == typeof e4 && (e4 = e4(t4)), e4._getDecoder("der").tree;
39037      };
39038    }, 1500: (e3, t3, r3) => {
39039      var n2 = t3;
39040      n2.der = r3(2387), n2.pem = r3(529);
39041    }, 529: (e3, t3, r3) => {
39042      var n2 = r3(1736), i = r3(1755).Buffer, o = r3(2387);
39043      function a(e4) {
39044        o.call(this, e4), this.enc = "pem";
39045      }
39046      n2(a, o), e3.exports = a, a.prototype.decode = function(e4, t4) {
39047        for (var r4 = e4.toString().split(/[\r\n]+/g), n3 = t4.label.toUpperCase(), a2 = /^-----(BEGIN|END) ([^-]+)-----$/, s = -1, u2 = -1, c2 = 0; c2 < r4.length; c2++) {
39048          var f2 = r4[c2].match(a2);
39049          if (null !== f2 && f2[2] === n3) {
39050            if (-1 !== s) {
39051              if ("END" !== f2[1])
39052                break;
39053              u2 = c2;
39054              break;
39055            }
39056            if ("BEGIN" !== f2[1])
39057              break;
39058            s = c2;
39059          }
39060        }
39061        if (-1 === s || -1 === u2)
39062          throw new Error("PEM section not found for: " + n3);
39063        var d2 = r4.slice(s + 1, u2).join("");
39064        d2.replace(/[^a-z0-9+/=]+/gi, "");
39065        var l2 = i.from(d2, "base64");
39066        return o.prototype.decode.call(this, l2, t4);
39067      };
39068    }, 1068: (e3, t3, r3) => {
39069      var n2 = r3(1736), i = r3(1755).Buffer, o = r3(1371), a = r3(6520);
39070      function s(e4) {
39071        this.enc = "der", this.name = e4.name, this.entity = e4, this.tree = new u2(), this.tree._init(e4.body);
39072      }
39073      function u2(e4) {
39074        o.call(this, "der", e4);
39075      }
39076      function c2(e4) {
39077        return e4 < 10 ? "0" + e4 : e4;
39078      }
39079      e3.exports = s, s.prototype.encode = function(e4, t4) {
39080        return this.tree._encode(e4, t4).join();
39081      }, n2(u2, o), u2.prototype._encodeComposite = function(e4, t4, r4, n3) {
39082        var o2 = function(e5, t5, r5, n4) {
39083          var i2;
39084          if ("seqof" === e5 ? e5 = "seq" : "setof" === e5 && (e5 = "set"), a.tagByName.hasOwnProperty(e5))
39085            i2 = a.tagByName[e5];
39086          else {
39087            if ("number" != typeof e5 || (0 | e5) !== e5)
39088              return n4.error("Unknown tag: " + e5);
39089            i2 = e5;
39090          }
39091          return i2 >= 31 ? n4.error("Multi-octet tag encoding unsupported") : (t5 || (i2 |= 32), i2 |= a.tagClassByName[r5 || "universal"] << 6);
39092        }(e4, t4, r4, this.reporter);
39093        if (n3.length < 128) {
39094          var s2 = i.alloc(2);
39095          return s2[0] = o2, s2[1] = n3.length, this._createEncoderBuffer([s2, n3]);
39096        }
39097        for (var u3 = 1, c3 = n3.length; c3 >= 256; c3 >>= 8)
39098          u3++;
39099        var f2 = i.alloc(2 + u3);
39100        f2[0] = o2, f2[1] = 128 | u3;
39101        for (var d2 = 1 + u3, l2 = n3.length; l2 > 0; d2--, l2 >>= 8)
39102          f2[d2] = 255 & l2;
39103        return this._createEncoderBuffer([f2, n3]);
39104      }, u2.prototype._encodeStr = function(e4, t4) {
39105        if ("bitstr" === t4)
39106          return this._createEncoderBuffer([0 | e4.unused, e4.data]);
39107        if ("bmpstr" === t4) {
39108          for (var r4 = i.alloc(2 * e4.length), n3 = 0; n3 < e4.length; n3++)
39109            r4.writeUInt16BE(e4.charCodeAt(n3), 2 * n3);
39110          return this._createEncoderBuffer(r4);
39111        }
39112        return "numstr" === t4 ? this._isNumstr(e4) ? this._createEncoderBuffer(e4) : this.reporter.error("Encoding of string type: numstr supports only digits and space") : "printstr" === t4 ? this._isPrintstr(e4) ? this._createEncoderBuffer(e4) : this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark") : /str$/.test(t4) || "objDesc" === t4 ? this._createEncoderBuffer(e4) : this.reporter.error("Encoding of string type: " + t4 + " unsupported");
39113      }, u2.prototype._encodeObjid = function(e4, t4, r4) {
39114        if ("string" == typeof e4) {
39115          if (!t4)
39116            return this.reporter.error("string objid given, but no values map found");
39117          if (!t4.hasOwnProperty(e4))
39118            return this.reporter.error("objid not found in values map");
39119          e4 = t4[e4].split(/[\s.]+/g);
39120          for (var n3 = 0; n3 < e4.length; n3++)
39121            e4[n3] |= 0;
39122        } else if (Array.isArray(e4)) {
39123          e4 = e4.slice();
39124          for (var o2 = 0; o2 < e4.length; o2++)
39125            e4[o2] |= 0;
39126        }
39127        if (!Array.isArray(e4))
39128          return this.reporter.error("objid() should be either array or string, got: " + JSON.stringify(e4));
39129        if (!r4) {
39130          if (e4[1] >= 40)
39131            return this.reporter.error("Second objid identifier OOB");
39132          e4.splice(0, 2, 40 * e4[0] + e4[1]);
39133        }
39134        for (var a2 = 0, s2 = 0; s2 < e4.length; s2++) {
39135          var u3 = e4[s2];
39136          for (a2++; u3 >= 128; u3 >>= 7)
39137            a2++;
39138        }
39139        for (var c3 = i.alloc(a2), f2 = c3.length - 1, d2 = e4.length - 1; d2 >= 0; d2--) {
39140          var l2 = e4[d2];
39141          for (c3[f2--] = 127 & l2; (l2 >>= 7) > 0; )
39142            c3[f2--] = 128 | 127 & l2;
39143        }
39144        return this._createEncoderBuffer(c3);
39145      }, u2.prototype._encodeTime = function(e4, t4) {
39146        var r4, n3 = new Date(e4);
39147        return "gentime" === t4 ? r4 = [c2(n3.getUTCFullYear()), c2(n3.getUTCMonth() + 1), c2(n3.getUTCDate()), c2(n3.getUTCHours()), c2(n3.getUTCMinutes()), c2(n3.getUTCSeconds()), "Z"].join("") : "utctime" === t4 ? r4 = [c2(n3.getUTCFullYear() % 100), c2(n3.getUTCMonth() + 1), c2(n3.getUTCDate()), c2(n3.getUTCHours()), c2(n3.getUTCMinutes()), c2(n3.getUTCSeconds()), "Z"].join("") : this.reporter.error("Encoding " + t4 + " time is not supported yet"), this._encodeStr(r4, "octstr");
39148      }, u2.prototype._encodeNull = function() {
39149        return this._createEncoderBuffer("");
39150      }, u2.prototype._encodeInt = function(e4, t4) {
39151        if ("string" == typeof e4) {
39152          if (!t4)
39153            return this.reporter.error("String int or enum given, but no values map");
39154          if (!t4.hasOwnProperty(e4))
39155            return this.reporter.error("Values map doesn't contain: " + JSON.stringify(e4));
39156          e4 = t4[e4];
39157        }
39158        if ("number" != typeof e4 && !i.isBuffer(e4)) {
39159          var r4 = e4.toArray();
39160          !e4.sign && 128 & r4[0] && r4.unshift(0), e4 = i.from(r4);
39161        }
39162        if (i.isBuffer(e4)) {
39163          var n3 = e4.length;
39164          0 === e4.length && n3++;
39165          var o2 = i.alloc(n3);
39166          return e4.copy(o2), 0 === e4.length && (o2[0] = 0), this._createEncoderBuffer(o2);
39167        }
39168        if (e4 < 128)
39169          return this._createEncoderBuffer(e4);
39170        if (e4 < 256)
39171          return this._createEncoderBuffer([0, e4]);
39172        for (var a2 = 1, s2 = e4; s2 >= 256; s2 >>= 8)
39173          a2++;
39174        for (var u3 = new Array(a2), c3 = u3.length - 1; c3 >= 0; c3--)
39175          u3[c3] = 255 & e4, e4 >>= 8;
39176        return 128 & u3[0] && u3.unshift(0), this._createEncoderBuffer(i.from(u3));
39177      }, u2.prototype._encodeBool = function(e4) {
39178        return this._createEncoderBuffer(e4 ? 255 : 0);
39179      }, u2.prototype._use = function(e4, t4) {
39180        return "function" == typeof e4 && (e4 = e4(t4)), e4._getEncoder("der").tree;
39181      }, u2.prototype._skipDefault = function(e4, t4, r4) {
39182        var n3, i2 = this._baseState;
39183        if (null === i2.default)
39184          return false;
39185        var o2 = e4.join();
39186        if (void 0 === i2.defaultBuffer && (i2.defaultBuffer = this._encodeValue(i2.default, t4, r4).join()), o2.length !== i2.defaultBuffer.length)
39187          return false;
39188        for (n3 = 0; n3 < o2.length; n3++)
39189          if (o2[n3] !== i2.defaultBuffer[n3])
39190            return false;
39191        return true;
39192      };
39193    }, 7506: (e3, t3, r3) => {
39194      var n2 = t3;
39195      n2.der = r3(1068), n2.pem = r3(8520);
39196    }, 8520: (e3, t3, r3) => {
39197      var n2 = r3(1736), i = r3(1068);
39198      function o(e4) {
39199        i.call(this, e4), this.enc = "pem";
39200      }
39201      n2(o, i), e3.exports = o, o.prototype.encode = function(e4, t4) {
39202        for (var r4 = i.prototype.encode.call(this, e4).toString("base64"), n3 = ["-----BEGIN " + t4.label + "-----"], o2 = 0; o2 < r4.length; o2 += 64)
39203          n3.push(r4.slice(o2, o2 + 64));
39204        return n3.push("-----END " + t4.label + "-----"), n3.join("\n");
39205      };
39206    }, 3894: (e3, t3, r3) => {
39207      var n2 = r3(8847)(r3(3355)), i = r3(3103);
39208      function o(e4, t4) {
39209        if (e4 === t4)
39210          return 0;
39211        for (var r4 = e4.length, n3 = t4.length, i2 = 0, o2 = Math.min(r4, n3); i2 < o2; ++i2)
39212          if (e4[i2] !== t4[i2]) {
39213            r4 = e4[i2], n3 = t4[i2];
39214            break;
39215          }
39216        return r4 < n3 ? -1 : n3 < r4 ? 1 : 0;
39217      }
39218      function a(e4) {
39219        return r3.g.Buffer && "function" == typeof r3.g.Buffer.isBuffer ? r3.g.Buffer.isBuffer(e4) : !(null == e4 || !e4._isBuffer);
39220      }
39221      var s = r3(9954), u2 = Object.prototype.hasOwnProperty, c2 = Array.prototype.slice, f2 = "foo" === function() {
39222      }.name;
39223      function d2(e4) {
39224        return Object.prototype.toString.call(e4);
39225      }
39226      function l2(e4) {
39227        return !a(e4) && "function" == typeof r3.g.ArrayBuffer && ("function" == typeof ArrayBuffer.isView ? ArrayBuffer.isView(e4) : !!e4 && (e4 instanceof DataView || !!(e4.buffer && e4.buffer instanceof ArrayBuffer)));
39228      }
39229      var h2 = e3.exports = g2, p2 = /\s*function\s+([^\(\s]*)\s*/;
39230      function b2(e4) {
39231        if (s.isFunction(e4)) {
39232          if (f2)
39233            return e4.name;
39234          var t4 = e4.toString().match(p2);
39235          return t4 && t4[1];
39236        }
39237      }
39238      function y2(e4, t4) {
39239        return "string" == typeof e4 ? e4.length < t4 ? e4 : e4.slice(0, t4) : e4;
39240      }
39241      function m2(e4) {
39242        if (f2 || !s.isFunction(e4))
39243          return s.inspect(e4);
39244        var t4 = b2(e4);
39245        return "[Function" + (t4 ? ": " + t4 : "") + "]";
39246      }
39247      function v2(e4, t4, r4, n3, i2) {
39248        throw new h2.AssertionError({ message: r4, actual: e4, expected: t4, operator: n3, stackStartFunction: i2 });
39249      }
39250      function g2(e4, t4) {
39251        e4 || v2(e4, true, t4, "==", h2.ok);
39252      }
39253      function w2(e4, t4, r4, i2) {
39254        if (e4 === t4)
39255          return true;
39256        if (a(e4) && a(t4))
39257          return 0 === o(e4, t4);
39258        if (s.isDate(e4) && s.isDate(t4))
39259          return e4.getTime() === t4.getTime();
39260        if (s.isRegExp(e4) && s.isRegExp(t4))
39261          return e4.source === t4.source && e4.global === t4.global && e4.multiline === t4.multiline && e4.lastIndex === t4.lastIndex && e4.ignoreCase === t4.ignoreCase;
39262        if (null !== e4 && "object" === (0, n2.default)(e4) || null !== t4 && "object" === (0, n2.default)(t4)) {
39263          if (l2(e4) && l2(t4) && d2(e4) === d2(t4) && !(e4 instanceof Float32Array || e4 instanceof Float64Array))
39264            return 0 === o(new Uint8Array(e4.buffer), new Uint8Array(t4.buffer));
39265          if (a(e4) !== a(t4))
39266            return false;
39267          var u3 = (i2 = i2 || { actual: [], expected: [] }).actual.indexOf(e4);
39268          return -1 !== u3 && u3 === i2.expected.indexOf(t4) || (i2.actual.push(e4), i2.expected.push(t4), function(e5, t5, r5, n3) {
39269            if (null == e5 || null == t5)
39270              return false;
39271            if (s.isPrimitive(e5) || s.isPrimitive(t5))
39272              return e5 === t5;
39273            if (r5 && Object.getPrototypeOf(e5) !== Object.getPrototypeOf(t5))
39274              return false;
39275            var i3 = A2(e5), o2 = A2(t5);
39276            if (i3 && !o2 || !i3 && o2)
39277              return false;
39278            if (i3)
39279              return w2(e5 = c2.call(e5), t5 = c2.call(t5), r5);
39280            var a2, u4, f3 = S2(e5), d3 = S2(t5);
39281            if (f3.length !== d3.length)
39282              return false;
39283            for (f3.sort(), d3.sort(), u4 = f3.length - 1; u4 >= 0; u4--)
39284              if (f3[u4] !== d3[u4])
39285                return false;
39286            for (u4 = f3.length - 1; u4 >= 0; u4--)
39287              if (!w2(e5[a2 = f3[u4]], t5[a2], r5, n3))
39288                return false;
39289            return true;
39290          }(e4, t4, r4, i2));
39291        }
39292        return r4 ? e4 === t4 : e4 == t4;
39293      }
39294      function A2(e4) {
39295        return "[object Arguments]" == Object.prototype.toString.call(e4);
39296      }
39297      function k2(e4, t4) {
39298        if (!e4 || !t4)
39299          return false;
39300        if ("[object RegExp]" == Object.prototype.toString.call(t4))
39301          return t4.test(e4);
39302        try {
39303          if (e4 instanceof t4)
39304            return true;
39305        } catch (e5) {
39306        }
39307        return !Error.isPrototypeOf(t4) && true === t4.call({}, e4);
39308      }
39309      function _(e4, t4, r4, n3) {
39310        var i2;
39311        if ("function" != typeof t4)
39312          throw new TypeError('"block" argument must be a function');
39313        "string" == typeof r4 && (n3 = r4, r4 = null), i2 = function(e5) {
39314          var t5;
39315          try {
39316            e5();
39317          } catch (e6) {
39318            t5 = e6;
39319          }
39320          return t5;
39321        }(t4), n3 = (r4 && r4.name ? " (" + r4.name + ")." : ".") + (n3 ? " " + n3 : "."), e4 && !i2 && v2(i2, r4, "Missing expected exception" + n3);
39322        var o2 = "string" == typeof n3, a2 = !e4 && i2 && !r4;
39323        if ((!e4 && s.isError(i2) && o2 && k2(i2, r4) || a2) && v2(i2, r4, "Got unwanted exception" + n3), e4 && i2 && r4 && !k2(i2, r4) || !e4 && i2)
39324          throw i2;
39325      }
39326      h2.AssertionError = function(e4) {
39327        this.name = "AssertionError", this.actual = e4.actual, this.expected = e4.expected, this.operator = e4.operator, e4.message ? (this.message = e4.message, this.generatedMessage = false) : (this.message = function(e5) {
39328          return y2(m2(e5.actual), 128) + " " + e5.operator + " " + y2(m2(e5.expected), 128);
39329        }(this), this.generatedMessage = true);
39330        var t4 = e4.stackStartFunction || v2;
39331        if (Error.captureStackTrace)
39332          Error.captureStackTrace(this, t4);
39333        else {
39334          var r4 = new Error();
39335          if (r4.stack) {
39336            var n3 = r4.stack, i2 = b2(t4), o2 = n3.indexOf("\n" + i2);
39337            if (o2 >= 0) {
39338              var a2 = n3.indexOf("\n", o2 + 1);
39339              n3 = n3.substring(a2 + 1);
39340            }
39341            this.stack = n3;
39342          }
39343        }
39344      }, s.inherits(h2.AssertionError, Error), h2.fail = v2, h2.ok = g2, h2.equal = function(e4, t4, r4) {
39345        e4 != t4 && v2(e4, t4, r4, "==", h2.equal);
39346      }, h2.notEqual = function(e4, t4, r4) {
39347        e4 == t4 && v2(e4, t4, r4, "!=", h2.notEqual);
39348      }, h2.deepEqual = function(e4, t4, r4) {
39349        w2(e4, t4, false) || v2(e4, t4, r4, "deepEqual", h2.deepEqual);
39350      }, h2.deepStrictEqual = function(e4, t4, r4) {
39351        w2(e4, t4, true) || v2(e4, t4, r4, "deepStrictEqual", h2.deepStrictEqual);
39352      }, h2.notDeepEqual = function(e4, t4, r4) {
39353        w2(e4, t4, false) && v2(e4, t4, r4, "notDeepEqual", h2.notDeepEqual);
39354      }, h2.notDeepStrictEqual = function e4(t4, r4, n3) {
39355        w2(t4, r4, true) && v2(t4, r4, n3, "notDeepStrictEqual", e4);
39356      }, h2.strictEqual = function(e4, t4, r4) {
39357        e4 !== t4 && v2(e4, t4, r4, "===", h2.strictEqual);
39358      }, h2.notStrictEqual = function(e4, t4, r4) {
39359        e4 === t4 && v2(e4, t4, r4, "!==", h2.notStrictEqual);
39360      }, h2.throws = function(e4, t4, r4) {
39361        _(true, e4, t4, r4);
39362      }, h2.doesNotThrow = function(e4, t4, r4) {
39363        _(false, e4, t4, r4);
39364      }, h2.ifError = function(e4) {
39365        if (e4)
39366          throw e4;
39367      }, h2.strict = i(function e4(t4, r4) {
39368        t4 || v2(t4, true, r4, "==", e4);
39369      }, h2, { equal: h2.strictEqual, deepEqual: h2.deepStrictEqual, notEqual: h2.notStrictEqual, notDeepEqual: h2.notDeepStrictEqual }), h2.strict.strict = h2.strict;
39370      var S2 = Object.keys || function(e4) {
39371        var t4 = [];
39372        for (var r4 in e4)
39373          u2.call(e4, r4) && t4.push(r4);
39374        return t4;
39375      };
39376    }, 4074: (e3) => {
39377      "function" == typeof Object.create ? e3.exports = function(e4, t3) {
39378        e4.super_ = t3, e4.prototype = Object.create(t3.prototype, { c
39378onstructor: { value: e4, enumerable: false, writable: true, configurable: true } });
39379      } : e3.exports = function(e4, t3) {
39380        e4.super_ = t3;
39381        var r3 = function() {
39382        };
39383        r3.prototype = t3.prototype, e4.prototype = new r3(), e4.prototype.constructor = e4;
39384      };
39385    }, 6732: (e3, t3, r3) => {
39386      var n2 = r3(8847)(r3(3355));
39387      e3.exports = function(e4) {
39388        return e4 && "object" === (0, n2.default)(e4) && "function" == typeof e4.copy && "function" == typeof e4.fill && "function" == typeof e4.readUInt8;
39389      };
39390    }, 9954: (e3, t3, r3) => {
39391      var n2 = r3(9142), i = r3(8847)(r3(3355)), o = /%[sdj%]/g;
39392      t3.format = function(e4) {
39393        if (!v2(e4)) {
39394          for (var t4 = [], r4 = 0; r4 < arguments.length; r4++)
39395            t4.push(u2(arguments[r4]));
39396          return t4.join(" ");
39397        }
39398        r4 = 1;
39399        for (var n3 = arguments, i2 = n3.length, a2 = String(e4).replace(o, function(e5) {
39400          if ("%%" === e5)
39401            return "%";
39402          if (r4 >= i2)
39403            return e5;
39404          switch (e5) {
39405            case "%s":
39406              return String(n3[r4++]);
39407            case "%d":
39408              return Number(n3[r4++]);
39409            case "%j":
39410              try {
39411                return JSON.stringify(n3[r4++]);
39412              } catch (e6) {
39413                return "[Circular]";
39414              }
39415            default:
39416              return e5;
39417          }
39418        }), s2 = n3[r4]; r4 < i2; s2 = n3[++r4])
39419          y2(s2) || !A2(s2) ? a2 += " " + s2 : a2 += " " + u2(s2);
39420        return a2;
39421      }, t3.deprecate = function(e4, i2) {
39422        if (g2(r3.g.process))
39423          return function() {
39424            return t3.deprecate(e4, i2).apply(this, arguments);
39425          };
39426        if (true === n2.noDeprecation)
39427          return e4;
39428        var o2 = false;
39429        return function() {
39430          if (!o2) {
39431            if (n2.throwDeprecation)
39432              throw new Error(i2);
39433            n2.traceDeprecation ? console.trace(i2) : console.error(i2), o2 = true;
39434          }
39435          return e4.apply(this, arguments);
39436        };
39437      };
39438      var a, s = {};
39439      function u2(e4, r4) {
39440        var n3 = { seen: [], stylize: f2 };
39441        return arguments.length >= 3 && (n3.depth = arguments[2]), arguments.length >= 4 && (n3.colors = arguments[3]), b2(r4) ? n3.showHidden = r4 : r4 && t3._extend(n3, r4), g2(n3.showHidden) && (n3.showHidden = false), g2(n3.depth) && (n3.depth = 2), g2(n3.colors) && (n3.colors = false), g2(n3.customInspect) && (n3.customInspect = true), n3.colors && (n3.stylize = c2), d2(n3, e4, n3.depth);
39442      }
39443      function c2(e4, t4) {
39444        var r4 = u2.styles[t4];
39445        return r4 ? "\x1B[" + u2.colors[r4][0] + "m" + e4 + "\x1B[" + u2.colors[r4][1] + "m" : e4;
39446      }
39447      function f2(e4, t4) {
39448        return e4;
39449      }
39450      function d2(e4, r4, n3) {
39451        if (e4.customInspect && r4 && S2(r4.inspect) && r4.inspect !== t3.inspect && (!r4.constructor || r4.constructor.prototype !== r4)) {
39452          var i2 = r4.inspect(n3, e4);
39453          return v2(i2) || (i2 = d2(e4, i2, n3)), i2;
39454        }
39455        var o2 = function(e5, t4) {
39456          if (g2(t4))
39457            return e5.stylize("undefined", "undefined");
39458          if (v2(t4)) {
39459            var r5 = "'" + JSON.stringify(t4).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
39460            return e5.stylize(r5, "string");
39461          }
39462          return m2(t4) ? e5.stylize("" + t4, "number") : b2(t4) ? e5.stylize("" + t4, "boolean") : y2(t4) ? e5.stylize("null", "null") : void 0;
39463        }(e4, r4);
39464        if (o2)
39465          return o2;
39466        var a2 = Object.keys(r4), s2 = function(e5) {
39467          var t4 = {};
39468          return e5.forEach(function(e6, r5) {
39469            t4[e6] = true;
39470          }), t4;
39471        }(a2);
39472        if (e4.showHidden && (a2 = Object.getOwnPropertyNames(r4)), _(r4) && (a2.indexOf("message") >= 0 || a2.indexOf("description") >= 0))
39473          return l2(r4);
39474        if (0 === a2.length) {
39475          if (S2(r4)) {
39476            var u3 = r4.name ? ": " + r4.name : "";
39477            return e4.stylize("[Function" + u3 + "]", "special");
39478          }
39479          if (w2(r4))
39480            return e4.stylize(RegExp.prototype.toString.call(r4), "regexp");
39481          if (k2(r4))
39482            return e4.stylize(Date.prototype.toString.call(r4), "date");
39483          if (_(r4))
39484            return l2(r4);
39485        }
39486        var c3, f3 = "", A3 = false, x3 = ["{", "}"];
39487        return p2(r4) && (A3 = true, x3 = ["[", "]"]), S2(r4) && (f3 = " [Function" + (r4.name ? ": " + r4.name : "") + "]"), w2(r4) && (f3 = " " + RegExp.prototype.toString.call(r4)), k2(r4) && (f3 = " " + Date.prototype.toUTCString.call(r4)), _(r4) && (f3 = " " + l2(r4)), 0 !== a2.length || A3 && 0 != r4.length ? n3 < 0 ? w2(r4) ? e4.stylize(RegExp.prototype.toString.call(r4), "regexp") : e4.stylize("[Object]", "special") : (e4.seen.push(r4), c3 = A3 ? function(e5, t4, r5, n4, i3) {
39488          for (var o3 = [], a3 = 0, s3 = t4.length; a3 < s3; ++a3)
39489            B2(t4, String(a3)) ? o3.push(h2(e5, t4, r5, n4, String(a3), true)) : o3.push("");
39490          return i3.forEach(function(i4) {
39491            i4.match(/^\d+$/) || o3.push(h2(e5, t4, r5, n4, i4, true));
39492          }), o3;
39493        }(e4, r4, n3, s2, a2) : a2.map(function(t4) {
39494          return h2(e4, r4, n3, s2, t4, A3);
39495        }), e4.seen.pop(), function(e5, t4, r5) {
39496          return e5.reduce(function(e6, t5) {
39497            return t5.indexOf("\n"), e6 + t5.replace(/\u001b\[\d\d?m/g, "").length + 1;
39498          }, 0) > 60 ? r5[0] + ("" === t4 ? "" : t4 + "\n ") + " " + e5.join(",\n  ") + " " + r5[1] : r5[0] + t4 + " " + e5.join(", ") + " " + r5[1];
39499        }(c3, f3, x3)) : x3[0] + f3 + x3[1];
39500      }
39501      function l2(e4) {
39502        return "[" + Error.prototype.toString.call(e4) + "]";
39503      }
39504      function h2(e4, t4, r4, n3, i2, o2) {
39505        var a2, s2, u3;
39506        if ((u3 = Object.getOwnPropertyDescriptor(t4, i2) || { value: t4[i2] }).get ? s2 = u3.set ? e4.stylize("[Getter/Setter]", "special") : e4.stylize("[Getter]", "special") : u3.set && (s2 = e4.stylize("[
vendor: 3,257 bytes, lines 39506-39574
39506Setter]", "special")), B2(n3, i2) || (a2 = "[" + i2 + "]"), s2 || (e4.seen.indexOf(u3.value) < 0 ? (s2 = y2(r4) ? d2(e4, u3.value, null) : d2(e4, u3.value, r4 - 1)).indexOf("\n") > -1 && (s2 = o2 ? s2.split("\n").map(function(e5) {
39507          return "  " + e5;
39508        }).join("\n").substr(2) : "\n" + s2.split("\n").map(function(e5) {
39509          return "   " + e5;
39510        }).join("\n")) : s2 = e4.stylize("[Circular]", "special")), g2(a2)) {
39511          if (o2 && i2.match(/^\d+$/))
39512            return s2;
39513          (a2 = JSON.stringify("" + i2)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (a2 = a2.substr(1, a2.length - 2), a2 = e4.stylize(a2, "name")) : (a2 = a2.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), a2 = e4.stylize(a2, "string"));
39514        }
39515        return a2 + ": " + s2;
39516      }
39517      function p2(e4) {
39518        return Array.isArray(e4);
39519      }
39520      function b2(e4) {
39521        return "boolean" == typeof e4;
39522      }
39523      function y2(e4) {
39524        return null === e4;
39525      }
39526      function m2(e4) {
39527        return "number" == typeof e4;
39528      }
39529      function v2(e4) {
39530        return "string" == typeof e4;
39531      }
39532      function g2(e4) {
39533        return void 0 === e4;
39534      }
39535      function w2(e4) {
39536        return A2(e4) && "[object RegExp]" === x2(e4);
39537      }
39538      function A2(e4) {
39539        return "object" === (0, i.default)(e4) && null !== e4;
39540      }
39541      function k2(e4) {
39542        return A2(e4) && "[object Date]" === x2(e4);
39543      }
39544      function _(e4) {
39545        return A2(e4) && ("[object Error]" === x2(e4) || e4 instanceof Error);
39546      }
39547      function S2(e4) {
39548        return "function" == typeof e4;
39549      }
39550      function x2(e4) {
39551        return Object.prototype.toString.call(e4);
39552      }
39553      function E2(e4) {
39554        return e4 < 10 ? "0" + e4.toString(10) : e4.toString(10);
39555      }
39556      t3.debuglog = function(e4) {
39557        if (g2(a) && (a = n2.env.NODE_DEBUG || ""), e4 = e4.toUpperCase(), !s[e4])
39558          if (new RegExp("\\b" + e4 + "\\b", "i").test(a)) {
39559            var r4 = n2.pid;
39560            s[e4] = function() {
39561              var n3 = t3.format.apply(t3, arguments);
39562              console.error("%s %d: %s", e4, r4, n3);
39563            };
39564          } else
39565            s[e4] = function() {
39566            };
39567        return s[e4];
39568      }, t3.inspect = u2, u2.colors = { bold: [1, 22], italic: [3, 23], underline: [4, 24], inverse: [7, 27], white: [37, 39], grey: [90, 39], black: [30, 39], blue: [34, 39], cyan: [36, 39], green: [32, 39], magenta: [35, 39], red: [31, 39], yellow: [33, 39] }, u2.styles = { special: "cyan", number: "yellow", boolean: "yellow", undefined: "grey", null: "bold", string: "green", date: "magenta", regexp: "red" }, t3.isArray = p2, t3.isBoolean = b2, t3.isNull = y2, t3.isNullOrUndefined = function(e4) {
39569        return null == e4;
39570      }, t3.isNumber = m2, t3.isString = v2, t3.isSymbol = function(e4) {
39571        return "symbol" === (0, i.default)(e4);
39572      }, t3.isUndefined = g2, t3.isRegExp = w2, t3.isObject = A2, t3.isDate = k2, t3.isError = _, t3.isFunction = S2, t3.isPrimitive = function(e4) {
39573        return null === e4 || "boolean" == typeof e4 || "number" == typeof e4 || "string" == typeof e4 || "symbol" === (0, i.default)(e4) || void 0 === e4;
39574      }
39574, t3.isBuffer = r3(6732);
39575      var P2 = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
39576      function O2() {
39577        var e4 = new Date(), t4 = [E2(e4.getHours()), E2(e4.getMinutes()), E2(e4.getSeconds())].join(":");
39578        return [e4.getDate(), P2[e4.getMonth()], t4].join(" ");
39579      }
39580      function B2(e4, t4) {
39581        return Object.prototype.hasOwnProperty.call(e4, t4);
39582      }
39583      t3.log = function() {
39584        console.log("%s - %s", O2(), t3.format.apply(t3, arguments));
39585      }, t3.inherits = r3(4074), t3._extend = function(e4, t4) {
39586        if (!t4 || !A2(t4))
39587          return e4;
39588        for (var r4 = Object.keys(t4), n3 = r4.length; n3--; )
39589          e4[r4[n3]] = t4[r4[n3]];
39590        return e4;
39591      };
39592    }, 7548: (e3, t3, r3) => {
39593      var n2 = r3(8850).Buffer;
39594      e3.exports = function(e4) {
39595        if (e4.length >= 255)
39596          throw new TypeError("Alphabet too long");
39597        for (var t4 = new Uint8Array(256), r4 = 0; r4 < t4.length; r4++)
39598          t4[r4] = 255;
39599        for (var i = 0; i < e4.length; i++) {
39600          var o = e4.charAt(i), a = o.charCodeAt(0);
39601          if (255 !== t4[a])
39602            throw new TypeError(o + " is ambiguous");
39603          t4[a] = i;
39604        }
39605        var s = e4.length, u2 = e4.charAt(0), c2 = Math.log(s) / Math.log(256), f2 = Math.log(256) / Math.log(s);
39606        function d2(e5) {
39607          if ("string" != typeof e5)
39608            throw new TypeError("Expected String");
39609          if (0 === e5.length)
39610            return n2.alloc(0);
39611          for (var r5 = 0, i2 = 0, o2 = 0; e5[r5] === u2; )
39612            i2++, r5++;
39613          for (var a2 = (e5.length - r5) * c2 + 1 >>> 0, f3 = new Uint8Array(a2); e5[r5]; ) {
39614            var d3 = t4[e5.charCodeAt(r5)];
39615            if (255 === d3)
39616              return;
39617            for (var l2 = 0, h2 = a2 - 1; (0 !== d3 || l2 < o2) && -1 !== h2; h2--, l2++)
39618              d3 += s * f3[h2] >>> 0, f3[h2] = d3 % 256 >>> 0, d3 = d3 / 256 >>> 0;
39619            if (0 !== d3)
39620              throw new Error("Non-zero carry");
39621            o2 = l2, r5++;
39622          }
39623          for (var p2 = a2 - o2; p2 !== a2 && 0 === f3[p2]; )
39624            p2++;
39625          var b2 = n2.allocUnsafe(i2 + (a2 - p2));
39626          b2.fill(0, 0, i2);
39627          for (var y2 = i2; p2 !== a2; )
39628            b2[y2++] = f3[p2++];
39629          return b2;
39630        }
39631        return { encode: function(t5) {
39632          if ((Array.isArray(t5) || t5 instanceof Uint8Array) && (t5 = n2.from(t5)), !n2.isBuffer(t5))
39633            throw new TypeError("Expected Buffer");
39634          if (0 === t5.length)
39635            return "";
39636          for (var r5 = 0, i2 = 0, o2 = 0, a2 = t5.length; o2 !== a2 && 0 === t5[o2]; )
39637            o2++, r5++;
39638          for (var c3 = (a2 - o2) * f2 + 1 >>> 0, d3 = new Uint8Array(c3); o2 !== a2; ) {
39639            for (var l2 = t5[o2], h2 = 0, p2 = c3 - 1; (0 !== l2 || h2 < i2) && -1 !== p2; p2--, h2++)
39640              l2 += 256 * d3[p2] >>> 0, d3[p2] = l2 % s >>> 0, l2 = l2 / s >>> 0;
39641            if (0 !== l2)
39642              throw new Error("Non-zero carry");
39643            i2 = h2, o2++;
39644          }
39645          for (var b2 = c3 - i2; b2 !== c3 && 0 === d3[b2]; )
39646            b2++;
39647          for (var y2 = u2.repeat(r5); b2 < c3; ++b2)
39648            y2 += e4.charAt(d3[b2]);
39649          return y2;
39650        }, decodeUnsafe: d2, decode: function(e5) {
39651          var t5 = d2(e5);
39652          if (t5)
39653            return t5;
39654          throw new Error("Non-base" + s + " character");
39655        } };
39656      };
39657    }, 4919: (e3, t3) => {
39658      t3.byteLength = function(e4) {
39659        var t4 = u2(e4), r4 = t4[0], n3 = t4[1];
39660        return 3 * (r4 + n3) / 4 - n3;
39661      }, t3.toByteArray = function(e4) {
39662        var t4, r4, o2 = u2(e4), a2 = o2[0], s2 = o2[1], c3 = new i(function(e5, t5, r5) {
39663          return 3 * (t5 + r5) / 4 - r5;
39664        }(0, a2, s2)), f2 = 0, d2 = s2 > 0 ? a2 - 4 : a2;
39665        for (r4 = 0; r4 < d2; r4 += 4)
39666          t4 = n2[e4.charCodeAt(r4)] << 18 | n2[e4.charCodeAt(r4 + 1)] << 12 | n2[e4.charCodeAt(r4 + 2)] << 6 | n2[e4.charCodeAt(r4 + 3)], c3[f2++] = t4 >> 16 & 255, c3[f2++] = t4 >> 8 & 255, c3[f2++] = 255 & t4;
39667        return 2 === s2 && (t4 = n2[e4.charCodeAt(r4)] << 2 | n2[e4.charCodeAt(r4 + 1)] >> 4, c3[f2++] = 255 & t4), 1 === s2 && (t4 = n2[e4.charCodeAt(r4)] << 10 | n2[e4.charCodeAt(r4 + 1)] << 4 | n2[e4.charCodeAt(r4 + 2)] >> 2, c3[f2++] = t4 >> 8 & 255, c3[f2++] = 255 & t4), c3;
39668      }, t3.fromByteArray = function(e4) {
39669        for (var t4, n3 = e4.length, i2 = n3 % 3, o2 = [], a2 = 16383, s2 = 0, u3 = n3 - i2; s2 < u3; s2 += a2)
39670          o2.push(c2(e4, s2, s2 + a2 > u3 ? u3 : s2 + a2));
39671        return 1 === i2 ? (t4 = e4[n3 - 1], o2.push(r3[t4 >> 2] + r3[t4 << 4 & 63] + "==")) : 2 === i2 && (t4 = (e4[n3 - 2] << 8) + e4[n3 - 1], o2.push(r3[t4 >> 10] + r3[t4 >> 4 & 63] + r3[t4 << 2 & 63] + "=")), o2.join("");
39672      };
39673      for (var r3 = [], n2 = [], i = "undefined" != typeof Uint8Array ? Uint8Array : Array, o = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
vendor: 85,929 bytes, lines 39673-40988
39673+/", a = 0, s = o.length; a < s; ++a)
39674        r3[a] = o[a], n2[o.charCodeAt(a)] = a;
39675      function u2(e4) {
39676        var t4 = e4.length;
39677        if (t4 % 4 > 0)
39678          throw new Error("Invalid string. Length must be a multiple of 4");
39679        var r4 = e4.indexOf("=");
39680        return -1 === r4 && (r4 = t4), [r4, r4 === t4 ? 0 : 4 - r4 % 4];
39681      }
39682      function c2(e4, t4, n3) {
39683        for (var i2, o2, a2 = [], s2 = t4; s2 < n3; s2 += 3)
39684          i2 = (e4[s2] << 16 & 16711680) + (e4[s2 + 1] << 8 & 65280) + (255 & e4[s2 + 2]), a2.push(r3[(o2 = i2) >> 18 & 63] + r3[o2 >> 12 & 63] + r3[o2 >> 6 & 63] + r3[63 & o2]);
39685        return a2.join("");
39686      }
39687      n2["-".charCodeAt(0)] = 62, n2["_".charCodeAt(0)] = 63;
39688    }, 1734: (e3, t3, r3) => {
39689      e3 = r3.nmd(e3);
39690      var n2 = r3(8847)(r3(3355));
39691      !function(e4, t4) {
39692        function i(e5, t5) {
39693          if (!e5)
39694            throw new Error(t5 || "Assertion failed");
39695        }
39696        function o(e5, t5) {
39697          e5.super_ = t5;
39698          var r4 = function() {
39699          };
39700          r4.prototype = t5.prototype, e5.prototype = new r4(), e5.prototype.constructor = e5;
39701        }
39702        function a(e5, t5, r4) {
39703          if (a.isBN(e5))
39704            return e5;
39705          this.negative = 0, this.words = null, this.length = 0, this.red = null, null !== e5 && ("le" !== t5 && "be" !== t5 || (r4 = t5, t5 = 10), this._init(e5 || 0, t5 || 10, r4 || "be"));
39706        }
39707        var s;
39708        "object" === (0, n2.default)(e4) ? e4.exports = a : (void 0).BN = a, a.BN = a, a.wordSize = 26;
39709        try {
39710          s = "undefined" != typeof window && void 0 !== window.Buffer ? window.Buffer : r3(9033).Buffer;
39711        } catch (e5) {
39712        }
39713        function u2(e5, t5) {
39714          var r4 = e5.charCodeAt(t5);
39715          return r4 >= 48 && r4 <= 57 ? r4 - 48 : r4 >= 65 && r4 <= 70 ? r4 - 55 : r4 >= 97 && r4 <= 102 ? r4 - 87 : void i(false, "Invalid character in " + e5);
39716        }
39717        function c2(e5, t5, r4) {
39718          var n3 = u2(e5, r4);
39719          return r4 - 1 >= t5 && (n3 |= u2(e5, r4 - 1) << 4), n3;
39720        }
39721        function f2(e5, t5, r4, n3) {
39722          for (var o2 = 0, a2 = 0, s2 = Math.min(e5.length, r4), u3 = t5; u3 < s2; u3++) {
39723            var c3 = e5.charCodeAt(u3) - 48;
39724            o2 *= n3, a2 = c3 >= 49 ? c3 - 49 + 10 : c3 >= 17 ? c3 - 17 + 10 : c3, i(c3 >= 0 && a2 < n3, "Invalid character"), o2 += a2;
39725          }
39726          return o2;
39727        }
39728        function d2(e5, t5) {
39729          e5.words = t5.words, e5.length = t5.length, e5.negative = t5.negative, e5.red = t5.red;
39730        }
39731        if (a.isBN = function(e5) {
39732          return e5 instanceof a || null !== e5 && "object" === (0, n2.default)(e5) && e5.constructor.wordSize === a.wordSize && Array.isArray(e5.words);
39733        }, a.max = function(e5, t5) {
39734          return e5.cmp(t5) > 0 ? e5 : t5;
39735        }, a.min = function(e5, t5) {
39736          return e5.cmp(t5) < 0 ? e5 : t5;
39737        }, a.prototype._init = function(e5, t5, r4) {
39738          if ("number" == typeof e5)
39739            return this._initNumber(e5, t5, r4);
39740          if ("object" === (0, n2.default)(e5))
39741            return this._initArray(e5, t5, r4);
39742          "hex" === t5 && (t5 = 16), i(t5 === (0 | t5) && t5 >= 2 && t5 <= 36);
39743          var o2 = 0;
39744          "-" === (e5 = e5.toString().replace(/\s+/g, ""))[0] && (o2++, this.negative = 1), o2 < e5.length && (16 === t5 ? this._parseHex(e5, o2, r4) : (this._parseBase(e5, t5, o2), "le" === r4 && this._initArray(this.toArray(), t5, r4)));
39745        }, a.prototype._initNumber = function(e5, t5, r4) {
39746          e5 < 0 && (this.negative = 1, e5 = -e5), e5 < 67108864 ? (this.words = [67108863 & e5], this.length = 1) : e5 < 4503599627370496 ? (this.words = [67108863 & e5, e5 / 67108864 & 67108863], this.length = 2) : (i(e5 < 9007199254740992), this.words = [67108863 & e5, e5 / 67108864 & 67108863, 1], this.length = 3), "le" === r4 && this._initArray(this.toArray(), t5, r4);
39747        }, a.prototype._initArray = function(e5, t5, r4) {
39748          if (i("number" == typeof e5.length), e5.length <= 0)
39749            return this.words = [0], this.length = 1, this;
39750          this.length = Math.ceil(e5.length / 3), this.words = new Array(this.length);
39751          for (var n3 = 0; n3 < this.length; n3++)
39752            this.words[n3] = 0;
39753          var o2, a2, s2 = 0;
39754          if ("be" === r4)
39755            for (n3 = e5.length - 1, o2 = 0; n3 >= 0; n3 -= 3)
39756              a2 = e5[n3] | e5[n3 - 1] << 8 | e5[n3 - 2] << 16, this.words[o2] |= a2 << s2 & 67108863, this.words[o2 + 1] = a2 >>> 26 - s2 & 67108863, (s2 += 24) >= 26 && (s2 -= 26, o2++);
39757          else if ("le" === r4)
39758            for (n3 = 0, o2 = 0; n3 < e5.length; n3 += 3)
39759              a2 = e5[n3] | e5[n3 + 1] << 8 | e5[n3 + 2] << 16, this.words[o2] |= a2 << s2 & 67108863, this.words[o2 + 1] = a2 >>> 26 - s2 & 67108863, (s2 += 24) >= 26 && (s2 -= 26, o2++);
39760          return this._strip();
39761        }, a.prototype._parseHex = function(e5, t5, r4) {
39762          this.length = Math.ceil((e5.length - t5) / 6), this.words = new Array(this.length);
39763          for (var n3 = 0; n3 < this.length; n3++)
39764            this.words[n3] = 0;
39765          var i2, o2 = 0, a2 = 0;
39766          if ("be" === r4)
39767            for (n3 = e5.length - 1; n3 >= t5; n3 -= 2)
39768              i2 = c2(e5, t5, n3) << o2, this.words[a2] |= 67108863 & i2, o2 >= 18 ? (o2 -= 18, a2 += 1, this.words[a2] |= i2 >>> 26) : o2 += 8;
39769          else
39770            for (n3 = (e5.length - t5) % 2 == 0 ? t5 + 1 : t5; n3 < e5.length; n3 += 2)
39771              i2 = c2(e5, t5, n3) << o2, this.words[a2] |= 67108863 & i2, o2 >= 18 ? (o2 -= 18, a2 += 1, this.words[a2] |= i2 >>> 26) : o2 += 8;
39772          this._strip();
39773        }, a.prototype._parseBase = function(e5, t5, r4) {
39774          this.words = [0], this.length = 1;
39775          for (var n3 = 0, i2 = 1; i2 <= 67108863; i2 *= t5)
39776            n3++;
39777          n3--, i2 = i2 / t5 | 0;
39778          for (var o2 = e5.length - r4, a2 = o2 % n3, s2 = Math.min(o2, o2 - a2) + r4, u3 = 0, c3 = r4; c3 < s2; c3 += n3)
39779            u3 = f2(e5, c3, c3 + n3, t5), this.imuln(i2), this.words[0] + u3 < 67108864 ? this.words[0] += u3 : this._iaddn(u3);
39780          if (0 !== a2) {
39781            var d3 = 1;
39782            for (u3 = f2(e5, c3, e5.length, t5), c3 = 0; c3 < a2; c3++)
39783              d3 *= t5;
39784            this.imuln(d3), this.words[0] + u3 < 67108864 ? this.words[0] += u3 : this._iaddn(u3);
39785          }
39786          this._strip();
39787        }, a.prototype.copy = function(e5) {
39788          e5.words = new Array(this.length);
39789          for (var t5 = 0; t5 < this.length; t5++)
39790            e5.words[t5] = this.words[t5];
39791          e5.length = this.length, e5.negative = this.negative, e5.red = this.red;
39792        }, a.prototype._move = function(e5) {
39793          d2(e5, this);
39794        }, a.prototype.clone = function() {
39795          var e5 = new a(null);
39796          return this.copy(e5), e5;
39797        }, a.prototype._expand = function(e5) {
39798          for (; this.length < e5; )
39799            this.words[this.length++] = 0;
39800          return this;
39801        }, a.prototype._strip = function() {
39802          for (; this.length > 1 && 0 === this.words[this.length - 1]; )
39803            this.length--;
39804          return this._normSign();
39805        }, a.prototype._normSign = function() {
39806          return 1 === this.length && 0 === this.words[0] && (this.negative = 0), this;
39807        }, "undefined" != typeof Symbol && "function" == typeof Symbol.for)
39808          try {
39809            a.prototype[Symbol.for("nodejs.util.inspect.custom")] = l2;
39810          } catch (e5) {
39811            a.prototype.inspect = l2;
39812          }
39813        else
39814          a.prototype.inspect = l2;
39815        function l2() {
39816          return (this.red ? "<BN-R: " : "<BN: ") + this.toString(16) + ">";
39817        }
39818        var h2 = ["", "0", "00", "000", "0000", "00000", "000000", "0000000", "00000000", "000000000", "0000000000", "00000000000", "000000000000", "0000000000000", "00000000000000", "000000000000000", "0000000000000000", "00000000000000000", "000000000000000000", "0000000000000000000", "00000000000000000000", "000000000000000000000", "0000000000000000000000", "00000000000000000000000", "000000000000000000000000", "0000000000000000000000000"], p2 = [0, 0, 25, 16, 12, 11, 10, 9, 8, 8, 7, 7, 7, 7, 6, 6, 6, 6, 6, 6, 6, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5], b2 = [0, 0, 33554432, 43046721, 16777216, 48828125, 60466176, 40353607, 16777216, 43046721, 1e7, 19487171, 35831808, 62748517, 7529536, 11390625, 16777216, 24137569, 34012224, 47045881, 64e6, 4084101, 5153632, 6436343, 7962624, 9765625, 11881376, 14348907, 17210368, 20511149, 243e5, 28629151, 33554432, 39135393, 45435424, 52521875, 60466176];
39819        function y2(e5, t5, r4) {
39820          r4.negative = t5.negative ^ e5.negative;
39821          var n3 = e5.length + t5.length | 0;
39822          r4.length = n3, n3 = n3 - 1 | 0;
39823          var i2 = 0 | e5.words[0], o2 = 0 | t5.words[0], a2 = i2 * o2, s2 = 67108863 & a2, u3 = a2 / 67108864 | 0;
39824          r4.words[0] = s2;
39825          for (var c3 = 1; c3 < n3; c3++) {
39826            for (var f3 = u3 >>> 26, d3 = 67108863 & u3, l3 = Math.min(c3, t5.length - 1), h3 = Math.max(0, c3 - e5.length + 1); h3 <= l3; h3++) {
39827              var p3 = c3 - h3 | 0;
39828              f3 += (a2 = (i2 = 0 | e5.words[p3]) * (o2 = 0 | t5.words[h3]) + d3) / 67108864 | 0, d3 = 67108863 & a2;
39829            }
39830            r4.words[c3] = 0 | d3, u3 = 0 | f3;
39831          }
39832          return 0 !== u3 ? r4.words[c3] = 0 | u3 : r4.length--, r4._strip();
39833        }
39834        a.prototype.toString = function(e5, t5) {
39835          var r4;
39836          if (t5 = 0 | t5 || 1, 16 === (e5 = e5 || 10) || "hex" === e5) {
39837            r4 = "";
39838            for (var n3 = 0, o2 = 0, a2 = 0; a2 < this.length; a2++) {
39839              var s2 = this.words[a2], u3 = (16777215 & (s2 << n3 | o2)).toString(16);
39840              o2 = s2 >>> 24 - n3 & 16777215, (n3 += 2) >= 26 && (n3 -= 26, a2--), r4 = 0 !== o2 || a2 !== this.length - 1 ? h2[6 - u3.length] + u3 + r4 : u3 + r4;
39841            }
39842            for (0 !== o2 && (r4 = o2.toString(16) + r4); r4.length % t5 != 0; )
39843              r4 = "0" + r4;
39844            return 0 !== this.negative && (r4 = "-" + r4), r4;
39845          }
39846          if (e5 === (0 | e5) && e5 >= 2 && e5 <= 36) {
39847            var c3 = p2[e5], f3 = b2[e5];
39848            r4 = "";
39849            var d3 = this.clone();
39850            for (d3.negative = 0; !d3.isZero(); ) {
39851              var l3 = d3.modrn(f3).toString(e5);
39852              r4 = (d3 = d3.idivn(f3)).isZero() ? l3 + r4 : h2[c3 - l3.length] + l3 + r4;
39853            }
39854            for (this.isZero() && (r4 = "0" + r4); r4.length % t5 != 0; )
39855              r4 = "0" + r4;
39856            return 0 !== this.negative && (r4 = "-" + r4), r4;
39857          }
39858          i(false, "Base should be between 2 and 36");
39859        }, a.prototype.toNumber = function() {
39860          var e5 = this.words[0];
39861          return 2 === this.length ? e5 += 67108864 * this.words[1] : 3 === this.length && 1 === this.words[2] ? e5 += 4503599627370496 + 67108864 * this.words[1] : this.length > 2 && i(false, "Number can only safely store up to 53 bits"), 0 !== this.negative ? -e5 : e5;
39862        }, a.prototype.toJSON = function() {
39863          return this.toString(16, 2);
39864        }, s && (a.prototype.toBuffer = function(e5, t5) {
39865          return this.toArrayLike(s, e5, t5);
39866        }), a.prototype.toArray = function(e5, t5) {
39867          return this.toArrayLike(Array, e5, t5);
39868        }, a.prototype.toArrayLike = function(e5, t5, r4) {
39869          this._strip();
39870          var n3 = this.byteLength(), o2 = r4 || Math.max(1, n3);
39871          i(n3 <= o2, "byte array longer than desired length"), i(o2 > 0, "Requested array length <= 0");
39872          var a2 = function(e6, t6) {
39873            return e6.allocUnsafe ? e6.allocUnsafe(t6) : new e6(t6);
39874          }(e5, o2);
39875          return this["_toArrayLike" + ("le" === t5 ? "LE" : "BE")](a2, n3), a2;
39876        }, a.prototype._toArrayLikeLE = function(e5, t5) {
39877          for (var r4 = 0, n3 = 0, i2 = 0, o2 = 0; i2 < this.length; i2++) {
39878            var a2 = this.words[i2] << o2 | n3;
39879            e5[r4++] = 255 & a2, r4 < e5.length && (e5[r4++] = a2 >> 8 & 255), r4 < e5.length && (e5[r4++] = a2 >> 16 & 255), 6 === o2 ? (r4 < e5.length && (e5[r4++] = a2 >> 24 & 255), n3 = 0, o2 = 0) : (n3 = a2 >>> 24, o2 += 2);
39880          }
39881          if (r4 < e5.length)
39882            for (e5[r4++] = n3; r4 < e5.length; )
39883              e5[r4++] = 0;
39884        }, a.prototype._toArrayLikeBE = function(e5, t5) {
39885          for (var r4 = e5.length - 1, n3 = 0, i2 = 0, o2 = 0; i2 < this.length; i2++) {
39886            var a2 = this.words[i2] << o2 | n3;
39887            e5[r4--] = 255 & a2, r4 >= 0 && (e5[r4--] = a2 >> 8 & 255), r4 >= 0 && (e5[r4--] = a2 >> 16 & 255), 6 === o2 ? (r4 >= 0 && (e5[r4--] = a2 >> 24 & 255), n3 = 0, o2 = 0) : (n3 = a2 >>> 24, o2 += 2);
39888          }
39889          if (r4 >= 0)
39890            for (e5[r4--] = n3; r4 >= 0; )
39891              e5[r4--] = 0;
39892        }, Math.clz32 ? a.prototype._countBits = function(e5) {
39893          return 32 - Math.clz32(e5);
39894        } : a.prototype._countBits = function(e5) {
39895          var t5 = e5, r4 = 0;
39896          return t5 >= 4096 && (r4 += 13, t5 >>>= 13), t5 >= 64 && (r4 += 7, t5 >>>= 7), t5 >= 8 && (r4 += 4, t5 >>>= 4), t5 >= 2 && (r4 += 2, t5 >>>= 2), r4 + t5;
39897        }, a.prototype._zeroBits = function(e5) {
39898          if (0 === e5)
39899            return 26;
39900          var t5 = e5, r4 = 0;
39901          return 0 == (8191 & t5) && (r4 += 13, t5 >>>= 13), 0 == (127 & t5) && (r4 += 7, t5 >>>= 7), 0 == (15 & t5) && (r4 += 4, t5 >>>= 4), 0 == (3 & t5) && (r4 += 2, t5 >>>= 2), 0 == (1 & t5) && r4++, r4;
39902        }, a.prototype.bitLength = function() {
39903          var e5 = this.words[this.length - 1], t5 = this._countBits(e5);
39904          return 26 * (this.length - 1) + t5;
39905        }, a.prototype.zeroBits = function() {
39906          if (this.isZero())
39907            return 0;
39908          for (var e5 = 0, t5 = 0; t5 < this.length; t5++) {
39909            var r4 = this._zeroBits(this.words[t5]);
39910            if (e5 += r4, 26 !== r4)
39911              break;
39912          }
39913          return e5;
39914        }, a.prototype.byteLength = function() {
39915          return Math.ceil(this.bitLength() / 8);
39916        }, a.prototype.toTwos = function(e5) {
39917          return 0 !== this.negative ? this.abs().inotn(e5).iaddn(1) : this.clone();
39918        }, a.prototype.fromTwos = function(e5) {
39919          return this.testn(e5 - 1) ? this.notn(e5).iaddn(1).ineg() : this.clone();
39920        }, a.prototype.isNeg = function() {
39921          return 0 !== this.negative;
39922        }, a.prototype.neg = function() {
39923          return this.clone().ineg();
39924        }, a.prototype.ineg = function() {
39925          return this.isZero() || (this.negative ^= 1), this;
39926        }, a.prototype.iuor = function(e5) {
39927          for (; this.length < e5.length; )
39928            this.words[this.length++] = 0;
39929          for (var t5 = 0; t5 < e5.length; t5++)
39930            this.words[t5] = this.words[t5] | e5.words[t5];
39931          return this._strip();
39932        }, a.prototype.ior = function(e5) {
39933          return i(0 == (this.negative | e5.negative)), this.iuor(e5);
39934        }, a.prototype.or = function(e5) {
39935          return this.length > e5.length ? this.clone().ior(e5) : e5.clone().ior(this);
39936        }, a.prototype.uor = function(e5) {
39937          return this.length > e5.length ? this.clone().iuor(e5) : e5.clone().iuor(this);
39938        }, a.prototype.iuand = function(e5) {
39939          var t5;
39940          t5 = this.length > e5.length ? e5 : this;
39941          for (var r4 = 0; r4 < t5.length; r4++)
39942            this.words[r4] = this.words[r4] & e5.words[r4];
39943          return this.length = t5.length, this._strip();
39944        }, a.prototype.iand = function(e5) {
39945          return i(0 == (this.negative | e5.negative)), this.iuand(e5);
39946        }, a.prototype.and = function(e5) {
39947          return this.length > e5.length ? this.clone().iand(e5) : e5.clone().iand(this);
39948        }, a.prototype.uand = function(e5) {
39949          return this.length > e5.length ? this.clone().iuand(e5) : e5.clone().iuand(this);
39950        }, a.prototype.iuxor = function(e5) {
39951          var t5, r4;
39952          this.length > e5.length ? (t5 = this, r4 = e5) : (t5 = e5, r4 = this);
39953          for (var n3 = 0; n3 < r4.length; n3++)
39954            this.words[n3] = t5.words[n3] ^ r4.words[n3];
39955          if (this !== t5)
39956            for (; n3 < t5.length; n3++)
39957              this.words[n3] = t5.words[n3];
39958          return this.length = t5.length, this._strip();
39959        }, a.prototype.ixor = function(e5) {
39960          return i(0 == (this.negative | e5.negative)), this.iuxor(e5);
39961        }, a.prototype.xor = function(e5) {
39962          return this.length > e5.length ? this.clone().ixor(e5) : e5.clone().ixor(this);
39963        }, a.prototype.uxor = function(e5) {
39964          return this.length > e5.length ? this.clone().iuxor(e5) : e5.clone().iuxor(this);
39965        }, a.prototype.inotn = function(e5) {
39966          i("number" == typeof e5 && e5 >= 0);
39967          var t5 = 0 | Math.ceil(e5 / 26), r4 = e5 % 26;
39968          this._expand(t5), r4 > 0 && t5--;
39969          for (var n3 = 0; n3 < t5; n3++)
39970            this.words[n3] = 67108863 & ~this.words[n3];
39971          return r4 > 0 && (this.words[n3] = ~this.words[n3] & 67108863 >> 26 - r4), this._strip();
39972        }, a.prototype.notn = function(e5) {
39973          return this.clone().inotn(e5);
39974        }, a.prototype.setn = function(e5, t5) {
39975          i("number" == typeof e5 && e5 >= 0);
39976          var r4 = e5 / 26 | 0, n3 = e5 % 26;
39977          return this._expand(r4 + 1), this.words[r4] = t5 ? this.words[r4] | 1 << n3 : this.words[r4] & ~(1 << n3), this._strip();
39978        }, a.prototype.iadd = function(e5) {
39979          var t5, r4, n3;
39980          if (0 !== this.negative && 0 === e5.negative)
39981            return this.negative = 0, t5 = this.isub(e5), this.negative ^= 1, this._normSign();
39982          if (0 === this.negative && 0 !== e5.negative)
39983            return e5.negative = 0, t5 = this.isub(e5), e5.negative = 1, t5._normSign();
39984          this.length > e5.length ? (r4 = this, n3 = e5) : (r4 = e5, n3 = this);
39985          for (var i2 = 0, o2 = 0; o2 < n3.length; o2++)
39986            t5 = (0 | r4.words[o2]) + (0 | n3.words[o2]) + i2, this.words[o2] = 67108863 & t5, i2 = t5 >>> 26;
39987          for (; 0 !== i2 && o2 < r4.length; o2++)
39988            t5 = (0 | r4.words[o2]) + i2, this.words[o2] = 67108863 & t5, i2 = t5 >>> 26;
39989          if (this.length = r4.length, 0 !== i2)
39990            this.words[this.length] = i2, this.length++;
39991          else if (r4 !== this)
39992            for (; o2 < r4.length; o2++)
39993              this.words[o2] = r4.words[o2];
39994          return this;
39995        }, a.prototype.add = function(e5) {
39996          var t5;
39997          return 0 !== e5.negative && 0 === this.negative ? (e5.negative = 0, t5 = this.sub(e5), e5.negative ^= 1, t5) : 0 === e5.negative && 0 !== this.negative ? (this.negative = 0, t5 = e5.sub(this), this.negative = 1, t5) : this.length > e5.length ? this.clone().iadd(e5) : e5.clone().iadd(this);
39998        }, a.prototype.isub = function(e5) {
39999          if (0 !== e5.negative) {
40000            e5.negative = 0;
40001            var t5 = this.iadd(e5);
40002            return e5.negative = 1, t5._normSign();
40003          }
40004          if (0 !== this.negative)
40005            return this.negative = 0, this.iadd(e5), this.negative = 1, this._normSign();
40006          var r4, n3, i2 = this.cmp(e5);
40007          if (0 === i2)
40008            return this.negative = 0, this.length = 1, this.words[0] = 0, this;
40009          i2 > 0 ? (r4 = this, n3 = e5) : (r4 = e5, n3 = this);
40010          for (var o2 = 0, a2 = 0; a2 < n3.length; a2++)
40011            o2 = (t5 = (0 | r4.words[a2]) - (0 | n3.words[a2]) + o2) >> 26, this.words[a2] = 67108863 & t5;
40012          for (; 0 !== o2 && a2 < r4.length; a2++)
40013            o2 = (t5 = (0 | r4.words[a2]) + o2) >> 26, this.words[a2] = 67108863 & t5;
40014          if (0 === o2 && a2 < r4.length && r4 !== this)
40015            for (; a2 < r4.length; a2++)
40016              this.words[a2] = r4.words[a2];
40017          return this.length = Math.max(this.length, a2), r4 !== this && (this.negative = 1), this._strip();
40018        }, a.prototype.sub = function(e5) {
40019          return this.clone().isub(e5);
40020        };
40021        var m2 = function(e5, t5, r4) {
40022          var n3, i2, o2, a2 = e5.words, s2 = t5.words, u3 = r4.words, c3 = 0, f3 = 0 | a2[0], d3 = 8191 & f3, l3 = f3 >>> 13, h3 = 0 | a2[1], p3 = 8191 & h3, b3 = h3 >>> 13, y3 = 0 | a2[2], m3 = 8191 & y3, v3 = y3 >>> 13, g3 = 0 | a2[3], w2 = 8191 & g3, A3 = g3 >>> 13, k3 = 0 | a2[4], _2 = 8191 & k3, S3 = k3 >>> 13, x3 = 0 | a2[5], E3 = 8191 & x3, P3 = x3 >>> 13, O3 = 0 | a2[6], B2 = 8191 & O3, T2 = O3 >>> 13, C2 = 0 | a2[7], I2 = 8191 & C2, M2 = C2 >>> 13, U2 = 0 | a2[8], R2 = 8191 & U2, j = U2 >>> 13, N2 = 0 | a2[9], F2 = 8191 & N2, L2 = N2 >>> 13, D2 = 0 | s2[0], H2 = 8191 & D2, q2 = D2 >>> 13, z2 = 0 | s2[1], G2 = 8191 & z2, K2 = z2 >>> 13, V2 = 0 | s2[2], J2 = 8191 & V2, W2 = V2 >>> 13, Y2 = 0 | s2[3], X2 = 8191 & Y2, Q2 = Y2 >>> 13, Z2 = 0 | s2[4], $ = 8191 & Z2, ee2 = Z2 >>> 13, te2 = 0 | s2[5], re2 = 8191 & te2, ne2 = te2 >>> 13, ie2 = 0 | s2[6], oe2 = 8191 & ie2, ae2 = ie2 >>> 13, se2 = 0 | s2[7], ue2 = 8191 & se2, ce2 = se2 >>> 13, fe2 = 0 | s2[8], de2 = 8191 & fe2, le2 = fe2 >>> 13, he2 = 0 | s2[9], pe2 = 8191 & he2, be2 = he2 >>> 13;
40023          r4.negative = e5.negative ^ t5.negative, r4.length = 19;
40024          var ye = (c3 + (n3 = Math.imul(d3, H2)) | 0) + ((8191 & (i2 = (i2 = Math.imul(d3, q2)) + Math.imul(l3, H2) | 0)) << 13) | 0;
40025          c3 = ((o2 = Math.imul(l3, q2)) + (i2 >>> 13) | 0) + (ye >>> 26) | 0, ye &= 67108863, n3 = Math.imul(p3, H2), i2 = (i2 = Math.imul(p3, q2)) + Math.imul(b3, H2) | 0, o2 = Math.imul(b3, q2);
40026          var me2 = (c3 + (n3 = n3 + Math.imul(d3, G2) | 0) | 0) + ((8191 & (i2 = (i2 = i2 + Math.imul(d3, K2) | 0) + Math.imul(l3, G2) | 0)) << 13) | 0;
40027          c3 = ((o2 = o2 + Math.imul(l3, K2) | 0) + (i2 >>> 13) | 0) + (me2 >>> 26) | 0, me2 &= 67108863, n3 = Math.imul(m3, H2), i2 = (i2 = Math.imul(m3, q2)) + Math.imul(v3, H2) | 0, o2 = Math.imul(v3, q2), n3 = n3 + Math.imul(p3, G2) | 0, i2 = (i2 = i2 + Math.imul(p3, K2) | 0) + Math.imul(b3, G2) | 0, o2 = o2 + Math.imul(b3, K2) | 0;
40028          var ve2 = (c3 + (n3 = n3 + Math.imul(d3, J2) | 0) | 0) + ((8191 & (i2 = (i2 = i2 + Math.imul(d3, W2) | 0) + Math.imul(l3, J2) | 0)) << 13) | 0;
40029          c3 = ((o2 = o2 + Math.imul(l3, W2) | 0) + (i2 >>> 13) | 0) + (ve2 >>> 26) | 0, ve2 &= 67108863, n3 = Math.imul(w2, H2), i2 = (i2 = Math.imul(w2, q2)) + Math.imul(A3, H2) | 0, o2 = Math.imul(A3, q2), n3 = n3 + Math.imul(m3, G2) | 0, i2 = (i2 = i2 + Math.imul(m3, K2) | 0) + Math.imul(v3, G2) | 0, o2 = o2 + Math.imul(v3, K2) | 0, n3 = n3 + Math.imul(p3, J2) | 0, i2 = (i2 = i2 + Math.imul(p3, W2) | 0) + Math.imul(b3, J2) | 0, o2 = o2 + Math.imul(b3, W2) | 0;
40030          var ge2 = (c3 + (n3 = n3 + Math.imul(d3, X2) | 0) | 0) + ((8191 & (i2 = (i2 = i2 + Math.imul(d3, Q2) | 0) + Math.imul(l3, X2) | 0)) << 13) | 0;
40031          c3 = ((o2 = o2 + Math.imul(l3, Q2) | 0) + (i2 >>> 13) | 0) + (ge2 >>> 26) | 0, ge2 &= 67108863, n3 = Math.imul(_2, H2), i2 = (i2 = Math.imul(_2, q2)) + Math.imul(S3, H2) | 0, o2 = Math.imul(S3, q2), n3 = n3 + Math.imul(w2, G2) | 0, i2 = (i2 = i2 + Math.imul(w2, K2) | 0) + Math.imul(A3, G2) | 0, o2 = o2 + Math.imul(A3, K2) | 0, n3 = n3 + Math.imul(m3, J2) | 0, i2 = (i2 = i2 + Math.imul(m3, W2) | 0) + Math.imul(v3, J2) | 0, o2 = o2 + Math.imul(v3, W2) | 0, n3 = n3 + Math.imul(p3, X2) | 0, i2 = (i2 = i2 + Math.imul(p3, Q2) | 0) + Math.imul(b3, X2) | 0, o2 = o2 + Math.imul(b3, Q2) | 0;
40032          var we2 = (c3 + (n3 = n3 + Math.imul(d3, $) | 0) | 0) + ((8191 & (i2 = (i2 = i2 + Math.imul(d3, ee2) | 0) + Math.imul(l3, $) | 0)) << 13) | 0;
40033          c3 = ((o2 = o2 + Math.imul(l3, ee2) | 0) + (i2 >>> 13) | 0) + (we2 >>> 26) | 0, we2 &= 67108863, n3 = Math.imul(E3, H2), i2 = (i2 = Math.imul(E3, q2)) + Math.imul(P3, H2) | 0, o2 = Math.imul(P3, q2), n3 = n3 + Math.imul(_2, G2) | 0, i2 = (i2 = i2 + Math.imul(_2, K2) | 0) + Math.imul(S3, G2) | 0, o2 = o2 + Math.imul(S3, K2) | 0, n3 = n3 + Math.imul(w2, J2) | 0, i2 = (i2 = i2 + Math.imul(w2, W2) | 0) + Math.imul(A3, J2) | 0, o2 = o2 + Math.imul(A3, W2) | 0, n3 = n3 + Math.imul(m3, X2) | 0, i2 = (i2 = i2 + Math.imul(m3, Q2) | 0) + Math.imul(v3, X2) | 0, o2 = o2 + Math.imul(v3, Q2) | 0, n3 = n3 + Math.imul(p3, $) | 0, i2 = (i2 = i2 + Math.imul(p3, ee2) | 0) + Math.imul(b3, $) | 0, o2 = o2 + Math.imul(b3, ee2) | 0;
40034          var Ae2 = (c3 + (n3 = n3 + Math.imul(d3, re2) | 0) | 0) + ((8191 & (i2 = (i2 = i2 + Math.imul(d3, ne2) | 0) + Math.imul(l3, re2) | 0)) << 13) | 0;
40035          c3 = ((o2 = o2 + Math.imul(l3, ne2) | 0) + (i2 >>> 13) | 0) + (Ae2 >>> 26) | 0, Ae2 &= 67108863, n3 = Math.imul(B2, H2), i2 = (i2 = Math.imul(B2, q2)) + Math.imul(T2, H2) | 0, o2 = Math.imul(T2, q2), n3 = n3 + Math.imul(E3, G2) | 0, i2 = (i2 = i2 + Math.imul(E3, K2) | 0) + Math.imul(P3, G2) | 0, o2 = o2 + Math.imul(P3, K2) | 0, n3 = n3 + Math.imul(_2, J2) | 0, i2 = (i2 = i2 + Math.imul(_2, W2) | 0) + Math.imul(S3, J2) | 0, o2 = o2 + Math.imul(S3, W2) | 0, n3 = n3 + Math.imul(w2, X2) | 0, i2 = (i2 = i2 + Math.imul(w2, Q2) | 0) + Math.imul(A3, X2) | 0, o2 = o2 + Math.imul(A3, Q2) | 0, n3 = n3 + Math.imul(m3, $) | 0, i2 = (i2 = i2 + Math.imul(m3, ee2) | 0) + Math.imul(v3, $) | 0, o2 = o2 + Math.imul(v3, ee2) | 0, n3 = n3 + Math.imul(p3, re2) | 0, i2 = (i2 = i2 + Math.imul(p3, ne2) | 0) + Math.imul(b3, re2) | 0, o2 = o2 + Math.imul(b3, ne2) | 0;
40036          var ke2 = (c3 + (n3 = n3 + Math.imul(d3, oe2) | 0) | 0) + ((8191 & (i2 = (i2 = i2 + Math.imul(d3, ae2) | 0) + Math.imul(l3, oe2) | 0)) << 13) | 0;
40037          c3 = ((o2 = o2 + Math.imul(l3, ae2) | 0) + (i2 >>> 13) | 0) + (ke2 >>> 26) | 0, ke2 &= 67108863, n3 = Math.imul(I2, H2), i2 = (i2 = Math.imul(I2, q2)) + Math.imul(M2, H2) | 0, o2 = Math.imul(M2, q2), n3 = n3 + Math.imul(B2, G2) | 0, i2 = (i2 = i2 + Math.imul(B2, K2) | 0) + Math.imul(T2, G2) | 0, o2 = o2 + Math.imul(T2, K2) | 0, n3 = n3 + Math.imul(E3, J2) | 0, i2 = (i2 = i2 + Math.imul(E3, W2) | 0) + Math.imul(P3, J2) | 0, o2 = o2 + Math.imul(P3, W2) | 0, n3 = n3 + Math.imul(_2, X2) | 0, i2 = (i2 = i2 + Math.imul(_2, Q2) | 0) + Math.imul(S3, X2) | 0, o2 = o2 + Math.imul(S3, Q2) | 0, n3 = n3 + Math.imul(w2, $) | 0, i2 = (i2 = i2 + Math.imul(w2, ee2) | 0) + Math.imul(A3, $) | 0, o2 = o2 + Math.imul(A3, ee2) | 0, n3 = n3 + Math.imul(m3, re2) | 0, i2 = (i2 = i2 + Math.imul(m3, ne2) | 0) + Math.imul(v3, re2) | 0, o2 = o2 + Math.imul(v3, ne2) | 0, n3 = n3 + Math.imul(p3, oe2) | 0, i2 = (i2 = i2 + Math.imul(p3, ae2) | 0) + Math.imul(b3, oe2) | 0, o2 = o2 + Math.imul(b3, ae2) | 0;
40038          var _e2 = (c3 + (n3 = n3 + Math.imul(d3, ue2) | 0) | 0) + ((8191 & (i2 = (i2 = i2 + Math.imul(d3, ce2) | 0) + Math.imul(l3, ue2) | 0)) << 13) | 0;
40039          c3 = ((o2 = o2 + Math.imul(l3, ce2) | 0) + (i2 >>> 13) | 0) + (_e2 >>> 26) | 0, _e2 &= 67108863, n3 = Math.imul(R2, H2), i2 = (i2 = Math.imul(R2, q2)) + Math.imul(j, H2) | 0, o2 = Math.imul(j, q2), n3 = n3 + Math.imul(I2, G2) | 0, i2 = (i2 = i2 + Math.imul(I2, K2) | 0) + Math.imul(M2, G2) | 0, o2 = o2 + Math.imul(M2, K2) | 0, n3 = n3 + Math.imul(B2, J2) | 0, i2 = (i2 = i2 + Math.imul(B2, W2) | 0) + Math.imul(T2, J2) | 0, o2 = o2 + Math.imul(T2, W2) | 0, n3 = n3 + Math.imul(E3, X2) | 0, i2 = (i2 = i2 + Math.imul(E3, Q2) | 0) + Math.imul(P3, X2) | 0, o2 = o2 + Math.imul(P3, Q2) | 0, n3 = n3 + Math.imul(_2, $) | 0, i2 = (i2 = i2 + Math.imul(_2, ee2) | 0) + Math.imul(S3, $) | 0, o2 = o2 + Math.imul(S3, ee2) | 0, n3 = n3 + Math.imul(w2, re2) | 0, i2 = (i2 = i2 + Math.imul(w2, ne2) | 0) + Math.imul(A3, re2) | 0, o2 = o2 + Math.imul(A3, ne2) | 0, n3 = n3 + Math.imul(m3, oe2) | 0, i2 = (i2 = i2 + Math.imul(m3, ae2) | 0) + Math.imul(v3, oe2) | 0, o2 = o2 + Math.imul(v3, ae2) | 0, n3 = n3 + Math.imul(p3, ue2) | 0, i2 = (i2 = i2 + Math.imul(p3, ce2) | 0) + Math.imul(b3, ue2) | 0, o2 = o2 + Math.imul(b3, ce2) | 0;
40040          var Se2 = (c3 + (n3 = n3 + Math.imul(d3, de2) | 0) | 0) + ((8191 & (i2 = (i2 = i2 + Math.imul(d3, le2) | 0) + Math.imul(l3, de2) | 0)) << 13) | 0;
40041          c3 = ((o2 = o2 + Math.imul(l3, le2) | 0) + (i2 >>> 13) | 0) + (Se2 >>> 26) | 0, Se2 &= 67108863, n3 = Math.imul(F2, H2), i2 = (i2 = Math.imul(F2, q2)) + Math.imul(L2, H2) | 0, o2 = Math.imul(L2, q2), n3 = n3 + Math.imul(R2, G2) | 0, i2 = (i2 = i2 + Math.imul(R2, K2) | 0) + Math.imul(j, G2) | 0, o2 = o2 + Math.imul(j, K2) | 0, n3 = n3 + Math.imul(I2, J2) | 0, i2 = (i2 = i2 + Math.imul(I2, W2) | 0) + Math.imul(M2, J2) | 0, o2 = o2 + Math.imul(M2, W2) | 0, n3 = n3 + Math.imul(B2, X2) | 0, i2 = (i2 = i2 + Math.imul(B2, Q2) | 0) + Math.imul(T2, X2) | 0, o2 = o2 + Math.imul(T2, Q2) | 0, n3 = n3 + Math.imul(E3, $) | 0, i2 = (i2 = i2 + Math.imul(E3, ee2) | 0) + Math.imul(P3, $) | 0, o2 = o2 + Math.imul(P3, ee2) | 0, n3 = n3 + Math.imul(_2, re2) | 0, i2 = (i2 = i2 + Math.imul(_2, ne2) | 0) + Math.imul(S3, re2) | 0, o2 = o2 + Math.imul(S3, ne2) | 0, n3 = n3 + Math.imul(w2, oe2) | 0, i2 = (i2 = i2 + Math.imul(w2, ae2) | 0) + Math.imul(A3, oe2) | 0, o2 = o2 + Math.imul(A3, ae2) | 0, n3 = n3 + Math.imul(m3, ue2) | 0, i2 = (i2 = i2 + Math.imul(m3, ce2) | 0) + Math.imul(v3, ue2) | 0, o2 = o2 + Math.imul(v3, ce2) | 0, n3 = n3 + Math.imul(p3, de2) | 0, i2 = (i2 = i2 + Math.imul(p3, le2) | 0) + Math.imul(b3, de2) | 0, o2 = o2 + Math.imul(b3, le2) | 0;
40042          var xe = (c3 + (n3 = n3 + Math.imul(d3, pe2) | 0) | 0) + ((8191 & (i2 = (i2 = i2 + Math.imul(d3, be2) | 0) + Math.imul(l3, pe2) | 0)) << 13) | 0;
40043          c3 = ((o2 = o2 + Math.imul(l3, be2) | 0) + (i2 >>> 13) | 0) + (xe >>> 26) | 0, xe &= 67108863, n3 = Math.imul(F2, G2), i2 = (i2 = Math.imul(F2, K2)) + Math.imul(L2, G2) | 0, o2 = Math.imul(L2, K2), n3 = n3 + Math.imul(R2, J2) | 0, i2 = (i2 = i2 + Math.imul(R2, W2) | 0) + Math.imul(j, J2) | 0, o2 = o2 + Math.imul(j, W2) | 0, n3 = n3 + Math.imul(I2, X2) | 0, i2 = (i2 = i2 + Math.imul(I2, Q2) | 0) + Math.imul(M2, X2) | 0, o2 = o2 + Math.imul(M2, Q2) | 0, n3 = n3 + Math.imul(B2, $) | 0, i2 = (i2 = i2 + Math.imul(B2, ee2) | 0) + Math.imul(T2, $) | 0, o2 = o2 + Math.imul(T2, ee2) | 0, n3 = n3 + Math.imul(E3, re2) | 0, i2 = (i2 = i2 + Math.imul(E3, ne2) | 0) + Math.imul(P3, re2) | 0, o2 = o2 + Math.imul(P3, ne2) | 0, n3 = n3 + Math.imul(_2, oe2) | 0, i2 = (i2 = i2 + Math.imul(_2, ae2) | 0) + Math.imul(S3, oe2) | 0, o2 = o2 + Math.imul(S3, ae2) | 0, n3 = n3 + Math.imul(w2, ue2) | 0, i2 = (i2 = i2 + Math.imul(w2, ce2) | 0) + Math.imul(A3, ue2) | 0, o2 = o2 + Math.imul(A3, ce2) | 0, n3 = n3 + Math.imul(m3, de2) | 0, i2 = (i2 = i2 + Math.imul(m3, le2) | 0) + Math.imul(v3, de2) | 0, o2 = o2 + Math.imul(v3, le2) | 0;
40044          var Ee2 = (c3 + (n3 = n3 + Math.imul(p3, pe2) | 0) | 0) + ((8191 & (i2 = (i2 = i2 + Math.imul(p3, be2) | 0) + Math.imul(b3, pe2) | 0)) << 13) | 0;
40045          c3 = ((o2 = o2 + Math.imul(b3, be2) | 0) + (i2 >>> 13) | 0) + (Ee2 >>> 26) | 0, Ee2 &= 67108863, n3 = Math.imul(F2, J2), i2 = (i2 = Math.imul(F2, W2)) + Math.imul(L2, J2) | 0, o2 = Math.imul(L2, W2), n3 = n3 + Math.imul(R2, X2) | 0, i2 = (i2 = i2 + Math.imul(R2, Q2) | 0) + Math.imul(j, X2) | 0, o2 = o2 + Math.imul(j, Q2) | 0, n3 = n3 + Math.imul(I2, $) | 0, i2 = (i2 = i2 + Math.imul(I2, ee2) | 0) + Math.imul(M2, $) | 0, o2 = o2 + Math.imul(M2, ee2) | 0, n3 = n3 + Math.imul(B2, re2) | 0, i2 = (i2 = i2 + Math.imul(B2, ne2) | 0) + Math.imul(T2, re2) | 0, o2 = o2 + Math.imul(T2, ne2) | 0, n3 = n3 + Math.imul(E3, oe2) | 0, i2 = (i2 = i2 + Math.imul(E3, ae2) | 0) + Math.imul(P3, oe2) | 0, o2 = o2 + Math.imul(P3, ae2) | 0, n3 = n3 + Math.imul(_2, ue2) | 0, i2 = (i2 = i2 + Math.imul(_2, ce2) | 0) + Math.imul(S3, ue2) | 0, o2 = o2 + Math.imul(S3, ce2) | 0, n3 = n3 + Math.imul(w2, de2) | 0, i2 = (i2 = i2 + Math.imul(w2, le2) | 0) + Math.imul(A3, de2) | 0, o2 = o2 + Math.imul(A3, le2) | 0;
40046          var Pe2 = (c3 + (n3 = n3 + Math.imul(m3, pe2) | 0) | 0) + ((8191 & (i2 = (i2 = i2 + Math.imul(m3, be2) | 0) + Math.imul(v3, pe2) | 0)) << 13) | 0;
40047          c3 = ((o2 = o2 + Math.imul(v3, be2) | 0) + (i2 >>> 13) | 0) + (Pe2 >>> 26) | 0, Pe2 &= 67108863, n3 = Math.imul(F2, X2), i2 = (i2 = Math.imul(F2, Q2)) + Math.imul(L2, X2) | 0, o2 = Math.imul(L2, Q2), n3 = n3 + Math.imul(R2, $) | 0, i2 = (i2 = i2 + Math.imul(R2, ee2) | 0) + Math.imul(j, $) | 0, o2 = o2 + Math.imul(j, ee2) | 0, n3 = n3 + Math.imul(I2, re2) | 0, i2 = (i2 = i2 + Math.imul(I2, ne2) | 0) + Math.imul(M2, re2) | 0, o2 = o2 + Math.imul(M2, ne2) | 0, n3 = n3 + Math.imul(B2, oe2) | 0, i2 = (i2 = i2 + Math.imul(B2, ae2) | 0) + Math.imul(T2, oe2) | 0, o2 = o2 + Math.imul(T2, ae2) | 0, n3 = n3 + Math.imul(E3, ue2) | 0, i2 = (i2 = i2 + Math.imul(E3, ce2) | 0) + Math.imul(P3, ue2) | 0, o2 = o2 + Math.imul(P3, ce2) | 0, n3 = n3 + Math.imul(_2, de2) | 0, i2 = (i2 = i2 + Math.imul(_2, le2) | 0) + Math.imul(S3, de2) | 0, o2 = o2 + Math.imul(S3, le2) | 0;
40048          var Oe2 = (c3 + (n3 = n3 + Math.imul(w2, pe2) | 0) | 0) + ((8191 & (i2 = (i2 = i2 + Math.imul(w2, be2) | 0) + Math.imul(A3, pe2) | 0)) << 13) | 0;
40049          c3 = ((o2 = o2 + Math.imul(A3, be2) | 0) + (i2 >>> 13) | 0) + (Oe2 >>> 26) | 0, Oe2 &= 67108863, n3 = Math.imul(F2, $), i2 = (i2 = Math.imul(F2, ee2)) + Math.imul(L2, $) | 0, o2 = Math.imul(L2, ee2), n3 = n3 + Math.imul(R2, re2) | 0, i2 = (i2 = i2 + Math.imul(R2, ne2) | 0) + Math.imul(j, re2) | 0, o2 = o2 + Math.imul(j, ne2) | 0, n3 = n3 + Math.imul(I2, oe2) | 0, i2 = (i2 = i2 + Math.imul(I2, ae2) | 0) + Math.imul(M2, oe2) | 0, o2 = o2 + Math.imul(M2, ae2) | 0, n3 = n3 + Math.imul(B2, ue2) | 0, i2 = (i2 = i2 + Math.imul(B2, ce2) | 0) + Math.imul(T2, ue2) | 0, o2 = o2 + Math.imul(T2, ce2) | 0, n3 = n3 + Math.imul(E3, de2) | 0, i2 = (i2 = i2 + Math.imul(E3, le2) | 0) + Math.imul(P3, de2) | 0, o2 = o2 + Math.imul(P3, le2) | 0;
40050          var Be2 = (c3 + (n3 = n3 + Math.imul(_2, pe2) | 0) | 0) + ((8191 & (i2 = (i2 = i2 + Math.imul(_2, be2) | 0) + Math.imul(S3, pe2) | 0)) << 13) | 0;
40051          c3 = ((o2 = o2 + Math.imul(S3, be2) | 0) + (i2 >>> 13) | 0) + (Be2 >>> 26) | 0, Be2 &= 67108863, n3 = Math.imul(F2, re2), i2 = (i2 = Math.imul(F2, ne2)) + Math.imul(L2, re2) | 0, o2 = Math.imul(L2, ne2), n3 = n3 + Math.imul(R2, oe2) | 0, i2 = (i2 = i2 + Math.imul(R2, ae2) | 0) + Math.imul(j, oe2) | 0, o2 = o2 + Math.imul(j, ae2) | 0, n3 = n3 + Math.imul(I2, ue2) | 0, i2 = (i2 = i2 + Math.imul(I2, ce2) | 0) + Math.imul(M2, ue2) | 0, o2 = o2 + Math.imul(M2, ce2) | 0, n3 = n3 + Math.imul(B2, de2) | 0, i2 = (i2 = i2 + Math.imul(B2, le2) | 0) + Math.imul(T2, de2) | 0, o2 = o2 + Math.imul(T2, le2) | 0;
40052          var Te2 = (c3 + (n3 = n3 + Math.imul(E3, pe2) | 0) | 0) + ((8191 & (i2 = (i2 = i2 + Math.imul(E3, be2) | 0) + Math.imul(P3, pe2) | 0)) << 13) | 0;
40053          c3 = ((o2 = o2 + Math.imul(P3, be2) | 0) + (i2 >>> 13) | 0) + (Te2 >>> 26) | 0, Te2 &= 67108863, n3 = Math.imul(F2, oe2), i2 = (i2 = Math.imul(F2, ae2)) + Math.imul(L2, oe2) | 0, o2 = Math.imul(L2, ae2), n3 = n3 + Math.imul(R2, ue2) | 0, i2 = (i2 = i2 + Math.imul(R2, ce2) | 0) + Math.imul(j, ue2) | 0, o2 = o2 + Math.imul(j, ce2) | 0, n3 = n3 + Math.imul(I2, de2) | 0, i2 = (i2 = i2 + Math.imul(I2, le2) | 0) + Math.imul(M2, de2) | 0, o2 = o2 + Math.imul(M2, le2) | 0;
40054          var Ce2 = (c3 + (n3 = n3 + Math.imul(B2, pe2) | 0) | 0) + ((8191 & (i2 = (i2 = i2 + Math.imul(B2, be2) | 0) + Math.imul(T2, pe2) | 0)) << 13) | 0;
40055          c3 = ((o2 = o2 + Math.imul(T2, be2) | 0) + (i2 >>> 13) | 0) + (Ce2 >>> 26) | 0, Ce2 &= 67108863, n3 = Math.imul(F2, ue2), i2 = (i2 = Math.imul(F2, ce2)) + Math.imul(L2, ue2) | 0, o2 = Math.imul(L2, ce2), n3 = n3 + Math.imul(R2, de2) | 0, i2 = (i2 = i2 + Math.imul(R2, le2) | 0) + Math.imul(j, de2) | 0, o2 = o2 + Math.imul(j, le2) | 0;
40056          var Ie2 = (c3 + (n3 = n3 + Math.imul(I2, pe2) | 0) | 0) + ((8191 & (i2 = (i2 = i2 + Math.imul(I2, be2) | 0) + Math.imul(M2, pe2) | 0)) << 13) | 0;
40057          c3 = ((o2 = o2 + Math.imul(M2, be2) | 0) + (i2 >>> 13) | 0) + (Ie2 >>> 26) | 0, Ie2 &= 67108863, n3 = Math.imul(F2, de2), i2 = (i2 = Math.imul(F2, le2)) + Math.imul(L2, de2) | 0, o2 = Math.imul(L2, le2);
40058          var Me2 = (c3 + (n3 = n3 + Math.imul(R2, pe2) | 0) | 0) + ((8191 & (i2 = (i2 = i2 + Math.imul(R2, be2) | 0) + Math.imul(j, pe2) | 0)) << 13) | 0;
40059          c3 = ((o2 = o2 + Math.imul(j, be2) | 0) + (i2 >>> 13) | 0) + (Me2 >>> 26) | 0, Me2 &= 67108863;
40060          var Ue2 = (c3 + (n3 = Math.imul(F2, pe2)) | 0) + ((8191 & (i2 = (i2 = Math.imul(F2, be2)) + Math.imul(L2, pe2) | 0)) << 13) | 0;
40061          return c3 = ((o2 = Math.imul(L2, be2)) + (i2 >>> 13) | 0) + (Ue2 >>> 26) | 0, Ue2 &= 67108863, u3[0] = ye, u3[1] = me2, u3[2] = ve2, u3[3] = ge2, u3[4] = we2, u3[5] = Ae2, u3[6] = ke2, u3[7] = _e2, u3[8] = Se2, u3[9] = xe, u3[10] = Ee2, u3[11] = Pe2, u3[12] = Oe2, u3[13] = Be2, u3[14] = Te2, u3[15] = Ce2, u3[16] = Ie2, u3[17] = Me2, u3[18] = Ue2, 0 !== c3 && (u3[19] = c3, r4.length++), r4;
40062        };
40063        function v2(e5, t5, r4) {
40064          r4.negative = t5.negative ^ e5.negative, r4.length = e5.length + t5.length;
40065          for (var n3 = 0, i2 = 0, o2 = 0; o2 < r4.length - 1; o2++) {
40066            var a2 = i2;
40067            i2 = 0;
40068            for (var s2 = 67108863 & n3, u3 = Math.min(o2, t5.length - 1), c3 = Math.max(0, o2 - e5.length + 1); c3 <= u3; c3++) {
40069              var f3 = o2 - c3, d3 = (0 | e5.words[f3]) * (0 | t5.words[c3]), l3 = 67108863 & d3;
40070              s2 = 67108863 & (l3 = l3 + s2 | 0), i2 += (a2 = (a2 = a2 + (d3 / 67108864 | 0) | 0) + (l3 >>> 26) | 0) >>> 26, a2 &= 67108863;
40071            }
40072            r4.words[o2] = s2, n3 = a2, a2 = i2;
40073          }
40074          return 0 !== n3 ? r4.words[o2] = n3 : r4.length--, r4._strip();
40075        }
40076        function g2(e5, t5, r4) {
40077          return v2(e5, t5, r4);
40078        }
40079        Math.imul || (m2 = y2), a.prototype.mulTo = function(e5, t5) {
40080          var r4 = this.length + e5.length;
40081          return 10 === this.length && 10 === e5.length ? m2(this, e5, t5) : r4 < 63 ? y2(this, e5, t5) : r4 < 1024 ? v2(this, e5, t5) : g2(this, e5, t5);
40082        }, a.prototype.mul = function(e5) {
40083          var t5 = new a(null);
40084          return t5.words = new Array(this.length + e5.length), this.mulTo(e5, t5);
40085        }, a.prototype.mulf = function(e5) {
40086          var t5 = new a(null);
40087          return t5.words = new Array(this.length + e5.length), g2(this, e5, t5);
40088        }, a.prototype.imul = function(e5) {
40089          return this.clone().mulTo(e5, this);
40090        }, a.prototype.imuln = function(e5) {
40091          var t5 = e5 < 0;
40092          t5 && (e5 = -e5), i("number" == typeof e5), i(e5 < 67108864);
40093          for (var r4 = 0, n3 = 0; n3 < this.length; n3++) {
40094            var o2 = (0 | this.words[n3]) * e5, a2 = (67108863 & o2) + (67108863 & r4);
40095            r4 >>= 26, r4 += o2 / 67108864 | 0, r4 += a2 >>> 26, this.words[n3] = 67108863 & a2;
40096          }
40097          return 0 !== r4 && (this.words[n3] = r4, this.length++), t5 ? this.ineg() : this;
40098        }, a.prototype.muln = function(e5) {
40099          return this.clone().imuln(e5);
40100        }, a.prototype.sqr = function() {
40101          return this.mul(this);
40102        }, a.prototype.isqr = function() {
40103          return this.imul(this.clone());
40104        }, a.prototype.pow = function(e5) {
40105          var t5 = function(e6) {
40106            for (var t6 = new Array(e6.bitLength()), r5 = 0; r5 < t6.length; r5++) {
40107              var n4 = r5 / 26 | 0, i3 = r5 % 26;
40108              t6[r5] = e6.words[n4] >>> i3 & 1;
40109            }
40110            return t6;
40111          }(e5);
40112          if (0 === t5.length)
40113            return new a(1);
40114          for (var r4 = this, n3 = 0; n3 < t5.length && 0 === t5[n3]; n3++, r4 = r4.sqr())
40115            ;
40116          if (++n3 < t5.length)
40117            for (var i2 = r4.sqr(); n3 < t5.length; n3++, i2 = i2.sqr())
40118              0 !== t5[n3] && (r4 = r4.mul(i2));
40119          return r4;
40120        }, a.prototype.iushln = function(e5) {
40121          i("number" == typeof e5 && e5 >= 0);
40122          var t5, r4 = e5 % 26, n3 = (e5 - r4) / 26, o2 = 67108863 >>> 26 - r4 << 26 - r4;
40123          if (0 !== r4) {
40124            var a2 = 0;
40125            for (t5 = 0; t5 < this.length; t5++) {
40126              var s2 = this.words[t5] & o2, u3 = (0 | this.words[t5]) - s2 << r4;
40127              this.words[t5] = u3 | a2, a2 = s2 >>> 26 - r4;
40128            }
40129            a2 && (this.words[t5] = a2, this.length++);
40130          }
40131          if (0 !== n3) {
40132            for (t5 = this.length - 1; t5 >= 0; t5--)
40133              this.words[t5 + n3] = this.words[t5];
40134            for (t5 = 0; t5 < n3; t5++)
40135              this.words[t5] = 0;
40136            this.length += n3;
40137          }
40138          return this._strip();
40139        }, a.prototype.ishln = function(e5) {
40140          return i(0 === this.negative), this.iushln(e5);
40141        }, a.prototype.iushrn = function(e5, t5, r4) {
40142          var n3;
40143          i("number" == typeof e5 && e5 >= 0), n3 = t5 ? (t5 - t5 % 26) / 26 : 0;
40144          var o2 = e5 % 26, a2 = Math.min((e5 - o2) / 26, this.length), s2 = 67108863 ^ 67108863 >>> o2 << o2, u3 = r4;
40145          if (n3 -= a2, n3 = Math.max(0, n3), u3) {
40146            for (var c3 = 0; c3 < a2; c3++)
40147              u3.words[c3] = this.words[c3];
40148            u3.length = a2;
40149          }
40150          if (0 === a2)
40151            ;
40152          else if (this.length > a2)
40153            for (this.length -= a2, c3 = 0; c3 < this.length; c3++)
40154              this.words[c3] = this.words[c3 + a2];
40155          else
40156            this.words[0] = 0, this.length = 1;
40157          var f3 = 0;
40158          for (c3 = this.length - 1; c3 >= 0 && (0 !== f3 || c3 >= n3); c3--) {
40159            var d3 = 0 | this.words[c3];
40160            this.words[c3] = f3 << 26 - o2 | d3 >>> o2, f3 = d3 & s2;
40161          }
40162          return u3 && 0 !== f3 && (u3.words[u3.length++] = f3), 0 === this.length && (this.words[0] = 0, this.length = 1), this._strip();
40163        }, a.prototype.ishrn = function(e5, t5, r4) {
40164          return i(0 === this.negative), this.iushrn(e5, t5, r4);
40165        }, a.prototype.shln = function(e5) {
40166          return this.clone().ishln(e5);
40167        }, a.prototype.ushln = function(e5) {
40168          return this.clone().iushln(e5);
40169        }, a.prototype.shrn = function(e5) {
40170          return this.clone().ishrn(e5);
40171        }, a.prototype.ushrn = function(e5) {
40172          return this.clone().iushrn(e5);
40173        }, a.prototype.testn = function(e5) {
40174          i("number" == typeof e5 && e5 >= 0);
40175          var t5 = e5 % 26, r4 = (e5 - t5) / 26, n3 = 1 << t5;
40176          return !(this.length <= r4 || !(this.words[r4] & n3));
40177        }, a.prototype.imaskn = function(e5) {
40178          i("number" == typeof e5 && e5 >= 0);
40179          var t5 = e5 % 26, r4 = (e5 - t5) / 26;
40180          if (i(0 === this.negative, "imaskn works only with positive numbers"), this.length <= r4)
40181            return this;
40182          if (0 !== t5 && r4++, this.length = Math.min(r4, this.length), 0 !== t5) {
40183            var n3 = 67108863 ^ 67108863 >>> t5 << t5;
40184            this.words[this.length - 1] &= n3;
40185          }
40186          return this._strip();
40187        }, a.prototype.maskn = function(e5) {
40188          return this.clone().imaskn(e5);
40189        }, a.prototype.iaddn = function(e5) {
40190          return i("number" == typeof e5), i(e5 < 67108864), e5 < 0 ? this.isubn(-e5) : 0 !== this.negative ? 1 === this.length && (0 | this.words[0]) <= e5 ? (this.words[0] = e5 - (0 | this.words[0]), this.negative = 0, this) : (this.negative = 0, this.isubn(e5), this.negative = 1, this) : this._iaddn(e5);
40191        }, a.prototype._iaddn = function(e5) {
40192          this.words[0] += e5;
40193          for (var t5 = 0; t5 < this.length && this.words[t5] >= 67108864; t5++)
40194            this.words[t5] -= 67108864, t5 === this.length - 1 ? this.words[t5 + 1] = 1 : this.words[t5 + 1]++;
40195          return this.length = Math.max(this.length, t5 + 1), this;
40196        }, a.prototype.isubn = function(e5) {
40197          if (i("number" == typeof e5), i(e5 < 67108864), e5 < 0)
40198            return this.iaddn(-e5);
40199          if (0 !== this.negative)
40200            return this.negative = 0, this.iaddn(e5), this.negative = 1, this;
40201          if (this.words[0] -= e5, 1 === this.length && this.words[0] < 0)
40202            this.words[0] = -this.words[0], this.negative = 1;
40203          else
40204            for (var t5 = 0; t5 < this.length && this.words[t5] < 0; t5++)
40205              this.words[t5] += 67108864, this.words[t5 + 1] -= 1;
40206          return this._strip();
40207        }, a.prototype.addn = function(e5) {
40208          return this.clone().iaddn(e5);
40209        }, a.prototype.subn = function(e5) {
40210          return this.clone().isubn(e5);
40211        }, a.prototype.iabs = function() {
40212          return this.negative = 0, this;
40213        }, a.prototype.abs = function() {
40214          return this.clone().iabs();
40215        }, a.prototype._ishlnsubmul = function(e5, t5, r4) {
40216          var n3, o2, a2 = e5.length + r4;
40217          this._expand(a2);
40218          var s2 = 0;
40219          for (n3 = 0; n3 < e5.length; n3++) {
40220            o2 = (0 | this.words[n3 + r4]) + s2;
40221            var u3 = (0 | e5.words[n3]) * t5;
40222            s2 = ((o2 -= 67108863 & u3) >> 26) - (u3 / 67108864 | 0), this.words[n3 + r4] = 67108863 & o2;
40223          }
40224          for (; n3 < this.length - r4; n3++)
40225            s2 = (o2 = (0 | this.words[n3 + r4]) + s2) >> 26, this.words[n3 + r4] = 67108863 & o2;
40226          if (0 === s2)
40227            return this._strip();
40228          for (i(-1 === s2), s2 = 0, n3 = 0; n3 < this.length; n3++)
40229            s2 = (o2 = -(0 | this.words[n3]) + s2) >> 26, this.words[n3] = 67108863 & o2;
40230          return this.negative = 1, this._strip();
40231        }, a.prototype._wordDiv = function(e5, t5) {
40232          var r4 = (this.length, e5.length), n3 = this.clone(), i2 = e5, o2 = 0 | i2.words[i2.length - 1];
40233          0 != (r4 = 26 - this._countBits(o2)) && (i2 = i2.ushln(r4), n3.iushln(r4), o2 = 0 | i2.words[i2.length - 1]);
40234          var s2, u3 = n3.length - i2.length;
40235          if ("mod" !== t5) {
40236            (s2 = new a(null)).length = u3 + 1, s2.words = new Array(s2.length);
40237            for (var c3 = 0; c3 < s2.length; c3++)
40238              s2.words[c3] = 0;
40239          }
40240          var f3 = n3.clone()._ishlnsubmul(i2, 1, u3);
40241          0 === f3.negative && (n3 = f3, s2 && (s2.words[u3] = 1));
40242          for (var d3 = u3 - 1; d3 >= 0; d3--) {
40243            var l3 = 67108864 * (0 | n3.words[i2.length + d3]) + (0 | n3.words[i2.length + d3 - 1]);
40244            for (l3 = Math.min(l3 / o2 | 0, 67108863), n3._ishlnsubmul(i2, l3, d3); 0 !== n3.negative; )
40245              l3--, n3.negative = 0, n3._ishlnsubmul(i2, 1, d3), n3.isZero() || (n3.negative ^= 1);
40246            s2 && (s2.words[d3] = l3);
40247          }
40248          return s2 && s2._strip(), n3._strip(), "div" !== t5 && 0 !== r4 && n3.iushrn(r4), { div: s2 || null, mod: n3 };
40249        }, a.prototype.divmod = function(e5, t5, r4) {
40250          return i(!e5.isZero()), this.isZero() ? { div: new a(0), mod: new a(0) } : 0 !== this.negative && 0 === e5.negative ? (s2 = this.neg().divmod(e5, t5), "mod" !== t5 && (n3 = s2.div.neg()), "div" !== t5 && (o2 = s2.mod.neg(), r4 && 0 !== o2.negative && o2.iadd(e5)), { div: n3, mod: o2 }) : 0 === this.negative && 0 !== e5.negative ? (s2 = this.divmod(e5.neg(), t5), "mod" !== t5 && (n3 = s2.div.neg()), { div: n3, mod: s2.mod }) : 0 != (this.negative & e5.negative) ? (s2 = this.neg().divmod(e5.neg(), t5), "div" !== t5 && (o2 = s2.mod.neg(), r4 && 0 !== o2.negative && o2.isub(e5)), { div: s2.div, mod: o2 }) : e5.length > this.length || this.cmp(e5) < 0 ? { div: new a(0), mod: this } : 1 === e5.length ? "div" === t5 ? { div: this.divn(e5.words[0]), mod: null } : "mod" === t5 ? { div: null, mod: new a(this.modrn(e5.words[0])) } : { div: this.divn(e5.words[0]), mod: new a(this.modrn(e5.words[0])) } : this._wordDiv(e5, t5);
40251          var n3, o2, s2;
40252        }, a.prototype.div = function(e5) {
40253          return this.divmod(e5, "div", false).div;
40254        }, a.prototype.mod = function(e5) {
40255          return this.divmod(e5, "mod", false).mod;
40256        }, a.prototype.umod = function(e5) {
40257          return this.divmod(e5, "mod", true).mod;
40258        }, a.prototype.divRound = function(e5) {
40259          var t5 = this.divmod(e5);
40260          if (t5.mod.isZero())
40261            return t5.div;
40262          var r4 = 0 !== t5.div.negative ? t5.mod.isub(e5) : t5.mod, n3 = e5.ushrn(1), i2 = e5.andln(1), o2 = r4.cmp(n3);
40263          return o2 < 0 || 1 === i2 && 0 === o2 ? t5.div : 0 !== t5.div.negative ? t5.div.isubn(1) : t5.div.iaddn(1);
40264        }, a.prototype.modrn = function(e5) {
40265          var t5 = e5 < 0;
40266          t5 && (e5 = -e5), i(e5 <= 67108863);
40267          for (var r4 = (1 << 26) % e5, n3 = 0, o2 = this.length - 1; o2 >= 0; o2--)
40268            n3 = (r4 * n3 + (0 | this.words[o2])) % e5;
40269          return t5 ? -n3 : n3;
40270        }, a.prototype.modn = function(e5) {
40271          return this.modrn(e5);
40272        }, a.prototype.idivn = function(e5) {
40273          var t5 = e5 < 0;
40274          t5 && (e5 = -e5), i(e5 <= 67108863);
40275          for (var r4 = 0, n3 = this.length - 1; n3 >= 0; n3--) {
40276            var o2 = (0 | this.words[n3]) + 67108864 * r4;
40277            this.words[n3] = o2 / e5 | 0, r4 = o2 % e5;
40278          }
40279          return this._strip(), t5 ? this.ineg() : this;
40280        }, a.prototype.divn = function(e5) {
40281          return this.clone().idivn(e5);
40282        }, a.prototype.egcd = function(e5) {
40283          i(0 === e5.negative), i(!e5.isZero());
40284          var t5 = this, r4 = e5.clone();
40285          t5 = 0 !== t5.negative ? t5.umod(e5) : t5.clone();
40286          for (var n3 = new a(1), o2 = new a(0), s2 = new a(0), u3 = new a(1), c3 = 0; t5.isEven() && r4.isEven(); )
40287            t5.iushrn(1), r4.iushrn(1), ++c3;
40288          for (var f3 = r4.clone(), d3 = t5.clone(); !t5.isZero(); ) {
40289            for (var l3 = 0, h3 = 1; 0 == (t5.words[0] & h3) && l3 < 26; ++l3, h3 <<= 1)
40290              ;
40291            if (l3 > 0)
40292              for (t5.iushrn(l3); l3-- > 0; )
40293                (n3.isOdd() || o2.isOdd()) && (n3.iadd(f3), o2.isub(d3)), n3.iushrn(1), o2.iushrn(1);
40294            for (var p3 = 0, b3 = 1; 0 == (r4.words[0] & b3) && p3 < 26; ++p3, b3 <<= 1)
40295              ;
40296            if (p3 > 0)
40297              for (r4.iushrn(p3); p3-- > 0; )
40298                (s2.isOdd() || u3.isOdd()) && (s2.iadd(f3), u3.isub(d3)), s2.iushrn(1), u3.iushrn(1);
40299            t5.cmp(r4) >= 0 ? (t5.isub(r4), n3.isub(s2), o2.isub(u3)) : (r4.isub(t5), s2.isub(n3), u3.isub(o2));
40300          }
40301          return { a: s2, b: u3, gcd: r4.iushln(c3) };
40302        }, a.prototype._invmp = function(e5) {
40303          i(0 === e5.negative), i(!e5.isZero());
40304          var t5 = this, r4 = e5.clone();
40305          t5 = 0 !== t5.negative ? t5.umod(e5) : t5.clone();
40306          for (var n3, o2 = new a(1), s2 = new a(0), u3 = r4.clone(); t5.cmpn(1) > 0 && r4.cmpn(1) > 0; ) {
40307            for (var c3 = 0, f3 = 1; 0 == (t5.words[0] & f3) && c3 < 26; ++c3, f3 <<= 1)
40308              ;
40309            if (c3 > 0)
40310              for (t5.iushrn(c3); c3-- > 0; )
40311                o2.isOdd() && o2.iadd(u3), o2.iushrn(1);
40312            for (var d3 = 0, l3 = 1; 0 == (r4.words[0] & l3) && d3 < 26; ++d3, l3 <<= 1)
40313              ;
40314            if (d3 > 0)
40315              for (r4.iushrn(d3); d3-- > 0; )
40316                s2.isOdd() && s2.iadd(u3), s2.iushrn(1);
40317            t5.cmp(r4) >= 0 ? (t5.isub(r4), o2.isub(s2)) : (r4.isub(t5), s2.isub(o2));
40318          }
40319          return (n3 = 0 === t5.cmpn(1) ? o2 : s2).cmpn(0) < 0 && n3.iadd(e5), n3;
40320        }, a.prototype.gcd = function(e5) {
40321          if (this.isZero())
40322            return e5.abs();
40323          if (e5.isZero())
40324            return this.abs();
40325          var t5 = this.clone(), r4 = e5.clone();
40326          t5.negative = 0, r4.negative = 0;
40327          for (var n3 = 0; t5.isEven() && r4.isEven(); n3++)
40328            t5.iushrn(1), r4.iushrn(1);
40329          for (; ; ) {
40330            for (; t5.isEven(); )
40331              t5.iushrn(1);
40332            for (; r4.isEven(); )
40333              r4.iushrn(1);
40334            var i2 = t5.cmp(r4);
40335            if (i2 < 0) {
40336              var o2 = t5;
40337              t5 = r4, r4 = o2;
40338            } else if (0 === i2 || 0 === r4.cmpn(1))
40339              break;
40340            t5.isub(r4);
40341          }
40342          return r4.iushln(n3);
40343        }, a.prototype.invm = function(e5) {
40344          return this.egcd(e5).a.umod(e5);
40345        }, a.prototype.isEven = function() {
40346          return 0 == (1 & this.words[0]);
40347        }, a.prototype.isOdd = function() {
40348          return 1 == (1 & this.words[0]);
40349        }, a.prototype.andln = function(e5) {
40350          return this.words[0] & e5;
40351        }, a.prototype.bincn = function(e5) {
40352          i("number" == typeof e5);
40353          var t5 = e5 % 26, r4 = (e5 - t5) / 26, n3 = 1 << t5;
40354          if (this.length <= r4)
40355            return this._expand(r4 + 1), this.words[r4] |= n3, this;
40356          for (var o2 = n3, a2 = r4; 0 !== o2 && a2 < this.length; a2++) {
40357            var s2 = 0 | this.words[a2];
40358            o2 = (s2 += o2) >>> 26, s2 &= 67108863, this.words[a2] = s2;
40359          }
40360          return 0 !== o2 && (this.words[a2] = o2, this.length++), this;
40361        }, a.prototype.isZero = function() {
40362          return 1 === this.length && 0 === this.words[0];
40363        }, a.prototype.cmpn = function(e5) {
40364          var t5, r4 = e5 < 0;
40365          if (0 !== this.negative && !r4)
40366            return -1;
40367          if (0 === this.negative && r4)
40368            return 1;
40369          if (this._strip(), this.length > 1)
40370            t5 = 1;
40371          else {
40372            r4 && (e5 = -e5), i(e5 <= 67108863, "Number is too big");
40373            var n3 = 0 | this.words[0];
40374            t5 = n3 === e5 ? 0 : n3 < e5 ? -1 : 1;
40375          }
40376          return 0 !== this.negative ? 0 | -t5 : t5;
40377        }, a.prototype.cmp = function(e5) {
40378          if (0 !== this.negative && 0 === e5.negative)
40379            return -1;
40380          if (0 === this.negative && 0 !== e5.negative)
40381            return 1;
40382          var t5 = this.ucmp(e5);
40383          return 0 !== this.negative ? 0 | -t5 : t5;
40384        }, a.prototype.ucmp = function(e5) {
40385          if (this.length > e5.length)
40386            return 1;
40387          if (this.length < e5.length)
40388            return -1;
40389          for (var t5 = 0, r4 = this.length - 1; r4 >= 0; r4--) {
40390            var n3 = 0 | this.words[r4], i2 = 0 | e5.words[r4];
40391            if (n3 !== i2) {
40392              n3 < i2 ? t5 = -1 : n3 > i2 && (t5 = 1);
40393              break;
40394            }
40395          }
40396          return t5;
40397        }, a.prototype.gtn = function(e5) {
40398          return 1 === this.cmpn(e5);
40399        }, a.prototype.gt = function(e5) {
40400          return 1 === this.cmp(e5);
40401        }, a.prototype.gten = function(e5) {
40402          return this.cmpn(e5) >= 0;
40403        }, a.prototype.gte = function(e5) {
40404          return this.cmp(e5) >= 0;
40405        }, a.prototype.ltn = function(e5) {
40406          return -1 === this.cmpn(e5);
40407        }, a.prototype.lt = function(e5) {
40408          return -1 === this.cmp(e5);
40409        }, a.prototype.lten = function(e5) {
40410          return this.cmpn(e5) <= 0;
40411        }, a.prototype.lte = function(e5) {
40412          return this.cmp(e5) <= 0;
40413        }, a.prototype.eqn = function(e5) {
40414          return 0 === this.cmpn(e5);
40415        }, a.prototype.eq = function(e5) {
40416          return 0 === this.cmp(e5);
40417        }, a.red = function(e5) {
40418          return new P2(e5);
40419        }, a.prototype.toRed = function(e5) {
40420          return i(!this.red, "Already a number in reduction context"), i(0 === this.negative, "red works only with positives"), e5.convertTo(this)._forceRed(e5);
40421        }, a.prototype.fromRed = function() {
40422          return i(this.red, "fromRed works only with numbers in reduction context"), this.red.convertFrom(this);
40423        }, a.prototype._forceRed = function(e5) {
40424          return this.red = e5, this;
40425        }, a.prototype.forceRed = function(e5) {
40426          return i(!this.red, "Already a number in reduction context"), this._forceRed(e5);
40427        }, a.prototype.redAdd = function(e5) {
40428          return i(this.red, "redAdd works only with red numbers"), this.red.add(this, e5);
40429        }, a.prototype.redIAdd = function(e5) {
40430          return i(this.red, "redIAdd works only with red numbers"), this.red.iadd(this, e5);
40431        }, a.prototype.redSub = function(e5) {
40432          return i(this.red, "redSub works only with red numbers"), this.red.sub(this, e5);
40433        }, a.prototype.redISub = function(e5) {
40434          return i(this.red, "redISub works only with red numbers"), this.red.isub(this, e5);
40435        }, a.prototype.redShl = function(e5) {
40436          return i(this.red, "redShl works only with red numbers"), this.red.shl(this, e5);
40437        }, a.prototype.redMul = function(e5) {
40438          return i(this.red, "redMul works only with red numbers"), this.red._verify2(this, e5), this.red.mul(this, e5);
40439        }, a.prototype.redIMul = function(e5) {
40440          return i(this.red, "redMul works only with red numbers"), this.red._verify2(this, e5), this.red.imul(this, e5);
40441        }, a.prototype.redSqr = function() {
40442          return i(this.red, "redSqr works only with red numbers"), this.red._verify1(this), this.red.sqr(this);
40443        }, a.prototype.redISqr = function() {
40444          return i(this.red, "redISqr works only with red numbers"), this.red._verify1(this), this.red.isqr(this);
40445        }, a.prototype.redSqrt = function() {
40446          return i(this.red, "redSqrt works only with red numbers"), this.red._verify1(this), this.red.sqrt(this);
40447        }, a.prototype.redInvm = function() {
40448          return i(this.red, "redInvm works only with red numbers"), this.red._verify1(this), this.red.invm(this);
40449        }, a.prototype.redNeg = function() {
40450          return i(this.red, "redNeg works only with red numbers"), this.red._verify1(this), this.red.neg(this);
40451        }, a.prototype.redPow = function(e5) {
40452          return i(this.red && !e5.red, "redPow(normalNum)"), this.red._verify1(this), this.red.pow(this, e5);
40453        };
40454        var A2 = { k256: null, p224: null, p192: null, p25519: null };
40455        function k2(e5, t5) {
40456          this.name = e5, this.p = new a(t5, 16), this.n = this.p.bitLength(), this.k = new a(1).iushln(this.n).isub(this.p), this.tmp = this._tmp();
40457        }
40458        function _() {
40459          k2.call(this, "k256", "ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f");
40460        }
40461        function S2() {
40462          k2.call(this, "p224", "ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001");
40463        }
40464        function x2() {
40465          k2.call(this, "p192", "ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff");
40466        }
40467        function E2() {
40468          k2.call(this, "25519", "7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed");
40469        }
40470        function P2(e5) {
40471          if ("string" == typeof e5) {
40472            var t5 = a._prime(e5);
40473            this.m = t5.p, this.prime = t5;
40474          } else
40475            i(e5.gtn(1), "modulus must be greater than 1"), this.m = e5, this.prime = null;
40476        }
40477        function O2(e5) {
40478          P2.call(this, e5), this.shift = this.m.bitLength(), this.shift % 26 != 0 && (this.shift += 26 - this.shift % 26), this.r = new a(1).iushln(this.shift), this.r2 = this.imod(this.r.sqr()), this.rinv = this.r._invmp(this.m), this.minv = this.rinv.mul(this.r).isubn(1).div(this.m), this.minv = this.minv.umod(this.r), this.minv = this.r.sub(this.minv);
40479        }
40480        k2.prototype._tmp = function() {
40481          var e5 = new a(null);
40482          return e5.words = new Array(Math.ceil(this.n / 13)), e5;
40483        }, k2.prototype.ireduce = function(e5) {
40484          var t5, r4 = e5;
40485          do {
40486            this.split(r4, this.tmp), t5 = (r4 = (r4 = this.imulK(r4)).iadd(this.tmp)).bitLength();
40487          } while (t5 > this.n);
40488          var n3 = t5 < this.n ? -1 : r4.ucmp(this.p);
40489          return 0 === n3 ? (r4.words[0] = 0, r4.length = 1) : n3 > 0 ? r4.isub(this.p) : void 0 !== r4.strip ? r4.strip() : r4._strip(), r4;
40490        }, k2.prototype.split = function(e5, t5) {
40491          e5.iushrn(this.n, 0, t5);
40492        }, k2.prototype.imulK = function(e5) {
40493          return e5.imul(this.k);
40494        }, o(_, k2), _.prototype.split = function(e5, t5) {
40495          for (var r4 = 4194303, n3 = Math.min(e5.length, 9), i2 = 0; i2 < n3; i2++)
40496            t5.words[i2] = e5.words[i2];
40497          if (t5.length = n3, e5.length <= 9)
40498            return e5.words[0] = 0, void (e5.length = 1);
40499          var o2 = e5.words[9];
40500          for (t5.words[t5.length++] = o2 & r4, i2 = 10; i2 < e5.length; i2++) {
40501            var a2 = 0 | e5.words[i2];
40502            e5.words[i2 - 10] = (a2 & r4) << 4 | o2 >>> 22, o2 = a2;
40503          }
40504          o2 >>>= 22, e5.words[i2 - 10] = o2, 0 === o2 && e5.length > 10 ? e5.length -= 10 : e5.length -= 9;
40505        }, _.prototype.imulK = function(e5) {
40506          e5.words[e5.length] = 0, e5.words[e5.length + 1] = 0, e5.length += 2;
40507          for (var t5 = 0, r4 = 0; r4 < e5.length; r4++) {
40508            var n3 = 0 | e5.words[r4];
40509            t5 += 977 * n3, e5.words[r4] = 67108863 & t5, t5 = 64 * n3 + (t5 / 67108864 | 0);
40510          }
40511          return 0 === e5.words[e5.length - 1] && (e5.length--, 0 === e5.words[e5.length - 1] && e5.length--), e5;
40512        }, o(S2, k2), o(x2, k2), o(E2, k2), E2.prototype.imulK = function(e5) {
40513          for (var t5 = 0, r4 = 0; r4 < e5.length; r4++) {
40514            var n3 = 19 * (0 | e5.words[r4]) + t5, i2 = 67108863 & n3;
40515            n3 >>>= 26, e5.words[r4] = i2, t5 = n3;
40516          }
40517          return 0 !== t5 && (e5.words[e5.length++] = t5), e5;
40518        }, a._prime = function(e5) {
40519          if (A2[e5])
40520            return A2[e5];
40521          var t5;
40522          if ("k256" === e5)
40523            t5 = new _();
40524          else if ("p224" === e5)
40525            t5 = new S2();
40526          else if ("p192" === e5)
40527            t5 = new x2();
40528          else {
40529            if ("p25519" !== e5)
40530              throw new Error("Unknown prime " + e5);
40531            t5 = new E2();
40532          }
40533          return A2[e5] = t5, t5;
40534        }, P2.prototype._verify1 = function(e5) {
40535          i(0 === e5.negative, "red works only with positives"), i(e5.red, "red works only with red numbers");
40536        }, P2.prototype._verify2 = function(e5, t5) {
40537          i(0 == (e5.negative | t5.negative), "red works only with positives"), i(e5.red && e5.red === t5.red, "red works only with red numbers");
40538        }, P2.prototype.imod = function(e5) {
40539          return this.prime ? this.prime.ireduce(e5)._forceRed(this) : (d2(e5, e5.umod(this.m)._forceRed(this)), e5);
40540        }, P2.prototype.neg = function(e5) {
40541          return e5.isZero() ? e5.clone() : this.m.sub(e5)._forceRed(this);
40542        }, P2.prototype.add = function(e5, t5) {
40543          this._verify2(e5, t5);
40544          var r4 = e5.add(t5);
40545          return r4.cmp(this.m) >= 0 && r4.isub(this.m), r4._forceRed(this);
40546        }, P2.prototype.iadd = function(e5, t5) {
40547          this._verify2(e5, t5);
40548          var r4 = e5.iadd(t5);
40549          return r4.cmp(this.m) >= 0 && r4.isub(this.m), r4;
40550        }, P2.prototype.sub = function(e5, t5) {
40551          this._verify2(e5, t5);
40552          var r4 = e5.sub(t5);
40553          return r4.cmpn(0) < 0 && r4.iadd(this.m), r4._forceRed(this);
40554        }, P2.prototype.isub = function(e5, t5) {
40555          this._verify2(e5, t5);
40556          var r4 = e5.isub(t5);
40557          return r4.cmpn(0) < 0 && r4.iadd(this.m), r4;
40558        }, P2.prototype.shl = function(e5, t5) {
40559          return this._verify1(e5), this.imod(e5.ushln(t5));
40560        }, P2.prototype.imul = function(e5, t5) {
40561          return this._verify2(e5, t5), this.imod(e5.imul(t5));
40562        }, P2.prototype.mul = function(e5, t5) {
40563          return this._verify2(e5, t5), this.imod(e5.mul(t5));
40564        }, P2.prototype.isqr = function(e5) {
40565          return this.imul(e5, e5.clone());
40566        }, P2.prototype.sqr = function(e5) {
40567          return this.mul(e5, e5);
40568        }, P2.prototype.sqrt = function(e5) {
40569          if (e5.isZero())
40570            return e5.clone();
40571          var t5 = this.m.andln(3);
40572          if (i(t5 % 2 == 1), 3 === t5) {
40573            var r4 = this.m.add(new a(1)).iushrn(2);
40574            return this.pow(e5, r4);
40575          }
40576          for (var n3 = this.m.subn(1), o2 = 0; !n3.isZero() && 0 === n3.andln(1); )
40577            o2++, n3.iushrn(1);
40578          i(!n3.isZero());
40579          var s2 = new a(1).toRed(this), u3 = s2.redNeg(), c3 = this.m.subn(1).iushrn(1), f3 = this.m.bitLength();
40580          for (f3 = new a(2 * f3 * f3).toRed(this); 0 !== this.pow(f3, c3).cmp(u3); )
40581            f3.redIAdd(u3);
40582          for (var d3 = this.pow(f3, n3), l3 = this.pow(e5, n3.addn(1).iushrn(1)), h3 = this.pow(e5, n3), p3 = o2; 0 !== h3.cmp(s2); ) {
40583            for (var b3 = h3, y3 = 0; 0 !== b3.cmp(s2); y3++)
40584              b3 = b3.redSqr();
40585            i(y3 < p3);
40586            var m3 = this.pow(d3, new a(1).iushln(p3 - y3 - 1));
40587            l3 = l3.redMul(m3), d3 = m3.redSqr(), h3 = h3.redMul(d3), p3 = y3;
40588          }
40589          return l3;
40590        }, P2.prototype.invm = function(e5) {
40591          var t5 = e5._invmp(this.m);
40592          return 0 !== t5.negative ? (t5.negative = 0, this.imod(t5).redNeg()) : this.imod(t5);
40593        }, P2.prototype.pow = function(e5, t5) {
40594          if (t5.isZero())
40595            return new a(1).toRed(this);
40596          if (0 === t5.cmpn(1))
40597            return e5.clone();
40598          var r4 = new Array(16);
40599          r4[0] = new a(1).toRed(this), r4[1] = e5;
40600          for (var n3 = 2; n3 < r4.length; n3++)
40601            r4[n3] = this.mul(r4[n3 - 1], e5);
40602          var i2 = r4[0], o2 = 0, s2 = 0, u3 = t5.bitLength() % 26;
40603          for (0 === u3 && (u3 = 26), n3 = t5.length - 1; n3 >= 0; n3--) {
40604            for (var c3 = t5.words[n3], f3 = u3 - 1; f3 >= 0; f3--) {
40605              var d3 = c3 >> f3 & 1;
40606              i2 !== r4[0] && (i2 = this.sqr(i2)), 0 !== d3 || 0 !== o2 ? (o2 <<= 1, o2 |= d3, (4 == ++s2 || 0 === n3 && 0 === f3) && (i2 = this.mul(i2, r4[o2]), s2 = 0, o2 = 0)) : s2 = 0;
40607            }
40608            u3 = 26;
40609          }
40610          return i2;
40611        }, P2.prototype.convertTo = function(e5) {
40612          var t5 = e5.umod(this.m);
40613          return t5 === e5 ? t5.clone() : t5;
40614        }, P2.prototype.convertFrom = function(e5) {
40615          var t5 = e5.clone();
40616          return t5.red = null, t5;
40617        }, a.mont = function(e5) {
40618          return new O2(e5);
40619        }, o(O2, P2), O2.prototype.convertTo = function(e5) {
40620          return this.imod(e5.ushln(this.shift));
40621        }, O2.prototype.convertFrom = function(e5) {
40622          var t5 = this.imod(e5.mul(this.rinv));
40623          return t5.red = null, t5;
40624        }, O2.prototype.imul = function(e5, t5) {
40625          if (e5.isZero() || t5.isZero())
40626            return e5.words[0] = 0, e5.length = 1, e5;
40627          var r4 = e5.imul(t5), n3 = r4.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m), i2 = r4.isub(n3).iushrn(this.shift), o2 = i2;
40628          return i2.cmp(this.m) >= 0 ? o2 = i2.isub(this.m) : i2.cmpn(0) < 0 && (o2 = i2.iadd(this.m)), o2._forceRed(this);
40629        }, O2.prototype.mul = function(e5, t5) {
40630          if (e5.isZero() || t5.isZero())
40631            return new a(0)._forceRed(this);
40632          var r4 = e5.mul(t5), n3 = r4.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m), i2 = r4.isub(n3).iushrn(this.shift), o2 = i2;
40633          return i2.cmp(this.m) >= 0 ? o2 = i2.isub(this.m) : i2.cmpn(0) < 0 && (o2 = i2.iadd(this.m)), o2._forceRed(this);
40634        }, O2.prototype.invm = function(e5) {
40635          return this.imod(e5._invmp(this.m).mul(this.r2))._forceRed(this);
40636        };
40637      }(e3);
40638    }, 2202: (e3, t3, r3) => {
40639      var n2, i = r3(8847)(r3(3355));
40640      function o(e4) {
40641        this.rand = e4;
40642      }
40643      if (e3.exports = function(e4) {
40644        return n2 || (n2 = new o(null)), n2.generate(e4);
40645      }, e3.exports.Rand = o, o.prototype.generate = function(e4) {
40646        return this._rand(e4);
40647      }, o.prototype._rand = function(e4) {
40648        if (this.rand.getBytes)
40649          return this.rand.getBytes(e4);
40650        for (var t4 = new Uint8Array(e4), r4 = 0; r4 < t4.length; r4++)
40651          t4[r4] = this.rand.getByte();
40652        return t4;
40653      }, "object" === ("undefined" == typeof self ? "undefined" : (0, i.default)(self)))
40654        self.crypto && self.crypto.getRandomValues ? o.prototype._rand = function(e4) {
40655          var t4 = new Uint8Array(e4);
40656          return self.crypto.getRandomValues(t4), t4;
40657        } : self.msCrypto && self.msCrypto.getRandomValues ? o.prototype._rand = function(e4) {
40658          var t4 = new Uint8Array(e4);
40659          return self.msCrypto.getRandomValues(t4), t4;
40660        } : "object" === ("undefined" == typeof window ? "undefined" : (0, i.default)(window)) && (o.prototype._rand = function() {
40661          throw new Error("Not implemented yet");
40662        });
40663      else
40664        try {
40665          var a = r3(9214);
40666          if ("function" != typeof a.randomBytes)
40667            throw new Error("Not supported");
40668          o.prototype._rand = function(e4) {
40669            return a.randomBytes(e4);
40670          };
40671        } catch (e4) {
40672        }
40673    }, 7494: (e3, t3, r3) => {
40674      var n2 = r3(8850).Buffer;
40675      function i(e4) {
40676        n2.isBuffer(e4) || (e4 = n2.from(e4));
40677        for (var t4 = e4.length / 4 | 0, r4 = new Array(t4), i2 = 0; i2 < t4; i2++)
40678          r4[i2] = e4.readUInt32BE(4 * i2);
40679        return r4;
40680      }
40681      function o(e4) {
40682        for (; 0 < e4.length; e4++)
40683          e4[0] = 0;
40684      }
40685      function a(e4, t4, r4, n3, i2) {
40686        for (var o2, a2, s2, u3, c3 = r4[0], f2 = r4[1], d2 = r4[2], l2 = r4[3], h2 = e4[0] ^ t4[0], p2 = e4[1] ^ t4[1], b2 = e4[2] ^ t4[2], y2 = e4[3] ^ t4[3], m2 = 4, v2 = 1; v2 < i2; v2++)
40687          o2 = c3[h2 >>> 24] ^ f2[p2 >>> 16 & 255] ^ d2[b2 >>> 8 & 255] ^ l2[255 & y2] ^ t4[m2++], a2 = c3[p2 >>> 24] ^ f2[b2 >>> 16 & 255] ^ d2[y2 >>> 8 & 255] ^ l2[255 & h2] ^ t4[m2++], s2 = c3[b2 >>> 24] ^ f2[y2 >>> 16 & 255] ^ d2[h2 >>> 8 & 255] ^ l2[255 & p2] ^ t4[m2++], u3 = c3[y2 >>> 24] ^ f2[h2 >>> 16 & 255] ^ d2[p2 >>> 8 & 255] ^ l2[255 & b2] ^ t4[m2++], h2 = o2, p2 = a2, b2 = s2, y2 = u3;
40688        return o2 = (n3[h2 >>> 24] << 24 | n3[p2 >>> 16 & 255] << 16 | n3[b2 >>> 8 & 255] << 8 | n3[255 & y2]) ^ t4[m2++], a2 = (n3[p2 >>> 24] << 24 | n3[b2 >>> 16 & 255] << 16 | n3[y2 >>> 8 & 255] << 8 | n3[255 & h2]) ^ t4[m2++], s2 = (n3[b2 >>> 24] << 24 | n3[y2 >>> 16 & 255] << 16 | n3[h2 >>> 8 & 255] << 8 | n3[255 & p2]) ^ t4[m2++], u3 = (n3[y2 >>> 24] << 24 | n3[h2 >>> 16 & 255] << 16 | n3[p2 >>> 8 & 255] << 8 | n3[255 & b2]) ^ t4[m2++], [o2 >>>= 0, a2 >>>= 0, s2 >>>= 0, u3 >>>= 0];
40689      }
40690      var s = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], u2 = function() {
40691        for (var e4 = new Array(256), t4 = 0; t4 < 256; t4++)
40692          e4[t4] = t4 < 128 ? t4 << 1 : t4 << 1 ^ 283;
40693        for (var r4 = [], n3 = [], i2 = [[], [], [], []], o2 = [[], [], [], []], a2 = 0, s2 = 0, u3 = 0; u3 < 256; ++u3) {
40694          var c3 = s2 ^ s2 << 1 ^ s2 << 2 ^ s2 << 3 ^ s2 << 4;
40695          c3 = c3 >>> 8 ^ 255 & c3 ^ 99, r4[a2] = c3, n3[c3] = a2;
40696          var f2 = e4[a2], d2 = e4[f2], l2 = e4[d2], h2 = 257 * e4[c3] ^ 16843008 * c3;
40697          i2[0][a2] = h2 << 24 | h2 >>> 8, i2[1][a2] = h2 << 16 | h2 >>> 16, i2[2][a2] = h2 << 8 | h2 >>> 24, i2[3][a2] = h2, h2 = 16843009 * l2 ^ 65537 * d2 ^ 257 * f2 ^ 16843008 * a2, o2[0][c3] = h2 << 24 | h2 >>> 8, o2[1][c3] = h2 << 16 | h2 >>> 16, o2[2][c3] = h2 << 8 | h2 >>> 24, o2[3][c3] = h2, 0 === a2 ? a2 = s2 = 1 : (a2 = f2 ^ e4[e4[e4[l2 ^ f2]]], s2 ^= e4[e4[s2]]);
40698        }
40699        return { SBOX: r4, INV_SBOX: n3, SUB_MIX: i2, INV_SUB_MIX: o2 };
40700      }();
40701      function c2(e4) {
40702        this._key = i(e4), this._reset();
40703      }
40704      c2.blockSize = 16, c2.keySize = 32, c2.prototype.blockSize = c2.blockSize, c2.prototype.keySize = c2.keySize, c2.prototype._reset = function() {
40705        for (var e4 = this._key, t4 = e4.length, r4 = t4 + 6, n3 = 4 * (r4 + 1), i2 = [], o2 = 0; o2 < t4; o2++)
40706          i2[o2] = e4[o2];
40707        for (o2 = t4; o2 < n3; o2++) {
40708          var a2 = i2[o2 - 1];
40709          o2 % t4 == 0 ? (a2 = a2 << 8 | a2 >>> 24, a2 = u2.SBOX[a2 >>> 24] << 24 | u2.SBOX[a2 >>> 16 & 255] << 16 | u2.SBOX[a2 >>> 8 & 255] << 8 | u2.SBOX[255 & a2], a2 ^= s[o2 / t4 | 0] << 24) : t4 > 6 && o2 % t4 == 4 && (a2 = u2.SBOX[a2 >>> 24] << 24 | u2.SBOX[a2 >>> 16 & 255] << 16 | u2.SBOX[a2 >>> 8 & 255] << 8 | u2.SBOX[255 & a2]), i2[o2] = i2[o2 - t4] ^ a2;
40710        }
40711        for (var c3 = [], f2 = 0; f2 < n3; f2++) {
40712          var d2 = n3 - f2, l2 = i2[d2 - (f2 % 4 ? 0 : 4)];
40713          c3[f2] = f2 < 4 || d2 <= 4 ? l2 : u2.INV_SUB_MIX[0][u2.SBOX[l2 >>> 24]] ^ u2.INV_SUB_MIX[1][u2.SBOX[l2 >>> 16 & 255]] ^ u2.INV_SUB_MIX[2][u2.SBOX[l2 >>> 8 & 255]] ^ u2.INV_SUB_MIX[3][u2.SBOX[255 & l2]];
40714        }
40715        this._nRounds = r4, this._keySchedule = i2, this._invKeySchedule = c3;
40716      }, c2.prototype.encryptBlockRaw = function(e4) {
40717        return a(e4 = i(e4), this._keySchedule, u2.SUB_MIX, u2.SBOX, this._nRounds);
40718      }, c2.prototype.encryptBlock = function(e4) {
40719        var t4 = this.encryptBlockRaw(e4), r4 = n2.allocUnsafe(16);
40720        return r4.writeUInt32BE(t4[0], 0), r4.writeUInt32BE(t4[1], 4), r4.writeUInt32BE(t4[2], 8), r4.writeUInt32BE(t4[3], 12), r4;
40721      }, c2.prototype.decryptBlock = function(e4) {
40722        var t4 = (e4 = i(e4))[1];
40723        e4[1] = e4[3], e4[3] = t4;
40724        var r4 = a(e4, this._invKeySchedule, u2.INV_SUB_MIX, u2.INV_SBOX, this._nRounds), o2 = n2.allocUnsafe(16);
40725        return o2.writeUInt32BE(r4[0], 0), o2.writeUInt32BE(r4[3], 4), o2.writeUInt32BE(r4[2], 8), o2.writeUInt32BE(r4[1], 12), o2;
40726      }, c2.prototype.scrub = function() {
40727        o(this._keySchedule), o(this._invKeySchedule), o(this._key);
40728      }, e3.exports.AES = c2;
40729    }, 426: (e3, t3, r3) => {
40730      var n2 = r3(7494), i = r3(8850).Buffer, o = r3(3013), a = r3(1736), s = r3(6626), u2 = r3(6316), c2 = r3(7557);
40731      function f2(e4, t4, r4, a2) {
40732        o.call(this);
40733        var u3 = i.alloc(4, 0);
40734        this._cipher = new n2.AES(t4);
40735        var f3 = this._cipher.encryptBlock(u3);
40736        this._ghash = new s(f3), r4 = function(e5, t5, r5) {
40737          if (12 === t5.length)
40738            return e5._finID = i.concat([t5, i.from([0, 0, 0, 1])]), i.concat([t5, i.from([0, 0, 0, 2])]);
40739          var n3 = new s(r5), o2 = t5.length, a3 = o2 % 16;
40740          n3.update(t5), a3 && (a3 = 16 - a3, n3.update(i.alloc(a3, 0))), n3.update(i.alloc(8, 0));
40741          var u4 = 8 * o2, f4 = i.alloc(8);
40742          f4.writeUIntBE(u4, 0, 8), n3.update(f4), e5._finID = n3.state;
40743          var d2 = i.from(e5._finID);
40744          return c2(d2), d2;
40745        }(this, r4, f3), this._prev = i.from(r4), this._cache = i.allocUnsafe(0), this._secCache = i.allocUnsafe(0), this._decrypt = a2, this._alen = 0, this._len = 0, this._mode = e4, this._authTag = null, this._called = false;
40746      }
40747      a(f2, o), f2.prototype._update = function(e4) {
40748        if (!this._called && this._alen) {
40749          var t4 = 16 - this._alen % 16;
40750          t4 < 16 && (t4 = i.alloc(t4, 0), this._ghash.update(t4));
40751        }
40752        this._called = true;
40753        var r4 = this._mode.encrypt(this, e4);
40754        return this._decrypt ? this._ghash.update(e4) : this._ghash.update(r4), this._len += e4.length, r4;
40755      }, f2.prototype._final = function() {
40756        if (this._decrypt && !this._authTag)
40757          throw new Error("Unsupported state or unable to authenticate data");
40758        var e4 = u2(this._ghash.final(8 * this._alen, 8 * this._len), this._cipher.encryptBlock(this._finID));
40759        if (this._decrypt && function(e5, t4) {
40760          var r4 = 0;
40761          e5.length !== t4.length && r4++;
40762          for (var n3 = Math.min(e5.length, t4.length), i2 = 0; i2 < n3; ++i2)
40763            r4 += e5[i2] ^ t4[i2];
40764          return r4;
40765        }(e4, this._authTag))
40766          throw new Error("Unsupported state or unable to authenticate data");
40767        this._authTag = e4, this._cipher.scrub();
40768      }, f2.prototype.getAuthTag = function() {
40769        if (this._decrypt || !i.isBuffer(this._authTag))
40770          throw new Error("Attempting to get auth tag in unsupported state");
40771        return this._authTag;
40772      }, f2.prototype.setAuthTag = function(e4) {
40773        if (!this._decrypt)
40774          throw new Error("Attempting to set auth tag in unsupported state");
40775        this._authTag = e4;
40776      }, f2.prototype.setAAD = function(e4) {
40777        if (this._called)
40778          throw new Error("Attempting to set AAD in unsupported state");
40779        this._ghash.update(e4), this._alen += e4.length;
40780      }, e3.exports = f2;
40781    }, 8073: (e3, t3, r3) => {
40782      var n2 = r3(5478), i = r3(2184), o = r3(4946);
40783      t3.createCipher = t3.Cipher = n2.createCipher, t3.createCipheriv = t3.Cipheriv = n2.createCipheriv, t3.createDecipher = t3.Decipher = i.createDecipher, t3.createDecipheriv = t3.Decipheriv = i.createDecipheriv, t3.listCiphers = t3.getCiphers = function() {
40784        return Object.keys(o);
40785      };
40786    }, 2184: (e3, t3, r3) => {
40787      var n2 = r3(426), i = r3(8850).Buffer, o = r3(8408), a = r3(1408), s = r3(3013), u2 = r3(7494), c2 = r3(7085);
40788      function f2(e4, t4, r4) {
40789        s.call(this), this._cache = new d2(), this._last = void 0, this._cipher = new u2.AES(t4), this._prev = i.from(r4), this._mode = e4, this._autopadding = true;
40790      }
40791      function d2() {
40792        this.cache = i.allocUnsafe(0);
40793      }
40794      function l2(e4, t4, r4) {
40795        var s2 = o[e4.toLowerCase()];
40796        if (!s2)
40797          throw new TypeError("invalid suite type");
40798        if ("string" == typeof r4 && (r4 = i.from(r4)), "GCM" !== s2.mode && r4.length !== s2.iv)
40799          throw new TypeError("invalid iv length " + r4.length);
40800        if ("string" == typeof t4 && (t4 = i.from(t4)), t4.length !== s2.key / 8)
40801          throw new TypeError("invalid key length " + t4.length);
40802        return "stream" === s2.type ? new a(s2.module, t4, r4, true) : "auth" === s2.type ? new n2(s2.module, t4, r4, true) : new f2(s2.module, t4, r4);
40803      }
40804      r3(1736)(f2, s), f2.prototype._update = function(e4) {
40805        var t4, r4;
40806        this._cache.add(e4);
40807        for (var n3 = []; t4 = this._cache.get(this._autopadding); )
40808          r4 = this._mode.decrypt(this, t4), n3.push(r4);
40809        return i.concat(n3);
40810      }, f2.prototype._final = function() {
40811        var e4 = this._cache.flush();
40812        if (this._autopadding)
40813          return function(e5) {
40814            var t4 = e5[15];
40815            if (t4 < 1 || t4 > 16)
40816              throw new Error("unable to decrypt data");
40817            for (var r4 = -1; ++r4 < t4; )
40818              if (e5[r4 + (16 - t4)] !== t4)
40819                throw new Error("unable to decrypt data");
40820            if (16 !== t4)
40821              return e5.slice(0, 16 - t4);
40822          }(this._mode.decrypt(this, e4));
40823        if (e4)
40824          throw new Error("data not multiple of block length");
40825      }, f2.prototype.setAutoPadding = function(e4) {
40826        return this._autopadding = !!e4, this;
40827      }, d2.prototype.add = function(e4) {
40828        this.cache = i.concat([this.cache, e4]);
40829      }, d2.prototype.get = function(e4) {
40830        var t4;
40831        if (e4) {
40832          if (this.cache.length > 16)
40833            return t4 = this.cache.slice(0, 16), this.cache = this.cache.slice(16), t4;
40834        } else if (this.cache.length >= 16)
40835          return t4 = this.cache.slice(0, 16), this.cache = this.cache.slice(16), t4;
40836        return null;
40837      }, d2.prototype.flush = function() {
40838        if (this.cache.length)
40839          return this.cache;
40840      }, t3.createDecipher = function(e4, t4) {
40841        var r4 = o[e4.toLowerCase()];
40842        if (!r4)
40843          throw new TypeError("invalid suite type");
40844        var n3 = c2(t4, false, r4.key, r4.iv);
40845        return l2(e4, n3.key, n3.iv);
40846      }, t3.createDecipheriv = l2;
40847    }, 5478: (e3, t3, r3) => {
40848      var n2 = r3(8408), i = r3(426), o = r3(8850).Buffer, a = r3(1408), s = r3(3013), u2 = r3(7494), c2 = r3(7085);
40849      function f2(e4, t4, r4) {
40850        s.call(this), this._cache = new l2(), this._cipher = new u2.AES(t4), this._prev = o.from(r4), this._mode = e4, this._autopadding = true;
40851      }
40852      r3(1736)(f2, s), f2.prototype._update = function(e4) {
40853        var t4, r4;
40854        this._cache.add(e4);
40855        for (var n3 = []; t4 = this._cache.get(); )
40856          r4 = this._mode.encrypt(this, t4), n3.push(r4);
40857        return o.concat(n3);
40858      };
40859      var d2 = o.alloc(16, 16);
40860      function l2() {
40861        this.cache = o.allocUnsafe(0);
40862      }
40863      function h2(e4, t4, r4) {
40864        var s2 = n2[e4.toLowerCase()];
40865        if (!s2)
40866          throw new TypeError("invalid suite type");
40867        if ("string" == typeof t4 && (t4 = o.from(t4)), t4.length !== s2.key / 8)
40868          throw new TypeError("invalid key length " + t4.length);
40869        if ("string" == typeof r4 && (r4 = o.from(r4)), "GCM" !== s2.mode && r4.length !== s2.iv)
40870          throw new TypeError("invalid iv length " + r4.length);
40871        return "stream" === s2.type ? new a(s2.module, t4, r4) : "auth" === s2.type ? new i(s2.module, t4, r4) : new f2(s2.module, t4, r4);
40872      }
40873      f2.prototype._final = function() {
40874        var e4 = this._cache.flush();
40875        if (this._autopadding)
40876          return e4 = this._mode.encrypt(this, e4), this._cipher.scrub(), e4;
40877        if (!e4.equals(d2))
40878          throw this._cipher.scrub(), new Error("data not multiple of block length");
40879      }, f2.prototype.setAutoPadding = function(e4) {
40880        return this._autopadding = !!e4, this;
40881      }, l2.prototype.add = function(e4) {
40882        this.cache = o.concat([this.cache, e4]);
40883      }, l2.prototype.get = function() {
40884        if (this.cache.length > 15) {
40885          var e4 = this.cache.slice(0, 16);
40886          return this.cache = this.cache.slice(16), e4;
40887        }
40888        return null;
40889      }, l2.prototype.flush = function() {
40890        for (var e4 = 16 - this.cache.length, t4 = o.allocUnsafe(e4), r4 = -1; ++r4 < e4; )
40891          t4.writeUInt8(e4, r4);
40892        return o.concat([this.cache, t4]);
40893      }, t3.createCipheriv = h2, t3.createCipher = function(e4, t4) {
40894        var r4 = n2[e4.toLowerCase()];
40895        if (!r4)
40896          throw new TypeError("invalid suite type");
40897        var i2 = c2(t4, false, r4.key, r4.iv);
40898        return h2(e4, i2.key, i2.iv);
40899      };
40900    }, 6626: (e3, t3, r3) => {
40901      var n2 = r3(8850).Buffer, i = n2.alloc(16, 0);
40902      function o(e4) {
40903        var t4 = n2.allocUnsafe(16);
40904        return t4.writeUInt32BE(e4[0] >>> 0, 0), t4.writeUInt32BE(e4[1] >>> 0, 4), t4.writeUInt32BE(e4[2] >>> 0, 8), t4.writeUInt32BE(e4[3] >>> 0, 12), t4;
40905      }
40906      function a(e4) {
40907        this.h = e4, this.state = n2.alloc(16, 0), this.cache = n2.allocUnsafe(0);
40908      }
40909      a.prototype.ghash = function(e4) {
40910        for (var t4 = -1; ++t4 < e4.length; )
40911          this.state[t4] ^= e4[t4];
40912        this._multiply();
40913      }, a.prototype._multiply = function() {
40914        for (var e4, t4, r4, n3 = [(e4 = this.h).readUInt32BE(0), e4.readUInt32BE(4), e4.readUInt32BE(8), e4.readUInt32BE(12)], i2 = [0, 0, 0, 0], a2 = -1; ++a2 < 128; ) {
40915          for (0 != (this.state[~~(a2 / 8)] & 1 << 7 - a2 % 8) && (i2[0] ^= n3[0], i2[1] ^= n3[1], i2[2] ^= n3[2], i2[3] ^= n3[3]), r4 = 0 != (1 & n3[3]), t4 = 3; t4 > 0; t4--)
40916            n3[t4] = n3[t4] >>> 1 | (1 & n3[t4 - 1]) << 31;
40917          n3[0] = n3[0] >>> 1, r4 && (n3[0] = n3[0] ^ 225 << 24);
40918        }
40919        this.state = o(i2);
40920      }, a.prototype.update = function(e4) {
40921        var t4;
40922        for (this.cache = n2.concat([this.cache, e4]); this.cache.length >= 16; )
40923          t4 = this.cache.slice(0, 16), this.cache = this.cache.slice(16), this.ghash(t4);
40924      }, a.prototype.final = function(e4, t4) {
40925        return this.cache.length && this.ghash(n2.concat([this.cache, i], 16)), this.ghash(o([0, e4, 0, t4])), this.state;
40926      }, e3.exports = a;
40927    }, 7557: (e3) => {
40928      e3.exports = function(e4) {
40929        for (var t3, r3 = e4.length; r3--; ) {
40930          if (255 !== (t3 = e4.readUInt8(r3))) {
40931            t3++, e4.writeUInt8(t3, r3);
40932            break;
40933          }
40934          e4.writeUInt8(0, r3);
40935        }
40936      };
40937    }, 7427: (e3, t3, r3) => {
40938      var n2 = r3(6316);
40939      t3.encrypt = function(e4, t4) {
40940        var r4 = n2(t4, e4._prev);
40941        return e4._prev = e4._cipher.encryptBlock(r4), e4._prev;
40942      }, t3.decrypt = function(e4, t4) {
40943        var r4 = e4._prev;
40944        e4._prev = t4;
40945        var i = e4._cipher.decryptBlock(t4);
40946        return n2(i, r4);
40947      };
40948    }, 4030: (e3, t3, r3) => {
40949      var n2 = r3(8850).Buffer, i = r3(6316);
40950      function o(e4, t4, r4) {
40951        var o2 = t4.length, a = i(t4, e4._cache);
40952        return e4._cache = e4._cache.slice(o2), e4._prev = n2.concat([e4._prev, r4 ? t4 : a]), a;
40953      }
40954      t3.encrypt = function(e4, t4, r4) {
40955        for (var i2, a = n2.allocUnsafe(0); t4.length; ) {
40956          if (0 === e4._cache.length && (e4._cache = e4._cipher.encryptBlock(e4._prev), e4._prev = n2.allocUnsafe(0)), !(e4._cache.length <= t4.length)) {
40957            a = n2.concat([a, o(e4, t4, r4)]);
40958            break;
40959          }
40960          i2 = e4._cache.length, a = n2.concat([a, o(e4, t4.slice(0, i2), r4)]), t4 = t4.slice(i2);
40961        }
40962        return a;
40963      };
40964    }, 3206: (e3, t3, r3) => {
40965      var n2 = r3(8850).Buffer;
40966      function i(e4, t4, r4) {
40967        for (var n3, i2, a = -1, s = 0; ++a < 8; )
40968          n3 = t4 & 1 << 7 - a ? 128 : 0, s += (128 & (i2 = e4._cipher.encryptBlock(e4._prev)[0] ^ n3)) >> a % 8, e4._prev = o(e4._prev, r4 ? n3 : i2);
40969        return s;
40970      }
40971      function o(e4, t4) {
40972        var r4 = e4.length, i2 = -1, o2 = n2.allocUnsafe(e4.length);
40973        for (e4 = n2.concat([e4, n2.from([t4])]); ++i2 < r4; )
40974          o2[i2] = e4[i2] << 1 | e4[i2 + 1] >> 7;
40975        return o2;
40976      }
40977      t3.encrypt = function(e4, t4, r4) {
40978        for (var o2 = t4.length, a = n2.allocUnsafe(o2), s = -1; ++s < o2; )
40979          a[s] = i(e4, t4[s], r4);
40980        return a;
40981      };
40982    }, 4726: (e3, t3, r3) => {
40983      var n2 = r3(8850).Buffer;
40984      function i(e4, t4, r4) {
40985        var i2 = e4._cipher.encryptBlock(e4._prev)[0] ^ t4;
40986        return e4._prev = n2.concat([e4._prev.slice(1), n2.from([r4 ? t4 : i2])]), i2;
40987      }
40988      t3.encrypt = function(e4, t4, r4) {
40989        for (var o = t4.length, a = n2.allocUnsafe(o), s = -1; ++s < o; )
40990          a[s] = i(e4, t4[s], r4);
40991        return a;
40992      };
40993    }, 2802: (e3, t3, r3) => {
40994      var n2 = r3(6316), i = r3(8850).Buffer, o = r3(7557);
40995      function a(e4) {
40996        var t4 = e4._cipher.encryptBlockRaw(e4._prev);
40997        return o(e4._prev), t4;
40998      }
40999      t3.encrypt = function(e4, t4) {
41000        var r4 = Math.ceil(t4.length / 16), o2 = e4._cache.length;
41001        e4._cache = i.concat([e4._cache, i.allocUnsafe(16 * r4)]);
41002        for (var s = 0; s < r4; s++) {
41003          var u2 = a(e4), c2 = o2 + 16 * s;
41004          e4._cache.writeUInt32BE(u2[0], c2 + 0), e4._cache.writeUInt32BE(u2[1], c2 + 4), e4._cache.writeUInt32BE(u2[2], c2 + 8), e4._cache.writeUInt32BE(u2[3], c2 + 12);
41005        }
41006        var f2 = e4._cache.slice(0, t4.length);
41007        return e4._cache = e4._cache.slice(t4.length), n2(t4, f2);
41008      };
41009    }, 9297: (e3, t3) => {
41010      t3.encrypt = function(e4, t4) {
41011        return e4._cipher.encryptBlock(t4);
41012      }, t3.decrypt = function(e4, t4) {
41013        return e4._cipher.decryptBlock(t4);
41014      };
41015    }, 8408: (e3, t3, r3) => {
41016      var n2 = { ECB: r3(9297), CBC: r3(7427), CFB: r3(4030), CFB8: r3(4726), CFB1: r3(3206), OFB: r3(1962), CTR: r3(2802), GCM: r3(2802) }, i = r3(4946);
41017      for (var o in i)
41018        i[o].module = n2[i[o].mode];
41019      e3.exports = i;
41020    }, 1962: (e3, t3, r3) => {
41021      var n2 = r3(9033).Buffer, i = r3(6316);
41022      function o(e4) {
41023        return e4._prev = e4._cipher.encryptBlock(e4._prev), e4._prev;
41024      }
41025      t3.encrypt = function(e4, t4) {
41026        for (; e4._cache.length < t4.length; )
41027          e4._cache = n2.concat([e4._cache, o(e4)]);
41028        var r4 = e4._cache.slice(0, t4.length);
41029        return e4._cache = e4._cache.slice(t4.length), i(t4, r4);
41030      };
41031    }, 1408: (e3, t3, r3) => {
41032      var n2 = r3(7494), i = r3(8850).Buffer, o = r3(3013);
41033      function a(e4, t4, r4, a2) {
41034        o.call(this), this._cipher = new n2.AES(t4), this._prev = i.from(r4), this._cache = i.allocUnsafe(0), this._secCache = i.allocUnsafe(0), this._decrypt = a2, this._mode = e4;
41035      }
41036      r3(1736)(a, o), a.prototype._update = function(e4) {
41037        return this._mode.encrypt(this, e4, this._decrypt);
41038      }, a.prototype._final = function() {
41039        this._cipher.scrub();
41040      }, e3.exports = a;
41041    }, 6805: (e3, t3, r3) => {
41042      var n2 = r3(9120), i = r3(8073), o = r3(8408), a = r3(867), s = r3(7085);
41043      function u2(e4, t4, r4) {
41044        if (e4 = e4.toLowerCase(), o[e4])
41045          return i.createCipheriv(e4, t4, r4);
41046        if (a[e4])
41047          return new n2({ key: t4, iv: r4, mode: e4 });
41048        throw new TypeError("invalid suite type");
41049      }
41050      function c2(e4, t4, r4) {
41051        if (e4 = e4.toLowerCase(), o[e4])
41052          return i.createDecipheriv(e4, t4, r4);
41053        if (a[e4])
41054          return new n2({ key: t4, iv: r4, mode: e4, decrypt: true });
41055        throw new TypeError("invalid suite type");
41056      }
41057      t3.createCipher = t3.Cipher = function(e4, t4) {
41058        var r4, n3;
41059        if (e4 = e4.toLowerCase(), o[e4])
41060          r4 = o[e4].key, n3 = o[e4].iv;
41061        else {
41062          if (!a[e4])
41063            throw new TypeError("invalid suite type");
41064          r4 = 8 * a[e4].key, n3 = a[e4].iv;
41065        }
41066        var i2 = s(t4, false, r4, n3);
41067        return u2(e4, i2.key, i2.iv);
41068      }, t3.createCipheriv = t3.Cipheriv = u2, t3.createDecipher = t3.Decipher = function(e4, t4) {
41069        var r4, n3;
41070        if (e4 = e4.toLowerCase(), o[e4])
41071          r4 = o[e4].key, n3 = o[e4].iv;
41072        else {
41073          if (!a[e4])
41074            throw new TypeError("invalid suite type");
41075          r4 = 8 * a[e4].key, n3 = a[e4].iv;
41076        }
41077        var i2 = s(t4, false, r4, n3);
41078        return c2(e4, i2.key, i2.iv);
41079      }, t3.createDecipheriv = t3.Decipheriv = c2, t3.listCiphers = t3.getCiphers = function() {
41080        return Object.keys(a).concat(i.getCiphers());
41081      };
41082    }, 9120: (e3, t3, r3) => {
41083      var n2 = r3(3013), i = r3(5626), o = r3(1736), a = r3(8850).Buffer, s = { "des-ede3-cbc": i.CBC.instantiate(i.EDE), "des-ede3": i.EDE, "des-ede-cbc": i.CBC.instantiate(i.EDE), "des-ede": i.EDE, "des-cbc": i.CBC.instantiate(i.DES), "des-ecb": i.DES };
41084      function u2(e4) {
41085        n2.call(this);
41086        var t4, r4 = e4.mode.toLowerCase(), i2 = s[r4];
41087        t4 = e4.decrypt ? "decrypt" : "encrypt";
41088        var o2 = e4.key;
41089        a.isBuffer(o2) || (o2 = a.from(o2)), "des-ede" !== r4 && "des-ede-cbc" !== r4 || (o2 = a.concat([o2, o2.slice(0, 8)]));
41090        var u3 = e4.iv;
41091        a.isBuffer(u3) || (u3 = a.from(u3)), this._des = i2.create({ key: o2, iv: u3, type: t4 });
41092      }
41093      s.des = s["des-cbc"], s.des3 = s["des-ede3-cbc"], e3.exports = u2, o(u2, n2), u2.prototype._update = function(e4) {
41094        return a.from(this._des.update(e4));
41095      }, u2.prototype._final = function() {
41096        return a.from(this._des.final());
41097      };
41098    }, 867: (e3, t3) => {
41099      t3["des-ecb"] = { key: 8, iv: 0 }, t3["des-cbc"] = t3.des = { key: 8, iv: 8 }, t3["des-ede3-cbc"] = t3.des3 = { key: 24, iv: 8 }, t3["des-ede3"] = { key: 24, iv: 0 }, t3["des-ede-cbc"] = { key: 16, iv: 8 }, t3["des-ede"] = { key: 16, iv: 0 };
41100    }, 9782: (e3, t3, r3) => {
41101      var n2 = r3(9033).Buffer, i = r3(1734), o = r3(5010);
41102      function a(e4) {
41103        var t4, r4 = e4.modulus.byteLength();
41104        do {
41105          t4 = new i(o(r4));
41106        } while (t4.cmp(e4.modulus) >= 0 || !t4.umod(e4.prime1) || !t4.umod(e4.prime2));
41107        return t4;
41108      }
41109      function s(e4, t4) {
41110        var r4 = function(e5) {
41111          var t5 = a(e5);
41112          return { blinder: t5.toRed(i.mont(e5.modulus)).redPow(new i(e5.publicExponent)).fromRed(), unblinder: t5.invm(e5.modulus) };
41113        }(t4), o2 = t4.modulus.byteLength(), s2 = new i(e4).mul(r4.blinder).umod(t4.modulus), u2 = s2.toRed(i.mont(t4.prime1)), c2 = s2.toRed(i.mont(t4.prime2)), f2 = t4.coefficient, d2 = t4.prime1, l2 = t4.prime2, h2 = u2.redPow(t4.exponent1).fromRed(), p2 = c2.redPow(t4.exponent2).fromRed(), b2 = h2.isub(p2).imul(f2).umod(d2).imul(l2);
41114        return p2.iadd(b2).imul(r4.unblinder).umod(t4.modulus).toArrayLike(n2, "be", o2);
41115      }
41116      s.getr = a, e3.exports = s;
41117    }, 6561: (e3, t3, r3) => {
41118      e3.exports = r3(5207);
41119    }, 9527: (e3, t3, r3) => {
41120      var n2 = r3(8850).Buffer, i = r3(5866), o = r3(6505), a = r3(1736), s = r3(1628), u2 = r3(5410), c2 = r3(5207);
41121      function f2(e4) {
41122        o.Writable.call(this);
41123        var t4 = c2[e4];
41124        if (!t4)
41125          throw new Error("Unknown message digest");
41126        this._hashType = t4.hash, this._hash = i(t4.hash), this._tag = t4.id, this._signType = t4.sign;
41127      }
41128      function d2(e4) {
41129        o.Writable.call(this);
41130        var t4 = c2[e4];
41131        if (!t4)
41132          throw new Error("Unknown message digest");
41133        this._hash = i(t4.hash), this._tag = t4.id, this._signType = t4.sign;
41134      }
41135      function l2(e4) {
41136        return new f2(e4);
41137      }
41138      function h2(e4) {
41139        return new d2(e4);
41140      }
41141      Object.keys(c2).forEach(function(e4) {
41142        c2[e4].id = n2.from(c2[e4].id, "hex"), c2[e4.toLowerCase()] = c2[e4];
41143      }), a(f2, o.Writable), f2.prototype._write = function(e4, t4, r4) {
41144        this._hash.update(e4), r4();
41145      }, f2.prototype.update = function(e4, t4) {
41146        return "string" == typeof e4 && (e4 = n2.from(e4, t4)), this._hash.update(e4), this;
41147      }, f2.prototype.sign = function(e4, t4) {
41148        this.end();
41149        var r4 = this._hash.digest(), n3 = s(r4, e4, this._hashType, this._signType, this._tag);
41150        return t4 ? n3.toString(t4) : n3;
41151      }, a(d2, o.Writable), d2.prototype._write = function(e4, t4, r4) {
41152        this._hash.update(e4), r4();
41153      }, d2.prototype.update = function(e4, t4) {
41154        return "string" == typeof e4 && (e4 = n2.from(e4, t4)), this._hash.update(e4), this;
41155      }, d2.prototype.verify = function(e4, t4, r4) {
41156        "string" == typeof t4 && (t4 = n2.from(t4, r4)), this.end();
41157        var i2 = this._hash.digest();
41158        return u2(t4, i2, e4, this._signType, this._tag);
41159      }, e3.exports = { Sign: l2, Verify: h2, createSign: l2, createVerify: h2 };
41160    }, 1628: (e3, t3, r3) => {
41161      var n2 = r3(8850).Buffer, i = r3(4424), o = r3(9782), a = r3(6597).ec, s = r3(1734), u2 = r3(7552), c2 = r3(1308);
41162      function f2(e4, t4, r4, o2) {
41163        if ((e4 = n2.from(e4.toArray())).length < t4.byteLength()) {
41164          var a2 = n2.alloc(t4.byteLength() - e4.length);
41165          e4 = n2.concat([a2, e4]);
41166        }
41167        var s2 = r4.length, u3 = function(e5, t5) {
41168          e5 = (e5 = d2(e5, t5)).mod(t5);
41169          var r5 = n2.from(e5.toArray());
41170          if (r5.length < t5.byteLength()) {
41171            var i2 = n2.alloc(t5.byteLength() - r5.length);
41172            r5 = n2.concat([i2, r5]);
41173          }
41174          return r5;
41175        }(r4, t4), c3 = n2.alloc(s2);
41176        c3.fill(1);
41177        var f3 = n2.alloc(s2);
41178        return f3 = i(o2, f3).update(c3).update(n2.from([0])).update(e4).update(u3).digest(), c3 = i(o2, f3).update(c3).digest(), { k: f3 = i(o2, f3).update(c3).update(n2.from([1])).update(e4).update(u3).digest(), v: c3 = i(o2, f3).update(c3).digest() };
41179      }
41180      function d2(e4, t4) {
41181        var r4 = new s(e4), n3 = (e4.length << 3) - t4.bitLength();
41182        return n3 > 0 && r4.ishrn(n3), r4;
41183      }
41184      function l2(e4, t4, r4) {
41185        var o2, a2;
41186        do {
41187          for (o2 = n2.alloc(0); 8 * o2.length < e4.bitLength(); )
41188            t4.v = i(r4, t4.k).update(t4.v).digest(), o2 = n2.concat([o2, t4.v]);
41189          a2 = d2(o2, e4), t4.k = i(r4, t4.k).update(t4.v).update(n2.from([0])).digest(), t4.v = i(r4, t4.k).update(t4.v).digest();
41190        } while (-1 !== a2.cmp(e4));
41191        return a2;
41192      }
41193      function h2(e4, t4, r4, n3) {
41194        return e4.toRed(s.mont(r4)).redPow(t4).fromRed().mod(n3);
41195      }
41196      e3.exports = function(e4, t4, r4, i2, p2) {
41197        var b2 = u2(t4);
41198        if (b2.curve) {
41199          if ("ecdsa" !== i2 && "ecdsa/rsa" !== i2)
41200            throw new Error("wrong private key type");
41201          return function(e5, t5) {
41202            var r5 = c2[t5.curve.join(".")];
41203            if (!r5)
41204              throw new Error("unknown curve " + t5.curve.join("."));
41205            var i3 = new a(r5).keyFromPrivate(t5.privateKey).sign(e5);
41206            return n2.from(i3.toDER());
41207          }(e4, b2);
41208        }
41209        if ("dsa" === b2.type) {
41210          if ("dsa" !== i2)
41211            throw new Error("wrong private key type");
41212          return function(e5, t5, r5) {
41213            for (var i3, o2 = t5.params.priv_key, a2 = t5.params.p, u3 = t5.params.q, c3 = t5.params.g, p3 = new s(0), b3 = d2(e5, u3).mod(u3), y3 = false, m3 = f2(o2, u3, e5, r5); false === y3; )
41214              p3 = h2(c3, i3 = l2(u3, m3, r5), a2, u3), 0 === (y3 = i3.invm(u3).imul(b3.add(o2.mul(p3))).mod(u3)).cmpn(0) && (y3 = false, p3 = new s(0));
41215            return function(e6, t6) {
41216              e6 = e6.toArray(), t6 = t6.toArray(), 128 & e6[0] && (e6 = [0].concat(e6)), 128 & t6[0] && (t6 = [0].concat(t6));
41217              var r6 = [48, e6.length + t6.length + 4, 2, e6.length];
41218              return r6 = r6.concat(e6, [2, t6.length], t6), n2.from(r6);
41219            }(p3, y3);
41220          }(e4, b2, r4);
41221        }
41222        if ("rsa" !== i2 && "ecdsa/rsa" !== i2)
41223          throw new Error("wrong private key type");
41224        e4 = n2.concat([p2, e4]);
41225        for (var y2 = b2.modulus.byteLength(), m2 = [0, 1]; e4.length + m2.length + 1 < y2; )
41226          m2.push(255);
41227        m2.push(0);
41228        for (var v2 = -1; ++v2 < e4.length; )
41229          m2.push(e4[v2]);
41230        return o(m2, b2);
41231      }, e3.exports.getKey = f2, e3.exports.makeKey = l2;
41232    }, 5410: (e3, t3, r3) => {
41233      var n2 = r3(8850).Buffer, i = r3(1734), o = r3(6597).ec, a = r3(7552), s = r3(1308);
41234      function u2(e4, t4) {
41235        if (e4.cmpn(0) <= 0)
41236          throw new Error("invalid sig");
41237        if (e4.cmp(t4) >= t4)
41238          throw new Error("invalid sig");
41239      }
41240      e3.exports = function(e4, t4, r4, c2, f2) {
41241        var d2 = a(r4);
41242        if ("ec" === d2.type) {
41243          if ("ecdsa" !== c2 && "ecdsa/rsa" !== c2)
41244            throw new Error("wrong public key type");
41245          return function(e5, t5, r5) {
41246            var n3 = s[r5.data.algorithm.curve.join(".")];
41247            if (!n3)
41248              throw new Error("unknown curve " + r5.data.algorithm.curve.join("."));
41249            var i2 = new o(n3), a2 = r5.data.subjectPrivateKey.data;
41250            return i2.verify(t5, e5, a2);
41251          }(e4, t4, d2);
41252        }
41253        if ("dsa" === d2.type) {
41254          if ("dsa" !== c2)
41255            throw new Error("wrong public key type");
41256          return function(e5, t5, r5) {
41257            var n3 = r5.data.p, o2 = r5.data.q, s2 = r5.data.g, c3 = r5.data.pub_key, f3 = a.signature.decode(e5, "der"), d3 = f3.s, l3 = f3.r;
41258            u2(d3, o2), u2(l3, o2);
41259            var h3 = i.mont(n3), p3 = d3.invm(o2);
41260            return 0 === s2.toRed(h3).redPow(new i(t5).mul(p3).mod(o2)).fromRed().mul(c3.toRed(h3).redPow(l3.mul(p3).mod(o2)).fromRed()).mod(n3).mod(o2).cmp(l3);
41261          }(e4, t4, d2);
41262        }
41263        if ("rsa" !== c2 && "ecdsa/rsa" !== c2)
41264          throw new Error("wrong public key type");
41265        t4 = n2.concat([f2, t4]);
41266        for (var l2 = d2.modulus.byteLength(), h2 = [1], p2 = 0; t4.length + h2.length + 2 < l2; )
41267          h2.push(255), p2++;
41268        h2.push(0);
41269        for (var b2 = -1; ++b2 < t4.length; )
41270          h2.push(t4[b2]);
41271        h2 = n2.from(h2);
41272        var y2 = i.mont(d2.modulus);
41273        e4 = (e4 = new i(e4).toRed(y2)).redPow(new i(d2.publicExponent)), e4 = n2.from(e4.fromRed().toArray());
41274        var m2 = p2 < 8 ? 1 : 0;
41275        for (l2 = Math.min(e4.length, h2.length), e4.length !== h2.length && (m2 = 1), b2 = -1; ++b2 < l2; )
41276          m2 |= e4[b2] ^ h2[b2];
41277        return 0 === m2;
41278      };
41279    }, 6316: (e3, t3, r3) => {
41280      var n2 = r3(9033).Buffer;
41281      e3.exports = function(e4, t4) {
41282        for (var r4 = Math.min(e4.length, t4.length), i = new n2(r4), o = 0; o < r4; ++o)
41283          i[o] = e4[o] ^ t4[o];
41284        return i;
41285      };
41286    }, 9033: (e3, t3, r3) => {
41287      var n2 = r3(4919), i = r3(3226), o = r3(9484);
41288      function a() {
41289        return u2.TYPED_ARRAY_SUPPORT ? 2147483647 : 1073741823;
41290      }
41291      function s(e4, t4) {
41292        if (a() < t4)
41293          throw new RangeError("Invalid typed array length");
41294        return u2.TYPED_ARRAY_SUPPORT ? (e4 = new Uint8Array(t4)).__proto__ = u2.prototype : (null === e4 && (e4 = new u2(t4)), e4.length = t4), e4;
41295      }
41296      function u2(e4, t4, r4) {
41297        if (!(u2.TYPED_ARRAY_SUPPORT || this instanceof u2))
41298          return new u2(e4, t4, r4);
41299        if ("number" == typeof e4) {
41300          if ("string" == typeof t4)
41301            throw new Error("If encoding is specified then the first argument must be a string");
41302          return d2(this, e4);
41303        }
41304        return c2(this, e4, t4, r4);
41305      }
41306      function c2(e4, t4, r4, n3) {
41307        if ("number" == typeof t4)
41308          throw new TypeError('"value" argument must not be a number');
41309        return "undefined" != typeof ArrayBuffer && t4 instanceof ArrayBuffer ? function(e5, t5, r5, n4) {
41310          if (t5.byteLength, r5 < 0 || t5.byteLength < r5)
41311            throw new RangeError("'offset' is out of bounds");
41312          if (t5.byteLength < r5 + (n4 || 0))
41313            throw new RangeError("'length' is out of bounds");
41314          return t5 = void 0 === r5 && void 0 === n4 ? new Uint8Array(t5) : void 0 === n4 ? new Uint8Array(t5, r5) : new Uint8Array(t5, r5, n4), u2.TYPED_ARRAY_SUPPORT ? (e5 = t5).__proto__ = u2.prototype : e5 = l2(e5, t5), e5;
41315        }(e4, t4, r4, n3) : "string" == typeof t4 ? function(e5, t5, r5) {
41316          if ("string" == typeof r5 && "" !== r5 || (r5 = "utf8"), !u2.isEncoding(r5))
41317            throw new TypeError('"encoding" must be a valid string encoding');
41318          var n4 = 0 | p2(t5, r5), i2 = (e5 = s(e5, n4)).write(t5, r5);
41319          return i2 !== n4 && (e5 = e5.slice(0, i2)), e5;
41320        }(e4, t4, r4) : function(e5, t5) {
41321          if (u2.isBuffer(t5)) {
41322            var r5 = 0 | h2(t5.length);
41323            return 0 === (e5 = s(e5, r5)).length || t5.copy(e5, 0, 0, r5), e5;
41324          }
41325          if (t5) {
41326            if ("undefined" != typeof ArrayBuffer && t5.buffer instanceof ArrayBuffer || "length" in t5)
41327              return "number" != typeof t5.length || (n4 = t5.length) != n4 ? s(e5, 0) : l2(e5, t5);
41328            if ("Buffer" === t5.type && o(t5.data))
41329              return l2(e5, t5.data);
41330          }
41331          var n4;
41332          throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.");
41333        }(e4, t4);
41334      }
41335      function f2(e4) {
41336        if ("number" != typeof e4)
41337          throw new TypeError('"size" argument must be a number');
41338        if (e4 < 0)
41339          throw new RangeError('"size" argument must not be negative');
41340      }
41341      function d2(e4, t4) {
41342        if (f2(t4), e4 = s(e4, t4 < 0 ? 0 : 0 | h2(t4)), !u2.TYPED_ARRAY_SUPPORT)
41343          for (var r4 = 0; r4 < t4; ++r4)
41344            e4[r4] = 0;
41345        return e4;
41346      }
41347      function l2(e4, t4) {
41348        var r4 = t4.length < 0 ? 0 : 0 | h2(t4.length);
41349        e4 = s(e4, r4);
41350        for (var n3 = 0; n3 < r4; n3 += 1)
41351          e4[n3] = 255 & t4[n3];
41352        return e4;
41353      }
41354      function h2(e4) {
41355        if (e4 >= a())
41356          throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + a().toString(16) + " bytes");
41357        return 0 | e4;
41358      }
41359      function p2(e4, t4) {
41360        if (u2.isBuffer(e4))
41361          return e4.length;
41362        if ("undefined" != typeof ArrayBuffer && "function" == typeof ArrayBuffer.isView && (ArrayBuffer.isView(e4) || e4 instanceof ArrayBuffer))
41363          return e4.byteLength;
41364        "string" != typeof e4 && (e4 = "" + e4);
41365        var r4 = e4.length;
41366        if (0 === r4)
41367          return 0;
41368        for (var n3 = false; ; )
41369          switch (t4) {
41370            case "ascii":
41371            case "latin1":
41372            case "binary":
41373              return r4;
41374            case "utf8":
41375            case "utf-8":
41376            case void 0:
41377              return D2(e4).length;
41378            case "ucs2":
41379            case "ucs-2":
41380            case "utf16le":
41381            case "utf-16le":
41382              return 2 * r4;
41383            case "hex":
41384              return r4 >>> 1;
41385            case "base64":
41386              return H2(e4).length;
41387            default:
41388              if (n3)
41389                return D2(e4).length;
41390              t4 = ("" + t4).toLowerCase(), n3 = true;
41391          }
41392      }
41393      function b2(e4, t4, r4) {
41394        var n3 = false;
vendor: 26,518 bytes, lines 41395-41940
41395        if ((void 0 === t4 || t4 < 0) && (t4 = 0), t4 > this.length)
41396          return "";
41397        if ((void 0 === r4 || r4 > this.length) && (r4 = this.length), r4 <= 0)
41398          return "";
41399        if ((r4 >>>= 0) <= (t4 >>>= 0))
41400          return "";
41401        for (e4 || (e4 = "utf8"); ; )
41402          switch (e4) {
41403            case "hex":
41404              return T2(this, t4, r4);
41405            case "utf8":
41406            case "utf-8":
41407              return E2(this, t4, r4);
41408            case "ascii":
41409              return O2(this, t4, r4);
41410            case "latin1":
41411            case "binary":
41412              return B2(this, t4, r4);
41413            case "base64":
41414              return x2(this, t4, r4);
41415            case "ucs2":
41416            case "ucs-2":
41417            case "utf16le":
41418            case "utf-16le":
41419              return C2(this, t4, r4);
41420            default:
41421              if (n3)
41422                throw new TypeError("Unknown encoding: " + e4);
41423              e4 = (e4 + "").toLowerCase(), n3 = true;
41424          }
41425      }
41426      function y2(e4, t4, r4) {
41427        var n3 = e4[t4];
41428        e4[t4] = e4[r4], e4[r4] = n3;
41429      }
41430      function m2(e4, t4, r4, n3, i2) {
41431        if (0 === e4.length)
41432          return -1;
41433        if ("string" == typeof r4 ? (n3 = r4, r4 = 0) : r4 > 2147483647 ? r4 = 2147483647 : r4 < -2147483648 && (r4 = -2147483648), r4 = +r4, isNaN(r4) && (r4 = i2 ? 0 : e4.length - 1), r4 < 0 && (r4 = e4.length + r4), r4 >= e4.length) {
41434          if (i2)
41435            return -1;
41436          r4 = e4.length - 1;
41437        } else if (r4 < 0) {
41438          if (!i2)
41439            return -1;
41440          r4 = 0;
41441        }
41442        if ("string" == typeof t4 && (t4 = u2.from(t4, n3)), u2.isBuffer(t4))
41443          return 0 === t4.length ? -1 : v2(e4, t4, r4, n3, i2);
41444        if ("number" == typeof t4)
41445          return t4 &= 255, u2.TYPED_ARRAY_SUPPORT && "function" == typeof Uint8Array.prototype.indexOf ? i2 ? Uint8Array.prototype.indexOf.call(e4, t4, r4) : Uint8Array.prototype.lastIndexOf.call(e4, t4, r4) : v2(e4, [t4], r4, n3, i2);
41446        throw new TypeError("val must be string, number or Buffer");
41447      }
41448      function v2(e4, t4, r4, n3, i2) {
41449        var o2, a2 = 1, s2 = e4.length, u3 = t4.length;
41450        if (void 0 !== n3 && ("ucs2" === (n3 = String(n3).toLowerCase()) || "ucs-2" === n3 || "utf16le" === n3 || "utf-16le" === n3)) {
41451          if (e4.length < 2 || t4.length < 2)
41452            return -1;
41453          a2 = 2, s2 /= 2, u3 /= 2, r4 /= 2;
41454        }
41455        function c3(e5, t5) {
41456          return 1 === a2 ? e5[t5] : e5.readUInt16BE(t5 * a2);
41457        }
41458        if (i2) {
41459          var f3 = -1;
41460          for (o2 = r4; o2 < s2; o2++)
41461            if (c3(e4, o2) === c3(t4, -1 === f3 ? 0 : o2 - f3)) {
41462              if (-1 === f3 && (f3 = o2), o2 - f3 + 1 === u3)
41463                return f3 * a2;
41464            } else
41465              -1 !== f3 && (o2 -= o2 - f3), f3 = -1;
41466        } else
41467          for (r4 + u3 > s2 && (r4 = s2 - u3), o2 = r4; o2 >= 0; o2--) {
41468            for (var d3 = true, l3 = 0; l3 < u3; l3++)
41469              if (c3(e4, o2 + l3) !== c3(t4, l3)) {
41470                d3 = false;
41471                break;
41472              }
41473            if (d3)
41474              return o2;
41475          }
41476        return -1;
41477      }
41478      function g2(e4, t4, r4, n3) {
41479        r4 = Number(r4) || 0;
41480        var i2 = e4.length - r4;
41481        n3 ? (n3 = Number(n3)) > i2 && (n3 = i2) : n3 = i2;
41482        var o2 = t4.length;
41483        if (o2 % 2 != 0)
41484          throw new TypeError("Invalid hex string");
41485        n3 > o2 / 2 && (n3 = o2 / 2);
41486        for (var a2 = 0; a2 < n3; ++a2) {
41487          var s2 = parseInt(t4.substr(2 * a2, 2), 16);
41488          if (isNaN(s2))
41489            return a2;
41490          e4[r4 + a2] = s2;
41491        }
41492        return a2;
41493      }
41494      function w2(e4, t4, r4, n3) {
41495        return q2(D2(t4, e4.length - r4), e4, r4, n3);
41496      }
41497      function A2(e4, t4, r4, n3) {
41498        return q2(function(e5) {
41499          for (var t5 = [], r5 = 0; r5 < e5.length; ++r5)
41500            t5.push(255 & e5.charCodeAt(r5));
41501          return t5;
41502        }(t4), e4, r4, n3);
41503      }
41504      function k2(e4, t4, r4, n3) {
41505        return A2(e4, t4, r4, n3);
41506      }
41507      function _(e4, t4, r4, n3) {
41508        return q2(H2(t4), e4, r4, n3);
41509      }
41510      function S2(e4, t4, r4, n3) {
41511        return q2(function(e5, t5) {
41512          for (var r5, n4, i2, o2 = [], a2 = 0; a2 < e5.length && !((t5 -= 2) < 0); ++a2)
41513            n4 = (r5 = e5.charCodeAt(a2)) >> 8, i2 = r5 % 256, o2.push(i2), o2.push(n4);
41514          return o2;
41515        }(t4, e4.length - r4), e4, r4, n3);
41516      }
41517      function x2(e4, t4, r4) {
41518        return 0 === t4 && r4 === e4.length ? n2.fromByteArray(e4) : n2.fromByteArray(e4.slice(t4, r4));
41519      }
41520      function E2(e4, t4, r4) {
41521        r4 = Math.min(e4.length, r4);
41522        for (var n3 = [], i2 = t4; i2 < r4; ) {
41523          var o2, a2, s2, u3, c3 = e4[i2], f3 = null, d3 = c3 > 239 ? 4 : c3 > 223 ? 3 : c3 > 191 ? 2 : 1;
41524          if (i2 + d3 <= r4)
41525            switch (d3) {
41526              case 1:
41527                c3 < 128 && (f3 = c3);
41528                break;
41529              case 2:
41530                128 == (192 & (o2 = e4[i2 + 1])) && (u3 = (31 & c3) << 6 | 63 & o2) > 127 && (f3 = u3);
41531                break;
41532              case 3:
41533                o2 = e4[i2 + 1], a2 = e4[i2 + 2], 128 == (192 & o2) && 128 == (192 & a2) && (u3 = (15 & c3) << 12 | (63 & o2) << 6 | 63 & a2) > 2047 && (u3 < 55296 || u3 > 57343) && (f3 = u3);
41534                break;
41535              case 4:
41536                o2 = e4[i2 + 1], a2 = e4[i2 + 2], s2 = e4[i2 + 3], 128 == (192 & o2) && 128 == (192 & a2) && 128 == (192 & s2) && (u3 = (15 & c3) << 18 | (63 & o2) << 12 | (63 & a2) << 6 | 63 & s2) > 65535 && u3 < 1114112 && (f3 = u3);
41537            }
41538          null === f3 ? (f3 = 65533, d3 = 1) : f3 > 65535 && (f3 -= 65536, n3.push(f3 >>> 10 & 1023 | 55296), f3 = 56320 | 1023 & f3), n3.push(f3), i2 += d3;
41539        }
41540        return function(e5) {
41541          var t5 = e5.length;
41542          if (t5 <= P2)
41543            return String.fromCharCode.apply(String, e5);
41544          for (var r5 = "", n4 = 0; n4 < t5; )
41545            r5 += String.fromCharCode.apply(String, e5.slice(n4, n4 += P2));
41546          return r5;
41547        }(n3);
41548      }
41549      t3.Buffer = u2, t3.SlowBuffer = function(e4) {
41550        return +e4 != e4 && (e4 = 0), u2.alloc(+e4);
41551      }, t3.INSPECT_MAX_BYTES = 50, u2.TYPED_ARRAY_SUPPORT = void 0 !== r3.g.TYPED_ARRAY_SUPPORT ? r3.g.TYPED_ARRAY_SUPPORT : function() {
41552        try {
41553          var e4 = new Uint8Array(1);
41554          return e4.__proto__ = { __proto__: Uint8Array.prototype, foo: function() {
41555            return 42;
41556          } }, 42 === e4.foo() && "function" == typeof e4.subarray && 0 === e4.subarray(1, 1).byteLength;
41557        } catch (e5) {
41558          return false;
41559        }
41560      }(), t3.kMaxLength = a(), u2.poolSize = 8192, u2._augment = function(e4) {
41561        return e4.__proto__ = u2.prototype, e4;
41562      }, u2.from = function(e4, t4, r4) {
41563        return c2(null, e4, t4, r4);
41564      }, u2.TYPED_ARRAY_SUPPORT && (u2.prototype.__proto__ = Uint8Array.prototype, u2.__proto__ = Uint8Array, "undefined" != typeof Symbol && Symbol.species && u2[Symbol.species] === u2 && Object.defineProperty(u2, Symbol.species, { value: null, configurable: true })), u2.alloc = function(e4, t4, r4) {
41565        return function(e5, t5, r5, n3) {
41566          return f2(t5), t5 <= 0 ? s(e5, t5) : void 0 !== r5 ? "string" == typeof n3 ? s(e5, t5).fill(r5, n3) : s(e5, t5).fill(r5) : s(e5, t5);
41567        }(null, e4, t4, r4);
41568      }, u2.allocUnsafe = function(e4) {
41569        return d2(null, e4);
41570      }, u2.allocUnsafeSlow = function(e4) {
41571        return d2(null, e4);
41572      }, u2.isBuffer = function(e4) {
41573        return !(null == e4 || !e4._isBuffer);
41574      }, u2.compare = function(e4, t4) {
41575        if (!u2.isBuffer(e4) || !u2.isBuffer(t4))
41576          throw new TypeError("Arguments must be Buffers");
41577        if (e4 === t4)
41578          return 0;
41579        for (var r4 = e4.length, n3 = t4.length, i2 = 0, o2 = Math.min(r4, n3); i2 < o2; ++i2)
41580          if (e4[i2] !== t4[i2]) {
41581            r4 = e4[i2], n3 = t4[i2];
41582            break;
41583          }
41584        return r4 < n3 ? -1 : n3 < r4 ? 1 : 0;
41585      }, u2.isEncoding = function(e4) {
41586        switch (String(e4).toLowerCase()) {
41587          case "hex":
41588          case "utf8":
41589          case "utf-8":
41590          case "ascii":
41591          case "latin1":
41592          case "binary":
41593          case "base64":
41594          case "ucs2":
41595          case "ucs-2":
41596          case "utf16le":
41597          case "utf-16le":
41598            return true;
41599          default:
41600            return false;
41601        }
41602      }, u2.concat = function(e4, t4) {
41603        if (!o(e4))
41604          throw new TypeError('"list" argument must be an Array of Buffers');
41605        if (0 === e4.length)
41606          return u2.alloc(0);
41607        var r4;
41608        if (void 0 === t4)
41609          for (t4 = 0, r4 = 0; r4 < e4.length; ++r4)
41610            t4 += e4[r4].length;
41611        var n3 = u2.allocUnsafe(t4), i2 = 0;
41612        for (r4 = 0; r4 < e4.length; ++r4) {
41613          var a2 = e4[r4];
41614          if (!u2.isBuffer(a2))
41615            throw new TypeError('"list" argument must be an Array of Buffers');
41616          a2.copy(n3, i2), i2 += a2.length;
41617        }
41618        return n3;
41619      }, u2.byteLength = p2, u2.prototype._isBuffer = true, u2.prototype.swap16 = function() {
41620        var e4 = this.length;
41621        if (e4 % 2 != 0)
41622          throw new RangeError("Buffer size must be a multiple of 16-bits");
41623        for (var t4 = 0; t4 < e4; t4 += 2)
41624          y2(this, t4, t4 + 1);
41625        return this;
41626      }, u2.prototype.swap32 = function() {
41627        var e4 = this.length;
41628        if (e4 % 4 != 0)
41629          throw new RangeError("Buffer size must be a multiple of 32-bits");
41630        for (var t4 = 0; t4 < e4; t4 += 4)
41631          y2(this, t4, t4 + 3), y2(this, t4 + 1, t4 + 2);
41632        return this;
41633      }, u2.prototype.swap64 = function() {
41634        var e4 = this.length;
41635        if (e4 % 8 != 0)
41636          throw new RangeError("Buffer size must be a multiple of 64-bits");
41637        for (var t4 = 0; t4 < e4; t4 += 8)
41638          y2(this, t4, t4 + 7), y2(this, t4 + 1, t4 + 6), y2(this, t4 + 2, t4 + 5), y2(this, t4 + 3, t4 + 4);
41639        return this;
41640      }, u2.prototype.toString = function() {
41641        var e4 = 0 | this.length;
41642        return 0 === e4 ? "" : 0 === arguments.length ? E2(this, 0, e4) : b2.apply(this, arguments);
41643      }, u2.prototype.equals = function(e4) {
41644        if (!u2.isBuffer(e4))
41645          throw new TypeError("Argument must be a Buffer");
41646        return this === e4 || 0 === u2.compare(this, e4);
41647      }, u2.prototype.inspect = function() {
41648        var e4 = "", r4 = t3.INSPECT_MAX_BYTES;
41649        return this.length > 0 && (e4 = this.toString("hex", 0, r4).match(/.{2}/g).join(" "), this.length > r4 && (e4 += " ... ")), "<Buffer " + e4 + ">";
41650      }, u2.prototype.compare = function(e4, t4, r4, n3, i2) {
41651        if (!u2.isBuffer(e4))
41652          throw new TypeError("Argument must be a Buffer");
41653        if (void 0 === t4 && (t4 = 0), void 0 === r4 && (r4 = e4 ? e4.length : 0), void 0 === n3 && (n3 = 0), void 0 === i2 && (i2 = this.length), t4 < 0 || r4 > e4.length || n3 < 0 || i2 > this.length)
41654          throw new RangeError("out of range index");
41655        if (n3 >= i2 && t4 >= r4)
41656          return 0;
41657        if (n3 >= i2)
41658          return -1;
41659        if (t4 >= r4)
41660          return 1;
41661        if (this === e4)
41662          return 0;
41663        for (var o2 = (i2 >>>= 0) - (n3 >>>= 0), a2 = (r4 >>>= 0) - (t4 >>>= 0), s2 = Math.min(o2, a2), c3 = this.slice(n3, i2), f3 = e4.slice(t4, r4), d3 = 0; d3 < s2; ++d3)
41664          if (c3[d3] !== f3[d3]) {
41665            o2 = c3[d3], a2 = f3[d3];
41666            break;
41667          }
41668        return o2 < a2 ? -1 : a2 < o2 ? 1 : 0;
41669      }, u2.prototype.includes = function(e4, t4, r4) {
41670        return -1 !== this.indexOf(e4, t4, r4);
41671      }, u2.prototype.indexOf = function(e4, t4, r4) {
41672        return m2(this, e4, t4, r4, true);
41673      }, u2.prototype.lastIndexOf = function(e4, t4, r4) {
41674        return m2(this, e4, t4, r4, false);
41675      }, u2.prototype.write = function(e4, t4, r4, n3) {
41676        if (void 0 === t4)
41677          n3 = "utf8", r4 = this.length, t4 = 0;
41678        else if (void 0 === r4 && "string" == typeof t4)
41679          n3 = t4, r4 = this.length, t4 = 0;
41680        else {
41681          if (!isFinite(t4))
41682            throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");
41683          t4 |= 0, isFinite(r4) ? (r4 |= 0, void 0 === n3 && (n3 = "utf8")) : (n3 = r4, r4 = void 0);
41684        }
41685        var i2 = this.length - t4;
41686        if ((void 0 === r4 || r4 > i2) && (r4 = i2), e4.length > 0 && (r4 < 0 || t4 < 0) || t4 > this.length)
41687          throw new RangeError("Attempt to write outside buffer bounds");
41688        n3 || (n3 = "utf8");
41689        for (var o2 = false; ; )
41690          switch (n3) {
41691            case "hex":
41692              return g2(this, e4, t4, r4);
41693            case "utf8":
41694            case "utf-8":
41695              return w2(this, e4, t4, r4);
41696            case "ascii":
41697              return A2(this, e4, t4, r4);
41698            case "latin1":
41699            case "binary":
41700              return k2(this, e4, t4, r4);
41701            case "base64":
41702              return _(this, e4, t4, r4);
41703            case "ucs2":
41704            case "ucs-2":
41705            case "utf16le":
41706            case "utf-16le":
41707              return S2(this, e4, t4, r4);
41708            default:
41709              if (o2)
41710                throw new TypeError("Unknown encoding: " + n3);
41711              n3 = ("" + n3).toLowerCase(), o2 = true;
41712          }
41713      }, u2.prototype.toJSON = function() {
41714        return { type: "Buffer", data: Array.prototype.slice.call(this._arr || this, 0) };
41715      };
41716      var P2 = 4096;
41717      function O2(e4, t4, r4) {
41718        var n3 = "";
41719        r4 = Math.min(e4.length, r4);
41720        for (var i2 = t4; i2 < r4; ++i2)
41721          n3 += String.fromCharCode(127 & e4[i2]);
41722        return n3;
41723      }
41724      function B2(e4, t4, r4) {
41725        var n3 = "";
41726        r4 = Math.min(e4.length, r4);
41727        for (var i2 = t4; i2 < r4; ++i2)
41728          n3 += String.fromCharCode(e4[i2]);
41729        return n3;
41730      }
41731      function T2(e4, t4, r4) {
41732        var n3, i2 = e4.length;
41733        (!t4 || t4 < 0) && (t4 = 0), (!r4 || r4 < 0 || r4 > i2) && (r4 = i2);
41734        for (var o2 = "", a2 = t4; a2 < r4; ++a2)
41735          o2 += (n3 = e4[a2]) < 16 ? "0" + n3.toString(16) : n3.toString(16);
41736        return o2;
41737      }
41738      function C2(e4, t4, r4) {
41739        for (var n3 = e4.slice(t4, r4), i2 = "", o2 = 0; o2 < n3.length; o2 += 2)
41740          i2 += String.fromCharCode(n3[o2] + 256 * n3[o2 + 1]);
41741        return i2;
41742      }
41743      function I2(e4, t4, r4) {
41744        if (e4 % 1 != 0 || e4 < 0)
41745          throw new RangeError("offset is not uint");
41746        if (e4 + t4 > r4)
41747          throw new RangeError("Trying to access beyond buffer length");
41748      }
41749      function M2(e4, t4, r4, n3, i2, o2) {
41750        if (!u2.isBuffer(e4))
41751          throw new TypeError('"buffer" argument must be a Buffer instance');
41752        if (t4 > i2 || t4 < o2)
41753          throw new RangeError('"value" argument is out of bounds');
41754        if (r4 + n3 > e4.length)
41755          throw new RangeError("Index out of range");
41756      }
41757      function U2(e4, t4, r4, n3) {
41758        t4 < 0 && (t4 = 65535 + t4 + 1);
41759        for (var i2 = 0, o2 = Math.min(e4.length - r4, 2); i2 < o2; ++i2)
41760          e4[r4 + i2] = (t4 & 255 << 8 * (n3 ? i2 : 1 - i2)) >>> 8 * (n3 ? i2 : 1 - i2);
41761      }
41762      function R2(e4, t4, r4, n3) {
41763        t4 < 0 && (t4 = 4294967295 + t4 + 1);
41764        for (var i2 = 0, o2 = Math.min(e4.length - r4, 4); i2 < o2; ++i2)
41765          e4[r4 + i2] = t4 >>> 8 * (n3 ? i2 : 3 - i2) & 255;
41766      }
41767      function j(e4, t4, r4, n3, i2, o2) {
41768        if (r4 + n3 > e4.length)
41769          throw new RangeError("Index out of range");
41770        if (r4 < 0)
41771          throw new RangeError("Index out of range");
41772      }
41773      function N2(e4, t4, r4, n3, o2) {
41774        return o2 || j(e4, 0, r4, 4), i.write(e4, t4, r4, n3, 23, 4), r4 + 4;
41775      }
41776      function F2(e4, t4, r4, n3, o2) {
41777        return o2 || j(e4, 0, r4, 8), i.write(e4, t4, r4, n3, 52, 8), r4 + 8;
41778      }
41779      u2.prototype.slice = function(e4, t4) {
41780        var r4, n3 = this.length;
41781        if ((e4 = ~~e4) < 0 ? (e4 += n3) < 0 && (e4 = 0) : e4 > n3 && (e4 = n3), (t4 = void 0 === t4 ? n3 : ~~t4) < 0 ? (t4 += n3) < 0 && (t4 = 0) : t4 > n3 && (t4 = n3), t4 < e4 && (t4 = e4), u2.TYPED_ARRAY_SUPPORT)
41782          (r4 = this.subarray(e4, t4)).__proto__ = u2.prototype;
41783        else {
41784          var i2 = t4 - e4;
41785          r4 = new u2(i2, void 0);
41786          for (var o2 = 0; o2 < i2; ++o2)
41787            r4[o2] = this[o2 + e4];
41788        }
41789        return r4;
41790      }, u2.prototype.readUIntLE = function(e4, t4, r4) {
41791        e4 |= 0, t4 |= 0, r4 || I2(e4, t4, this.length);
41792        for (var n3 = this[e4], i2 = 1, o2 = 0; ++o2 < t4 && (i2 *= 256); )
41793          n3 += this[e4 + o2] * i2;
41794        return n3;
41795      }, u2.prototype.readUIntBE = function(e4, t4, r4) {
41796        e4 |= 0, t4 |= 0, r4 || I2(e4, t4, this.length);
41797        for (var n3 = this[e4 + --t4], i2 = 1; t4 > 0 && (i2 *= 256); )
41798          n3 += this[e4 + --t4] * i2;
41799        return n3;
41800      }, u2.prototype.readUInt8 = function(e4, t4) {
41801        return t4 || I2(e4, 1, this.length), this[e4];
41802      }, u2.prototype.readUInt16LE = function(e4, t4) {
41803        return t4 || I2(e4, 2, this.length), this[e4] | this[e4 + 1] << 8;
41804      }, u2.prototype.readUInt16BE = function(e4, t4) {
41805        return t4 || I2(e4, 2, this.length), this[e4] << 8 | this[e4 + 1];
41806      }, u2.prototype.readUInt32LE = function(e4, t4) {
41807        return t4 || I2(e4, 4, this.length), (this[e4] | this[e4 + 1] << 8 | this[e4 + 2] << 16) + 16777216 * this[e4 + 3];
41808      }, u2.prototype.readUInt32BE = function(e4, t4) {
41809        return t4 || I2(e4, 4, this.length), 16777216 * this[e4] + (this[e4 + 1] << 16 | this[e4 + 2] << 8 | this[e4 + 3]);
41810      }, u2.prototype.readIntLE = function(e4, t4, r4) {
41811        e4 |= 0, t4 |= 0, r4 || I2(e4, t4, this.length);
41812        for (var n3 = this[e4], i2 = 1, o2 = 0; ++o2 < t4 && (i2 *= 256); )
41813          n3 += this[e4 + o2] * i2;
41814        return n3 >= (i2 *= 128) && (n3 -= Math.pow(2, 8 * t4)), n3;
41815      }, u2.prototype.readIntBE = function(e4, t4, r4) {
41816        e4 |= 0, t4 |= 0, r4 || I2(e4, t4, this.length);
41817        for (var n3 = t4, i2 = 1, o2 = this[e4 + --n3]; n3 > 0 && (i2 *= 256); )
41818          o2 += this[e4 + --n3] * i2;
41819        return o2 >= (i2 *= 128) && (o2 -= Math.pow(2, 8 * t4)), o2;
41820      }, u2.prototype.readInt8 = function(e4, t4) {
41821        return t4 || I2(e4, 1, this.length), 128 & this[e4] ? -1 * (255 - this[e4] + 1) : this[e4];
41822      }, u2.prototype.readInt16LE = function(e4, t4) {
41823        t4 || I2(e4, 2, this.length);
41824        var r4 = this[e4] | this[e4 + 1] << 8;
41825        return 32768 & r4 ? 4294901760 | r4 : r4;
41826      }, u2.prototype.readInt16BE = function(e4, t4) {
41827        t4 || I2(e4, 2, this.length);
41828        var r4 = this[e4 + 1] | this[e4] << 8;
41829        return 32768 & r4 ? 4294901760 | r4 : r4;
41830      }, u2.prototype.readInt32LE = function(e4, t4) {
41831        return t4 || I2(e4, 4, this.length), this[e4] | this[e4 + 1] << 8 | this[e4 + 2] << 16 | this[e4 + 3] << 24;
41832      }, u2.prototype.readInt32BE = function(e4, t4) {
41833        return t4 || I2(e4, 4, this.length), this[e4] << 24 | this[e4 + 1] << 16 | this[e4 + 2] << 8 | this[e4 + 3];
41834      }, u2.prototype.readFloatLE = function(e4, t4) {
41835        return t4 || I2(e4, 4, this.length), i.read(this, e4, true, 23, 4);
41836      }, u2.prototype.readFloatBE = function(e4, t4) {
41837        return t4 || I2(e4, 4, this.length), i.read(this, e4, false, 23, 4);
41838      }, u2.prototype.readDoubleLE = function(e4, t4) {
41839        return t4 || I2(e4, 8, this.length), i.read(this, e4, true, 52, 8);
41840      }, u2.prototype.readDoubleBE = function(e4, t4) {
41841        return t4 || I2(e4, 8, this.length), i.read(this, e4, false, 52, 8);
41842      }, u2.prototype.writeUIntLE = function(e4, t4, r4, n3) {
41843        e4 = +e4, t4 |= 0, r4 |= 0, n3 || M2(this, e4, t4, r4, Math.pow(2, 8 * r4) - 1, 0);
41844        var i2 = 1, o2 = 0;
41845        for (this[t4] = 255 & e4; ++o2 < r4 && (i2 *= 256); )
41846          this[t4 + o2] = e4 / i2 & 255;
41847        return t4 + r4;
41848      }, u2.prototype.writeUIntBE = function(e4, t4, r4, n3) {
41849        e4 = +e4, t4 |= 0, r4 |= 0, n3 || M2(this, e4, t4, r4, Math.pow(2, 8 * r4) - 1, 0);
41850        var i2 = r4 - 1, o2 = 1;
41851        for (this[t4 + i2] = 255 & e4; --i2 >= 0 && (o2 *= 256); )
41852          this[t4 + i2] = e4 / o2 & 255;
41853        return t4 + r4;
41854      }, u2.prototype.writeUInt8 = function(e4, t4, r4) {
41855        return e4 = +e4, t4 |= 0, r4 || M2(this, e4, t4, 1, 255, 0), u2.TYPED_ARRAY_SUPPORT || (e4 = Math.floor(e4)), this[t4] = 255 & e4, t4 + 1;
41856      }, u2.prototype.writeUInt16LE = function(e4, t4, r4) {
41857        return e4 = +e4, t4 |= 0, r4 || M2(this, e4, t4, 2, 65535, 0), u2.TYPED_ARRAY_SUPPORT ? (this[t4] = 255 & e4, this[t4 + 1] = e4 >>> 8) : U2(this, e4, t4, true), t4 + 2;
41858      }, u2.prototype.writeUInt16BE = function(e4, t4, r4) {
41859        return e4 = +e4, t4 |= 0, r4 || M2(this, e4, t4, 2, 65535, 0), u2.TYPED_ARRAY_SUPPORT ? (this[t4] = e4 >>> 8, this[t4 + 1] = 255 & e4) : U2(this, e4, t4, false), t4 + 2;
41860      }, u2.prototype.writeUInt32LE = function(e4, t4, r4) {
41861        return e4 = +e4, t4 |= 0, r4 || M2(this, e4, t4, 4, 4294967295, 0), u2.TYPED_ARRAY_SUPPORT ? (this[t4 + 3] = e4 >>> 24, this[t4 + 2] = e4 >>> 16, this[t4 + 1] = e4 >>> 8, this[t4] = 255 & e4) : R2(this, e4, t4, true), t4 + 4;
41862      }, u2.prototype.writeUInt32BE = function(e4, t4, r4) {
41863        return e4 = +e4, t4 |= 0, r4 || M2(this, e4, t4, 4, 4294967295, 0), u2.TYPED_ARRAY_SUPPORT ? (this[t4] = e4 >>> 24, this[t4 + 1] = e4 >>> 16, this[t4 + 2] = e4 >>> 8, this[t4 + 3] = 255 & e4) : R2(this, e4, t4, false), t4 + 4;
41864      }, u2.prototype.writeIntLE = function(e4, t4, r4, n3) {
41865        if (e4 = +e4, t4 |= 0, !n3) {
41866          var i2 = Math.pow(2, 8 * r4 - 1);
41867          M2(this, e4, t4, r4, i2 - 1, -i2);
41868        }
41869        var o2 = 0, a2 = 1, s2 = 0;
41870        for (this[t4] = 255 & e4; ++o2 < r4 && (a2 *= 256); )
41871          e4 < 0 && 0 === s2 && 0 !== this[t4 + o2 - 1] && (s2 = 1), this[t4 + o2] = (e4 / a2 >> 0) - s2 & 255;
41872        return t4 + r4;
41873      }, u2.prototype.writeIntBE = function(e4, t4, r4, n3) {
41874        if (e4 = +e4, t4 |= 0, !n3) {
41875          var i2 = Math.pow(2, 8 * r4 - 1);
41876          M2(this, e4, t4, r4, i2 - 1, -i2);
41877        }
41878        var o2 = r4 - 1, a2 = 1, s2 = 0;
41879        for (this[t4 + o2] = 255 & e4; --o2 >= 0 && (a2 *= 256); )
41880          e4 < 0 && 0 === s2 && 0 !== this[t4 + o2 + 1] && (s2 = 1), this[t4 + o2] = (e4 / a2 >> 0) - s2 & 255;
41881        return t4 + r4;
41882      }, u2.prototype.writeInt8 = function(e4, t4, r4) {
41883        return e4 = +e4, t4 |= 0, r4 || M2(this, e4, t4, 1, 127, -128), u2.TYPED_ARRAY_SUPPORT || (e4 = Math.floor(e4)), e4 < 0 && (e4 = 255 + e4 + 1), this[t4] = 255 & e4, t4 + 1;
41884      }, u2.prototype.writeInt16LE = function(e4, t4, r4) {
41885        return e4 = +e4, t4 |= 0, r4 || M2(this, e4, t4, 2, 32767, -32768), u2.TYPED_ARRAY_SUPPORT ? (this[t4] = 255 & e4, this[t4 + 1] = e4 >>> 8) : U2(this, e4, t4, true), t4 + 2;
41886      }, u2.prototype.writeInt16BE = function(e4, t4, r4) {
41887        return e4 = +e4, t4 |= 0, r4 || M2(this, e4, t4, 2, 32767, -32768), u2.TYPED_ARRAY_SUPPORT ? (this[t4] = e4 >>> 8, this[t4 + 1] = 255 & e4) : U2(this, e4, t4, false), t4 + 2;
41888      }, u2.prototype.writeInt32LE = function(e4, t4, r4) {
41889        return e4 = +e4, t4 |= 0, r4 || M2(this, e4, t4, 4, 2147483647, -2147483648), u2.TYPED_ARRAY_SUPPORT ? (this[t4] = 255 & e4, this[t4 + 1] = e4 >>> 8, this[t4 + 2] = e4 >>> 16, this[t4 + 3] = e4 >>> 24) : R2(this, e4, t4, true), t4 + 4;
41890      }, u2.prototype.writeInt32BE = function(e4, t4, r4) {
41891        return e4 = +e4, t4 |= 0, r4 || M2(this, e4, t4, 4, 2147483647, -2147483648), e4 < 0 && (e4 = 4294967295 + e4 + 1), u2.TYPED_ARRAY_SUPPORT ? (this[t4] = e4 >>> 24, this[t4 + 1] = e4 >>> 16, this[t4 + 2] = e4 >>> 8, this[t4 + 3] = 255 & e4) : R2(this, e4, t4, false), t4 + 4;
41892      }, u2.prototype.writeFloatLE = function(e4, t4, r4) {
41893        return N2(this, e4, t4, true, r4);
41894      }, u2.prototype.writeFloatBE = function(e4, t4, r4) {
41895        return N2(this, e4, t4, false, r4);
41896      }, u2.prototype.writeDoubleLE = function(e4, t4, r4) {
41897        return F2(this, e4, t4, true, r4);
41898      }, u2.prototype.writeDoubleBE = function(e4, t4, r4) {
41899        return F2(this, e4, t4, false, r4);
41900      }, u2.prototype.copy = function(e4, t4, r4, n3) {
41901        if (r4 || (r4 = 0), n3 || 0 === n3 || (n3 = this.length), t4 >= e4.length && (t4 = e4.length), t4 || (t4 = 0), n3 > 0 && n3 < r4 && (n3 = r4), n3 === r4)
41902          return 0;
41903        if (0 === e4.length || 0 === this.length)
41904          return 0;
41905        if (t4 < 0)
41906          throw new RangeError("targetStart out of bounds");
41907        if (r4 < 0 || r4 >= this.length)
41908          throw new RangeError("sourceStart out of bounds");
41909        if (n3 < 0)
41910          throw new RangeError("sourceEnd out of bounds");
41911        n3 > this.length && (n3 = this.length), e4.length - t4 < n3 - r4 && (n3 = e4.length - t4 + r4);
41912        var i2, o2 = n3 - r4;
41913        if (this === e4 && r4 < t4 && t4 < n3)
41914          for (i2 = o2 - 1; i2 >= 0; --i2)
41915            e4[i2 + t4] = this[i2 + r4];
41916        else if (o2 < 1e3 || !u2.TYPED_ARRAY_SUPPORT)
41917          for (i2 = 0; i2 < o2; ++i2)
41918            e4[i2 + t4] = this[i2 + r4];
41919        else
41920          Uint8Array.prototype.set.call(e4, this.subarray(r4, r4 + o2), t4);
41921        return o2;
41922      }, u2.prototype.fill = function(e4, t4, r4, n3) {
41923        if ("string" == typeof e4) {
41924          if ("string" == typeof t4 ? (n3 = t4, t4 = 0, r4 = this.length) : "string" == typeof r4 && (n3 = r4, r4 = this.length), 1 === e4.length) {
41925            var i2 = e4.charCodeAt(0);
41926            i2 < 256 && (e4 = i2);
41927          }
41928          if (void 0 !== n3 && "string" != typeof n3)
41929            throw new TypeError("encoding must be a string");
41930          if ("string" == typeof n3 && !u2.isEncoding(n3))
41931            throw new TypeError("Unknown encoding: " + n3);
41932        } else
41933          "number" == typeof e4 && (e4 &= 255);
41934        if (t4 < 0 || this.length < t4 || this.length < r4)
41935          throw new RangeError("Out of range index");
41936        if (r4 <= t4)
41937          return this;
41938        var o2;
41939        if (t4 >>>= 0, r4 = void 0 === r4 ? this.length : r4 >>> 0, e4 || (e4 = 0), "number" == typeof e4)
41940          for (o2 = t4; o2 < r4; ++o2)
41941            this[o2] = e4;
41942        else {
41943          var a2 = u2.isBuffer(e4) ? e4 : D2(new u2(e4, n3).toString()), s2 = a2.length;
41944          for (o2 = 0; o2 < r4 - t4; ++o2)
41945            this[o2 + t4] = a2[o2 % s2];
41946        }
41947        return this;
41948      };
41949      var L2 = /[^+\/0-9A-Za-z-_]/g;
41950      function D2(e4, t4) {
41951        var r4;
41952        t4 = t4 || 1 / 0;
41953        for (var n3 = e4.length, i2 = null, o2 = [], a2 = 0; a2 < n3; ++a2) {
41954          if ((r4 = e4.charCodeAt(a2)) > 55295 && r4 < 57344) {
41955            if (!i2) {
41956              if (r4 > 56319) {
41957                (t4 -= 3) > -1 && o2.push(239, 191, 189);
41958                continue;
41959              }
41960              if (a2 + 1 === n3) {
41961                (t4 -= 3) > -1 && o2.push(239, 191, 189);
41962                continue;
41963              }
41964              i2 = r4;
41965              continue;
41966            }
41967            if (r4 < 56320) {
41968              (t4 -= 3) > -1 && o2.push(239, 191, 189), i2 = r4;
41969              continue;
41970            }
41971            r4 = 65536 + (i2 - 55296 << 10 | r4 - 56320);
41972          } else
41973            i2 && (t4 -= 3) > -1 && o2.push(239, 191, 189);
41974          if (i2 = null, r4 < 128) {
41975            if ((t4 -= 1) < 0)
41976              break;
41977            o2.push(r4);
41978          } else if (r4 < 2048) {
41979            if ((t4 -= 2) < 0)
41980              break;
41981            o2.push(r4 >> 6 | 192, 63 & r4 | 128);
41982          } else if (r4 < 65536) {
41983            if ((t4 -= 3) < 0)
41984              break;
41985            o2.push(r4 >> 12 | 224, r4 >> 6 & 63 | 128, 63 & r4 | 128);
41986          } else {
41987            if (!(r4 < 1114112))
41988              throw new Error("Invalid code point");
41989            if ((t4 -= 4) < 0)
41990              break;
41991            o2.push(r4 >> 18 | 240, r4 >> 12 & 63 | 128, r4 >> 6 & 63 | 128, 63 & r4 | 128);
41992          }
41993        }
41994        return o2;
41995      }
41996      function H2(e4) {
41997        return n2.toByteArray(function(e5) {
41998          if ((e5 = function(e6) {
41999            return e6.trim ? e6.trim() : e6.replace(/^\s+|\s+$/g, "");
42000          }(e5).replace(L2, "")).length < 2)
42001            return "";
42002          for (; e5.length % 4 != 0; )
42003            e5 += "=";
42004          return e5;
42005        }(e4));
42006      }
42007      function q2(e4, t4, r4, n3) {
42008        for (var i2 = 0; i2 < n3 && !(i2 + r4 >= t4.length || i2 >= e4.length); ++i2)
42009          t4[i2 + r4] = e4[i2];
42010        return i2;
42011      }
42012    }, 3675: (e3) => {
42013      e3.exports = { 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" };
42014    }, 593: (e3, t3, r3) => {
42015      var n2 = r3(7701), i = r3(4373), o = i(n2("String.prototype.indexOf"));
42016      e3.exports = function(e4, t4) {
42017        var r4 = n2(e4, !!t4);
42018        return "function" == typeof r4 && o(e4, ".prototype.") > -1 ? i(r4) : r4;
42019      };
42020    }, 4373: (e3, t3, r3) => {
42021      var n2 = r3(3767), i = r3(7701), o = i("%Function.prototype.apply%"), a = i("%Function.prototype.call%"), s = i("%Reflect.apply%", true) || n2.call(a, o), u2 = i("%Object.getOwnPropertyDescriptor%", true), c2 = i("%Object.defineProperty%", true), f2 = i("%Math.max%");
42022      if (c2)
42023        try {
42024          c2({}, "a", { value: 1 });
42025        } catch (e4) {
42026          c2 = null;
42027        }
42028      e3.exports = function(e4) {
42029        var t4 = s(n2, a, arguments);
42030        if (u2 && c2) {
42031          var r4 = u2(t4, "length");
42032          r4.configurable && c2(t4, "length", { value: 1 + f2(0, e4.length - (arguments.length - 1)) });
42033        }
42034        return t4;
42035      };
42036      var d2 = function() {
42037        return s(n2, o, arguments);
42038      };
42039      c2 ? c2(e3.exports, "apply", { value: d2 }) : e3.exports.apply = d2;
42040    }, 7759: (e3, t3, r3) => {
42041      for (var n2 = r3(8847)(r3(4519)), i = r3(3630), o = {}, a = 0, s = Object.entries(i); a < s.length; a++) {
42042        var u2 = (0, n2.default)(s[a], 2), c2 = u2[0], f2 = u2[1];
42043        o[c2.toUpperCase().replace(/-/g, "_")] = f2;
42044      }
42045      e3.exports = Object.freeze(o);
42046    }, 7223: (e3, t3, r3) => {
42047      var n2 = r3(9033).Buffer, i = r3(6657), o = r3(5262), a = r3(1842), s = r3(779);
42048      (t3 = e3.exports).addPrefix = function(e4, t4) {
42049        var r4;
42050        if (n2.isBuffer(e4))
42051          r4 = s.varintBufferEncode(e4);
42052        else {
42053          if (!a[e4])
42054            throw new Error("multicodec not recognized");
42055          r4 = a[e4];
42056        }
42057        return n2.concat([r4, t4]);
42058      }, t3.rmPrefix = function(e4) {
42059        return i.decode(e4), e4.slice(i.decode.bytes);
42060      }, t3.getCodec = function(e4) {
42061        var t4 = i.decode(e4), r4 = o.get(t4);
42062        if (void 0 === r4)
42063          throw new Error("Code ".concat(t4, " not found"));
42064        return r4;
42065      }, t3.getName = function(e4) {
42066        return o.get(e4);
42067      }, t3.getNumber = function(e4) {
42068        var t4 = a[e4];
42069        if (void 0 === t4)
42070          throw new Error("Codec `" + e4 + "` not found");
42071        return s.varintBufferDecode(t4)[0];
42072      }, t3.getCode = function(e4) {
42073        return i.decode(e4);
42074      }, t3.getCodeVarint = function(e4) {
42075        var t4 = a[e4];
42076        if (void 0 === t4)
42077          throw new Error("Codec `" + e4 + "` not found");
42078        return t4;
42079      }, t3.getVarint = function(e4) {
42080        return i.encode(e4);
42081      };
42082      var u2 = r3(7759);
42083      Object.assign(t3, u2), t3.print = r3(9268);
42084    }, 5262: (e3, t3, r3) => {
42085      var n2 = r3(3630), i = /* @__PURE__ */ new Map();
42086      for (var o in n2) {
42087        var a = n2[o];
42088        i.set(a, o);
42089      }
42090      e3.exports = Object.freeze(i);
42091    }, 9268: (e3, t3, r3) => {
42092      for (var n2 = r3(8847)(r3(4519)), i = r3(3630), o = {}, a = 0, s = Object.entries(i); a < s.length; a++) {
42093        var u2 = (0, n2.default)(s[a], 2), c2 = u2[0], f2 = u2[1];
42094        void 0 === o[f2] && (o[f2] = c2);
42095      }
42096      e3.exports = Object.freeze(o);
42097    }, 779: (e3, t3, r3) => {
42098      var n2 = r3(6657), i = r3(9033).Buffer;
42099      function o(e4) {
42100        return parseInt(e4.toString("hex"), 16);
42101      }
42102      function a(e4) {
42103        var t4 = e4.toString(16);
42104        return t4.length % 2 == 1 && (t4 = "0" + t4), i.from(t4, "hex");
42105      }
42106      e3.exports = { numberToBuffer: a, bufferToNumber: o, varintBufferEncode: function(e4) {
42107        return i.from(n2.encode(o(e4)));
42108      }, varintBufferDecode: function(e4) {
42109        return a(n2.decode(e4));
42110      }, varintEncode: function(e4) {
42111        return i.from(n2.encode(e4));
42112      } };
42113    }, 1842: (e3, t3, r3) => {
42114      var n2 = r3(3630), i = r3(779).varintEncode, o = {};
42115      for (var a in n2) {
42116        var s = n2[a];
42117        o[a] = i(s);
42118      }
42119      e3.exports = Object.freeze(o);
42120    }, 9976: (e3, t3, r3) => {
42121      var n2 = r3(7748), i = r3(9033).Buffer, o = { checkCIDComponents: function(e4) {
42122        if (null == e4)
42123          return "null values are not valid CIDs";
42124        if (0 !== e4.version && 1 !== e4.version)
42125          return "Invalid version, must be a number equal to 1 or 0";
42126        if ("string" != typeof e4.codec)
42127          return "codec must be string";
42128        if (0 === e4.version) {
42129          if ("dag-pb" !== e4.codec)
42130            return "codec must be 'dag-pb' for CIDv0";
42131          if ("base58btc" !== e4.multibaseName)
42132            return "multibaseName must be 'base58btc' for CIDv0";
42133        }
42134        if (!i.isBuffer(e4.multihash))
42135          return "multihash must be a Buffer";
42136        try {
42137          n2.validate(e4.multihash);
42138        } catch (e5) {
42139          var t4 = e5.message;
42140          return t4 || (t4 = "Multihash validation failed"), t4;
42141        }
42142      } };
42143      e3.exports = o;
42144    }, 2753: (e3, t3, r3) => {
42145      var n2 = r3(8847), i = n2(r3(9721)), o = n2(r3(8985)), a = r3(9033).Buffer, s = r3(7748), u2 = r3(6086), c2 = r3(7223), f2 = r3(3630), d2 = r3(9976), l2 = r3(3162)(function(e4) {
42146        function t4(e5, r4, n3, o2) {
42147          if ((0, i.default)(this, t4), l2.isCID(e5)) {
42148            var f3 = e5;
42149            return this.version = f3.version, this.codec = f3.codec, this.multihash = a.from(f3.multihash), void (this.multibaseName = f3.multibaseName || (0 === f3.version ? "base58btc" : "base32"));
42150          }
42151          if ("string" == typeof e5) {
42152            var d3 = u2.isEncoded(e5);
42153            if (d3) {
42154              var h2 = u2.decode(e5);
42155              this.version = parseInt(h2.slice(0, 1).toString("hex"), 16), this.codec = c2.getCodec(h2.slice(1)), this.multihash = c2.rmPrefix(h2.slice(1)), this.multibaseName = d3;
42156            } else
42157              this.version = 0, this.codec = "dag-pb", this.multihash = s.fromB58String(e5), this.multibaseName = "base58btc";
42158            return t4.validateCID(this), void Object.defineProperty(this, "string", { value: e5 });
42159          }
42160          if (a.isBuffer(e5)) {
42161            var p2 = e5.slice(0, 1), b2 = parseInt(p2.toString("hex"), 16);
42162            if (1 === b2) {
42163              var y2 = e5;
42164              this.version = b2, this.codec = c2.getCodec(y2.slice(1)), this.multihash = c2.rmPrefix(y2.slice(1)), this.multibaseName = "base32";
42165            } else
42166              this.version = 0, this.codec = "dag-pb", this.multihash = e5, this.multibaseName = "base58btc";
42167            t4.validateCID(this);
42168          } else
42169            this.version = e5, this.codec = r4, this.multihash = n3, this.multibaseName = o2 || (0 === e5 ? "base58btc" : "base32"), t4.validateCID(this);
42170        }
42171        return (0, o.default)(t4, [{ key: "buffer", get: function() {
42172          var e5 = this._buffer;
42173          if (!e5) {
42174            if (0 === this.version)
42175              e5 = this.multihash;
42176            else {
42177              if (1 !== this.version)
42178                throw new Error("unsupported version");
42179              e5 = a.concat([a.from("01", "hex"), c2.getCodeVarint(this.codec), this.multihash]);
42180            }
42181            Object.defineProperty(this, "_buffer", { value: e5 });
42182          }
42183          return e5;
42184        } }, { key: "prefix", get: function() {
42185          return a.concat([a.from("0".concat(this.version), "hex"), c2.getCodeVarint(this.codec), s.prefix(this.multihash)]);
42186        } }, { key: "toV0", value: function() {
42187          if ("dag-pb" !== this.codec)
42188            throw new Error("Cannot convert a non dag-pb CID to CIDv0");
42189          var e5 = s.decode(this.multihash), t5 = e5.name, r4 = e5.length;
42190          if ("sha2-256" !== t5)
42191            throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");
42192          if (32 !== r4)
42193            throw new Error("Cannot convert non 32 byte multihash CID to CIDv0");
42194          return new l2(0, this.codec, this.multihash);
42195        } }, { key: "toV1", value: function() {
42196          return new l2(1, this.codec, this.multihash);
42197        } }, { key: "toBaseEncodedString", value: function() {
42198          var e5 = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : this.multibaseName;
42199          if (this.string && e5 === this.multibaseName)
42200            return this.string;
42201          var t5 = null;
42202          if (0 === this.version) {
42203            if ("base58btc" !== e5)
42204              throw new Error("not supported with CIDv0, to support different bases, please migrate the instance do CIDv1, you can do that through cid.toV1()");
42205            t5 = s.toB58String(this.multihash);
42206          } else {
42207            if (1 !== this.version)
42208              throw new Error("unsupported version");
42209            t5 = u2.encode(e5, this.buffer).toString();
42210          }
42211          return e5 === this.multibaseName && Object.defineProperty(this, "string", { value: t5 }), t5;
42212        } }, { key: e4, value: function() {
42213          return "CID(" + this.toString() + ")";
42214        } }, { key: "toString", value: function(e5) {
42215          return this.toBaseEncodedString(e5);
42216        } }, { key: "toJSON", value: function() {
42217          return { codec: this.codec, version: this.version, hash: this.multihash };
42218        } }, { key: "equals", value: function(e5) {
42219          return this.codec === e5.codec && this.version === e5.version && this.multihash.equals(e5.multihash);
42220        } }], [{ key: "validateCID", value: function(e5) {
42221          var t5 = d2.checkCIDComponents(e5);
42222          if (t5)
42223            throw new Error(t5);
42224        } }]), t4;
42225      }(Symbol.for("nodejs.util.inspect.custom")), { className: "CID", symbolName: "@ipld/js-cid/CID" });
42226      l2.codecs = f2, e3.exports = l2;
42227    }, 3013: (e3, t3, r3) => {
42228      var n2 = r3(8850).Buffer, i = r3(7245).Transform, o = r3(3462).s;
42229      function a(e4) {
42230        i.call(this), this.hashMode = "string" == typeof e4, this.hashMode ? this[e4] = this._finalOrDigest : this.final = this._finalOrDigest, this._final && (this.__final = this._final, this._final = null), this._decoder = null, this._encoding = null;
42231      }
42232      r3(1736)(a, i), a.prototype.update = function(e4, t4, r4) {
42233        "string" == typeof e4 && (e4 = n2.from(e4, t4));
42234        var i2 = this._update(e4);
42235        return this.hashMode ? this : (r4 && (i2 = this._toString(i2, r4)), i2);
42236      }, a.prototype.setAutoPadding = function() {
42237      }, a.prototype.getAuthTag = function() {
42238        throw new Error("trying to get auth tag in unsupported state");
42239      }, a.prototype.setAuthTag = function() {
42240        throw new Error("trying to set auth tag in unsupported state");
42241      }, a.prototype.setAAD = function() {
42242        throw new Error("trying to set aad in unsupported state");
42243      }, a.prototype._transform = function(e4, t4, r4) {
42244        var n3;
42245        try {
42246          this.hashMode ? this._update(e4) : this.push(this._update(e4));
42247        } catch (e5) {
42248          n3 = e5;
42249        } finally {
42250          r4(n3);
42251        }
42252      }, a.prototype._flush = function(e4) {
42253        var t4;
42254        try {
42255          this.push(this.__final());
42256        } catch (e5) {
42257          t4 = e5;
42258        }
42259        e4(t4);
42260      }, a.prototype._finalOrDigest = function(e4) {
42261        var t4 = this.__final() || n2.alloc(0);
42262        return e4 && (t4 = this._toString(t4, e4, true)), t4;
42263      }, a.prototype._toString = function(e4, t4, r4) {
42264        if (this._decoder || (this._decoder = new o(t4), this._encoding = t4), this._encoding !== t4)
42265          throw new Error("can't switch encodings");
42266        var n3 = this._decoder.write(e4);
42267        return r4 && (n3 += this._decoder.end()), n3;
42268      }, e3.exports = a;
42269    }, 3162: (e3, t3, r3) => {
42270      var n2 = r3(8847), i = n2(r3(4727)), o = n2(r3(775)), a = n2(r3(9721)), s = n2(r3(8985)), u2 = n2(r3(8975)), c2 = n2(r3(5163)), f2 = n2(r3(4650)), d2 = n2(r3(1949));
42271      e3.exports = function(e4, t4) {
42272        var r4 = t4.className, n3 = t4.symbolName, i2 = Symbol.for(n3), l2 = (0, o.default)({}, r4, function(e5, t5) {
42273          (0, c2.default)(h2, e5);
42274          var n4, o2, l3 = (n4 = h2, o2 = function() {
42275            if ("undefined" == typeof Reflect || !Reflect.construct)
42276              return false;
42277            if (Reflect.construct.sham)
42278              return false;
42279            if ("function" == typeof Proxy)
42280              return true;
42281            try {
42282              return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
42283              })), true;
42284            } catch (e6) {
42285              return false;
42286            }
42287          }(), function() {
42288            var e6, t6 = (0, d2.default)(n4);
42289            if (o2) {
42290              var r5 = (0, d2.default)(this).constructor;
42291              e6 = Reflect.construct(t6, arguments, r5);
42292            } else
42293              e6 = t6.apply(this, arguments);
42294            return (0, f2.default)(this, e6);
42295          });
42296          function h2() {
42297            var e6;
42298            (0, a.default)(this, h2);
42299            for (var t6 = arguments.length, r5 = new Array(t6), n5 = 0; n5 < t6; n5++)
42300              r5[n5] = arguments[n5];
42301            return e6 = l3.call.apply(l3, [this].concat(r5)), Object.defineProperty((0, u2.default)(e6), i2, { value: true }), e6;
42302          }
42303          return (0, s.default)(h2, [{ key: t5, get: function() {
42304            return r4;
42305          } }]), h2;
42306        }(e4, Symbol.toStringTag))[r4];
42307        return l2["is".concat(r4)] = function(e5) {
42308          return !(!e5 || !e5[i2]);
42309        }, l2;
42310      }, e3.exports.proto = function(e4, t4) {
42311        var r4 = t4.className, n3 = t4.symbolName, a2 = t4.withoutNew, s2 = Symbol.for(n3), u3 = (0, o.default)({}, r4, function() {
42312          for (var t5 = arguments.length, r5 = new Array(t5), n4 = 0; n4 < t5; n4++)
42313            r5[n4] = arguments[n4];
42314          if (a2 && !(this instanceof u3))
42315            return (0, i.default)(u3, r5);
42316          var o2 = e4.call.apply(e4, [this].concat(r5)) || this;
42317          return o2 && !o2[s2] && Object.defineProperty(o2, s2, { value: true }), o2;
42318        })[r4];
42319        return u3.prototype = Object.create(e4.prototype), u3.prototype.constructor = u3, Object.defineProperty(u3.prototype, Symbol.toStringTag, { get: function() {
42320          return r4;
42321        } }), u3["is".concat(r4)] = function(e5) {
42322          return !(!e5 || !e5[s2]);
42323        }, u3;
42324      };
42325    }, 6834: (e3, t3, r3) => {
42326      var n2 = r3(2753);
42327      t3.cidV0ToV1Base32 = function(e4) {
42328        var t4 = new n2(e4);
42329        return 0 === t4.version && (t4 = t4.toV1()), t4.toString("base32");
42330      };
42331    }, 4308: (e3, t3, r3) => {
42332      var n2 = r3(9206), i = r3(9512), o = i.hexStringToBuffer, a = i.profiles, s = r3(6834).cidV0ToV1Base32;
42333      e3.exports = { helpers: { cidV0ToV1Base32: s }, decode: function(e4) {
42334        var t4 = o(e4), r4 = n2.getCodec(t4), i2 = n2.rmPrefix(t4), s2 = a[r4];
42335        return s2 || (s2 = a.default), s2.decode(i2);
42336      }, fromIpfs: function(e4) {
42337        return this.encode("ipfs-ns", e4);
42338      }, fromSwarm: function(e4) {
42339        return this.encode("swarm-ns", e4);
42340      }, encode: function(e4, t4) {
42341        var r4 = a[e4];
42342        r4 || (r4 = a.default);
42343        var i2 = r4.encode(t4);
42344        return n2.addPrefix(e4, i2).toString("hex");
42345      }, getCodec: function(e4) {
42346        var t4 = o(e4);
42347        return n2.getCodec(t4);
42348      } };
42349    }, 9512: (e3, t3, r3) => {
42350      var n2 = r3(9033).Buffer, i = r3(2753), o = r3(7748), a = function(e4) {
42351        var t4, r4 = e4.slice(0, 2), n3 = e4.slice(2);
42352        return t4 = "0x" === r4 ? n3 : e4, o.fromHexString(t4);
42353      }, s = { swarm: function(e4) {
42354        var t4 = o.encode(a(e4), "keccak-256");
42355        return new i(1, "swarm-manifest", t4).buffer;
42356      }, ipfs: function(e4) {
42357        var t4 = o.fromB58String(e4);
42358        return new i(1, "dag-pb", t4).buffer;
42359      }, utf8: function(e4) {
42360        return n2.from(e4, "utf8");
42361      } }, u2 = { hexMultiHash: function(e4) {
42362        var t4 = new i(e4);
42363        return o.decode(t4.multihash).digest.toString("hex");
42364      }, b58MultiHash: function(e4) {
42365        var t4 = new i(e4);
42366        return o.toB58String(t4.multihash);
42367      }, utf8: function(e4) {
42368        return e4.toString("utf8");
42369      } }, c2 = { "swarm-ns": { encode: s.swarm, decode: u2.hexMultiHash }, "ipfs-ns": { encode: s.ipfs, decode: u2.b58MultiHash }, "ipns-ns": { encode: s.ipfs, decode: u2.b58MultiHash }, default: { encode: s.utf8, decode: u2.utf8 } };
42370      t3.hexStringToBuffer = a, t3.profiles = c2;
42371    }, 4628: (e3, t3, r3) => {
42372      var n2, i, o = r3(8847)(r3(3355));
42373      i = function(e4) {
42374        e4.version = "1.2.2";
42375        var t4 = function() {
42376          for (var e5 = 0, t5 = new Array(256), r5 = 0; 256 != r5; ++r5)
42377            e5 = 1 & (e5 = 1 & (e5 = 1 & (e5 = 1 & (e5 = 1 & (e5 = 1 & (e5 = 1 & (e5 = 1 & (e5 = r5) ? -306674912 ^ e5 >>> 1 : e5 >>> 1) ? -306674912 ^ e5 >>> 1 : e5 >>> 1) ? -306674912 ^ e5 >>> 1 : e5 >>> 1) ? -306674912 ^ e5 >>> 1 : e5 >>> 1) ? -306674912 ^ e5 >>> 1 : e5 >>> 1) ? -306674912 ^ e5 >>> 1 : e5 >>> 1) ? -306674912 ^ e5 >>> 1 : e5 >>> 1) ? -306674912 ^ e5 >>> 1 : e5 >>> 1, t5[r5] = e5;
42378          return "undefined" != typeof Int32Array ? new Int32Array(t5) : t5;
42379        }(), r4 = function(e5) {
42380          var t5 = 0, r5 = 0, n4 = 0, i3 = "undefined" != typeof Int32Array ? new Int32Array(4096) : new Array(4096);
42381          for (n4 = 0; 256 != n4; ++n4)
42382            i3[n4] = e5[n4];
42383          for (n4 = 0; 256 != n4; ++n4)
42384            for (r5 = e5[n4], t5 = 256 + n4; t5 < 4096; t5 += 256)
42385              r5 = i3[t5] = r5 >>> 8 ^ e5[255 & r5];
42386          var o3 = [];
42387          for (n4 = 1; 16 != n4; ++n4)
42388            o3[n4 - 1] = "undefined" != typeof Int32Array ? i3.subarray(256 * n4, 256 * n4 + 256) : i3.slice(256 * n4, 256 * n4 + 256);
42389          return o3;
42390        }(t4), n3 = r4[0], i2 = r4[1], o2 = r4[2], a = r4[3], s = r4[4], u2 = r4[5], c2 = r4[6], f2 = r4[7], d2 = r4[8], l2 = r4[9], h2 = r4[10], p2 = r4[11], b2 = r4[12], y2 = r4[13], m2 = r4[14];
42391        e4.table = t4, e4.bstr = function(e5, r5) {
42392          for (var n4 = -1 ^ r5, i3 = 0, o3 = e5.length; i3 < o3; )
42393            n4 = n4 >>> 8 ^ t4[255 & (n4 ^ e5.charCodeAt(i3++))];
42394          return ~n4;
42395        }, e4.buf = function(e5, r5) {
42396          for (var v2 = -1 ^ r5, g2 = e5.length - 15, w2 = 0; w2 < g2; )
42397            v2 = m2[e5[w2++] ^ 255 & v2] ^ y2[e5[w2++] ^ v2 >> 8 & 255] ^ b2[e5[w2++] ^ v2 >> 16 & 255] ^ p2[e5[w2++] ^ v2 >>> 24] ^ h2[e5[w2++]] ^ l2[e5[w2++]] ^ d2[e5[w2++]] ^ f2[e5[w2++]] ^ c2[e5[w2++]] ^ u2[e5[w2++]] ^ s[e5[w2++]] ^ a[e5[w2++]] ^ o2[e5[w2++]] ^ i2[e5[w2++]] ^ n3[e5[w2++]] ^ t4[e5[w2++]];
42398          for (g2 += 15; w2 < g2; )
42399            v2 = v2 >>> 8 ^ t4[255 & (v2 ^ e5[w2++])];
42400          return ~v2;
42401        }, e4.str = function(e5, r5) {
42402          for (var n4 = -1 ^ r5, i3 = 0, o3 = e5.length, a2 = 0, s2 = 0; i3 < o3; )
42403            (a2 = e5.charCodeAt(i3++)) < 128 ? n4 = n4 >>> 8 ^ t4[255 & (n4 ^ a2)] : a2 < 2048 ? n4 = (n4 = n4 >>> 8 ^ t4[255 & (n4 ^ (192 | a2 >> 6 & 31))]) >>> 8 ^ t4[255 & (n4 ^ (128 | 63 & a2))] : a2 >= 55296 && a2 < 57344 ? (a2 = 64 + (1023 & a2), s2 = 1023 & e5.charCodeAt(i3++), n4 = (n4 = (n4 = (n4 = n4 >>> 8 ^ t4[255 & (n4 ^ (240 | a2 >> 8 & 7))]) >>> 8 ^ t4[255 & (n4 ^ (128 | a2 >> 2 & 63))]) >>> 8 ^ t4[255 & (n4 ^ (128 | s2 >> 6 & 15 | (3 & a2) << 4))]) >>> 8 ^ t4[255 & (n4 ^ (128 | 63 & s2))]) : n4 = (n4 = (n4 = n4 >>> 8 ^ t4[255 & (n4 ^ (224 | a2 >> 12 & 15))]) >>> 8 ^ t4[255 & (n4 ^ (128 | a2 >> 6 & 63))]) >>> 8 ^ t4[255 & (n4 ^ (128 | 63 & a2))];
42404          return ~n4;
42405        };
42406      }, "undefined" == typeof DO_NOT_EXPORT_CRC ? "object" === (0, o.default)(t3) ? i(t3) : (n2 = function() {
42407        var e4 = {};
42408        return i(e4), e4;
42409      }.call(t3, r3, t3, e3), void 0 === n2 || (e3.exports = n2)) : i({});
42410    }, 5102: (e3, t3, r3) => {
42411      var n2 = r3(9033).Buffer, i = r3(6597), o = r3(1734);
42412      e3.exports = function(e4) {
42413        return new s(e4);
42414      };
42415      var a = { secp256k1: { name: "secp256k1", byteLength: 32 }, secp224r1: { name: "p224", byteLength: 28 }, prime256v1: { name: "p256", byteLength: 32 }, prime192v1: { name: "p192", byteLength: 24 }, ed25519: { name: "ed25519", byteLength: 32 }, secp384r1: { name: "p384", byteLength: 48 }, secp521r1: { name: "p521", byteLength: 66 } };
42416      function s(e4) {
42417        this.curveType = a[e4], this.curveType || (this.curveType = { name: e4 }), this.curve = new i.ec(this.curveType.name), this.keys = void 0;
42418      }
42419      function u2(e4, t4, r4) {
42420        Array.isArray(e4) || (e4 = e4.toArray());
42421        var i2 = new n2(e4);
42422        if (r4 && i2.length < r4) {
42423          var o2 = new n2(r4 - i2.length);
42424          o2.fill(0), i2 = n2.concat([o2, i2]);
42425        }
42426        return t4 ? i2.toString(t4) : i2;
42427      }
42428      a.p224 = a.secp224r1, a.p256 = a.secp256r1 = a.prime256v1, a.p192 = a.secp192r1 = a.prime192v1, a.p384 = a.secp384r1, a.p521 = a.secp521r1, s.prototype.generateKeys = function(e4, t4) {
42429        return this.keys = this.curve.genKeyPair(), this.getPublicKey(e4, t4);
42430      }, s.prototype.computeSecret = function(e4, t4, r4) {
42431        return t4 = t4 || "utf8", n2.isBuffer(e4) || (e4 = new n2(e4, t4)), u2(this.curve.keyFromPublic(e4).getPublic().mul(this.keys.getPrivate()).getX(), r4, this.curveType.byteLength);
42432      }, s.prototype.getPublicKey = function(e4, t4) {
42433        var r4 = this.keys.getPublic("compressed" === t4, true);
42434        return "hybrid" === t4 && (r4[r4.length - 1] % 2 ? r4[0] = 7 : r4[0] = 6), u2(r4, e4);
42435      }, s.prototype.getPrivateKey = function(e4) {
42436        return u2(this.keys.getPrivate(), e4);
42437      }, s.prototype.setPublicKey = function(e4, t4) {
42438        return t4 = t4 || "utf8", n2.isBuffer(e4) || (e4 = new n2(e4, t4)), this.keys._importPublic(e4), this;
42439      }, s.prototype.setPrivateKey = function(e4, t4) {
42440        t4 = t4 || "utf8", n2.isBuffer(e4) || (e4 = new n2(e4, t4));
42441        var r4 = new o(e4);
42442        return r4 = r4.toString(16), this.keys = this.curve.genKeyPair(), this.keys._importPrivate(r4), this;
42443      };
42444    }, 5866: (e3, t3, r3) => {
42445      var n2 = r3(1736), i = r3(807), o = r3(6707), a = r3(1708), s = r3(3013);
42446      function u2(e4) {
42447        s.call(this, "digest"), this._hash = e4;
42448      }
42449      n2(u2, s), u2.prototype._update = function(e4) {
42450        this._hash.update(e4);
42451      }, u2.prototype._final = function() {
42452        return this._hash.digest();
42453      }, e3.exports = function(e4) {
42454        return "md5" === (e4 = e4.toLowerCase()) ? new i() : "rmd160" === e4 || "ripemd160" === e4 ? new o() : new u2(a(e4));
42455      };
42456    }, 5349: (e3, t3, r3) => {
42457      var n2 = r3(807);
42458      e3.exports = function(e4) {
42459        return new n2().update(e4).digest();
42460      };
42461    }, 4424: (e3, t3, r3) => {
42462      var n2 = r3(1736), i = r3(9956), o = r3(3013), a = r3(8850).Buffer, s = r3(5349), u2 = r3(6
42462707), c2 = r3(1708), f2 = a.alloc(128);
42463      function d2(e4, t4) {
42464        o.call(this, "digest"), "string" == typeof t4 && (t4 = a.from(t4));
42465        var r4 = "sha512" === e4 || "sha384" === e4 ? 128 : 64;
42466        this._alg = e4, this._key = t4, t4.length > r4 ? t4 = ("rmd160" === e4 ? new u2() : c2(e4)).update(t4).digest() : t4.length < r4 && (t4 = a.concat([t4, f2], r4));
42467        for (var n3 = this._ipad = a.allocUnsafe(r4), i2 = this._opad = a.allocUnsafe(r4), s2 = 0; s2 < r4; s2++)
42468          n3[s2] = 54 ^ t4[s2], i2[s2] = 92 ^ t4[s2];
42469        this._hash = "rmd160" === e4 ? new u2() : c2(e4), this._hash.update(n3);
42470      }
42471      n2(d2, o), d2.prototype._update = function(e4) {
42472        this._hash.update(e4);
42473      }, d2.prototype._final = function() {
42474        var e4 = this._hash.digest();
42475        return ("rmd160" === this._alg ? new u2() : c2(this._alg)).update(this._opad).update(e4).digest();
42476      }, e3.exports = function(e4, t4) {
42477        return "rmd160" === (e4 = e4.toLowerCase()) || "ripemd160" === e4 ? new d2("rmd160", t4) : "md5" === e4 ? new i(s, t4) : new d2(e4, t4);
42478      };
42479    }, 9956: (e3, t3, r3) => {
42480      var n2 = r3(1736), i = r3(8850).Buffer, o = r3(3013), a = i.alloc(128), s = 64;
42481      function u2(e4, t4) {
42482        o.call(this, "digest"), "string" == typeof t4 && (t4 = i.from(t4)), this._alg = e4, this._key = t4, t4.length > s ? t4 = e4(t4) : t4.length < s && (t4 = i.concat([t4, a], s));
42483        for (var r4 = this._ipad = i.allocUnsafe(s), n3 = this._opad = i.allocUnsafe(s), u3 = 0; u3 < s; u3++)
42484          r4[u3] = 54 ^ t4[u3], n3[u3] = 92 ^ t4[u3];
42485        this._hash = [r4];
42486      }
42487      n2(u2, o), u2.prototype._update = function(e4) {
42488        this._hash.push(e4);
42489      }, u2.prototype._final = function() {
42490        var e4 = this._alg(i.concat(this._hash));
42491        return this._alg(i.concat([this._opad, e4]));
42492      }, e3.exports = u2;
42493    }, 2439: () => {
42494      !function(e3) {
42495        !function(t3) {
42496          var r3 = "URLSearchParams" in e3, n2 = "Symbol" in e3 && "iterator" in Symbol, i = "FileReader" in e3 && "Blob" in e3 && function() {
42497            try {
42498              return new Blob(), true;
42499            } catch (e4) {
42500              return false;
42501            }
42502          }(), o = "FormData" in e3, a = "ArrayBuffer" in e3;
42503          if (a)
42504            var s = ["[object Int8Array]", "[object Uint8Array]", "[object Uint8ClampedArray]", "[object Int16Array]", "[object Uint16Array]", "[object Int32Array]", "[object Uint32Array]", "[object Float32Array]", "[object Float64Array]"], u2 = ArrayBuffer.isView || function(e4) {
42505              return e4 && s.indexOf(Object.prototype.toString.call(e4)) > -1;
42506            };
42507          function c2(e4) {
42508            if ("string" != typeof e4 && (e4 = String(e4)), /[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e4))
42509              throw new TypeError("Invalid character in header field name");
42510            return e4.toLowerCase();
42511          }
42512          function f2(e4) {
42513            return "string" != typeof e4 && (e4 = String(e4)), e4;
42514          }
42515          function d2(e4) {
42516            var t4 = { next: function() {
42517              var t5 = e4.shift();
42518              return { done: void 0 === t5, value: t5 };
42519            } };
42520            return n2 && (t4[Symbol.iterator] = function() {
42521              return t4;
42522            }), t4;
42523          }
42524          function l2(e4) {
42525            this.map = {}, e4 instanceof l2 ? e4.forEach(function(e5, t4) {
42526              this.append(t4, e5);
42527            }, this) : Array.isArray(e4) ? e4.forEach(function(e5) {
42528              this.append(e5[0], e5[1]);
42529            }, this) : e4 && Object.getOwnPropertyNames(e4).forEach(function(t4) {
42530              this.append(t4, e4[t4]);
42531            }, this);
42532          }
42533          function h2(e4) {
42534            if (e4.bodyUsed)
42535              return Promise.reject(new TypeError("Already read"));
42536            e4.bodyUsed = true;
42537          }
42538          function p2(e4) {
42539            return new Promise(function(t4, r4) {
42540              e4.onload = function() {
42541                t4(e4.result);
42542              }, e4.onerror = function() {
42543                r4(e4.error);
42544              };
42545            });
42546          }
42547          function b2(e4) {
42548            var t4 = new FileReader(), r4 = p2(t4);
42549            return t4.readAsArrayBuffer(e4), r4;
42550          }
42551          function y2(e4) {
42552            if (e4.slice)
42553              return e4.slice(0);
42554            var t4 = new Uint8Array(e4.byteLength);
42555            return t4.set(new Uint8Array(e4)), t4.buffer;
42556          }
42557          function m2() {
42558            return this.bodyUsed = false, this._initBody = function(e4) {
42559              var t4;
42560              this._bodyInit = e4, e4 ? "string" == typeof e4 ? this._bodyText = e4 : i && Blob.prototype.isPrototypeOf(e4) ? this._bodyBlob = e4 : o && FormData.prototype.isPrototypeOf(e4) ? this._bodyFormData = e4 : r3 && URLSearchParams.prototype.isPrototypeOf(e4) ? this._bodyText = e4.toString() : a && i && (t4 = e4) && DataView.prototype.isPrototypeOf(t4) ? (this._bodyArrayBuffer = y2(e4.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : a && (ArrayBuffer.prototype.isPrototypeOf(e4) || u2(e4)) ? this._bodyArrayBuffer = y2(e4) : this._bodyText = e4 = Object.prototype.toString.call(e4) : this._bodyText = "", this.headers.get("content-type") || ("string" == typeof e4 ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : r3 && URLSearchParams.prototype.isPrototypeOf(e4) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
42561            }, i && (this.blob = function() {
42562              var e4 = h2(this);
42563              if (e4)
42564                return e4;
42565              if (this._bodyBlob)
42566                return Promise.resolve(this._bodyBlob);
42567              if (this._bodyArrayBuffer)
42568                return Promise.resolve(new Blob([this._bodyArrayBuffer]));
42569              if (this._bodyFormData)
42570                throw new Error("could not read FormData body as blob");
42571              return Promise.resolve(new Blob([this._bodyText]));
42572            }, this.arrayBuffer = function() {
42573              return this._bodyArrayBuffer ? h2(this) || Promise.resolve(this._bodyArrayBuffer) : this.blob().then(b2);
42574            }), this.text = function() {
42575              var e4, t4, r4, n3 = h2(this);
42576              if (n3)
42577                return n3;
42578              if (this._bodyBlob)
42579                return e4 = this._bodyBlob, r4 = p2(t4 = new FileReader()), t4.readAsText(e4), r4;
42580              if (this._bodyArrayBuffer)
42581                return Promise.resolve(function(e5) {
42582                  for (var t5 = new Uint8Array(e5), r5 = new Array(t5.length), n4 = 0; n4 < t5.length; n4++)
42583                    r5[n4] = String.fromCharCode(t5[n4]);
42584                  return r5.join("");
42585                }(this._bodyArrayBuffer));
42586              if (this._bodyFormData)
42587                throw new Error("could not read FormData body as text");
42588              return Promise.resolve(this._bodyText);
42589            }, o && (this.formData = function() {
42590              return this.text().then(w2);
42591            }), this.json = function() {
42592              return this.text().then(JSON.parse);
42593            }, this;
42594          }
42595          l2.prototype.append = function(e4, t4) {
42596            e4 = c2(e4), t4 = f2(t4);
42597            var r4 = this.map[e4];
42598            this.map[e4] = r4 ? r4 + ", " + t4 : t4;
42599          }, l2.prototype.delete = function(e4) {
42600            delete this.map[c2(e4)];
42601          }, l2.prototype.get = function(e4) {
42602            return e4 = c2(e4), this.has(e4) ? this.map[e4] : null;
42603          }, l2.prototype.has = function(e4) {
42604            return this.map.hasOwnProperty(c2(e4));
42605          }, l2.prototype.set = function(e4, t4) {
42606            this.map[c2(e4)] = f2(t4);
42607          }, l2.prototype.forEach = function(e4, t4) {
42608            for (var r4 in this.map)
42609              this.map.hasOwnProperty(r4) && e4.call(t4, this.map[r4], r4, this);
42610          }, l2.prototype.keys = function() {
42611            var e4 = [];
42612            return this.forEach(function(t4, r4) {
42613              e4.push(r4);
42614            }), d2(e4);
42615          }, l2.prototype.values = function() {
42616            var e4 = [];
42617            return this.forEach(function(t4) {
42618              e4.push(t4);
42619            }), d2(e4);
42620          }, l2.prototype.entries = function() {
42621            var e4 = [];
42622            return this.forEach(function(t4, r4) {
42623              e4.push([r4, t4]);
42624            }), d2(e4);
42625          }, n2 && (l2.prototype[Symbol.iterator] = l2.prototype.entries);
42626          var v2 = ["DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT"];
42627          function g2(e4, t4) {
42628            var r4, n3, i2 = (t4 = t4 || {}).body;
42629            if (e4 instanceof g2) {
42630              if (e4.bodyUsed)
42631                throw new TypeError("Already read");
42632              this.url = e4.url, this.credentials = e4.credentials, t4.headers || (this.headers = new l2(e4.headers)), this.method = e4.method, this.mode = e4.mode, this.signal = e4.signal, i2 || null == e4._bodyInit || (i2 = e4._bodyInit, e4.bodyUsed = true);
42633            } else
42634              this.url = String(e4);
42635            if (this.credentials = t4.credentials || this.credentials || "same-origin", !t4.headers && this.headers || (this.headers = new l2(t4.headers)), this.method = (n3 = (r4 = t4.method || this.method || "GET").toUpperCase(), v2.indexOf(n3) > -1 ? n3 : r4), this.mode = t4.mode || this.mode || null, this.signal = t4.signal || this.signal, this.referrer = null, ("GET" === this.method || "HEAD" === this.method) && i2)
42636              throw new TypeError("Body not allowed for GET or HEAD requests");
42637            this._initBody(i2);
42638          }
42639          function w2(e4) {
42640            var t4 = new FormData();
42641            return e4.trim().split("&").forEach(function(e5) {
42642              if (e5) {
42643                var r4 = e5.split("="), n3 = r4.shift().replace(/\+/g, " "), i2 = r4.join("=").replace(/\+/g, " ");
42644                t4.append(decodeURIComponent(n3), decodeURIComponent(i2));
42645              }
42646            }), t4;
42647          }
42648          function A2(e4, t4) {
42649            t4 || (t4 = {}), this.type = "default", this.status = void 0 === t4.status ? 200 : t4.status, this.ok = this.status >= 200 && this.status < 300, this.statusText = "statusText" in t4 ? t4.statusText : "OK", this.headers = new l2(t4.headers), this.url = t4.url || "", this._initBody(e4);
42650          }
42651          g2.prototype.clone = function() {
42652            return new g2(this, { body: this._bodyInit });
42653          }, m2.call(g2.prototype), m2.call(A2.prototype), A2.prototype.clone = function() {
42654            return new A2(this._bodyInit, { status: this.status, statusText: this.statusText, headers: new l2(this.headers), url: this.url });
42655          }, A2.error = function() {
42656            var e4 = new A2(null, { status: 0, statusText: "" });
42657            return e4.type = "error", e4;
42658          };
42659          var k2 = [301, 302, 303, 307, 308];
42660          A2.redirect = function(e4, t4) {
42661            if (-1 === k2.indexOf(t4))
42662              throw new RangeError("Invalid status code");
42663            return new A2(null, { status: t4, headers: { location: e4 } });
42664          }, t3.DOMException = e3.DOMException;
42665          try {
42666            new t3.DOMException();
42667          } catch (e4) {
42668            t3.DOMException = function(e5, t4) {
42669              this.message = e5, this.name = t4;
42670              var r4 = Error(e5);
42671              this.stack = r4.stack;
42672            }, t3.DOMException.prototype = Object.create(Error.prototype), t3.DOMException.prototype.constructor = t3.DOMException;
42673          }
42674          function _(e4, r4) {
42675            return new Promise(function(n3, o2) {
42676              var a2 = new g2(e4, r4);
42677              if (a2.signal && a2.signal.aborted)
42678                return o2(new t3.DOMException("Aborted", "AbortError"));
42679              var s2 = new XMLHttpRequest();
42680              function u3() {
42681                s2.abort();
42682              }
42683              s2.onload = function() {
42684                var e5, t4, r5 = { status: s2.status, statusText: s2.statusText, headers: (e5 = s2.getAllResponseHeaders() || "", t4 = new l2(), e5.replace(/\r?\n[\t ]+/g, " ").split(/\r?\n/).forEac
42684h(function(e6) {
42685                  var r6 = e6.split(":"), n4 = r6.shift().trim();
42686                  if (n4) {
42687                    var i3 = r6.join(":").trim();
42688                    t4.append(n4, i3);
42689                  }
42690                }), t4) };
42691                r5.url = "responseURL" in s2 ? s2.responseURL : r5.headers.get("X-Request-URL");
42692                var i2 = "response" in s2 ? s2.response : s2.responseText;
42693                n3(new A2(i2, r5));
42694              }, s2.onerror = function() {
42695                o2(new TypeError("Network request failed"));
42696              }, s2.ontimeout = function() {
42697                o2(new TypeError("Network request failed"));
42698              }, s2.onabort = function() {
42699                o2(new t3.DOMException("Aborted", "AbortError"));
42700              }, s2.open(a2.method, a2.url, true), "include" === a2.credentials ? s2.withCredentials = true : "omit" === a2.credentials && (s2.withCredentials = false), "responseType" in s2 && i && (s2.responseType = "blob"), a2.headers.forEach(function(e5, t4) {
42701                s2.setRequestHeader(t4, e5);
42702              }), a2.signal && (a2.signal.addEventListener("abort", u3), s2.onreadystatechange = function() {
42703                4 === s2.readyState && a2.signal.removeEventListener("abort", u3);
42704              }), s2.send(void 0 === a2._bodyInit ? null : a2._bodyInit);
42705            });
42706          }
42707          _.polyfill = true, e3.fetch || (e3.fetch = _, e3.Headers = l2, e3.Request = g2, e3.Response = A2), t3.Headers = l2, t3.Request = g2, t3.Response = A2, t3.fetch = _, Object.defineProperty(t3, "__esModule", { value: true });
42708        }({});
42709      }("undefined" != typeof self ? self : void 0);
42710    }, 4293: (e3, t3, r3) => {
42711      t3.randomBytes = t3.rng = t3.pseudoRandomBytes = t3.prng = r3(5010), t3.createHash = t3.Hash = r3(5866), t3.createHmac = t3.Hmac = r3(4424);
42712      var n2 = r3(6561), i = Object.keys(n2), o = ["sha1", "sha224", "sha256", "sha384", "sha512", "md5", "rmd160"].concat(i);
42713      t3.getHashes = function() {
42714        return o;
42715      };
42716      var a = r3(4192);
42717      t3.pbkdf2 = a.pbkdf2, t3.pbkdf2Sync = a.pbkdf2Sync;
42718      var s = r3(6805);
42719      t3.Cipher = s.Cipher, t3.createCipher = s.createCipher, t3.Cipheriv = s.Cipheriv, t3.createCipheriv = s.createCipheriv, t3.Decipher = s.Decipher, t3.createDecipher = s.createDecipher, t3.Decipheriv = s.Decipheriv, t3.createDecipheriv = s.createDecipheriv, t3.getCiphers = s.getCiphers, t3.listCiphers = s.listCiphers;
42720      var u2 = r3(8333);
42721      t3.DiffieHellmanGroup = u2.DiffieHellmanGroup, t3.createDiffieHellmanGroup = u2.createDiffieHellmanGroup, t3.getDiffieHellman = u2.getDiffieHellman, t3.createDiffieHellman = u2.createDiffieHellman, t3.DiffieHellman = u2.DiffieHellman;
42722      var c2 = r3(9527);
42723      t3.createSign = c2.createSign, t3.Sign = c2.Sign, t3.createVerify = c2.createVerify, t3.Verify = c2.Verify, t3.createECDH = r3(5102);
42724      var f2 = r3(6991);
42725      t3.publicEncrypt = f2.publicEncrypt, t3.privateEncrypt = f2.privateEncrypt, t3.publicDecrypt = f2.publicDecrypt, t3.privateDecrypt = f2.privateDecrypt;
42726      var d2 = r3(6509);
42727      t3.randomFill = d2.randomFill, t3.randomFillSync = d2.randomFillSync, t3.createCredentials = function() {
42728        throw new Error(["sorry, createCredentials is not implemented yet", "we accept pull requests", "https://github.com/crypto-browserify/crypto-browserify"].join("\n"));
42729      }, t3.constants = { DH_CHECK_P_NOT_SAFE_PRIME: 2, DH_CHECK_P_NOT_PRIME: 1, DH_UNABLE_TO_CHECK_GENERATOR: 4, DH_NOT_SUITABLE_GENERATOR: 8, NPN_ENABLED: 1, ALPN_ENABLED: 1, RSA_PKCS1_PADDING: 1, RSA_SSLV23_PADDING: 2, RSA_NO_PADDING: 3, RSA_PKCS1_OAEP_PADDING: 4, RSA_X931_PADDING: 5, RSA_PKCS1_PSS_PADDING: 6, POINT_CONVERSION_COMPRESSED: 2, POINT_CONVERSION_UNCOMPRESSED: 4, POINT_CONVERSION_HYBRID: 6 };
42730    }, 34: (e3, t3, r3) => {
42731      var n2 = r3(8847)(r3(3355)), i = "%[a-f0-9]{2}", o = new RegExp("(" + i + ")|([^%]+?)", "gi"), a = new RegExp("(" + i + ")+", "gi");
42732      function s(e4, t4) {
42733        try {
42734          return [decodeURIComponent(e4.join(""))];
42735        } catch (e5) {
42736        }
42737        if (1 === e4.length)
42738          return e4;
42739        t4 = t4 || 1;
42740        var r4 = e4.slice(0, t4), n3 = e4.slice(t4);
42741        return Array.prototype.concat.call([], s(r4), s(n3));
42742      }
42743      function u2(e4) {
42744        try {
42745          return decodeURIComponent(e4);
42746        } catch (n3) {
42747          for (var t4 = e4.match(o) || [], r4 = 1; r4 < t4.length; r4++)
42748            t4 = (e4 = s(t4, r4).join("")).match(o) || [];
42749          return e4;
42750        }
42751      }
42752      e3.exports = function(e4) {
42753        if ("string" != typeof e4)
42754          throw new TypeError("Expected `encodedURI` to be of type `string`, got `" + (0, n2.default)(e4) + "`");
42755        try {
42756          return e4 = e4.replace(/\+/g, " "), decodeURIComponent(e4);
42757        } catch (t4) {
42758          return function(e5) {
42759            for (var t5 = { "%FE%FF": "��", "%FF%FE": "��" }, r4 = a.exec(e5); r4; ) {
42760              try {
42761                t5[r4[0]] = decodeURIComponent(r4[0]);
42762              } catch (e6) {
42763                var n3 = u2(r4[0]);
42764                n3 !== r4[0] && (t5[r4[0]] = n3);
42765              }
42766              r4 = a.exec(e5);
42767            }
42768            t5["%C2"] = "�";
42769            for (var i2 = Object.keys(t5), o2 = 0; o2 < i2.length; o2++) {
42770              var s2 = i2[o2];
42771              e5 = e5.replace(new RegExp(s2, "g"), t5[s2]);
42772            }
42773            return e5;
42774          }(e4);
42775        }
42776      };
42777    }, 5626: (e3, t3, r3) => {
42778      t3.utils = r3(319), t3.Cipher = r3(9591), t3.DES = r3(3049), t3.CBC = r3(4375), t3.EDE = r3(9413);
42779    }, 4375: (e3, t3, r3) => {
42780      var n2 = r3(4504), i = r3(1736), o = {};
42781      function a(e4) {
42782        n2.equal(e4.length, 8, "Invalid IV length"), this.iv = new Array(8);
42783        for (var t4 = 0; t4 < this.iv.length; t4++)
42784          this.iv[t4] = e4[t4];
42785      }
42786      t3.instantiate = function(e4) {
42787        function t4(t5) {
42788          e4.call(this, t5), this._cbcInit();
42789        }
42790        i(t4, e4);
42791        for (var r4 = Object.keys(o), n3 = 0; n3 < r4.length; n3++) {
42792          var a2 = r4[n3];
42793          t4.prototype[a2] = o[a2];
42794        }
42795        return t4.create = function(e5) {
42796          return new t4(e5);
42797        }, t4;
42798      }, o._cbcInit = function() {
42799        var e4 = new a(this.options.iv);
42800        this._cbcState = e4;
42801      }, o._update = function(e4, t4, r4, n3) {
42802        var i2 = this._cbcState, o2 = this.constructor.super_.prototype, a2 = i2.iv;
vendor: 54,166 bytes, lines 42803-43681
42803        if ("encrypt" === this.type) {
42804          for (var s = 0; s < this.blockSize; s++)
42805            a2[s] ^= e4[t4 + s];
42806          for (o2._update.call(this, a2, 0, r4, n3), s = 0; s < this.blockSize; s++)
42807            a2[s] = r4[n3 + s];
42808        } else {
42809          for (o2._update.call(this, e4, t4, r4, n3), s = 0; s < this.blockSize; s++)
42810            r4[n3 + s] ^= a2[s];
42811          for (s = 0; s < this.blockSize; s++)
42812            a2[s] = e4[t4 + s];
42813        }
42814      };
42815    }, 9591: (e3, t3, r3) => {
42816      var n2 = r3(4504);
42817      function i(e4) {
42818        this.options = e4, this.type = this.options.type, this.blockSize = 8, this._init(), this.buffer = new Array(this.blockSize), this.bufferOff = 0;
42819      }
42820      e3.exports = i, i.prototype._init = function() {
42821      }, i.prototype.update = function(e4) {
42822        return 0 === e4.length ? [] : "decrypt" === this.type ? this._updateDecrypt(e4) : this._updateEncrypt(e4);
42823      }, i.prototype._buffer = function(e4, t4) {
42824        for (var r4 = Math.min(this.buffer.length - this.bufferOff, e4.length - t4), n3 = 0; n3 < r4; n3++)
42825          this.buffer[this.bufferOff + n3] = e4[t4 + n3];
42826        return this.bufferOff += r4, r4;
42827      }, i.prototype._flushBuffer = function(e4, t4) {
42828        return this._update(this.buffer, 0, e4, t4), this.bufferOff = 0, this.blockSize;
42829      }, i.prototype._updateEncrypt = function(e4) {
42830        var t4 = 0, r4 = 0, n3 = (this.bufferOff + e4.length) / this.blockSize | 0, i2 = new Array(n3 * this.blockSize);
42831        0 !== this.bufferOff && (t4 += this._buffer(e4, t4), this.bufferOff === this.buffer.length && (r4 += this._flushBuffer(i2, r4)));
42832        for (var o = e4.length - (e4.length - t4) % this.blockSize; t4 < o; t4 += this.blockSize)
42833          this._update(e4, t4, i2, r4), r4 += this.blockSize;
42834        for (; t4 < e4.length; t4++, this.bufferOff++)
42835          this.buffer[this.bufferOff] = e4[t4];
42836        return i2;
42837      }, i.prototype._updateDecrypt = function(e4) {
42838        for (var t4 = 0, r4 = 0, n3 = Math.ceil((this.bufferOff + e4.length) / this.blockSize) - 1, i2 = new Array(n3 * this.blockSize); n3 > 0; n3--)
42839          t4 += this._buffer(e4, t4), r4 += this._flushBuffer(i2, r4);
42840        return t4 += this._buffer(e4, t4), i2;
42841      }, i.prototype.final = function(e4) {
42842        var t4, r4;
42843        return e4 && (t4 = this.update(e4)), r4 = "encrypt" === this.type ? this._finalEncrypt() : this._finalDecrypt(), t4 ? t4.concat(r4) : r4;
42844      }, i.prototype._pad = function(e4, t4) {
42845        if (0 === t4)
42846          return false;
42847        for (; t4 < e4.length; )
42848          e4[t4++] = 0;
42849        return true;
42850      }, i.prototype._finalEncrypt = function() {
42851        if (!this._pad(this.buffer, this.bufferOff))
42852          return [];
42853        var e4 = new Array(this.blockSize);
42854        return this._update(this.buffer, 0, e4, 0), e4;
42855      }, i.prototype._unpad = function(e4) {
42856        return e4;
42857      }, i.prototype._finalDecrypt = function() {
42858        n2.equal(this.bufferOff, this.blockSize, "Not enough data to decrypt");
42859        var e4 = new Array(this.blockSize);
42860        return this._flushBuffer(e4, 0), this._unpad(e4);
42861      };
42862    }, 3049: (e3, t3, r3) => {
42863      var n2 = r3(4504), i = r3(1736), o = r3(319), a = r3(9591);
42864      function s() {
42865        this.tmp = new Array(2), this.keys = null;
42866      }
42867      function u2(e4) {
42868        a.call(this, e4);
42869        var t4 = new s();
42870        this._desState = t4, this.deriveKeys(t4, e4.key);
42871      }
42872      i(u2, a), e3.exports = u2, u2.create = function(e4) {
42873        return new u2(e4);
42874      };
42875      var c2 = [1, 1, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 1];
42876      u2.prototype.deriveKeys = function(e4, t4) {
42877        e4.keys = new Array(32), n2.equal(t4.length, this.blockSize, "Invalid key length");
42878        var r4 = o.readUInt32BE(t4, 0), i2 = o.readUInt32BE(t4, 4);
42879        o.pc1(r4, i2, e4.tmp, 0), r4 = e4.tmp[0], i2 = e4.tmp[1];
42880        for (var a2 = 0; a2 < e4.keys.length; a2 += 2) {
42881          var s2 = c2[a2 >>> 1];
42882          r4 = o.r28shl(r4, s2), i2 = o.r28shl(i2, s2), o.pc2(r4, i2, e4.keys, a2);
42883        }
42884      }, u2.prototype._update = function(e4, t4, r4, n3) {
42885        var i2 = this._desState, a2 = o.readUInt32BE(e4, t4), s2 = o.readUInt32BE(e4, t4 + 4);
42886        o.ip(a2, s2, i2.tmp, 0), a2 = i2.tmp[0], s2 = i2.tmp[1], "encrypt" === this.type ? this._encrypt(i2, a2, s2, i2.tmp, 0) : this._decrypt(i2, a2, s2, i2.tmp, 0), a2 = i2.tmp[0], s2 = i2.tmp[1], o.writeUInt32BE(r4, a2, n3), o.writeUInt32BE(r4, s2, n3 + 4);
42887      }, u2.prototype._pad = function(e4, t4) {
42888        for (var r4 = e4.length - t4, n3 = t4; n3 < e4.length; n3++)
42889          e4[n3] = r4;
42890        return true;
42891      }, u2.prototype._unpad = function(e4) {
42892        for (var t4 = e4[e4.length - 1], r4 = e4.length - t4; r4 < e4.length; r4++)
42893          n2.equal(e4[r4], t4);
42894        return e4.slice(0, e4.length - t4);
42895      }, u2.prototype._encrypt = function(e4, t4, r4, n3, i2) {
42896        for (var a2 = t4, s2 = r4, u3 = 0; u3 < e4.keys.length; u3 += 2) {
42897          var c3 = e4.keys[u3], f2 = e4.keys[u3 + 1];
42898          o.expand(s2, e4.tmp, 0), c3 ^= e4.tmp[0], f2 ^= e4.tmp[1];
42899          var d2 = o.substitute(c3, f2), l2 = s2;
42900          s2 = (a2 ^ o.permute(d2)) >>> 0, a2 = l2;
42901        }
42902        o.rip(s2, a2, n3, i2);
42903      }, u2.prototype._decrypt = function(e4, t4, r4, n3, i2) {
42904        for (var a2 = r4, s2 = t4, u3 = e4.keys.length - 2; u3 >= 0; u3 -= 2) {
42905          var c3 = e4.keys[u3], f2 = e4.keys[u3 + 1];
42906          o.expand(a2, e4.tmp, 0), c3 ^= e4.tmp[0], f2 ^= e4.tmp[1];
42907          var d2 = o.substitute(c3, f2), l2 = a2;
42908          a2 = (s2 ^ o.permute(d2)) >>> 0, s2 = l2;
42909        }
42910        o.rip(a2, s2, n3, i2);
42911      };
42912    }, 9413: (e3, t3, r3) => {
42913      var n2 = r3(4504), i = r3(1736), o = r3(9591), a = r3(3049);
42914      function s(e4, t4) {
42915        n2.equal(t4.length, 24, "Invalid key length");
42916        var r4 = t4.slice(0, 8), i2 = t4.slice(8, 16), o2 = t4.slice(16, 24);
42917        this.ciphers = "encrypt" === e4 ? [a.create({ type: "encrypt", key: r4 }), a.create({ type: "decrypt", key: i2 }), a.create({ type: "encrypt", key: o2 })] : [a.create({ type: "decrypt", key: o2 }), a.create({ type: "encrypt", key: i2 }), a.create({ type: "decrypt", key: r4 })];
42918      }
42919      function u2(e4) {
42920        o.call(this, e4);
42921        var t4 = new s(this.type, this.options.key);
42922        this._edeState = t4;
42923      }
42924      i(u2, o), e3.exports = u2, u2.create = function(e4) {
42925        return new u2(e4);
42926      }, u2.prototype._update = function(e4, t4, r4, n3) {
42927        var i2 = this._edeState;
42928        i2.ciphers[0]._update(e4, t4, r4, n3), i2.ciphers[1]._update(r4, n3, r4, n3), i2.ciphers[2]._update(r4, n3, r4, n3);
42929      }, u2.prototype._pad = a.prototype._pad, u2.prototype._unpad = a.prototype._unpad;
42930    }, 319: (e3, t3) => {
42931      t3.readUInt32BE = function(e4, t4) {
42932        return (e4[0 + t4] << 24 | e4[1 + t4] << 16 | e4[2 + t4] << 8 | e4[3 + t4]) >>> 0;
42933      }, t3.writeUInt32BE = function(e4, t4, r4) {
42934        e4[0 + r4] = t4 >>> 24, e4[1 + r4] = t4 >>> 16 & 255, e4[2 + r4] = t4 >>> 8 & 255, e4[3 + r4] = 255 & t4;
42935      }, t3.ip = function(e4, t4, r4, n3) {
42936        for (var i2 = 0, o = 0, a = 6; a >= 0; a -= 2) {
42937          for (var s = 0; s <= 24; s += 8)
42938            i2 <<= 1, i2 |= t4 >>> s + a & 1;
42939          for (s = 0; s <= 24; s += 8)
42940            i2 <<= 1, i2 |= e4 >>> s + a & 1;
42941        }
42942        for (a = 6; a >= 0; a -= 2) {
42943          for (s = 1; s <= 25; s += 8)
42944            o <<= 1, o |= t4 >>> s + a & 1;
42945          for (s = 1; s <= 25; s += 8)
42946            o <<= 1, o |= e4 >>> s + a & 1;
42947        }
42948        r4[n3 + 0] = i2 >>> 0, r4[n3 + 1] = o >>> 0;
42949      }, t3.rip = function(e4, t4, r4, n3) {
42950        for (var i2 = 0, o = 0, a = 0; a < 4; a++)
42951          for (var s = 24; s >= 0; s -= 8)
42952            i2 <<= 1, i2 |= t4 >>> s + a & 1, i2 <<= 1, i2 |= e4 >>> s + a & 1;
42953        for (a = 4; a < 8; a++)
42954          for (s = 24; s >= 0; s -= 8)
42955            o <<= 1, o |= t4 >>> s + a & 1, o <<= 1, o |= e4 >>> s + a & 1;
42956        r4[n3 + 0] = i2 >>> 0, r4[n3 + 1] = o >>> 0;
42957      }, t3.pc1 = function(e4, t4, r4, n3) {
42958        for (var i2 = 0, o = 0, a = 7; a >= 5; a--) {
42959          for (var s = 0; s <= 24; s += 8)
42960            i2 <<= 1, i2 |= t4 >> s + a & 1;
42961          for (s = 0; s <= 24; s += 8)
42962            i2 <<= 1, i2 |= e4 >> s + a & 1;
42963        }
42964        for (s = 0; s <= 24; s += 8)
42965          i2 <<= 1, i2 |= t4 >> s + a & 1;
42966        for (a = 1; a <= 3; a++) {
42967          for (s = 0; s <= 24; s += 8)
42968            o <<= 1, o |= t4 >> s + a & 1;
42969          for (s = 0; s <= 24; s += 8)
42970            o <<= 1, o |= e4 >> s + a & 1;
42971        }
42972        for (s = 0; s <= 24; s += 8)
42973          o <<= 1, o |= e4 >> s + a & 1;
42974        r4[n3 + 0] = i2 >>> 0, r4[n3 + 1] = o >>> 0;
42975      }, t3.r28shl = function(e4, t4) {
42976        return e4 << t4 & 268435455 | e4 >>> 28 - t4;
42977      };
42978      var r3 = [14, 11, 17, 4, 27, 23, 25, 0, 13, 22, 7, 18, 5, 9, 16, 24, 2, 20, 12, 21, 1, 8, 15, 26, 15, 4, 25, 19, 9, 1, 26, 16, 5, 11, 23, 8, 12, 7, 17, 0, 22, 3, 10, 14, 6, 20, 27, 24];
42979      t3.pc2 = function(e4, t4, n3, i2) {
42980        for (var o = 0, a = 0, s = r3.length >>> 1, u2 = 0; u2 < s; u2++)
42981          o <<= 1, o |= e4 >>> r3[u2] & 1;
42982        for (u2 = s; u2 < r3.length; u2++)
42983          a <<= 1, a |= t4 >>> r3[u2] & 1;
42984        n3[i2 + 0] = o >>> 0, n3[i2 + 1] = a >>> 0;
42985      }, t3.expand = function(e4, t4, r4) {
42986        var n3 = 0, i2 = 0;
42987        n3 = (1 & e4) << 5 | e4 >>> 27;
42988        for (var o = 23; o >= 15; o -= 4)
42989          n3 <<= 6, n3 |= e4 >>> o & 63;
42990        for (o = 11; o >= 3; o -= 4)
42991          i2 |= e4 >>> o & 63, i2 <<= 6;
42992        i2 |= (31 & e4) << 1 | e4 >>> 31, t4[r4 + 0] = n3 >>> 0, t4[r4 + 1] = i2 >>> 0;
42993      };
42994      var n2 = [14, 0, 4, 15, 13, 7, 1, 4, 2, 14, 15, 2, 11, 13, 8, 1, 3, 10, 10, 6, 6, 12, 12, 11, 5, 9, 9, 5, 0, 3, 7, 8, 4, 15, 1, 12, 14, 8, 8, 2, 13, 4, 6, 9, 2, 1, 11, 7, 15, 5, 12, 11, 9, 3, 7, 14, 3, 10, 10, 0, 5, 6, 0, 13, 15, 3, 1, 13, 8, 4, 14, 7, 6, 15, 11, 2, 3, 8, 4, 14, 9, 12, 7, 0, 2, 1, 13, 10, 12, 6, 0, 9, 5, 11, 10, 5, 0, 13, 14, 8, 7, 10, 11, 1, 10, 3, 4, 15, 13, 4, 1, 2, 5, 11, 8, 6, 12, 7, 6, 12, 9, 0, 3, 5, 2, 14, 15, 9, 10, 13, 0, 7, 9, 0, 14, 9, 6, 3, 3, 4, 15, 6, 5, 10, 1, 2, 13, 8, 12, 5, 7, 14, 11, 12, 4, 11, 2, 15, 8, 1, 13, 1, 6, 10, 4, 13, 9, 0, 8, 6, 15, 9, 3, 8, 0, 7, 11, 4, 1, 15, 2, 14, 12, 3, 5, 11, 10, 5, 14, 2, 7, 12, 7, 13, 13, 8, 14, 11, 3, 5, 0, 6, 6, 15, 9, 0, 10, 3, 1, 4, 2, 7, 8, 2, 5, 12, 11, 1, 12, 10, 4, 14, 15, 9, 10, 3, 6, 15, 9, 0, 0, 6, 12, 10, 11, 1, 7, 13, 13, 8, 15, 9, 1, 4, 3, 5, 14, 11, 5, 12, 2, 7, 8, 2, 4, 14, 2, 14, 12, 11, 4, 2, 1, 12, 7, 4, 10, 7, 11, 13, 6, 1, 8, 5, 5, 0, 3, 15, 15, 10, 13, 3, 0, 9, 14, 8, 9, 6, 4, 11, 2, 8, 1, 12, 11, 7, 10, 1, 13, 14, 7, 2, 8, 13, 15, 6, 9, 15, 12, 0, 5, 9, 6, 10, 3, 4, 0, 5, 14, 3, 12, 10, 1, 15, 10, 4, 15, 2, 9, 7, 2, 12, 6, 9, 8, 5, 0, 6, 13, 1, 3, 13, 4, 14, 14, 0, 7, 11, 5, 3, 11, 8, 9, 4, 14, 3, 15, 2, 5, 12, 2, 9, 8, 5, 12, 15, 3, 10, 7, 11, 0, 14, 4, 1, 10, 7, 1, 6, 13, 0, 11, 8, 6, 13, 4, 13, 11, 0, 2, 11, 14, 7, 15, 4, 0, 9, 8, 1, 13, 10, 3, 14, 12, 3, 9, 5, 7, 12, 5, 2, 10, 15, 6, 8, 1, 6, 1, 6, 4, 11, 11, 13, 13, 8, 12, 1, 3, 4, 7, 10, 14, 7, 10, 9, 15, 5, 6, 0, 8, 15, 0, 14, 5, 2, 9, 3, 2, 12, 13, 1, 2, 15, 8, 13, 4, 8, 6, 10, 15, 3, 11, 7, 1, 4, 10, 12, 9, 5, 3, 6, 14, 11, 5, 0, 0, 14, 12, 9, 7, 2, 7, 2, 11, 1, 4, 14, 1, 7, 9, 4, 12, 10, 14, 8, 2, 13, 0, 15, 6, 12, 10, 9, 13, 0, 15, 3, 3, 5, 5, 6, 8, 11];
42995      t3.substitute = function(e4, t4) {
42996        for (var r4 = 0, i2 = 0; i2 < 4; i2++)
42997          r4 <<= 4, r4 |= n2[64 * i2 + (e4 >>> 18 - 6 * i2 & 63)];
42998        for (i2 = 0; i2 < 4; i2++)
42999          r4 <<= 4, r4 |= n2[256 + 64 * i2 + (t4 >>> 18 - 6 * i2 & 63)];
43000        return r4 >>> 0;
43001      };
43002      var i = [16, 25, 12, 11, 3, 20, 4, 15, 31, 17, 9, 6, 27, 14, 1, 22, 30, 24, 8, 18, 0, 5, 29, 23, 13, 19, 2, 26, 10, 21, 28, 7];
43003      t3.permute = function(e4) {
43004        for (var t4 = 0, r4 = 0; r4 < i.length; r4++)
43005          t4 <<= 1, t4 |= e4 >>> i[r4] & 1;
43006        return t4 >>> 0;
43007      }, t3.padSplit = function(e4, t4, r4) {
43008        for (var n3 = e4.toString(2); n3.length < t4; )
43009          n3 = "0" + n3;
43010        for (var i2 = [], o = 0; o < t4; o += r4)
43011          i2.push(n3.slice(o, o + r4));
43012        return i2.join(" ");
43013      };
43014    }, 8333: (e3, t3, r3) => {
43015      var n2 = r3(9033).Buffer, i = r3(8557), o = r3(9799), a = r3(1592), s = { binary: true, hex: true, base64: true };
43016      t3.DiffieHellmanGroup = t3.createDiffieHellmanGroup = t3.getDiffieHellman = function(e4) {
43017        var t4 = new n2(o[e4].prime, "hex"), r4 = new n2(o[e4].gen, "hex");
43018        return new a(t4, r4);
43019      }, t3.createDiffieHellman = t3.DiffieHellman = function e4(t4, r4, o2, u2) {
43020        return n2.isBuffer(r4) || void 0 === s[r4] ? e4(t4, "binary", r4, o2) : (r4 = r4 || "binary", u2 = u2 || "binary", o2 = o2 || new n2([2]), n2.isBuffer(o2) || (o2 = new n2(o2, u2)), "number" == typeof t4 ? new a(i(t4, o2), o2, true) : (n2.isBuffer(t4) || (t4 = new n2(t4, r4)), new a(t4, o2, true)));
43021      };
43022    }, 1592: (e3, t3, r3) => {
43023      var n2 = r3(9033).Buffer, i = r3(1734), o = new (r3(137))(), a = new i(24), s = new i(11), u2 = new i(10), c2 = new i(3), f2 = new i(7), d2 = r3(8557), l2 = r3(5010);
43024      function h2(e4, t4) {
43025        return t4 = t4 || "utf8", n2.isBuffer(e4) || (e4 = new n2(e4, t4)), this._pub = new i(e4), this;
43026      }
43027      function p2(e4, t4) {
43028        return t4 = t4 || "utf8", n2.isBuffer(e4) || (e4 = new n2(e4, t4)), this._priv = new i(e4), this;
43029      }
43030      e3.exports = y2;
43031      var b2 = {};
43032      function y2(e4, t4, r4) {
43033        this.setGenerator(t4), this.__prime = new i(e4), this._prime = i.mont(this.__prime), this._primeLen = e4.length, this._pub = void 0, this._priv = void 0, this._primeCode = void 0, r4 ? (this.setPublicKey = h2, this.setPrivateKey = p2) : this._primeCode = 8;
43034      }
43035      function m2(e4, t4) {
43036        var r4 = new n2(e4.toArray());
43037        return t4 ? r4.toString(t4) : r4;
43038      }
43039      Object.defineProperty(y2.prototype, "verifyError", { enumerable: true, get: function() {
43040        return "number" != typeof this._primeCode && (this._primeCode = function(e4, t4) {
43041          var r4 = t4.toString("hex"), n3 = [r4, e4.toString(16)].join("_");
43042          if (n3 in b2)
43043            return b2[n3];
43044          var i2, l3 = 0;
43045          if (e4.isEven() || !d2.simpleSieve || !d2.fermatTest(e4) || !o.test(e4))
43046            return l3 += 1, l3 += "02" === r4 || "05" === r4 ? 8 : 4, b2[n3] = l3, l3;
43047          switch (o.test(e4.shrn(1)) || (l3 += 2), r4) {
43048            case "02":
43049              e4.mod(a).cmp(s) && (l3 += 8);
43050              break;
43051            case "05":
43052              (i2 = e4.mod(u2)).cmp(c2) && i2.cmp(f2) && (l3 += 8);
43053              break;
43054            default:
43055              l3 += 4;
43056          }
43057          return b2[n3] = l3, l3;
43058        }(this.__prime, this.__gen)), this._primeCode;
43059      } }), y2.prototype.generateKeys = function() {
43060        return this._priv || (this._priv = new i(l2(this._primeLen))), this._pub = this._gen.toRed(this._prime).redPow(this._priv).fromRed(), this.getPublicKey();
43061      }, y2.prototype.computeSecret = function(e4) {
43062        var t4 = (e4 = (e4 = new i(e4)).toRed(this._prime)).redPow(this._priv).fromRed(), r4 = new n2(t4.toArray()), o2 = this.getPrime();
43063        if (r4.length < o2.length) {
43064          var a2 = new n2(o2.length - r4.length);
43065          a2.fill(0), r4 = n2.concat([a2, r4]);
43066        }
43067        return r4;
43068      }, y2.prototype.getPublicKey = function(e4) {
43069        return m2(this._pub, e4);
43070      }, y2.prototype.getPrivateKey = function(e4) {
43071        return m2(this._priv, e4);
43072      }, y2.prototype.getPrime = function(e4) {
43073        return m2(this.__prime, e4);
43074      }, y2.prototype.getGenerator = function(e4) {
43075        return m2(this._gen, e4);
43076      }, y2.prototype.setGenerator = function(e4, t4) {
43077        return t4 = t4 || "utf8", n2.isBuffer(e4) || (e4 = new n2(e4, t4)), this.__gen = e4, this._gen = new i(e4), this;
43078      };
43079    }, 8557: (e3, t3, r3) => {
43080      var n2 = r3(5010);
43081      e3.exports = v2, v2.simpleSieve = y2, v2.fermatTest = m2;
43082      var i = r3(1734), o = new i(24), a = new (r3(137))(), s = new i(1), u2 = new i(2), c2 = new i(5), f2 = (new i(16), new i(8), new i(10)), d2 = new i(3), l2 = (new i(7), new i(11)), h2 = new i(4), p2 = (new i(12), null);
43083      function b2() {
43084        if (null !== p2)
43085          return p2;
43086        var e4 = [];
43087        e4[0] = 2;
43088        for (var t4 = 1, r4 = 3; r4 < 1048576; r4 += 2) {
43089          for (var n3 = Math.ceil(Math.sqrt(r4)), i2 = 0; i2 < t4 && e4[i2] <= n3 && r4 % e4[i2] != 0; i2++)
43090            ;
43091          t4 !== i2 && e4[i2] <= n3 || (e4[t4++] = r4);
43092        }
43093        return p2 = e4, e4;
43094      }
43095      function y2(e4) {
43096        for (var t4 = b2(), r4 = 0; r4 < t4.length; r4++)
43097          if (0 === e4.modn(t4[r4]))
43098            return 0 === e4.cmpn(t4[r4]);
43099        return true;
43100      }
43101      function m2(e4) {
43102        var t4 = i.mont(e4);
43103        return 0 === u2.toRed(t4).redPow(e4.subn(1)).fromRed().cmpn(1);
43104      }
43105      function v2(e4, t4) {
43106        if (e4 < 16)
43107          return new i(2 === t4 || 5 === t4 ? [140, 123] : [140, 39]);
43108        var r4, p3;
43109        for (t4 = new i(t4); ; ) {
43110          for (r4 = new i(n2(Math.ceil(e4 / 8))); r4.bitLength() > e4; )
43111            r4.ishrn(1);
43112          if (r4.isEven() && r4.iadd(s), r4.testn(1) || r4.iadd(u2), t4.cmp(u2)) {
43113            if (!t4.cmp(c2))
43114              for (; r4.mod(f2).cmp(d2); )
43115                r4.iadd(h2);
43116          } else
43117            for (; r4.mod(o).cmp(l2); )
43118              r4.iadd(h2);
43119          if (y2(p3 = r4.shrn(1)) && y2(r4) && m2(p3) && m2(r4) && a.test(p3) && a.test(r4))
43120            return r4;
43121        }
43122      }
43123    }, 6597: (e3, t3, r3) => {
43124      var n2 = t3;
43125      n2.version = r3(8597).i8, n2.utils = r3(7528), n2.rand = r3(2202), n2.curve = r3(6063), n2.curves = r3(506), n2.ec = r3(8320), n2.eddsa = r3(8027);
43126    }, 1249: (e3, t3, r3) => {
43127      var n2 = r3(1734), i = r3(7528), o = i.getNAF, a = i.getJSF, s = i.assert;
43128      function u2(e4, t4) {
43129        this.type = e4, this.p = new n2(t4.p, 16), this.red = t4.prime ? n2.red(t4.prime) : n2.mont(this.p), this.zero = new n2(0).toRed(this.red), this.one = new n2(1).toRed(this.red), this.two = new n2(2).toRed(this.red), this.n = t4.n && new n2(t4.n, 16), this.g = t4.g && this.pointFromJSON(t4.g, t4.gRed), this._wnafT1 = new Array(4), this._wnafT2 = new Array(4), this._wnafT3 = new Array(4), this._wnafT4 = new Array(4), this._bitLength = this.n ? this.n.bitLength() : 0;
43130        var r4 = this.n && this.p.div(this.n);
43131        !r4 || r4.cmpn(100) > 0 ? this.redN = null : (this._maxwellTrick = true, this.redN = this.n.toRed(this.red));
43132      }
43133      function c2(e4, t4) {
43134        this.curve = e4, this.type = t4, this.precomputed = null;
43135      }
43136      e3.exports = u2, u2.prototype.point = function() {
43137        throw new Error("Not implemented");
43138      }, u2.prototype.validate = function() {
43139        throw new Error("Not implemented");
43140      }, u2.prototype._fixedNafMul = function(e4, t4) {
43141        s(e4.precomputed);
43142        var r4 = e4._getDoubles(), n3 = o(t4, 1, this._bitLength), i2 = (1 << r4.step + 1) - (r4.step % 2 == 0 ? 2 : 1);
43143        i2 /= 3;
43144        var a2, u3, c3 = [];
43145        for (a2 = 0; a2 < n3.length; a2 += r4.step) {
43146          u3 = 0;
43147          for (var f2 = a2 + r4.step - 1; f2 >= a2; f2--)
43148            u3 = (u3 << 1) + n3[f2];
43149          c3.push(u3);
43150        }
43151        for (var d2 = this.jpoint(null, null, null), l2 = this.jpoint(null, null, null), h2 = i2; h2 > 0; h2--) {
43152          for (a2 = 0; a2 < c3.length; a2++)
43153            (u3 = c3[a2]) === h2 ? l2 = l2.mixedAdd(r4.points[a2]) : u3 === -h2 && (l2 = l2.mixedAdd(r4.points[a2].neg()));
43154          d2 = d2.add(l2);
43155        }
43156        return d2.toP();
43157      }, u2.prototype._wnafMul = function(e4, t4) {
43158        var r4 = 4, n3 = e4._getNAFPoints(r4);
43159        r4 = n3.wnd;
43160        for (var i2 = n3.points, a2 = o(t4, r4, this._bitLength), u3 = this.jpoint(null, null, null), c3 = a2.length - 1; c3 >= 0; c3--) {
43161          for (var f2 = 0; c3 >= 0 && 0 === a2[c3]; c3--)
43162            f2++;
43163          if (c3 >= 0 && f2++, u3 = u3.dblp(f2), c3 < 0)
43164            break;
43165          var d2 = a2[c3];
43166          s(0 !== d2), u3 = "affine" === e4.type ? d2 > 0 ? u3.mixedAdd(i2[d2 - 1 >> 1]) : u3.mixedAdd(i2[-d2 - 1 >> 1].neg()) : d2 > 0 ? u3.add(i2[d2 - 1 >> 1]) : u3.add(i2[-d2 - 1 >> 1].neg());
43167        }
43168        return "affine" === e4.type ? u3.toP() : u3;
43169      }, u2.prototype._wnafMulAdd = function(e4, t4, r4, n3, i2) {
43170        var s2, u3, c3, f2 = this._wnafT1, d2 = this._wnafT2, l2 = this._wnafT3, h2 = 0;
43171        for (s2 = 0; s2 < n3; s2++) {
43172          var p2 = (c3 = t4[s2])._getNAFPoints(e4);
43173          f2[s2] = p2.wnd, d2[s2] = p2.points;
43174        }
43175        for (s2 = n3 - 1; s2 >= 1; s2 -= 2) {
43176          var b2 = s2 - 1, y2 = s2;
43177          if (1 === f2[b2] && 1 === f2[y2]) {
43178            var m2 = [t4[b2], null, null, t4[y2]];
43179            0 === t4[b2].y.cmp(t4[y2].y) ? (m2[1] = t4[b2].add(t4[y2]), m2[2] = t4[b2].toJ().mixedAdd(t4[y2].neg())) : 0 === t4[b2].y.cmp(t4[y2].y.redNeg()) ? (m2[1] = t4[b2].toJ().mixedAdd(t4[y2]), m2[2] = t4[b2].add(t4[y2].neg())) : (m2[1] = t4[b2].toJ().mixedAdd(t4[y2]), m2[2] = t4[b2].toJ().mixedAdd(t4[y2].neg()));
43180            var v2 = [-3, -1, -5, -7, 0, 7, 5, 1, 3], g2 = a(r4[b2], r4[y2]);
43181            for (h2 = Math.max(g2[0].length, h2), l2[b2] = new Array(h2), l2[y2] = new Array(h2), u3 = 0; u3 < h2; u3++) {
43182              var w2 = 0 | g2[0][u3], A2 = 0 | g2[1][u3];
43183              l2[b2][u3] = v2[3 * (w2 + 1) + (A2 + 1)], l2[y2][u3] = 0, d2[b2] = m2;
43184            }
43185          } else
43186            l2[b2] = o(r4[b2], f2[b2], this._bitLength), l2[y2] = o(r4[y2], f2[y2], this._bitLength), h2 = Math.max(l2[b2].length, h2), h2 = Math.max(l2[y2].length, h2);
43187        }
43188        var k2 = this.jpoint(null, null, null), _ = this._wnafT4;
43189        for (s2 = h2; s2 >= 0; s2--) {
43190          for (var S2 = 0; s2 >= 0; ) {
43191            var x2 = true;
43192            for (u3 = 0; u3 < n3; u3++)
43193              _[u3] = 0 | l2[u3][s2], 0 !== _[u3] && (x2 = false);
43194            if (!x2)
43195              break;
43196            S2++, s2--;
43197          }
43198          if (s2 >= 0 && S2++, k2 = k2.dblp(S2), s2 < 0)
43199            break;
43200          for (u3 = 0; u3 < n3; u3++) {
43201            var E2 = _[u3];
43202            0 !== E2 && (E2 > 0 ? c3 = d2[u3][E2 - 1 >> 1] : E2 < 0 && (c3 = d2[u3][-E2 - 1 >> 1].neg()), k2 = "affine" === c3.type ? k2.mixedAdd(c3) : k2.add(c3));
43203          }
43204        }
43205        for (s2 = 0; s2 < n3; s2++)
43206          d2[s2] = null;
43207        return i2 ? k2 : k2.toP();
43208      }, u2.BasePoint = c2, c2.prototype.eq = function() {
43209        throw new Error("Not implemented");
43210      }, c2.prototype.validate = function() {
43211        return this.curve.validate(this);
43212      }, u2.prototype.decodePoint = function(e4, t4) {
43213        e4 = i.toArray(e4, t4);
43214        var r4 = this.p.byteLength();
43215        if ((4 === e4[0] || 6 === e4[0] || 7 === e4[0]) && e4.length - 1 == 2 * r4)
43216          return 6 === e4[0] ? s(e4[e4.length - 1] % 2 == 0) : 7 === e4[0] && s(e4[e4.length - 1] % 2 == 1), this.point(e4.slice(1, 1 + r4), e4.slice(1 + r4, 1 + 2 * r4));
43217        if ((2 === e4[0] || 3 === e4[0]) && e4.length - 1 === r4)
43218          return this.pointFromX(e4.slice(1, 1 + r4), 3 === e4[0]);
43219        throw new Error("Unknown point format");
43220      }, c2.prototype.encodeCompressed = function(e4) {
43221        return this.encode(e4, true);
43222      }, c2.prototype._encode = function(e4) {
43223        var t4 = this.curve.p.byteLength(), r4 = this.getX().toArray("be", t4);
43224        return e4 ? [this.getY().isEven() ? 2 : 3].concat(r4) : [4].concat(r4, this.getY().toArray("be", t4));
43225      }, c2.prototype.encode = function(e4, t4) {
43226        return i.encode(this._encode(t4), e4);
43227      }, c2.prototype.precompute = function(e4) {
43228        if (this.precomputed)
43229          return this;
43230        var t4 = { doubles: null, naf: null, beta: null };
43231        return t4.naf = this._getNAFPoints(8), t4.doubles = this._getDoubles(4, e4), t4.beta = this._getBeta(), this.precomputed = t4, this;
43232      }, c2.prototype._hasDoubles = function(e4) {
43233        if (!this.precomputed)
43234          return false;
43235        var t4 = this.precomputed.doubles;
43236        return !!t4 && t4.points.length >= Math.ceil((e4.bitLength() + 1) / t4.step);
43237      }, c2.prototype._getDoubles = function(e4, t4) {
43238        if (this.precomputed && this.precomputed.doubles)
43239          return this.precomputed.doubles;
43240        for (var r4 = [this], n3 = this, i2 = 0; i2 < t4; i2 += e4) {
43241          for (var o2 = 0; o2 < e4; o2++)
43242            n3 = n3.dbl();
43243          r4.push(n3);
43244        }
43245        return { step: e4, points: r4 };
43246      }, c2.prototype._getNAFPoints = function(e4) {
43247        if (this.precomputed && this.precomputed.naf)
43248          return this.precomputed.naf;
43249        for (var t4 = [this], r4 = (1 << e4) - 1, n3 = 1 === r4 ? null : this.dbl(), i2 = 1; i2 < r4; i2++)
43250          t4[i2] = t4[i2 - 1].add(n3);
43251        return { wnd: e4, points: t4 };
43252      }, c2.prototype._getBeta = function() {
43253        return null;
43254      }, c2.prototype.dblp = function(e4) {
43255        for (var t4 = this, r4 = 0; r4 < e4; r4++)
43256          t4 = t4.dbl();
43257        return t4;
43258      };
43259    }, 1123: (e3, t3, r3) => {
43260      var n2 = r3(7528), i = r3(1734), o = r3(1736), a = r3(1249), s = n2.assert;
43261      function u2(e4) {
43262        this.twisted = 1 != (0 | e4.a), this.mOneA = this.twisted && -1 == (0 | e4.a), this.extended = this.mOneA, a.call(this, "edwards", e4), this.a = new i(e4.a, 16).umod(this.red.m), this.a = this.a.toRed(this.red), this.c = new i(e4.c, 16).toRed(this.red), this.c2 = this.c.redSqr(), this.d = new i(e4.d, 16).toRed(this.red), this.dd = this.d.redAdd(this.d), s(!this.twisted || 0 === this.c.fromRed().cmpn(1)), this.oneC = 1 == (0 | e4.c);
43263      }
43264      function c2(e4, t4, r4, n3, o2) {
43265        a.BasePoint.call(this, e4, "projective"), null === t4 && null === r4 && null === n3 ? (this.x = this.curve.zero, this.y = this.curve.one, this.z = this.curve.one, this.t = this.curve.zero, this.zOne = true) : (this.x = new i(t4, 16), this.y = new i(r4, 16), this.z = n3 ? new i(n3, 16) : this.curve.one, this.t = o2 && new i(o2, 16), this.x.red || (this.x = this.x.toRed(this.curve.red)), this.y.red || (this.y = this.y.toRed(this.curve.red)), this.z.red || (this.z = this.z.toRed(this.curve.red)), this.t && !this.t.red && (this.t = this.t.toRed(this.curve.red)), this.zOne = this.z === this.curve.one, this.curve.extended && !this.t && (this.t = this.x.redMul(this.y), this.zOne || (this.t = this.t.redMul(this.z.redInvm()))));
43266      }
43267      o(u2, a), e3.exports = u2, u2.prototype._mulA = function(e4) {
43268        return this.mOneA ? e4.redNeg() : this.a.redMul(e4);
43269      }, u2.prototype._mulC = function(e4) {
43270        return this.oneC ? e4 : this.c.redMul(e4);
43271      }, u2.prototype.jpoint = function(e4, t4, r4, n3) {
43272        return this.point(e4, t4, r4, n3);
43273      }, u2.prototype.pointFromX = function(e4, t4) {
43274        (e4 = new i(e4, 16)).red || (e4 = e4.toRed(this.red));
43275        var r4 = e4.redSqr(), n3 = this.c2.redSub(this.a.redMul(r4)), o2 = this.one.redSub(this.c2.redMul(this.d).redMul(r4)), a2 = n3.redMul(o2.redInvm()), s2 = a2.redSqrt();
43276        if (0 !== s2.redSqr().redSub(a2).cmp(this.zero))
43277          throw new Error("invalid point");
43278        var u3 = s2.fromRed().isOdd();
43279        return (t4 && !u3 || !t4 && u3) && (s2 = s2.redNeg()), this.point(e4, s2);
43280      }, u2.prototype.pointFromY = function(e4, t4) {
43281        (e4 = new i(e4, 16)).red || (e4 = e4.toRed(this.red));
43282        var r4 = e4.redSqr(), n3 = r4.redSub(this.c2), o2 = r4.redMul(this.d).redMul(this.c2).redSub(this.a), a2 = n3.redMul(o2.redInvm());
43283        if (0 === a2.cmp(this.zero)) {
43284          if (t4)
43285            throw new Error("invalid point");
43286          return this.point(this.zero, e4);
43287        }
43288        var s2 = a2.redSqrt();
43289        if (0 !== s2.redSqr().redSub(a2).cmp(this.zero))
43290          throw new Error("invalid point");
43291        return s2.fromRed().isOdd() !== t4 && (s2 = s2.redNeg()), this.point(s2, e4);
43292      }, u2.prototype.validate = function(e4) {
43293        if (e4.isInfinity())
43294          return true;
43295        e4.normalize();
43296        var t4 = e4.x.redSqr(), r4 = e4.y.redSqr(), n3 = t4.redMul(this.a).redAdd(r4), i2 = this.c2.redMul(this.one.redAdd(this.d.redMul(t4).redMul(r4)));
43297        return 0 === n3.cmp(i2);
43298      }, o(c2, a.BasePoint), u2.prototype.pointFromJSON = function(e4) {
43299        return c2.fromJSON(this, e4);
43300      }, u2.prototype.point = function(e4, t4, r4, n3) {
43301        return new c2(this, e4, t4, r4, n3);
43302      }, c2.fromJSON = function(e4, t4) {
43303        return new c2(e4, t4[0], t4[1], t4[2]);
43304      }, c2.prototype.inspect = function() {
43305        return this.isInfinity() ? "<EC Point Infinity>" : "<EC Point x: " + this.x.fromRed().toString(16, 2) + " y: " + this.y.fromRed().toString(16, 2) + " z: " + this.z.fromRed().toString(16, 2) + ">";
43306      }, c2.prototype.isInfinity = function() {
43307        return 0 === this.x.cmpn(0) && (0 === this.y.cmp(this.z) || this.zOne && 0 === this.y.cmp(this.curve.c));
43308      }, c2.prototype._extDbl = function() {
43309        var e4 = this.x.redSqr(), t4 = this.y.redSqr(), r4 = this.z.redSqr();
43310        r4 = r4.redIAdd(r4);
43311        var n3 = this.curve._mulA(e4), i2 = this.x.redAdd(this.y).redSqr().redISub(e4).redISub(t4), o2 = n3.redAdd(t4), a2 = o2.redSub(r4), s2 = n3.redSub(t4), u3 = i2.redMul(a2), c3 = o2.redMul(s2), f2 = i2.redMul(s2), d2 = a2.redMul(o2);
43312        return this.curve.point(u3, c3, d2, f2);
43313      }, c2.prototype._projDbl = function() {
43314        var e4, t4, r4, n3, i2, o2, a2 = this.x.redAdd(this.y).redSqr(), s2 = this.x.redSqr(), u3 = this.y.redSqr();
43315        if (this.curve.twisted) {
43316          var c3 = (n3 = this.curve._mulA(s2)).redAdd(u3);
43317          this.zOne ? (e4 = a2.redSub(s2).redSub(u3).redMul(c3.redSub(this.curve.two)), t4 = c3.redMul(n3.redSub(u3)), r4 = c3.redSqr().redSub(c3).redSub(c3)) : (i2 = this.z.redSqr(), o2 = c3.redSub(i2).redISub(i2), e4 = a2.redSub(s2).redISub(u3).redMul(o2), t4 = c3.redMul(n3.redSub(u3)), r4 = c3.redMul(o2));
43318        } else
43319          n3 = s2.redAdd(u3), i2 = this.curve._mulC(this.z).redSqr(), o2 = n3.redSub(i2).redSub(i2), e4 = this.curve._mulC(a2.redISub(n3)).redMul(o2), t4 = this.curve._mulC(n3).redMul(s2.redISub(u3)), r4 = n3.redMul(o2);
43320        return this.curve.point(e4, t4, r4);
43321      }, c2.prototype.dbl = function() {
43322        return this.isInfinity() ? this : this.curve.extended ? this._extDbl() : this._projDbl();
43323      }, c2.prototype._extAdd = function(e4) {
43324        var t4 = this.y.redSub(this.x).redMul(e4.y.redSub(e4.x)), r4 = this.y.redAdd(this.x).redMul(e4.y.redAdd(e4.x)), n3 = this.t.redMul(this.curve.dd).redMul(e4.t), i2 = this.z.redMul(e4.z.redAdd(e4.z)), o2 = r4.redSub(t4), a2 = i2.redSub(n3), s2 = i2.redAdd(n3), u3 = r4.redAdd(t4), c3 = o2.redMul(a2), f2 = s2.redMul(u3), d2 = o2.redMul(u3), l2 = a2.redMul(s2);
43325        return this.curve.point(c3, f2, l2, d2);
43326      }, c2.prototype._projAdd = function(e4) {
43327        var t4, r4, n3 = this.z.redMul(e4.z), i2 = n3.redSqr(), o2 = this.x.redMul(e4.x), a2 = this.y.redMul(e4.y), s2 = this.curve.d.redMul(o2).redMul(a2), u3 = i2.redSub(s2), c3 = i2.redAdd(s2), f2 = this.x.redAdd(this.y).redMul(e4.x.redAdd(e4.y)).redISub(o2).redISub(a2), d2 = n3.redMul(u3).redMul(f2);
43328        return this.curve.twisted ? (t4 = n3.redMul(c3).redMul(a2.redSub(this.curve._mulA(o2))), r4 = u3.redMul(c3)) : (t4 = n3.redMul(c3).redMul(a2.redSub(o2)), r4 = this.curve._mulC(u3).redMul(c3)), this.curve.point(d2, t4, r4);
43329      }, c2.prototype.add = function(e4) {
43330        return this.isInfinity() ? e4 : e4.isInfinity() ? this : this.curve.extended ? this._extAdd(e4) : this._projAdd(e4);
43331      }, c2.prototype.mul = function(e4) {
43332        return this._hasDoubles(e4) ? this.curve._fixedNafMul(this, e4) : this.curve._wnafMul(this, e4);
43333      }, c2.prototype.mulAdd = function(e4, t4, r4) {
43334        return this.curve._wnafMulAdd(1, [this, t4], [e4, r4], 2, false);
43335      }, c2.prototype.jmulAdd = function(e4, t4, r4) {
43336        return this.curve._wnafMulAdd(1, [this, t4], [e4, r4], 2, true);
43337      }, c2.prototype.normalize = function() {
43338        if (this.zOne)
43339          return this;
43340        var e4 = this.z.redInvm();
43341        return this.x = this.x.redMul(e4), this.y = this.y.redMul(e4), this.t && (this.t = this.t.redMul(e4)), this.z = this.curve.one, this.zOne = true, this;
43342      }, c2.prototype.neg = function() {
43343        return this.curve.point(this.x.redNeg(), this.y, this.z, this.t && this.t.redNeg());
43344      }, c2.prototype.getX = function() {
43345        return this.normalize(), this.x.fromRed();
43346      }, c2.prototype.getY = function() {
43347        return this.normalize(), this.y.fromRed();
43348      }, c2.prototype.eq = function(e4) {
43349        return this === e4 || 0 === this.getX().cmp(e4.getX()) && 0 === this.getY().cmp(e4.getY());
43350      }, c2.prototype.eqXToP = function(e4) {
43351        var t4 = e4.toRed(this.curve.red).redMul(this.z);
43352        if (0 === this.x.cmp(t4))
43353          return true;
43354        for (var r4 = e4.clone(), n3 = this.curve.redN.redMul(this.z); ; ) {
43355          if (r4.iadd(this.curve.n), r4.cmp(this.curve.p) >= 0)
43356            return false;
43357          if (t4.redIAdd(n3), 0 === this.x.cmp(t4))
43358            return true;
43359        }
43360      }, c2.prototype.toP = c2.prototype.normalize, c2.prototype.mixedAdd = c2.prototype.add;
43361    }, 6063: (e3, t3, r3) => {
43362      var n2 = t3;
43363      n2.base = r3(1249), n2.short = r3(3148), n2.mont = r3(1105), n2.edwards = r3(1123);
43364    }, 1105: (e3, t3, r3) => {
43365      var n2 = r3(1734), i = r3(1736), o = r3(1249), a = r3(7528);
43366      function s(e4) {
43367        o.call(this, "mont", e4), this.a = new n2(e4.a, 16).toRed(this.red), this.b = new n2(e4.b, 16).toRed(this.red), this.i4 = new n2(4).toRed(this.red).redInvm(), this.two = new n2(2).toRed(this.red), this.a24 = this.i4.redMul(this.a.redAdd(this.two));
43368      }
43369      function u2(e4, t4, r4) {
43370        o.BasePoint.call(this, e4, "projective"), null === t4 && null === r4 ? (this.x = this.curve.one, this.z = this.curve.zero) : (this.x = new n2(t4, 16), this.z = new n2(r4, 16), this.x.red || (this.x = this.x.toRed(this.curve.red)), this.z.red || (this.z = this.z.toRed(this.curve.red)));
43371      }
43372      i(s, o), e3.exports = s, s.prototype.validate = function(e4) {
43373        var t4 = e4.normalize().x, r4 = t4.redSqr(), n3 = r4.redMul(t4).redAdd(r4.redMul(this.a)).redAdd(t4);
43374        return 0 === n3.redSqrt().redSqr().cmp(n3);
43375      }, i(u2, o.BasePoint), s.prototype.decodePoint = function(e4, t4) {
43376        return this.point(a.toArray(e4, t4), 1);
43377      }, s.prototype.point = function(e4, t4) {
43378        return new u2(this, e4, t4);
43379      }, s.prototype.pointFromJSON = function(e4) {
43380        return u2.fromJSON(this, e4);
43381      }, u2.prototype.precompute = function() {
43382      }, u2.prototype._encode = function() {
43383        return this.getX().toArray("be", this.curve.p.byteLength());
43384      }, u2.fromJSON = function(e4, t4) {
43385        return new u2(e4, t4[0], t4[1] || e4.one);
43386      }, u2.prototype.inspect = function() {
43387        return this.isInfinity() ? "<EC Point Infinity>" : "<EC Point x: " + this.x.fromRed().toString(16, 2) + " z: " + this.z.fromRed().toString(16, 2) + ">";
43388      }, u2.prototype.isInfinity = function() {
43389        return 0 === this.z.cmpn(0);
43390      }, u2.prototype.dbl = function() {
43391        var e4 = this.x.redAdd(this.z).redSqr(), t4 = this.x.redSub(this.z).redSqr(), r4 = e4.redSub(t4), n3 = e4.redMul(t4), i2 = r4.redMul(t4.redAdd(this.curve.a24.redMul(r4)));
43392        return this.curve.point(n3, i2);
43393      }, u2.prototype.add = function() {
43394        throw new Error("Not supported on Montgomery curve");
43395      }, u2.prototype.diffAdd = function(e4, t4) {
43396        var r4 = this.x.redAdd(this.z), n3 = this.x.redSub(this.z), i2 = e4.x.redAdd(e4.z), o2 = e4.x.redSub(e4.z).redMul(r4), a2 = i2.redMul(n3), s2 = t4.z.redMul(o2.redAdd(a2).redSqr()), u3 = t4.x.redMul(o2.redISub(a2).redSqr());
43397        return this.curve.point(s2, u3);
43398      }, u2.prototype.mul = function(e4) {
43399        for (var t4 = e4.clone(), r4 = this, n3 = this.curve.point(null, null), i2 = []; 0 !== t4.cmpn(0); t4.iushrn(1))
43400          i2.push(t4.andln(1));
43401        for (var o2 = i2.length - 1; o2 >= 0; o2--)
43402          0 === i2[o2] ? (r4 = r4.diffAdd(n3, this), n3 = n3.dbl()) : (n3 = r4.diffAdd(n3, this), r4 = r4.dbl());
43403        return n3;
43404      }, u2.prototype.mulAdd = function() {
43405        throw new Error("Not supported on Montgomery curve");
43406      }, u2.prototype.jumlAdd = function() {
43407        throw new Error("Not supported on Montgomery curve");
43408      }, u2.prototype.eq = function(e4) {
43409        return 0 === this.getX().cmp(e4.getX());
43410      }, u2.prototype.normalize = function() {
43411        return this.x = this.x.redMul(this.z.redInvm()), this.z = this.curve.one, this;
43412      }, u2.prototype.getX = function() {
43413        return this.normalize(), this.x.fromRed();
43414      };
43415    }, 3148: (e3, t3, r3) => {
43416      var n2 = r3(7528), i = r3(1734), o = r3(1736), a = r3(1249), s = n2.assert;
43417      function u2(e4) {
43418        a.call(this, "short", e4), this.a = new i(e4.a, 16).toRed(this.red), this.b = new i(e4.b, 16).toRed(this.red), this.tinv = this.two.redInvm(), this.zeroA = 0 === this.a.fromRed().cmpn(0), this.threeA = 0 === this.a.fromRed().sub(this.p).cmpn(-3), this.endo = this._getEndomorphism(e4), this._endoWnafT1 = new Array(4), this._endoWnafT2 = new Array(4);
43419      }
43420      function c2(e4, t4, r4, n3) {
43421        a.BasePoint.call(this, e4, "affine"), null === t4 && null === r4 ? (this.x = null, this.y = null, this.inf = true) : (this.x = new i(t4, 16), this.y = new i(r4, 16), n3 && (this.x.forceRed(this.curve.red), this.y.forceRed(this.curve.red)), this.x.red || (this.x = this.x.toRed(this.curve.red)), this.y.red || (this.y = this.y.toRed(this.curve.red)), this.inf = false);
43422      }
43423      function f2(e4, t4, r4, n3) {
43424        a.BasePoint.call(this, e4, "jacobian"), null === t4 && null === r4 && null === n3 ? (this.x = this.curve.one, this.y = this.curve.one, this.z = new i(0)) : (this.x = new i(t4, 16), this.y = new i(r4, 16), this.z = new i(n3, 16)), this.x.red || (this.x = this.x.toRed(this.curve.red)), this.y.red || (this.y = this.y.toRed(this.curve.red)), this.z.red || (this.z = this.z.toRed(this.curve.red)), this.zOne = this.z === this.curve.one;
43425      }
43426      o(u2, a), e3.exports = u2, u2.prototype._getEndomorphism = function(e4) {
43427        if (this.zeroA && this.g && this.n && 1 === this.p.modn(3)) {
43428          var t4, r4;
43429          if (e4.beta)
43430            t4 = new i(e4.beta, 16).toRed(this.red);
43431          else {
43432            var n3 = this._getEndoRoots(this.p);
43433            t4 = (t4 = n3[0].cmp(n3[1]) < 0 ? n3[0] : n3[1]).toRed(this.red);
43434          }
43435          if (e4.lambda)
43436            r4 = new i(e4.lambda, 16);
43437          else {
43438            var o2 = this._getEndoRoots(this.n);
43439            0 === this.g.mul(o2[0]).x.cmp(this.g.x.redMul(t4)) ? r4 = o2[0] : (r4 = o2[1], s(0 === this.g.mul(r4).x.cmp(this.g.x.redMul(t4))));
43440          }
43441          return { beta: t4, lambda: r4, basis: e4.basis ? e4.basis.map(function(e5) {
43442            return { a: new i(e5.a, 16), b: new i(e5.b, 16) };
43443          }) : this._getEndoBasis(r4) };
43444        }
43445      }, u2.prototype._getEndoRoots = function(e4) {
43446        var t4 = e4 === this.p ? this.red : i.mont(e4), r4 = new i(2).toRed(t4).redInvm(), n3 = r4.redNeg(), o2 = new i(3).toRed(t4).redNeg().redSqrt().redMul(r4);
43447        return [n3.redAdd(o2).fromRed(), n3.redSub(o2).fromRed()];
43448      }, u2.prototype._getEndoBasis = function(e4) {
43449        for (var t4, r4, n3, o2, a2, s2, u3, c3, f3, d2 = this.n.ushrn(Math.floor(this.n.bitLength() / 2)), l2 = e4, h2 = this.n.clone(), p2 = new i(1), b2 = new i(0), y2 = new i(0), m2 = new i(1), v2 = 0; 0 !== l2.cmpn(0); ) {
43450          var g2 = h2.div(l2);
43451          c3 = h2.sub(g2.mul(l2)), f3 = y2.sub(g2.mul(p2));
43452          var w2 = m2.sub(g2.mul(b2));
43453          if (!n3 && c3.cmp(d2) < 0)
43454            t4 = u3.neg(), r4 = p2, n3 = c3.neg(), o2 = f3;
43455          else if (n3 && 2 == ++v2)
43456            break;
43457          u3 = c3, h2 = l2, l2 = c3, y2 = p2, p2 = f3, m2 = b2, b2 = w2;
43458        }
43459        a2 = c3.neg(), s2 = f3;
43460        var A2 = n3.sqr().add(o2.sqr());
43461        return a2.sqr().add(s2.sqr()).cmp(A2) >= 0 && (a2 = t4, s2 = r4), n3.negative && (n3 = n3.neg(), o2 = o2.neg()), a2.negative && (a2 = a2.neg(), s2 = s2.neg()), [{ a: n3, b: o2 }, { a: a2, b: s2 }];
43462      }, u2.prototype._endoSplit = function(e4) {
43463        var t4 = this.endo.basis, r4 = t4[0], n3 = t4[1], i2 = n3.b.mul(e4).divRound(this.n), o2 = r4.b.neg().mul(e4).divRound(this.n), a2 = i2.mul(r4.a), s2 = o2.mul(n3.a), u3 = i2.mul(r4.b), c3 = o2.mul(n3.b);
43464        return { k1: e4.sub(a2).sub(s2), k2: u3.add(c3).neg() };
43465      }, u2.prototype.pointFromX = function(e4, t4) {
43466        (e4 = new i(e4, 16)).red || (e4 = e4.toRed(this.red));
43467        var r4 = e4.redSqr().redMul(e4).redIAdd(e4.redMul(this.a)).redIAdd(this.b), n3 = r4.redSqrt();
43468        if (0 !== n3.redSqr().redSub(r4).cmp(this.zero))
43469          throw new Error("invalid point");
43470        var o2 = n3.fromRed().isOdd();
43471        return (t4 && !o2 || !t4 && o2) && (n3 = n3.redNeg()), this.point(e4, n3);
43472      }, u2.prototype.validate = function(e4) {
43473        if (e4.inf)
43474          return true;
43475        var t4 = e4.x, r4 = e4.y, n3 = this.a.redMul(t4), i2 = t4.redSqr().redMul(t4).redIAdd(n3).redIAdd(this.b);
43476        return 0 === r4.redSqr().redISub(i2).cmpn(0);
43477      }, u2.prototype._endoWnafMulAdd = function(e4, t4, r4) {
43478        for (var n3 = this._endoWnafT1, i2 = this._endoWnafT2, o2 = 0; o2 < e4.length; o2++) {
43479          var a2 = this._endoSplit(t4[o2]), s2 = e4[o2], u3 = s2._getBeta();
43480          a2.k1.negative && (a2.k1.ineg(), s2 = s2.neg(true)), a2.k2.negative && (a2.k2.ineg(), u3 = u3.neg(true)), n3[2 * o2] = s2, n3[2 * o2 + 1] = u3, i2[2 * o2] = a2.k1, i2[2 * o2 + 1] = a2.k2;
43481        }
43482        for (var c3 = this._wnafMulAdd(1, n3, i2, 2 * o2, r4), f3 = 0; f3 < 2 * o2; f3++)
43483          n3[f3] = null, i2[f3] = null;
43484        return c3;
43485      }, o(c2, a.BasePoint), u2.prototype.point = function(e4, t4, r4) {
43486        return new c2(this, e4, t4, r4);
43487      }, u2.prototype.pointFromJSON = function(e4, t4) {
43488        return c2.fromJSON(this, e4, t4);
43489      }, c2.prototype._getBeta = function() {
43490        if (this.curve.endo) {
43491          var e4 = this.precomputed;
43492          if (e4 && e4.beta)
43493            return e4.beta;
43494          var t4 = this.curve.point(this.x.redMul(this.curve.endo.beta), this.y);
43495          if (e4) {
43496            var r4 = this.curve, n3 = function(e5) {
43497              return r4.point(e5.x.redMul(r4.endo.beta), e5.y);
43498            };
43499            e4.beta = t4, t4.precomputed = { beta: null, naf: e4.naf && { wnd: e4.naf.wnd, points: e4.naf.points.map(n3) }, doubles: e4.doubles && { step: e4.doubles.step, points: e4.doubles.points.map(n3) } };
43500          }
43501          return t4;
43502        }
43503      }, c2.prototype.toJSON = function() {
43504        return this.precomputed ? [this.x, this.y, this.precomputed && { doubles: this.precomputed.doubles && { step: this.precomputed.doubles.step, points: this.precomputed.doubles.points.slice(1) }, naf: this.precomputed.naf && { wnd: this.precomputed.naf.wnd, points: this.precomputed.naf.points.slice(1) } }] : [this.x, this.y];
43505      }, c2.fromJSON = function(e4, t4, r4) {
43506        "string" == typeof t4 && (t4 = JSON.parse(t4));
43507        var n3 = e4.point(t4[0], t4[1], r4);
43508        if (!t4[2])
43509          return n3;
43510        function i2(t5) {
43511          return e4.point(t5[0], t5[1], r4);
43512        }
43513        var o2 = t4[2];
43514        return n3.precomputed = { beta: null, doubles: o2.doubles && { step: o2.doubles.step, points: [n3].concat(o2.doubles.points.map(i2)) }, naf: o2.naf && { wnd: o2.naf.wnd, points: [n3].concat(o2.naf.points.map(i2)) } }, n3;
43515      }, c2.prototype.inspect = function() {
43516        return this.isInfinity() ? "<EC Point Infinity>" : "<EC Point x: " + this.x.fromRed().toString(16, 2) + " y: " + this.y.fromRed().toString(16, 2) + ">";
43517      }, c2.prototype.isInfinity = function() {
43518        return this.inf;
43519      }, c2.prototype.add = function(e4) {
43520        if (this.inf)
43521          return e4;
43522        if (e4.inf)
43523          return this;
43524        if (this.eq(e4))
43525          return this.dbl();
43526        if (this.neg().eq(e4))
43527          return this.curve.point(null, null);
43528        if (0 === this.x.cmp(e4.x))
43529          return this.curve.point(null, null);
43530        var t4 = this.y.redSub(e4.y);
43531        0 !== t4.cmpn(0) && (t4 = t4.redMul(this.x.redSub(e4.x).redInvm()));
43532        var r4 = t4.redSqr().redISub(this.x).redISub(e4.x), n3 = t4.redMul(this.x.redSub(r4)).redISub(this.y);
43533        return this.curve.point(r4, n3);
43534      }, c2.prototype.dbl = function() {
43535        if (this.inf)
43536          return this;
43537        var e4 = this.y.redAdd(this.y);
43538        if (0 === e4.cmpn(0))
43539          return this.curve.point(null, null);
43540        var t4 = this.curve.a, r4 = this.x.redSqr(), n3 = e4.redInvm(), i2 = r4.redAdd(r4).redIAdd(r4).redIAdd(t4).redMul(n3), o2 = i2.redSqr().redISub(this.x.redAdd(this.x)), a2 = i2.redMul(this.x.redSub(o2)).redISub(this.y);
43541        return this.curve.point(o2, a2);
43542      }, c2.prototype.getX = function() {
43543        return this.x.fromRed();
43544      }, c2.prototype.getY = function() {
43545        return this.y.fromRed();
43546      }, c2.prototype.mul = function(e4) {
43547        return e4 = new i(e4, 16), this.isInfinity() ? this : this._hasDoubles(e4) ? this.curve._fixedNafMul(this, e4) : this.curve.endo ? this.curve._endoWnafMulAdd([this], [e4]) : this.curve._wnafMul(this, e4);
43548      }, c2.prototype.mulAdd = function(e4, t4, r4) {
43549        var n3 = [this, t4], i2 = [e4, r4];
43550        return this.curve.endo ? this.curve._endoWnafMulAdd(n3, i2) : this.curve._wnafMulAdd(1, n3, i2, 2);
43551      }, c2.prototype.jmulAdd = function(e4, t4, r4) {
43552        var n3 = [this, t4], i2 = [e4, r4];
43553        return this.curve.endo ? this.curve._endoWnafMulAdd(n3, i2, true) : this.curve._wnafMulAdd(1, n3, i2, 2, true);
43554      }, c2.prototype.eq = function(e4) {
43555        return this === e4 || this.inf === e4.inf && (this.inf || 0 === this.x.cmp(e4.x) && 0 === this.y.cmp(e4.y));
43556      }, c2.prototype.neg = function(e4) {
43557        if (this.inf)
43558          return this;
43559        var t4 = this.curve.point(this.x, this.y.redNeg());
43560        if (e4 && this.precomputed) {
43561          var r4 = this.precomputed, n3 = function(e5) {
43562            return e5.neg();
43563          };
43564          t4.precomputed = { naf: r4.naf && { wnd: r4.naf.wnd, points: r4.naf.points.map(n3) }, doubles: r4.doubles && { step: r4.doubles.step, points: r4.doubles.points.map(n3) } };
43565        }
43566        return t4;
43567      }, c2.prototype.toJ = function() {
43568        return this.inf ? this.curve.jpoint(null, null, null) : this.curve.jpoint(this.x, this.y, this.curve.one);
43569      }, o(f2, a.BasePoint), u2.prototype.jpoint = function(e4, t4, r4) {
43570        return new f2(this, e4, t4, r4);
43571      }, f2.prototype.toP = function() {
43572        if (this.isInfinity())
43573          return this.curve.point(null, null);
43574        var e4 = this.z.redInvm(), t4 = e4.redSqr(), r4 = this.x.redMul(t4), n3 = this.y.redMul(t4).redMul(e4);
43575        return this.curve.point(r4, n3);
43576      }, f2.prototype.neg = function() {
43577        return this.curve.jpoint(this.x, this.y.redNeg(), this.z);
43578      }, f2.prototype.add = function(e4) {
43579        if (this.isInfinity())
43580          return e4;
43581        if (e4.isInfinity())
43582          return this;
43583        var t4 = e4.z.redSqr(), r4 = this.z.redSqr(), n3 = this.x.redMul(t4), i2 = e4.x.redMul(r4), o2 = this.y.redMul(t4.redMul(e4.z)), a2 = e4.y.redMul(r4.redMul(this.z)), s2 = n3.redSub(i2), u3 = o2.redSub(a2);
43584        if (0 === s2.cmpn(0))
43585          return 0 !== u3.cmpn(0) ? this.curve.jpoint(null, null, null) : this.dbl();
43586        var c3 = s2.redSqr(), f3 = c3.redMul(s2), d2 = n3.redMul(c3), l2 = u3.redSqr().redIAdd(f3).redISub(d2).redISub(d2), h2 = u3.redMul(d2.redISub(l2)).redISub(o2.redMul(f3)), p2 = this.z.redMul(e4.z).redMul(s2);
43587        return this.curve.jpoint(l2, h2, p2);
43588      }, f2.prototype.mixedAdd = function(e4) {
43589        if (this.isInfinity())
43590          return e4.toJ();
43591        if (e4.isInfinity())
43592          return this;
43593        var t4 = this.z.redSqr(), r4 = this.x, n3 = e4.x.redMul(t4), i2 = this.y, o2 = e4.y.redMul(t4).redMul(this.z), a2 = r4.redSub(n3), s2 = i2.redSub(o2);
43594        if (0 === a2.cmpn(0))
43595          return 0 !== s2.cmpn(0) ? this.curve.jpoint(null, null, null) : this.dbl();
43596        var u3 = a2.redSqr(), c3 = u3.redMul(a2), f3 = r4.redMul(u3), d2 = s2.redSqr().redIAdd(c3).redISub(f3).redISub(f3), l2 = s2.redMul(f3.redISub(d2)).redISub(i2.redMul(c3)), h2 = this.z.redMul(a2);
43597        return this.curve.jpoint(d2, l2, h2);
43598      }, f2.prototype.dblp = function(e4) {
43599        if (0 === e4)
43600          return this;
43601        if (this.isInfinity())
43602          return this;
43603        if (!e4)
43604          return this.dbl();
43605        var t4;
43606        if (this.curve.zeroA || this.curve.threeA) {
43607          var r4 = this;
43608          for (t4 = 0; t4 < e4; t4++)
43609            r4 = r4.dbl();
43610          return r4;
43611        }
43612        var n3 = this.curve.a, i2 = this.curve.tinv, o2 = this.x, a2 = this.y, s2 = this.z, u3 = s2.redSqr().redSqr(), c3 = a2.redAdd(a2);
43613        for (t4 = 0; t4 < e4; t4++) {
43614          var f3 = o2.redSqr(), d2 = c3.redSqr(), l2 = d2.redSqr(), h2 = f3.redAdd(f3).redIAdd(f3).redIAdd(n3.redMul(u3)), p2 = o2.redMul(d2), b2 = h2.redSqr().redISub(p2.redAdd(p2)), y2 = p2.redISub(b2), m2 = h2.redMul(y2);
43615          m2 = m2.redIAdd(m2).redISub(l2);
43616          var v2 = c3.redMul(s2);
43617          t4 + 1 < e4 && (u3 = u3.redMul(l2)), o2 = b2, s2 = v2, c3 = m2;
43618        }
43619        return this.curve.jpoint(o2, c3.redMul(i2), s2);
43620      }, f2.prototype.dbl = function() {
43621        return this.isInfinity() ? this : this.curve.zeroA ? this._zeroDbl() : this.curve.threeA ? this._threeDbl() : this._dbl();
43622      }, f2.prototype._zeroDbl = function() {
43623        var e4, t4, r4;
43624        if (this.zOne) {
43625          var n3 = this.x.redSqr(), i2 = this.y.redSqr(), o2 = i2.redSqr(), a2 = this.x.redAdd(i2).redSqr().redISub(n3).redISub(o2);
43626          a2 = a2.redIAdd(a2);
43627          var s2 = n3.redAdd(n3).redIAdd(n3), u3 = s2.redSqr().redISub(a2).redISub(a2), c3 = o2.redIAdd(o2);
43628          c3 = (c3 = c3.redIAdd(c3)).redIAdd(c3), e4 = u3, t4 = s2.redMul(a2.redISub(u3)).redISub(c3), r4 = this.y.redAdd(this.y);
43629        } else {
43630          var f3 = this.x.redSqr(), d2 = this.y.redSqr(), l2 = d2.redSqr(), h2 = this.x.redAdd(d2).redSqr().redISub(f3).redISub(l2);
43631          h2 = h2.redIAdd(h2);
43632          var p2 = f3.redAdd(f3).redIAdd(f3), b2 = p2.redSqr(), y2 = l2.redIAdd(l2);
43633          y2 = (y2 = y2.redIAdd(y2)).redIAdd(y2), e4 = b2.redISub(h2).redISub(h2), t4 = p2.redMul(h2.redISub(e4)).redISub(y2), r4 = (r4 = this.y.redMul(this.z)).redIAdd(r4);
43634        }
43635        return this.curve.jpoint(e4, t4, r4);
43636      }, f2.prototype._threeDbl = function() {
43637        var e4, t4, r4;
43638        if (this.zOne) {
43639          var n3 = this.x.redSqr(), i2 = this.y.redSqr(), o2 = i2.redSqr(), a2 = this.x.redAdd(i2).redSqr().redISub(n3).redISub(o2);
43640          a2 = a2.redIAdd(a2);
43641          var s2 = n3.redAdd(n3).redIAdd(n3).redIAdd(this.curve.a), u3 = s2.redSqr().redISub(a2).redISub(a2);
43642          e4 = u3;
43643          var c3 = o2.redIAdd(o2);
43644          c3 = (c3 = c3.redIAdd(c3)).redIAdd(c3), t4 = s2.redMul(a2.redISub(u3)).redISub(c3), r4 = this.y.redAdd(this.y);
43645        } else {
43646          var f3 = this.z.redSqr(), d2 = this.y.redSqr(), l2 = this.x.redMul(d2), h2 = this.x.redSub(f3).redMul(this.x.redAdd(f3));
43647          h2 = h2.redAdd(h2).redIAdd(h2);
43648          var p2 = l2.redIAdd(l2), b2 = (p2 = p2.redIAdd(p2)).redAdd(p2);
43649          e4 = h2.redSqr().redISub(b2), r4 = this.y.redAdd(this.z).redSqr().redISub(d2).redISub(f3);
43650          var y2 = d2.redSqr();
43651          y2 = (y2 = (y2 = y2.redIAdd(y2)).redIAdd(y2)).redIAdd(y2), t4 = h2.redMul(p2.redISub(e4)).redISub(y2);
43652        }
43653        return this.curve.jpoint(e4, t4, r4);
43654      }, f2.prototype._dbl = function() {
43655        var e4 = this.curve.a, t4 = this.x, r4 = this.y, n3 = this.z, i2 = n3.redSqr().redSqr(), o2 = t4.redSqr(), a2 = r4.redSqr(), s2 = o2.redAdd(o2).redIAdd(o2).redIAdd(e4.redMul(i2)), u3 = t4.redAdd(t4), c3 = (u3 = u3.redIAdd(u3)).redMul(a2), f3 = s2.redSqr().redISub(c3.redAdd(c3)), d2 = c3.redISub(f3), l2 = a2.redSqr();
43656        l2 = (l2 = (l2 = l2.redIAdd(l2)).redIAdd(l2)).redIAdd(l2);
43657        var h2 = s2.redMul(d2).redISub(l2), p2 = r4.redAdd(r4).redMul(n3);
43658        return this.curve.jpoint(f3, h2, p2);
43659      }, f2.prototype.trpl = function() {
43660        if (!this.curve.zeroA)
43661          return this.dbl().add(this);
43662        var e4 = this.x.redSqr(), t4 = this.y.redSqr(), r4 = this.z.redSqr(), n3 = t4.redSqr(), i2 = e4.redAdd(e4).redIAdd(e4), o2 = i2.redSqr(), a2 = this.x.redAdd(t4).redSqr().redISub(e4).redISub(n3), s2 = (a2 = (a2 = (a2 = a2.redIAdd(a2)).redAdd(a2).redIAdd(a2)).redISub(o2)).redSqr(), u3 = n3.redIAdd(n3);
43663        u3 = (u3 = (u3 = u3.redIAdd(u3)).redIAdd(u3)).redIAdd(u3);
43664        var c3 = i2.redIAdd(a2).redSqr().redISub(o2).redISub(s2).redISub(u3), f3 = t4.redMul(c3);
43665        f3 = (f3 = f3.redIAdd(f3)).redIAdd(f3);
43666        var d2 = this.x.redMul(s2).redISub(f3);
43667        d2 = (d2 = d2.redIAdd(d2)).redIAdd(d2);
43668        var l2 = this.y.redMul(c3.redMul(u3.redISub(c3)).redISub(a2.redMul(s2)));
43669        l2 = (l2 = (l2 = l2.redIAdd(l2)).redIAdd(l2)).redIAdd(l2);
43670        var h2 = this.z.redAdd(a2).redSqr().redISub(r4).redISub(s2);
43671        return this.curve.jpoint(d2, l2, h2);
43672      }, f2.prototype.mul = function(e4, t4) {
43673        return e4 = new i(e4, t4), this.curve._wnafMul(this, e4);
43674      }, f2.prototype.eq = function(e4) {
43675        if ("affine" === e4.type)
43676          return this.eq(e4.toJ());
43677        if (this === e4)
43678          return true;
43679        var t4 = this.z.redSqr(), r4 = e4.z.redSqr();
43680        if (0 !== this.x.redMul(r4).redISub(e4.x.redMul(t4)).cmpn(0))
43681          return false;
43682        var n3 = t4.redMul(this.z), i2 = r4.redMul(e4.z);
43683        return 0 === this.y.redMul(i2).redISub(e4.y.redMul(n3)).cmpn(0);
43684      }, f2.prototype.eqXToP = function(e4) {
43685        var t4 = this.z.redSqr(), r4 = e4.toRed(this.curve.red).redMul(t4);
43686        if (0 === this.x.cmp(r4))
43687          return true;
43688        for (var n3 = e4.clone(), i2 = this.curve.redN.redMul(t4); ; ) {
43689          if (n3.iadd(this.curve.n), n3.cmp(this.curve.p) >= 0)
43690            return false;
43691          if (r4.redIAdd(i2), 0 === this.x.cmp(r4))
43692            return true;
43693        }
43694      }, f2.prototype.inspect = function() {
43695        return this.isInfinity() ? "<EC JPoint Infinity>" : "<EC JPoint x: " + this.x.toString(16, 2) + " y: " + this.y.toString(16, 2) + " z: " + this.z.toString(16, 2) + ">";
43696      }, f2.prototype.isInfinity = function() {
43697        return 0 === this.z.cmpn(0);
43698      };
43699    }, 506: (e3, t3, r3) => {
43700      var n2, i = t3, o = r3(7198), a = r3(6063), s = r3(7528).assert;
43701      function u2(e4) {
43702        "short" === e4.type ? this.curve = new a.short(e4) : "edwards" === e4.type ? this.curve = new a.edwards(e4) : this.curve = new a.mont(e4), this.g = this.curve.g, this.n = this.curve.n, this.hash = e4.hash, s(this.g.validate(), "Invalid curve"), s(this.g.mul(this.n).isInfinity(), "Invalid curve, G*N != O");
43703      }
43704      function c2(e4, t4) {
43705        Object.defineProperty(i, e4, { configurable: true, enumerable: true, get: function() {
43706          var r4 = new u2(t4);
43707          return Object.defineProperty(i, e4, { configurable: true, enumerable: true, value: r4 }), r4;
43708        } });
43709      }
43710      i.PresetCurve = u2, c2("p192", { type: "short", prime: "p192", p: "ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff", a: "ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc", b: "64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1", n: "ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831", hash: o.sha256, gRed: false, g: ["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012", "07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"] }), c2("p224", { type: "short", prime: "p224", p: "ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001", a: "ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe", b: "b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4", n: "ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d", hash: o.sha256, gRed: false, g: ["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21", "bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"] }), c2("p256", { type: "short", prime: null, p: "ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff", a: "ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc", b: "5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b", n: "ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551", hash: o.sha256, gRed: false, g: ["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296", "4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"] }), c2("p384", { type: "short", prime: null, p: "ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff", a: "ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc", b: "b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef", n: "ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973", hash: o.sha384, gRed: false, g: ["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7", "3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"] }), c2("p521", { type: "short", prime: null, p: "000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff", a: "000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc", b: "00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00", n: "000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409", hash: o.sha512, gRed: fal
43710se, g: ["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66", "00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"] }), c2("curve25519", { type: "mont", prime: "p25519", p: "7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed", a: "76d06", b: "1", n: "1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed", hash: o.sha256, gRed: false, g: ["9"] }), c2("ed25519", { type: "edwards", prime: "p25519", p: "7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed", a: "-1", c: "1", d: "52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3", n: "1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed", hash: o.sha256, gRed: false, g: ["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a", "6666666666666666666666666666666666666666666666666666666666666658"] });
43711      try {
43712        n2 = r3(6401);
43713      } catch (e4) {
43714        n2 = void 0;
43715      }
43716      c2("secp256k1", { type: "short", prime: "k256", p: "ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f", a: "0", b: "7", n: "ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141", h: "1", hash: o.sha256, beta: "7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee", lambda: "5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72", basis: [{ a: "3086d221a7d46bcde86c90e49284eb15", b: "-e4437ed6010e88286f547fa90abfe4c3" }, { a: "114ca50f7a8e2f3f657c1108d9d44cfd8", b: "3086d221a7d46bcde86c90e49284eb15" }
vendor: 4,690 bytes, lines 43716-43784
43716], gRed: false, g: ["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798", "483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8", n2] });
43717    }, 8320: (e3, t3, r3) => {
43718      var n2 = r3(8847)(r3(3355)), i = r3(1734), o = r3(9410), a = r3(7528), s = r3(506), u2 = r3(2202), c2 = a.assert, f2 = r3(7791), d2 = r3(488);
43719      function l2(e4) {
43720        if (!(this instanceof l2))
43721          return new l2(e4);
43722        "string" == typeof e4 && (c2(Object.prototype.hasOwnProperty.call(s, e4), "Unknown curve " + e4), e4 = s[e4]), e4 instanceof s.PresetCurve && (e4 = { curve: e4 }), this.curve = e4.curve.curve, this.n = this.curve.n, this.nh = this.n.ushrn(1), this.g = this.curve.g, this.g = e4.curve.g, this.g.precompute(e4.curve.n.bitLength() + 1), this.hash = e4.hash || e4.curve.hash;
43723      }
43724      e3.exports = l2, l2.prototype.keyPair = function(e4) {
43725        return new f2(this, e4);
43726      }, l2.prototype.keyFromPrivate = function(e4, t4) {
43727        return f2.fromPrivate(this, e4, t4);
43728      }, l2.prototype.keyFromPublic = function(e4, t4) {
43729        return f2.fromPublic(this, e4, t4);
43730      }, l2.prototype.genKeyPair = function(e4) {
43731        e4 || (e4 = {});
43732        for (var t4 = new o({ hash: this.hash, pers: e4.pers, persEnc: e4.persEnc || "utf8", entropy: e4.entropy || u2(this.hash.hmacStrength), entropyEnc: e4.entropy && e4.entropyEnc || "utf8", nonce: this.n.toArray() }), r4 = this.n.byteLength(), n3 = this.n.sub(new i(2)); ; ) {
43733          var a2 = new i(t4.generate(r4));
43734          if (!(a2.cmp(n3) > 0))
43735            return a2.iaddn(1), this.keyFromPrivate(a2);
43736        }
43737      }, l2.prototype._truncateToN = function(e4, t4) {
43738        var r4 = 8 * e4.byteLength() - this.n.bitLength();
43739        return r4 > 0 && (e4 = e4.ushrn(r4)), !t4 && e4.cmp(this.n) >= 0 ? e4.sub(this.n) : e4;
43740      }, l2.prototype.sign = function(e4, t4, r4, a2) {
43741        "object" === (0, n2.default)(r4) && (a2 = r4, r4 = null), a2 || (a2 = {}), t4 = this.keyFromPrivate(t4, r4), e4 = this._truncateToN(new i(e4, 16));
43742        for (var s2 = this.n.byteLength(), u3 = t4.getPrivate().toArray("be", s2), c3 = e4.toArray("be", s2), f3 = new o({ hash: this.hash, entropy: u3, nonce: c3, pers: a2.pers, persEnc: a2.persEnc || "utf8" }), l3 = this.n.sub(new i(1)), h2 = 0; ; h2++) {
43743          var p2 = a2.k ? a2.k(h2) : new i(f3.generate(this.n.byteLength()));
43744          if (!((p2 = this._truncateToN(p2, true)).cmpn(1) <= 0 || p2.cmp(l3) >= 0)) {
43745            var b2 = this.g.mul(p2);
43746            if (!b2.isInfinity()) {
43747              var y2 = b2.getX(), m2 = y2.umod(this.n);
43748              if (0 !== m2.cmpn(0)) {
43749                var v2 = p2.invm(this.n).mul(m2.mul(t4.getPrivate()).iadd(e4));
43750                if (0 !== (v2 = v2.umod(this.n)).cmpn(0)) {
43751                  var g2 = (b2.getY().isOdd() ? 1 : 0) | (0 !== y2.cmp(m2) ? 2 : 0);
43752                  return a2.canonical && v2.cmp(this.nh) > 0 && (v2 = this.n.sub(v2), g2 ^= 1), new d2({ r: m2, s: v2, recoveryParam: g2 });
43753                }
43754              }
43755            }
43756          }
43757        }
43758      }, l2.prototype.verify = function(e4, t4, r4, n3) {
43759        e4 = this._truncateToN(new i(e4, 16)), r4 = this.keyFromPublic(r4, n3);
43760        var o2 = (t4 = new d2(t4, "hex")).r, a2 = t4.s;
43761        if (o2.cmpn(1) < 0 || o2.cmp(this.n) >= 0)
43762          return false;
43763        if (a2.cmpn(1) < 0 || a2.cmp(this.n) >= 0)
43764          return false;
43765        var s2, u3 = a2.invm(this.n), c3 = u3.mul(e4).umod(this.n), f3 = u3.mul(o2).umod(this.n);
43766        return this.curve._maxwellTrick ? !(s2 = this.g.jmulAdd(c3, r4.getPublic(), f3)).isInfinity() && s2.eqXToP(o2) : !(s2 = this.g.mulAdd(c3, r4.getPublic(), f3)).isInfinity() && 0 === s2.getX().umod(this.n).cmp(o2);
43767      }, l2.prototype.recoverPubKey = function(e4, t4, r4, n3) {
43768        c2((3 & r4) === r4, "The recovery param is more than two bits"), t4 = new d2(t4, n3);
43769        var o2 = this.n, a2 = new i(e4), s2 = t4.r, u3 = t4.s, f3 = 1 & r4, l3 = r4 >> 1;
43770        if (s2.cmp(this.curve.p.umod(this.curve.n)) >= 0 && l3)
43771          throw new Error("Unable to find sencond key candinate");
43772        s2 = l3 ? this.curve.pointFromX(s2.add(this.curve.n), f3) : this.curve.pointFromX(s2, f3);
43773        var h2 = t4.r.invm(o2), p2 = o2.sub(a2).mul(h2).umod(o2), b2 = u3.mul(h2).umod(o2);
43774        return this.g.mulAdd(p2, s2, b2);
43775      }, l2.prototype.getKeyRecoveryParam = function(e4, t4, r4, n3) {
43776        if (null !== (t4 = new d2(t4, n3)).recoveryParam)
43777          return t4.recoveryParam;
43778        for (var i2 = 0; i2 < 4; i2++) {
43779          var o2;
43780          try {
43781            o2 = this.recoverPubKey(e4, t4, i2);
43782          } catch (e5) {
43783            continue;
43784          }
43785          if (o2.eq(r4))
43786            return i2;
43787        }
43788        throw new Error("Unable to find valid recovery factor");
43789      };
43790    }, 7791: (e3, t3, r3) => {
43791      var n2 = r3(1734), i = r3(7528).assert;
43792      function o(e4, t4) {
43793        this.ec = e4, this.priv = null, this.pub = null, t4.priv && this._importPrivate(t4.priv, t4.privEnc), t4.pub && this._importPublic(t4.pub, t4.pubEnc);
43794      }
43795      e3.exports = o, o.fromPublic = function(e4, t4, r4) {
43796        return t4 instanceof o ? t4 : new o(e4, { pub: t4, pubEnc: r4 });
43797      }, o.fromPrivate = function(e4, t4, r4) {
43798        return t4 instanceof o ? t4 : new o(e4, { priv: t4, privEnc: r4 });
43799      }, o.prototype.validate = function() {
43800        var e4 = this.getPublic();
43801        return e4.isInfinity() ? { result: false, reason: "Invalid public key" } : e4.validate() ? e4.mul(this.ec.curve.n).isInfinity() ? { result: true, reason: null } : { result: false, reason: "Public key * N != O" } : { result: false, reason: "Public key is not a point" };
43802      }, o.prototype.getPublic = function(e4, t4) {
43803        return "string" == typeof e4 && (t4 = e4, e4 = null), this.pub || (this.pub = this.ec.g.mul(this.priv)), t4 ? this.pub.encode(t4, e4) : this.pub;
43804      }, o.prototype.getPrivate = function(e4) {
43805        return "hex" === e4 ? this.priv.toString(16, 2) : this.priv;
43806      }, o.prototype._importPrivate = function(e4, t4) {
43807        this.priv = new n2(e4, t4 || 16), this.priv = this.priv.umod(this.ec.curve.n);
43808      }, o.prototype._importPublic = function(e4, t4) {
43809        if (e4.x || e4.y)
43810          return "mont" === this.ec.curve.type ? i(e4.x, "Need x coordinate") : "short" !== this.ec.curve.type && "edwards" !== this.ec.curve.type || i(e4.x && e4.y, "Need both x and y coordinate"), void (this.pub = this.ec.curve.point(e4.x, e4.y));
43811        this.pub = this.ec.curve.decodePoint(e4, t4);
43812      }, o.prototype.derive = function(e4) {
43813        return e4.validate() || i(e4.validate(), "public point not validated"), e4.mul(this.priv).getX();
43814      }, o.prototype.sign = function(e4, t4, r4) {
43815        return this.ec.sign(e4, this, t4, r4);
43816      }, o.prototype.verify = function(e4, t4) {
43817        return this.ec.verify(e4, t4, this);
43818      }, o.prototype.inspect = function() {
43819        return "<Key priv: " + (this.priv && this.priv.toString(16, 2)) + " pub: " + (this.pub && this.pub.inspect()) + " >";
43820      };
43821    }, 488: (e3, t3, r3) => {
43822      var n2 = r3(1734), i = r3(7528), o = i.assert;
43823      function a(e4, t4) {
43824        if (e4 instanceof a)
43825          return e4;
43826        this._importDER(e4, t4) || (o(e4.r && e4.s, "Signature without r or s"), this.r = new n2(e4.r, 16), this.s = new n2(e4.s, 16), void 0 === e4.recoveryParam ? this.recoveryParam = null : this.recoveryParam = e4.recoveryParam);
43827      }
43828      function s() {
43829        this.place = 0;
43830      }
43831      function u2(e4, t4) {
43832        var r4 = e4[t4.place++];
43833        if (!(128 & r4))
43834          return r4;
43835        var n3 = 15 & r4;
43836        if (0 === n3 || n3 > 4)
43837          return false;
43838        for (var i2 = 0, o2 = 0, a2 = t4.place; o2 < n3; o2++, a2++)
43839          i2 <<= 8, i2 |= e4[a2], i2 >>>= 0;
43840        return !(i2 <= 127) && (t4.place = a2, i2);
43841      }
43842      function c2(e4) {
43843        for (var t4 = 0, r4 = e4.length - 1; !e4[t4] && !(128 & e4[t4 + 1]) && t4 < r4; )
43844          t4++;
43845        return 0 === t4 ? e4 : e4.slice(t4);
43846      }
43847      function f2(e4, t4) {
43848        if (t4 < 128)
43849          e4.push(t4);
43850        else {
43851          var r4 = 1 + (Math.log(t4) / Math.LN2 >>> 3);
43852          for (e4.push(128 | r4); --r4; )
43853            e4.push(t4 >>> (r4 << 3) & 255);
43854          e4.push(t4);
43855        }
43856      }
43857      e3.exports = a, a.prototype._importDER = function(e4, t4) {
43858        e4 = i.toArray(e4, t4);
43859        var r4 = new s();
43860        if (48 !== e4[r4.place++])
43861          return false;
43862        var o2 = u2(e4, r4);
43863        if (false === o2)
43864          return false;
43865        if (o2 + r4.place !== e4.length)
43866          return false;
43867        if (2 !== e4[r4.place++])
43868          return false;
43869        var a2 = u2(e4, r4);
43870        if (false === a2)
43871          return false;
43872        var c3 = e4.slice(r4.place, a2 + r4.place);
43873        if (r4.place += a2, 2 !== e4[r4.place++])
43874          return false;
43875        var f3 = u2(e4, r4);
43876        if (false === f3)
43877          return false;
43878        if (e4.length !== f3 + r4.place)
43879          return false;
43880        var d2 = e4.slice(r4.place, f3 + r4.place);
43881        if (0 === c3[0]) {
43882          if (!(128 & c3[1]))
43883            return false;
43884          c3 = c3.slice(1);
43885        }
43886        if (0 === d2[0]) {
43887          if (!(128 & d2[1]))
43888            return false;
43889          d2 = d2.slice(1);
43890        }
43891        return this.r = new n2(c3), this.s = new n2(d2), this.recoveryParam = null, true;
43892      }, a.prototype.toDER = function(e4) {
43893        var t4 = this.r.toArray(), r4 = this.s.toArray();
43894        for (128 & t4[0] && (t4 = [0].concat(t4)), 128 & r4[0] && (r4 = [0].concat(r4)), t4 = c2(t4), r4 = c2(r4); !(r4[0] || 128 & r4[1]); )
43895          r4 = r4.slice(1);
43896        var n3 = [2];
43897        f2(n3, t4.length), (n3 = n3.concat(t4)).push(2), f2(n3, r4.length);
43898        var o2 = n3.concat(r4), a2 = [48];
43899        return f2(a2, o2.length), a2 = a2.concat(o2), i.encode(a2, e4);
43900      };
43901    }, 8027: (e3, t3, r3) => {
43902      var n2 = r3(7198), i = r3(506), o = r3(7528), a = o.assert, s = o.parseBytes, u2 = r3(7303), c2 = r3(6646);
43903      function f2(e4) {
43904        if (a("ed25519" === e4, "only tested with ed25519 so far"), !(this instanceof f2))
43905          return new f2(e4);
43906        e4 = i[e4].curve, this.curve = e4, this.g = e4.g, this.g.precompute(e4.n.bitLength() + 1), this.pointClass = e4.point().constructor, this.encodingLength = Math.ceil(e4.n.bitLength() / 8), this.hash = n2.sha512;
43907      }
43908      e3.exports = f2, f2.prototype.sign = function(e4, t4) {
43909        e4 = s(e4);
43910        var r4 = this.keyFromSecret(t4), n3 = this.hashInt(r4.messagePrefix(), e4), i2 = this.g.mul(n3), o2 = this.encodePoint(i2), a2 = this.hashInt(o2, r4.pubBytes(), e4).mul(r4.priv()), u3 = n3.add(a2).umod(this.curve.n);
43911        return this.makeSignature({ R: i2, S: u3, Rencoded: o2 });
43912      }, f2.prototype.verify = function(e4, t4, r4) {
43913        e4 = s(e4), t4 = this.makeSignature(t4);
43914        var n3 = this.keyFromPublic(r4), i2 = this.hashInt(t4.Rencoded(), n3.pubBytes(), e4), o2 = this.g.mul(t4.S());
43915        return t4.R().add(n3.pub().mul(i2)).eq(o2);
43916      }, f2.prototype.hashInt = function() {
43917        for (var e4 = this.hash(), t4 = 0; t4 < arguments.length; t4++)
43918          e4.update(arguments[t4]);
43919        return o.intFromLE(e4.digest()).umod(this.curve.n);
43920      }, f2.prototype.keyFromPublic = function(e4) {
43921        return u2.fromPublic(this, e4);
43922      }, f2.prototype.keyFromSecret = function(e4) {
43923        return u2.fromSecret(this, e4);
43924      }, f2.prototype.makeSignature = function(e4) {
43925        return e4 instanceof c2 ? e4 : new c2(this, e4);
43926      }, f2.prototype.encodePoint = function(e4) {
43927        var t4 = e4.getY().toArray("le", this.encodingLength);
43928        return t4[this.encodingLength - 1] |= e4.getX().isOdd() ? 128 : 0, t4;
43929      }, f2.prototype.decodePoint = function(e4) {
43930        var t4 = (e4 = o.parseBytes(e4)).length - 1, r4 = e4.slice(0, t4).concat(-129 & e4[t4]), n3 = 0 != (128 & e4[t4]), i2 = o.intFromLE(r4);
43931        return this.curve.pointFromY(i2, n3);
43932      }, f2.prototype.encodeInt = function(e4) {
43933        return e4.toArray("le", this.encodingLength);
43934      }, f2.prototype.decodeInt = function(e4) {
43935        return o.intFromLE(e4);
43936      }, f2.prototype.isPoint = function(e4) {
43937        return e4 instanceof this.pointClass;
43938      };
43939    }, 7303: (e3, t3, r3) => {
43940      var n2 = r3(7528), i = n2.assert, o = n2.parseBytes, a = n2.cachedProperty;
43941      function s(e4, t4) {
43942        this.eddsa = e4, this._secret = o(t4.secret), e4.isPoint(t4.pub) ? this._pub = t4.pub : this._pubBytes = o(t4.pub);
43943      }
43944      s.fromPublic = function(e4, t4) {
43945        return t4 instanceof s ? t4 : new s(e4, { pub: t4 });
43946      }, s.fromSecret = function(e4, t4) {
43947        return t4 instanceof s ? t4 : new s(e4, { secret: t4 });
43948      }, s.prototype.secret = function() {
43949        return this._secret;
43950      }, a(s, "pubBytes", function() {
43951        return this.eddsa.encodePoint(this.pub());
43952      }), a(s, "pub", function() {
43953        return this._pubBytes ? this.eddsa.decodePoint(this._pubBytes) : this.eddsa.g.mul(this.priv());
43954      }), a(s, "privBytes", function() {
43955        var e4 = this.eddsa, t4 = this.hash(), r4 = e4.encodingLength - 1, n3 = t4.slice(0, e4.encodingLength);
43956        return n3[0] &= 248, n3[r4] &= 127, n3[r4] |= 64, n3;
43957      }), a(s, "priv", function() {
43958        return this.eddsa.decodeInt(this.privBytes());
43959      }), a(s, "hash", function() {
43960        return this.eddsa.hash().update(this.secret()).digest();
43961      }), a(s, "messagePrefix", function() {
43962        return this.hash().slice(this.eddsa.encodingLength);
43963      }), s.prototype.sign = function(e4) {
43964        return i(this._secret, "KeyPair can only verify"), this.eddsa.sign(e4, this);
43965      }, s.prototype.verify = function(e4, t4) {
43966        return this.eddsa.verify(e4, t4, this);
43967      }, s.prototype.getSecret = function(e4) {
43968        return i(this._secret, "KeyPair is public only"), n2.encode(this.secret(), e4);
43969      }, s.prototype.getPublic = function(e4) {
43970        return n2.encode(this.pubBytes(), e4);
43971      }, e3.exports = s;
43972    }, 6646: (e3, t3, r3) => {
43973      var n2 = r3(8847)(r3(3355)), i = r3(1734), o = r3(7528), a = o.assert, s = o.cachedProperty, u2 = o.parseBytes;
43974      function c2(e4, t4) {
43975        this.eddsa = e4, "object" !== (0, n2.default)(t4) && (t4 = u2(t4)), Array.isArray(t4) && (t4 = { R: t4.slice(0, e4.encodingLength), S: t4.slice(e4.encodingLength) }), a(t4.R && t4.S, "Signature without R or S"), e4.isPoint(t4.R) && (this._R = t4.R), t4.S instanceof i && (this._S = t4.S), this._Rencoded = Array.isArray(t4.R) ? t4.R : t4.Rencoded, this._Sencoded = Array.isArray(t4.S) ? t4.S : t4.Sencoded;
43976      }
43977      s(c2, "S", function() {
43978        return this.eddsa.decodeInt(this.Sencoded());
43979      }), s(c2, "R", function() {
43980        return this.eddsa.decodePoint(this.Rencoded());
43981      }), s(c2, "Rencoded", function() {
43982        return this.eddsa.encodePoint(this.R());
43983      }), s(c2, "Sencoded", function() {
43984        return this.eddsa.encodeInt(this.S());
43985      }), c2.prototype.toBytes = function() {
43986        return this.Rencoded().concat(this.Sencoded());
43987      }, c2.prototype.toHex = function() {
43988        return o.encode(this.toBytes(), "hex").toUpperCase();
43989      }, e3.exports = c2;
43990    }, 6401: (e3) => {
43991      e3.exports = { doubles: { step: 4, points: [["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a", "f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"], ["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508", "11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"], ["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739", "d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"], ["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640", "4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"], ["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c", "4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"], ["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda", "96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"], ["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa", "5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"], ["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0", "cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"], ["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d", "9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"], ["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d", "e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"], ["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1", "9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"], ["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0", "5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"], ["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047", "10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"], ["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862", "283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"], ["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7", "7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"], ["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd", "56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"], ["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83", "7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"], ["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a", "53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"], ["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8", "bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"], ["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d", "4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"], ["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725", "7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"], ["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754", "4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"], ["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c", "17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"], ["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6", "6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"], ["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39", "c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"], ["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb89
439911", "893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"], ["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b", "febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"], ["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03", "2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"], ["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d", "eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"], ["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070", "7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"], ["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4", "e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"], ["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da", "662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"], ["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11", "1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"], ["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e", "efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"], ["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41", "2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"], ["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef", "67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"], ["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8", "db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"], ["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d", "648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"], ["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96", "35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"], ["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd", "ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"], ["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5", "9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"], ["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266", "40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"], ["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71", "34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"], ["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac", "c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"], ["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751", "1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"], ["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e", "493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"], ["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241", "c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"], ["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3", "be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"], ["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f", "4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"], ["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19", "aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"], ["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be", "b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"], ["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9", "6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"], ["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2", "8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"], ["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13", "7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"], ["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c", "ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"], ["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba", "2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"], ["d2a63a50ae401e56d645a1153b109a8fcca0a43d
43991561fba2dbb51340c9d82b151", "e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"], ["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073", "d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"], ["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458", "38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"], ["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b", "69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"], ["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366", "d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"], ["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa", "40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"], ["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0", "620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"], ["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787", "7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"], ["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e", "ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]] }, naf: { wnd: 7, points: [["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9", "388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"], ["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4", "d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"], ["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc", "6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"], ["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe", "cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"], ["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb", "d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"], ["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8", "ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"], ["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e", "581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"], ["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34", "4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"], ["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c", "85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"], ["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5", "321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"], ["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f", "2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"], ["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714", "73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"], ["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729", "a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"], ["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db", "2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"], ["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4", "e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"], ["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5", "b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"], ["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479", "2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"], ["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d", "80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"], ["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f", "1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"], ["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb", "d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"], ["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9", "eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"], ["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963", "758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"], ["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74", "958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"], ["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530", "e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"], ["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b", "5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"], ["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247", "cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"], ["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1", "cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"], ["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120", "4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"], ["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435", "91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"], ["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18", "673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"], ["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8", "59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"], ["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb", "3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"], ["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f", "55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"], ["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143", "efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"], ["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba", "e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"], ["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45", "f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"], ["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a", "744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"], ["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e", "c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"], ["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8", "e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"], ["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c", "30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"], ["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519", "e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"], ["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab", "100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"], ["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca", "ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"], ["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf", "8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"], ["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610", "68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"], ["733ce80
43991da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4", "f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"], ["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c", "d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"], ["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940", "edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"], ["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980", "a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"], ["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3", "66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"], ["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf", "9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"], ["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63", "4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"], ["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448", "fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"], ["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf", "5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"], ["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5", "8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"], ["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6", "8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"], ["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5", "5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"], ["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99", "f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"], ["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51", "f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"], ["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5", "42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"], ["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5", "204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"], ["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997", "4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"], ["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881", "73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"], ["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5", "39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"], ["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66", "d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"], ["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726", "ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"], ["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede", "6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"], ["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94", "60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"], ["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31", "3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"], ["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51", "b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"], ["a0b1cae06b0
43991a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252", "ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"], ["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5", "cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"], ["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b", "6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"], ["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4", "322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"], ["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f", "6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"], ["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889", "2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"], ["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246", "b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"], ["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984", "998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"], ["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a", "b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"], ["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030", "bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"], ["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197", "6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"], ["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593", "c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"], ["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef", "21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"], ["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38", "60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"], ["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a", "49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"], ["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111", "5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"], ["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502", "7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"], ["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea", "be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"], ["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26", "8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"], ["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986", "39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"], ["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e", "62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"], ["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4", "25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"], ["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda", "ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"], ["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859", "cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"], ["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f", "f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"], ["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c", "6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"], ["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942", "fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"], ["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a", "1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"], ["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80", "5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"], ["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d", "438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"], ["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1", "cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"], ["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63", "c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"], ["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352", "6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"], ["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193", "ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"], ["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00", "9731141d81f
43991c8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"], ["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58", "ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"], ["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7", "d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"], ["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8", "c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"], ["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e", "67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"], ["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d", "cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"], ["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b", "299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"], ["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f", "f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"], ["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6", "462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"], ["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297", "62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"], ["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a", "7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"], ["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c", "ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"], ["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52", "4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"], ["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb", "bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"], ["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065", "bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"], ["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917", "603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"], ["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9", "cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"], ["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3", "553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"], ["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57", "712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"], ["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66", "ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"], ["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8", "9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"], ["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721", "9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"], ["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180", "4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]] } };
43992    }, 7528: (e3, t3, r3) => {
43993      var n2 = t3, i = r3(1734), o = r3(4504), a = r3(6580);
43994      n2.assert = o, n2.toArray = a.toArray, n2.zero2 = a.zero2, n2.toHex = a.toHex, n2.encode = a.encode, n2.getNAF = function(e4, t4, r4) {
43995        var n3 = new Array(Math.max(e4.bitLength(), r4) + 1);
43996        n3.fill(0);
43997        for (var i2 = 1 << t4 + 1, o2 = e4.clone(), a2 = 0; a2 < n3.length; a2++) {
43998          var s, u2 = o2.andln(i2 - 1);
43999          o2.isOdd() ? (s = u2 > (i2 >> 1) - 1 ? (i2 >> 1) - u2 : u2, o2.isubn(s)) : s = 0, n3[a2] = s, o2.iushrn(1);
44000        }
44001        return n3;
44002      }, n2.getJSF = function(e4, t4) {
44003        var r4 = [[], []];
44004        e4 = e4.clone(), t4 = t4.clone();
44005        for (var n3, i2 = 0, o2 = 0; e4.cmpn(-i2) > 0 || t4.cmpn(-o2) > 0; ) {
44006          var a2, s, u2 = e4.andln(3) + i2 & 3, c2 = t4.andln(3) + o2 & 3;
44007          3 === u2 && (u2 = -1), 3 === c2 && (c2 = -1), a2 = 0 == (1 & u2) ? 0 : 3 != (n3 = e4.andln(7) + i2 & 7) && 5 !== n3 || 2 !== c2 ? u2 : -u2, r4[0].push(a2), s = 0 == (1 & c2) ? 0 : 3 != (n3 = t4.andln(7) + o2 & 7) && 5 !== n3 || 2 !== u2 ? c2 : -c2, r4[1].push(s), 2 * i2 === a2 + 1 && (i2 = 1 - i2), 2 * o2 === s + 1 && (o2 = 1 - o2), e4.iushrn(1), t4.iushrn(1);
44008        }
44009        return r4;
44010      }, n2.cachedProperty = function(e4, t4, r4) {
44011        var n3 = "_" + t4;
44012        e4.prototype[t4] = function() {
44013          return void 0 !== this[n3] ? this[n3] : this[n3] = r4.call(this);
44014        };
44015      }, n2.parseBytes = function(e4) {
44016        return "string" == typeof e4 ? n2.toArray(e4, "hex") : e4;
44017      }, n2.intFromLE = function(e4) {
44018        return new i(e4, "hex", "le");
44019      };
44020    }, 6464: (e3, t3, r3) => {
44021      var n2 = r3(8847)(r3(3355)), i = function() {
44022        if ("object" === ("undefined" == typeof self ? "undefined" : (0, n2.default)(self)) && self)
44023          return self;
44024        if ("object" === ("undefined" == typeof window ? "undefined" : (0, n2.default)(window)) && window)
44025          return window;
44026        throw new Error("Unable to resolve global `this`");
44027      };
44028      e3.exports = function() {
44029        if (this)
44030          return this;
44031        if ("object" === ("undefined" == typeof globalThis ? "undefined" : (0, n2.default)(globalThis)) && globalThis)
44032          return globalThis;
44033        try {
44034          Object.defineProperty(Object.prototype, "__global__", { get: function() {
44035            return this;
44036          }, configurable: true });
44037        } catch (e4) {
44038          return i();
44039        }
44040        try {
44041          return __global__ || i();
44042        } finally {
44043          delete Object.prototype.__global__;
44044        }
44045      }();
44046    }, 4258: (e3, t3, r3) => {
44047      var n2, i, o, a = r3(9142), s = r3(8847)(r3(3355));
44048      o = function() {
44049        function e4(e5) {
44050          return "function" == typeof e5;
44051        }
44052        var t4 = Array.isArray ? Array.isArray : function(e5) {
44053          return "[object Array]" === Object.prototype.toString.call(e5);
44054        }, n3 = 0, i2 = void 0, o2 = void 0, u2 = function(e5, t5) {
44055          b2[n3] = e5, b2[n3 + 1] = t5, 2 === (n3 += 2) && (o2 ? o2(y2) : A2());
44056        }, c2 = "undefined" != typeof window ? window : void 0, f2 = c2 || {}, d2 = f2.MutationObserver || f2.WebKitMutationObserver, l2 = "undefined" == typeof self && void 0 !== a && "[object process]" === {}.toString.call(a), h2 = "undefined" != typeof Uint8ClampedArray && "undefined" != typeof importScripts && "undefined" != typeof MessageChannel;
44057        function p2() {
44058          var e5 = setTimeout;
44059          return function() {
44060            return e5(y2, 1);
44061          };
44062        }
44063        var b2 = new Array(1e3);
44064        function y2() {
44065          for (var e5 = 0; e5 < n3; e5 += 2)
44066            (0, b2[e5])(b2[e5 + 1]), b2[e5] = void 0, b2[e5 + 1] = void 0;
44067          n3 = 0;
44068        }
44069        var m2, v2, g2, w2, A2 = void 0;
44070        function k2(e5, t5) {
44071          var r4 = this, n4 = new this.constructor(x2);
44072          void 0 === n4[S2] && j(n4);
44073          var i3 = r4._state;
44074          if (i3) {
44075            var o3 = arguments[i3 - 1];
44076            u2(function() {
44077              return U2(i3, n4, o3, r4._result);
44078            });
44079          } else
44080            I2(r4, n4, e5, t5);
44081          return n4;
44082        }
44083        function _(e5) {
44084          if (e5 && "object" === (0, s.default)(e5) && e5.constructor === this)
44085            return e5;
44086          var t5 = new this(x2);
44087          return O2(t5, e5), t5;
44088        }
44089        l2 ? A2 = function() {
44090          return a.nextTick(y2);
44091        } : d2 ? (v2 = 0, g2 = new d2(y2), w2 = document.createTextNode(""), g2.observe(w2, { characterData: true }), A2 = function() {
44092          w2.data = v2 = ++v2 % 2;
44093        }) : h2 ? ((m2 = new MessageChannel()).port1.onmessage = y2, A2 = function() {
44094          return m2.port2.postMessage(0);
44095        }) : A2 = void 0 === c2 ? function() {
44096          try {
44097            var e5 = Function("return this")().require("vertx");
44098            return void 0 !== (i2 = e5.runOnLoop || e5.runOnContext) ? function() {
44099              i2(y2);
44100            } : p2();
44101          } catch (e6) {
44102            return p2();
44103          }
44104        }() : p2();
44105        var S2 = Math.random().toString(36).substring(2);
44106        function x2() {
44107        }
44108        var E2 = void 0;
44109        function P2(t5, r4, n4) {
44110          r4.constructor === t5.constructor && n4 === k2 && r4.constructor.resolve === _ ? function(e5, t6) {
44111            1 === t6._state ? T2(e5, t6._result) : 2 === t6._state ? C2(e5, t6._result) : I2(t6, void 0, function(t7) {
44112              return O2(e5, t7);
44113            }, function(t7) {
44114              return C2(e5, t7);
44115            });
44116          }(t5, r4) : void 0 === n4 ? T2(t5, r4) : e4(n4) ? function(e5, t6, r5) {
44117            u2(function(e6) {
44118              var n5 = false, i3 = function(r6, i4, o3, a2) {
44119                try {
44120                  r6.call(i4, function(r7) {
44121                    n5 || (n5 = true, t6 !== r7 ? O2(e6, r7) : T2(e6, r7));
44122                  }, function(t7) {
44123                    n5 || (n5 = true, C2(e6, t7));
44124                  });
44125                } catch (e7) {
44126                  return e7;
44127                }
44128              }(r5, t6, 0, 0, e6._label);
44129              !n5 && i3 && (n5 = true, C2(e6, i3));
44130            }, e5);
44131          }(t5, r4, n4) : T2(t5, r4);
44132        }
44133        function O2(e5, t5) {
44134          if (e5 === t5)
44135            C2(e5, new TypeError("You cannot resolve a promise with itself"));
44136          else if (n4 = t5, i3 = (0, s.default)(n4), null === n4 || "object" !== i3 && "function" !== i3)
44137            T2(e5, t5);
44138          else {
44139            var r4 = void 0;
44140            try {
44141              r4 = t5.then;
44142            } catch (t6) {
44143              return void C2(e5, t6);
44144            }
44145            P2(e5, t5, r4);
44146          }
44147          var n4, i3;
44148        }
44149        function B2(e5) {
44150          e5._onerror && e5._onerror(e5._result), M2(e5);
44151        }
44152        function T2(e5, t5) {
44153          e5._state === E2 && (e5._result = t5, e5._state = 1, 0 !== e5._subscribers.length && u2(M2, e5));
44154        }
44155        function C2(e5, t5) {
44156          e5._state === E2 && (e5._state = 2, e5._result = t5, u2(B2, e5));
44157        }
44158        function I2(e5, t5, r4, n4) {
44159          var i3 = e5._subscribers, o3 = i3.length;
44160          e5._onerror = null, i3[o3] = t5, i3[o3 + 1] = r4, i3[o3 + 2] = n4, 0 === o3 && e5._state && u2(M2, e5);
44161        }
44162        function M2(e5) {
44163          var t5 = e5._subscribers, r4 = e5._state;
44164          if (0 !== t5.length) {
44165            for (var n4 = void 0, i3 = void 0, o3 = e5._result, a2 = 0; a2 < t5.length; a2 += 3)
44166              n4 = t5[a2], i3 = t5[a2 + r4], n4 ? U2(r4, n4, i3, o3) : i3(o3);
44167            e5._subscribers.length = 0;
44168          }
44169        }
44170        function U2(t5, r4, n4, i3) {
44171          var o3 = e4(n4), a2 = void 0, s2 = void 0, u3 = true;
44172          if (o3) {
44173            try {
44174              a2 = n4(i3);
44175            } catch (e5) {
44176              u3 = false, s2 = e5;
44177            }
44178            if (r4 === a2)
44179              return void C2(r4, new TypeError("A promises callback cannot return that same promise."));
44180          } else
44181            a2 = i3;
44182          r4._state !== E2 || (o3 && u3 ? O2(r4, a2) : false === u3 ? C2(r4, s2) : 1 === t5 ? T2(r4, a2) : 2 === t5 && C2(r4, a2));
44183        }
44184        var R2 = 0;
44185        function j(e5) {
44186          e5[S2] = R2++, e5._state = void 0, e5._result = void 0, e5._subscribers = [];
44187        }
44188        var N2 = function() {
44189          function e5(e6, r4) {
44190            this._instanceConstructor = e6, this.promise = new e6(x2), this.promise[S2] || j(this.promise), t4(r4) ? (this.length = r4.length, this._remaining = r4.length, this._result = new Array(this.length), 0 === this.length ? T2(this.promise, this._result) : (this.length = this.length || 0, this._enumerate(r4), 0 === this._remaining && T2(this.promise, this._result))) : C2(this.promise, new Error("Array Methods must be provided an Array"));
44191          }
44192          return e5.prototype._enumerate = function(e6) {
44193            for (var t5 = 0; this._state === E2 && t5 < e6.length; t5++)
44194              this._eachEntry(e6[t5], t5);
44195          }, e5.prototype._eachEntry = function(e6, t5) {
44196            var r4 = this._instanceConstructor, n4 = r4.resolve;
44197            if (n4 === _) {
44198              var i3 = void 0, o3 = void 0, a2 = false;
44199              try {
44200                i3 = e6.then;
44201              } catch (e7) {
44202                a2 = true, o3 = e7;
44203              }
44204              if (i3 === k2 && e6._state !== E2)
44205                this._settledAt(e6._state, t5, e6._result);
44206              else if ("function" != typeof i3)
44207                this._remaining--, this._result[t5] = e6;
44208              else if (r4 === F2) {
44209                var s2 = new r4(x2);
44210                a2 ? C2(s2, o3) : P2(s2, e6, i3), this._willSettleAt(s2, t5);
44211              } else
44212                this._willSettleAt(new r4(function(t6) {
44213                  return t6(e6);
44214                }), t5);
44215            } else
44216              this._willSettleAt(n4(e6), t5);
44217          }, e5.prototype._settledAt = function(e6, t5, r4) {
44218            var n4 = this.promise;
44219            n4._state === E2 && (this._remaining--, 2 === e6 ? C2(n4, r4) : this._result[t5] = r4), 0 === this._remaining && T2(n4, this._result);
44220          }, e5.prototype._willSettleAt = function(e6, t5) {
44221            var r4 = this;
44222            I2(e6, void 0, function(e7) {
44223              return r4._settledAt(1, t5, e7);
44224            }, function(e7) {
44225              return r4._settledAt(2, t5, e7);
44226            });
44227          }, e5;
44228        }(), F2 = function() {
44229          function t5(e5) {
44230            this[S2] = R2++, this._result = this._state = void 0, this._subscribers = [], x2 !== e5 && ("function" != typeof e5 && function() {
44231              throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");
44232            }(), this instanceof t5 ? function(e6, t6) {
44233              try {
44234                t6(function(t7) {
44235                  O2(e6, t7);
44236                }, function(t7) {
44237                  C2(e6, t7);
44238                });
44239              } catch (t7) {
44240                C2(e6, t7);
44241              }
44242            }(this, e5) : function() {
44243              throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object c
44243onstructor cannot be called as a function.");
44244            }());
44245          }
44246          return t5.prototype.catch = function(e5) {
44247            return this.then(null, e5);
44248          }, t5.prototype.finally = function(t6) {
44249            var r4 = this, n4 = r4.constructor;
44250            return e4(t6) ? r4.then(function(e5) {
44251              return n4.resolve(t6()).then(function() {
44252                return e5;
44253              });
44254            }, function(e5) {
44255              return n4.resolve(t6()).then(function() {
44256                throw e5;
44257              });
44258            }) : r4.then(t6, t6);
44259          }, t5;
44260        }();
44261        return F2.prototype.then = k2, F2.all = function(e5) {
44262          return new N2(this, e5).promise;
44263        }, F2.race = function(e5) {
44264          var r4 = this;
44265          return t4(e5) ? new r4(function(t5, n4) {
44266            for (var i3 = e5.length, o3 = 0; o3 < i3; o3++)
44267              r4.resolve(e5[o3]).then(t5, n4);
44268          }) : new r4(function(e6, t5) {
44269            return t5(new TypeError("You must pass an array to race."));
44270          });
44271        }, F2.resolve = _, F2.reject = function(e5) {
44272          var t5 = new this(x2);
44273          return C2(t5, e5), t5;
44274        }, F2._setScheduler = function(e5) {
44275          o2 = e5;
44276        }, F2._setAsap = function(e5) {
44277          u2 = e5;
44278        }, F2._asap = u2, F2.polyfill = function() {
44279          var e5 = void 0;
44280          if (void 0 !== r3.g)
44281            e5 = r3.g;
44282          else if ("undefined" != typeof self)
44283            e5 = self;
44284          else
44285            try {
44286              e5 = Function("return this")();
44287            } catch (e6) {
44288              throw new Error("polyfill failed because global object is unavailable in this environment");
44289            }
44290          var t5 = e5.Promise;
44291          if (t5) {
44292            var n4 = null;
44293            try {
44294              n4 = Object.prototype.toString.call(t5.resolve());
44295            } catch (e6) {
44296            }
44297            if ("[object Promise]" === n4 && !t5.cast)
44298              return;
44299          }
44300          e5.Promise = F2;
44301        }, F2.Promise = F2, F2;
44302      }, "object" === (0, s.default)(t3) ? e3.exports = o() : void 0 === (i = "function" == typeof (n2 = o) ? n2.call(t3, r3, t3, e3) : n2) || (e3.exports = i);
44303    }, 1006: (e3, t3, r3) => {
44304      var n2 = r3(9033).Buffer, i = r3(4858).keccak_256, o = r3(3956);
44305      function a(e4) {
44306        return e4 ? o.toUnicode(e4, { useStd3ASCII: true, transitional: false }) : e4;
44307      }
44308      t3.hash = function(e4) {
44309        for (var t4 = "", r4 = 0; r4 < 32; r4++)
44310          t4 += "00";
44311        if (name = a(e4), name) {
44312          var o2 = name.split(".");
44313          for (r4 = o2.length - 1; r4 >= 0; r4--) {
44314            var s = i(o2[r4]);
44315            t4 = i(new n2(t4 + s, "hex"));
44316          }
44317        }
44318        return "0x" + t4;
44319      }, t3.normalize = a;
44320    }, 3058: (e3, t3, r3) => {
44321      var n2 = r3(9033).Buffer, i = r3(8847)(r3(4519)), o = r3(6851), a = r3(9733), s = r3(6597), u2 = (r3(6740), new s.ec("secp256k1")), c2 = r3(2922), f2 = c2.keccak256, d2 = c2.keccak256s, l2 = function(e4) {
44322        for (var t4 = d2(e4.slice(2)), r4 = "0x", n3 = 0; n3 < 40; n3++)
44323          r4 += parseInt(t4[n3 + 2], 16) > 7 ? e4[n3 + 2].toUpperCase() : e4[n3 + 2];
44324        return r4;
44325      }, h2 = function(e4) {
44326        var t4 = new n2(e4.slice(2), "hex"), r4 = "0x" + u2.keyFromPrivate(t4).getPublic(false, "hex").slice(2), i2 = f2(r4);
44327        return { address: l2("0x" + i2.slice(-40)), privateKey: e4 };
44328      }, p2 = function(e4) {
44329        var t4 = (0, i.default)(e4, 3), r4 = t4[0], n3 = t4[1], a2 = t4[2];
44330        return o.flatten([n3, a2, r4]);
44331      }, b2 = function(e4) {
44332        return [o.slice(64, o.length(e4), e4), o.slice(0, 32, e4), o.slice(32, 64, e4)];
44333      }, y2 = function(e4) {
44334        return function(t4, r4) {
44335          var i2 = u2.keyFromPrivate(new n2(r4.slice(2), "hex")).sign(new n2(t4.slice(2), "hex"), { canonical: true });
44336          return p2([a.fromString(o.fromNumber(e4 + i2.recoveryParam)), o.pad(32, o.fromNat("0x" + i2.r.toString(16))), o.pad(32, o.fromNat("0x" + i2.s.toString(16)))]);
44337        };
44338      }, m2 = y2(27);
44339      e3.exports = { create: function(e4) {
44340        var t4 = f2(o.concat(o.random(32), e4 || o.random(32))), r4 = o.concat(o.concat(o.random(32), t4), o.random(32)), n3 = f2(r4);
44341        return h2(n3);
44342      }, toChecksum: l2, fromPrivate: h2, sign: m2, makeSigner: y2, recover: function(e4, t4) {
44343        var r4 = b2(t4), i2 = { v: o.toNumber(r4[0]), r: r4[1].slice(2), s: r4[2].slice(2) }, a2 = "0x" + u2.recoverPubKey(new n2(e4.slice(2), "hex"), i2, i2.v < 2 ? i2.v : 1 - i2.v % 2).encode("hex", false).slice(2), s2 = f2(a2);
44344        return l2("0x" + s2.slice(-40));
44345      }, encodeSignature: p2, decodeSignature: b2 };
44346    }, 1376: (e3) => {
44347      var t3 = function(e4, t4) {
44348        for (var r3 = [], n2 = 0; n2 < e4; ++n2)
44349          r3.push(t4(n2));
44350        return r3;
44351      };
44352      e3.exports = { generate: t3, replicate: function(e4, r3) {
44353        return t3(e4, function() {
44354          return r3;
44355        });
44356      }, concat: function(e4, t4) {
44357        return e4.concat(t4);
44358      }, flatten: function(e4) {
44359        for (var t4 = [], r3 = 0, n2 = e4.length; r3 < n2; ++r3)
44360          for (var i = 0, o = e4[r3].length; i < o; ++i)
44361            t4.push(e4[r3][i]);
44362        return t4;
44363      }, chunksOf: function(e4, t4) {
44364        for (var r3 = [], n2 = 0, i = t4.length; n2 < i; n2 += e4)
44365          r3.push(t4.slice(n2, n2 + e4));
44366        return r3;
44367      } };
44368    }, 6851: (e3, t3, r3) => {
44369      r3(1376);
44370      var n2 = function(e4, t4) {
44371        return parseInt(e4.slice(2 * t4 + 2, 2 * t4 + 4), 16);
44372      }, i = function(e4) {
44373        return (e4.length - 2) / 2;
44374      }, o = function(e4) {
44375        for (var t4 = [], r4 = 2, n3 = e4.length; r4 < n3; r4 += 2)
44376          t4.push(parseInt(e4.slice(r4, r4 + 2), 16));
44377        return t4;
44378      }, a = function(e4) {
44379        for (var t4 = "0x", r4 = 0, n3 = e4.length; r4 < n3; ++r4) {
44380          var i2 = e4[r4];
44381          t4 += (i2 < 16 ? "0" : "") + i2.toString(16);
44382        }
44383        return t4;
44384      };
44385      e3.exports = { random: function(e4) {
44386        var t4;
44387        t4 = "undefined" != typeof window && window.crypto && window.crypto.getRandomValues ? window.crypto.getRandomValues(new Uint8Array(e4)) : r3(4293).randomBytes(e4);
44388        for (var n3 = "0x", i2 = 0; i2 < e4; ++i2)
44389          n3 += ("00" + t4[i2].toString(16)).slice(-2);
44390        return n3;
44391      }, length: i, concat: function(e4, t4) {
44392        return e4.concat(t4.slice(2));
44393      }, flatten: function(e4) {
44394        return "0x" + e4.reduce(function(e5, t4) {
44395          return e5 + t4.slice(2);
44396        }, "");
44397      }, slice: function(e4, t4, r4) {
44398        return "0x" + r4.slice(2 * e4 + 2, 2 * t4 + 2);
44399      }, reverse: function(e4) {
44400        for (var t4 = "0x", r4 = 0, n3 = i(e4); r4 < n3; ++r4)
44401          t4 += e4.slice(2 * (n3 - r4), 2 * (n3 - r4 + 1));
44402        return t4;
44403      }, pad: function e4(t4, r4) {
44404        return r4.length === 2 * t4 + 2 ? r4 : e4(t4, "0x0" + r4.slice(2));
44405      }, padRight: function e4(t4, r4) {
44406        return r4.length === 2 * t4 + 2 ? r4 : e4(t4, r4 + "0");
44407      }, fromAscii: function(e4) {
44408        for (var t4 = "0x", r4 = 0; r4 < e4.length; ++r4)
44409          t4 += ("00" + e4.charCodeAt(r4).toString(16)).slice(-2);
44410        return t4;
44411      }, toAscii: function(e4) {
44412        for (var t4 = "", r4 = 2; r4 < e4.length; r4 += 2)
44413          t4 += String.fromCharCode(parseInt(e4.slice(r4, r4 + 2), 16));
44414        return t4;
44415      }, fromString: function(e4) {
44416        for (var t4 = function(e5) {
44417          var t5 = e5.toString(16);
44418          return t5.length < 2 ? "0" + t5 : t5;
44419        }, r4 = "0x", n3 = 0; n3 != e4.length; n3++) {
44420          var i2 = e4.charCodeAt(n3);
44421          if (i2 < 128)
44422            r4 += t4(i2);
44423          else {
44424            if (i2 < 2048)
44425              r4 += t4(i2 >> 6 | 192);
44426            else {
44427              if (i2 > 55295 && i2 < 56320) {
44428                if (++n3 == e4.length)
44429                  return null;
44430                var o2 = e4.charCodeAt(n3);
44431                if (o2 < 56320 || o2 > 57343)
44432                  return null;
44433                r4 += t4((i2 = 65536 + ((1023 & i2) << 10) + (1023 & o2)) >> 18 | 240), r4 += t4(i2 >> 12 & 63 | 128);
44434              } else
44435                r4 += t4(i2 >> 12 | 224);
44436              r4 += t4(i2 >> 6 & 63 | 128);
44437            }
44438            r4 += t4(63 & i2 | 128);
44439          }
44440        }
44441        return r4;
44442      }, toString: function(e4) {
44443        for (var t4 = "", r4 = 0, o2 = i(e4); r4 < o2; ) {
44444          var a2 = n2(e4, r4++);
44445          if (a2 > 127) {
44446            if (a2 > 191 && a2 < 224) {
44447              if (r4 >= o2)
44448                return null;
44449              a2 = (31 & a2) << 6 | 63 & n2(e4, r4);
44450            } else if (a2 > 223 && a2 < 240) {
44451              if (r4 + 1 >= o2)
44452                return null;
44453              a2 = (15 & a2) << 12 | (63 & n2(e4, r4)) << 6 | 63 & n2(e4, ++r4);
44454            } else {
44455              if (!(a2 > 239 && a2 < 248))
44456                return null;
44457              if (r4 + 2 >= o2)
44458                return null;
44459              a2 = (7 & a2) << 18 | (63 & n2(e4, r4)) << 12 | (63 & n2(e4, ++r4)) << 6 | 63 & n2(e4, ++r4);
44460            }
44461            ++r4;
44462          }
44463          if (a2 <= 65535)
44464            t4 += String.fromCharCode(a2);
44465          else {
44466            if (!(a2 <= 1114111))
44467              return null;
44468            a2 -= 65536, t4 += String.fromCharCode(a2 >> 10 | 55296), t4 += String.fromCharCode(1023 & a2 | 56320);
44469          }
44470        }
44471        return t4;
44472      }, fromNumber: function(e4) {
44473        var t4 = e4.toString(16);
44474        return t4.length % 2 == 0 ? "0x" + t4 : "0x0" + t4;
44475      }, toNumber: function(e4) {
44476        return parseInt(e4.slice(2), 16);
44477      }, fromNat: function(e4) {
44478        return "0x0" === e4 ? "0x" : e4.length % 2 == 0 ? e4 : "0x0" + e4.slice(2);
44479      }, toNat: function(e4) {
44480        return "0" === e4[2] ? "0x" + e4.slice(3) : e4;
44481      }, fromArray: a, toArray: o, fromUint8Array: function(e4) {
44482        return a([].slice.call(e4, 0));
44483      }, toUint8Array: function(e4) {
44484        return new Uint8Array(o(e4));
44485      } };
44486    }, 2922: (e3) => {
44487      var t3 = "0123456789abcdef".split(""), r3 = [1, 256, 65536, 16777216], n2 = [0, 8, 16, 24], i = [1, 0, 32898, 0, 32906, 2147483648, 2147516416, 2147483648, 32907, 0, 2147483649, 0, 2147516545, 2147483648, 32777, 2147483648, 138, 0, 136, 0, 2147516425, 0, 2147483658, 0, 2147516555, 0, 139, 2147483648, 32905, 2147483648, 32771, 2147483648, 32770, 2147483648, 128, 2147483648, 32778, 0, 2147483658, 2147483648, 2147516545, 2147483648, 32896, 2147483648, 2147483649, 0, 2147516424, 2147483648], o = function(e4) {
44488        var t4, r4, n3, o2, a2, s, u2, c2, f2, d2, l2, h2, p2, b2, y2, m2, v2, g2, w2, A2, k2, _, S2, x2, E2, P2, O2, B2, T2, C2, I2, M2, U2, R2, j, N2, F2, L2, D2, H2, q2, z2, G2, K2, V2, J2, W2, Y2, X2, Q2, Z2, $, ee2, te2, re2, ne2, ie2, oe2, ae2, se2, ue2, ce2, fe2;
44489        for (n3 = 0; n3 < 48; n3 += 2)
44490          o2 = e4[0] ^ e4[10] ^ e4[20] ^ e4[30] ^ e4[40], a2 = e4[1] ^ e4[11] ^ e4[21] ^ e4[31] ^ e4[41], s = e4[2] ^ e4[12] ^ e4[22] ^ e4[32] ^ e4[42], u2 = e4[3] ^ e4[13] ^ e4[23] ^ e4[33] ^ e4[43], c2 = e4[4] ^ e4[14] ^ e4[24] ^ e4[34] ^ e4[44], f2 = e4[5] ^ e4[15] ^ e4[25] ^ e4[35] ^ e4[45], d2 = e4[6] ^ e4[16] ^ e4[26] ^ e4[36] ^ e4[46], l2 = e4[7] ^ e4[17] ^ e4[27] ^ e4[37] ^ e4[47], t4 = (h2 = e4[8] ^ e4[18] ^ e4[28] ^ e4[38] ^ e4[48]) ^ (s << 1 | u2 >>> 31), r4 = (p2 = e4[9] ^ e4[19] ^ e4[29] ^ e4[39] ^ e4[49]) ^ (u2 << 1 | s >>> 31), e4[0] ^= t4, e4[1] ^= r4, e4[10] ^= t4, e4[11] ^= r4, e4[20] ^= t4, e4[21] ^= r4, e4[30] ^= t4, e4[31] ^= r4, e4[40] ^= t4, e4[41] ^= r4, t4 = o2 ^ (c2 << 1 | f2 >>> 31), r4 = a2 ^ (f2 << 1 | c2 >>> 31), e4[2] ^= t4, e4[3] ^= r4, e4[12] ^= t4, e4[13] ^= r4, e4[22] ^= t4, e4[23] ^= r4, e4[32] ^= t4, e4[33] ^= r4, e4[42] ^= t4, e4[43] ^= r4, t4 = s ^ (d2 << 1 | l2 >>> 31), r4 = u2 ^ (l2 << 1 | d2 >>> 31), e4[4] ^= t4, e4[5] ^= r4, e4[14] ^= t4, e4[15] ^= r4, e4[24] ^= t4, e4[25] ^= r4, e4[34] ^= t4, e4[35] ^= r4, e4[44] ^= t4, e4[45] ^= r4, t4 = c2 ^ (h2 << 1 | p2 >>> 31), r4 = f2 ^ (p2 << 1 | h2 >>> 31), e4[6] ^= t4, e4[7] ^= r4, e4[16] ^= t4, e4[17] ^= r4, e4[26] ^= t4, e4[27] ^= r4, e4[36] ^= t4, e4[37] ^= r4, e4[46] ^= t4, e4[47] ^= r4, t4 = d2 ^ (o2 << 1 | a2 >>> 31), r4 = l2 ^ (a2 << 1 | o2 >>> 31), e4[8] ^= t4, e4[9] ^= r4, e4[18] ^= t4, e4[19] ^= r4, e4[28] ^= t4, e4[29] ^= r4, e4[38] ^= t4, e4[39] ^= r4, e4[48] ^= t4, e4[49] ^= r4, b2 = e4[0], y2 = e4[1], J2 = e4[11] << 4 | e4[10] >>> 28, W2 = e4[10] << 4 | e4[11] >>> 28, B2 = e4[20] << 3 | e4[21] >>> 29, T2 = e4[21] << 3 | e4[20] >>> 29, se2 = e4[31] << 9 | e4[30] >>> 23, ue2 = e4[30] << 9 | e4[31] >>> 23, z2 = e4[40] << 18 | e4[41] >>> 14, G2 = e4[41] << 18 | e4[40] >>> 14, R2 = e4[2] << 1 | e4[3] >>> 31, j = e4[3] << 1 | e4[2] >>> 31, m2 = e4[13] << 12 | e4[12] >>> 20, v2 = e4[12] << 12 | e4[13] >>> 20, Y2 = e4[22] << 10 | e4[23] >>> 22, X2 = e4[23] << 10 | e4[22] >>> 22, C2 = e4[33] << 13 | e4[32] >>> 19, I2 = e4[32] << 13 | e4[33] >>> 19, ce2 = e4[42] << 2 | e4[43] >>> 30, fe2 = e4[43] << 2 | e4[42] >>> 30, te2 = e4[5] << 30 | e4[4] >>> 2, re2 = e4[4] << 30 | e4[5] >>> 2, N2 = e4[14] << 6 | e4[15] >>> 26, F2 = e4[15] << 6 | e4[14] >>> 26, g2 = e4[25] << 11 | e4[24] >>> 21, w2 = e4[24] << 11 | e4[25] >>> 21, Q2 = e4[34] << 15 | e4[35] >>> 17, Z2 = e4[35] << 15 | e4[34] >>> 17, M2 = e4[45] << 29 | e4[44] >>> 3, U2 = e4[44] << 29 | e4[45] >>> 3, x2 = e4[6] << 28 | e4[7] >>> 4, E2 = e4[7] << 28 | e4[6] >>> 4, ne2 = e4[17] << 23 | e4[16] >>> 9, ie2 = e4[16] << 23 | e4[17] >>> 9, L2 = e4[26] << 25 | e4[27] >>> 7, D2 = e4[27] << 25 | e4[26] >>> 7, A2 = e4[36] << 21 | e4[37] >>> 11, k2 = e4[37] << 21 | e4[36] >>> 11, $ = e4[47] << 24 | e4[46] >>> 8, ee2 = e4[46] << 24 | e4[47] >>> 8, K2 = e4[8] << 27 | e4[9] >>> 5, V2 = e4[9] << 27 | e4[8] >>> 5, P2 = e4[18] << 20 | e4[19] >>> 12, O2 = e4[19] << 20 | e4[18] >>> 12, oe2 = e4[29] << 7 | e4[28] >>> 25, ae2 = e4[28] << 7 | e4[29] >>> 25, H2 = e4[38] << 8 | e4[39] >>> 24, q2 = e4[39] << 8 | e4[38] >>> 24, _ = e4[48] << 14 | e4[49] >>> 18, S2 = e4[49] << 14 | e4[48] >>> 18, e4[0] = b2 ^ ~m2 & g2, e4[1] = y2 ^ ~v2 & w2, e4[10] = x2 ^ ~P2 & B2, e4[11] = E2 ^ ~O2 & T2, e4[20] = R2 ^ ~N2 & L2, e4[21] = j ^ ~F2 & D2, e4[30] = K2 ^ ~J2 & Y2, e4[31] = V2 ^ ~W2 & X2, e4[40] = te2 ^ ~ne2 & oe2, e4[41] = re2 ^ ~ie2 & ae2, e4[2] = m2 ^ ~g2 & A2, e4[3] = v2 ^ ~w2 & k2, e4[12] = P2 ^ ~B2 & C2, e4[13] = O2 ^ ~T2 & I2, e4[22] = N2 ^ ~L2 & H2, e4[23] = F2 ^ ~D2 & q2, e4[32] = J2 ^ ~Y2 & Q2, e4[33] = W2 ^ ~X2 & Z2, e4[42] = ne2 ^ ~oe2 & se2, e4[43] = ie2 ^ ~ae2 & ue2, e4[4] = g2 ^ ~A2 & _, e4[5] = w2 ^ ~k2 & S2, e4[14] = B2 ^ ~C2 & M2, e4[15] = T2 ^ ~I2 & U2, e4[24] = L2 ^ ~H2 & z2, e4[25] = D2 ^ ~q2 & G2, e4[34] = Y2 ^ ~Q2 & $, e4[35] = X2 ^ ~Z2 & ee2, e4[44] = oe2 ^ ~se2 & ce2, e4[45] = ae2 ^ ~ue2 & fe2, e4[6] = A2 ^ ~_ & b2, e4[7] = k2 ^ ~S2 & y2, e4[16] = C2 ^ ~M2 & x2, e4[17] = I2 ^ ~U2 & E2, e4[26] = H2 ^ ~z2 & R2, e4[27] = q2 ^ ~G2 & j, e4[36] = Q2 ^ ~$ & K2, e4[37] = Z2 ^ ~ee2 & V2, e4[46] = se2 ^ ~ce2 & te2, e4[47] = ue2 ^ ~fe2 & re2, e4[8] = _ ^ ~b2 & m2, e4[9] = S2 ^ ~y2 & v2, e4[18] = M2 ^ ~x2 & P2, e4[19] = U2 ^ ~E2 & O2, e4[28] = z2 ^ ~R2 & N2, e4[29] = G2 ^ ~j & F2, e4[38] = $ ^ ~K2 & J2, e4[39] = ee2 ^ ~V2 & W2, e4[48] = ce2 ^ ~te2 & ne2, e4[49] = fe2 ^ ~re2 & ie2, e4[0] ^= i[n3], e4[1] ^= i[n3 + 1];
44491      }, a = function(e4) {
44492        return function(i2) {
44493          var a2;
44494          if ("0x" === i2.slice(0, 2)) {
44495            a2 = [];
44496            for (var s = 2, u2 = i2.length; s < u2; s += 2)
44497              a2.push(parseInt(i2.slice(s, s + 2), 16));
44498          } else
44499            a2 = i2;
44500          return function(e5, i3) {
44501            for (var a3, s2 = i3.length, u3 = e5.blocks, c2 = e5.blockCount << 2, f2 = e5.blockCount, d2 = e5.outputBlocks, l2 = e5.s, h2 = 0; h2 < s2; ) {
44502              if (e5.reset)
44503                for (e5.reset = false, u3[0] = e5.block, y2 = 1; y2 < f2 + 1; ++y2)
44504                  u3[y2] = 0;
44505              if ("string" != typeof i3)
44506                for (y2 = e5.start; h2 < s2 && y2 < c2; ++h2)
44507                  u3[y2 >> 2] |= i3[h2] << n2[3 & y2++];
44508              else
44509                for (y2 = e5.start; h2 < s2 && y2 < c2; ++h2)
44510                  (a3 = i3.charCodeAt(h2)) < 128 ? u3[y2 >> 2] |= a3 << n2[3 & y2++] : a3 < 2048 ? (u3[y2 >> 2] |= (192 | a3 >> 6) << n2[3 & y2++], u3[y2 >> 2] |= (128 | 63 & a3) << n2[3 & y2++]) : a3 < 55296 || a3 >= 57344 ? (u3[y2 >> 2] |= (224 | a3 >> 12) << n2[3 & y2++], u3[y2 >> 2] |= (128 | a3 >> 6 & 63) << n2[3 & y2++], u3[y2 >> 2] |= (128 | 63 & a3) << n2[3 & y2++]) : (a3 = 65536 + ((1023 & a3) << 10 | 1023 & i3.charCodeAt(++h2)), u3[y2 >> 2] |= (240 | a3 >> 18) << n2[3 & y2++], u3[y2 >> 2] |= (128 | a3 >> 12 & 63) << n2[3 & y2++], u3[y2 >> 2] |= (128 | a3 >> 6 & 63) << n2[3 & y2++], u3[y2 >> 2] |= (128 | 63 & a3) << n2[3 & y2++]);
44511              if (e5.lastByteIndex = y2, y2 >= c2) {
44512                for (e5.start = y2 - c2, e5.block = u3[f2], y2 = 0; y2 < f2; ++y2)
44513                  l2[y2] ^= u3[y2];
44514                o(l2), e5.reset = true;
44515              } else
44516                e5.start = y2;
44517            }
44518            if (u3[(y2 = e5.lastByteIndex) >> 2] |= r3[3 & y2], e5.lastByteIndex === c2)
44519              for (u3[0] = u3[f2], y2 = 1; y2 < f2 + 1; ++y2)
44520                u3[y2] = 0;
44521            for (u3[f2 - 1] |= 2147483648, y2 = 0; y2 < f2; ++y2)
44522              l2[y2] ^= u3[y2];
44523            o(l2);
44524            for (var p2, b2 = "", y2 = 0, m2 = 0; m2 < d2; ) {
44525              for (y2 = 0; y2 < f2 && m2 < d2; ++y2, ++m2)
44526                p2 = l2[y2], b2 += t3[p2 >> 4 & 15] + t3[15 & p2] + t3[p2 >> 12 & 15] + t3[p2 >> 8 & 15] + t3[p2 >> 20 & 15] + t3[p2 >> 16 & 15] + t3[p2 >> 28 & 15] + t3[p2 >> 24 & 15];
44527              m2 % f2 == 0 && (o(l2), y2 = 0);
44528            }
44529            return "0x" + b2;
44530          }(function(e5) {
44531            return { blocks: [], reset: true, block: 0, start: 0, blockCount: 1600 - (e5 << 1) >> 5, outputBlocks: e5 >> 5, s: (t4 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [].concat(t4, t4, t4, t4, t4)) };
44532            var t4;
44533          }(e4), a2);
44534        };
44535      };
44536      e3.exports = { keccak256: a(256), keccak512: a(512), keccak256s: a(256), keccak512s: a(512) };
44537    }, 9733: (e3, t3, r3) => {
44538      var n2 = r3(1734), i = r3(6851), o = function(e4) {
44539        return new n2(e4.slice(2), 16);
44540      }, a = function(e4) {
44541        var t4 = "0x" + ("0x" === e4.slice(0, 2) ? new n2(e4.slice(2), 16) : new n2(e4, 10)).toString("hex");
44542        return "0x0" === t4 ? "0x" : t4;
44543      }, s = function(e4) {
44544        return "string" == typeof e4 ? /^0x/.test(e4) ? e4 : "0x" + e4 : "0x" + new n2(e4).toString("hex");
44545      }, u2 = function(e4) {
44546        return o(e4).toNumber();
44547      }, c2 = function(e4) {
44548        return function(t4, r4) {
44549          return "0x" + o(t4)[e4](o(r4)).toString("hex");
44550        };
44551      }, f2 = c2("add"), d2 = c2("mul"), l2 = c2("div"), h2 = c2("sub");
44552      e3.exports = { toString: function(e4) {
44553        return o(e4).toString(10);
44554      }, fromString: a, toNumber: u2, fromNumber: s, toEther: function(e4) {
44555        return u2(l2(e4, a("10000000000"))) / 1e8;
44556      }, fromEther: function(e4) {
44557        return d2(s(Math.floor(1e8 * e4)), a("10000000000"));
44558      }, toUint256: function(e4) {
44559        return i.pad(32, e4);
44560      }, add: f2, mul: d2, div: l2, sub: h2 };
44561    }, 6740: (e3) => {
44562      e3.exports = { encode: function(e4) {
44563        var t3 = function(e5) {
44564          return (t4 = e5.toString(16)).length % 2 == 0 ? t4 : "0" + t4;
44565          var t4;
44566        }, r3 = function(e5, r4) {
44567          return e5 < 56 ? t3(r4 + e5) : t3(r4 + t3(e5).length / 2 + 55) + t3(e5);
44568        };
44569        return "0x" + function e5(t4) {
44570          if ("string" == typeof t4) {
44571            var n2 = t4.slice(2);
44572            return (2 != n2.length || n2 >= "80" ? r3(n2.length / 2, 128) : "") + n2;
44573          }
44574          var i = t4.map(e5).join("");
44575          return r3(i.length / 2, 192) + i;
44576        }(e4);
44577      }, decode: function(e4) {
44578        var t3 = 2, r3 = function() {
44579          if (t3 >= e4.length)
44580            throw "";
44581          var r4 = e4.slice(t3, t3 + 2);
44582          return r4 < "80" ? (t3 += 2, "0x" + r4) : r4 < "c0" ? i() : o();
44583        }, n2 = function() {
44584          var r4 = parseInt(e4.slice(t3, t3 += 2), 16) % 64;
44585          return r4 < 56 ? r4 : parseInt(e4.slice(t3, t3 += 2 * (r4 - 55)), 16);
44586        }, i = function() {
44587          var r4 = n2();
44588          return "0x" + e4.slice(t3, t3 += 2 * r4);
44589        }, o = function() {
44590          for (var e5 = 2 * n2() + t3, i2 = []; t3 < e5; )
44591            i2.push(r3());
44592          return i2;
44593        };
44594        try {
44595          return r3();
44596        } catch (e5) {
44597          return [];
44598        }
44599      } };
44600    }, 9313: (e3, t3, r3) => {
44601      var n2 = r3(8847)(r3(3355));
44602      Object.defineProperty(t3, "__esModule", { value: true });
44603      var i = r3(8179);
44604      function o(e4) {
44605        return !("string" != typeof e4 || !/^(0x)?[0-9a-f]{512}$/i.test(e4) || !/^(0x)?[0-9a-f]{512}$/.test(e4) && !/^(0x)?[0-9A-F]{512}$/.test(e4));
44606      }
44607      function a(e4, t4) {
44608        "object" === (0, n2.default)(t4) && t4.constructor === Uint8Array && (t4 = i.bytesToHex(t4));
44609        for (var r4 = i.keccak256(t4).replace("0x", ""), o2 = 0; o2 < 12; o2 += 4) {
44610          var a2 = (parseInt(r4.substr(o2, 2), 16) << 8) + parseInt(r4.substr(o2 + 2, 2), 16) & 2047, u3 = 1 << a2 % 4;
44611          if ((s(e4.charCodeAt(e4.length - 1 - Math.floor(a2 / 4))) & u3) !== u3)
44612            return false;
44613        }
44614        return true;
44615      }
44616      function s(e4) {
44617        if (e4 >= 48 && e4 <= 57)
44618          return e4 - 48;
44619        if (e4 >= 65 && e4 <= 70)
44620          return e4 - 55;
44621        if (e4 >= 97 && e4 <= 102)
44622          return e4 - 87;
44623        throw new Error("invalid bloom");
44624      }
44625      function u2(e4) {
44626        return !("string" != typeof e4 || !/^(0x)?[0-9a-f]{64}$/i.test(e4) || !/^(0x)?[0-9a-f]{64}$/.test(e4) && !/^(0x)?[0-9A-F]{64}$/.test(e4));
44627      }
44628      function c2(e4) {
44629        return !("string" != typeof e4 || !e4.match(/^(0x)?[0-9a-fA-F]{40}$/) && !e4.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/));
44630      }
44631      t3.isBloom = o, t3.isInBloom = a, t3.isUserEthereumAddressInBloom = function(e4, t4) {
44632        if (!o(e4))
44633          throw new Error("Invalid bloom given");
44634        if (!c2(t4))
44635          throw new Error('Invalid ethereum address given: "'.concat(t4, '"'));
44636        return a(e4, i.padLeft(t4, 64));
44637      }, t3.isContractAddressInBloom = function(e4, t4) {
44638        if (!o(e4))
44639          throw new Error("Invalid bloom given");
44640        if (!c2(t4))
44641          throw new Error('Invalid contract address given: "'.concat(t4, '"'));
44642        return a(e4, t4);
44643      }, t3.isTopicInBloom = function(e4, t4) {
44644        if (!o(e4))
44645          throw new Error("Invalid bloom given");
44646        if (!u2(t4))
44647          throw new Error("Invalid topic");
44648        return a(e4, t4);
44649      }, t3.isTopic = u2, t3.isAddress = c2;
44650    }, 8179: (e3, t3, r3) => {
44651      Object.defineProperty(t3, "__esModule", { value: true });
44652      var n2 = r3(7286);
44653      function i(e4) {
44654        if (null == e4)
44655          throw new Error("cannot convert null value to array");
44656        if ("string" == typeof e4) {
44657          var t4 = e4.match(/^(0x)?[0-9a-fA-F]*$/);
44658          if (!t4)
44659            throw new Error("invalid hexidecimal string");
44660          if ("0x" !== t4[1])
44661            throw new Error("hex string must have 0x prefix");
44662          (e4 = e4.substring(2)).length % 2 && (e4 = "0" + e4);
44663          for (var r4 = [], n3 = 0; n3 < e4.length; n3 += 2)
44664            r4.push(parseInt(e4.substr(n3, 2), 16));
44665          return o(new Uint8Array(r4));
44666        }
44667        if (function(e5) {
44668          if (!e5 || parseInt(String(e5.length)) != e5.length || "string" == typeof e5)
44669            return false;
44670          for (var t5 = 0; t5 < e5.length; t5++) {
44671            var r5 = e5[t5];
44672            if (r5 < 0 || r5 >= 256 || parseInt(String(r5)) != r5)
44673              return false;
44674          }
44675          return true;
44676        }(e4))
44677          return o(new Uint8Array(e4));
44678        throw new Error("invalid arrayify value");
44679      }
44680      function o(e4) {
44681        var t4 = arguments;
44682        return void 0 !== e4.slice || (e4.slice = function() {
44683          var r4 = Array.prototype.slice.call(t4);
44684          return o(new Uint8Array(Array.prototype.slice.apply(e4, r4)));
44685        }), e4;
44686      }
44687      t3.keccak256 = function(e4) {
44688        return "0x" + n2.keccak_256(i(e4));
44689      }, t3.padLeft = function(e4, t4) {
44690        var r4 = /^0x/i.test(e4) || "number" == typeof e4, n3 = t4 - (e4 = e4.toString().replace(/^0x/i, "")).length + 1 >= 0 ? t4 - e4.length + 1 : 0;
44691        return (r4 ? "0x" : "") + new Array(n3).join("0") + e4;
44692      }, t3.bytesToHex = function(e4) {
44693        for (var t4 = [], r4 = 0; r4 < e4.length; r4++)
44694          t4.push((e4[r4] >>> 4).toString(16)), t4.push((15 & e4[r4]).toString(16));
44695        return "0x".concat(t4.join("").replace(/^0+/, ""));
44696      }, t3.toByteArray = i;
44697    }, 7286: (e3, t3, r3) => {
44698      e3 = r3.nmd(e3);
44699      var n2, i = r3(9142), o = r3(8847)(r3(3355));
44700      !function() {
44701        var a = "input is invalid type", s = "object" === ("undefined" == typeof window ? "undefined" : (0, o.default)(window)), u2 = s ? window : {};
44702        u2.JS_SHA3_NO_WINDOW && (s = false);
44703        var c2 = !s && "object" === ("undefined" == typeof self ? "undefined" : (0, o.default)(self));
44704        !u2.JS_SHA3_NO_NODE_JS && "object" === (void 0 === i ? "undefined" : (0, o.default)(i)) && i.versions && i.versions.node ? u2 = r3.g : c2 && (u2 = self);
44705        var f2 = !u2.JS_SHA3_NO_COMMON_JS && "object" === (0, o.default)(e3) && e3.exports, d2 = r3.amdO, l2 = !u2.JS_SHA3_NO_ARRAY_BUFFER && "undefined" != typeof ArrayBuffer, h2 = "0123456789abcdef".split(""), p2 = [4, 1024, 262144, 67108864], b2 = [0, 8, 16, 24], y2 = [1, 0, 32898, 0, 32906, 2147483648, 2147516416, 2147483648, 32907, 0, 2147483649, 0, 2147516545, 2147483648, 32777, 2147483648, 138, 0, 136, 0, 2147516425, 0, 2147483658, 0, 2147516555, 0, 139, 2147483648, 32905, 2147483648, 32771, 2147483648, 32770, 2147483648, 128, 2147483648, 32778, 0, 2147483658, 2147483648, 2147516545, 2147483648, 32896, 2147483648, 2147483649, 0, 2147516424, 2147483648], m2 = [224, 256, 384, 512], v2 = [128, 256], g2 = ["hex", "buffer", "arrayBuffer", "array", "digest"], w2 = { 128: 168, 256: 136 };
44706        !u2.JS_SHA3_NO_NODE_JS && Array.isArray || (Array.isArray = function(e4) {
44707          return "[object Array]" === Object.prototype.toString.call(e4);
44708        }), !l2 || !u2.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW && ArrayBuffer.isView || (ArrayBuffer.isView = function(e4) {
44709          return "object" === (0, o.default)(e4) && e4.buffer && e4.buffer.constructor === ArrayBuffer;
44710        });
44711        for (var A2 = function(e4, t4, r4) {
44712          return function(n3) {
44713            return new j(e4, t4, e4).update(n3)[r4]();
44714          };
44715        }, k2 = function(e4, t4, r4) {
44716          return function(n3, i2) {
44717            return new j(e4, t4, i2).update(n3)[r4]();
44718          };
44719        }, _ = function(e4, t4, r4) {
44720          return function(t5, n3, i2, o2) {
44721            return O2["cshake" + e4].update(t5, n3, i2, o2)[r4]();
44722          };
44723        }, S2 = function(e4, t4, r4) {
44724          return function(t5, n3, i2, o2) {
44725            return O2["kmac" + e4].update(t5, n3, i2, o2)[r4]();
44726          };
44727        }, x2 = function(e4, t4, r4, n3) {
44728          for (var i2 = 0; i2 < g2.length; ++i2) {
44729            var o2 = g2[i2];
44730            e4[o2] = t4(r4, n3, o2);
44731          }
44732          return e4;
44733        }, E2 = function(e4, t4) {
44734          var r4 = A2(e4, t4, "hex");
44735          return r4.create = function() {
44736            return new j(e4, t4, e4);
44737          }, r4.update = function(e5) {
44738            return r4.create().update(e5);
44739          }, x2(r4, A2, e4, t4);
44740        }, P2 = [{ name: "keccak", padding: [1, 256, 65536, 16777216], bits: m2, createMethod: E2 }, { name: "sha3", padding: [6, 1536, 393216, 100663296], bits: m2, createMethod: E2 }, { name: "shake", padding: [31, 7936, 2031616, 520093696], bits: v2, createMethod: function(e4, t4) {
44741          var r4 = k2(e4, t4, "hex");
44742          return r4.create = function(r5) {
44743            return new j(e4, t4, r5);
44744          }, r4.update = function(e5, t5) {
44745            return r4.create(t5).update(e5);
44746          }, x2(r4, k2, e4, t4);
44747        } }, { name: "cshake", padding: p2, bits: v2, createMethod: function(e4, t4) {
44748          var r4 = w2[e4], n3 = _(e4, 0, "hex");
44749          return n3.create = function(n4, i2, o2) {
44750            return i2 || o2 ? new j(e4, t4, n4).bytepad([i2, o2], r4) : O2["shake" + e4].create(n4);
44751          }, n3.update = function(e5, t5, r5, i2) {
44752            return n3.create(t5, r5, i2).update(e5);
44753          }, x2(n3, _, e4, t4);
44754        } }, { name: "kmac", padding: p2, bits: v2, createMethod: function(e4, t4) {
44755          var r4 = w2[e4], n3 = S2(e4, 0, "hex");
44756          return n3.create = function(n4, i2, o2) {
44757            return new N2(e4, t4, i2).bytepad(["KMAC", o2], r4).bytepad([n4], r4);
44758          }, n3.update = function(e5, t5, r5, i2) {
44759            return n3.create(e5, r5, i2).update(t5);
44760          }, x2(n3, S2, e4, t4);
44761        } }], O2 = {}, B2 = [], T2 = 0; T2 < P2.length; ++T2)
44762          for (var C2 = P2[T2], I2 = C2.bits, M2 = 0; M2 < I2.length; ++M2) {
44763            var U2 = C2.name + "_" + I2[M2];
44764            if (B2.push(U2), O2[U2] = C2.createMethod(I2[M2], C2.padding), "sha3" !== C2.name) {
44765              var R2 = C2.name + I2[M2];
44766              B2.push(R2), O2[R2] = O2[U2];
44767            }
44768          }
44769        function j(e4, t4, r4) {
44770          this.blocks = [], this.s = [], this.padding = t4, this.outputBits = r4, this.reset = true, this.finalized = false, this.block = 0, this.start = 0, this.blockCount = 1600 - (e4 << 1) >> 5, this.byteCount = this.blockCount << 2, this.outputBlocks = r4 >> 5, this.extraBytes = (31 & r4) >> 3;
44771          for (var n3 = 0; n3 < 50; ++n3)
44772            this.s[n3] = 0;
44773        }
44774        function N2(e4, t4, r4) {
44775          j.call(this, e4, t4, r4);
44776        }
44777        j.prototype.update = function(e4) {
44778          if (this.finalized)
44779            throw new Error("finalize already called");
44780          var t4, r4 = (0, o.default)(e4);
44781          if ("string" !== r4) {
44782            if ("object" !== r4)
44783              throw new Error(a);
44784            if (null === e4)
44785              throw new Error(a);
44786            if (l2 && e4.constructor === ArrayBuffer)
44787              e4 = new Uint8Array(e4);
44788            else if (!(Array.isArray(e4) || l2 && ArrayBuffer.isView(e4)))
44789              throw new Error(a);
44790            t4 = true;
44791          }
44792          for (var n3, i2, s2 = this.blocks, u3 = this.byteCount, c3 = e4.length, f3 = this.blockCount, d3 = 0, h3 = this.s; d3 < c3; ) {
44793            if (this.reset)
44794              for (this.reset = false, s2[0] = this.block, n3 = 1; n3 < f3 + 1; ++n3)
44795                s2[n3] = 0;
44796            if (t4)
44797              for (n3 = this.start; d3 < c3 && n3 < u3; ++d3)
44798                s2[n3 >> 2] |= e4[d3] << b2[3 & n3++];
44799            else
44800              for (n3 = this.start; d3 < c3 && n3 < u3; ++d3)
44801                (i2 = e4.charCodeAt(d3)) < 128 ? s2[n3 >> 2] |= i2 << b2[3 & n3++] : i2 < 2048 ? (s2[n3 >> 2] |= (192 | i2 >> 6) << b2[3 & n3++], s2[n3 >> 2] |= (128 | 63 & i2) << b2[3 & n3++]) : i2 < 55296 || i2 >= 57344 ? (s2[n3 >> 2] |= (224 | i2 >> 12) << b2[3 & n3++], s2[n3 >> 2] |= (128 | i2 >> 6 & 63) << b2[3 & n3++], s2[n3 >> 2] |= (128 | 63 & i2) << b2[3 & n3++]) : (i2 = 65536 + ((1023 & i2) << 10 | 1023 & e4.charCodeAt(++d3)), s2[n3 >> 2] |= (240 | i2 >> 18) << b2[3 & n3++], s2[n3 >> 2] |= (128 | i2 >> 12 & 63) << b2[3 & n3++], s2[n3 >> 2] |= (128 | i2 >> 6 & 63) << b2[3 & n3++], s2[n3 >> 2] |= (128 | 63 & i2) << b2[3 & n3++]);
44802            if (this.lastByteIndex = n3, n3 >= u3) {
44803              for (this.start = n3 - u3, this.block = s2[f3], n3 = 0; n3 < f3; ++n3)
44804                h3[n3] ^= s2[n3];
44805              F2(h3), this.reset = true;
44806            } else
44807              this.start = n3;
44808          }
44809          return this;
44810        }, j.prototype.encode = function(e4, t4) {
44811          var r4 = 255 & e4, n3 = 1, i2 = [r4];
44812          for (r4 = 255 & (e4 >>= 8); r4 > 0; )
44813            i2.unshift(r4), r4 = 255 & (e4 >>= 8), ++n3;
44814          return t4 ? i2.push(n3) : i2.unshift(n3), this.update(i2), i2.length;
44815        }, j.prototype.encodeString = function(e4) {
44816          var t4, r4 = (0, o.default)(e4);
44817          if ("string" !== r4) {
44818            if ("object" !== r4)
44819              throw new Error(a);
44820            if (null === e4)
44821              throw new Error(a);
44822            if (l2 && e4.constructor === ArrayBuffer)
44823              e4 = new Uint8Array(e4);
44824            else if (!(Array.isArray(e4) || l2 && ArrayBuffer.isView(e4)))
44825              throw new Error(a);
44826            t4 = true;
44827          }
44828          var n3 = 0, i2 = e4.length;
44829          if (t4)
44830            n3 = i2;
44831          else
44832            for (var s2 = 0; s2 < e4.length; ++s2) {
44833              var u3 = e4.charCodeAt(s2);
44834              u3 < 128 ? n3 += 1 : u3 < 2048 ? n3 += 2 : u3 < 55296 || u3 >= 57344 ? n3 += 3 : (u3 = 65536 + ((1023 & u3) << 10 | 1023 & e4.charCodeAt(++s2)), n3 += 4);
44835            }
44836          return n3 += this.encode(8 * n3), this.update(e4), n3;
44837        }, j.prototype.bytepad = function(e4, t4) {
44838          for (var r4 = this.encode(t4), n3 = 0; n3 < e4.length; ++n3)
44839            r4 += this.encodeString(e4[n3]);
44840          var i2 = t4 - r4 % t4, o2 = [];
44841          return o2.length = i2, this.update(o2), this;
44842        }, j.prototype.finalize = function() {
44843          if (!this.finalized) {
44844            this.finalized = true;
44845            var e4 = this.blocks, t4 = this.lastByteIndex, r4 = this.blockCount, n3 = this.s;
44846            if (e4[t4 >> 2] |= this.padding[3 & t4], this.lastByteIndex === this.byteCount)
44847              for (e4[0] = e4[r4], t4 = 1; t4 < r4 + 1; ++t4)
44848                e4[t4] = 0;
44849            for (e4[r4 - 1] |= 2147483648, t4 = 0; t4 < r4; ++t4)
44850              n3[t4] ^= e4[t4];
44851            F2(n3);
44852          }
44853        }, j.prototype.toString = j.prototype.hex = function() {
44854          this.finalize();
44855          for (var e4, t4 = this.blockCount, r4 = this.s, n3 = this.outputBlocks, i2 = this.extraBytes, o2 = 0, a2 = 0, s2 = ""; a2 < n3; ) {
44856            for (o2 = 0; o2 < t4 && a2 < n3; ++o2, ++a2)
44857              e4 = r4[o2], s2 += h2[e4 >> 4 & 15] + h2[15 & e4] + h2[e4 >> 12 & 15] + h2[e4 >> 8 & 15] + h2[e4 >> 20 & 15] + h2[e4 >> 16 & 15] + h2[e4 >> 28 & 15] + h2[e4 >> 24 & 15];
44858            a2 % t4 == 0 && (F2(r4), o2 = 0);
44859          }
44860          return i2 && (e4 = r4[o2], s2 += h2[e4 >> 4 & 15] + h2[15 & e4], i2 > 1 && (s2 += h2[e4 >> 12 & 15] + h2[e4 >> 8 & 15]), i2 > 2 && (s2 += h2[e4 >> 20 & 15] + h2[e4 >> 16 & 15])), s2;
44861        }, j.prototype.arrayBuffer = function() {
44862          this.finalize();
44863          var e4, t4 = this.blockCount, r4 = this.s, n3 = this.outputBlocks, i2 = this.extraBytes, o2 = 0, a2 = 0, s2 = this.outputBits >> 3;
44864          e4 = i2 ? new ArrayBuffer(n3 + 1 << 2) : new ArrayBuffer(s2);
44865          for (var u3 = new Uint32Array(e4); a2 < n3; ) {
44866            for (o2 = 0; o2 < t4 && a2 < n3; ++o2, ++a2)
44867              u3[a2] = r4[o2];
44868            a2 % t4 == 0 && F2(r4);
44869          }
44870          return i2 && (u3[o2] = r4[o2], e4 = e4.slice(0, s2)), e4;
44871        }, j.prototype.buffer = j.prototype.arrayBuffer, j.prototype.digest = j.prototype.array = function() {
44872          this.finalize();
44873          for (var e4, t4, r4 = this.blockCount, n3 = this.s, i2 = this.outputBlocks, o2 = this.extraBytes, a2 = 0, s2 = 0, u3 = []; s2 < i2; ) {
44874            for (a2 = 0; a2 < r4 && s2 < i2; ++a2, ++s2)
44875              e4 = s2 << 2, t4 = n3[a2], u3[e4] = 255 & t4, u3[e4 + 1] = t4 >> 8 & 255, u3[e4 + 2] = t4 >> 16 & 255, u3[e4 + 3] = t4 >> 24 & 255;
44876            s2 % r4 == 0 && F2(n3);
44877          }
44878          return o2 && (e4 = s2 << 2, t4 = n3[a2], u3[e4] = 255 & t4, o2 > 1 && (u3[e4 + 1] = t4 >> 8 & 255), o2 > 2 && (u3[e4 + 2] = t4 >> 16 & 255)), u3;
44879        }, N2.prototype = new j(), N2.prototype.finalize = function() {
44880          return this.encode(this.outputBits, true), j.prototype.finalize.call(this);
44881        };
44882        var F2 = function(e4) {
44883          var t4, r4, n3, i2, o2, a2, s2, u3, c3, f3, d3, l3, h3, p3, b3, m3, v3, g3, w3, A3, k3, _2, S3, x3, E3, P3, O3, B3, T3, C3, I3, M3, U3, R3, j2, N3, F3, L2, D2, H2, q2, z2, G2, K2, V2, J2, W2, Y2, X2, Q2, Z2, $, ee2, te2, re2, ne2, ie2, oe2, ae2, se2, ue2, ce2, fe2;
44884          for (n3 = 0; n3 < 48; n3 += 2)
44885            i2 = e4[0] ^ e4[10] ^ e4[20] ^ e4[30] ^ e4[40], o2 = e4[1] ^ e4[11] ^ e4[21] ^ e4[31] ^ e4[41], a2 = e4[2] ^ e4[12] ^ e4[22] ^ e4[32] ^ e4[42], s2 = e4[3] ^ e4[13] ^ e4[23] ^ e4[33] ^ e4[43], u3 = e4[4] ^ e4[14] ^ e4[24] ^ e4[34] ^ e4[44], c3 = e4[5] ^ e4[15] ^ e4[25] ^ e4[35] ^ e4[45], f3 = e4[6] ^ e4[16] ^ e4[26] ^ e4[36] ^ e4[46], d3 = e4[7] ^ e4[17] ^ e4[27] ^ e4[37] ^ e4[47], t4 = (l3 = e4[8] ^ e4[18] ^ e4[28] ^ e4[38] ^ e4[48]) ^ (a2 << 1 | s2 >>> 31), r4 = (h3 = e4[9] ^ e4[19] ^ e4[29] ^ e4[39] ^ e4[49]) ^ (s2 << 1 | a2 >>> 31), e4[0] ^= t4, e4[1] ^= r4, e4[10] ^= t4, e4[11] ^= r4, e4[20] ^= t4, e4[21] ^= r4, e4[30] ^= t4, e4[31] ^= r4, e4[40] ^= t4, e4[41] ^= r4, t4 = i2 ^ (u3 << 1 | c3 >>> 31), r4 = o2 ^ (c3 << 1 | u3 >>> 31), e4[2] ^= t4, e4[3] ^= r4, e4[12] ^= t4, e4[13] ^= r4, e4[22] ^= t4, e4[23] ^= r4, e4[32] ^= t4, e4[33] ^= r4, e4[42] ^= t4, e4[43] ^= r4, t4 = a2 ^ (f3 << 1 | d3 >>>
44885 31), r4 = s2 ^ (d3 << 1 | f3 >>> 31), e4[4] ^= t4, e4[5] ^= r4, e4[14] ^= t4, e4[15] ^= r4, e4[24] ^= t4, e4[25] ^= r4, e4[34] ^= t4, e4[35] ^= r4, e4[44] ^= t4, e4[45] ^= r4, t4 = u3 ^ (l3 << 1 | h3 >>> 31), r4 = c3 ^ (h3 << 1 | l3 >>> 31), e4[6] ^= t4, e4[7] ^= r4, e4[16] ^= t4, e4[17] ^= r4, e4[26] ^= t4, e4[27] ^= r4, e4[36] ^= t4, e4[37] ^= r4, e4[46] ^= t4, e4[47] ^= r4, t4 = f3 ^ (i2 << 1 | o2 >>> 31), r4 = d3 ^ (o2 << 1 | i2 >>> 31), e4[8] ^= t4, e4[9] ^= r4, e4[18] ^= t4, e4[19] ^= r4, e4[28] ^= t4, e4[29] ^= r4, e4[38] ^= t4, e4[39] ^= r4, e4[48] ^= t4, e4[49] ^= r4, p3 = e4[0], b3 = e4[1], J2 = e4[11] << 4 | e4[10] >>> 28, W2 = e4[10] << 4 | e4[11] >>> 28, B3 = e4[20] << 3 | e4[21] >>> 29, T3 = e4[21] << 3 | e4[20] >>> 29, se2 = e4[31] << 9 | e4[30] >>> 23, ue2 = e4[30] << 9 | e4[31] >>> 23, z2 = e4[40] << 18 | e4[41] >>> 14, G2 = e4[41] << 18 | e4[40] >>> 14, R3 = e4[2] << 1 | e4[3] >>> 31, j2 = e4[3] << 1 | e4[2] >>> 31, m3 = e4[13] << 12 | e4[12] >>> 20, v3 = e4[12] << 12 | e4[13] >>> 20, Y2 = e4[22] << 10 | e4[23] >>> 22, X2 = e4[23] << 10 | e4[22] >>> 22, C3 = e4[33] << 13 | e4[32] >>> 19, I3 = e4[32] << 13 | e4[33] >>> 19, ce2 = e4[42] << 2 | e4[43] >>> 30, fe2 = e4[43] << 2 | e4[42] >>> 30, te2 = e4[5] << 30 | e4[4] >>> 2, re2 = e4[4] << 30 | e4[5] >>> 2, N3 = e4[14] << 6 | e4[15] >>> 26, F3 = e4[15] << 6 | e4[14] >>> 26, g3 = e4[25] << 11 | e4[24] >>> 21, w3 = e4[24] << 11 | e4[25] >>> 21, Q2 = e4[34] << 15 | e4[35] >>> 17, Z2 = e4[35] << 15 | e4[34] >>> 17, M3 = e4[45] << 29 | e4[44] >>> 3, U3 = e4[44] << 29 | e4[45] >>> 3, x3 = e4[6] << 28 | e4[7] >>> 4, E3 = e4[7] << 28 | e4[6] >>> 4, ne2 = e4[17] << 23 | e4[16] >>> 9, ie2 = e4[16] << 23 | e4[17] >>> 9, L2 = e4[26] << 25 | e4[27] >>> 7, D2 = e4[27] << 25 | e4[26] >>> 7, A3 = e4[36] << 21 | e4[37] >>> 11, k3 = e4[37] << 21 | e4[36] >>> 11, $ = e4[47] << 24 | e4[46] >>> 8, ee2 = e4[46] << 24 | e4[47] >>> 8, K2 = e4[8] << 27 | e4[9] >>> 5, V2 = e4[9] << 27 | e4[8] >>> 5, P3 = e4[18] << 20 | e4[19] >>> 12, O3 = e4[19] << 20 | e4[18] >>> 12, oe2 = e4[29] << 7 | e4[28] >>> 25, ae2 = e4[28] << 7 | e4[29] >>> 25, H2 = e4[38] << 8 | e4[39] >>> 24, q2 = e4[39] << 8 | e4[38] >>> 24, _2 = e4[48] << 14 | e4[49] >>> 18, S3 = e4[49] << 14 | e4[48] >>> 18, e4[0] = p3 ^ ~m3 & g3, e4[1] = b3 ^ ~v3 & w3, e4[10] = x3 ^ ~P3 & B3, e4[11] = E3 ^ ~O3 & T3, e4[20] = R3 ^ ~N3 & L2, e4[21] = j2 ^ ~F3 & D2, e4[30] = K2 ^ ~J2 & Y2, e4[31] = V2 ^ ~W2 & X2, e4[40] = te2 ^ ~ne2 & oe2, e4[41] = re2 ^ ~ie2 & ae2, e4[2] = m3 ^ ~g3 & A3, e4[3] = v3 ^ ~w3 & k3, e4[12] = P3 ^ ~B3 & C3, e4[13] = O3 ^ ~T3 & I3, e4[22] = N3 ^ ~L2 & H2, e4[23] = F3 ^ ~D2 & q2, e4[32] = J2 ^ ~Y2 & Q2, e4[33] = W2 ^ ~X2 & Z2, e4[42] = ne2 ^ ~oe2 & se2, e4[43] = ie2 ^ ~ae2 & ue2, e4[4] = g3 ^ ~A3 & _2, e4[5] = w3 ^ ~k3 & S3, e4[14] = B3 ^ ~C3 & M3, e4[15] = T3 ^ ~I3 & U3, e4[24] = L2 ^ ~H2 & z2, e4[25] = D2 ^ ~q2 & G2, e4[34] = Y2 ^ ~Q2 & $, e4[35] = X2 ^ ~Z2 & ee2, e4[44] = oe2 ^ ~se2 & ce2, e4[45] = ae2 ^ ~ue2 & fe2, e4[6] = A3 ^ ~_2 & p3, e4[7] = k3 ^ ~S3 & b3, e4[16] = C3 ^ ~M3 & x3, e4[17] = I3 ^ ~U3 & E3, e4[26] = H2 ^ ~z2 & R3, e4[27] = q2 ^ ~G2 & j2, e4[36] = Q2 ^ ~$ & K2, e4[37] = Z2 ^ ~ee2 & V2, e4[46] = se2 ^ ~ce2 & te2, e4[47] = ue2 ^ ~fe2 & re2, e4[8] = _2 ^ ~p3 & m3, e4[9] = S3 ^ ~b3 & v3, e4[18] = M3 ^ ~x3 & P3, e4[19] = U3 ^ ~E3 & O3, e4[28] = z2 ^ ~R3 & N3, e4[29] = G2 ^ ~j2 & F3, e4[38] = $ ^ ~K2 & J2, e4[39] = ee2 ^ ~V2 & W2, e4[48] = ce2 ^ ~te2 & ne2, e4[49] = fe2 ^ ~re2 & ie2, e4[0] ^= y2[n3], e4[1] ^= y2[n3 + 1];
44886        };
44887        if (f2)
44888          e3.exports = O2;
44889        else {
44890          for (T2 = 0; T2 < B2.length; ++T2)
44891            u2[B2[T2]] = O2[B2[T2]];
44892          d2 && (void 0 === (n2 = function() {
44893            return O2;
44894          }.call(t3, r3, t3, e3)) || (e3.exports = n2));
44895        }
44896      }();
44897    }, 9989: (e3, t3, r3) => {
44898      var n2 = r3(9033).Buffer;
44899      Object.defineProperty(t3, "__esModule", { value: true }), t3.createHashFunction = function(e4) {
44900        return function(t4) {
44901          var r4 = e4();
44902          return r4.update(t4), n2.from(r4.digest());
44903        };
44904      };
44905    }, 1243: (e3, t3, r3) => {
44906      Object.defineProperty(t3, "__esModule", { value: true });
44907      var n2 = r3(9989), i = r3(3135);
44908      t3.keccak224 = n2.createHashFunction(function() {
44909        return i("keccak224");
44910      }), t3.keccak256 = n2.createHashFunction(function() {
44911        return i("keccak256");
44912      }), t3.keccak384 = n2.createHashFunction(function() {
44913        return i("keccak384");
44914      }), t3.keccak512 = n2.createHashFunction(function() {
44915        return i("keccak512");
44916      });
44917    }, 4893: (e3, t3, r3) => {
44918      Object.defineProperty(t3, "__esModule", { value: true });
44919      var n2 = r3(5010);
44920      t3.getRandomBytes = function(e4) {
44921        return new Promise(function(t4, r4) {
44922          n2(e4, function(e5, n3) {
44923            e5 ? r4(e5) : t4(n3);
44924          });
44925        });
44926      }, t3.getRandomBytesSync = function(e4) {
44927        return n2(e4);
44928      };
44929    }, 6992: (e3, t3, r3) => {
44930      Object.defineProperty(t3, "__esModule", { value: true });
44931      var n2 = r3(7902), i = r3(4893);
44932      t3.createPrivateKey = function() {
44933        return e4 = this, t4 = void 0, o = function() {
44934          var e5;
44935          return function(e6, t5) {
44936            var r5, n3, i2, o2, a = { label: 0, sent: function() {
44937              if (1 & i2[0])
44938                throw i2[1];
44939              return i2[1];
44940            }, trys: [], ops: [] };
44941            return o2 = { next: s(0), throw: s(1), return: s(2) }, "function" == typeof Symbol && (o2[Symbol.iterator] = function() {
44942              return this;
44943            }), o2;
44944            function s(o3) {
44945              return function(s2) {
44946                return function(o4) {
44947                  if (r5)
44948                    throw new TypeError("Generator is already executing.");
44949                  for (; a; )
44950                    try {
44951                      if (r5 = 1, n3 && (i2 = 2 & o4[0] ? n3.return : o4[0] ? n3.throw || ((i2 = n3.return) && i2.call(n3), 0) : n3.next) && !(i2 = i2.call(n3, o4[1])).done)
44952                        return i2;
44953                      switch (n3 = 0, i2 && (o4 = [2 & o4[0], i2.value]), o4[0]) {
44954                        case 0:
44955                        case 1:
44956                          i2 = o4;
44957                          break;
44958                        case 4:
44959                          return a.label++, { value: o4[1], done: false };
44960                        case 5:
44961                          a.label++, n3 = o4[1], o4 = [0];
44962                          continue;
44963                        case 7:
44964                          o4 = a.ops.pop(), a.trys.pop();
44965                          continue;
44966                        default:
44967                          if (!((i2 = (i2 = a.trys).length > 0 && i2[i2.length - 1]) || 6 !== o4[0] && 2 !== o4[0])) {
44968                            a = 0;
44969                            continue;
44970                          }
44971                          if (3 === o4[0] && (!i2 || o4[1] > i2[0] && o4[1] < i2[3])) {
44972                            a.label = o4[1];
44973                            break;
44974                          }
44975                          if (6 === o4[0] && a.label < i2[1]) {
44976                            a.label = i2[1], i2 = o4;
44977                            break;
44978                          }
44979                          if (i2 && a.label < i2[2]) {
44980                            a.label = i2[2], a.ops.push(o4);
44981                            break;
44982                          }
44983                          i2[2] && a.ops.pop(), a.trys.pop();
44984                          continue;
44985                      }
44986                      o4 = t5.call(e6, a);
44987                    } catch (e7) {
44988                      o4 = [6, e7], n3 = 0;
44989                    } finally {
44990                      r5 = i2 = 0;
44991                    }
44992                  if (5 & o4[0])
44993                    throw o4[1];
44994                  return { value: o4[0] ? o4[1] : void 0, done: true };
44995                }([o3, s2]);
44996              };
44997            }
44998          }(this, function(t5) {
44999            switch (t5.label) {
45000              case 0:
45001                return [4, i.getRandomBytes(32)];
45002              case 1:
45003                return e5 = t5.sent(), n2.privateKeyVerify(e5) ? [2, e5] : [3, 0];
45004              case 2:
45005                return [2];
45006            }
45007          });
45008        }, new ((r4 = void 0) || (r4 = Promise))(function(n3, i2) {
45009          function a(e5) {
45010            try {
45011              u2(o.next(e5));
45012            } catch (e6) {
45013              i2(e6);
45014            }
45015          }
45016          function s(e5) {
45017            try {
45018              u2(o.throw(e5));
45019            } catch (e6) {
45020              i2(e6);
45021            }
45022          }
45023          function u2(e5) {
45024            var t5;
45025            e5.done ? n3(e5.value) : (t5 = e5.value, t5 instanceof r4 ? t5 : new r4(function(e6) {
45026              e6(t5);
45027            })).then(a, s);
45028          }
45029          u2((o = o.apply(e4, t4 || [])).next());
45030        });
45031        var e4, t4, r4, o;
45032      }, t3.createPrivateKeySync = function() {
45033        for (; ; ) {
45034          var e4 = i.getRandomBytesSync(32);
45035          if (n2.privateKeyVerify(e4))
45036            return e4;
45037        }
45038      }, function(e4) {
45039        for (var r4 in e4)
45040          t3.hasOwnProperty(r4) || (t3[r4] = e4[r4]);
45041      }(r3(7902));
45042    }, 1968: (e3, t3, r3) => {
45043      var n2 = r3(9033).Buffer;
45044      Object.defineProperty(t3, "__esModule", { value: true }), t3.isZeroAddress = t3.zeroAddress = t3.importPublic = t3.privateToAddress = t3.privateToPublic = t3.publicToAddress = t3.pubToAddress = t3.isValidPublic = t3.isValidPrivate = t3.generateAddress2 = t3.generateAddress = t3.isValidChecksumAddress = t3.toChecksumAddress = t3.isValidAddress = t3.Account = void 0;
45045      var i, o = (i = r3(3894)) && i.__esModule ? i : { default: i }, a = r3(9100), s = r3(6992), u2 = r3(3271), c2 = r3(986), f2 = r3(3464), d2 = r3(9808), l2 = r3(5725), h2 = r3(5513), p2 = function() {
45046        function e4(e5, t4, r4, n3) {
45047          void 0 === e5 && (e5 = new a.BN(0)), void 0 === t4 && (t4 = new a.BN(0)), void 0 === r4 && (r4 = c2.KECCAK256_RLP), void 0 === n3 && (n3 = c2.KECCAK256_NULL), this.nonce = e5, this.balance = t4, this.stateRoot = r4, this.codeHash = n3, this._val
45047idate();
45048        }
45049        return e4.fromAccountData = function(t4) {
45050          var r4 = t4.nonce, n3 = t4.balance, i2 = t4.stateRoot, o2 = t4.codeHash;
45051          return new e4(r4 ? new a.BN((0, f2.toBuffer)(r4)) : void 0, n3 ? new a.BN((0, f2.toBuffer)(n3)) : void 0, i2 ? (0, f2.toBuffer)(i2) : void 0, o2 ? (0, f2.toBuffer)(o2) : void 0);
45052        }, e4.fromRlpSerializedAccount = function(e5) {
45053          var t4 = a.rlp.decode(e5);
45054          if (!Array.isArray(t4))
45055            throw new Error("Invalid serialized account input. Must be array");
45056          return this.fromValuesArray(t4);
45057        }, e4.fromValuesArray = function(t4) {
45058          var r4 = function(e5, t5) {
45059            var r5 = "function" == typeof Symbol && e5[Symbol.iterator];
45060            if (!r5)
45061              return e5;
45062            var n4, i3, o3 = r5.call(e5), a2 = [];
45063            try {
45064              for (; (void 0 === t5 || t5-- > 0) && !(n4 = o3.next()).done; )
45065                a2.push(n4.value);
45066            } catch (e6) {
45067              i3 = { error: e6 };
45068            } finally {
45069              try {
45070                n4 && !n4.done && (r5 = o3.return) && r5.call(o3);
45071              } finally {
45072                if (i3)
45073                  throw i3.error;
45074              }
45075            }
45076            return a2;
45077          }(t4, 4), n3 = r4[0], i2 = r4[1], o2 = r4[2], s2 = r4[3];
45078          return new e4(new a.BN(n3), new a.BN(i2), o2, s2);
45079        }, e4.prototype._validate = function() {
45080          if (this.nonce.lt(new a.BN(0)))
45081            throw new Error("nonce must be greater than zero");
45082          if (this.balance.lt(new a.BN(0)))
45083            throw new Error("balance must be greater than zero");
45084          if (32 !== this.stateRoot.length)
45085            throw new Error("stateRoot must have a length of 32");
45086          if (32 !== this.codeHash.length)
45087            throw new Error("codeHash must have a length of 32");
45088        }, e4.prototype.raw = function() {
45089          return [(0, h2.bnToUnpaddedBuffer)(this.nonce), (0, h2.bnToUnpaddedBuffer)(this.balance), this.stateRoot, this.codeHash];
45090        }, e4.prototype.serialize = function() {
45091          return a.rlp.encode(this.raw());
45092        }, e4.prototype.isContract = function() {
45093          return !this.codeHash.equals(c2.KECCAK256_NULL);
45094        }, e4.prototype.isEmpty = function() {
45095          return this.balance.isZero() && this.nonce.isZero() && this.codeHash.equals(c2.KECCAK256_NULL);
45096        }, e4;
45097      }();
45098      t3.Account = p2, t3.isValidAddress = function(e4) {
45099        try {
45100          (0, l2.assertIsString)(e4);
45101        } catch (e5) {
45102          return false;
45103        }
45104        return /^0x[0-9a-fA-F]{40}$/.test(e4);
45105      }, t3.toChecksumAddress = function(e4, t4) {
45106        (0, l2.assertIsHexString)(e4);
45107        var r4 = (0, u2.stripHexPrefix)(e4).toLowerCase(), n3 = "";
45108        t4 && (n3 = (0, h2.toType)(t4, h2.TypeOutput.BN).toString() + "0x");
45109        for (var i2 = (0, d2.keccakFromString)(n3 + r4).toString("hex"), o2 = "0x", a2 = 0; a2 < r4.length; a2++)
45110          parseInt(i2[a2], 16) >= 8 ? o2 += r4[a2].toUpperCase() : o2 += r4[a2];
45111        return o2;
45112      }, t3.isValidChecksumAddress = function(e4, r4) {
45113        return (0, t3.isValidAddress)(e4) && (0, t3.toChecksumAddress)(e4, r4) === e4;
45114      }, t3.generateAddress = function(e4, t4) {
45115        (0, l2.assertIsBuffer)(e4), (0, l2.assertIsBuffer)(t4);
45116        var r4 = new a.BN(t4);
45117        return r4.isZero() ? (0, d2.rlphash)([e4, null]).slice(-20) : (0, d2.rlphash)([e4, n2.from(r4.toArray())]).slice(-20);
45118      }, t3.generateAddress2 = function(e4, t4, r4) {
45119        return (0, l2.assertIsBuffer)(e4), (0, l2.assertIsBuffer)(t4), (0, l2.assertIsBuffer)(r4), (0, o.default)(20 === e4.length), (0, o.default)(32 === t4.length), (0, d2.keccak256)(n2.concat([n2.from("ff", "hex"), e4, t4, (0, d2.keccak256)(r4)])).slice(-20);
45120      }, t3.isValidPrivate = function(e4) {
45121        return (0, s.privateKeyVerify)(e4);
45122      }, t3.isValidPublic = function(e4, t4) {
45123        return void 0 === t4 && (t4 = false), (0, l2.assertIsBuffer)(e4), 64 === e4.length ? (0, s.publicKeyVerify)(n2.concat([n2.from([4]), e4])) : !!t4 && (0, s.publicKeyVerify)(e4);
45124      }, t3.pubToAddress = function(e4, t4) {
45125        return void 0 === t4 && (t4 = false), (0, l2.assertIsBuffer)(e4), t4 && 64 !== e4.length && (e4 = n2.from((0, s.publicKeyConvert)(e4, false).slice(1))), (0, o.default)(64 === e4.length), (0, d2.keccak)(e4).slice(-20);
45126      }, t3.publicToAddress = t3.pubToAddress, t3.privateToPublic = function(e4) {
45127        return (0, l2.assertIsBuffer)(e4), n2.from((0, s.publicKeyCreate)(e4, false)).slice(1);
45128      }, t3.privateToAddress = function(e4) {
45129        return (0, t3.publicToAddress)((0, t3.privateToPublic)(e4));
45130      }, t3.importPublic = function(e4) {
45131        return (0, l2.assertIsBuffer)(e4), 64 !== e4.length && (e4 = n2.from((0, s.publicKeyConvert)(e4, false).slice(1))), e4;
45132      }, t3.zeroAddress = function() {
45133        var e4 = (0, f2.zeros)(20);
45134        return (0, f2.bufferToHex)(e4);
45135      }, t3.isZeroAddress = function(e4) {
45136        try {
45137          (0, l2.assertIsString)(e4);
45138        } catch (e5) {
45139          return false;
45140        }
45141        return (0, t3.zeroAddress)() === e4;
45142      };
45143    }, 1984: (e3, t3, r3) => {
45144      var n2 = r3(9033).Buffer;
45145      Object.defineProperty(t3, "__esModule", { value: true }), t3.Address = void 0;
45146      var i, o = (i = r3(3894)) && i.__esModule ? i : { default: i }, a = r3(9100), s = r3(3464), u2 = r3(1968), c2 = function() {
45147        function e4(e5) {
45148          (0, o.default)(20 === e5.length, "Invalid address length"), this.buf = e5;
45149        }
45150        return e4.zero = function() {
45151          return new e4((0, s.zeros)(20));
45152        }, e4.fromString = function(t4) {
45153          return (0, o.default)((0, u2.isValidAddress)(t4), "Invalid address"), new e4((0, s.toBuffer)(t4));
45154        }, e4.fromPublicKey = function(t4) {
45155          return (0, o.default)(n2.isBuffer(t4), "Public key should be Buffer"), new e4((0, u2.pubToAddress)(t4));
45156        }, e4.fromPrivateKey = function(t4) {
45157          return (0, o.default)(n2.isBuffer(t4), "Private key should be Buffer"), new e4((0, u2.privateToAddress)(t4));
45158        }, e4.generate = function(t4, r4) {
45159          return (0, o.default)(a.BN.isBN(r4)), new e4((0, u2.generateAddress)(t4.buf, r4.toArrayLike(n2)));
45160        }, e4.generate2 = function(t4, r4, i2) {
45161          return (0, o.default)(n2.isBuffer(r4)), (0, o.default)(n2.isBuffer(i2)), new e4((0, u2.generateAddress2)(t4.buf, r4, i2));
45162        }, e4.prototype.equals = function(e5) {
45163          return this.buf.equals(e5.buf);
45164        }, e4.prototype.isZero = function() {
45165          return this.equals(e4.zero());
45166        }, e4.prototype.isPrecompileOrSystemAddress = function() {
45167          var e5 = new a.BN(this.buf), t4 = new a.BN(0), r4 = new a.BN("ffff", "hex");
45168          return e5.gte(t4) && e5.lte(r4);
45169        }, e4.prototype.toString = function() {
45170          return "0x" + this.buf.toString("hex");
45171        }, e4.prototype.toBuffer = function() {
45172          return n2.from(this.buf);
45173        }, e4;
45174      }();
45175      t3.Address = c2;
45176    }, 3464: (e3, t3, r3) => {
45177      var n2 = r3(9033).Buffer, i = function(e4, t4) {
45178        var r4 = "function" == typeof Symbol && e4[Symbol.iterator];
45179        if (!r4)
45180          return e4;
45181        var n3, i2, o2 = r4.call(e4), a2 = [];
45182        try {
45183          for (; (void 0 === t4 || t4-- > 0) && !(n3 = o2.next()).done; )
45184            a2.push(n3.value);
45185        } catch (e5) {
45186          i2 = { error: e5 };
45187        } finally {
45188          try {
45189            n3 && !n3.done && (r4 = o2.return) && r4.call(o2);
45190          } finally {
45191            if (i2)
45192              throw i2.error;
45193          }
45194        }
45195        return a2;
45196      };
45197      Object.defineProperty(t3, "__esModule", { value: true }), t3.bufArrToArr = t3.arrToBufArr = t3.validateNoLeadingZeroes = t3.baToJSON = t3.toUtf8 = t3.addHexPrefix = t3.toUnsigned = t3.fromSigned = t3.bufferToHex = t3.bufferToInt = t3.toBuffer = t3.unpadHexString = t3.unpadArray = t3.unpadBuffer = t3.setLengthRight = t3.setLengthLeft = t3.zeros = t3.intToBuffer = t3.intToHex = void 0;
45198      var o = r3(9100), a = r3(3271), s = r3(5725);
45199      t3.intToHex = function(e4) {
45200        if (!Number.isSafeInteger(e4) || e4 < 0)
45201          throw new Error("Received an invalid integer type: ".concat(e4));
45202        return "0x".concat(e4.toString(16));
45203      }, t3.intToBuffer = function(e4) {
45204        var r4 = (0, t3.intToHex)(e4);
45205        return n2.from((0, a.padToEven)(r4.slice(2)), "hex");
45206      }, t3.zeros = function(e4) {
45207        return n2.allocUnsafe(e4).fill(0);
45208      };
45209      var u2 = function(e4, r4, n3) {
45210        var i2 = (0, t3.zeros)(r4);
45211        return n3 ? e4.length < r4 ? (e4.copy(i2), i2) : e4.slice(0, r4) : e4.length < r4 ? (e4.copy(i2, r4 - e4.length), i2) : e4.slice(-r4);
45212      };
45213      t3.setLengthLeft = function(e4, t4) {
45214        return (0, s.assertIsBuffer)(e4), u2(e4, t4, false);
45215      }, t3.setLengthRight = function(e4, t4) {
45216        return (0, s.assertIsBuffer)(e4), u2(e4, t4, true);
45217      };
45218      var c2 = function(e4) {
45219        for (var t4 = e4[0]; e4.length > 0 && "0" === t4.toString(); )
45220          t4 = (e4 = e4.slice(1))[0];
45221        return e4;
45222      };
45223      t3.unpadBuffer = function(e4) {
45224        return (0, s.assertIsBuffer)(e4), c2(e4);
45225      }, t3.unpadArray = function(e4) {
45226        return (0, s.assertIsArray)(e4), c2(e4);
45227      }, t3.unpadHexString = function(e4) {
45228        return (0, s.assertIsHexString)(e4), e4 = (0, a.stripHexPrefix)(e4), c2(e4);
45229      }, t3.toBuffer = function(e4) {
45230        if (null == e4)
45231          return n2.allocUnsafe(0);
45232        if (n2.isBuffer(e4))
45233          return n2.from(e4);
45234        if (Array.isArray(e4) || e4 instanceof Uint8Array)
45235          return n2.from(e4);
45236        if ("string" == typeof e4) {
45237          if (!(0, a.isHexString)(e4))
45238            throw new Error("Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: ".concat(e4));
45239          return n2.from((0, a.padToEven)((0, a.stripHexPrefix)(e4)), "hex");
45240        }
45241        if ("number" == typeof e4)
45242          return (0, t3.intToBuffer)(e4);
45243        if (o.BN.isBN(e4)) {
45244          if (e4.isNeg())
45245            throw new Error("Cannot convert negative BN to buffer. Given: ".concat(e4));
45246          return e4.toArrayLike(n2);
45247        }
45248        if (e4.toArray)
45249          return n2.from(e4.toArray());
45250        if (e4.toBuffer)
45251          return n2.from(e4.toBuffer());
45252        throw new Error("invalid type");
45253      }, t3.bufferToInt = function(e4) {
45254        return new o.BN((0, t3.toBuffer)(e4)).toNumber();
45255      }, t3.bufferToHex = function(e4) {
45256        return "0x" + (e4 = (0, t3.toBuffer)(e4)).toString("hex");
45257      }, t3.fromSigned = function(e4) {
45258        return new o.BN(e4).fromTwos(256);
45259      }, t3.toUnsigned = function(e4) {
45260        return n2.from(e4.toTwos(256).toArray());
45261      }, t3.addHexPrefix = function(e4) {
45262        return "string" != typeof e4 || (0, a.isHexPrefixed)(e4) ? e4 : "0x" + e4;
45263      }, t3.toUtf8 = function(e4) {
45264        if ((e4 = (0, a.stripHexPrefix)(e4)).length % 2 != 0)
45265          throw new Error("Invalid non-even hex string input for toUtf8() provided");
45266        return n2.from(e4.replace(/^(00)+|(00)+$/g, ""), "hex").toString("utf8");
45267      }, t3.baToJSON = function(e4) {
45268        if (n2.isBuffer(e4))
45269          return "0x".concat(e4.toString("hex"));
45270        if (e4 instanceof Array) {
45271          for (var r4 = [], i2 = 0; i2 < e4.length; i2++)
45272            r4.push((0, t3.baToJSON)(e4[i2]));
45273          return r4;
45274        }
45275      }, t3.validateNoLeadingZeroes = function(e4) {
45276        var t4, r4;
45277        try {
45278          for (var n3 = function(e5) {
45279            var t5 = "function" == typeof Symbol && Symbol.iterator, r5 = t5 && e5[t5], n4 = 0;
45280            if (r5)
45281              return r5.call(e5);
45282            if (e5 && "number" == typeof e5.length)
45283              return { next: function() {
45284                return e5 && n4 >= e5.length && (e5 = void 0), { value: e5 && e5[n4++], done: !e5 };
45285              } };
45286            throw new TypeError(t5 ? "Object is not iterable." : "Symbol.iterator is not defined.");
45287          }(Object.entries(e4)), o2 = n3.next(); !o2.done; o2 = n3.next()) {
45288            var a2 = i(o2.value, 2), s2 = a2[0], u3 = a2[1];
45289            if (void 0 !== u3 && u3.length > 0 && 0 === u3[0])
45290              throw new Error("".concat(s2, " cannot have leading zeroes, received: ").concat(u3.toString("hex")));
45291          }
45292        } catch (e5) {
45293          t4 = { error: e5 };
45294        } finally {
45295          try {
45296            o2 && !o2.done && (r4 = n3.return) && r4.call(n3);
45297          } finally {
45298            if (t4)
45299              throw t4.error;
45300          }
45301        }
45302      }, t3.arrToBufArr = function e4(t4) {
45303        return Array.isArray(t4) ? t4.map(function(t5) {
45304          return e4(t5);
45305        }) : n2.from(t4);
45306      }, t3.bufArrToArr = function e4(t4) {
45307        return Array.isArray(t4) ? t4.map(function(t5) {
45308          return e4(t5);
45309        }) : Uint8Array.from(null != t4 ? t4 : []);
45310      };
45311    }, 986: (e3, t3, r3) => {
45312      Object.defineProperty(t3, "__esModule", { value: true }), t3.KECCAK256_RLP = t3.KECCAK256_RLP_S = t3.KECCAK256_RLP_ARRAY = t3.KECCAK256_RLP_ARRAY_S = t3.KECCAK256_NULL = t3.KECCAK256_NULL_S = t3.TWO_POW256 = t3.MAX_INTEGER = t3.MAX_UINT64 = void 0;
45313      var n2 = r3(9033), i = r3(9100);
45314      t3.MAX_UINT64 = new i.BN("ffffffffffffffff", 16), t3.MAX_INTEGER = new i.BN("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", 16), t3.TWO_POW256 = new i.BN("10000000000000000000000000000000000000000000000000000000000000000", 16), t3.KECCAK256_NULL_S = "c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470", t3.KECCAK256_NULL = n2.Buffer.from(t3.KECCAK256_NULL_S, "hex"), t3.KECCAK256_RLP_ARRAY_S = "1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", t3.KECCAK256_RLP_ARRAY = n2.Buffer.from(t3.KECCAK256_RLP_ARRAY_S, "hex"), t3.KECCAK256_RLP_S = "56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", t3.KECCAK256_RLP = n2.Buffer.from(t3.KECCAK256_RLP_S, "hex");
45315    }, 9100: (e3, t3, r3) => {
45316      var n2 = Object.create ? function(e4, t4, r4, n3) {
45317        void 0 === n3 && (n3 = r4);
45318        var i2 = Object.getOwnPropertyDescriptor(t4, r4);
45319        i2 && !("get" in i2 ? !t4.__esModule : i2.writable || i2.configurable) || (i2 = { enumerable: true, get: function() {
45320          return t4[r4];
45321        } }), Object.defineProperty(e4, n3, i2);
45322      } : function(e4, t4, r4, n3) {
45323        void 0 === n3 && (n3 = r4), e4[n3] = t4[r4];
45324      }, i = Object.create ? function(e4, t4) {
45325        Object.defineProperty(e4, "default", { enumerable: true, value: t4 });
45326      } : function(e4, t4) {
45327        e4.default = t4;
45328      };
45329      Object.defineProperty(t3, "__esModule", { value: true }), t3.rlp = t3.BN = void 0;
45330      var o, a = (o = r3(1734)) && o.__esModule ? o : { default: o };
45331      t3.BN = a.default;
45332      var s = function(e4) {
45333        if (e4 && e4.__esModule)
45334          return e4;
45335        var t4 = {};
45336        if (null != e4)
45337          for (var r4 in e4)
45338            "default" !== r4 && Object.prototype.hasOwnProperty.call(e4, r4) && n2(t4, e4, r4);
45339        return i(t4, e4), t4;
45340      }(r3(6905));
45341      t3.rlp = s;
45342    }, 9808: (e3, t3, r3) => {
45343      var n2 = r3(9033).Buffer;
45344      Object.defineProperty(t3, "__esModule", { value: true }), t3.rlphash = t3.ripemd160FromArray = t3.ripemd160FromString = t3.ripemd160 = t3.sha256FromArray = t3.sha256FromString = t3.sha256 = t3.keccakFromArray = t3.keccakFromHexString = t3.keccakFromString = t3.keccak256 = t3.keccak = void 0;
45345      var i = r3(1243), o = r3(5866), a = r3(9100), s = r3(3464), u2 = r3(5725);
45346      t3.keccak = function(e4, t4) {
45347        switch (void 0 === t4 && (t4 = 256), (0, u2.assertIsBuffer)(e4), t4) {
45348          case 224:
45349            return (0, i.keccak224)(e4);
45350          case 256:
45351            return (0, i.keccak256)(e4);
45352          case 384:
45353            return (0, i.keccak384)(e4);
45354          case 512:
45355            return (0, i.keccak512)(e4);
45356          default:
45357            throw new Error("Invald algorithm: keccak".concat(t4));
45358        }
45359      }, t3.keccak256 = function(e4) {
45360        return (0, t3.keccak)(e4);
45361      }, t3.keccakFromString = function(e4, r4) {
45362        void 0 === r4 && (r4 = 256), (0, u2.assertIsString)(e4);
45363        var i2 = n2.from(e4, "utf8");
45364        return (0, t3.keccak)(i2, r4);
45365      }, t3.keccakFromHexString = function(e4, r4) {
45366        return void 0 === r4 && (r4 = 256), (0, u2.assertIsHexString)(e4), (0, t3.keccak)((0, s.toBuffer)(e4), r4);
45367      }, t3.keccakFromArray = function(e4, r4) {
45368        return void 0 === r4 && (r4 = 256), (0, u2.assertIsArray)(e4), (0, t3.keccak)((0, s.toBuffer)(e4), r4);
45369      };
45370      var c2 = function(e4) {
45371        return e4 = (0, s.toBuffer)(e4), o("sha256").update(e4).digest();
45372      };
45373      t3.sha256 = function(e4) {
45374        return (0, u2.assertIsBuffer)(e4), c2(e4);
45375      }, t3.sha256FromString = function(e4) {
45376        return (0, u2.assertIsString)(e4), c2(e4);
45377      }, t3.sha256FromArray = function(e4) {
45378        return (0, u2.assertIsArray)(e4), c2(e4);
45379      };
45380      var f2 = function(e4, t4) {
45381        e4 = (0, s.toBuffer)(e4);
45382        var r4 = o("rmd160").update(e4).digest();
45383        return true === t4 ? (0, s.setLengthLeft)(r4, 32) : r4;
45384      };
45385      t3.ripemd160 = function(e4, t4) {
45386        return (0, u2.assertIsBuffer)(e4), f2(e4, t4);
45387      }, t3.ripemd160FromString = function(e4, t4) {
45388        return (0, u2.assertIsString)(e4), f2(e4, t4);
45389      }, t3.ripemd160FromArray = function(e4, t4) {
45390        return (0, u2.assertIsArray)(e4), f2(e4, t4);
45391      }, t3.rlphash = function(e4) {
45392        return (0, t3.keccak)(a.rlp.encode(e4));
45393      };
45394    }, 5725: (e3, t3, r3) => {
45395      var n2 = r3(9033).Buffer;
45396      Object.defineProperty(t3, "__esModule", { value: true }), t3.assertIsString = t3.assertIsArray = t3.assertIsBuffer = t3.assertIsHexString = void 0;
45397      var i = r3(3271);
45398      t3.assertIsHexString = function(e4) {
45399        if (!(0, i.isHexString)(e4)) {
45400          var t4 = "This method only supports 0x-prefixed hex strings but input was: ".concat(e4);
45401          throw new Error(t4);
45402        }
45403      }, t3.assertIsBuffer = function(e4) {
45404        if (!n2.isBuffer(e4)) {
45405          var t4 = "This method only supports Buffer but input was: ".concat(e4);
45406          throw new Error(t4);
45407        }
45408      }, t3.assertIsArray = function(e4) {
45409        if (!Array.isArray(e4)) {
45410          var t4 = "This method only supports number arrays but input was: ".concat(e4);
45411          throw new Error(t4);
45412        }
45413      }, t3.assertIsString = function(e4) {
45414        if ("string" != typeof e4) {
45415          var t4 = "This method only supports strings but input was: ".concat(e4);
45416          throw new Error(t4);
45417        }
45418      };
45419    }, 3062: (e3, t3, r3) => {
45420      var n2 = Object.create ? function(e4, t4, r4, n3) {
45421        void 0 === n3 && (n3 = r4);
45422        var i2 = Object.getOwnPropertyDescriptor(t4, r4);
45423        i2 && !("get" in i2 ? !t4.__esModule : i2.writable || i2.configurable) || (i2 = { enumerable: true, get: function() {
45424          return t4[r4];
45425        } }), Object.defineProperty(e4, n3, i2);
45426      } : function(e4, t4, r4, n3) {
45427        void 0 === n3 && (n3 = r4), e4[n3] = t4[r4];
45428      }, i = function(e4, t4) {
45429        for (var r4 in e4)
45430          "default" === r4 || Object.prototype.hasOwnProperty.call(t4, r4) || n2(t4, e4, r4);
45431      };
45432      Object.defineProperty(t3, "__esModule", { value: true }), t3.isHexString = t3.getKeys = t3.fromAscii = t3.fromUtf8 = t3.toAscii = t3.arrayContainsArray = t3.getBinarySize = t3.padToEven = t3.stripHexPrefix = t3.isHexPrefixed = void 0, i(r3(986), t3), i(r3(1968), t3), i(r3(1984), t3), i(r3(9808), t3), i(r3(6081), t3), i(r3(3464), t3), i(r3(1677), t3), i(r3(9100), t3), i(r3(5513), t3);
45433      var o = r3(3271);
45434      Object.defineProperty(t3, "isHexPrefixed", { enumerable: true, get: function() {
45435        return o.isHexPrefixed;
45436      } }), Object.defineProperty(t3, "stripHexPrefix", { enumerable: true, get: function() {
45437        return o.stripHexPrefix;
45438      } }), Object.defineProperty(t3, "padToEven", { enumerable: true, get: function() {
45439        return o.padToEven;
45440      } }), Object.defineProperty(t3, "getBinarySize", { enumerable: true, get: function() {
45441        return o.getBinarySize;
45442      } }), Object.defineProperty(t3, "arrayContainsArray", { enumerable: true, get: function() {
45443        return o.arrayContainsArray;
45444      } }), Object.defineProperty(t3, "toAscii", { enumerable: true, get: function() {
45445        return o.toAscii;
45446      } }), Object.defineProperty(t3, "fromUtf8", { enumerable: true, get: function() {
45447        return o.fromUtf8;
45448      } }), Object.defineProperty(t3, "fromAscii", { enumerable: true, get: function() {
45449        return o.fromAscii;
45450      } }), Object.defineProperty(t3, "getKeys", { enumerable: true, get: function() {
45451        return o.getKeys;
45452      } }), Object.defineProperty(t3, "isHexString", { enumerable: true, get: function() {
45453        return o.isHexString;
45454      } });
45455    }, 3271: (e3, t3, r3) => {
45456      var n2 = r3(9033).Buffer, i = r3(8847)(r3(3355));
45457      function o(e4) {
45458        if ("string" != typeof e4)
45459          throw new Error("[isHexPrefixed] input must be type 'string', received type ".concat((0, i.default)(e4)));
45460        return "0" === e4[0] && "x" === e4[1];
45461      }
45462      function a(e4) {
45463        var t4 = e4;
45464        if ("string" != typeof t4)
45465          throw new Error("[padToEven] value must be type 'string', received ".concat((0, i.default)(t4)));
45466        return t4.length % 2 && (t4 = "0".concat(t4)), t4;
45467      }
45468      Object.defineProperty(t3, "__esModule", { value: true }), t3.isHexString = t3.getKeys = t3.fromAscii = t3.fromUtf8 = t3.toAscii = t3.arrayContainsArray = t3.getBinarySize = t3.padToEven = t3.stripHexPrefix = t3.isHexPrefixed = void 0, t3.isHexPrefixed = o, t3.stripHexPrefix = function(e4) {
45469        if ("string" != typeof e4)
45470          throw new Error("[stripHexPrefix] input must be type 'string', received ".concat((0, i.default)(e4)));
45471        return o(e4) ? e4.slice(2) : e4;
45472      }, t3.padToEven = a, t3.getBinarySize = function(e4) {
45473        if ("string" != typeof e4)
45474          throw new Error("[getBinarySize] method requires input type 'string', recieved ".concat((0, i.default)(e4)));
45475        return n2.byteLength(e4, "utf8");
45476      }, t3.arrayContainsArray = function(e4, t4, r4) {
45477        if (true !== Array.isArray(e4))
45478          throw new Error("[arrayContainsArray] method requires input 'superset' to be an array, got type '".concat((0, i.default)(e4), "'"));
45479        if (true !== Array.isArray(t4))
45480          throw new Error("[arrayContainsArray] method requires input 'subset' to be an array, got type '".concat((0, i.default)(t4), "'"));
45481        return t4[r4 ? "some" : "every"](function(t5) {
45482          return e4.indexOf(t5) >= 0;
45483        });
45484      }, t3.toAscii = function(e4) {
45485        var t4 = "", r4 = 0, n3 = e4.length;
45486        for ("0x" === e4.substring(0, 2) && (r4 = 2); r4 < n3; r4 += 2) {
45487          var i2 = parseInt(e4.substr(r4, 2), 16);
45488          t4 += String.fromCharCode(i2);
45489        }
45490        return t4;
45491      }, t3.fromUtf8 = function(e4) {
45492        var t4 = n2.from(e4, "utf8");
45493        return "0x".concat(a(t4.toString("hex")).replace(/^0+|0+$/g, ""));
45494      }, t3.fromAscii = function(e4) {
45495        for (var t4 = "", r4 = 0; r4 < e4.length; r4++) {
45496          var n3 = e4.charCodeAt(r4).toString(16);
45497          t4 += n3.length < 2 ? "0".concat(n3) : n3;
45498        }
45499        return "0x".concat(t4);
45500      }, t3.getKeys = function(e4, t4, r4) {
45501        if (!Array.isArray(e4))
45502          throw new Error("[getKeys] method expects input 'params' to be an array, got ".concat((0, i.default)(e4)));
45503        if ("string" != typeof t4)
45504          throw new Error("[getKeys] method expects input 'key' to be type 'string', got ".concat((0, i.default)(e4)));
45505        for (var n3 = [], o2 = 0; o2 < e4.length; o2++) {
45506          var a2 = e4[o2][t4];
45507          if (r4 && !a2)
45508            a2 = "";
45509          else if ("string" != typeof a2)
45510            throw new Error("invalid abi - expected type 'string', received ".concat((0, i.default)(a2)));
45511          n3.push(a2);
45512        }
45513        return n3;
45514      }, t3.isHexString = function(e4, t4) {
45515        return !("string" != typeof e4 || !e4.match(/^0x[0-9A-Fa-f]*$/) || t4 && e4.length !== 2 + 2 * t4);
45516      };
45517    }, 1677: (e3, t3, r3) => {
45518      var n2 = r3(9033).Buffer, i = r3(8847)(r3(3355));
45519      Object.defineProperty(t3, "__esModule", { value: true }), t3.defineProperties = void 0;
45520      var o, a = (o = r3(3894)) && o.__esModule ? o : { default: o }, s = r3(3271), u2 = r3(9100), c2 = r3(3464);
45521      t3.defineProperties = function(e4, t4, r4) {
45522        if (e4.raw = [], e4._fields = [], e4.toJSON = function(t5) {
45523          if (void 0 === t5 && (t5 = false), t5) {
45524            var r5 = {};
45525            return e4._fields.forEach(function(t6) {
45526              r5[t6] = "0x".concat(e4[t6].toString("hex"));
45527            }), r5;
45528          }
45529          return (0, c2.baToJSON)(e4.raw);
45530        }, e4.serialize = function() {
45531          return u2.rlp.encode(e4.raw);
45532        }, t4.forEach(function(t5, r5) {
45533          function i2() {
45534            return e4.raw[r5];
45535          }
45536          function o3(i3) {
45537            "00" !== (i3 = (0, c2.toBuffer)(i3)).toString("hex") || t5.allowZero || (i3 = n2.allocUnsafe(0)), t5.allowLess && t5.length ? (i3 = (0, c2.unpadBuffer)(i3), (0, a.default)(t5.length >= i3.length, "The field ".concat(t5.name, " must not have more ").concat(t5.length, " bytes"))) : t5.allowZero && 0 === i3.length || !t5.length || (0, a.default)(t5.length === i3.length, "The field ".concat(t5.name, " must have byte length of ").concat(t5.length)), e4.raw[r5] = i3;
45538          }
45539          e4._fields.push(t5.name), Object.defineProperty(e4, t5.name, { enumerable: true, configurable: true, get: i2, set: o3 }), t5.default && (e4[t5.name] = t5.default), t5.alias && Object.defineProperty(e4, t5.alias, { enumerable: false, configurable: true, set: o3, get: i2 });
45540        }), r4)
45541          if ("string" == typeof r4 && (r4 = n2.from((0, s.stripHexPrefix)(r4), "hex")), n2.isBuffer(r4) && (r4 = u2.rlp.decode(r4)), Array.isArray(r4)) {
45542            if (r4.length > e4._fields.length)
45543              throw new Error("wrong number of fields in data");
45544            r4.forEach(function(t5, r5) {
45545              e4[e4._fields[r5]] = (0, c2.toBuffer)(t5);
45546            });
45547          } else {
45548            if ("object" !== (0, i.default)(r4))
45549              throw new Error("invalid data");
45550            var o2 = Object.keys(r4);
45551            t4.forEach(function(t5) {
45552              -1 !== o2.indexOf(t5.name) && (e4[t5.name] = r4[t5.name]), -1 !== o2.indexOf(t5.alias) && (e4[t5.alias] = r4[t5.alias]);
45553            });
45554          }
45555      };
45556    }, 6081: (e3, t3, r3) => {
45557      var n2 = r3(9033).Buffer;
45558      Object.defineProperty(t3, "__esModule", { value: true }), t3.hashPersonalMessage = t3.isValidSignature = t3.fromRpcSig = t3.toCompactSig = t3.toRpcSig = t3.ecrecover = t3.ecsign = void 0;
45559      var i = r3(6992), o = r3(9100), a = r3(3464), s = r3(9808), u2 = r3(5725), c2 = r3(5513);
45560      function f2(e4, t4) {
45561        var r4 = (0, c2.toType)(e4, c2.TypeOutput.BN);
45562        if (r4.eqn(0) || r4.eqn(1))
45563          return (0, c2.toType)(e4, c2.TypeOutput.BN);
45564        if (!t4)
45565          return r4.subn(27);
45566        var n3 = (0, c2.toType)(t4, c2.TypeOutput.BN);
45567        return r4.sub(n3.muln(2).addn(35));
45568      }
45569      function d2(e4) {
45570        var t4 = new o.BN(e4);
45571        return t4.eqn(0) || t4.eqn(1);
45572      }
45573      t3.ecsign = function(e4, t4, r4) {
45574        var o2 = (0, i.ecdsaSign)(e4, t4), a2 = o2.signature, s2 = o2.recid, u3 = n2.from(a2.slice(0, 32)), f3 = n2.from(a2.slice(32, 64));
45575        if (!r4 || "number" == typeof r4) {
45576          if (r4 && !Number.isSafeInteger(r4))
45577            throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");
45578          return { r: u3, s: f3, v: r4 ? s2 + (2 * r4 + 35) : s2 + 27 };
45579        }
45580        return { r: u3, s: f3, v: (0, c2.toType)(r4, c2.TypeOutput.BN).muln(2).addn(35).addn(s2).toArrayLike(n2) };
45581      }, t3.ecrecover = function(e4, t4, r4, o2, s2) {
45582        var u3 = n2.concat([(0, a.setLengthLeft)(r4, 32), (0, a.setLengthLeft)(o2, 32)], 64), c3 = f2(t4, s2);
45583        if (!d2(c3))
45584          throw new Error("Invalid signature v value");
45585        var l2 = (0, i.ecdsaRecover)(u3, c3.toNumber(), e4);
45586        return n2.from((0, i.publicKeyConvert)(l2, false).slice(1));
45587      }, t3.toRpcSig = function(e4, t4, r4, i2) {
45588        if (!d2(f2(e4, i2)))
45589          throw new Error("Invalid signature v value");
45590        return (0, a.bufferToHex)(n2.concat([(0, a.setLengthLeft)(t4, 32), (0, a.setLengthLeft)(r4, 32), (0, a.toBuffer)(e4)]));
45591      }, t3.toCompactSig = function(e4, t4, r4, i2) {
45592        if (!d2(f2(e4, i2)))
45593          throw new Error("Invalid signature v value");
45594        var o2 = (0, c2.toType)(e4, c2.TypeOutput.Number), s2 = r4;
45595        return (o2 > 28 && o2 % 2 == 1 || 1 === o2 || 28 === o2) && ((s2 = n2.from(r4))[0] |= 128), (0, a.bufferToHex)(n2.concat([(0, a.setLengthLeft)(t4, 32), (0, a.setLengthLeft)(s2, 32)]));
45596      }, t3.fromRpcSig = function(e4) {
45597        var t4, r4, n3, i2 = (0, a.toBuffer)(e4);
45598        if (i2.length >= 65)
45599          t4 = i2.slice(0, 32), r4 = i2.slice(32, 64), n3 = (0, a.bufferToInt)(i2.slice(64));
45600        else {
45601          if (64 !== i2.length)
45602            throw new Error("Invalid signature length");
45603          t4 = i2.slice(0, 32), r4 = i2.slice(32, 64), n3 = (0, a.bufferToInt)(i2.slice(32, 33)) >> 7, r4[0] &= 127;
45604        }
45605        return n3 < 27 && (n3 += 27), { v: n3, r: t4, s: r4 };
45606      }, t3.isValidSignature = function(e4, t4, r4, n3, i2) {
45607        void 0 === n3 && (n3 = true);
45608        var a2 = new o.BN("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0", 16), s2 = new o.BN("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141", 16);
45609        if (32 !== t4.length || 32 !== r4.length)
45610          return false;
45611        if (!d2(f2(e4, i2)))
45612          return false;
45613        var u3 = new o.BN(t4), c3 = new o.BN(r4);
45614        return !(u3.isZero() || u3.gt(s2) || c3.isZero() || c3.gt(s2) || n3 && 1 === c3.cmp(a2));
45615      }, t3.hashPersonalMessage = function(e4) {
45616        (0, u2.assertIsBuffer)(e4);
45617        var t4 = n2.from("�Ethereum Signed Message:\n".concat(e4.length), "utf-8");
45618        return (0, s.keccak)(n2.concat([t4, e4]));
45619      };
45620    }, 5513: (e3, t3, r3) => {
45621      var n2 = r3(9033).Buffer;
45622      Object.defineProperty(t3, "__esModule", { value: true }), t3.toType = t3.TypeOutput = t3.bnToRlp = t3.bnToUnpaddedBuffer = t3.bnToHex = void 0;
45623      var i, o = r3(9100), a = r3(3271), s = r3(3464);
45624      function u2(e4) {
45625        return (0, s.unpadBuffer)(e4.toArrayLike(n2));
45626      }
45627      t3.bnToHex = function(e4) {
45628        return "0x".concat(e4.toString(16));
45629      }, t3.bnToUnpaddedBuffer = u2, t3.bnToRlp = function(e4) {
45630        return u2(e4);
45631      }, function(e4) {
45632        e4[e4.Number = 0] = "Number", e4[e4.BN = 1] = "BN", e4[e4.Buffer = 2] = "Buffer", e4[e4.PrefixedHexString = 3] = "PrefixedHexString";
45633      }(i = t3.TypeOutput || (t3.TypeOutput = {})), t3.toType = function(e4, t4) {
45634        if (null === e4)
45635          return null;
45636        if (void 0 !== e4) {
45637          if ("string" == typeof e4 && !(0, a.isHexString)(e4))
45638            throw new Error("A string must be provided with a 0x-prefix, given: ".concat(e4));
45639          if ("number" == typeof e4 && !Number.isSafeInteger(e4))
45640            throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");
45641          var r4 = (0, s.toBuffer)(e4);
45642          if (t4 === i.Buffer)
45643            return r4;
45644          if (t4 === i.BN)
45645            return new o.BN(r4);
45646          if (t4 === i.Number) {
45647            var n3 = new o.BN(r4), u3 = new o.BN(Number.MAX_SAFE_INTEGER.toString());
45648            if (n3.gt(u3))
45649              throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)");
45650            return n3.toNumber();
45651          }
45652          return "0x".concat(r4.toString("hex"));
45653        }
45654      };
45655    }, 7130: (e3, t3, r3) => {
45656      var n2 = r3(8847)(r3(3355)), i = r3(1734), o = r3(7277), a = new i(0), s = new i(-1), u2 = { noether: "0", wei: "1", kwei: "1000", Kwei: "1000", babbage: "1000", femtoether: "1000", mwei: "1000000", Mwei: "1000000", lovelace: "1000000", picoether: "1000000", gwei: "1000000000", Gwei: "1000000000", shannon: "1000000000", nanoether: "1000000000", nano: "1000000000", szabo: "1000000000000", microether: "1000000000000", micro: "1000000000000", finney: "1000000000000000", milliether: "1000000000000000", milli: "1000000000000000", ether: "1000000000000000000", kether: "1000000000000000000000", grand: "1000000000000000000000", mether: "1000000000000000000000000", gether: "1000000000000000000000000000", tether: "1000000000000000000000000000000" };
45657      function c2(e4) {
45658        var t4 = e4 ? e4.toLowerCase() : "ether", r4 = u2[t4];
45659        if ("string" != typeof r4)
45660          throw new Error("[ethjs-unit] the unit provided " + e4 + " doesn't exists, please use the one of the following units " + JSON.stringify(u2, null, 2));
45661        return new i(r4, 10);
45662      }
45663      function f2(e4) {
45664        if ("string" == typeof e4) {
45665          if (!e4.match(/^-?[0-9.]+$/))
45666            throw new Error("while converting number to string, invalid number value '" + e4 + "', should be a number matching (^-?[0-9.]+).");
45667          return e4;
45668        }
45669        if ("number" == typeof e4)
45670          return String(e4);
45671        if ("object" === (0, n2.default)(e4) && e4.toString && (e4.toTwos || e4.dividedToIntegerBy))
45672          return e4.toPrecision ? String(e4.toPrecision()) : e4.toString(10);
45673        throw new Error("while converting number to string, invalid number value '" + e4 + "' type " + (0, n2.default)(e4) + ".");
45674      }
45675      e3.exports = { unitMap: u2, numberToString: f2, getValueOfUnit: c2, fromWei: function(e4, t4, r4) {
45676        var n3 = o(e4), i2 = n3.lt(a), f3 = c2(t4), d2 = u2[t4].length - 1 || 1, l2 = r4 || {};
45677        i2 && (n3 = n3.mul(s));
45678        for (var h2 = n3.mod(f3).toString(10); h2.length < d2; )
45679          h2 = "0" + h2;
45680        l2.pad || (h2 = h2.match(/^([0-9]*[1-9]|0)(0*)/)[1]);
45681        var p2 = n3.div(f3).toString(10);
45682        l2.commify && (p2 = p2.replace(/\B(?=(\d{3})+(?!\d))/g, ","));
45683        var b2 = p2 + ("0" == h2 ? "" : "." + h2);
45684        return i2 && (b2 = "-" + b2), b2;
45685      }, toWei: function(e4, t4) {
45686        var r4 = f2(e4), n3 = c2(t4), o2 = u2[t4].length - 1 || 1, a2 = "-" === r4.substring(0, 1);
45687        if (a2 && (r4 = r4.substring(1)), "." === r4)
45688          throw new Error("[ethjs-unit] while converting number " + e4 + " to wei, invalid value");
45689        var d2 = r4.split(".");
45690        if (d2.length > 2)
45691          throw new Error("[ethjs-unit] while converting number " + e4 + " to wei,  too many decimal points");
45692        var l2 = d2[0], h2 = d2[1];
45693        if (l2 || (l2 = "0"), h2 || (h2 = "0"), h2.length > o2)
45694          throw new Error("[ethjs-unit] while converting number " + e4 + " to wei, too many decimal places");
45695        for (; h2.length < o2; )
45696          h2 += "0";
45697        l2 = new i(l2), h2 = new i(h2);
45698        var p2 = l2.mul(n3).add(h2);
45699        return a2 && (p2 = p2.mul(s)), new i(p2.toString(10), 10);
45700      } };
45701    }, 8008: (e3) => {
45702      var t3 = Object.prototype.hasOwnProperty, r3 = "~";
45703      function n2() {
45704      }
45705      function i(e4, t4, r4) {
45706        this.fn = e4, this.context = t4, this.once = r4 || false;
45707      }
45708      function o(e4, t4, n3, o2, a2) {
45709        if ("function" != typeof n3)
45710          throw new TypeError("The listener must be a function");
45711        var s2 = new i(n3, o2 || e4, a2), u2 = r3 ? r3 + t4 : t4;
45712        return e4._events[u2] ? e4._events[u2].fn ? e4._events[u2] = [e4._events[u2], s2] : e4._events[u2].push(s2) : (e4._events[u2] = s2, e4._eventsCount++), e4;
45713      }
45714      function a(e4, t4) {
45715        0 == --e4._eventsCount ? e4._events = new n2() : delete e4._events[t4];
45716      }
45717      function s() {
45718        this._events = new n2(), this._eventsCount = 0;
45719      }
45720      Object.create && (n2.prototype = /* @__PURE__ */ Object.create(null), new n2().__proto__ || (r3 = false)), s.prototype.eventNames = function() {
45721        var e4, n3, i2 = [];
45722        if (0 === this._eventsCount)
45723          return i2;
45724        for (n3 in e4 = this._events)
45725          t3.call(e4, n3) && i2.push(r3 ? n3.slice(1) : n3);
45726        return Object.getOwnPropertySymbols ? i2.concat(Object.getOwnPropertySymbols(e4)) : i2;
45727      }, s.prototype.listeners = function(e4) {
45728        var t4 = r3 ? r3 + e4 : e4, n3 = this._events[t4];
45729        if (!n3)
45730          return [];
45731        if (n3.fn)
45732          return [n3.fn];
45733        for (var i2 = 0, o2 = n3.length, a2 = new Array(o2); i2 < o2; i2++)
45734          a2[i2] = n3[i2].fn;
45735        return a2;
45736      }, s.prototype.listenerCount = function(e4) {
45737        var t4 = r3 ? r3 + e4 : e4, n3 = this._events[t4];
45738        return n3 ? n3.fn ? 1 : n3.length : 0;
45739      }, s.prototype.emit = function(e4, t4, n3, i2, o2, a2) {
45740        var s2 = r3 ? r3 + e4 : e4;
45741        if (!this._events[s2])
45742          return false;
45743        var u2, c2, f2 = this._events[s2], d2 = arguments.length;
45744        if (f2.fn) {
45745          switch (f2.once && this.removeListener(e4, f2.fn, void 0, true), d2) {
45746            case 1:
45747              return f2.fn.call(f2.context), true;
45748            case 2:
45749              return f2.fn.call(f2.context, t4), true;
45750            case 3:
45751              return f2.fn.call(f2.context, t4, n3), true;
45752            case 4:
45753              return f2.fn.call(f2.context, t4, n3, i2), true;
45754            case 5:
45755              return f2.fn.call(f2.context, t4, n3, i2, o2), true;
45756            case 6:
45757              return f2.fn.call(f2.context, t4, n3, i2, o2, a2), true;
45758          }
45759          for (c2 = 1, u2 = new Array(d2 - 1); c2 < d2; c2++)
45760            u2[c2 - 1] = arguments[c2];
45761          f2.fn.apply(f2.context, u2);
45762        } else {
45763          var l2, h2 = f2.length;
45764          for (c2 = 0; c2 < h2; c2++)
45765            switch (f2[c2].once && this.removeListener(e4, f2[c2].fn, void 0, true), d2) {
45766              case 1:
45767                f2[c2].fn.call(f2[c2].context);
45768                break;
45769              case 2:
45770                f2[c2].fn.call(f2[c2].context, t4);
45771                break;
45772              case 3:
45773                f2[c2].fn.call(f2[c2].context, t4, n3);
45774                break;
45775              case 4:
45776                f2[c2].fn.call(f2[c2].context, t4, n3, i2);
45777                break;
45778              default:
45779                if (!u2)
45780                  for (l2 = 1, u2 = new Array(d2 - 1); l2 < d2; l2++)
45781                    u2[l2 - 1] = arguments[l2];
45782                f2[c2].fn.apply(f2[c2].context, u2);
45783            }
45784        }
45785        return true;
45786      }, s.prototype.on = function(e4, t4, r4) {
45787        return o(this, e4, t4, r4, false);
45788      }, s.prototype.once = function(e4, t4, r4) {
45789        return o(this, e4, t4, r4, true);
45790      }, s.prototype.removeListener = function(e4, t4, n3, i2) {
45791        var o2 = r3 ? r3 + e4 : e4;
45792        if (!this._events[o2])
45793          return this;
45794        if (!t4)
45795          return a(this, o2), this;
45796        var s2 = this._events[o2];
45797        if (s2.fn)
45798          s2.fn !== t4 || i2 && !s2.once || n3 && s2.context !== n3 || a(this, o2);
45799        else {
45800          for (var u2 = 0, c2 = [], f2 = s2.length; u2 < f2; u2++)
45801            (s2[u2].fn !== t4 || i2 && !s2[u2].once || n3 && s2[u2].context !== n3) && c2.push(s2[u2]);
45802          c2.length ? this._events[o2] = 1 === c2.length ? c2[0] : c2 : a(this, o2);
45803        }
45804        return this;
45805      }, s.prototype.removeAllListeners = function(e4) {
45806        var t4;
45807        return e4 ? (t4 = r3 ? r3 + e4 : e4, this._events[t4] && a(this, t4)) : (this._events = new n2(), this._eventsCount = 0), this;
45808      }, s.prototype.off = s.prototype.removeListener, s.prototype.addListener = s.prototype.on, s.prefixed = r3, s.EventEmitter = s, e3.exports = s;
45809    }, 8291: (e3, t3, r3) => {
45810      var n2 = r3(8847)(r3(3355)), i = Object.create || function(e4) {
45811        var t4 = function() {
45812        };
45813        return t4.prototype = e4, new t4();
45814      }, o = Object.keys || function(e4) {
45815        var t4 = [];
45816        for (var r4 in e4)
45817          Object.prototype.hasOwnProperty.call(e4, r4) && t4.push(r4);
45818        return r4;
45819      }, a = Function.prototype.bind || function(e4) {
45820        var t4 = this;
45821        return function() {
45822          return t4.apply(e4, arguments);
45823        };
45824      };
45825      function s() {
45826        this._events && Object.prototype.hasOwnProperty.call(this, "_events") || (this._events = i(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
45827      }
45828      e3.exports = s, s.EventEmitter = s, s.prototype._events = void 0, s.prototype._maxListeners = void 0;
45829      var u2, c2 = 10;
45830      try {
45831        var f2 = {};
45832        Object.defineProperty && Object.defineProperty(f2, "x", { value: 0 }), u2 = 0 === f2.x;
45833      } catch (e4) {
45834        u2 = false;
45835      }
45836      function d2(e4) {
45837        return void 0 === e4._maxListeners ? s.defaultMaxListeners : e4._maxListeners;
45838      }
45839      function l2(e4, t4, r4) {
45840        if (t4)
45841          e4.call(r4);
45842        else
45843          for (var n3 = e4.length, i2 = k2(e4, n3), o2 = 0; o2 < n3; ++o2)
45844            i2[o2].call(r4);
45845      }
45846      function h2(e4, t4, r4, n3) {
45847        if (t4)
45848          e4.call(r4, n3);
45849        else
45850          for (var i2 = e4.length, o2 = k2(e4, i2), a2 = 0; a2 < i2; ++a2)
45851            o2[a2].call(r4, n3);
45852      }
45853      function p2(e4, t4, r4, n3, i2) {
45854        if (t4)
45855          e4.call(r4, n3, i2);
45856        else
45857          for (var o2 = e4.length, a2 = k2(e4, o2), s2 = 0; s2 < o2; ++s2)
45858            a2[s2].call(r4, n3, i2);
45859      }
45860      function b2(e4, t4, r4, n3, i2, o2) {
45861        if (t4)
45862          e4.call(r4, n3, i2, o2);
45863        else
45864          for (var a2 = e4.length, s2 = k2(e4, a2), u3 = 0; u3 < a2; ++u3)
45865            s2[u3].call(r4, n3, i2, o2);
45866      }
45867      function y2(e4, t4, r4, n3) {
45868        if (t4)
45869          e4.apply(r4, n3);
45870        else
45871          for (var i2 = e4.length, o2 = k2(e4, i2), a2 = 0; a2 < i2; ++a2)
45872            o2[a2].apply(r4, n3);
45873      }
45874      function m2(e4, t4, r4, o2) {
45875        var a2, s2, u3;
45876        if ("function" != typeof r4)
45877          throw new TypeError('"listener" argument must be a function');
45878        if ((s2 = e4._events) ? (s2.newListener && (e4.emit("newListener", t4, r4.listener ? r4.listener : r4), s2 = e4._events), u3 = s2[t4]) : (s2 = e4._events = i(null), e4._eventsCount = 0), u3) {
45879          if ("function" == typeof u3 ? u3 = s2[t4] = o2 ? [r4, u3] : [u3, r4] : o2 ? u3.unshift(r4) : u3.push(r4), !u3.warned && (a2 = d2(e4)) && a2 > 0 && u3.length > a2) {
45880            u3.warned = true;
45881            var c3 = new Error("Possible EventEmitter memory leak detected. " + u3.length + ' "' + String(t4) + '" listeners added. Use emitter.setMaxListeners() to increase limit.');
45882            c3.name = "MaxListenersExceededWarning", c3.emitter = e4, c3.type = t4, c3.count = u3.length, "object" === ("undefined" == typeof console ? "undefined" : (0, n2.default)(console)) && console.warn && console.warn("%s: %s", c3.name, c3.message);
45883          }
45884        } else
45885          u3 = s2[t4] = r4, ++e4._eventsCount;
45886        return e4;
45887      }
45888      function v2() {
45889        if (!this.fired)
45890          switch (this.target.removeListener(this.type, this.wrapFn), this.fired = true, arguments.length) {
45891            case 0:
45892              return this.listener.call(this.target);
45893            case 1:
45894              return this.listener.call(this.target, arguments[0]);
45895            case 2:
45896              return this.listener.call(this.target, arguments[0], arguments[1]);
45897            case 3:
45898              return this.listener.call(this.target, arguments[0], arguments[1], arguments[2]);
45899            default:
45900              for (var e4 = new Array(arguments.length), t4 = 0; t4 < e4.length; ++t4)
45901                e4[t4] = arguments[t4];
45902              this.listener.apply(this.target, e4);
45903          }
45904      }
45905      function g2(e4, t4, r4) {
45906        var n3 = { fired: false, wrapFn: void 0, target: e4, type: t4, listener: r4 }, i2 = a.call(v2, n3);
45907        return i2.listener = r4, n3.wrapFn = i2, i2;
45908      }
45909      function w2(e4, t4, r4) {
45910        var n3 = e4._events;
45911        if (!n3)
45912          return [];
45913        var i2 = n3[t4];
45914        return i2 ? "function" == typeof i2 ? r4 ? [i2.listener || i2] : [i2] : r4 ? function(e5) {
45915          for (var t5 = new Array(e5.length), r5 = 0; r5 < t5.length; ++r5)
45916            t5[r5] = e5[r5].listener || e5[r5];
45917          return t5;
45918        }(i2) : k2(i2, i2.length) : [];
45919      }
45920      function A2(e4) {
45921        var t4 = this._events;
45922        if (t4) {
45923          var r4 = t4[e4];
45924          if ("function" == typeof r4)
45925            return 1;
45926          if (r4)
45927            return r4.length;
45928        }
45929        return 0;
45930      }
45931      function k2(e4, t4) {
45932        for (var r4 = new Array(t4), n3 = 0; n3 < t4; ++n3)
45933          r4[n3] = e4[n3];
45934        return r4;
45935      }
45936      u2 ? Object.defineProperty(s, "defaultMaxListeners", { enumerable: true, get: function() {
45937        return c2;
45938      }, set: function(e4) {
45939        if ("number" != typeof e4 || e4 < 0 || e4 != e4)
45940          throw new TypeError('"defaultMaxListeners" must be a positive number');
45941        c2 = e4;
45942      } }) : s.defaultMaxListeners = c2, s.prototype.setMaxListeners = function(e4) {
45943        if ("number" != typeof e4 || e4 < 0 || isNaN(e4))
45944          throw new TypeError('"n" argument must be a positive number');
45945        return this._maxListeners = e4, this;
45946      }, s.prototype.getMaxListeners = function() {
45947        return d2(this);
45948      }, s.prototype.emit = function(e4) {
45949        var t4, r4, n3, i2, o2, a2, s2 = "error" === e4;
45950        if (a2 = this._events)
45951          s2 = s2 && null == a2.error;
45952        else if (!s2)
45953          return false;
45954        if (s2) {
45955          if (arguments.length > 1 && (t4 = arguments[1]), t4 instanceof Error)
45956            throw t4;
45957          var u3 = new Error('Unhandled "error" event. (' + t4 + ")");
45958          throw u3.context = t4, u3;
45959        }
45960        if (!(r4 = a2[e4]))
45961          return false;
45962        var c3 = "function" == typeof r4;
45963        switch (n3 = arguments.length) {
45964          case 1:
45965            l2(r4, c3, this);
45966            break;
45967          case 2:
45968            h2(r4, c3, this, arguments[1]);
45969            break;
45970          case 3:
45971            p2(r4, c3, this, arguments[1], arguments[2]);
45972            break;
45973          case 4:
45974            b2(r4, c3, this, arguments[1], arguments[2], arguments[3]);
45975            break;
45976          default:
45977            for (i2 = new Array(n3 - 1), o2 = 1; o2 < n3; o2++)
45978              i2[o2 - 1] = arguments[o2];
45979            y2(r4, c3, this, i2);
45980        }
45981        return true;
45982      }, s.prototype.addListener = function(e4, t4) {
45983        return m2(this, e4, t4, false);
45984      }, s.prototype.on = s.prototype.addListener, s.prototype.prependListener = function(e4, t4) {
45985        return m2(this, e4, t4, true);
45986      }, s.prototype.once = function(e4, t4) {
45987        if ("function" != typeof t4)
45988          throw new TypeError('"listener" argument must be a function');
45989        return this.on(e4, g2(this, e4, t4)), this;
45990      }, s.prototype.prependOnceListener = function(e4, t4) {
45991        if ("function" != typeof t4)
45992          throw new TypeError('"listener" argument must be a function');
45993        return this.prependListener(e4, g2(this, e4, t4)), this;
45994      }, s.prototype.removeListener = function(e4, t4) {
45995        var r4, n3, o2, a2, s2;
45996        if ("function" != typeof t4)
45997          throw new TypeError('"listener" argument must be a function');
45998        if (!(n3 = this._events))
45999          return this;
46000        if (!(r4 = n3[e4]))
46001          return this;
46002        if (r4 === t4 || r4.listener === t4)
46003          0 == --this._eventsCount ? this._events = i(null) : (delete n3[e4], n3.removeListener && this.emit("removeListener", e4, r4.listener || t4));
46004        else if ("function" != typeof r4) {
46005          for (o2 = -1, a2 = r4.length - 1; a2 >= 0; a2--)
46006            if (r4[a2] === t4 || r4[a2].listener === t4) {
46007              s2 = r4[a2].listener, o2 = a2;
46008              break;
46009            }
46010          if (o2 < 0)
46011            return this;
46012          0 === o2 ? r4.shift() : function(e5, t5) {
46013            for (var r5 = t5, n4 = r5 + 1, i2 = e5.length; n4 < i2; r5 += 1, n4 += 1)
46014              e5[r5] = e5[n4];
46015            e5.pop();
46016          }(r4, o2), 1 === r4.length && (n3[e4] = r4[0]), n3.removeListener && this.emit("removeListener", e4, s2 || t4);
46017        }
46018        return this;
46019      }, s.prototype.removeAllListeners = function(e4) {
46020        var t4, r4, n3;
46021        if (!(r4 = this._events))
46022          return this;
46023        if (!r4.removeListener)
46024          return 0 === arguments.length ? (this._events = i(null), this._eventsCount = 0) : r4[e4] && (0 == --this._eventsCount ? this._events = i(null) : delete r4[e4]), this;
46025        if (0 === arguments.length) {
46026          var a2, s2 = o(r4);
46027          for (n3 = 0; n3 < s2.length; ++n3)
46028            "removeListener" !== (a2 = s2[n3]) && this.removeAllListeners(a2);
46029          return this.removeAllListeners("removeListener"), this._events = i(null), this._eventsCount = 0, this;
46030        }
46031        if ("function" == typeof (t4 = r4[e4]))
46032          this.removeListener(e4, t4);
46033        else if (t4)
46034          for (n3 = t4.length - 1; n3 >= 0; n3--)
46035            this.removeListener(e4, t4[n3]);
46036        return this;
46037      }, s.prototype.listeners = function(e4) {
46038        return w2(this, e4, true);
46039      }, s.prototype.rawListeners = function(e4) {
46040        return w2(this, e4, false);
46041      }, s.listenerCount = function(e4, t4) {
46042        return "function" == typeof e4.listenerCount ? e4.listenerCount(t4) : A2.call(e4, t4);
46043      }, s.prototype.listenerCount = A2, s.prototype.eventNames = function() {
46044        return this._eventsCount > 0 ? Reflect.ownKeys(this._events) : [];
46045      };
46046    }, 7085: (e3, t3, r3) => {
46047      var n2 = r3(8850).Buffer, i = r3(807);
46048      e3.exports = function(e4, t4, r4, o) {
46049        if (n2.isBuffer(e4) || (e4 = n2.from(e4, "binary")), t4 && (n2.isBuffer(t4) || (t4 = n2.from(t4, "binary")), 8 !== t4.length))
46050          throw new RangeError("salt should be Buffer with 8 byte length");
46051        for (var a = r4 / 8, s = n2.alloc(a), u2 = n2.alloc(o || 0), c2 = n2.alloc(0); a > 0 || o > 0; ) {
46052          var f2 = new i();
46053          f2.update(c2), f2.update(e4), t4 && f2.update(t4), c2 = f2.digest();
46054          var d2 = 0;
46055          if (a > 0) {
46056            var l2 = s.length - a;
46057            d2 = Math.min(a, c2.length), c2.copy(s, l2, 0, d2), a -= d2;
46058          }
46059          if (d2 < c2.length && o > 0) {
46060            var h2 = u2.length - o, p2 = Math.min(o, c2.length - d2);
46061            c2.copy(u2, h2, d2, d2 + p2), o -= p2;
46062          }
46063        }
46064        return c2.fill(0), { key: s, iv: u2 };
46065      };
46066    }, 8184: (e3, t3, r3) => {
46067      var n2 = r3(1493), i = Object.prototype.toString, o = Object.prototype.hasOwnProperty, a = function(e4, t4, r4) {
46068        for (var n3 = 0, i2 = e4.length; n3 < i2; n3++)
46069          o.call(e4, n3) && (null == r4 ? t4(e4[n3], n3, e4) : t4.call(r4, e4[n3], n3, e4));
46070      }, s = function(e4, t4, r4) {
46071        for (var n3 = 0, i2 = e4.length; n3 < i2; n3++)
46072          null == r4 ? t4(e4.charAt(n3), n3, e4) : t4.call(r4, e4.charAt(n3), n3, e4);
46073      }, u2 = function(e4, t4, r4) {
46074        for (var n3 in e4)
46075          o.call(e4, n3) && (null == r4 ? t4(e4[n3], n3, e4) : t4.call(r4, e4[n3], n3, e4));
46076      };
46077      e3.exports = function(e4, t4, r4) {
46078        if (!n2(t4))
46079          throw new TypeError("iterator must be a function");
46080        var o2;
46081        arguments.length >= 3 && (o2 = r4), "[object Array]" === i.call(e4) ? a(e4, t4, o2) : "string" == typeof e4 ? s(e4, t4, o2) : u2(e4, t4, o2);
46082      };
46083    }, 3161: (e3) => {
46084      var t3 = "Function.prototype.bind called on incompatible ", r3 = Array.prototype.slice, n2 = Object.prototype.toString, i = "[object Function]";
46085      e3.exports = function(e4) {
46086        var o = this;
46087        if ("function" != typeof o || n2.call(o) !== i)
46088          throw new TypeError(t3 + o);
46089        for (var a, s = r3.call(arguments, 1), u2 = function() {
46090          if (this instanceof a) {
46091            var t4 = o.apply(this, s.concat(r3.call(arguments)));
46092            return Object(t4) === t4 ? t4 : this;
46093          }
46094          return o.apply(e4, s.concat(r3.call(arguments)));
46095        }, c2 = Math.max(0, o.length - s.length), f2 = [], d2 = 0; d2 < c2; d2++)
46096          f2.push("$" + d2);
46097        if (a = Function("binder", "return function (" + f2.join(",") + "){ return binder.apply(this,arguments); }")(u2), o.prototype) {
46098          var l2 = function() {
46099          };
46100          l2.prototype = o.prototype, a.prototype = new l2(), l2.prototype = null;
46101        }
46102        return a;
46103      };
46104    }, 3767: (e3, t3, r3) => {
46105      var n2 = r3(3161);
46106      e3.exports = Function.prototype.bind || n2;
46107    }, 7701: (e3, t3, r3) => {
46108      var n2, i = r3(8847)(r3(3355)), o = SyntaxError, a = Function, s = TypeError, u2 = function(e4) {
46109        try {
46110          return a('"use strict"; return (' + e4 + ").constructor;")();
46111        } catch (e5) {
46112        }
46113      }, c2 = Object.getOwnPropertyDescriptor;
46114      if (c2)
46115        try {
46116          c2({}, "");
46117        } catch (e4) {
46118          c2 = null;
46119        }
46120      var f2 = function() {
46121        throw new s();
46122      }, d2 = c2 ? function() {
46123        try {
46124          return f2;
46125        } catch (e4) {
46126          try {
46127            return c2(arguments, "callee").get;
46128          } catch (e5) {
46129            return f2;
46130          }
46131        }
46132      }() : f2, l2 = r3(8489)(), h2 = Object.getPrototypeOf || function(e4) {
46133        return e4.__proto__;
46134      }, p2 = {}, b2 = "undefined" == typeof Uint8Array ? n2 : h2(Uint8Array), y2 = { "%AggregateError%": "undefined" == typeof AggregateError ? n2 : AggregateError, "%Array%": Array, "%ArrayBuffer%": "undefined" == typeof ArrayBuffer ? n2 : ArrayBuffer, "%ArrayIteratorPrototype%": l2 ? h2([][Symbol.iterator]()) : n2, "%AsyncFromSyncIteratorPrototype%": n2, "%AsyncFunction%": p2, "%AsyncGenerator%": p2, "%AsyncGeneratorFunction%": p2, "%AsyncIteratorPrototype%": p2, "%Atomics%": "undefined" == typeof Atomics ? n2 : Atomics, "%BigInt%": "undefined" == typeof BigInt ? n2 : BigInt, "%Boolean%": Boolean, "%DataView%": "undefined" == typeof DataView ? n2 : DataView, "%Date%": Date, "%decodeURI%": decodeURI, "%decodeURIComponent%": decodeURIComponent, "%encodeURI%": encodeURI, "%encodeURIComponent%": encodeURIComponent, "%Error%": Error, "%eval%": eval, "%EvalError%": EvalError, "%Float32Array%": "undefined" == typeof Float32Array ? n2 : Float32Array, "%Float64Array%": "undefined" == typeof Float64Array ? n2 : Float64Array, "%FinalizationRegistry%": "undefined" == typeof FinalizationRegistry ? n2 : FinalizationRegistry, "%Function%": a, "%GeneratorFunction%": p2, "%Int8Array%": "undefined" == typeof Int8Array ? n2 : Int8Array, "%Int16Array%": "undefined" == typeof Int16Array ? n2 : Int16Array, "%Int32Array%": "undefined" == typeof Int32Array ? n2 : Int32Array, "%isFinite%": isFinite, "%isNaN%": isNaN, "%IteratorPrototype%": l2 ? h2(h2([][Symbol.iterator]())) : n2, "%JSON%": "object" === ("undefined" == typeof JSON ? "undefined" : (0, i.default)(JSON)) ? JSON : n2, "%
46134Map%": "undefined" == typeof Map ? n2 : Map, "%MapIteratorPrototype%": "undefined" != typeof Map && l2 ? h2((/* @__PURE__ */ new Map())[Symbol.iterator]()) : n2, "%Math%": Math, "%Number%": Number, "%Object%": Object, "%parseFloat%": parseFloat, "%parseInt%": parseInt, "%Promise%": "undefined" == typeof Promise ? n2 : Promise, "%Proxy%": "undefined" == typeof Proxy ? n2 : Proxy, "%RangeError%": RangeError, "%ReferenceError%": ReferenceError, "%Reflect%": "undefined" == typeof Reflect ? n2 : Reflect, "%RegExp%": RegExp, "%Set%": "undefined" == typeof Set ? n2 : Set, "%SetIteratorPrototype%": "undefined" != typeof Set && l2 ? h2((/* @__PURE__ */ new Set())[Symbol.iterator]()) : n2, "%SharedArrayBuffer%": "undefined" == typeof SharedArrayBuffer ? n2 : SharedArrayBuffer, "%String%": String, "%StringIteratorPrototype%": l2 ? h2(""[Symbol.iterator]()) : n2, "%Symbol%": l2 ? Symbol : n2, "%SyntaxError%": o, "%ThrowTypeError%": d2, "%TypedArray%": b2, "%TypeError%": s, "%Uint8Array%": "undefined" == typeof Uint8Array ? n2 : Uint8Array, "%Uint8ClampedArray%": "undefined" == typeof Uint8ClampedArray ? n2 : Uint8ClampedArray, "%Uint16Array%": "undefined" == typeof Uint16Array ? n2 : Uint16Array, "%Uint32Array%": "undefined" == typeof Uint32Array ? n2 : Uint32Array, "%URIError%": URIError, "%WeakMap%": "undefined" == typeof WeakMap ? n2 : WeakMap, "%WeakRef%": "undefined" == typeof WeakRef ? n2 : WeakRef, "%WeakSet%": "undefined" == typeof WeakSet ? n2 : WeakSet }, m2 = function e4(t4) {
46135        var r4;
46136        if ("%AsyncFunction%" === t4)
46137          r4 = u2("async function () {}");
46138        else if ("%GeneratorFunction%" === t4)
46139          r4 = u2("function* () {}");
46140        else if ("%AsyncGeneratorFunction%" === t4)
46141          r4 = u2("async function* () {}");
46142        else if ("%AsyncGenerator%" === t4) {
46143          var n3 = e4("%AsyncGeneratorFunction%");
46144          n3 && (r4 = n3.prototype);
46145        } else if ("%AsyncIteratorPrototype%" === t4) {
46146          var i2 = e4("%AsyncGenerator%");
46147          i2 && (r4 = h2(i2.prototype));
46148        }
46149        return y2[t4] = r4, r4;
46150      }, v2 = { "%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"] }, g2 = r3(3767), w2 = r3(1888), A2 = g2.call(Function.call, Array.prototype.concat), k2 = g2.call(Function.apply, Array.prototype.splice), _ = g2.call(Function.call, String.prototype.replace), S2 = g2.call(Function.call, String.prototype.slice), x2 = g2.call(Function.call, RegExp.prototype.exec), E2 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, P2 = /\\(\\)?/g, O2 = function(e4) {
46151        var t4 = S2(e4, 0, 1), r4 = S2(e4, -1);
46152        if ("%" === t4 && "%" !== r4)
46153          throw new o("invalid intrinsic syntax, expected closing `%`");
46154        if ("%" === r4 && "%" !== t4)
46155          throw new o("invalid intrinsic syntax, expected opening `%`");
46156        var n3 = [];
46157        return _(e4, E2, function(e5, t5, r5, i2) {
46158          n3[n3.length] = r5 ? _(i2, P2, "$1") : t5 || e5;
46159        }), n3;
46160      }, B2 = function(e4, t4) {
46161        var r4, n3 = e4;
46162        if (w2(v2, n3) && (n3 = "%" + (r4 = v2[n3])[0] + "%"), w2(y2, n3)) {
46163          var i2 = y2[n3];
46164          if (i2 === p2 && (i2 = m2(n3)), void 0 === i2 && !t4)
46165            throw new s("intrinsic " + e4 + " exists, but is not available. Please file an issue!");
46166          return { alias: r4, name: n3, value: i2 };
46167        }
46168        throw new o("intrinsic " + e4 + " does not exist!");
46169      };
46170      e3.exports = function(e4, t4) {
46171        if ("string" != typeof e4 || 0 === e4.length)
46172          throw new s("intrinsic name must be a non-empty string");
46173        if (arguments.length > 1 && "boolean" != typeof t4)
46174          throw new s('"allowMissing" argument must be a boolean');
46175        if (null === x2(/^%?[^%]*%?$/, e4))
46176          throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
46177        var r4 = O2(e4), n3 = r4.length > 0 ? r4[0] : "", i2 = B2("%" + n3 + "%", t4), a2 = i2.name, u3 = i2.value, f3 = false, d3 = i2.alias;
46178        d3 && (n3 = d3[0], k2(r4, A2([0, 1], d3)));
46179        for (var l3 = 1, h3 = true; l3 < r4.length; l3 += 1) {
46180          var p3 = r4[l3], b3 = S2(p3, 0, 1), m3 = S2(p3, -1);
46181          if (('"' === b3 || "'" === b3 || "`" === b3 || '"' === m3 || "'" === m3 || "`" === m3) && b3 !== m3)
46182            throw new o("property names with quotes must have matching quotes");
46183          if ("constructor" !== p3 && h3 || (f3 = true), w2(y2, a2 = "%" + (n3 += "." + p3) + "%"))
46184            u3 = y2[a2];
46185          else if (null != u3) {
46186            if (!(p3 in u3)) {
46187              if (!t4)
46188                throw new s("base intrinsic for " + e4 + " exists, but the property is not available.");
46189              return;
46190            }
46191            if (c2 && l3 + 1 >= r4.length) {
46192              var v3 = c2(u3, p3);
46193              u3 = (h3 = !!v3) && "get" in v3 && !("originalValue" in v3.get) ? v3.get : u3[p3];
46194            } else
46195              h3 = w2(u3, p3), u3 = u3[p3];
46196            h3 && !f3 && (y2[a2] = u3);
46197          }
46198        }
46199        return u3;
46200      };
46201    }, 2948: (e3, t3, r3) => {
46202      var n2;
46203      n2 = "undefined" != typeof window ? window : void 0 !== r3.g ? r3.g : "undefined" != typeof self ? self : {}, e3.exports = n2;
46204    }, 3820: (e3, t3, r3) => {
46205      var n2 = r3(7701)("%Object.getOwnPropertyDescriptor%", true);
46206      if (n2)
46207        try {
46208          n2([], "length");
46209        } catch (e4) {
46210          n2 = null;
46211        }
46212      e3.exports = n2;
46213    }, 8489: (e3, t3, r3) => {
46214      var n2 = r3(8847)(r3(3355)), i = "undefined" != typeof Symbol && Symbol, o = r3(7027);
46215      e3.exports = function() {
46216        return "function" == typeof i && "function" == typeof Symbol && "symbol" === (0, n2.default)(i("foo")) && "symbol" === (0, n2.default)(Symbol("bar")) && o();
46217      };
46218    }, 7027: (e3, t3, r3) => {
46219      var n2 = r3(8847)(r3(3355));
46220      e3.exports = function() {
46221        if ("function" != typeof Symbol || "function" != typeof Object.getOwnPropertySymbols)
46222          return false;
46223        if ("symbol" === (0, n2.default)(Symbol.iterator))
46224          return true;
46225        var e4 = {}, t4 = Symbol("test"), r4 = Object(t4);
46226        if ("string" == typeof t4)
46227          return false;
46228        if ("[object Symbol]" !== Object.prototype.toString.call(t4))
46229          return false;
46230        if ("[object Symbol]" !== Object.prototype.toString.call(r4))
46231          return false;
46232        for (t4 in e4[t4] = 42, e4)
46233          return false;
46234        if ("function" == typeof Object.keys && 0 !== Object.keys(e4).length)
46235          return false;
46236        if ("function" == typeof Object.getOwnPropertyNames && 0 !== Object.getOwnPropertyNames(e4).length)
46237          return false;
46238        var i = Object.getOwnPropertySymbols(e4);
46239        if (1 !== i.length || i[0] !== t4)
46240          return false;
46241        if (!Object.prototype.propertyIsEnumerable.call(e4, t4))
46242          return false;
46243        if ("function" == typeof Object.getOwnPropertyDescriptor) {
46244          var o = Object.getOwnPropertyDescriptor(e4, t4);
46245          if (42 !== o.value || true !== o.enumerable)
46246            return false;
46247        }
46248        return true;
46249      };
46250    }, 1191: (e3, t3, r3) => {
46251      var n2 = r3(7027);
46252      e3.exports = function() {
46253        return n2() && !!Symbol.toStringTag;
46254      };
46255    }, 1888: (e3, t3, r3) => {
46256      var n2 = r3(3767);
46257      e3.exports = n2.call(Function.call, Object.prototype.hasOwnProperty);
46258    }, 2353: (e3, t3, r3) => {
46259      var n2 = r3(8850).Buffer, i = r3(6505).Transform;
46260      function o(e4) {
46261        i.call(this), this._block = n2.allocUnsafe(e4), this._blockSize = e4, this._blockOffset = 0, this._length = [0, 0, 0, 0], this._finalized = false;
46262      }
46263      r3(1736)(o, i), o.prototype._transform = function(e4, t4, r4) {
46264        var n3 = null;
46265        try {
46266          this.update(e4, t4);
46267        } catch (e5) {
46268          n3 = e5;
46269        }
46270        r4(n3);
46271      }, o.prototype._flush = function(e4) {
46272        var t4 = null;
46273        try {
46274          this.push(this.digest());
46275        } catch (e5) {
46276          t4 = e5;
46277        }
46278        e4(t4);
46279      }, o.prototype.update = function(e4, t4) {
46280        if (function(e5, t5) {
46281          if (!n2.isBuffer(e5) && "string" != typeof e5)
46282            throw new TypeError("Data must be a string or a buffer");
46283        }(e4), this._finalized)
46284          throw new Error("Digest already called");
46285        n2.isBuffer(e4) || (e4 = n2.from(e4, t4));
46286        for (var r4 = this._block, i2 = 0; this._blockOffset + e4.length - i2 >= this._blockSize; ) {
46287          for (var o2 = this._blockOffset; o2 < this._blockSize; )
46288            r4[o2++] = e4[i2++];
46289          this._update(), this._blockOffset = 0;
46290        }
46291        for (; i2 < e4.length; )
46292          r4[this._blockOffset++] = e4[i2++];
46293        for (var a = 0, s = 8 * e4.length; s > 0; ++a)
46294          this._length[a] += s, (s = this._length[a] / 4294967296 | 0) > 0 && (this._length[a] -= 4294967296 * s);
46295        return this;
46296      }, o.prototype._update = function() {
46297        throw new Error("_update is not implemented");
46298      }, o.prototype.digest = function(e4) {
46299        if (this._finalized)
46300          throw new Error("Digest already called");
46301        this._finalized = true;
46302        var t4 = this._digest();
46303        void 0 !== e4 && (t4 = t4.toString(e4)), this._block.fill(0), this._blockOffset = 0;
46304        for (var r4 = 0; r4 < 4; ++r4)
46305          this._length[r4] = 0;
46306        return t4;
46307      }, o.prototype._digest = function() {
46308        throw new Error("_digest is not implemented");
46309      }, e3.exports = o;
46310    }, 7198: (e3, t3, r3) => {
46311      var n2 = t3;
46312      n2.utils = r3(4268), n2.common = r3(4696), n2.sha = r3(9310), n2.ripemd = r3(9294), n2.hmac = r3(3201), n2.sha1 = n2.sha.sha1, n2.sha256 = n2.sha.sha256, n2.sha224 = n2.sha.sha224, n2.sha384 = n2.sha.sha384, n2.sha512 = n2.sha.sha512, n2.ripemd160 = n2.ripemd.ripemd160;
46313    }, 4696: (e3, t3, r3) => {
46314      var n2 = r3(4268), i = r3(4504);
46315      function o() {
46316        this.pending = null, this.pendingTotal = 0, this.blockSize = this.constructor.blockSize, this.outSize = this.constructor.outSize, this.hmacStrength = this.constructor.hmacStrength, this.padLength = this.constructor.padLength / 8, this.endian = "big", this._delta8 = this.blockSize / 8, this._delta32 = this.blockSize / 32;
46317      }
vendor: 9,824 bytes, lines 46318-46439
46318      t3.BlockHash = o, o.prototype.update = function(e4, t4) {
46319        if (e4 = n2.toArray(e4, t4), this.pending ? this.pending = this.pending.concat(e4) : this.pending = e4, this.pendingTotal += e4.length, this.pending.length >= this._delta8) {
46320          var r4 = (e4 = this.pending).length % this._delta8;
46321          this.pending = e4.slice(e4.length - r4, e4.length), 0 === this.pending.length && (this.pending = null), e4 = n2.join32(e4, 0, e4.length - r4, this.endian);
46322          for (var i2 = 0; i2 < e4.length; i2 += this._delta32)
46323            this._update(e4, i2, i2 + this._delta32);
46324        }
46325        return this;
46326      }, o.prototype.digest = function(e4) {
46327        return this.update(this._pad()), i(null === this.pending), this._digest(e4);
46328      }, o.prototype._pad = function() {
46329        var e4 = this.pendingTotal, t4 = this._delta8, r4 = t4 - (e4 + this.padLength) % t4, n3 = new Array(r4 + this.padLength);
46330        n3[0] = 128;
46331        for (var i2 = 1; i2 < r4; i2++)
46332          n3[i2] = 0;
46333        if (e4 <<= 3, "big" === this.endian) {
46334          for (var o2 = 8; o2 < this.padLength; o2++)
46335            n3[i2++] = 0;
46336          n3[i2++] = 0, n3[i2++] = 0, n3[i2++] = 0, n3[i2++] = 0, n3[i2++] = e4 >>> 24 & 255, n3[i2++] = e4 >>> 16 & 255, n3[i2++] = e4 >>> 8 & 255, n3[i2++] = 255 & e4;
46337        } else
46338          for (n3[i2++] = 255 & e4, n3[i2++] = e4 >>> 8 & 255, n3[i2++] = e4 >>> 16 & 255, n3[i2++] = e4 >>> 24 & 255, n3[i2++] = 0, n3[i2++] = 0, n3[i2++] = 0, n3[i2++] = 0, o2 = 8; o2 < this.padLength; o2++)
46339            n3[i2++] = 0;
46340        return n3;
46341      };
46342    }, 3201: (e3, t3, r3) => {
46343      var n2 = r3(4268), i = r3(4504);
46344      function o(e4, t4, r4) {
46345        if (!(this instanceof o))
46346          return new o(e4, t4, r4);
46347        this.Hash = e4, this.blockSize = e4.blockSize / 8, this.outSize = e4.outSize / 8, this.inner = null, this.outer = null, this._init(n2.toArray(t4, r4));
46348      }
46349      e3.exports = o, o.prototype._init = function(e4) {
46350        e4.length > this.blockSize && (e4 = new this.Hash().update(e4).digest()), i(e4.length <= this.blockSize);
46351        for (var t4 = e4.length; t4 < this.blockSize; t4++)
46352          e4.push(0);
46353        for (t4 = 0; t4 < e4.length; t4++)
46354          e4[t4] ^= 54;
46355        for (this.inner = new this.Hash().update(e4), t4 = 0; t4 < e4.length; t4++)
46356          e4[t4] ^= 106;
46357        this.outer = new this.Hash().update(e4);
46358      }, o.prototype.update = function(e4, t4) {
46359        return this.inner.update(e4, t4), this;
46360      }, o.prototype.digest = function(e4) {
46361        return this.outer.update(this.inner.digest()), this.outer.digest(e4);
46362      };
46363    }, 9294: (e3, t3, r3) => {
46364      var n2 = r3(4268), i = r3(4696), o = n2.rotl32, a = n2.sum32, s = n2.sum32_3, u2 = n2.sum32_4, c2 = i.BlockHash;
46365      function f2() {
46366        if (!(this instanceof f2))
46367          return new f2();
46368        c2.call(this), this.h = [1732584193, 4023233417, 2562383102, 271733878, 3285377520], this.endian = "little";
46369      }
46370      function d2(e4, t4, r4, n3) {
46371        return e4 <= 15 ? t4 ^ r4 ^ n3 : e4 <= 31 ? t4 & r4 | ~t4 & n3 : e4 <= 47 ? (t4 | ~r4) ^ n3 : e4 <= 63 ? t4 & n3 | r4 & ~n3 : t4 ^ (r4 | ~n3);
46372      }
46373      function l2(e4) {
46374        return e4 <= 15 ? 0 : e4 <= 31 ? 1518500249 : e4 <= 47 ? 1859775393 : e4 <= 63 ? 2400959708 : 2840853838;
46375      }
46376      function h2(e4) {
46377        return e4 <= 15 ? 1352829926 : e4 <= 31 ? 1548603684 : e4 <= 47 ? 1836072691 : e4 <= 63 ? 2053994217 : 0;
46378      }
46379      n2.inherits(f2, c2), t3.ripemd160 = f2, f2.blockSize = 512, f2.outSize = 160, f2.hmacStrength = 192, f2.padLength = 64, f2.prototype._update = function(e4, t4) {
46380        for (var r4 = this.h[0], n3 = this.h[1], i2 = this.h[2], c3 = this.h[3], f3 = this.h[4], v2 = r4, g2 = n3, w2 = i2, A2 = c3, k2 = f3, _ = 0; _ < 80; _++) {
46381          var S2 = a(o(u2(r4, d2(_, n3, i2, c3), e4[p2[_] + t4], l2(_)), y2[_]), f3);
46382          r4 = f3, f3 = c3, c3 = o(i2, 10), i2 = n3, n3 = S2, S2 = a(o(u2(v2, d2(79 - _, g2, w2, A2), e4[b2[_] + t4], h2(_)), m2[_]), k2), v2 = k2, k2 = A2, A2 = o(w2, 10), w2 = g2, g2 = S2;
46383        }
46384        S2 = s(this.h[1], i2, A2), this.h[1] = s(this.h[2], c3, k2), this.h[2] = s(this.h[3], f3, v2), this.h[3] = s(this.h[4], r4, g2), this.h[4] = s(this.h[0], n3, w2), this.h[0] = S2;
46385      }, f2.prototype._digest = function(e4) {
46386        return "hex" === e4 ? n2.toHex32(this.h, "little") : n2.split32(this.h, "little");
46387      };
46388      var p2 = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8, 3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12, 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2, 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13], b2 = [5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12, 6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2, 15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13, 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, 14, 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11], y2 = [11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8, 7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12, 11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5, 11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, 5, 12, 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6], m2 = [8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6, 9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11, 9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5, 15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, 5, 15, 8, 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11];
46389    }, 9310: (e3, t3, r3) => {
46390      t3.sha1 = r3(8142), t3.sha224 = r3(4909), t3.sha256 = r3(7682), t3.sha384 = r3(4532), t3.sha512 = r3(6515);
46391    }, 8142: (e3, t3, r3) => {
46392      var n2 = r3(4268), i = r3(4696), o = r3(70), a = n2.rotl32, s = n2.sum32, u2 = n2.sum32_5, c2 = o.ft_1, f2 = i.BlockHash, d2 = [1518500249, 1859775393, 2400959708, 3395469782];
46393      function l2() {
46394        if (!(this instanceof l2))
46395          return new l2();
46396        f2.call(this), this.h = [1732584193, 4023233417, 2562383102, 271733878, 3285377520], this.W = new Array(80);
46397      }
46398      n2.inherits(l2, f2), e3.exports = l2, l2.blockSize = 512, l2.outSize = 160, l2.hmacStrength = 80, l2.padLength = 64, l2.prototype._update = function(e4, t4) {
46399        for (var r4 = this.W, n3 = 0; n3 < 16; n3++)
46400          r4[n3] = e4[t4 + n3];
46401        for (; n3 < r4.length; n3++)
46402          r4[n3] = a(r4[n3 - 3] ^ r4[n3 - 8] ^ r4[n3 - 14] ^ r4[n3 - 16], 1);
46403        var i2 = this.h[0], o2 = this.h[1], f3 = this.h[2], l3 = this.h[3], h2 = this.h[4];
46404        for (n3 = 0; n3 < r4.length; n3++) {
46405          var p2 = ~~(n3 / 20), b2 = u2(a(i2, 5), c2(p2, o2, f3, l3), h2, r4[n3], d2[p2]);
46406          h2 = l3, l3 = f3, f3 = a(o2, 30), o2 = i2, i2 = b2;
46407        }
46408        this.h[0] = s(this.h[0], i2), this.h[1] = s(this.h[1], o2), this.h[2] = s(this.h[2], f3), this.h[3] = s(this.h[3], l3), this.h[4] = s(this.h[4], h2);
46409      }, l2.prototype._digest = function(e4) {
46410        return "hex" === e4 ? n2.toHex32(this.h, "big") : n2.split32(this.h, "big");
46411      };
46412    }, 4909: (e3, t3, r3) => {
46413      var n2 = r3(4268), i = r3(7682);
46414      function o() {
46415        if (!(this instanceof o))
46416          return new o();
46417        i.call(this), this.h = [3238371032, 914150663, 812702999, 4144912697, 4290775857, 1750603025, 1694076839, 3204075428];
46418      }
46419      n2.inherits(o, i), e3.exports = o, o.blockSize = 512, o.outSize = 224, o.hmacStrength = 192, o.padLength = 64, o.prototype._digest = function(e4) {
46420        return "hex" === e4 ? n2.toHex32(this.h.slice(0, 7), "big") : n2.split32(this.h.slice(0, 7), "big");
46421      };
46422    }, 7682: (e3, t3, r3) => {
46423      var n2 = r3(4268), i = r3(4696), o = r3(70), a = r3(4504), s = n2.sum32, u2 = n2.sum32_4, c2 = n2.sum32_5, f2 = o.ch32, d2 = o.maj32, l2 = o.s0_256, h2 = o.s1_256, p2 = o.g0_256, b2 = o.g1_256, y2 = i.BlockHash, m2 = [1116352408, 1899447441, 3049323471, 3921009573, 961987163, 1508970993, 2453635748, 2870763221, 3624381080, 310598401, 607225278, 1426881987, 1925078388, 2162078206, 2614888103, 3248222580, 3835390401, 4022224774, 264347078, 604807628, 770255983, 1249150122, 1555081692, 1996064986, 2554220882, 2821834349, 2952996808, 3210313671, 3336571891, 3584528711, 113926993, 338241895, 666307205, 773529912, 1294757372, 1396182291, 1695183700, 1986661051, 2177026350, 2456956037, 2730485921, 2820302411, 3259730800, 3345764771, 3516065817, 3600352804, 4094571909, 275423344, 430227734, 506948616, 659060556, 883997877, 958139571, 1322822218, 1537002063, 1747873779, 1955562222, 2024104815, 2227730452, 2361852424, 2428436474, 2756734187, 3204031479, 3329325298];
46424      function v2() {
46425        if (!(this instanceof v2))
46426          return new v2();
46427        y2.call(this), this.h = [1779033703, 3144134277, 1013904242, 2773480762, 1359893119, 2600822924, 528734635, 1541459225], this.k = m2, this.W = new Array(64);
46428      }
46429      n2.inherits(v2, y2), e3.exports = v2, v2.blockSize = 512, v2.outSize = 256, v2.hmacStrength = 192, v2.padLength = 64, v2.prototype._update = function(e4, t4) {
46430        for (var r4 = this.W, n3 = 0; n3 < 16; n3++)
46431          r4[n3] = e4[t4 + n3];
46432        for (; n3 < r4.length; n3++)
46433          r4[n3] = u2(b2(r4[n3 - 2]), r4[n3 - 7], p2(r4[n3 - 15]), r4[n3 - 16]);
46434        var i2 = this.h[0], o2 = this.h[1], y3 = this.h[2], m3 = this.h[3], v3 = this.h[4], g2 = this.h[5], w2 = this.h[6], A2 = this.h[7];
46435        for (a(this.k.length === r4.length), n3 = 0; n3 < r4.length; n3++) {
46436          var k2 = c2(A2, h2(v3), f2(v3, g2, w2), this.k[n3], r4[n3]), _ = s(l2(i2), d2(i2, o2, y3));
46437          A2 = w2, w2 = g2, g2 = v3, v3 = s(m3, k2), m3 = y3, y3 = o2, o2 = i2, i2 = s(k2, _);
46438        }
46439        this.h[0] = s(this.h[0], i2), this.h[1] = s(this.h[1], o2), this.h[2] = s(this.h[2], y3), this.h[3] 
46439= s(this.h[3], m3), this.h[4] = s(this.h[4], v3), this.h[5] = s(this.h[5], g2), this.h[6] = s(this.h[6], w2), this.h[7] = s(this.h[7], A2);
46440      }, v2.prototype._digest = function(e4) {
46441        return "hex" === e4 ? n2.toHex32(this.h, "big") : n2.split32(this.h, "big");
46442      };
46443    }, 4532: (e3, t3, r3) => {
46444      var n2 = r3(4268), i = r3(6515);
46445      function o() {
46446        if (!(this instanceof o))
46447          return new o();
46448        i.call(this), this.h = [3418070365, 3238371032, 1654270250, 914150663, 2438529370, 812702999, 355462360, 4144912697, 1731405415, 4290775857, 2394180231, 1750603025, 3675008525, 1694076839, 1203062813, 3204075428];
46449      }
46450      n2.inherits(o, i), e3.exports = o, o.blockSize = 1024, o.outSize = 384, o.hmacStrength = 192, o.padLength = 128, o.prototype._digest = function(e4) {
46451        return "hex" === e4 ? n2.toHex32(this.h.slice(0, 12), "big") : n2.split32(this.h.slice(0, 12), "big");
46452      };
46453    }, 6515: (e3, t3, r3) => {
46454      var n2 = r3(4268), i = r3(4696), o = r3(4504), a = n2.rotr64_hi, s = n2.rotr64_lo, u2 = n2.shr64_hi, c2 = n2.shr64_lo, f2 = n2.sum64, d2 = n2.sum64_hi, l2 = n2.sum64_lo, h2 = n2.sum64_4_hi, p2 = n2.sum64_4_lo, b2 = n2.sum64_5_hi, y2 = n2.sum64_5_lo, m2 = i.BlockHash, v2 = [1116352408, 3609767458, 1899447441, 602891725, 3049323471, 3964484399, 3921009573, 2173295548, 961987163, 4081628472, 1508970993, 3053834265, 2453635748, 2937671579, 2870763221, 3664609560, 3624381080, 2734883394, 310598401, 1164996542, 607225278, 1323610764, 1426881987, 3590304994, 1925078388, 4068182383, 2162078206, 991336113, 2614888103, 633803317, 3248222580, 3479774868, 3835390401, 2666613458, 4022224774, 944711139, 264347078, 2341262773, 604807628, 2007800933, 770255983, 1495990901, 1249150122, 1856431235, 1555081692, 3175218132, 1996064986, 2198950837, 2554220882, 3999719339, 2821834349, 766784016, 2952996808, 2566594879, 3210313671, 3203337956, 3336571891, 1034457026, 3584528711, 2466948901, 113926993, 3758326383, 338241895, 168717936, 666307205, 1188179964, 773529912, 1546045734, 1294757372, 1522805485, 1396182291, 2643833823, 1695183700, 2343527390, 1986661051, 1014477480, 2177026350, 1206759142, 2456956037, 344077627, 2730485921, 1290863460, 2820302411, 3158454273, 3259730800, 3505952657, 3345764771, 106217008, 3516065817, 3606008344, 3600352804, 1432725776, 4094571909, 1467031594, 275423344, 851169720, 430227734, 3100823752, 506948616, 1363258195, 659060556, 3750685593, 883997877, 3785050280, 958139571, 3318307427, 1322822218, 3812723403, 1537002063, 2003034995, 1747873779, 3602036899, 1955562222, 1575990012, 2024104815, 1125592928, 2227730452, 2716904306, 2361852424, 442776044, 2428436474, 593698344, 2756734187, 3733110249, 3204031479, 2999351573, 3329325298, 3815920427, 3391569614, 3928383900, 3515267271, 566280711, 3940187606, 3454069534, 4118630271, 4000239992, 116418474, 1914138554, 174292421, 2731055270, 289380356, 3203993006, 460393269, 320620315, 685471733, 587496836, 852142971, 1086792851, 1017036298, 365543100, 1126000580, 2618297676, 1288033470, 3409855158, 1501505948, 4234509866, 1607167915, 987167468, 1816402316, 1246189591];
46455      function g2() {
46456        if (!(this instanceof g2))
46457          return new g2();
46458        m2.call(this), this.h = [1779033703, 4089235720, 3144134277, 2227873595, 1013904242, 4271175723, 2773480762, 1595750129, 1359893119, 2917565137, 2600822924, 725511199, 528734635, 4215389547, 1541459225, 327033209], this.k = v2, this.W = new Array(160);
46459      }
46460      function w2(e4, t4, r4, n3, i2) {
46461        var o2 = e4 & r4 ^ ~e4 & i2;
46462        return o2 < 0 && (o2 += 4294967296), o2;
46463      }
46464      function A2(e4, t4, r4, n3, i2, o2) {
46465        var a2 = t4 & n3 ^ ~t4 & o2;
46466        return a2 < 0 && (a2 += 4294967296), a2;
46467      }
46468      function k2(e4, t4, r4, n3, i2) {
46469        var o2 = e4 & r4 ^ e4 & i2 ^ r4 & i2;
46470        return o2 < 0 && (o2 += 4294967296), o2;
46471      }
46472      function _(e4, t4, r4, n3, i2, o2) {
46473        var a2 = t4 & n3 ^ t4 & o2 ^ n3 & o2;
46474        return a2 < 0 && (a2 += 4294967296), a2;
46475      }
46476      function S2(e4, t4) {
46477        var r4 = a(e4, t4, 28) ^ a(t4, e4, 2) ^ a(t4, e4, 7);
46478        return r4 < 0 && (r4 += 4294967296), r4;
46479      }
46480      function x2(e4, t4) {
46481        var r4 = s(e4, t4, 28) ^ s(t4, e4, 2) ^ s(t4, e4, 7);
46482        return r4 < 0 && (r4 += 4294967296), r4;
46483      }
46484      function E2(e4, t4) {
46485        var r4 = s(e4, t4, 14) ^ s(e4, t4, 18) ^ s(t4, e4, 9);
46486        return r4 < 0 && (r4 += 4294967296), r4;
46487      }
46488      function P2(e4, t4) {
46489        var r4 = a(e4, t4, 1) ^ a(e4, t4, 8) ^ u2(e4, t4, 7);
46490        return r4 < 0 && (r4 += 4294967296), r4;
46491      }
46492      function O2(e4, t4) {
46493        var r4 = s(e4, t4, 1) ^ s(e4, t4, 8) ^ c2(e4, t4, 7);
46494        return r4 < 0 && (r4 += 4294967296), r4;
46495      }
46496      function B2(e4, t4) {
46497        var r4 = s(e4, t4, 19) ^ s(t4, e4, 29) ^ c2(e4, t4, 6);
46498        return r4 < 0 && (r4 += 4294967296), r4;
46499      }
46500      n2.inherits(g2, m2), e3.exports = g2, g2.blockSize = 1024, g2.outSize = 512, g2.hmacStrength = 192, g2.padLength = 128, g2.prototype._prepareBlock = function(e4, t4) {
46501        for (var r4 = this.W, n3 = 0; n3 < 32; n3++)
46502          r4[n3] = e4[t4 + n3];
46503        for (; n3 < r4.length; n3 += 2) {
46504          var i2 = (y3 = r4[n3 - 4], m3 = r4[n3 - 3], v3 = void 0, (v3 = a(y3, m3, 19) ^ a(m3, y3, 29) ^ u2(y3, m3, 6)) < 0 && (v3 += 4294967296), v3), o2 = B2(r4[n3 - 4], r4[n3 - 3]), s2 = r4[n3 - 14], c3 = r4[n3 - 13], f3 = P2(r4[n3 - 30], r4[n3 - 29]), d3 = O2(r4[n3 - 30], r4[n3 - 29]), l3 = r4[n3 - 32], b3 = r4[n3 - 31];
46505          r4[n3] = h2(i2, o2, s2, c3, f3, d3, l3, b3), r4[n3 + 1] = p2(i2, o2, s2, c3, f3, d3, l3, b3);
46506        }
46507        var y3, m3, v3;
46508      }, g2.prototype._update = function(e4, t4) {
46509        this._prepareBlock(e4, t4);
46510        var r4, n3, i2, s2 = this.W, u3 = this.h[0], c3 = this.h[1], h3 = this.h[2], p3 = this.h[3], m3 = this.h[4], v3 = this.h[5], g3 = this.h[6], P3 = this.h[7], O3 = this.h[8], B3 = this.h[9], T2 = this.h[10], C2 = this.h[11], I2 = this.h[12], M2 = this.h[13], U2 = this.h[14], R2 = this.h[15];
46511        o(this.k.length === s2.length);
46512        for (var j = 0; j < s2.length; j += 2) {
46513          var N2 = U2, F2 = R2, L2 = (i2 = void 0, (i2 = a(r4 = O3, n3 = B3, 
vendor: 12,464 bytes, lines 46513-46688
4651314) ^ a(r4, n3, 18) ^ a(n3, r4, 9)) < 0 && (i2 += 4294967296), i2), D2 = E2(O3, B3), H2 = w2(O3, 0, T2, 0, I2), q2 = A2(0, B3, 0, C2, 0, M2), z2 = this.k[j], G2 = this.k[j + 1], K2 = s2[j], V2 = s2[j + 1], J2 = b2(N2, F2, L2, D2, H2, q2, z2, G2, K2, V2), W2 = y2(N2, F2, L2, D2, H2, q2, z2, G2, K2, V2);
46514          N2 = S2(u3, c3), F2 = x2(u3, c3), L2 = k2(u3, 0, h3, 0, m3), D2 = _(0, c3, 0, p3, 0, v3);
46515          var Y2 = d2(N2, F2, L2, D2), X2 = l2(N2, F2, L2, D2);
46516          U2 = I2, R2 = M2, I2 = T2, M2 = C2, T2 = O3, C2 = B3, O3 = d2(g3, P3, J2, W2), B3 = l2(P3, P3, J2, W2), g3 = m3, P3 = v3, m3 = h3, v3 = p3, h3 = u3, p3 = c3, u3 = d2(J2, W2, Y2, X2), c3 = l2(J2, W2, Y2, X2);
46517        }
46518        f2(this.h, 0, u3, c3), f2(this.h, 2, h3, p3), f2(this.h, 4, m3, v3), f2(this.h, 6, g3, P3), f2(this.h, 8, O3, B3), f2(this.h, 10, T2, C2), f2(this.h, 12, I2, M2), f2(this.h, 14, U2, R2);
46519      }, g2.prototype._digest = function(e4) {
46520        return "hex" === e4 ? n2.toHex32(this.h, "big") : n2.split32(this.h, "big");
46521      };
46522    }, 70: (e3, t3, r3) => {
46523      var n2 = r3(4268).rotr32;
46524      function i(e4, t4, r4) {
46525        return e4 & t4 ^ ~e4 & r4;
46526      }
46527      function o(e4, t4, r4) {
46528        return e4 & t4 ^ e4 & r4 ^ t4 & r4;
46529      }
46530      function a(e4, t4, r4) {
46531        return e4 ^ t4 ^ r4;
46532      }
46533      t3.ft_1 = function(e4, t4, r4, n3) {
46534        return 0 === e4 ? i(t4, r4, n3) : 1 === e4 || 3 === e4 ? a(t4, r4, n3) : 2 === e4 ? o(t4, r4, n3) : void 0;
46535      }, t3.ch32 = i, t3.maj32 = o, t3.p32 = a, t3.s0_256 = function(e4) {
46536        return n2(e4, 2) ^ n2(e4, 13) ^ n2(e4, 22);
46537      }, t3.s1_256 = function(e4) {
46538        return n2(e4, 6) ^ n2(e4, 11) ^ n2(e4, 25);
46539      }, t3.g0_256 = function(e4) {
46540        return n2(e4, 7) ^ n2(e4, 18) ^ e4 >>> 3;
46541      }, t3.g1_256 = function(e4) {
46542        return n2(e4, 17) ^ n2(e4, 19) ^ e4 >>> 10;
46543      };
46544    }, 4268: (e3, t3, r3) => {
46545      var n2 = r3(4504), i = r3(1736);
46546      function o(e4, t4) {
46547        return 55296 == (64512 & e4.charCodeAt(t4)) && !(t4 < 0 || t4 + 1 >= e4.length) && 56320 == (64512 & e4.charCodeAt(t4 + 1));
46548      }
46549      function a(e4) {
46550        return (e4 >>> 24 | e4 >>> 8 & 65280 | e4 << 8 & 16711680 | (255 & e4) << 24) >>> 0;
46551      }
46552      function s(e4) {
46553        return 1 === e4.length ? "0" + e4 : e4;
46554      }
46555      function u2(e4) {
46556        return 7 === e4.length ? "0" + e4 : 6 === e4.length ? "00" + e4 : 5 === e4.length ? "000" + e4 : 4 === e4.length ? "0000" + e4 : 3 === e4.length ? "00000" + e4 : 2 === e4.length ? "000000" + e4 : 1 === e4.length ? "0000000" + e4 : e4;
46557      }
46558      t3.inherits = i, t3.toArray = function(e4, t4) {
46559        if (Array.isArray(e4))
46560          return e4.slice();
46561        if (!e4)
46562          return [];
46563        var r4 = [];
46564        if ("string" == typeof e4)
46565          if (t4) {
46566            if ("hex" === t4)
46567              for ((e4 = e4.replace(/[^a-z0-9]+/gi, "")).length % 2 != 0 && (e4 = "0" + e4), i2 = 0; i2 < e4.length; i2 += 2)
46568                r4.push(parseInt(e4[i2] + e4[i2 + 1], 16));
46569          } else
46570            for (var n3 = 0, i2 = 0; i2 < e4.length; i2++) {
46571              var a2 = e4.charCodeAt(i2);
46572              a2 < 128 ? r4[n3++] = a2 : a2 < 2048 ? (r4[n3++] = a2 >> 6 | 192, r4[n3++] = 63 & a2 | 128) : o(e4, i2) ? (a2 = 65536 + ((1023 & a2) << 10) + (1023 & e4.charCodeAt(++i2)), r4[n3++] = a2 >> 18 | 240, r4[n3++] = a2 >> 12 & 63 | 128, r4[n3++] = a2 >> 6 & 63 | 128, r4[n3++] = 63 & a2 | 128) : (r4[n3++] = a2 >> 12 | 224, r4[n3++] = a2 >> 6 & 63 | 128, r4[n3++] = 63 & a2 | 128);
46573            }
46574        else
46575          for (i2 = 0; i2 < e4.length; i2++)
46576            r4[i2] = 0 | e4[i2];
46577        return r4;
46578      }, t3.toHex = function(e4) {
46579        for (var t4 = "", r4 = 0; r4 < e4.length; r4++)
46580          t4 += s(e4[r4].toString(16));
46581        return t4;
46582      }, t3.htonl = a, t3.toHex32 = function(e4, t4) {
46583        for (var r4 = "", n3 = 0; n3 < e4.length; n3++) {
46584          var i2 = e4[n3];
46585          "little" === t4 && (i2 = a(i2)), r4 += u2(i2.toString(16));
46586        }
46587        return r4;
46588      }, t3.zero2 = s, t3.zero8 = u2, t3.join32 = function(e4, t4, r4, i2) {
46589        var o2 = r4 - t4;
46590        n2(o2 % 4 == 0);
46591        for (var a2 = new Array(o2 / 4), s2 = 0, u3 = t4; s2 < a2.length; s2++, u3 += 4) {
46592          var c2;
46593          c2 = "big" === i2 ? e4[u3] << 24 | e4[u3 + 1] << 16 | e4[u3 + 2] << 8 | e4[u3 + 3] : e4[u3 + 3] << 24 | e4[u3 + 2] << 16 | e4[u3 + 1] << 8 | e4[u3], a2[s2] = c2 >>> 0;
46594        }
46595        return a2;
46596      }, t3.split32 = function(e4, t4) {
46597        for (var r4 = new Array(4 * e4.length), n3 = 0, i2 = 0; n3 < e4.length; n3++, i2 += 4) {
46598          var o2 = e4[n3];
46599          "big" === t4 ? (r4[i2] = o2 >>> 24, r4[i2 + 1] = o2 >>> 16 & 255, r4[i2 + 2] = o2 >>> 8 & 255, r4[i2 + 3] = 255 & o2) : (r4[i2 + 3] = o2 >>> 24, r4[i2 + 2] = o2 >>> 16 & 255, r4[i2 + 1] = o2 >>> 8 & 255, r4[i2] = 255 & o2);
46600        }
46601        return r4;
46602      }, t3.rotr32 = function(e4, t4) {
46603        return e4 >>> t4 | e4 << 32 - t4;
46604      }, t3.rotl32 = function(e4, t4) {
46605        return e4 << t4 | e4 >>> 32 - t4;
46606      }, t3.sum32 = function(e4, t4) {
46607        return e4 + t4 >>> 0;
46608      }, t3.sum32_3 = function(e4, t4, r4) {
46609        return e4 + t4 + r4 >>> 0;
46610      }, t3.sum32_4 = function(e4, t4, r4, n3) {
46611        return e4 + t4 + r4 + n3 >>> 0;
46612      }, t3.sum32_5 = function(e4, t4, r4, n3, i2) {
46613        return e4 + t4 + r4 + n3 + i2 >>> 0;
46614      }, t3.sum64 = function(e4, t4, r4, n3) {
46615        var i2 = e4[t4], o2 = n3 + e4[t4 + 1] >>> 0, a2 = (o2 < n3 ? 1 : 0) + r4 + i2;
46616        e4[t4] = a2 >>> 0, e4[t4 + 1] = o2;
46617      }, t3.sum64_hi = function(e4, t4, r4, n3) {
46618        return (t4 + n3 >>> 0 < t4 ? 1 : 0) + e4 + r4 >>> 0;
46619      }, t3.sum64_lo = function(e4, t4, r4, n3) {
46620        return t4 + n3 >>> 0;
46621      }, t3.sum64_4_hi = function(e4, t4, r4, n3, i2, o2, a2, s2) {
46622        var u3 = 0, c2 = t4;
46623        return u3 += (c2 = c2 + n3 >>> 0) < t4 ? 1 : 0, u3 += (c2 = c2 + o2 >>> 0) < o2 ? 1 : 0, e4 + r4 + i2 + a2 + (u3 += (c2 = c2 + s2 >>> 0) < s2 ? 1 : 0) >>> 0;
46624      }, t3.sum64_4_lo = function(e4, t4, r4, n3, i2, o2, a2, s2) {
46625        return t4 + n3 + o2 + s2 >>> 0;
46626      }, t3.sum64_5_hi = function(e4, t4, r4, n3, i2, o2, a2, s2, u3, c2) {
46627        var f2 = 0, d2 = t4;
46628        return f2 += (d2 = d2 + n3 >>> 0) < t4 ? 1 : 0, f2 += (d2 = d2 + o2 >>> 0) < o2 ? 1 : 0, f2 += (d2 = d2 + s2 >>> 0) < s2 ? 1 : 0, e4 + r4 + i2 + a2 + u3 + (f2 += (d2 = d2 + c2 >>> 0) < c2 ? 1 : 0) >>> 0;
46629      }, t3.sum64_5_lo = function(e4, t4, r4, n3, i2, o2, a2, s2, u3, c2) {
46630        return t4 + n3 + o2 + s2 + c2 >>> 0;
46631      }, t3.rotr64_hi = function(e4, t4, r4) {
46632        return (t4 << 32 - r4 | e4 >>> r4) >>> 0;
46633      }, t3.rotr64_lo = function(e4, t4, r4) {
46634        return (e4 << 32 - r4 | t4 >>> r4) >>> 0;
46635      }, t3.shr64_hi = function(e4, t4, r4) {
46636        return e4 >>> r4;
46637      }, t3.shr64_lo = function(e4, t4, r4) {
46638        return (e4 << 32 - r4 | t4 >>> r4) >>> 0;
46639      };
46640    }, 9410: (e3, t3, r3) => {
46641      var n2 = r3(7198), i = r3(6580), o = r3(4504);
46642      function a(e4) {
46643        if (!(this instanceof a))
46644          return new a(e4);
46645        this.hash = e4.hash, this.predResist = !!e4.predResist, this.outLen = this.hash.outSize, this.minEntropy = e4.minEntropy || this.hash.hmacStrength, this._reseed = null, this.reseedInterval = null, this.K = null, this.V = null;
46646        var t4 = i.toArray(e4.entropy, e4.entropyEnc || "hex"), r4 = i.toArray(e4.nonce, e4.nonceEnc || "hex"), n3 = i.toArray(e4.pers, e4.persEnc || "hex");
46647        o(t4.length >= this.minEntropy / 8, "Not enough entropy. Minimum is: " + this.minEntropy + " bits"), this._init(t4, r4, n3);
46648      }
46649      e3.exports = a, a.prototype._init = function(e4, t4, r4) {
46650        var n3 = e4.concat(t4).concat(r4);
46651        this.K = new Array(this.outLen / 8), this.V = new Array(this.outLen / 8);
46652        for (var i2 = 0; i2 < this.V.length; i2++)
46653          this.K[i2] = 0, this.V[i2] = 1;
46654        this._update(n3), this._reseed = 1, this.reseedInterval = 281474976710656;
46655      }, a.prototype._hmac = function() {
46656        return new n2.hmac(this.hash, this.K);
46657      }, a.prototype._update = function(e4) {
46658        var t4 = this._hmac().update(this.V).update([0]);
46659        e4 && (t4 = t4.update(e4)), this.K = t4.digest(), this.V = this._hmac().update(this.V).digest(), e4 && (this.K = this._hmac().update(this.V).update([1]).update(e4).digest(), this.V = this._hmac().update(this.V).digest());
46660      }, a.prototype.reseed = function(e4, t4, r4, n3) {
46661        "string" != typeof t4 && (n3 = r4, r4 = t4, t4 = null), e4 = i.toArray(e4, t4), r4 = i.toArray(r4, n3), o(e4.length >= this.minEntropy / 8, "Not enough entropy. Minimum is: " + this.minEntropy + " bits"), this._update(e4.concat(r4 || [])), this._reseed = 1;
46662      }, a.prototype.generate = function(e4, t4, r4, n3) {
46663        if (this._reseed > this.reseedInterval)
46664          throw new Error("Reseed is required");
46665        "string" != typeof t4 && (n3 = r4, r4 = t4, t4 = null), r4 && (r4 = i.toArray(r4, n3 || "hex"), this._update(r4));
46666        for (var o2 = []; o2.length < e4; )
46667          this.V = this._hmac().update(this.V).digest(), o2 = o2.concat(this.V);
46668        var a2 = o2.slice(0, e4);
46669        return this._update(r4), this._reseed++, i.encode(a2, t4);
46670      };
46671    }, 912: (e3, t3, r3) => {
46672      var n2 = r3(9519), i = r3(1143), o = e3.exports;
46673      for (var a in n2)
46674        n2.hasOwnProperty(a) && (o[a] = n2[a]);
46675      function s(e4) {
46676        if ("string" == typeof e4 && (e4 = i.parse(e4)), e4.protocol || (e4.protocol = "https:"), "https:" !== e4.protocol)
46677          throw new Error('Protocol "' + e4.protocol + '" not supported. Expected "https:"');
46678        return e4;
46679      }
46680      o.request = function(e4, t4) {
46681        return e4 = s(e4), n2.request.call(this, e4, t4);
46682      }, o.get = function(e4, t4) {
46683        return e4 = s(e4), n2.get.call(this, e4, t4);
46684      };
46685    }, 2996: (e3, t3, r3) => {
46686      var n2;
46687      r3(8847)(r3(3355)), void 0 === (n2 = function() {
46688        return e4 = [new Uint32Array([2157250, 2157314, 2157378, 2157442, 2157506, 2157570, 2157634, 0, 2157698, 2157762, 2157826, 2157890, 2157954, 0, 2158018, 0]), new Uint32Array([2179041, 6291456, 2179073, 6291456, 2179105, 6291456, 2179137, 6291456, 2179169, 6291456, 2179201, 6291456, 2179233, 6291456, 2179265, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 14680064, 14680064, 14680064, 14680064, 14680064]), new Uint32Array([0, 2113729, 2197345, 2197377, 2113825, 2197409, 2197441, 2113921, 2197473, 2114017, 2197505, 2197537, 2197569, 2197601, 2197633, 2197665]), new Uint32Array([6291456, 6291456, 6291456, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 6291456, 23068672, 23068672, 0, 0]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 0, 0, 0, 0, 23068672, 23068672, 23068672, 0, 0, 0, 0, 23068672]), new Uint32Array([14680064, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 14680064, 14680064]), new Uint32Array([2196001, 2196033, 2196065, 2196097, 2196129, 2196161, 2196193, 2196225, 2196257, 2196289, 2196321, 2196353, 2196385, 2196417, 2196449, 2196481]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 6291456, 0, 0, 0, 0, 0]), new Uint32Array([2097281, 2105921, 2097729, 2106081, 0, 2097601, 2162337, 2106017, 2133281, 2097505, 2105889, 2097185, 2097697, 2135777, 2097633, 2097441]), new Uint32Array([2177025, 6291456, 2177057, 6291456, 2177089, 6291456, 2177121, 6291456, 2177153, 6291456, 2177185, 6291456, 2177217, 6291456, 2177249, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 0, 6291456, 6291456, 0, 0, 0, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 6291456]), new Uint32Array([0, 23068672, 23068672, 23068672, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 0, 6291456]), new Uint32Array([2134435, 2134531, 2134627, 2134723, 2134723, 2134819, 2134819, 2134915, 2134915, 2135011, 2105987, 2135107, 2135203, 2135299, 2131587, 2135395
46688]), new Uint32Array([0, 0, 0, 0, 0, 0, 0, 6291456, 2168673, 2169249, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2147906, 2147970, 2148034, 2148098, 2148162, 2148226, 2148290, 2148354, 2147906, 2147970, 2148034, 2148098, 2148162, 2148226, 2148290, 2148354]), new Uint32Array([2125219, 2125315, 2152834, 2152898, 2125411, 2152962, 2153026, 2125506, 2125507, 2125603, 2153090, 2153154, 2153218, 2153282, 2153346, 2105348]), new Uint32Array([2203393, 6291456, 2203425, 6291456, 2203457, 6291456, 2203489, 6291456, 6291456, 6291456, 6291456, 2203521, 6291456, 2181281, 6291456, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([6291456, 23068672, 6291456, 2145538, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 0, 0, 0, 0, 6291456]), new Uint32Array([2139426, 2160834, 2160898, 2160962, 2134242, 2161026, 2161090, 2161154, 2161218, 2161282, 2161346, 2161410, 2138658, 2161474, 2161538, 2134722]), new Uint32Array([2119939, 2124930, 2125026, 2106658, 2125218, 2128962, 2129058, 2129154, 2129250, 2129346, 2129442, 2108866, 2108770, 2150466, 2150530, 2150594]), new Uint32Array([2201601, 6291456, 2201633, 6291456, 2201665, 6291456, 2201697, 6291456, 2201729, 6291456, 2201761, 6291456, 2201793, 6291456, 2201825, 6291456]), new Uint32Array([2193537, 2193569, 2193601, 2193633, 2193665, 2193697, 2193729, 2193761, 2193793, 2193825, 2193857, 2193889, 2193921, 2193953, 2193985, 2194017]), new Uint32Array([6291456, 23068672, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([0, 6291456, 6291456, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([2190561, 6291456, 2190593, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 2190625, 6291456, 2190657, 6291456, 23068672]), new Uint32Array([2215905, 2215937, 2215969, 2216001, 2216033, 2216065, 2216097, 2216129, 2216161, 2216193, 2216225, 2216257, 2105441, 2216289, 2216321, 2216353]), new Uint32Array([23068672, 18884130, 23068672, 23068672, 23068672, 6291456, 23068672, 23068672, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 23068672]), new Uint32Array([23068672, 23068672, 0, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([6291456, 6291456, 23068672, 23068672, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([2191233, 2191265, 2191297, 2191329, 2191361, 2191393, 2191425, 2117377, 2191457, 2191489, 2191521, 2191553, 2191585, 2191617, 2191649, 2117953]), new Uint32Array([2132227, 2132323, 2132419, 2132419, 2132515, 2132515, 2132611, 2132707, 2132707, 2132803, 2132899, 2132899, 2132995, 2132995, 2133091, 2133187]), new Uint32Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([23068672, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 23068672, 6291456, 0, 0]), new Uint32Array([2112481, 2112577, 2098177, 2098305, 2108321, 2108289, 2100865, 2113153, 2108481, 2113345, 2113441, 10609889, 10610785, 10609921, 10610817, 2222241]), new Uint32Array([6291456, 6291456, 6291456, 23068672, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 0, 0]), new Uint32Array([2219969, 2157121, 2157441, 2157505, 2157889, 2157953, 2220001, 2158465, 2158529, 10575617, 2156994, 2157058, 2129923, 2130019, 2157122, 2157186]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 0, 0, 0, 0, 0]), new Uint32Array([2185249, 6291456, 2185281, 6291456, 2185313, 6291456, 2185345, 6291456, 2185377, 6291456, 2185409, 6291456, 2185441, 6291456, 2185473, 6291456]), new Uint32Array([0, 0, 0, 0, 6291456, 6291456, 6291456, 6291456, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([6291456, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 0, 0, 23068672, 23068672, 0, 0, 23068672, 23068672, 23068672, 6291456, 0]), new Uint32Array([2183361, 6291456, 2183393, 6291456, 2183425, 6291456, 2183457, 6291456, 2183489, 6291456, 2183521, 6291456, 2183553, 6291456, 2183585, 6291456]), new Uint32Array([2192161, 2192193, 2192225, 2192257, 2192289, 2192321, 2192353, 2192385, 2192417, 2192449, 2192481, 2192513, 2192545, 2192577, 2192609, 2192641]), new Uint32Array([2212001, 2212033, 2212065, 2212097, 2212129, 2212161, 2212193, 2212225, 2212257, 2212289, 2212321, 2212353, 2212385, 2212417, 2212449, 2207265]), new Uint32Array([2249825, 2249857, 2249889, 2249921, 2249954, 2250018, 2250082, 2250145, 2250177, 2250209, 2250241, 2250274, 2250337, 2250370, 2250433, 2250465]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 2147905, 2147969, 2148033, 2148097, 2148161, 2148225, 2148289, 2148353]), new Uint32Array([10485857, 6291456, 2197217, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 0, 23068672, 23068672]), new Uint32Array([0, 23068672, 23068672, 23068672, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 6291456, 6291456]), new Uint32Array([2180353, 2180385, 2144033, 2180417, 2180449, 2180481, 2180513, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2112481, 2112577, 2098177, 2098305, 2108321, 2108289, 2100865, 2113153, 2108481, 2113345, 2113441, 10610209, 106104
4668865, 10610241, 10610753, 10609857]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 0, 0]), new Uint32Array([2223842, 2223906, 2223970, 2224034, 2224098, 2224162, 2224226, 2224290, 2224354, 2224418, 2224482, 2224546, 2224610, 2224674, 2224738, 2224802]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 23068672, 23068672, 6291456, 23068672, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 6291456]), new Uint32Array([23068672, 23068672, 23068672, 18923650, 23068672, 23068672, 23068672, 23068672, 0, 23068672, 23068672, 23068672, 23068672, 18923714, 23068672, 23068672]), new Uint32Array([2126179, 2125538, 2126275, 2126371, 2126467, 2125634, 2126563, 2105603, 2105604, 2125346, 2126659, 2126755, 2126851, 2098179, 2098181, 2098182]), new Uint32Array([2227426, 2227490, 2227554, 2227618, 0, 0, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2192353, 2240642, 2240642, 2240705, 2240737, 2240737, 2240769, 2240802, 2240866, 2240929, 2240961, 2240993, 2241025, 2241057, 2241089, 2241121]), new Uint32Array([6291456, 2170881, 2170913, 2170945, 6291456, 2170977, 6291456, 2171009, 2171041, 6291456, 6291456, 6291456, 2171073, 6291456, 6291456, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([2132226, 2132514, 2163586, 2132610, 2160386, 2133090, 2133186, 2160450, 2160514, 2160578, 2133570, 2106178, 2160642, 2133858, 2160706, 2160770]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 10532162, 10532226, 10532290, 10532354, 10532418, 10532482, 6291456, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 6291456, 23068672]), new Uint32Array([2098209, 2108353, 2108193, 2108481, 2170241, 2111713, 2105473, 2105569, 2105601, 2112289, 2112481, 2098305, 2108321, 0, 0, 0]), new Uint32Array([2209121, 2209153, 2209185, 2209217, 2209249, 2209281, 2209313, 2209345, 2209377, 2209409, 2209441, 2209473, 2207265, 2209505, 2209537, 2209569]), new Uint32Array([2189025, 6291456, 2189057, 6291456, 2189089, 6291456, 2189121, 6291456, 2189153, 6291456, 2189185, 6291456, 2189217, 6291456, 2189249, 6291456]), new Uint32Array([2173825, 2153473, 2173857, 2173889, 2173921, 2173953, 2173985, 2173761, 2174017, 2174049, 2174081, 2174113, 2174145, 2174177, 2149057, 2233057]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 2165764, 2140004]), new Uint32Array([2215105, 6291456, 2215137, 6291456, 6291456, 2215169, 2215201, 6291456, 6291456, 6291456, 2215233, 2215265, 2215297, 2215329, 2215361, 2215393]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 6291456, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([23068672, 23068672, 6291456, 6291456, 6291456, 23068672, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([10505091, 10505187, 10505283, 10505379, 10505475, 10505571, 10505667, 10505763, 10505859, 10505955, 10506051, 10506147, 10506243, 10506339, 10506435, 10506531]), new Uint32Array([2229730, 2229794, 2229858, 2229922, 2229986, 2230050, 2230114, 2230178, 2230242, 2230306, 2230370, 2230434, 2230498, 2230562, 2230626, 2230690]), new Uint32Array([2105505, 2098241, 2108353, 2108417, 2105825, 0, 2100897, 2111905, 2105473, 2105569, 2105601, 2112289, 2108193, 2112481, 2112577, 2098177]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 10502115, 10502178, 10502211, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([0, 23068672, 23068672, 23068672, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 6291456]), new Uint32Array([2190305, 6291456, 2190337, 6291456, 2190369, 6291456, 2190401, 6291456, 2190433, 6291456, 2190465, 6291456, 2190497, 6291456, 2190529, 6291456]), new Uint32Array([2173793, 2173985, 2174017, 6291456, 2173761, 2173697, 6291456, 2174689, 6291456, 2174017, 2174721, 6291456, 6291456, 2174753, 2174785, 2174817]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2099521, 2099105, 2120705, 2098369, 2120801, 2103361, 2097985, 2098433, 2121377, 2121473, 2099169, 2099873, 2098401, 2099393, 2152609, 2100033]), new Uint32Array([2132898, 2163842, 2163906, 2133282, 2132034, 2131938, 2137410, 2132802, 2132706, 2164866, 2133282, 2160578, 2165186, 2165186, 6291456, 6291456]), new Uint32Array([10500003, 10500099, 10500195, 10500291, 10500387, 10500483, 10500579, 10500675, 10500771, 10500867, 10500963, 10501059, 10501155, 10501251, 10501347, 10501443]), new Uint32Array([2163458, 2130978, 2131074, 2131266, 2131362, 2163522, 2160130, 2132066, 2131010, 2131106, 2106018, 2131618, 2131298, 2132034, 2131938, 2137410]), new Uint32Array([2212961, 2116993, 2212993, 2213025, 2213057, 2213089, 2213121, 2213153, 2213185, 2213217, 2213249, 2209633, 2213281, 2213313, 2213345, 2213377]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 6291456, 6291456]), new Uint32Array([2113729, 2113825, 2113921, 2114
46688017, 2114113, 2114209, 2114305, 2114401, 2114497, 2114593, 2114689, 2114785, 2114881, 2114977, 2115073, 2115169]), new Uint32Array([2238177, 2238209, 2238241, 2238273, 2238305, 2238337, 2238337, 2217537, 2238369, 2238401, 2238433, 2238465, 2215649, 2238497, 2238529, 2238561]), new Uint32Array([2108289, 2100865, 2113153, 2108481, 2113345, 2113441, 2098209, 2111137, 2105505, 2098241, 2108353, 2108417, 2105825, 2111713, 2100897, 2111905]), new Uint32Array([6291456, 6291456, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 6291456, 0, 0]), new Uint32Array([6291456, 0, 6291456, 2145026, 0, 6291456, 2145090, 0, 6291456, 6291456, 0, 0, 23068672, 0, 23068672, 23068672]), new Uint32Array([2099233, 2122017, 2200673, 2098113, 2121537, 2103201, 2200705, 2104033, 2121857, 2121953, 2122401, 2099649, 2099969, 2123009, 2100129, 2100289]), new Uint32Array([6291456, 23068672, 6291456, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([6291456, 6291456, 23068672, 23068672, 0, 0, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 0, 0, 0]), new Uint32Array([2187681, 2187713, 2187745, 2187777, 2187809, 2187841, 2187873, 2187905, 2187937, 2187969, 2188001, 2188033, 2188065, 2188097, 2188129, 2188161]), new Uint32Array([0, 10554498, 10554562, 10554626, 10554690, 10554754, 10554818, 10554882, 10554946, 10555010, 10555074, 6291456, 6291456, 0, 0, 0]), new Uint32Array([2235170, 2235234, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([2181153, 6291456, 2188897, 6291456, 6291456, 2188929, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 2111905, 2100865, 2188961, 2188993]), new Uint32Array([2100833, 2100897, 0, 0, 2101569, 2101697, 2101825, 2101953, 2102081, 2102209, 10575617, 2187041, 10502177, 10489601, 10489697, 2112289]), new Uint32Array([6291456, 2172833, 6291456, 2172865, 2172897, 2172929, 2172961, 6291456, 2172993, 6291456, 2173025, 6291456, 2173057, 6291456, 2173089, 6291456]), new Uint32Array([6291456, 0, 6291456, 6291456, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 23068672, 6291456, 23068672, 23068672]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 0, 0, 0, 0, 2190721]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 6291456, 6291456, 6291456, 6291456, 23068672, 6291456, 6291456]), new Uint32Array([2184993, 6291456, 2185025, 6291456, 2185057, 6291456, 2185089, 6291456, 2185121, 6291456, 2185153, 6291456, 2185185, 6291456, 2185217, 6291456]), new Uint32Array([2115265, 2115361, 2115457, 2115553, 2115649, 2115745, 2115841, 2115937, 2116033, 2116129, 2116225, 2116321, 2150658, 2150722, 2200225, 6291456]), new Uint32Array([2168321, 6291456, 2168353, 6291456, 2168385, 6291456, 2168417, 6291456, 2168449, 6291456, 2168481, 6291456, 2168513, 6291456, 2168545, 6291456]), new Uint32Array([23068672, 23068672, 23068672, 6291456, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([6291456, 0, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 6291456, 6291456, 0, 6291456, 0, 6291456, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 2186625, 0, 0, 6291456, 6291456, 2186657, 2186689, 2186721, 2173505, 0, 10496067, 10496163, 10496259]), new Uint32Array([2178785, 6291456, 2178817, 6291456, 2178849, 6291456, 2178881, 6291456, 2178913, 6291456, 2178945, 6291456, 2178977, 6291456, 2179009, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 0, 0]), new Uint32Array([2097152, 0, 0, 0, 2097152, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 6291456, 6291456]), new Uint32Array([6291456, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([0, 0, 2197857, 2197889, 2197921, 2197953, 2197985, 2198017, 0, 0, 2198
46688049, 2198081, 2198113, 2198145, 2198177, 2198209]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 2098209, 2167297, 2111137, 6291456]), new Uint32Array([2171393, 6291456, 2171425, 6291456, 2171457, 6291456, 2171489, 6291456, 2171521, 6291456, 2171553, 6291456, 2171585, 6291456, 2171617, 6291456]), new Uint32Array([2206753, 2206785, 2195457, 2206817, 2206849, 2206881, 2206913, 2197153, 2197153, 2206945, 2117857, 2206977, 2207009, 2207041, 2207073, 2207105]), new Uint32Array([0, 0, 0, 0, 0, 0, 0, 23068672, 0, 0, 0, 0, 2144834, 2144898, 0, 2144962]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 0, 0, 23068672]), new Uint32Array([2108193, 2112481, 2112577, 2098177, 2098305, 2108321, 2108289, 2100865, 2113153, 2108481, 2113345, 2113441, 2098209, 0, 2105505, 2098241]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 0, 6291456, 6291456, 6291456, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([6291456, 6291456, 2202049, 6291456, 2202081, 6291456, 2202113, 6291456, 2202145, 6291456, 2202177, 6291456, 2202209, 6291456, 2202241, 6291456]), new Uint32Array([10501155, 10501251, 10501347, 10501443, 10501539, 10501635, 10501731, 10501827, 10501923, 10502019, 2141731, 2105505, 2098177, 2155586, 2166530, 0]), new Uint32Array([2102081, 2102209, 2100833, 2100737, 2098337, 2101441, 2101569, 2101697, 2101825, 2101953, 2102081, 2102209, 2100833, 2100737, 2098337, 2101441]), new Uint32Array([2146882, 2146946, 2147010, 2147074, 2147138, 2147202, 2147266, 2147330, 2146882, 2146946, 2147010, 2147074, 2147138, 2147202, 2147266, 2147330]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0]), new Uint32Array([10502307, 10502403, 10502499, 10502595, 10502691, 10502787, 10502883, 10502979, 10503075, 10503171, 10503267, 10503363, 10503459, 10503555, 10503651, 10503747]), new Uint32Array([2179937, 2179969, 2180001, 2180033, 2156545, 2180065, 2156577, 2180097, 2180129, 2180161, 2180193, 2180225, 2180257, 2180289, 2156737, 2180321]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 6291456, 6291456, 0, 0, 0, 6291456, 0, 0, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 0]), new Uint32Array([2227682, 2227746, 2227810, 2227874, 2227938, 2228002, 2228066, 2228130, 2228194, 2228258, 2228322, 2228386, 2228450, 2228514, 2228578, 2228642]), new Uint32Array([2105601, 2169121, 2108193, 2170049, 2181025, 2181057, 2112481, 2108321, 2108289, 2181089, 2170497, 2100865, 2181121, 2173601, 2173633, 2173665]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 2180641, 6291456, 6291456, 6291456]), new Uint32Array([0, 6291456, 6291456, 6291456, 0, 6291456, 0, 6291456, 0, 0, 6291456, 6291456, 0, 6291456, 6291456, 6291456]), new Uint32Array([2178273, 6291456, 2178305, 6291456, 2178337, 6291456, 2178369, 6291456, 2178401, 6291456, 2178433, 6291456, 2178465, 6291456, 2178497, 6291456]), new Uint32Array([6291456, 6291456, 23068672, 23068672, 23068672, 6291456, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 14680064, 14680064, 14680064, 14680064, 14680064, 14680064]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 6291456]), new Uint32Array([2237377, 2237409, 2236225, 2237441, 2237473, 2217441, 2215521, 2215553, 2217473, 2237505, 2237537, 2209697, 2237569, 2215585, 2237601, 2237633]), new Uint32Array([2221985, 2165601, 2165601, 2165665, 2165665, 2222017, 2222017, 2165729, 2165729, 2158913, 2158913, 2158913, 2158913, 2097281, 2097281, 2105921]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 0, 23068672, 23068672, 23068672, 0, 23068672, 23068672, 23068672, 23068672, 0, 0]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 2149634, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2176897, 6291456, 6291456, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 2176929, 6291456, 2176961, 6291456, 2176993, 6291456]), new Uint32Array([2172641, 6291456, 2172673, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 2172705, 2172737, 6291456, 2172769, 2172801, 6291456]), new Uint32Array([2099173, 2104196, 2121667, 2099395, 2121763, 2152258, 2152322, 2098946, 2152386, 2121859, 2121955, 2099333, 2122051, 2104324, 2099493, 2122147]), new Uint32Array([6291456, 6291456, 6291456, 2145794, 6291456, 6291456, 6291456, 6291456, 0, 6291456, 6291456, 6291456, 6291456, 2145858, 6291456, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 23068672, 0, 0, 6291456, 0]), new Uint32Array([0, 2105921, 2097729, 0, 2097377, 0, 0, 2106017, 0, 2097505, 2105889, 2097185, 2097697, 2135777, 2097633, 2097441]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([2239074, 2239138, 2239201, 2239233, 2239265, 2239297, 2239329, 2239361, 0, 2239393, 2239425, 2239425, 2239458, 2239521, 2239553, 2209569]), new Uint32Array([14680064, 2098209, 2111137, 2105505, 2098241, 2108353, 2108417, 2105825, 2111713, 2100897, 2111905, 2105473, 2105569, 2105601, 2112289, 2108193]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 0, 6291456, 23068672]), new Uint32Array([2108321, 2108289, 2113153, 2098209, 2180897, 2180929, 2180961, 2111137, 2098241, 2108353, 2170241, 2170273, 2180993, 2105825, 6291456, 2105473]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 2146114, 6291456, 6291456, 6291456, 0, 0, 0]), new Uint32Array([2105921, 2105921, 2105921, 2222049, 2222049, 2130977, 2130977, 2130977, 2130977, 2160065, 2160065, 2160065, 2160065, 2097729, 2097729, 2097729]), new Uint32Array([2218145, 2214785, 2207937, 2218177, 2218209, 2192993, 2210113, 2212769, 2218241, 2218273, 2216129, 2218305, 2216161, 2218337, 2218369, 2218401]), new Uint32Array([0, 0, 0, 2156546, 2156610, 2156674, 2156738, 2156802, 0, 0, 0, 0, 0, 2156866, 23068672, 2156930]), new Uint32Array([23068672, 23068672, 23068672, 0, 0, 0, 0, 23068672, 23068672, 0, 0, 23068672, 23068672, 23068672, 0, 0]), new Uint32Array([2213409, 2213441, 2213473, 2213505, 2213537, 2213569, 2213601, 2213633, 2213665, 2195681, 2213697, 2213729, 2213761, 2213793, 2213825, 2213857]), new Uint32Array([2100033, 2099233, 2122017, 2200673, 2098113, 2121537, 2103201, 2200705, 2104033, 2121857, 2121953, 2122401, 2099649, 2099969, 2123009, 2100129]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([2201857, 6291456, 2201889, 6291456, 2201921, 6291456, 2201953, 6291456, 2201985, 6291456, 2202017, 6291456, 2176193, 2176257, 23068672, 23068672]), new Uint32Array([6291456, 6291456, 23068672, 23068672, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2188193, 2188225, 2188257, 2188289, 2188321, 2188353, 2188385, 2188417, 2188449, 2188481, 2188513, 2188545, 2188577, 2188609, 2188641, 0]), new Uint32Array([10554529, 2221089, 0, 10502113, 10562017, 10537921, 10538049, 2221121, 2221153, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([2213889, 2213921, 2213953, 2213985, 2214017, 2214049, 2214081, 2194177, 2214113, 2214145, 2214177, 2214209, 2214241, 2214273, 2214305, 2214337]), new Uint32Array([2166978, 2167042, 2099169, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 2180545, 6291456, 6291456, 6291456]), new Uint32Array([10518915, 10519011, 10519107, 10519203, 2162242, 2162306, 2159554, 2162370, 2159362, 2159618, 2105922, 2162434, 2159746, 2162498, 2159810, 2159874]), new Uint32Array([2161730, 2161794, 2135586, 2161858, 2161922, 2137186, 2131810, 2160290, 2135170, 2161986, 2137954, 2162050, 2162114, 2162178, 10518723, 10518819]), new Uint32Array([10506627, 10506723, 10506819, 10506915, 10507011, 10507107, 10507203, 10507299, 10507395, 10507491, 10507587, 10507683, 10507779, 10507875, 10507971, 10508067]), new Uint32Array([6291456, 23068672, 23068672, 23068672, 0, 23068672, 23068672, 0, 0, 0, 0, 0, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 0, 0]), new Uint32Array([2175873, 2175905, 2175937, 2175969, 2176001, 2176033, 2176065, 2176097, 2176129, 2176161, 2176193, 2176225, 2176257, 2176289, 2176321, 2176353]), new Uint32Array([2140006, 2140198, 2140390, 2140582, 2140774, 23068672, 23068672, 23068672, 23068672, 23068672, 6291456, 6291456, 6291456, 23068672, 23068672, 23068672]), new Uint32Array([2108193, 2112481, 2112577, 2098177, 2098305, 2108321, 2108289, 2100865, 2113153, 2108481, 2113345, 2113441, 2098209, 2111137, 2105505, 2098241]), new Uint32Array([0, 23068672, 0, 0, 0, 0, 0, 0, 0, 2145154, 2145218, 2145282, 6291456, 0, 2145346, 0]), new Uint32Array([0, 0, 0, 0, 10531458, 10495395, 2148545, 2143201, 2173473, 2148865, 2173505, 0, 2173537, 0, 2173569, 2149121]), new Uint32Array([10537282, 10495683, 2148738, 2148802, 2148866, 0, 6291456, 2148930, 2186593, 2173473, 2148737, 2148865, 2148802, 10495779, 10495875, 10495971]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([2215425, 2215457, 2215489, 2215521, 2215553, 2215585, 2215617, 2215649, 2215681, 2215713, 2215745, 2215777, 2192033, 2215809, 2215841, 2215873]), new Uint32Array([2242049, 2242081, 2242113, 2242145, 2242177, 2242209, 2242241, 2242273, 2215937, 2242305, 2242338, 2242401, 2242433, 2242465, 2242497, 2216001]), new Uint32Array([10554529, 2221089, 0, 0, 10562017, 10502113, 10538049, 10537921, 2221185, 10489601, 10489697, 10609889, 10609921, 2141729, 2141793, 10610273]), new Uint32Array([2141923, 2142019, 2142115, 2142211, 2142307, 2142403, 2142499, 2142595, 2142691, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([0, 2221185, 2221217, 10609857, 10609857, 10489601, 10489697, 10609889, 10609921, 2141729, 2141793, 2221345, 2221377, 2221409, 2221441, 2187105]), new Uint32Array([6291456, 23068672, 23068672, 23068672, 23068672, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 0]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 18923970, 23068672, 23068672, 23068672, 0, 6291456, 6291456]), new Uint32Array([2183105, 6291456, 2183137, 6291456, 2183169, 6291456, 2183201, 6291456, 2183233, 6291456, 2183265, 6291456, 2183297, 6291456, 2183329, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 0, 0, 0, 0, 0, 0, 0, 0, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2134434, 2134818, 2097666, 2097186, 2097474, 2097698, 2105986, 2131586, 2132450, 2131874, 2131778, 2135970, 2135778, 2161602, 2136162, 2161666]), new Uint32Array([2236865, 2236897, 2236930, 2236993, 2237025, 2235681, 2237058, 2237121, 22371
4668853, 2237185, 2237217, 2217281, 2237250, 2191233, 2237313, 2237345]), new Uint32Array([2190049, 6291456, 2190081, 6291456, 2190113, 6291456, 2190145, 6291456, 2190177, 6291456, 2190209, 6291456, 2190241, 6291456, 2190273, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2101922, 2102050, 2102178, 2102306, 10498755, 10498851, 10498947, 10499043, 10499139, 10499235, 10499331, 10499427, 10499523, 10489604, 10489732, 10489860]), new Uint32Array([2166914, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 0, 0, 0, 0, 0]), new Uint32Array([2181601, 2170561, 2181633, 2181665, 2170753, 2181697, 2172897, 2170881, 2181729, 2170913, 2172929, 2113441, 2181761, 2181793, 2171009, 2173761]), new Uint32Array([0, 2105921, 2097729, 2106081, 0, 2097601, 2162337, 2106017, 2133281, 2097505, 0, 2097185, 2097697, 2135777, 2097633, 2097441]), new Uint32Array([6291456, 6291456, 6291456, 23068672, 23068672, 23068672, 23068672, 23068672, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 0]), new Uint32Array([2248001, 2248033, 2248066, 2248130, 2248193, 2248226, 2248289, 2248322, 2248385, 2248417, 2216673, 2248450, 2248514, 2248577, 2248610, 2248673]), new Uint32Array([6291456, 6291456, 0, 0, 0, 0, 0, 0, 0, 6291456, 6291456, 6291456, 6291456, 0, 0, 0]), new Uint32Array([2169729, 6291456, 2169761, 6291456, 2169793, 6291456, 2169825, 6291456, 2169857, 2169889, 6291456, 2169921, 6291456, 2143329, 6291456, 2098305]), new Uint32Array([2162178, 2163202, 2163266, 2135170, 2136226, 2161986, 2137954, 2159426, 2159490, 2163330, 2159554, 2163394, 2159682, 2139522, 2136450, 2159746]), new Uint32Array([2173953, 2173985, 0, 2174017, 2174049, 2174081, 2174113, 2174145, 2174177, 2149057, 2174209, 2174241, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([6291456, 6291456, 4271169, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 2174273]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([6291456, 6291456, 0, 0, 0, 0, 0, 0, 0, 6291456, 0, 0, 0, 0, 0, 0]), new Uint32Array([6291456, 6291456, 6291456, 2190785, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([2189793, 6291456, 2189825, 6291456, 2189857, 6291456, 2189889, 6291456, 2189921, 6291456, 2189953, 6291456, 2189985, 6291456, 2190017, 6291456]), new Uint32Array([2105601, 2112289, 2108193, 2112481, 2112577, 0, 2098305, 2108321, 2108289, 2100865, 2113153, 2108481, 2113345, 0, 2098209, 2111137]), new Uint32Array([2172129, 6291456, 2172161, 6291456, 2172193, 6291456, 2172225, 6291456, 2172257, 6291456, 2172289, 6291456, 2172321, 6291456, 2172353, 6291456]), new Uint32Array([2214753, 6291456, 2214785, 6291456, 6291456, 2214817, 2214849, 2214881, 2214913, 2214945, 2214977, 2215009, 2215041, 2215073, 2194401, 6291456]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 6291456, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([0, 0, 0, 0, 6291456, 6291456, 6291456, 23068672, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([10610305, 10610337, 10575617, 2221761, 10610401, 10610433, 10502177, 0, 10610465, 10610497, 10610529, 10610561, 0, 0, 0, 0]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 23068672, 0, 0, 0, 0, 23068672]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 2187105, 2187137, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2199393, 2199425, 2199457, 2199489, 2199521, 2199553, 2199585, 2199617, 2199649, 2199681, 2199713, 2199745, 2199777, 2199809, 2199841, 0]), new Uint32Array([2217249, 2217281, 2217313, 2217345, 2217377, 2217409, 2217441, 2217473, 2215617, 2217505, 2217537, 2217569, 2214753, 2217601, 2217633, 2217665]), new Uint32Array([2170273, 2170305, 6291456, 2170337, 2170369, 6291456, 2170401, 2170433, 2170465, 6291456, 6291456, 6291456, 2170497, 2170529, 6291456, 2170561]), new Uint32Array([2188673, 6291456, 2188705, 2188737, 2188769, 6291456, 6291456, 2188801, 6291456, 2188833, 6291456, 2188865, 6291456, 2180929, 2181505, 2180897]), new Uint32Array([10489988, 10490116, 10490244, 1049
466880372, 10490500, 10490628, 10490756, 10490884, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 2147393, 2147457, 2147521, 2147585, 2147649, 2147713, 2147777, 2147841]), new Uint32Array([23068672, 23068672, 0, 23068672, 23068672, 0, 23068672, 23068672, 23068672, 23068672, 23068672, 0, 0, 0, 0, 0]), new Uint32Array([2241153, 2241185, 2241217, 2215809, 2241250, 2241313, 2241345, 2241377, 2217921, 2241377, 2241409, 2215873, 2241441, 2241473, 2241505, 2241537]), new Uint32Array([23068672, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2220417, 2220417, 2220449, 2220449, 2220481, 2220481, 2220513, 2220513, 2220545, 2220545, 2220577, 2220577, 2220609, 2220609, 2220641, 2220641]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 2144002, 0, 6291456, 6291456, 0, 0, 6291456, 6291456, 6291456]), new Uint32Array([2167105, 2167137, 2167169, 2167201, 2167233, 2167265, 2167297, 2167329, 2167361, 2167393, 2167425, 2167457, 2167489, 2167521, 2167553, 2167585]), new Uint32Array([10575521, 2098209, 2111137, 2105505, 2098241, 2108353, 2108417, 2105825, 2111713, 2100897, 2111905, 2105473, 2105569, 2105601, 2112289, 2108193]), new Uint32Array([2234146, 2234210, 2234274, 2234338, 2234402, 2234466, 2234530, 2234594, 2234658, 2234722, 2234786, 2234850, 2234914, 2234978, 2235042, 2235106]), new Uint32Array([0, 0, 0, 0, 0, 0, 0, 2180577, 0, 0, 0, 0, 0, 2180609, 0, 0]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 23068672, 23068672, 23068672, 0, 0, 6291456, 6291456]), new Uint32Array([2098209, 2111137, 2105505, 2098241, 2108353, 2108417, 2105825, 2111713, 2100897, 2111905, 2105473, 2105569, 2105601, 2112289, 2108193, 2112481]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2242529, 2242561, 2242593, 2242625, 2242657, 2242689, 2242721, 2242753, 2207937, 2218177, 2242785, 2242817, 2242849, 2242882, 2242945, 2242977]), new Uint32Array([2118049, 2105345, 2118241, 2105441, 2118433, 2118529, 2118625, 2118721, 2118817, 2200257, 2200289, 2191809, 2200321, 2200353, 2200385, 2200417]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 23068672, 6291456, 6291456]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 0]), new Uint32Array([2185505, 6291456, 2185537, 6291456, 2185569, 6291456, 2185601, 6291456, 2185633, 6291456, 2185665, 6291456, 2185697, 6291456, 2185729, 6291456]), new Uint32Array([2231970, 2232034, 2232098, 2232162, 2232226, 2232290, 2232354, 2232418, 2232482, 2232546, 2232610, 2232674, 2232738, 2232802, 2232866, 2232930]), new Uint32Array([2218625, 2246402, 2246466, 2246530, 2246594, 2246657, 2246689, 2246689, 2218657, 2219681, 2246721, 2246753, 2246785, 2246818, 2246881, 2208481]), new Uint32Array([2197025, 2197057, 2197089, 2197121, 2197153, 2197185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([2219137, 2216961, 2219169, 2219201, 2219233, 2219265, 2219297, 2217025, 2215041, 2219329, 2217057, 2219361, 2217089, 2219393, 2197153, 2219426]), new Uint32Array([23068672, 23068672, 23068672, 0, 0, 0, 23068672, 23068672, 23068672, 0, 23068672, 23068672, 23068672, 23068672, 0, 0]), new Uint32Array([2098305, 2108321, 2108289, 2100865, 2113153, 2108481, 2113345, 2113441, 2098209, 2111137, 2105505, 2098241, 2108353, 2108417, 2105825, 2111713]), new Uint32Array([2243522, 2243585, 2243617, 2243649, 2243681, 2210113, 2243713, 2243746, 2243810, 2243874, 2243937, 2243970, 2244033, 2244065, 2244097, 2244129]), new Uint32Array([2178017, 6291456, 2178049, 6291456, 2178081, 6291456, 2178113, 6291456, 2178145, 6291456, 2178177, 6291456, 2178209, 6291456, 2178241, 6291456]), new Uint32Array([10553858, 2165314, 10518722, 6291456, 10518818, 0, 10518914, 2130690, 10519010, 2130786, 10519106, 2130882, 10519202, 2165378, 10554050, 2165506]), new Uint32Array([0, 0, 2135491, 2135587, 2135683, 2135779, 2135875, 2135971, 2135971, 2136067, 2136163, 2136259, 2136355, 2136355, 2136451, 2136547]), new Uint32Array([23068672, 23068672, 23068672, 6291456, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 6291456, 6291456]), new Uint32Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([23068672, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([2220033, 2220033, 2220065, 2220065, 2220065, 2220065, 2220097, 2220097, 2220097, 2220097, 2220129, 2220129, 2220129, 2220129, 2220161, 2220161]), new Uint32Array([6291456, 6291456, 6291456, 0, 0, 0, 0, 0, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 0, 23068672, 0, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([2100897, 2100898, 2100899, 2150018, 2100865, 2100866, 2100867, 2100868, 2150082, 2108481, 2109858, 2109859, 2105569, 2105505, 2098241, 2105601]), new Uint32Array([2097217, 2097505, 2097505, 2097505, 2097505, 2165570, 2165570, 2165634, 2165634, 2165698, 2165698, 2097858, 2097858, 0, 0, 2097152]), new Uint32Array([23068672, 6291456, 23068672, 23068672, 23068672, 6291456, 6291456, 23068672, 23068672, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672]), new Uint32Array([23068672, 23068672, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0]), new Uint32Array([10503843, 10503939, 10504035, 10504131, 10504227, 10504323, 10504419, 10504515, 10504611, 10504707, 10504803, 10504899, 10504995, 10491140, 10491268, 0]), new Uint32Array([2173697, 2173729, 2148801, 2173761, 2143969, 2173793, 2173825, 2153473, 2173857, 2173889, 2173921, 2173953, 2173985, 2173761, 2174017, 2174049]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 0, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([2134145, 2097153, 2134241, 2105953, 2132705, 2130977, 2160065, 2131297, 2162049, 2133089, 2160577, 2133857, 2235297, 2220769, 2235329, 2235361]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([2222401, 2222433, 2222465, 10531394, 2222497, 2222529, 2222561, 0, 2222593, 2222625, 2222657, 2222689, 2222721, 2222753, 2222785, 0]), new Uint32Array([2184481, 6291456, 2184513, 6291456, 2184545, 6291456, 2184577, 6291456, 2184609, 6291456, 2184641, 6291456, 2184673, 6291456, 2184705, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 23068672, 23068672, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([2105570, 2156034, 2126947, 2156098, 2153666, 2127043, 2127139, 2156162, 0, 2127235, 2156226, 2156290, 2156354, 2156418, 2127331, 2127427]), new Uint32Array([2215905, 2207041, 2153185, 2241569, 2241601, 2241633, 2241665, 2241697, 2241730, 2241793, 2241825, 2241857, 2241889, 2241921, 2241954, 2242017]), new Uint32Array([2203777, 6291456, 2203809, 6291456, 2203841, 6291456, 2203873, 6291456, 2203905, 6291456, 2173121, 2180993, 2181249, 2203937, 2181313, 0]), new Uint32Array([2168577, 6291456, 2168609, 6291456, 2168641, 6291456, 2168673, 6291456, 2168705, 6291456, 2168737, 6291456, 2168769, 6291456, 2168801, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 6291456, 23068672, 23068672, 6291456]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 0, 23068672, 23068672, 23068672, 0, 23068672, 23068672, 23068672, 0, 0]), new Uint32Array([2210113, 2195521, 2210145, 2210177, 2210209, 2210241, 2210273, 2210305, 2210337, 2210369, 2210401, 2210433, 2210465, 2210497, 2210529, 2210561]), new Uint32Array([6291456, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0]), new Uint32Array([2228706, 2228770, 2228834, 2228898, 2228962, 2229026, 2229090, 2229154, 2229218, 2229282, 2229346, 2229410, 2229474, 2229538, 2229602, 2229666]), new Uint32Array([23068672, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([6291456, 6291456, 6291456, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 6291456, 6291456, 6291456, 6291456, 18874368, 18874368, 18874368, 0, 0]), new Uint32Array([2133089, 2133281, 2133281, 2133281, 2133281, 2160577, 2160577, 2160577, 2160577, 2097441, 2097441, 2097441, 2097441, 2133857, 2133857, 2133857]), new Uint32Array([6291456, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2173825, 2153473, 2173857, 2173889, 2173921, 2173953, 2173985, 2174017, 2174017, 2174049, 2174081, 2174113, 2174145, 2174177, 2149057, 2233089]), new Uint32Array([2178529, 6291456, 2178561, 6291456, 2178593, 6291456, 2178625, 6291456, 2178657, 6291456, 2178689, 6291456, 2178721, 6291456, 2178753, 6291456]), new Uint32Array([2221025, 2221025, 2221057, 2221057, 2159329, 2159329, 2159329, 2159329, 2097217, 2097217, 2158914, 2158914, 2158978, 2158978, 2159042, 2159042]), new Uint32Array([2208161, 2208193, 2208225, 2208257, 2194433, 2208289, 2208321, 2208353, 2208385, 2208417, 2208449, 2208481, 2208513, 2208545, 2208577, 2208609]), new Uint32Array([2169217, 6291456, 2169249, 6291456, 2169281, 6291456, 2169313, 6291456, 2169345, 6291456, 2169377, 6291456, 2169409, 6291456, 2169441, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2133187, 2133283, 2133283, 2133379, 2133475, 21335
4668871, 2133667, 2133667, 2133763, 2133859, 2133955, 2134051, 2134147, 2134147, 2134243, 2134339]), new Uint32Array([2197697, 2114113, 2114209, 2197729, 2197761, 2114305, 2197793, 2114401, 2114497, 2197825, 2114593, 2114689, 2114785, 2114881, 2114977, 0]), new Uint32Array([2193089, 2193121, 2193153, 2193185, 2117665, 2117569, 2193217, 2193249, 2193281, 2193313, 2193345, 2193377, 2193409, 2193441, 2193473, 2193505]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0]), new Uint32Array([6291456, 6291456, 6291456, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([6291456, 6291456, 6291456, 0, 0, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2184225, 6291456, 2184257, 6291456, 2184289, 6291456, 2184321, 6291456, 2184353, 6291456, 2184385, 6291456, 2184417, 6291456, 2184449, 6291456]), new Uint32Array([2112577, 2098177, 2098305, 2108321, 2108289, 2100865, 2113153, 2108481, 2113345, 2113441, 2100833, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([2098657, 2098049, 2200737, 2123489, 2123681, 2200769, 2098625, 2100321, 2098145, 2100449, 2098017, 2098753, 2200801, 2200833, 2200865, 0]), new Uint32Array([23068672, 23068672, 23068672, 0, 0, 0, 0, 0, 0, 0, 0, 23068672, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 23068672, 23068672, 23068672, 0, 0, 0, 0, 0]), new Uint32Array([2098305, 2108321, 2108289, 2100865, 2113153, 2108481, 2113345, 2113441, 2098209, 2111137, 0, 2098241, 2108353, 2108417, 2105825, 0]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 2181153, 2105505, 2181185, 2167617, 2180993]), new Uint32Array([2160002, 2160066, 2160130, 2160194, 2160258, 2132066, 2131010, 2131106, 2106018, 2131618, 2160322, 2131298, 2132034, 2131938, 2137410, 2132226]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6291456]), new Uint32Array([2183617, 6291456, 2183649, 6291456, 2183681, 6291456, 2183713, 6291456, 2183745, 6291456, 2183777, 6291456, 2183809, 6291456, 2183841, 6291456]), new Uint32Array([0, 6291456, 6291456, 0, 6291456, 0, 0, 6291456, 6291456, 0, 6291456, 0, 0, 6291456, 0, 0]), new Uint32Array([2250977, 2251009, 2251041, 2251073, 2195009, 2251106, 2251169, 2251201, 2251233, 2251265, 2251297, 2251330, 2251394, 2251457, 2251489, 2251521]), new Uint32Array([2205729, 2205761, 2205793, 2205825, 2205857, 2205889, 2205921, 2205953, 2205985, 2206017, 2206049, 2206081, 2206113, 2206145, 2206177, 2206209]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2143170, 2168993, 6291456, 2169025, 6291456, 2169057, 6291456, 2169089, 6291456, 2143234, 2169121, 6291456, 2169153, 6291456, 2169185, 6291456]), new Uint32Array([23068672, 23068672, 2190689, 6291456, 0, 0, 0, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2248706, 2248769, 2248801, 2248833, 2248865, 2248897, 2248929, 2248962, 2249026, 2249090, 2249154, 2240705, 2249217, 2249249, 2249281, 2249313]), new Uint32Array([10485857, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 10495394, 6291456, 2098209, 6291456, 6291456, 2097152, 6291456, 10531394]), new Uint32Array([0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0]), new Uint32Array([14680064, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2173985, 2173953, 2148481, 2173601, 2173633, 2173665, 2173697, 2173729, 2148801, 2173761, 2143969, 2173793, 2173825, 2153473, 2173857, 2173889]), new Uint32Array([6291456, 2186977, 6291456, 6291456, 6291456, 6291456, 6291456, 10537858, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2209601, 2209633, 2209665, 2209697, 2209729, 2209761, 2209793, 2209825, 2209857, 2209889, 2209921, 2209953, 2209985, 2210017, 2210049, 2210081]), new Uint32Array([10501539, 10501635, 10501731, 10501827, 10501923, 10502019, 2098209, 2111137, 2105505, 2098241, 2108353, 2108417, 2105825, 2111713, 2100897, 2111905]), new Uint32Array([2173697, 2173729, 2148801, 2173761, 2143969, 2173793, 2173825, 2153473, 2173857, 2173889, 2173921, 2173953, 2173985, 2174017, 2174017, 2174049]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 6291456, 6291456, 6291456, 6291456, 0, 0]), new Uint32Array([6291456, 6291456, 23068672, 23068672, 23068672, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([2194561, 2194593, 2194625, 2119777, 2119873, 2194657, 2194689, 2194721, 2194753, 2194785, 2194817, 2194849, 2194881, 2194913, 2194945, 2194977]), new Uint32Array([2113153, 2108481, 2113345, 2113441, 2098209, 2111137, 2105505, 2098241, 2108353, 2108417, 2105825, 2111713, 2100897, 2111905, 2105473, 2105569]), new Uint32Array([2222818, 2222882, 2222946, 2223010, 2223074, 2223138, 2223202, 2223266, 2223330, 2223394, 2223458, 2223522, 2223586, 2223650, 2223714, 2223778]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672]), new Uint32Array([0, 2179553, 2179585, 2179617, 2179649, 2144001, 2179681, 2179713, 2179745, 2179777, 2179809, 2156705, 2179841, 2156833, 2179873, 2179905]), new Uint32Array([6291456, 23068672, 6291456, 2145602, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 0, 23068672, 23068672, 6291456, 0, 0]), new Uint32Array([2196513, 2196545, 2196577, 2196609, 2196641, 2196673, 2196705, 2196737, 2196769, 2196801, 2196833, 2196865, 2196897, 2196929, 2196961, 2196993]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2177281, 6291456, 2177313, 6291456, 2177345, 6291456, 2177377, 6291456, 2177409, 6291456, 2177441, 6291456, 2177473, 6291456, 2177505, 6291456]), new Uint32Array([2187137, 2221473, 2221505, 2221537, 2221569, 6291456, 6291456, 10610209, 10610241, 10537986, 10537986, 10537986, 10537986, 10609857, 10609857, 10609857]), new Uint32Array([2243009, 2243041, 2216033, 2243074, 2243137, 2243169, 2243201, 2219617, 2243233, 2243265, 2243297, 2243329, 2243362, 2243425, 2243457, 2243489]), new Uint32Array([10485857, 10485857, 10485857, 10485857, 10485857, 10485857, 10485857, 10485857, 10485857, 10485857, 10485857, 2097152, 4194304, 4194304, 0, 0]), new Uint32Array([2143042, 6291456, 2143106, 2143106, 2168833, 6291456, 2168865, 6291456, 6291456, 2168897, 6291456, 2168929, 6291456, 2168961, 6291456, 2143170]), new Uint32Array([6291456, 6291456, 23068672, 23068672, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2204193, 2204225, 2204257, 2204289, 2204321, 2204353, 2204385, 2204417, 2204449, 2204481, 2204513, 2204545, 2204577, 2204609, 2204641, 2204673]), new Uint32Array([2202753, 6291456, 2202785, 6291456, 2202817, 6291456, 2202849, 6291456, 2202881, 6291456, 2202913, 6291456, 2202945, 6291456, 2202977, 6291456]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 0, 0, 23068672, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([2108353, 2108417, 2105825, 2111713, 2100897, 2111905, 2105473, 2105569, 2105601, 2112289, 2108193, 2112481, 2112577, 2098177, 2098305, 2108321]), new Uint32Array([2147394, 2147458, 2147522, 2147586, 2147650, 2147714, 2147778, 2147842, 2147394, 2147458, 2147522, 2147586, 2147650, 2147714, 2147778, 2147842]), new Uint32Array([2253313, 2253346, 2253409, 2253441, 2253473, 2253505, 2253537, 2253569, 2253601, 2253634, 2219393, 2253697, 2253729, 2253761, 2253793, 2253825]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 23068672, 23068672, 6291456, 6291456]), new Uint32Array([2162562, 2162626, 2131362, 2162690, 2159938, 2160002, 2162754, 2162818, 2160130, 2162882, 2160194, 2160258, 2160834, 2160898, 2161026, 2161090]), new Uint32Array([2175361, 2175393, 2175425, 2175457, 2175489, 2175521, 2175553, 2175585, 2175617, 2175649, 2175681, 2175713, 2175745, 2175777, 2175809, 2175841]), new Uint32Array([2253858, 2253921, 2253954, 2254018, 2254082, 2196737, 2254145, 2196865, 2254177, 2254209, 2254241, 2254273, 2197025, 2254306, 0, 0]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 2202113, 2204129, 2188705, 2204161]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 6291456, 0, 6291456, 6291456, 6291456, 6291456, 0, 0]), new Uint32Array([2173985, 2174017, 2174017, 2174049, 2174081, 2174113, 2174145, 2174177, 2149057, 2233089, 2173697, 2173761, 2173793, 2174113, 2173985, 2173953]), new Uint32Array([2101569, 2101697, 2101825, 2101953, 2102081, 2102209, 2100833, 2100737, 2098337, 2101441, 2101569, 2101697, 2101825, 2101953, 2102081, 2102209]), new Uint32Array([2108289, 2100865, 2113153, 2108481, 2113345, 2113441, 2098209, 2111137, 2105505, 2098241, 0, 2108417, 0, 2111713, 2100897, 2111905]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([2175425, 2175489, 2175809, 2175905, 2175937, 2175937, 2176193, 2176417, 2180865, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 2143298, 2143298, 2143298, 2143362, 2143362, 2143362, 2143426, 2143426, 2143426, 2171105, 6291456, 2171137]), new Uint32Array([2120162, 2120258, 2151618, 2151682, 2151746, 2151810, 2151874, 2151938, 2152002, 2120035, 2120131, 2120227, 2152066, 2120323, 2152130, 2120419]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 0, 0, 0, 0, 0, 23068672, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2195361, 2142433, 2236065, 2236097, 2236129, 2236161, 2118241, 2117473, 2236193, 2236225, 2236257, 2236289, 0, 0, 0, 0]), new Uint32Array([2189281, 6291456, 2189313, 6291456, 2189345, 6291456, 218937
466887, 6291456, 2189409, 6291456, 2189441, 6291456, 2189473, 6291456, 2189505, 6291456]), new Uint32Array([6291456, 6291456, 2145922, 6291456, 6291456, 6291456, 6291456, 2145986, 6291456, 6291456, 6291456, 6291456, 2146050, 6291456, 6291456, 6291456]), new Uint32Array([2100833, 2100737, 2098337, 2101441, 2101569, 2101697, 2101825, 2101953, 2102081, 2102209, 10502113, 10562017, 10610401, 10502177, 10610433, 10538049]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 2186401, 0, 2186433, 0, 2186465, 0, 2186497]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 23068672, 23068672, 23068672]), new Uint32Array([0, 0, 2198241, 2198273, 2198305, 2198337, 2198369, 2198401, 0, 0, 2198433, 2198465, 2198497, 0, 0, 0]), new Uint32Array([6291456, 0, 6291456, 6291456, 6291456, 6291456, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 0, 6291456, 0, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 0, 0]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 23068672, 6291456, 23068672, 23068672]), new Uint32Array([0, 2105921, 2097729, 0, 2097377, 0, 0, 2106017, 2133281, 2097505, 2105889, 0, 2097697, 2135777, 2097633, 2097441]), new Uint32Array([2197889, 2197921, 2197953, 2197985, 2198017, 2198049, 2198081, 2198113, 2198145, 2198177, 2198209, 2198241, 2198273, 2198305, 2198337, 2198369]), new Uint32Array([2132514, 2132610, 2160386, 2133090, 2133186, 2160450, 2160514, 2133282, 2160578, 2133570, 2106178, 2160642, 2133858, 2160706, 2160770, 2134146]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 0, 0, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([6291456, 23068672, 23068672, 6291456, 23068672, 23068672, 6291456, 23068672, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([2184737, 6291456, 2184769, 6291456, 2184801, 6291456, 2184833, 6291456, 2184865, 6291456, 2184897, 6291456, 2184929, 6291456, 2184961, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 6291456, 0, 6291456, 6291456, 6291456, 6291456, 0, 6291456]), new Uint32Array([6291456, 6291456, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 6291456, 23068672, 23068672, 23068672, 6291456, 23068672, 23068672, 23068672, 23068672, 23068672, 0, 0]), new Uint32Array([6291456, 6291456, 6291456, 2186753, 6291456, 6291456, 6291456, 6291456, 2186785, 2186817, 2186849, 2173569, 2186881, 10496355, 10495395, 10575521]), new Uint32Array([0, 0, 2097729, 0, 0, 0, 0, 2106017, 0, 2097505, 0, 2097185, 0, 2135777, 2097633, 2097441]), new Uint32Array([2189537, 6291456, 2189569, 6291456, 2189601, 6291456, 2189633, 6291456, 2189665, 6291456, 2189697, 6291456, 2189729, 6291456, 2189761, 6291456]), new Uint32Array([2202497, 6291456, 2202529, 6291456, 2202561, 6291456, 2202593, 6291456, 2202625, 6291456, 2202657, 6291456, 2202689, 6291456, 2202721, 6291456]), new Uint32Array([2245217, 2218369, 2245249, 2245282, 2245345, 2245377, 2245410, 2245474, 2245537, 2245569, 2245601, 2245633, 2245665, 2245665, 2245697, 2245729]), new Uint32Array([6291456, 0, 23068672, 23068672, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([6291456, 0, 0, 0, 0, 0, 0, 23068672, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 6291456, 23068672, 6291456, 23068672, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672]), new Uint32Array([0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([2097281, 2105921, 2097729, 2106081, 2097377, 2097601, 2162337, 2106017, 2133281, 2097505, 0, 2097185, 2097697, 2135777, 2097633, 2097441]), new Uint32Array([2176641, 6291456, 2176673, 6291456, 2176705, 6291456, 2176737, 6291456, 2176769, 6291456, 2176801, 6291456, 2176833, 6291456, 2176865, 6291456]), new Uint32Array([2174145, 2174177, 2149057, 2233089, 2173697, 2173761, 2173793, 2174113, 2173985, 2173953, 2174369, 2174369, 0, 0, 2100833, 2100737]), new Uint32Array([2116513, 2190817, 2190849, 2190881, 2190913, 2190945, 2116609, 2190977, 2191009, 2191041, 2191073, 2117185, 2191105, 2191137, 2191169, 2191201]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 0, 0, 6291456, 6291456, 6291456]), new Uint32Array([0, 0, 0, 0, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 6291456]), new Uint32Array([2167617, 2167649, 2167681, 2167713, 2167745, 2167777, 2167809, 6291456, 2167841, 2167873, 2167905, 2167937, 2167969, 2168001, 2168033, 4240130]), new Uint32Array([2165122, 2163970, 2164034, 2164098, 2164162, 2164226, 2164290, 2164354, 2164418, 2164482, 2164546, 2133122, 2134562, 2132162, 2132834, 2136866]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 2186209, 2186241, 2186273, 2186305, 2186337, 2186369, 0, 0]), new Uint32Array([2112481, 2112577, 2098177, 2098305, 2108321, 2108289, 2100865, 2113153, 2108481, 2113345, 2113441, 14680064, 14680064, 14680064, 14680064, 14680064]), new Uint32Array([0, 0, 23068672, 6291456, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 6291456, 6291456]), new Uint32Array([0, 10537921, 10610689, 10610273, 
4668810610497, 10610529, 10610305, 10610721, 10489601, 10489697, 10610337, 10575617, 10554529, 2221761, 2197217, 10496577]), new Uint32Array([2105473, 2105569, 2105601, 2112289, 0, 2112481, 2112577, 2098177, 2098305, 2108321, 2108289, 2100865, 2113153, 2108481, 2113345, 2113441]), new Uint32Array([2100897, 2111905, 2105473, 2105569, 2105601, 2112289, 2108193, 2112481, 2112577, 2098177, 2098305, 2108321, 2108289, 2100865, 2113153, 2108481]), new Uint32Array([2125346, 2153410, 2153474, 2127394, 2153538, 2153602, 2153666, 2153730, 2105507, 2105476, 2153794, 2153858, 2153922, 2153986, 2154050, 2105794]), new Uint32Array([2200449, 2119681, 2200481, 2153313, 2199873, 2199905, 2199937, 2200513, 2200545, 2200577, 2200609, 2119105, 2119201, 2119297, 2119393, 2119489]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 2175777, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2222273, 2197217, 2221473, 2221505, 2221089, 2222305, 2200865, 2099681, 2104481, 2222337, 2099905, 2120737, 2222369, 2103713, 2100225, 2098785]), new Uint32Array([2201377, 6291456, 2201409, 6291456, 2201441, 6291456, 2201473, 6291456, 2201505, 6291456, 2201537, 6291456, 2201569, 6291456, 6291456, 23068672]), new Uint32Array([2174081, 2174113, 2174145, 2174177, 2149057, 2233057, 2148481, 2173601, 2173633, 2173665, 2173697, 2173729, 2148801, 2173761, 2143969, 2173793]), new Uint32Array([2200897, 6291456, 2200929, 6291456, 2200961, 6291456, 2200993, 6291456, 2201025, 6291456, 2180865, 6291456, 2201057, 6291456, 2201089, 6291456]), new Uint32Array([0, 0, 0, 0, 0, 23068672, 23068672, 0, 6291456, 6291456, 6291456, 0, 0, 0, 0, 0]), new Uint32Array([2161154, 2161410, 2138658, 2161474, 2161538, 2097666, 2097186, 2097474, 2162946, 2132450, 2163010, 2163074, 2136162, 2163138, 2161666, 2161730]), new Uint32Array([2148481, 2173601, 2173633, 2173665, 2173697, 2173729, 2148801, 2173761, 2143969, 2173793, 2173825, 2153473, 2173857, 2173889, 2173921, 2173953]), new Uint32Array([0, 0, 0, 0, 0, 0, 23068672, 23068672, 0, 0, 0, 0, 2145410, 2145474, 0, 6291456]), new Uint32Array([2244161, 2216065, 2212769, 2244193, 2244225, 2244257, 2244290, 2244353, 2244385, 2244417, 2244449, 2218273, 2244481, 2244514, 2244577, 2244609]), new Uint32Array([2125730, 2125699, 2125795, 2125891, 2125987, 2154114, 2154178, 2154242, 2154306, 2154370, 2154434, 2154498, 2126082, 2126178, 2126274, 2126083]), new Uint32Array([2237665, 2237697, 2237697, 2237697, 2237730, 2237793, 2237825, 2237857, 2237890, 2237953, 2237985, 2238017, 2238049, 2238081, 2238113, 2238145]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 2150146, 6291456, 6291456, 6291456]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 0, 0, 23068672, 23068672, 0, 0, 23068672, 23068672, 23068672, 0, 0]), new Uint32Array([2214369, 2238593, 2238625, 2238657, 2238689, 2238721, 2238753, 2238785, 2238817, 2238850, 2238913, 2238945, 2238977, 2235457, 2239009, 2239041]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0]), new Uint32Array([2252066, 2252130, 2252193, 2252225, 2252257, 2252290, 2252353, 2252385, 2252417, 2252449, 2252481, 2252513, 2252545, 2252578, 2252641, 2252673]), new Uint32Array([2197697, 2114113, 2114209, 2197729, 2197761, 2114305, 2197793, 2114401, 2114497, 2197825, 2114593, 2114689, 2114785, 2114881, 2114977, 2197857]), new Uint32Array([2224866, 2224930, 2224994, 2225058, 2225122, 2225186, 2225250, 2225314, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2219490, 2219554, 2219617, 2219649, 2219681, 2219714, 2219778, 2219842, 2219905, 2219937, 0, 0, 0, 0, 0, 0]), new Uint32Array([6291456, 23068672, 23068672, 23068672, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 6291456]), new Uint32Array([2113345, 2113441, 2098209, 2111137, 2105505, 2098241, 2108353, 2108417, 2105825, 2111713, 2100897, 2111905, 2105473, 2105569, 2105601, 2112289]), new Uint32Array([2174081, 2174113, 2174145, 2174177, 2149057, 2233089, 2173697, 2173761, 2173793, 2174113, 2173985, 2173953, 2148481, 2173601, 2173633, 2173665]), new Uint32Array([2220161, 2220161, 2220193, 2220193, 2220193, 2220193, 2220225, 2220225, 2220225, 2220225, 2220257, 2220257, 2220257, 2220257, 2220289, 2220289]), new Uint32Array([2192673, 2192705, 2192737, 2192769, 2192801, 2192833, 2192865, 2118049, 2192897, 2117473, 2117761, 2192929, 2192961, 2192993, 2193025, 2193057]), new Uint32Array([2179297, 6291456, 2179329, 6291456, 2179361, 6291456, 2179393, 6291456, 2179425, 6291456, 2179457, 6291456, 2179489, 6291456, 2179521, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 23068672, 6291456, 6291456, 6291456, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([2235745, 2235777, 2193633, 2235809, 2235841, 2235873, 2235905, 2235937, 2235969, 2116513, 2116705, 2236001, 2200513, 2199905, 2200545, 2236033]), new Uint32Array([2113153, 2108481, 2113345, 2113441, 2232993, 2233025, 0, 0, 2148481, 2173601, 2173633, 2173665, 2173697, 2173729, 2148801, 2173761]), new Uint32Array([2170593, 6291456, 2170625, 6291456, 2170657, 6291456, 2170689, 2170721, 6291456, 2170753, 6291456, 6291456, 2170785, 6291456, 2170817, 2170849]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 2166786, 2166850, 0, 0, 0, 0]), new Uint32Array([23068672, 6291456, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 6291456, 6291456]), new Uint32Array([2100833, 2100737, 2098337, 2101441, 2101569, 2101697, 2101825, 2101953, 2102081, 2102209, 10575617, 2187041, 10502177, 10489601, 10489697, 0]), new Uint32Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2134562, 2132162, 2132834, 2136866, 2136482, 2164610, 2164674, 2164738, 2164802, 2132802, 2132706, 2164866, 2132898, 2164930, 2164994, 2165058]), new Uint32Array([6291456, 6291456, 2098337, 2101441, 10531458, 2153473, 6291456, 6291456, 10531522, 2100737, 2108193, 6291456, 2106499, 2106595, 2106691, 6291456]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([2233122, 2233186, 2233250, 2233314, 2233378, 2233442, 2233506, 2233570, 2233634, 2233698, 2233762, 2233826, 2233890, 2233954, 2234018, 2234082]), new Uint32Array([23068672, 6291456, 23068672, 23068672, 23068672, 6291456, 6291456, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 6291456, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 0, 6291456, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([2205217, 2205249, 2205281, 2205313, 2205345, 2205377, 2205409, 2205441, 2205473, 2205505, 2205537, 2205569, 2205601, 2205633, 2205665, 2205697]
46688), new Uint32Array([6291456, 0, 6291456, 0, 0, 0, 6291456, 6291456, 6291456, 6291456, 0, 0, 23068672, 6291456, 23068672, 23068672]), new Uint32Array([2173601, 2173761, 2174081, 2173569, 2174241, 2174113, 2173953, 6291456, 2174305, 6291456, 2174337, 6291456, 2174369, 6291456, 2174401, 6291456]), new Uint32Array([6291456, 23068672, 23068672, 23068672, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 6291456, 6291456]), new Uint32Array([2152450, 2152514, 2099653, 2104452, 2099813, 2122243, 2099973, 2152578, 2122339, 2122435, 2122531, 2122627, 2122723, 2104580, 2122819, 2152642]), new Uint32Array([2236385, 2236417, 2236449, 2236482, 2236545, 2215425, 2236577, 2236609, 2236641, 2236673, 2215457, 2236705, 2236737, 2236770, 2215489, 2236833]), new Uint32Array([2163394, 2159746, 2163458, 2131362, 2163522, 2160130, 2163778, 2132226, 2163842, 2132898, 2163906, 2161410, 2138658, 2097666, 2136162, 2163650]), new Uint32Array([2218721, 2246913, 2246946, 2216385, 2247010, 2247074, 2215009, 2247137, 2247169, 2216481, 2247201, 2247233, 2247266, 2247330, 2247330, 0]), new Uint32Array([2129730, 2129762, 2129858, 2129731, 2129827, 2156482, 2156482, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 6291456, 6291456, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 6291456, 0, 0, 0, 0, 0, 6291456, 0, 0]), new Uint32Array([2203969, 2204001, 2181377, 2204033, 2204065, 6291456, 2204097, 6291456, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([2169473, 6291456, 2169505, 6291456, 2169537, 6291456, 2169569, 6291456, 2169601, 6291456, 2169633, 6291456, 2169665, 6291456, 2169697, 6291456]), new Uint32Array([2141542, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2220801, 2220801, 2220801, 2220801, 2220833, 2220833, 2220865, 2220865, 2220865, 2220865, 2220897, 2220897, 2220897, 2220897, 2139873, 2139873]), new Uint32Array([0, 0, 0, 0, 0, 23068672, 23068672, 0, 0, 0, 0, 0, 0, 0, 6291456, 0]), new Uint32Array([2214849, 2218433, 2218465, 2218497, 2218529, 2218561, 2214881, 2218593, 2218625, 2218657, 2218689, 2218721, 2218753, 2216545, 2218785, 2218817]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6291456]), new Uint32Array([2136482, 2164610, 2164674, 2164738, 2164802, 2132802, 2132706, 2164866, 2132898, 2164930, 2164994, 2165058, 2165122, 2132802, 2132706, 2164866]), new Uint32Array([2207649, 2207681, 2207713, 2207745, 2207777, 2207809, 2207841, 2207873, 2207905, 2207937, 2207969, 2208001, 2208033, 2208065, 2208097, 2208129]), new Uint32Array([2123683, 2105092, 2152706, 2123779, 2105220, 2152770, 2100453, 2098755, 2123906, 2124002, 2124098, 2124194, 2124290, 2124386, 2124482, 2124578]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 0, 0, 0, 6291456, 0, 0, 0, 0, 0, 0, 0, 10485857]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([10508163, 10508259, 10508355, 10508451, 2200129, 2200161, 2192737, 2200193, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2203553, 6291456, 2203585, 6291456, 6291456, 6291456, 2203617, 6291456, 2203649, 6291456, 2203681, 6291456, 2203713, 6291456, 2203745, 6291456]), new Uint32Array([18884449, 18884065, 23068672, 18884417, 18884034, 18921185, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 18874368]), new Uint32Array([2247393, 2247426, 2247489, 2247521, 2247553, 2247586, 2247649, 2247681, 2247713, 2247745, 2247777, 2247810, 2247873, 2247905, 2247937, 2247969]), new Uint32Array([6291456, 6291456, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 6291456, 23068672]), new Uint32Array([2134145, 2097153, 2134241, 0, 2132705, 2130977, 2160065, 2131297, 0, 2133089, 2160577, 2133857, 2235297, 0, 2235329, 0]), new Uint32Array([2182593, 6291456, 2182625, 6291456, 2182657, 6291456, 2182689, 6291456, 2182721, 6291456, 2182753, 6291456, 2182785, 6291456, 2182817, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 2102402, 2102403, 6291456, 2110050]), new Uint32Array([2149890, 2108323, 2149954, 6291456, 2113441, 6291456, 2149057, 6291456, 2113441, 6291456, 2105473, 2167265, 2111137, 2105505, 6291456, 2108353]), new Uint32Array([2219105, 2219137, 2195233, 2251554, 2251617, 2251649, 2251681, 2251713, 2251746, 2251810, 2251873, 2251905, 2251937, 2251970, 2252033, 2219169]), new Uint32Array([2203009, 6291456, 2203041, 6291456, 2203073, 6291456, 2203105, 6291456, 2203137, 6291456, 2203169, 6291456, 2203201, 6291456, 2203233, 6291456]), new Uint32Array([2128195, 2128291, 2128387, 2128483, 2128579, 2128675, 2128771, 2128867, 2128963, 2129059, 2129155, 2129251, 2129347, 2129443, 2129539, 2129635]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 2140964, 2141156, 2140966, 2141158, 2141350]), new Uint32Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 23068672, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([2225378, 2225442, 2225506, 2225570, 2225634, 2225698, 2225762, 2225826, 2225890, 2225954, 2226018, 2226082, 2226146, 2226210, 2226274, 2226338]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 6291456, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2112577, 2098177, 2098305, 2108321, 2108289, 2100865, 2113153, 2108481, 2113345, 2113441, 2098209, 2111137, 2105505, 2098241, 2108353, 2108417]), new Uint32Array([2108353, 2108417, 0, 2105601, 2108193, 2157121, 2157313, 2157377, 2157441, 2100897, 6291456, 2108419, 2173953, 2173633, 2173633, 2173953]), new Uint32Array([2111713, 2173121, 2111905, 2098177, 2173153, 2173185, 2173217, 2113153, 2113345, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 6291456, 6291456, 6291456, 6291456, 2190753]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 2197249, 6291456, 2117377, 2197281, 2197313, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([6291456, 0, 0, 0, 0, 0, 0, 23068672, 0, 0, 0, 0, 0, 6291456, 6291456, 6291456]), new Uint32Array([2098337, 2101441, 2101569, 2101697, 2101825, 2101953, 2102081, 2102209, 2100833, 2100737, 2098337, 2101441, 2101569, 2101697, 2101825, 2101953]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0]), new Uint32Array([0, 0, 0, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 23068672, 23068672, 23068672]), new Uint32Array([2173281, 6291456, 2173313, 6291456, 2173345, 6291456, 2173377, 6291456, 0, 0, 10532546, 6291456, 6291456, 6291456, 10562017, 2173441]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 0, 0]), new Uint32Array([23068672, 23068672, 23068672, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2159426, 2159490, 2159554, 2159362, 2159618, 2159682, 2139522, 2136450, 2159746, 2159810, 2159874, 2130978, 2131074, 2131266, 2131362, 2159938]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2203233, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 2203265, 6291456, 2203297, 6291456, 2203329, 2203361, 6291456]), new Uint32Array([6291456, 6291456, 2148418, 2148482, 2148546, 0, 6291456, 2148610, 2186529, 2186561, 2148417, 2148545, 2148482, 10495
46688778, 2143969, 10495778]), new Uint32Array([2134146, 2139426, 2160962, 2134242, 2161218, 2161282, 2161346, 2161410, 2138658, 2134722, 2134434, 2134818, 2097666, 2097346, 2097698, 2105986]), new Uint32Array([2198881, 2198913, 2198945, 2198977, 2199009, 2199041, 2199073, 2199105, 2199137, 2199169, 2199201, 2199233, 2199265, 2199297, 2199329, 2199361]), new Uint32Array([0, 23068672, 23068672, 23068672, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 6291456]), new Uint32Array([10610561, 2098209, 2111137, 2105505, 2098241, 2108353, 2108417, 2105825, 2111713, 2100897, 2111905, 2105473, 2105569, 2105601, 2112289, 2108193]), new Uint32Array([2183873, 6291456, 2183905, 6291456, 2183937, 6291456, 2183969, 6291456, 2184001, 6291456, 2184033, 6291456, 2184065, 6291456, 2184097, 6291456]), new Uint32Array([2244642, 2244706, 2244769, 2244801, 2218305, 2244833, 2244865, 2244897, 2244929, 2244961, 2244993, 2245026, 2245089, 2245122, 2245185, 0]), new Uint32Array([6291456, 6291456, 2116513, 2116609, 2116705, 2116801, 2199873, 2199905, 2199937, 2199969, 2190913, 2200001, 2200033, 2200065, 2200097, 2191009]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 2180673, 2180705, 2180737, 2180769, 2180801, 2180833, 0, 0]), new Uint32Array([2098081, 2099521, 2099105, 2120705, 2098369, 2120801, 2103361, 2097985, 2098433, 2121377, 2121473, 2099169, 2099873, 2098401, 2099393, 2152609]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 2150402]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 2145666, 2145730, 6291456, 6291456]), new Uint32Array([2173921, 2173953, 2173985, 2173761, 2174017, 2174049, 2174081, 2174113, 2174145, 2174177, 2149057, 2233057, 2148481, 2173601, 2173633, 2173665]), new Uint32Array([2187073, 6291456, 6291456, 6291456, 6291456, 2098241, 2098241, 2108353, 2100897, 2111905, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 2102404, 6291456, 6291456, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 2100612, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 10485857]), new Uint32Array([2149057, 2233057, 2148481, 2173601, 2173633, 2173665, 2173697, 2173729, 2148801, 2173761, 2143969, 2173793, 2173825, 2153473, 2173857, 2173889]), new Uint32Array([2217697, 2217729, 2217761, 2217793, 2217825, 2217857, 2217889, 2217921, 2217953, 2215873, 2217985, 2215905, 2218017, 2218049, 2218081, 2218113]), new Uint32Array([2211233, 2218849, 2216673, 2218881, 2218913, 2218945, 2218977, 2219009, 2216833, 2219041, 2215137, 2219073, 2216865, 2209505, 2219105, 2216897]), new Uint32Array([2240097, 2240129, 2240161, 2240193, 2240225, 2240257, 2240289, 2240321, 2240353, 2240386, 2240449, 2240481, 2240513, 2240545, 2207905, 2240578]), new Uint32Array([6291456, 6291456, 2202273, 6291456, 2202305, 6291456, 2202337, 6291456, 2202369, 6291456, 2202401, 6291456, 2202433, 6291456, 2202465, 6291456]), new Uint32Array([0, 23068672, 23068672, 18923394, 23068672, 18923458, 18923522, 18884099, 18923586, 18884195, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([2201121, 6291456, 2201153, 6291456, 2201185, 6291456, 2201217, 6291456, 2201249, 6291456, 2201281, 6291456, 2201313, 6291456, 2201345, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 6291456, 6291456]), new Uint32Array([2211041, 2211073, 2211105, 2211137, 2211169, 2211201, 2211233, 2211265, 2211297, 2211329, 2211361, 2211393, 2211425, 2211457, 2211489, 2211521]), new Uint32Array([2181825, 6291456, 2181857, 6291456, 2181889, 6291456, 2181921, 6291456, 2181953, 6291456, 2181985, 6291456, 2182017, 6291456, 2182049, 6291456]), new Uint32Array([2162337, 2097633, 2097633, 2097633, 2097633, 2132705, 2132705, 2132705, 2132705, 2097153, 2097153, 2097153, 2097153, 2133089, 2133089, 2133089]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 0, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([6291456, 2148545, 6291456, 2173473, 6291456, 2148865, 6291456, 2173505, 6291456, 2173537, 6291456, 2173569, 6291456, 2149121, 0, 0]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 6291456, 6291456, 0, 6291456, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 23068672, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 0]), new Uint32Array([2148801, 2173761, 2143969, 2173793, 2173825, 2153473, 2173857, 2173889, 2173921, 2173953, 2173985, 2174017, 2174017, 2174049, 2174081, 2174113]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 0, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([2207137, 2207169, 2207201, 2207233, 2207265, 2207297, 2207329, 2207361, 2207393, 2207425, 2207457, 2207489, 2207521, 2207553, 2207585, 2207617]), new Uint32Array([6291456, 6291456, 23068672, 23068672, 23068672, 6291456, 6291456, 0, 23068672, 23068672, 0, 0, 0, 0, 0, 0]), new Uint32Array([2198401, 2198433, 2198465, 2198497, 0, 2198529, 2198561, 2198593, 2198625, 2198657, 2198689, 2198721, 2198753, 2198785, 2198817, 2198849]), new Uint32Array([2105505, 2098241, 2108353, 2108417, 2105825, 2111713, 2100897, 2111905, 2105473, 2105569, 2105601, 2112289, 2108193, 2112481, 2112577, 2098177]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 0, 0]), new Uint32Array([2216385, 2118721, 2216417, 2216449, 2216481, 2216513, 2216545, 2211233, 2216577, 2216609, 2216641, 2216673, 2216705, 2216737, 2216737, 2216769]), new Uint32Array([2216801, 2216833, 2216865, 2216897, 2216929, 2216961, 2216993, 2215169, 2217025, 2217057, 2217089, 2217121, 2217154, 2217217, 0, 0]), new Uint32Array([2210593, 2191809, 2210625, 2210657, 2210689, 2210721, 2210753, 2210785, 2210817, 2210849, 2191297, 221088
466881, 2210913, 2210945, 2210977, 2211009]), new Uint32Array([0, 0, 2105825, 0, 0, 2111905, 2105473, 0, 0, 2112289, 2108193, 2112481, 2112577, 0, 2098305, 2108321]), new Uint32Array([0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([0, 2097153, 2134241, 0, 2132705, 0, 0, 2131297, 0, 2133089, 0, 2133857, 0, 2220769, 0, 2235361]), new Uint32Array([14680064, 14680064, 14680064, 14680064, 14680064, 14680064, 14680064, 14680064, 14680064, 14680064, 14680064, 14680064, 14680064, 6291456, 6291456, 14680064]), new Uint32Array([23068672, 23068672, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([2171873, 6291456, 2171905, 6291456, 2171937, 6291456, 2171969, 6291456, 2172001, 6291456, 2172033, 6291456, 2172065, 6291456, 2172097, 6291456]), new Uint32Array([2220929, 2220929, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2133857, 2134145, 2134145, 2134145, 2134145, 2134241, 2134241, 2134241, 2134241, 2105889, 2105889, 2105889, 2105889, 2097185, 2097185, 2097185]), new Uint32Array([2173697, 2173761, 2173793, 2174113, 2173985, 2173953, 2148481, 2173601, 2173633, 2173665, 2173697, 2173729, 2148801, 2173761, 2143969, 2173793]), new Uint32Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10499619, 10499715, 10499811, 10499907]), new Uint32Array([0, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([6291456, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 23068672]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 0, 0, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 0, 0, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 6291456, 6291456, 0, 6291456]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 6291456, 6291456, 6291456]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 0, 23068672, 23068672, 23068672, 0, 23068672, 23068672, 23068672, 23068672, 6291456, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 6291456, 23068672, 23068672]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 0, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([6291456, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 2144322, 2144386, 2144450, 2144514, 2144578, 2144642, 2144706, 2144770]), new Uint32Array([23068672, 23068672, 23068672, 6291456, 6291456, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2113153, 2108481, 2113345, 2113441, 2098209, 2111137, 0, 2098241, 2108353, 2108417, 2105825, 0, 0, 2111905, 2105473, 2105569]), new Uint32Array([2236321, 2236353, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([2152194, 2121283, 2103684, 2103812, 2097986, 2098533, 2097990, 2098693, 2098595, 2098853, 2099013, 2103940, 2121379, 2121475, 2121571, 2104068]), new Uint32Array([2206241, 2206273, 2206305, 2206337, 2206369, 2206401, 2206433, 2206465, 2206497, 2206529, 2206561, 2206593, 2206625, 2206657, 2206689, 2206721]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 16777216, 16777216, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 23068672, 23068672, 10538818, 10538882, 6291456, 6291456, 2150338]), new Uint32Array([6291456, 6291456, 6291456, 0, 0, 0, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2214369, 2214401, 2214433, 2214465, 2214497, 2214529, 2214561, 2214593, 2194977, 2214625, 2195073, 2214657, 2214689, 2214721, 6291456, 6291456]), new Uint32Array([2097152, 2097152, 2097152, 2097152, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([2182081, 6291456, 2182113, 6291456, 2182145, 6291456, 2182177, 6291456, 2182209, 6291456, 2182241, 6291456, 2182273, 6291456, 2182305, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 2146881, 2146945, 2147009, 2147073, 2147137, 2147201, 2147265, 2147329]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 6291456, 23068672, 23068672]), new Uint32Array([0, 0, 0, 0, 0, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2122915, 2123011, 2123107, 2104708, 2123203, 2123299, 2123395, 2100133, 2104836, 2100290, 2100293, 2104962, 2104964, 2098052, 2123491, 2123587]), new Uint32Array([23068672, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 6291456]), new Uint32Array([6291456, 2171169, 6291456, 2171201, 6291456, 2171233, 6291456, 2171265, 6291456, 2171297, 6291456, 2171329, 6291456, 6291456, 2171361, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([0, 0, 2148994, 2149058, 2149122, 0, 6291456, 2149186, 2186945, 2173537, 2148993, 2149121, 2149058, 10531458, 10496066, 0]), new Uint32Array([2195009, 2195041, 2195073, 2195105, 2195137, 2195169, 2195201, 2195233, 2195265, 2195297, 2195329, 2195361, 2195393, 2195425, 2195457, 2195489]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 6291456, 0, 0, 6291456, 6291456]), new Uint32Array([2182849, 6291456, 2182881, 6291456, 2182913, 6291456, 2182945, 6291456, 2182977, 6291456, 2183009, 6291456, 2183041, 6291456, 2183073, 6291456]), new Uint32Array([2211553, 2210081, 2211585, 2211617, 2211649, 2211681, 2211713, 2211745, 2211777, 2211809, 2209569, 2211841, 2211873, 2211905, 2211937, 2211969]), new Uint32Array([2112577, 2098177, 2098305, 2108321, 2108289, 2100865, 2113153, 2108481, 2113345, 2113441, 2166594, 2127298, 2166658, 2142978, 2141827, 2166722]), new Uint32Array([2173985, 2173761, 2174017, 2174049, 2174081, 2174113, 2174145, 2174177, 2149057, 2233057, 2148481, 2173601, 2173633, 2173665, 2173697, 2173729]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 2185761, 2185793, 2185825, 2185857, 2185889, 2185921, 0, 0]), new Uint32Array([6291456, 2148481, 2173601, 2173633, 2173665, 2173697, 2173729, 2148801, 2173761, 2143969, 2173793, 2173825, 2153473, 2173857, 2173889, 2173921]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 0, 0, 6291456]), new Uint32Array([0, 0, 0, 2220961, 2220961, 2220961, 2220961, 2144193, 2144193, 2159201, 2159201, 2159265, 2159265, 2144194, 2220993, 2220993]), new Uint32Array([2192641, 2235393, 2235425, 2152257, 2116609, 2235457, 2235489, 2200065, 2235521, 2235553, 2235585, 2212449, 2235617, 2235649, 2235681, 2235713]), new Uint32Array([2194049, 2194081, 2194113, 2194145, 2194177, 2194209, 2194241, 2194273, 2194305, 2194337, 2194369, 2194401, 2194433, 2194465, 2194497, 2194529]), new Uint32Array([2196673, 2208641, 2208673, 2208705, 2208737, 2208769, 2208801, 2208833, 2208865, 2208897, 2208929, 2208961, 2208993, 2209025, 2209057, 2209089]), new Uint32Array([2191681, 2191713, 2191745, 2191777, 2153281, 2191809, 2191841, 2191873, 2191905, 2191937, 2191969, 2192001, 2192033, 2192065, 2192097, 2192129]), new Uint32Array([2230946, 2231010, 2231074, 2231138, 2231202, 2231266, 2231330, 2231394, 2231458, 2231522, 2231586, 2231650, 2231714, 2231778, 2231842, 2231906]), new Uint32Array([14680064, 14680064, 14680064, 14680064, 14680064, 14680064, 14680064, 14680064, 14680064, 14680064, 14680064, 14680064, 14680064, 14680064, 14680064, 14680064]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 2185953, 2185985, 2186017, 2186049, 2186081, 2186113, 2186145, 2186177]), new Uint32Array([2139811, 2139907, 2097284, 2105860, 2105988, 2106116, 2106244, 2097444, 2097604, 2097155, 10485778, 10486344, 2106372, 6291456, 0, 0]), new Uint32Array([2110051, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([0, 0, 0, 0, 0, 0, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2172385, 6291456, 2172417, 6291456, 2172449, 6291456, 2172481, 6291456, 2172513, 6291456, 2172545, 6291456, 2172577, 6291456, 2172609, 6291456]), new Uint32Array([0, 0, 23068672, 23068672, 6291456, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([2249345, 2249377, 2249409, 2249441, 2249473, 2249505, 2249537, 2249570, 2210209, 2249633, 2249665, 2249697, 2249729, 2249761, 2249793, 2216769]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 0, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2187169, 2187201, 2187233, 2187265, 2187297, 2187329, 2187361, 2187393, 2187425, 2187457, 2187489, 2187521, 2187553, 2187585, 2187617, 2187649]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([0, 0, 0, 6291456, 6291456, 0, 0, 0, 6291456, 6291456, 6291456, 0, 0, 0, 6291456, 6291456]), new Uint32Array([2182337, 6291456, 2182369, 6291456, 2182401, 6291456, 2182433, 6291456, 2182465, 6291456, 2182497, 6291456, 2182529, 6291456, 2182561, 6291456]), new Uint32Array([2138179, 2138275, 2138371, 2138467, 2134243, 2134435, 2138563, 2138659, 2138755, 2138851, 2138947, 2139043, 2138947, 2138755, 2139139, 2139235]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([0, 0, 23068672, 23068672, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2250498, 2250562, 2250625, 2250657, 2208321, 2250689, 2250721, 2250753, 2250785, 2250817, 2250849, 2218945, 2250881, 2250913, 2250945, 0]), new Uint32Array([2170369, 2105569, 2098305, 2108481, 2173249, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 6291456]), new Uint32Array([2100897, 2111905, 2105473, 2105569, 2105601, 0, 2108193, 0, 0, 0, 2098305, 2108321, 2108289, 2100865, 2113153, 2108481]), new Uint32Array([2100897, 2100897, 2105569, 2105569, 6291456, 2112289, 2149826, 6291456, 6291456, 2112481, 2112577, 2098177, 2098177, 2098177, 6291456, 6291456]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 0, 0, 6291456, 6291456, 6291456]), new Uint32Array([6291456, 2169953, 2169985, 6291456, 2170017, 6291456, 2170049, 2170081, 6291456, 2170113, 2170145, 2170177, 6291456, 6291456, 2170209, 2170241]), new Uint32Array([6291456, 6291456, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([0, 0, 0, 0, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2220641, 2220641, 2220673, 2220673, 2220673, 2220673, 2220705, 2220705, 2220705, 2220705, 2220737, 2220737, 2220737, 2220737, 2220769, 2220769]), new Uint32Array([2127650, 2127746, 2127842, 2127938, 2128034, 2128130, 2128226, 2128322, 2128418, 2127523, 2127619, 2127715, 2127811, 2127907, 2128003, 2128099]), new Uint32Array([2143969, 2173793, 2173825, 2153473, 2173857, 2173889, 2173921, 2173953, 2173985, 2173761, 2174017, 2174049, 2174081, 2174113, 2174145, 2174177]), new Uint32Array([0, 0, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([2204705, 2204737, 2204769, 2204801, 2204833, 2204865, 2204897, 2204929, 2204961, 2204993, 2205025, 2205057, 2205089, 2205121, 2205153, 2205185]), new Uint32Array([2176385, 6291456, 2176417, 6291456, 2176449, 6291456, 2176481, 6291456, 2176513, 6291456, 2176545, 6291456, 2176577, 6291456, 2176609, 6291456]), new Uint32Array([2195521, 2195553, 2195585, 2195617, 2195649, 2195681, 2117857, 2195713, 2195745, 2195777, 2195809, 2195841, 2195873, 2195905, 2195937, 2195969]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 0]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 6291456, 6291456, 6291456]), new Uint32Array([2173921, 2173953, 2173985, 2174017, 2174017, 2174049, 2174081, 2174113, 2174145, 2174177, 2149057, 2233089, 2173697, 2173761, 2173793, 2174113]), new Uint32Array([2131586, 2132450, 2135970, 2135778, 2161602, 2136162, 2163650, 2161794, 2135586, 2163714, 2137186, 2131810, 2160290, 2135170, 2097506, 2159554]), new Uint32Array([2134145, 2097153, 2134241, 2105953, 2132705, 2130977, 2160065, 2131297, 2162049, 2133089, 2160577, 2133857, 0, 0, 0, 0]), new Uint32Array([2116513, 2116609, 2116705, 2116801, 2116897, 2116993, 2117089, 2117185, 2117281, 2117377, 2117473, 2117569, 2117665, 2117761, 2117857, 2117953]), new Uint32Array([2100737, 2098337, 2101441, 2101569, 2101697, 2101825, 2101953, 2102081, 2102209, 2100802, 2101154, 2101282, 2101410, 2101538, 2101666, 2101794]), new Uint32Array([2100289, 2098657, 2098049, 2200737, 2123489, 2123681, 2200769, 2098625, 2100321, 2098145, 2100449, 2098017, 2098753, 2098977, 2150241, 2150305]), new Uint32Array([6291456, 6291456, 6291456, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 2109955, 6291456, 6291456, 0, 0, 0, 0]), new Uint32Array([18874368, 18874368, 18874368, 18874368, 18874368, 18874368, 18874368, 18874368, 18874368, 18874368, 18874368, 18874368, 18874368, 18874368, 18874368, 18874368]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 6291456, 0, 6291456, 0, 0]), new Uint32Array([2130979, 2131075, 2131075, 2131171, 2131267, 2131363, 2131459, 2131555, 2131651, 2131651, 2131747, 2131843, 2131939, 2132035, 2132131, 2132227]), new Uint32Array([0, 2177793, 6291456, 2177825, 6291456, 2177857, 6291456, 2177889, 6291456, 2177921, 6291456, 2177953, 6291456, 2177985, 6291456, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672]), new Uint32Array([6291456, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([2113345, 0, 2098209, 2111137, 2105505, 2098241, 2108353, 2108417, 2105825, 2111713, 2100897, 2111905, 2105473, 2105569, 2105601, 2112289]), new Uint32Array([2136643, 2136739, 2136835, 2136931, 2137027, 2137123, 2137219, 2137315, 2137411, 2137507, 2137603, 2137699, 2137795, 2137891, 2137987, 2138083]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0]), new Uint32Array([2174433, 6291456, 2174465, 6291456, 2174497, 6291456, 2174529, 
466886291456, 2174561, 6291456, 2174593, 6291456, 2174625, 6291456, 2174657, 6291456]), new Uint32Array([0, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2105473, 2105569, 2105601, 2112289, 2108193, 2112481, 2112577, 2098177, 2098305, 2108321, 2108289, 2100865, 2113153, 2108481, 2113345, 2113441]), new Uint32Array([10496547, 10496643, 2105505, 2149698, 6291456, 10496739, 10496835, 2170273, 6291456, 2149762, 2105825, 2111713, 2111713, 2111713, 2111713, 2168673]), new Uint32Array([6291456, 2143490, 2143490, 2143490, 2171649, 6291456, 2171681, 2171713, 2171745, 6291456, 2171777, 6291456, 2171809, 6291456, 2171841, 6291456]), new Uint32Array([2159106, 2159106, 2159170, 2159170, 2159234, 2159234, 2159298, 2159298, 2159298, 2159362, 2159362, 2159362, 2106401, 2106401, 2106401, 2106401]), new Uint32Array([2105601, 2112289, 2108193, 2112481, 2112577, 2098177, 2098305, 2108321, 2108289, 2100865, 2113153, 2108481, 2113345, 2113441, 2098209, 2111137]), new Uint32Array([2108417, 2181217, 2181249, 2181281, 2170433, 2170401, 2181313, 2181345, 2181377, 2181409, 2181441, 2181473, 2181505, 2181537, 2170529, 2181569]), new Uint32Array([2218433, 2245761, 2245793, 2245825, 2245857, 2245890, 2245953, 2245986, 2209665, 2246050, 2246113, 2246146, 2246210, 2246274, 2246337, 2246369]), new Uint32Array([2230754, 2230818, 2230882, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([6291456, 0, 6291456, 6291456, 6291456, 6291456, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([6291456, 0, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2184129, 6291456, 2184161, 6291456, 2184193, 6291456, 6291456, 6291456, 6291456, 6291456, 2146818, 2183361, 6291456, 6291456, 2142978, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2135170, 2097506, 2130691, 2130787, 2130883, 2163970, 2164034, 2164098, 2164162, 2164226, 2164290, 2164354, 2164418, 2164482, 2164546, 2133122]), new Uint32Array([2108515, 2108611, 2100740, 2108707, 2108803, 2108899, 2108995, 2109091, 2109187, 2109283, 2109379, 2109475, 2109571, 2109667, 2109763, 2100738]), new Uint32Array([2102788, 2102916, 2103044, 2120515, 2103172, 2120611, 2120707, 2098373, 2103300, 2120803, 2120899, 2120995, 2103428, 2103556, 2121091, 2121187]), new Uint32Array([2158082, 2158146, 0, 2158210, 2158274, 0, 2158338, 2158402, 2158466, 2129922, 2158530, 2158594, 2158658, 2158722, 2158786, 2158850]), new Uint32Array([10499619, 10499715, 10499811, 10499907, 10500003, 10500099, 10500195, 10500291, 10500387, 10500483, 10500579, 10500675, 10500771, 10500867, 10500963, 10501059]), new Uint32Array([2239585, 2239618, 2239681, 2239713, 0, 2191969, 2239745, 2239777, 2192033, 2239809, 2239841, 2239874, 2239937, 2239970, 2240033, 2240065]), new Uint32Array([2252705, 2252738, 2252801, 2252833, 2252865, 2252897, 2252930, 2252994, 2253057, 2253089, 2253121, 2253154, 2253217, 2253250, 2219361, 2219361]), new Uint32Array([2105825, 2111713, 2100897, 2111905, 2105473, 2105569, 2105601, 2112289, 2108193, 2112481, 2112577, 2098177, 2098305, 2108321, 2108289, 2100865]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 10538050, 10538114, 10538178, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([2226402, 2226466, 2226530, 2226594, 2226658, 2226722, 2226786, 2226850, 2226914, 2226978, 2227042, 2227106, 2227170, 2227234, 2227298, 2227362]), new Uint32Array([23068672, 6291456, 6291456, 6291456, 6291456, 2144066, 2144130, 2144194, 2144258, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 23068672, 23068672, 6291456, 23068672, 23068672]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([2124674, 2124770, 2123875, 2123971, 2124067, 2124163, 2124259, 2124355, 2124451, 2124547, 2124643, 2124739, 2124835, 2124931, 2125027, 2125123]), new Uint32Array([2168065, 6291456, 2168097, 6291456, 2168129, 6291456, 2168161, 6291456, 2168193, 6291456, 2168225, 6291456, 2168257, 6291456, 2168289, 6291456]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 0, 0, 0, 0]), new Uint32Array([23068672, 23068672, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 2100610, 2100611, 6291456, 2107842, 2107843, 6291456, 6291456, 6291456, 6291456, 10537922, 6291456, 10537986, 6291456]), new Uint32Array([2174849, 2174881, 2174913, 2174945, 2174977, 2175009, 2175041, 2175073, 2175105, 2175137, 2175169, 2175201, 2175233, 2175265, 2175297, 2175329]), new Uint32Array([2154562, 2154626, 2154690, 2154754, 2141858, 2154818, 2154882, 2127298, 2154946, 2127298, 2155010, 2155074, 2155138, 2155202, 2155266, 2155202]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 23068672, 0]), new Uint32Array([2200641, 2150786, 2150850, 2150914, 2150978, 2151042, 2106562, 2151106, 2150562, 2151170, 2151234, 2151298, 2151362, 2151426, 2151490, 2151554]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 0, 0, 0, 0, 0, 0, 0, 0, 6291456, 6291456]), new Uint32Array([2220289, 2220289, 2220321, 2220321, 2220321, 2220321, 2220353, 2220353, 2220353, 2220353, 2220385, 2220385, 2220385, 2220385, 2220417, 2220417]), new Uint32Array([2155330, 2155394, 0, 2155458, 2155522, 2155586, 2105732, 0, 2155650, 2155714, 2155778, 2125314, 2155842, 2155906, 2126274, 2155970]), new Uint32Array([23068672, 23068672, 23068672, 23068672, 23068672, 6291456, 6291456, 23068672, 23068672, 6291456, 23068672, 23068672, 23068672, 23068672, 6291456, 6291456]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 6291456, 0, 0, 0, 0, 0, 0]), new Uint32Array([2097729, 2106017, 2106017, 2106017, 2106017, 2131297, 2131297, 2131297, 2131297, 2106081, 2106081, 2162049, 2162049, 2105953, 2105953, 2162337]), new Uint32Array([2097185, 2097697, 2097697, 2097697, 2097697, 2135777, 2135777, 2135777, 2135777, 2097377, 2097377, 2097377, 2097377, 2097601, 2097601, 2097217]), new Uint32Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 23068672]), new Uint32Array([2139331, 2139427, 2139523, 2139043, 2133571, 2132611, 2139619, 2139715, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([2174113, 2174145, 2100897, 2098177, 2108289, 2100865, 2173601, 2173633, 2173985, 2174113, 2174145, 6291456, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([6291456, 6291456, 23068672, 6291456, 6291456, 6291456, 23068672, 6291456, 6291456, 6291456, 6291456, 23068672, 6291456, 6291456, 6291456, 6291456]), new Uint32Array([23068672, 23068672, 18923778, 23068672, 23068672, 23068672, 23068672, 18923842, 23068672, 23068672, 23068672, 23068672, 18923906, 23068672, 23068672, 23068672]), new Uint32Array([2134145, 2097153, 2134241, 0, 2132705, 2130977, 2160065, 2131297, 0, 2133089, 0, 2133857, 0, 0, 0, 0]), new Uint32Array([6291456, 6291456, 6291456, 6291456, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([2177537, 6291456, 2177569, 6291456, 2177601, 6291456, 2177633, 6291456, 2177665, 6291456, 2177697, 6291456, 2177729, 6291456, 2177761, 6291456]), new Uint32Array([2212481, 2212513, 2212545, 2212577, 2197121, 2212609, 2212641, 2212673, 2212705, 2212737, 2212769, 2212801, 2212833, 2212865, 2212897, 2212929]), new Uint32Array([6291456, 6291456, 23068672, 23068672, 23068672, 6291456, 6291456, 0, 0, 0, 0, 0, 0, 0, 0, 0]), new Uint32Array([2098241, 2108353, 2170209, 2105825, 2111713, 2100897, 2111905, 2105473, 2105569, 2105601, 2112289, 6291456, 2108193, 2172417, 2112481, 2098177]), new Uint32Array([6291456, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 23068672, 6291456, 6291456])], t4 = new Uint16Array([616, 616, 565, 147, 161, 411, 330, 2, 131, 131, 328, 454, 241, 408, 86, 86, 696, 113, 285, 350, 325, 301, 473, 214, 639, 232, 447, 64, 369, 598, 124, 672, 567, 223, 621, 154, 107, 86, 86, 86, 86, 86, 86, 505, 86, 68, 634, 86, 218, 218, 218, 218, 486, 218, 218, 513, 188, 608, 216, 86, 217, 463, 668, 85, 700, 360, 184, 86, 86, 86, 647, 402, 153, 10, 346, 718, 662, 260, 145, 298, 117, 1, 443, 342, 138, 54, 563, 86, 240, 572, 218, 70, 387, 86, 118, 460, 641, 602, 86, 86, 306, 218, 86, 692, 86, 86, 86, 86, 86, 162, 707, 86, 458, 26, 86, 218, 638, 86, 86, 86, 86, 86, 65, 449, 86, 86, 306, 183, 86, 58, 391, 667, 86, 157, 131, 131, 131, 131, 86, 433, 131, 406, 31, 218, 247, 86, 86, 693, 218, 581, 351, 86, 438, 295, 69, 462, 45, 126, 173, 650, 14, 295, 69, 97, 168, 187, 641, 78, 523, 390, 69, 108, 287, 664, 173, 219, 83, 295, 69, 108, 431, 426, 173, 694, 412, 115, 628, 52, 257, 398, 641, 118, 501, 121, 69, 579, 151, 423, 173, 620, 464, 121, 69, 382, 151, 476, 173, 27, 53, 121, 86, 594, 5
4668878, 226, 173, 86, 632, 130, 86, 96, 228, 268, 641, 622, 563, 86, 86, 21, 148, 650, 131, 131, 321, 43, 144, 343, 381, 531, 131, 131, 178, 20, 86, 399, 156, 375, 164, 541, 30, 60, 715, 198, 92, 118, 131, 131, 86, 86, 306, 407, 86, 280, 457, 196, 488, 358, 131, 131, 244, 86, 86, 143, 86, 86, 86, 86, 86, 667, 563, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 336, 363, 86, 86, 336, 86, 86, 380, 678, 67, 86, 86, 86, 678, 86, 86, 86, 512, 86, 307, 86, 708, 86, 86, 86, 86, 86, 528, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 563, 307, 86, 86, 86, 86, 86, 104, 450, 337, 86, 720, 86, 32, 450, 397, 86, 86, 86, 587, 218, 558, 708, 708, 293, 708, 86, 86, 86, 86, 86, 694, 205, 86, 8, 86, 86, 86, 86, 549, 86, 667, 697, 697, 679, 86, 458, 460, 86, 86, 650, 86, 708, 543, 86, 86, 86, 245, 86, 86, 86, 140, 218, 127, 708, 708, 458, 197, 131, 131, 131, 131, 500, 86, 86, 483, 251, 86, 306, 510, 515, 86, 722, 86, 86, 86, 65, 201, 86, 86, 483, 580, 470, 86, 86, 86, 368, 131, 131, 131, 694, 114, 110, 555, 86, 86, 123, 721, 163, 142, 713, 418, 86, 317, 675, 209, 218, 218, 218, 371, 545, 592, 629, 490, 603, 199, 46, 320, 525, 680, 310, 279, 388, 111, 42, 252, 593, 607, 235, 617, 410, 377, 50, 548, 135, 356, 17, 520, 189, 116, 392, 600, 349, 332, 482, 699, 690, 535, 119, 106, 451, 71, 152, 
46688667, 131, 218, 218, 265, 671, 637, 492, 504, 533, 683, 269, 269, 658, 86, 86, 86, 86, 86, 86, 86, 86, 86, 491, 619, 86, 86, 6, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 229, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 667, 86, 86, 171, 131, 118, 131, 656, 206, 234, 571, 89, 334, 670, 246, 311, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 534, 86, 86, 86, 86, 86, 86, 82, 86, 86, 86, 86, 86, 430, 86, 86, 86, 86, 86, 86, 86, 86, 86, 599, 86, 324, 86, 470, 69, 640, 264, 131, 626, 101, 174, 86, 86, 667, 233, 105, 73, 374, 394, 221, 204, 84, 28, 326, 86, 86, 471, 86, 86, 86, 109, 573, 86, 171, 200, 200, 200, 200, 218, 218, 86, 86, 86, 86, 460, 131, 131, 131, 86, 506, 86, 86, 86, 86, 86, 220, 404, 34, 614, 47, 442, 305, 25, 612, 338, 601, 648, 7, 344, 255, 131, 131, 51, 86, 312, 507, 563, 86, 86, 86, 86, 588, 86, 86, 86, 86, 86, 530, 511, 86, 458, 3, 435, 384, 556, 522, 230, 527, 86, 118, 86, 86, 717, 86, 137, 273, 79, 181, 484, 23, 93, 112, 655, 249, 417, 703, 370, 87, 98, 313, 684, 585, 155, 465, 596, 481, 695, 18, 416, 428, 61, 701, 706, 282, 643, 495, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 549, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 549, 131, 131, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 307, 86, 86, 86, 171, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 650, 131, 422, 542, 420, 263, 24, 172, 86, 86, 86, 86, 86, 566, 86, 86, 132, 540, 395, 353, 494, 519, 19, 485, 284, 472, 131, 131, 131, 16, 714, 86, 211, 708, 86, 86, 86, 694, 698, 86, 86, 483, 704, 708, 218, 272, 86, 86, 120, 86, 159, 478, 86, 307, 247, 86, 86, 663, 597, 459, 627, 667, 86, 86, 277, 455, 39, 302, 86, 250, 86, 86, 86, 271, 99, 452, 306, 281, 329, 400, 200, 86, 86, 362, 549, 352, 646, 461, 323, 586, 86, 86, 4, 708, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 717, 86, 518, 86, 86, 650, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 125, 554, 480, 300, 613, 72, 333, 288, 561, 544, 604, 48, 719, 91, 169, 176, 590, 224, 76, 191, 29, 559, 560, 23
466881, 537, 166, 477, 538, 256, 437, 131, 131, 469, 167, 40, 0, 685, 266, 441, 705, 239, 642, 475, 568, 640, 610, 299, 673, 517, 318, 385, 22, 202, 180, 179, 359, 424, 215, 90, 66, 521, 653, 467, 682, 453, 409, 479, 88, 131, 661, 35, 303, 15, 262, 666, 630, 712, 131, 131, 618, 659, 175, 218, 195, 347, 193, 227, 261, 150, 165, 709, 546, 294, 569, 710, 270, 413, 376, 524, 55, 242, 38, 419, 529, 170, 657, 3, 304, 122, 379, 278, 131, 651, 86, 67, 576, 458, 458, 131, 131, 86, 86, 86, 86, 86, 86, 86, 118, 309, 86, 86, 547, 86, 86, 86, 86, 667, 650, 664, 131, 131, 86, 86, 56, 131, 131, 131, 131, 131, 131, 131, 131, 86, 307, 86, 86, 86, 664, 238, 650, 86, 86, 717, 86, 118, 86, 86, 315, 86, 59, 86, 86, 574, 549, 131, 131, 340, 57, 436, 86, 86, 86, 86, 86, 86, 458, 708, 499, 691, 62, 86, 650, 86, 86, 694, 86, 86, 86, 319, 131, 131, 131, 131, 131, 131, 131, 131, 131, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 171, 86, 549, 694, 131, 131, 131, 131, 131, 131, 131, 131, 131, 77, 86, 86, 139, 86, 502, 86, 86, 86, 667, 595, 131, 131, 131, 86, 12, 86, 13, 86, 609, 131, 131, 131, 131, 86, 86, 86, 625, 86, 669, 86, 86, 182, 129, 86, 5, 694, 104, 86, 86, 86, 86, 131, 131, 86, 86, 386, 171, 86, 86, 86, 345, 86, 324, 86, 589, 86, 213, 36, 131, 131, 131, 131, 131, 86, 86, 86, 86, 104, 131, 131, 131, 141, 290, 80, 677, 86, 86, 86, 267, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 86, 667, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 515, 86, 86, 33, 136, 669, 86, 711, 515, 86, 86, 550, 640, 86, 104, 708, 515, 86, 159, 372, 717, 86, 86, 444, 515, 86, 86, 663, 37, 86, 563, 460, 86, 390, 624, 702, 131, 131, 131, 131, 389, 59, 708, 86, 86, 341, 208, 708, 635, 295, 69, 108, 431, 508, 100, 190, 131, 131, 131, 131, 131, 131, 131, 131, 86, 86, 86, 649, 516, 660, 131, 131, 86, 86, 86, 218, 631, 708, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 86, 86, 341, 575, 238, 514, 131, 131, 86, 86, 86, 218, 291, 708, 307, 131, 86, 86, 306, 367, 708, 131, 131, 131, 86, 378, 697, 86, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 615, 253, 86, 86, 86, 292, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 86, 86, 86, 104, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 69, 86, 341, 553, 549, 86, 307, 86, 86, 645, 275, 455, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 708, 131, 131, 131, 131, 131, 131, 86, 86, 86, 86, 86, 86, 667, 460, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 717, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 667, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 171, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 104, 86, 667, 459, 131, 131, 131, 131, 131, 131, 86, 458, 225, 86, 86, 86, 516, 549, 11, 390, 405, 86, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 86, 86, 86, 86, 460, 44, 218, 197, 711, 515, 131, 131, 131, 131, 664, 131, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 307, 131, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 308, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 640, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 86, 86, 86, 86, 86, 86, 118, 307, 104, 286, 591, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 549, 86, 86, 681, 86, 86, 75, 185, 314, 582, 86, 358, 496, 474, 86
46688, 104, 131, 86, 86, 86, 86, 146, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 86, 86, 86, 86, 86, 171, 86, 640, 131, 131, 131, 131, 131, 131, 131, 131, 246, 503, 689, 339, 674, 81, 258, 415, 439, 128, 562, 366, 414, 246, 503, 689, 583, 222, 557, 316, 636, 665, 186, 355, 95, 670, 246, 503, 689, 339, 674, 557, 258, 415, 439, 186, 355, 95, 670, 246, 503, 689, 446, 644, 536, 652, 331, 532, 335, 440, 274, 421, 297, 570, 74, 425, 364, 425, 606, 552, 403, 509, 134, 365, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 218, 218, 218, 498, 218, 218, 577, 627, 551, 497, 572, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 553, 354, 236, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 296, 455, 131, 131, 456, 243, 103, 86, 41, 459, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 9, 276, 158, 716, 393, 564, 383, 489, 401, 654, 210, 654, 131, 131, 131, 640, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 86, 86, 650, 86, 86, 86, 86, 86, 86, 717, 667, 563, 563, 563, 86, 549, 102, 686, 133, 246, 605, 86, 448, 86, 86, 207, 307, 131, 131, 131, 641, 86, 177, 611, 445, 373, 194, 584, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 308, 307, 171, 86, 86, 86, 86, 86, 86, 86, 717, 86, 86, 86, 86, 86, 460, 131, 131, 650, 86, 86, 86, 694, 708, 86, 86, 694, 86, 458, 131, 131, 131, 131, 131, 131, 667, 694, 289, 650, 667, 131, 131, 86, 640, 131, 131, 664, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 171, 131, 131, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 460, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 458, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86
46688, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 640, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 466, 203, 149, 429, 94, 432, 160, 687, 539, 63, 237, 283, 192, 248, 348, 259, 427, 526, 396, 676, 254, 468, 487, 212, 327, 623, 49, 633, 322, 493, 434, 688, 357, 361, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131]), { mapStr: "صلى الله عليه وسلمجل جلالهキロメートルrad∕s2エスクードキログラムキロワットグラムトンクルゼイロサンチームパーセントピアストルファラッドブッシェルヘクタールマンションミリバールレントゲン′′′′1⁄10viii(10)(11)(12)(13)(14)(15)(16)(17)(18)(19)(20)∫∫∫∫(오전)(오후)アパートアルファアンペアイニングエーカーカラットカロリーキュリーギルダークローネサイクルシリングバーレルフィートポイントマイクロミクロンメガトンリットルルーブル株式会社kcalm∕s2c∕kgاكبرمحمدصلعمرسولریال1⁄41⁄23⁄4 ̈́ྲཱྀླཱྀ ̈͂ ̓̀ ̓́ ̓͂ ̔̀ ̔́ ̔͂ ̈̀‵‵‵a/ca/sc/oc/utelfax1⁄71⁄91⁄32⁄31⁄52⁄53⁄54⁄51⁄65⁄61⁄83⁄85⁄87⁄8xii0⁄3∮∮∮(1)(2)(3)(4)(5)(6)(7)(8)(9)(a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)(l)(m)(n)(o)(p)(q)(r)(s)(t)(u)(v)(w)(x)(y)(z)::====(ᄀ)(ᄂ)(ᄃ)(ᄅ)(ᄆ)(ᄇ)(ᄉ)(ᄋ)(ᄌ)(ᄎ)(ᄏ)(ᄐ)(ᄑ)(ᄒ)(가)(나)(다)(라)(마)(바)(사)(아)(자)(ì°¨)(ì¹´)(타)(파)(하)(주)(一)(二)(三)(四)(五)(六)(七)(八)(九)(十)(月)(火)(æ°´)(木)(金)(土)(日)(æ ª)(有)(社)(名)(特)(財)(祝)(労)(代)(呼)(å­¦)(監)(企)(資)(協)(祭)(休)(自)(至)pte10月11月12月ergltdアールインチウォンオンスオームカイリガロンガンマギニーケースコルナコーポセンチダースノットハイツパーツピã
46688‚¯ãƒ«ãƒ•ランペニヒヘルツペンスページベータボルトポンドホールホーンマイルマッハマルクヤードヤールユアンルピー10点11点12点13点14点15点16点17点18点19点20点21点22点23点24点hpabardm2dm3khzmhzghzthzmm2cm2km2mm3cm3km3kpampagpalogmilmolppmv∕ma∕m10日11日12日13日14日15日16日17日18日19日20日21日22日23日24日25日26日27日28日29日30日31日galffifflשּׁשּׂ ٌّ ٍّ َّ ُّ ِّ ّٰـَّـُّـِّتجمتحجتحمتخمتمجتمحتمخجمححميحمىسحجسجحسجىسمحسمجسممصححصممشحمشجيشمخشممضحىضخمطمحطممطميعجمعممعمىغممغميغمىفخمقمحقمملحملحيلحىلججلخملمحمحجمحيمجحمجممخممجخهمجهممنحمنحىنجمنجىنمينمىيممبخيتجيتجىتخيتخىتميتمىجميجحىجمىسخىصحيشحيضحيلجيلمييحييجييميمميقمينحيعميكمينجحمخيلجمكممجحيحجيمجيفميبحيسخينجيصلےقلے𝅘𝅥𝅮𝅘𝅥𝅯𝅘𝅥𝅰𝅘𝅥𝅱𝅘𝅥𝅲𝆹𝅥𝅮𝆺𝅥𝅮𝆹𝅥𝅯𝆺𝅥𝅯〔s〕ppv〔本〕〔三〕〔二〕〔安〕〔点〕〔打〕〔盗〕〔勝〕〔敗〕 ̄ ́ ̧ssi̇ijl·ʼndžljnjdz ̆ ̇ ̊ ̨ ̃ ̋ ιեւاٴوٴۇٴيٴक़ख़ग़ज़ड़ढ़फ़य़ড়ঢ়য়ਲ਼ਸ਼ਖ਼ਗ਼ਜ਼ਫ਼ଡ଼ଢ଼ําໍາຫນຫມགྷཌྷདྷབྷཛྷཀྵཱཱིུྲྀླྀྒྷྜྷྡྷྦྷྫྷྐྵaʾἀιἁιἂιἃιἄιἅιἆιἇιἠιἡιἢιἣιἤιἥιἦιἧιὠιὡιὢιὣιὤιὥιὦιὧιὰιαιάιᾶι ͂ὴιηιήιῆιὼιωιώιῶι ̳!! ̅???!!?rs°
46688c°fnosmtmivix⫝̸ ゙ ゚よりコト333435참고주의363738394042444546474849503月4月5月6月7月8月9月hgevギガデシドルナノピコビルペソホンリラレムdaauovpciu平成昭和大正明治naμakakbmbgbpfnfμfμgmgμlmldlklfmnmμmpsnsμsmsnvμvkvpwnwμwmwkwkωmωbqcccddbgyhainkkktlnlxphprsrsvwbstմնմեմիվնմխיִײַשׁשׂאַאָאּבּגּדּהּוּזּטּיּךּכּלּמּנּסּףּפּצּקּרּתּוֹבֿכֿפֿאלئائەئوئۇئۆئۈئېئىئجئحئمئيبجبمبىبيتىتيثجثمثىثيخحضجضمطحظمغجفجفحفىفيقحقىقيكاكجكحكخكلكىكينخنىنيهجهىهييىذٰرٰىٰئرئزئنبزبنترتزتنثرثزثنمانرنزننيريزئخئهبهتهصخنههٰثهسهشهطىطيعىعيغىغيسىسيشىشيصىصيضىضيشخشرسرصرضراً ًـًـّ ْـْلآلألإ𝅗𝅥0,1,2,3,4,5,6,7,8,9,wzhvsdwcmcmddjほかココàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþāăąćĉċčďđēĕėęěĝğġģĥħĩīĭįĵķĺļľłńņňŋōŏőœŕŗřśŝşšţťŧũūŭůűųŵŷÿźżɓƃƅɔƈɖɗƌǝəɛƒɠɣɩɨƙɯɲɵơƣƥʀƨʃƭʈưʊʋƴƶʒƹƽǎǐǒǔǖǘǚǜǟǡǣǥǧǩǫǭǯǵƕƿǹǻǽǿȁȃȅȇȉȋȍȏȑȓȕȗșțȝȟƞȣȥȧȩȫȭȯȱȳⱥȼƚⱦɂƀʉʌɇɉɋɍɏɦɹɻʁʕͱͳʹͷ;ϳέίόύβγδεζθκλνξοπρστυφχψϊϋϗϙϛϝϟϡϣϥϧϩϫϭϯϸϻͻͼͽѐёђѓєѕіїјљњћќѝўџабвгдежзийклмнопрстуфхцчшщъыьэюяѡѣѥѧѩѫѭѯѱѳѵѷѹѻѽѿҁҋҍҏґғҕҗҙқҝҟҡңҥҧҩҫҭүұҳҵҷҹһҽҿӂӄӆӈӊӌӎӑӓӕӗәӛӝӟӡӣӥӧөӫӭӯӱӳӵӷӹӻӽӿԁԃԅԇԉԋԍԏԑԓԕԗԙԛԝԟԡԣԥԧԩԫԭԯաբգդզէըթժլծկհձղճյշոչպջռստրցփքօֆ་ⴧⴭნᏰᏱᏲᏳᏴᏵꙋɐɑᴂɜᴖᴗᴝᴥɒɕɟɡɥɪᵻʝɭᶅʟɱɰɳɴɸʂƫᴜʐʑḁḃḅḇḉḋḍḏḑḓḕḗḙḛḝḟḡḣḥḧḩḫḭḯḱḳḵḷḹḻḽḿṁṃṅṇṉṋṍṏṑṓṕṗṙṛṝṟṡṣṥṧṩṫṭṯṱṳṵṷṹṻṽṿẁẃẅẇẉẋẍẏẑẓẕạảấầẩẫậắằẳẵặẹẻẽếềểễệỉịọỏốồổỗộớờởỡợụủứừửữựỳỵỷỹỻỽỿἐἑἒἓἔἕἰἱἲἳἴἵἶἷὀὁὂὃὄὅὑὓὕὗᾰᾱὲΐῐῑὶΰῠῡὺῥ`ὸ‐+−∑〈〉ⰰⰱⰲⰳⰴⰵⰶⰷⰸⰹⰺⰻⰼⰽⰾⰿⱀⱁⱂⱃⱄⱅⱆⱇⱈⱉⱊⱋⱌⱍⱎⱏⱐⱑⱒⱓⱔⱕⱖⱗⱘⱙⱚⱛⱜⱝⱞⱡɫᵽɽⱨⱪⱬⱳⱶȿɀⲁⲃⲅⲇⲉⲋⲍⲏⲑⲓⲕⲗⲙⲛⲝⲟⲡⲣⲥⲧⲩⲫⲭⲯⲱⲳⲵⲷⲹⲻⲽⲿⳁⳃⳅⳇⳉⳋⳍⳏⳑⳓⳕⳗⳙⳛⳝⳟⳡⳣⳬⳮⳳⵡ母龟丨丶丿乙亅亠人儿入冂冖冫几凵刀力勹匕匚匸卜卩厂厶又口囗士夂夊夕女子宀寸小尢尸屮山巛工己巾干幺广廴廾弋弓彐彡彳心戈戶手支攴文斗斤方无曰欠止歹殳毋比毛氏气爪父爻爿片牙牛犬玄玉瓜瓦甘生用田疋疒癶白皮皿目矛矢石示禸禾穴立竹米糸缶网羊羽老而耒耳聿肉臣臼舌舛舟艮色艸虍虫血行衣襾見角言谷豆豕豸貝赤走足身車辛辰辵邑酉釆里長門阜隶隹雨靑非面革韋韭音頁風飛食首香馬骨高髟鬥鬯鬲鬼魚鳥鹵鹿麥麻黃黍黑黹黽鼎鼓鼠鼻齊齒龍龜龠.〒卄卅ᄁᆪᆬᆭᄄᆰᆱᆲᆳᆴᆵᄚᄈᄡᄊ짜ᅢᅣᅤᅥᅦᅧᅨᅩᅪᅫᅬᅭᅮᅯᅰᅱᅲᅳᅴᅵᄔᄕᇇᇈᇌᇎᇓᇗᇙᄜᇝᇟᄝᄞᄠᄢᄣᄧᄩᄫᄬᄭᄮᄯᄲᄶᅀᅇᅌᇱᇲᅗᅘᅙᆄᆅᆈᆑᆒᆔᆞᆡ上中下甲丙丁天地問幼箏우秘男適優印注項写左右医宗夜テヌモヨヰヱヲꙁꙃꙅꙇꙉꙍꙏꙑꙓꙕꙗꙙꙛꙝꙟꙡꙣꙥꙧꙩꙫꙭꚁꚃꚅꚇꚉꚋꚍꚏꚑꚓꚕꚗꚙꚛꜣꜥꜧꜩꜫꜭꜯꜳꜵꜷꜹꜻꜽꜿꝁꝃꝅꝇꝉꝋꝍꝏꝑꝓꝕꝗꝙꝛꝝꝟꝡꝣꝥꝧꝩꝫꝭꝯꝺꝼᵹꝿꞁꞃꞅꞇꞌꞑꞓꞗꞙꞛꞝꞟꞡꞣꞥꞧꞩɬʞʇꭓꞵꞷꬷꭒᎠᎡᎢᎣᎤᎥᎦᎧᎨᎩᎪᎫᎬᎭᎮᎯᎰᎱᎲᎳᎴᎵᎶᎷᎸᎹᎺᎻᎼᎽᎾᎿᏀᏁᏂᏃᏄᏅᏆᏇᏈᏉᏊᏋᏌᏍᏎᏏᏐᏑᏒᏓᏔᏕᏖᏗᏘᏙᏚᏛᏜᏝᏞᏟᏠᏡᏢᏣᏤᏥᏦᏧᏨᏩᏪᏫᏬᏭᏮᏯ豈更賈滑串句契喇奈懶癩羅蘿螺裸邏樂洛烙珞落酪駱亂卵欄爛蘭鸞嵐濫藍襤拉臘蠟廊朗浪狼郎來冷å‹
46688žæ“„櫓爐盧蘆虜路露魯鷺碌祿綠菉錄論壟弄籠聾牢磊賂雷壘屢樓淚漏累縷陋勒肋凜凌稜綾菱陵讀拏諾丹寧怒率異北磻便復不泌數索參塞省葉說殺沈拾若掠略亮兩凉梁糧良諒量勵呂廬旅濾礪閭驪麗黎曆歷轢年憐戀撚漣煉璉秊練聯輦蓮連鍊列劣咽烈裂廉念捻殮簾獵令囹嶺怜玲瑩羚聆鈴零靈領例禮醴隸惡了僚寮尿料燎療蓼遼暈阮劉杻柳流溜琉留硫紐類戮陸倫崙淪輪律慄栗隆利吏履易李梨泥理痢罹裏裡離匿溺吝燐璘藺隣鱗麟林淋臨笠粒狀炙識什茶刺切度拓糖宅洞暴輻降廓兀嗀塚晴凞猪益礼神祥福靖精蘒諸逸都飯飼館鶴郞隷侮僧免勉勤卑喝嘆器塀墨層悔慨憎懲敏既暑梅海渚漢煮爫琢碑祉祈祐祖禍禎穀突節縉繁署者臭艹著褐視謁謹賓贈辶難響頻恵𤋮舘並况全侀充冀勇勺啕喙嗢墳奄奔婢嬨廒廙彩徭惘慎愈慠戴揄搜摒敖望杖滛滋瀞瞧爵犯瑱甆画瘝瘟盛直睊着磌窱类絛缾荒華蝹襁覆調請諭變輸遲醙鉶陼韛頋鬒𢡊𢡄𣏕㮝䀘䀹𥉉𥳐𧻓齃龎עםٱٻپڀٺٿٹڤڦڄڃچڇڍڌڎڈژڑکگڳڱںڻۀہھۓڭۋۅۉ、〖〗—–_{}【】《》「」『』[]#&*-<>\\$%@ءؤة\"'^|~⦅⦆・ゥャ¢£¬¦¥₩│←↑→↓■○𐐨𐐩𐐪𐐫𐐬𐐭𐐮𐐯𐐰𐐱𐐲𐐳𐐴𐐵𐐶𐐷𐐸𐐹𐐺𐐻𐐼𐐽𐐾𐐿𐑀𐑁𐑂𐑃𐑄𐑅𐑆𐑇𐑈𐑉𐑊𐑋𐑌𐑍𐑎𐑏𐓘𐓙𐓚𐓛𐓜𐓝𐓞𐓟𐓠𐓡𐓢𐓣𐓤𐓥𐓦𐓧𐓨𐓩𐓪𐓫𐓬𐓭𐓮𐓯𐓰𐓱𐓲𐓳𐓴𐓵𐓶𐓷𐓸𐓹𐓺𐓻𐳀𐳁𐳂𐳃𐳄𐳅𐳆𐳇𐳈𐳉𐳊𐳋𐳌𐳍𐳎𐳏𐳐𐳑𐳒𐳓𐳔𐳕𐳖𐳗𐳘𐳙𐳚𐳛𐳜𐳝𐳞𐳟𐳠𐳡𐳢𐳣𐳤𐳥𐳦𐳧𐳨𐳩𐳪𐳫𐳬𐳭𐳮𐳯𐳰𐳱𐳲𑣀𑣁𑣂𑣃𑣄𑣅𑣆𑣇𑣈𑣉𑣊𑣋𑣌𑣍𑣎𑣏𑣐𑣑𑣒𑣓𑣔𑣕𑣖𑣗𑣘𑣙𑣚𑣛𑣜𑣝𑣞𑣟ıȷ∇∂𞤢𞤣𞤤𞤥𞤦𞤧𞤨𞤩𞤪𞤫𞤬𞤭𞤮𞤯𞤰𞤱𞤲𞤳𞤴𞤵𞤶𞤷𞤸𞤹𞤺𞤻𞤼𞤽𞤾𞤿𞥀𞥁𞥂𞥃ٮڡٯ字双多解交映無前後再新初終販声吹演投捕遊指禁空合満申割営配得可丽丸乁𠄢你侻倂偺備像㒞𠘺兔兤具𠔜㒹內𠕋冗冤仌冬𩇟刃㓟刻剆剷㔕包匆卉博即卽卿𠨬灰及叟𠭣叫叱吆咞吸呈周咢哶唐啓啣善喫喳嗂圖圗噑噴壮城埴堍型堲報墬𡓤売壷夆夢奢𡚨𡛪姬娛娧姘婦㛮嬈嬾𡧈寃寘寳𡬘寿将㞁屠峀岍𡷤嵃𡷦嵮嵫嵼巡巢㠯巽帨帽幩㡢𢆃㡼庰庳庶𪎒𢌱舁弢㣇𣊸𦇚形彫㣣徚忍志忹悁㤺㤜𢛔惇慈慌慺憲憤憯懞戛扝抱拔捐𢬌挽拼捨掃揤𢯱搢揅掩㨮摩摾撝摷㩬敬𣀊旣書晉㬙㬈㫤冒冕最暜肭䏙朡杞杓𣏃㭉柺枅桒𣑭梎栟椔楂榣槪檨𣚣櫛㰘次𣢧歔㱎歲殟殻𣪍𡴋𣫺汎𣲼沿泍汧洖派浩浸涅𣴞洴港湮㴳滇𣻑淹潮𣽞𣾎濆瀹瀛㶖灊災灷炭𠔥煅𤉣熜爨牐𤘈犀犕𤜵𤠔獺王㺬玥㺸瑇瑜璅瓊㼛甤𤰶甾𤲒𢆟瘐𤾡𤾸𥁄㿼䀈𥃳𥃲𥄙𥄳眞真瞋䁆䂖𥐝硎䃣𥘦𥚚𥛅秫䄯穊穏𥥼𥪧䈂𥮫篆築䈧𥲀糒䊠糨糣紀𥾆絣䌁緇縂繅䌴𦈨𦉇䍙𦋙罺𦌾羕翺𦓚𦔣聠𦖨聰𣍟䏕育脃䐋脾媵𦞧𦞵𣎓𣎜舄辞䑫芑芋芝劳花芳芽苦𦬼茝荣莭茣莽菧荓菊菌菜𦰶𦵫𦳕䔫蓱蓳蔖𧏊蕤𦼬䕝䕡𦾱𧃒䕫虐虧虩蚩蚈蜎蛢蜨蝫螆蟡蠁䗹衠𧙧裗裞䘵裺㒻𧢮𧥦䚾䛇誠𧲨貫賁贛起𧼯𠠄跋趼跰𠣞軔𨗒𨗭邔郱鄑𨜮鄛鈸鋗鋘鉼鏹鐕𨯺開䦕閷𨵷䧦雃嶲霣𩅅𩈚䩮䩶韠𩐊䪲𩒖頩𩖶飢䬳餩馧駂駾䯎𩬰鱀鳽䳎䳭鵧𪃎䳸𪄅𪈎𪊑䵖黾鼅鼏鼖𪘀", mapChar: function(r4) {
46689          return r4 >= 196608 ? r4 >= 917760 && r4 <= 917999 ? 18874368 : 0 : e4[t4[r4 >> 4]][15 & r4];
46690        } };
46691        var e4, t4;
46692      }.apply(t3, [])) || (e3.exports = n2);
46693    }, 4489: (e3, t3, r3) => {
46694      var n2 = r3(8847)(r3(3106));
46695      function i(e4, t4) {
46696        var r4 = "undefined" != typeof Symbol && e4[Symbol.iterator] || e4["@@iterator"];
46697        if (!r4) {
46698          if (Array.isArray(e4) || (r4 = function(e5, t5) {
46699            if (e5) {
46700              if ("string" == typeof e5)
46701                return o(e5, t5);
46702              var r5 = Object.prototype.toString.call(e5).slice(8, -1);
46703              return "Object" === r5 && e5.constructor && (r5 = e5.constructor.name), "Map" === r5 || "Set" === r5 ? Array.from(e5) : "Arguments" === r5 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r5) ? o(e5, t5) : void 0;
46704            }
46705          }(e4)) || t4 && e4 && "number" == typeof e4.length) {
46706            r4 && (e4 = r4);
46707            var n3 = 0, i2 = function() {
46708            };
46709            return { s: i2, n: function() {
46710              return n3 >= e4.length ? { done: true } : { done: false, value: e4[n3++] };
46711            }, e: function(e5) {
46712              throw e5;
46713            }, f: i2 };
46714          }
46715          throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
46716        }
46717        var a2, s2 = true, u3 = false;
46718        return { s: function() {
46719          r4 = r4.call(e4);
46720        }, n: function() {
46721          var e5 = r4.next();
46722          return s2 = e5.done, e5;
46723        }, e: function(e5) {
46724          u3 = true, a2 = e5;
46725        }, f: function() {
46726          try {
46727            s2 || null == r4.return || r4.return();
46728          } finally {
46729            if (u3)
46730              throw a2;
46731          }
46732        } };
46733      }
46734      function o(e4, t4) {
46735        (null == t4 || t4 > e4.length) && (t4 = e4.length);
46736        for (var r4 = 0, n3 = new Array(t4); r4 < t4; r4++)
46737          n3[r4] = e4[r4];
46738        return n3;
46739      }
46740      var a = 2147483647, s = 36, u2 = /^xn--/, c2 = /[^\0-\x7E]/, f2 = /[\x2E\u3002\uFF0E\uFF61]/g, d2 = { overflow: "Overflow: input needs wider integers to process", "not-basic": "Illegal input >= 0x80 (not a basic code point)", "invalid-input": "Invalid input" }, l2 = Math.floor, h2 = String.fromCharCode;
46741      function p2(e4) {
46742        throw new RangeError(d2[e4]);
46743      }
46744      function b2(e4, t4) {
46745        var r4 = e4.split("@"), n3 = "";
46746        r4.length > 1 && (n3 = r4[0] + "@", e4 = r4[1]);
46747        var i2 = function(e5, t5) {
46748          for (var r5 = [], n4 = e5.length; n4--; )
46749            r5[n4] = t5(e5[n4]);
46750          return r5;
46751        }((e4 = e4.replace(f2, ".")).split("."), t4).join(".");
46752        return n3 + i2;
46753      }
46754      function y2(e4) {
46755        for (var t4 = [], r4 = 0, n3 = e4.length; r4 < n3; ) {
46756          var i2 = e4.charCodeAt(r4++);
46757          if (i2 >= 55296 && i2 <= 56319 && r4 < n3) {
46758            var o2 = e4.charCodeAt(r4++);
46759            56320 == (64512 & o2) ? t4.push(((1023 & i2) << 10) + (1023 & o2) + 65536) : (t4.push(i2), r4--);
46760          } else
46761            t4.push(i2);
46762        }
46763        return t4;
46764      }
46765      var m2 = function(e4, t4) {
46766        return e4 + 22 + 75 * (e4 < 26) - ((0 != t4) << 5);
46767      }, v2 = function(e4, t4, r4) {
46768        var n3 = 0;
46769        for (e4 = r4 ? l2(e4 / 700) : e4 >> 1, e4 += l2(e4 / t4); e4 > 455; n3 += s)
46770          e4 = l2(e4 / 35);
46771        return l2(n3 + 36 * e4 / (e4 + 38));
46772      }, g2 = function(e4) {
46773        var t4, r4 = [], n3 = e4.length, i2 = 0, o2 = 128, u3 = 72, c3 = e4.lastIndexOf("-");
46774        c3 < 0 && (c3 = 0);
46775        for (var f3 = 0; f3 < c3; ++f3)
46776          e4.charCodeAt(f3) >= 128 && p2("not-basic"), r4.push(e4.charCodeAt(f3));
46777        for (var d3 = c3 > 0 ? c3 + 1 : 0; d3 < n3; ) {
46778          for (var h3 = i2, b3 = 1, y3 = s; ; y3 += s) {
46779            d3 >= n3 && p2("invalid-input");
46780            var m3 = (t4 = e4.charCodeAt(d3++)) - 48 < 10 ? t4 - 22 : t4 - 65 < 26 ? t4 - 65 : t4 - 97 < 26 ? t4 - 97 : s;
46781            (m3 >= s || m3 > l2((a - i2) / b3)) && p2("overflow"), i2 += m3 * b3;
46782            var g3 = y3 <= u3 ? 1 : y3 >= u3 + 26 ? 26 : y3 - u3;
46783            if (m3 < g3)
46784              break;
46785            var w3 = s - g3;
46786            b3 > l2(a / w3) && p2("overflow"), b3 *= w3;
46787          }
46788          var A3 = r4.length + 1;
46789          u3 = v2(i2 - h3, A3, 0 == h3), l2(i2 / A3) > a - o2 && p2("overflow"), o2 += l2(i2 / A3), i2 %= A3, r4.splice(i2++, 0, o2);
46790        }
46791        return String.fromCodePoint.apply(String, r4);
46792      }, w2 = function(e4) {
46793        var t4, r4 = [], n3 = (e4 = y2(e4)).length, o2 = 128, u3 = 0, c3 = 72, f3 = i(e4);
46794        try {
46795          for (f3.s(); !(t4 = f3.n()).done; ) {
46796            var d3 = t4.value;
46797            d3 < 128 && r4.push(h2(d3));
46798          }
46799        } catch (e5) {
46800          f3.e(e5);
46801        } finally {
46802          f3.f();
46803        }
46804        var b3 = r4.length, g3 = b3;
46805        for (b3 && r4.push("-"); g3 < n3; ) {
46806          var w3, A3 = a, k2 = i(e4);
46807          try {
46808            for (k2.s(); !(w3 = k2.n()).done; ) {
46809              var _ = w3.value;
46810              _ >= o2 && _ < A3 && (A3 = _);
46811            }
46812          } catch (e5) {
46813            k2.e(e5);
46814          } finally {
46815            k2.f();
46816          }
46817          var S2 = g3 + 1;
46818          A3 - o2 > l2((a - u3) / S2) && p2("overflow"), u3 += (A3 - o2) * S2, o2 = A3;
46819          var x2, E2 = i(e4);
46820          try {
46821            for (E2.s(); !(x2 = E2.n()).done; ) {
46822              var P2 = x2.value;
46823              if (P2 < o2 && ++u3 > a && p2("overflow"), P2 == o2) {
46824                for (var O2 = u3, B2 = s; ; B2 += s) {
46825                  var T2 = B2 <= c3 ? 1 : B2 >= c3 + 26 ? 26 : B2 - c3;
46826                  if (O2 < T2)
46827                    break;
46828                  var C2 = O2 - T2, I2 = s - T2;
46829                  r4.push(h2(m2(T2 + C2 % I2, 0))), O2 = l2(C2 / I2);
46830                }
46831                r4.push(h2(m2(O2, 0))), c3 = v2(u3, S2, g3 == b3), u3 = 0, ++g3;
46832              }
46833            }
46834          } catch (e5) {
46835            E2.e(e5);
46836          } finally {
46837            E2.f();
46838          }
46839          ++u3, ++o2;
46840        }
46841        return r4.join("");
46842      }, A2 = { version: "2.1.0", ucs2: { decode: y2, encode: function(e4) {
46843        return String.fromCodePoint.apply(String, (0, n2.default)(e4));
46844      } }, decode: g2, encode: w2, toASCII: function(e4) {
46845        return b2(e4, function(e5) {
46846          return c2.test(e5) ? "xn--" + w2(e5) : e5;
46847        });
46848      }, toUnicode: function(e4) {
46849        return b2(e4, function(e5) {
46850          return u2.test(e5) ? g2(e5.slice(4).toLowerCase()) : e5;
46851        });
46852      } };
46853      e3.exports = A2;
46854    }, 3956: (e3, t3, r3) => {
46855      var n2, i;
46856      r3(8847)(r3(3355)), n2 = [r3(4489), r3(2996)], void 0 === (i = function(e4, t4) {
46857        return function(e5, t5) {
46858          function r4(r5, n4, i3) {
46859            for (var o = [], a = e5.ucs2.decode(r5), s = 0; s < a.length; s++) {
46860              var u2 = a[s], c2 = e5.ucs2.encode([a[s]]), f2 = t5.mapChar(u2), d2 = f2 >> 23, l2 = f2 >> 21 & 3, h2 = f2 >> 5 & 65535, p2 = 31 & f2, b2 = t5.mapStr.substr(h2, p2);
46861              if (0 === l2 || n4 && 1 & d2)
46862                throw new Error("Illegal char " + c2);
46863              1 === l2 ? o.push(b2) : 2 === l2 ? o.push(i3 ? b2 : c2) : 3 === l2 && o.push(c2);
46864            }
46865            return o.join("").normalize("NFC");
46866          }
46867          function n3(t6, n4, o) {
46868            void 0 === o && (o = false);
46869            var a = r4(t6, o, n4).split(".");
46870            return (a = a.map(function(t7) {
46871              return t7.startsWith("xn--") ? i2(t7 = e5.decode(t7.substring(4)), o, false) : i2(t7, o, n4), t7;
46872            })).join(".");
46873          }
46874          function i2(e6, n4, i3) {
46875            if ("-" === e6[2] && "-" === e6[3])
46876              throw new Error("Failed to validate " + e6);
46877            if (e6.startsWith("-") || e6.endsWith("-"))
46878              throw new Error("Failed to validate " + e6);
46879            if (e6.includes("."))
46880              throw new Error("Failed to validate " + e6);
46881            if (r4(e6, n4, i3) !== e6)
46882              throw new Error("Failed to validate " + e6);
46883            var o = e6.codePointAt(0);
46884            if (t5.mapChar(o) & 2 << 23)
46885              throw new Error("Label contains illegal character: " + o);
46886          }
46887          return { toUnicode: function(e6, t6) {
46888            return void 0 === t6 && (t6 = {}), n3(e6, false, "useStd3ASCII" in t6 && t6.useStd3ASCII);
46889          }, toAscii: function(t6, r5) {
46890            void 0 === r5 && (r5 = {});
46891            var i3, o = !("transitional" in r5) || r5.transitional, a = "useStd3ASCII" in r5 && r5.useStd3ASCII, s = "verifyDnsLength" in r5 && r5.verifyDnsLength, u2 = n3(t6, o, a).split(".").map(e5.toASCII), c2 = u2.join(".");
46892            if (s) {
46893              if (c2.length < 1 || c2.length > 253)
46894                throw new Error("DNS name has wrong length: " + c2);
46895              for (i3 = 0; i3 < u2.length; i3++) {
46896                var f2 = u2[i3];
46897                if (f2.length < 1 || f2.length > 63)
46898                  throw new Error("DNS label has wrong length: " + f2);
46899              }
46900            }
46901            return c2;
46902          } };
46903        }(e4, t4);
46904      }.apply(t3, n2)) || (e3.exports = i);
46905    }, 3226: (e3, t3) => {
46906      t3.read = function(e4, t4, r3, n2, i) {
46907        var o, a, s = 8 * i - n2 - 1, u2 = (1 << s) - 1, c2 = u2 >> 1, f2 = -7, d2 = r3 ? i - 1 : 0, l2 = r3 ? -1 : 1, h2 = e4[t4 + d2];
46908        for (d2 += l2, o = h2 & (1 << -f2) - 1, h2 >>= -f2, f2 += s; f2 > 0; o = 256 * o + e4[t4 + d2], d2 += l2, f2 -= 8)
46909          ;
46910        for (a = o & (1 << -f2) - 1, o >>= -f2, f2 += n2; f2 > 0; a = 256 * a + e4[t4 + d2], d2 += l2, f2 -= 8)
46911          ;
46912        if (0 === o)
46913          o = 1 - c2;
46914        else {
46915          if (o === u2)
46916            return a ? NaN : 1 / 0 * (h2 ? -1 : 1);
46917          a += Math.pow(2, n2), o -= c2;
46918        }
46919        return (h2 ? -1 : 1) * a * Math.pow(2, o - n2);
46920      }, t3.write = function(e4, t4, r3, n2, i, o) {
46921        var a, s, u2, c2 = 8 * o - i - 1, f2 = (1 << c2) - 1, d2 = f2 >> 1, l2 = 23 === i ? Math.pow(2, -24) - Math.pow(2, -77) : 0, h2 = n2 ? 0 : o - 1, p2 = n2 ? 1 : -1, b2 = t4 < 0 || 0 === t4 && 1 / t4 < 0 ? 1 : 0;
46922        for (t4 = Math.abs(t4), isNaN(t4) || t4 === 1 / 0 ? (s = isNaN(t4) ? 1 : 0, a = f2) : (a = Math.floor(Math.log(t4) / Math.LN2), t4 * (u2 = Math.pow(2, -a)) < 1 && (a--, u2 *= 2), (t4 += a + d2 >= 1 ? l2 / u2 : l2 * Math.pow(2, 1 - d2)) * u2 >= 2 && (a++, u2 /= 2), a + d2 >= f2 ? (s = 0, a = f2) : a + d2 >= 1 ? (s = (t4 * u2 - 1) * Math.pow(2, i), a += d2) : (s = t4 * Math.pow(2, d2 - 1) * Math.pow(2, i), a = 0)); i >= 8; e4[r3 + h2] = 255 & s, h2 += p2, s /= 256, i -= 8)
46923          ;
46924        for (a = a << i | s, c2 += i; c2 > 0; e4[r3 + h2] = 255 & a, h2 += p2, a /= 256, c2 -= 8)
46925          ;
46926        e4[r3 + h2 - p2] |= 128 * b2;
46927      };
46928    }, 1736: (e3) => {
46929      "function" == typeof Object.create ? e3.exports = function(e4, t3) {
46930        t3 && (e4.super_ = t3, e4.prototype = Object.create(t3.prototype, { c
46930onstructor: { value: e4, enumerable: false, writable: true, configurable: true } }));
46931      } : e3.exports = function(e4, t3) {
46932        if (t3) {
46933          e4.super_ = t3;
46934          var r3 = function() {
46935          };
46936          r3.prototype = t3.prototype, e4.prototype = new r3(), e4.prototype.constructor = e4;
46937        }
46938      };
46939    }, 9446: (e3, t3, r3) => {
46940      var n2 = r3(8847)(r3(3355)), i = r3(1191)(), o = r3(593)("Object.prototype.toString"), a = function(e4) {
46941        return !(i && e4 && "object" === (0, n2.default)(e4) && Symbol.toStringTag in e4) && "[object Arguments]" === o(e4);
46942      }, s = function(e4) {
46943        return !!a(e4) || null !== e4 && "object" === (0, n2.default)(e4) && "number" == typeof e4.length && e4.length >= 0 && "[object Array]" !== o(e4) && "[object Function]" === o(e4.callee);
46944      }, u2 = function() {
46945        return a(arguments);
46946      }();
46947      a.isLegacyArguments = s, e3.exports = u2 ? a : s;
46948    }, 1493: (e3, t3, r3) => {
46949      var n2, i, o = r3(8847)(r3(3355)), a = Function.prototype.toString, s = "object" === ("undefined" == typeof Reflect ? "undefined" : (0, o.default)(Reflect)) && null !== Reflect && Reflect.apply;
46950      if ("function" == typeof s && "function" == typeof Object.defineProperty)
46951        try {
46952          n2 = Object.defineProperty({}, "length", { get: function() {
46953            throw i;
46954          } }), i = {}, s(function() {
46955            throw 42;
46956          }, null, n2);
46957        } catch (e4) {
46958          e4 !== i && (s = null);
46959        }
46960      else
46961        s = null;
46962      var u2 = /^\s*class\b/, c2 = function(e4) {
46963        try {
46964          var t4 = a.call(e4);
46965          return u2.test(t4);
46966        } catch (e5) {
46967          return false;
46968        }
46969      }, f2 = function(e4) {
46970        try {
46971          return !c2(e4) && (a.call(e4), true);
46972        } catch (e5) {
46973          return false;
46974        }
46975      }, d2 = Object.prototype.toString, l2 = "function" == typeof Symbol && !!Symbol.toStringTag, h2 = !(0 in [,]), p2 = function() {
46976        return false;
46977      };
46978      if ("object" === ("undefined" == typeof document ? "undefined" : (0, o.default)(document))) {
46979        var b2 = document.all;
46980        d2.call(b2) === d2.call(document.all) && (p2 = function(e4) {
46981          if ((h2 || !e4) && (void 0 === e4 || "object" === (0, o.default)(e4)))
46982            try {
46983              var t4 = d2.call(e4);
46984              return ("[object HTMLAllCollection]" === t4 || "[object HTML document.all class]" === t4 || "[object HTMLCollection]" === t4 || "[object Object]" === t4) && null == e4("");
46985            } catch (e5) {
46986            }
46987          return false;
46988        });
46989      }
46990      e3.exports = s ? function(e4) {
46991        if (p2(e4))
46992          return true;
46993        if (!e4)
46994          return false;
46995        if ("function" != typeof e4 && "object" !== (0, o.default)(e4))
46996          return false;
46997        try {
46998          s(e4, null, n2);
46999        } catch (e5) {
47000          if (e5 !== i)
47001            return false;
47002        }
47003        return !c2(e4) && f2(e4);
47004      } : function(e4) {
47005        if (p2(e4))
47006          return true;
47007        if (!e4)
47008          return false;
47009        if ("function" != typeof e4 && "object" !== (0, o.default)(e4))
47010          return false;
47011        if (l2)
47012          return f2(e4);
47013        if (c2(e4))
47014          return false;
47015        var t4 = d2.call(e4);
47016        return !("[object Function]" !== t4 && "[object GeneratorFunction]" !== t4 && !/^\[object HTML/.test(t4)) && f2(e4);
47017      };
47018    }, 4339: (e3) => {
47019      e3.exports = function(e4) {
47020        if (!e4)
47021          return false;
47022        var r3 = t3.call(e4);
47023        return "[object Function]" === r3 || "function" == typeof e4 && "[object RegExp]" !== r3 || "undefined" != typeof window && (e4 === window.setTimeout || e4 === window.alert || e4 === window.confirm || e4 === window.prompt);
47024      };
47025      var t3 = Object.prototype.toString;
47026    }, 4477: (e3, t3, r3) => {
47027      var n2, i = Object.prototype.toString, o = Function.prototype.toString, a = /^\s*(?:function)?\*/, s = r3(1191)(), u2 = Object.getPrototypeOf;
47028      e3.exports = function(e4) {
47029        if ("function" != typeof e4)
47030          return false;
47031        if (a.test(o.call(e4)))
47032          return true;
47033        if (!s)
47034          return "[object GeneratorFunction]" === i.call(e4);
47035        if (!u2)
47036          return false;
47037        if (void 0 === n2) {
47038          var t4 = function() {
47039            if (!s)
47040              return false;
47041            try {
47042              return Function("return function*() {}")();
47043            } catch (e5) {
47044            }
47045          }();
47046          n2 = !!t4 && u2(t4);
47047        }
47048        return u2(e4) === n2;
47049      };
47050    }, 8619: (e3, t3, r3) => {
47051      var n2 = r3(8847)(r3(3355));
47052      e3.exports = function(e4) {
47053        if ("string" != typeof e4)
47054          throw new Error("[is-hex-prefixed] value must be type 'string', is currently type " + (0, n2.default)(e4) + ", while checking isHexPrefixed.");
47055        return "0x" === e4.slice(0, 2);
47056      };
47057    }, 8915: (e3, t3, r3) => {
47058      var n2 = r3(8847)(r3(3355)), i = r3(8184), o = r3(3604), a = r3(593), s = a("Object.prototype.toString"), u2 = r3(1191)(), c2 = r3(3820), f2 = "undefined" == typeof globalThis ? r3.g : globalThis, d2 = o(), l2 = a("Array.prototype.indexOf", true) || function(e4, t4) {
47059        for (var r4 = 0; r4 < e4.length; r4 += 1)
47060          if (e4[r4] === t4)
47061            return r4;
47062        return -1;
47063      }, h2 = a("String.prototype.slice"), p2 = {}, b2 = Object.getPrototypeOf;
47064      u2 && c2 && b2 && i(d2, function(e4) {
47065        var t4 = new f2[e4]();
47066        if (Symbol.toStringTag in t4) {
47067          var r4 = b2(t4), n3 = c2(r4, Symbol.toStringTag);
47068          if (!n3) {
47069            var i2 = b2(r4);
47070            n3 = c2(i2, Symbol.toStringTag);
47071          }
47072          p2[e4] = n3.get;
47073        }
47074      }), e3.exports = function(e4) {
47075        if (!e4 || "object" !== (0, n2.default)(e4))
47076          return false;
47077        if (!u2 || !(Symbol.toStringTag in e4)) {
47078          var t4 = h2(s(e4), 8, -1);
47079          return l2(d2, t4) > -1;
47080        }
47081        return !!c2 && function(e5) {
47082          var t5 = false;
47083          return i(p2, function(r4, n3) {
47084            if (!t5)
47085              try {
47086                t5 = r4.call(e5) === n3;
47087              } catch (e6) {
47088              }
47089          }), t5;
47090        }(e4);
47091      };
47092    }, 9484: (e3) => {
47093      var t3 = {}.toString;
47094      e3.exports = Array.isArray || function(e4) {
47095        return "[object Array]" == t3.call(e4);
47096      };
47097    }, 4858: (e3, t3, r3) => {
47098      e3 = r3.nmd(e3);
47099      var n2 = r3(9142), i = r3(8847)(r3(3355));
47100      !function() {
47101        var t4 = "object" === ("undefined" == typeof window ? "undefined" : (0, i.default)(window)) ? window : {};
47102        !t4.JS_SHA3_NO_NODE_JS && "object" === (void 0 === n2 ? "undefined" : (0, i.default)(n2)) && n2.versions && n2.versions.node && (t4 = r3.g);
47103        for (var o = !t4.JS_SHA3_NO_COMMON_JS && "object" === (0, i.default)(e3) && e3.exports, a = "0123456789abcdef".split(""), s = [0, 8, 16, 24], u2 = [1, 0, 32898, 0, 32906, 2147483648, 2147516416, 2147483648, 32907, 0, 2147483649, 0, 2147516545, 2147483648, 32777, 2147483648, 138, 0, 136, 0, 2147516425, 0, 2147483658, 0, 2147516555, 0, 139, 2147483648, 32905, 2147483648, 32771, 2147483648, 32770, 2147483648, 128, 2147483648, 32778, 0, 2147483658, 2147483648, 2147516545, 2147483648, 32896, 2147483648, 2147483649, 0, 2147516424, 2147483648], c2 = [224, 256, 384, 512], f2 = ["hex", "buffer", "arrayBuffer", "array"], d2 = function(e4, t5, r4) {
47104          return function(n3) {
47105            return new k2(e4, t5, e4).update(n3)[r4]();
47106          };
47107        }, l2 = function(e4, t5, r4) {
47108          return function(n3, i2) {
47109            return new k2(e4, t5, i2).update(n3)[r4]();
47110          };
47111        }, h2 = function(e4, t5) {
47112          var r4 = d2(e4, t5, "hex");
47113          r4.create = function() {
47114            return new k2(e4, t5, e4);
47115          }, r4.update = function(e5) {
47116            return r4.create().update(e5);
47117          };
47118          for (var n3 = 0; n3 < f2.length; ++n3) {
47119            var i2 = f2[n3];
47120            r4[i2] = d2(e4, t5, i2);
47121          }
47122          return r4;
47123        }, p2 = [{ name: "keccak", padding: [1, 256, 65536, 16777216], bits: c2, createMethod: h2 }, { name: "sha3", padding: [6, 1536, 393216, 100663296], bits: c2, createMethod: h2 }, { name: "shake", padding: [31, 7936, 2031616, 520093696], bits: [128, 256], createMethod: function(e4, t5) {
47124          var r4 = l2(e4, t5, "hex");
47125          r4.create = function(r5) {
47126            return new k2(e4, t5, r5);
47127          }, r4.update = function(e5, t6) {
47128            return r4.create(t6).update(e5);
47129          };
47130          for (var n3 = 0; n3 < f2.length; ++n3) {
47131            var i2 = f2[n3];
47132            r4[i2] = l2(e4, t5, i2);
47133          }
47134          return r4;
47135        } }], b2 = {}, y2 = [], m2 = 0; m2 < p2.length; ++m2)
47136          for (var v2 = p2[m2], g2 = v2.bits, w2 = 0; w2 < g2.length; ++w2) {
47137            var A2 = v2.name + "_" + g2[w2];
47138            y2.push(A2), b2[A2] = v2.createMethod(g2[w2], v2.padding);
47139          }
47140        function k2(e4, t5, r4) {
47141          this.blocks = [], this.s = [], this.padding = t5, this.outputBits = r4, this.reset = true, this.block = 0, this.start = 0, this.blockCount = 1600 - (e4 << 1) >> 5, this.byteCount = this.blockCount << 2, this.outputBlocks = r4 >> 5, this.extraBytes = (31 & r4) >> 3;
47142          for (var n3 = 0; n3 < 50; ++n3)
47143            this.s[n3] = 0;
47144        }
47145        k2.prototype.update = function(e4) {
47146          var t5 = "string" != typeof e4;
47147          t5 && e4.constructor === ArrayBuffer && (e4 = new Uint8Array(e4));
47148          for (var r4, n3, i2 = e4.length, o2 = this.blocks, a2 = this.byteCount, u3 = this.blockCount, c3 = 0, f3 = this.s; c3 < i2; ) {
47149            if (this.reset)
47150              for (this.reset = false, o2[0] = this.block, r4 = 1; r4 < u3 + 1; ++r4)
47151                o2[r4] = 0;
47152            if (t5)
47153              for (r4 = this.start; c3 < i2 && r4 < a2; ++c3)
47154                o2[r4 >> 2] |= e4[c3] << s[3 & r4++];
47155            else
47156              for (r4 = this.start; c3 < i2 && r4 < a2; ++c3)
47157                (n3 = e4.charCodeAt(c3)) < 128 ? o2[r4 >>
vendor: 4,555 bytes, lines 47157-47204
47157 2] |= n3 << s[3 & r4++] : n3 < 2048 ? (o2[r4 >> 2] |= (192 | n3 >> 6) << s[3 & r4++], o2[r4 >> 2] |= (128 | 63 & n3) << s[3 & r4++]) : n3 < 55296 || n3 >= 57344 ? (o2[r4 >> 2] |= (224 | n3 >> 12) << s[3 & r4++], o2[r4 >> 2] |= (128 | n3 >> 6 & 63) << s[3 & r4++], o2[r4 >> 2] |= (128 | 63 & n3) << s[3 & r4++]) : (n3 = 65536 + ((1023 & n3) << 10 | 1023 & e4.charCodeAt(++c3)), o2[r4 >> 2] |= (240 | n3 >> 18) << s[3 & r4++], o2[r4 >> 2] |= (128 | n3 >> 12 & 63) << s[3 & r4++], o2[r4 >> 2] |= (128 | n3 >> 6 & 63) << s[3 & r4++], o2[r4 >> 2] |= (128 | 63 & n3) << s[3 & r4++]);
47158            if (this.lastByteIndex = r4, r4 >= a2) {
47159              for (this.start = r4 - a2, this.block = o2[u3], r4 = 0; r4 < u3; ++r4)
47160                f3[r4] ^= o2[r4];
47161              _(f3), this.reset = true;
47162            } else
47163              this.start = r4;
47164          }
47165          return this;
47166        }, k2.prototype.finalize = function() {
47167          var e4 = this.blocks, t5 = this.lastByteIndex, r4 = this.blockCount, n3 = this.s;
47168          if (e4[t5 >> 2] |= this.padding[3 & t5], this.lastByteIndex === this.byteCount)
47169            for (e4[0] = e4[r4], t5 = 1; t5 < r4 + 1; ++t5)
47170              e4[t5] = 0;
47171          for (e4[r4 - 1] |= 2147483648, t5 = 0; t5 < r4; ++t5)
47172            n3[t5] ^= e4[t5];
47173          _(n3);
47174        }, k2.prototype.toString = k2.prototype.hex = function() {
47175          this.finalize();
47176          for (var e4, t5 = this.blockCount, r4 = this.s, n3 = this.outputBlocks, i2 = this.extraBytes, o2 = 0, s2 = 0, u3 = ""; s2 < n3; ) {
47177            for (o2 = 0; o2 < t5 && s2 < n3; ++o2, ++s2)
47178              e4 = r4[o2], u3 += a[e4 >> 4 & 15] + a[15 & e4] + a[e4 >> 12 & 15] + a[e4 >> 8 & 15] + a[e4 >> 20 & 15] + a[e4 >> 16 & 15] + a[e4 >> 28 & 15] + a[e4 >> 24 & 15];
47179            s2 % t5 == 0 && (_(r4), o2 = 0);
47180          }
47181          return i2 && (e4 = r4[o2], i2 > 0 && (u3 += a[e4 >> 4 & 15] + a[15 & e4]), i2 > 1 && (u3 += a[e4 >> 12 & 15] + a[e4 >> 8 & 15]), i2 > 2 && (u3 += a[e4 >> 20 & 15] + a[e4 >> 16 & 15])), u3;
47182        }, k2.prototype.arrayBuffer = function() {
47183          this.finalize();
47184          var e4, t5 = this.blockCount, r4 = this.s, n3 = this.outputBlocks, i2 = this.extraBytes, o2 = 0, a2 = 0, s2 = this.outputBits >> 3;
47185          e4 = i2 ? new ArrayBuffer(n3 + 1 << 2) : new ArrayBuffer(s2);
47186          for (var u3 = new Uint32Array(e4); a2 < n3; ) {
47187            for (o2 = 0; o2 < t5 && a2 < n3; ++o2, ++a2)
47188              u3[a2] = r4[o2];
47189            a2 % t5 == 0 && _(r4);
47190          }
47191          return i2 && (u3[o2] = r4[o2], e4 = e4.slice(0, s2)), e4;
47192        }, k2.prototype.buffer = k2.prototype.arrayBuffer, k2.prototype.digest = k2.prototype.array = function() {
47193          this.finalize();
47194          for (var e4, t5, r4 = this.blockCount, n3 = this.s, i2 = this.outputBlocks, o2 = this.extraBytes, a2 = 0, s2 = 0, u3 = []; s2 < i2; ) {
47195            for (a2 = 0; a2 < r4 && s2 < i2; ++a2, ++s2)
47196              e4 = s2 << 2, t5 = n3[a2], u3[e4] = 255 & t5, u3[e4 + 1] = t5 >> 8 & 255, u3[e4 + 2] = t5 >> 16 & 255, u3[e4 + 3] = t5 >> 24 & 255;
47197            s2 % r4 == 0 && _(n3);
47198          }
47199          return o2 && (e4 = s2 << 2, t5 = n3[a2], o2 > 0 && (u3[e4] = 255 & t5), o2 > 1 && (u3[e4 + 1] = t5 >> 8 & 255), o2 > 2 && (u3[e4 + 2] = t5 >> 16 & 255)), u3;
47200        };
47201        var _ = function(e4) {
47202          var t5, r4, n3, i2, o2, a2, s2, c3, f3, d3, l3, h3, p3, b3, y3, m3, v3, g3, w3, A3, k3, _2, S2, x2, E2, P2, O2, B2, T2, C2, I2, M2, U2, R2, j, N2, F2, L2, D2, H2, q2, z2, G2, K2, V2, J2, W2, Y2, X2, Q2, Z2, $, ee2, te2, re2, ne2, ie2, oe2, ae2, se2, ue2, ce2, fe2;
47203          for (n3 = 0; n3 < 48; n3 += 2)
47204            i2 = e4[0] ^ e4[10] ^ e4[20] ^ e4[30] ^ e4[40], o2 = e4[1] ^ e4[11] ^ e4[21] ^ e4[31] ^ e4[41], a2 = e4[2] ^ e4[12] ^ e4[22] ^ e4[32] ^ e4[42], s2 = e4[3] ^ e4[13] ^ e4[23] ^ e4[33] ^ e4[43], c3 = e4[4] ^ e4[14] ^ e4[24] ^ e4[34] ^ e4[44], f3 = e4[5] ^ e4[15] ^ e4[25] ^ e4[35] ^ e4[45], d3 = e4[6] ^ e4[16] ^ e4[26] ^ e4[36] ^ e4[46], l3 = e4[7] ^ e4[17] ^ e4[27] ^ e4[37] ^ e4[47], t5 = (h3 = e4[8] ^ e4[18] ^ e4[28] ^ e4[38] ^ e4[48]) ^ (a2 << 1 | s2 >>> 31), r4 = (p3 = e4[9] ^ e4[19] ^ e4[29] ^ e4[39] ^ e4[49]) ^ (s2 << 1 | a2 >>> 31), e4[0] ^= t5, e4[1] ^= r4, e4[10] ^= t5, e4[11] ^= r4, e4[20] ^= t5, e4[21] ^= r4, e4[30] ^= t5, e4[31] ^= r4, e4[40] ^= t5, e4[41] ^= r4, t5 = i2 ^ (c3 << 1 | f3 >>> 31), r4 = o2 ^ (f3 << 1 | c3 >>> 31), e4[2] ^= t5, e4[3] ^= r4, e4[12] ^= t5, e4[13] ^= r4, e4[22] ^= t5, e4[23] ^= r4, e4[32] ^= t5, e4[33] ^= r4, e4[42] ^= t5, e4[43] ^= r4, t5 = a2 ^ (d3 
47204<< 1 | l3 >>> 31), r4 = s2 ^ (l3 << 1 | d3 >>> 31), e4[4] ^= t5, e4[5] ^= r4, e4[14] ^= t5, e4[15] ^= r4, e4[24] ^= t5, e4[25] ^= r4, e4[34] ^= t5, e4[35] ^= r4, e4[44] ^= t5, e4[45] ^= r4, t5 = c3 ^ (h3 << 1 | p3 >>> 31), r4 = f3 ^ (p3 << 1 | h3 >>> 31), e4[6] ^= t5, e4[7] ^= r4, e4[16] ^= t5, e4[17] ^= r4, e4[26] ^= t5, e4[27] ^= r4, e4[36] ^= t5, e4[37] ^= r4, e4[46] ^= t5, e4[47] ^= r4, t5 = d3 ^ (i2 << 1 | o2 >>> 31), r4 = l3 ^ (o2 << 1 | i2 >>> 31), e4[8] ^= t5, e4[9] ^= r4, e4[18] ^= t5, e4[19] ^= r4, e4[28] ^= t5, e4[29] ^= r4, e4[38] ^= t5, e4[39] ^= r4, e4[48] ^= t5, e4[49] ^= r4, b3 = e4[0], y3 = e4[1], J2 = e4[11] << 4 | e4[10] >>> 28, W2 = e4[10] << 4 | e4[11] >>> 28, B2 = e4[20] << 3 | e4[21] >>> 29, T2 = e4[21] << 3 | e4[20] >>> 29, se2 = e4[31] << 9 | e4[30] >>> 23, ue2 = e4[30] << 9 | e4[31] >>> 23, z2 = e4[40] << 18 | e4[41] >>> 14, G2 = e4[41] << 18 | e4[40] >>> 14, R2 = e4[2] << 1 | e4[3] >>> 31, j = e4[3] << 1 | e4[2] >>> 31, m3 = e4[13] << 12 | e4[12] >>> 20, v3 = e4[12] << 12 | e4[13] >>> 20, Y2 = e4[22] << 10 | e4[23] >>> 22, X2 = e4[23] << 10 | e4[22] >>> 22, C2 = e4[33] << 13 | e4[32] >>> 19, I2 = e4[32] << 13 | e4[33] >>> 19, ce2 = e4[42] << 2 | e4[43] >>> 30, fe2 = e4[43] << 2 | e4[42] >>> 30, te2 = e4[5] << 30 | e4[4] >>> 2, re2 = e4[4] << 30 | e4[5] >>> 2, N2 = e4[14] << 6 | e4[15] >>> 26, F2 = e4[15] << 6 | e4[14] >>> 26, g3 = e4[25] << 11 | e4[24] >>> 21, w3 = e4[24] << 11 | e4[25] >>> 21, Q2 = e4[34] << 15 | e4[35] >>> 17, Z2 = e4[35] << 15 | e4[34] >>> 17, M2 = e4[45] << 29 | e4[44] >>> 3, U2 = e4[44] << 29 | e4[45] >>> 3, x2 = e4[6] << 28 | e4[7] >>> 4, E2 = e4[7] << 28 | e4[6] >>> 4, ne2 = e4[17] << 23 | e4[16] >>> 9, ie2 = e4[16] << 23 | e4[17] >>> 9, L2 = e4[26] << 25 | e4[27] >>> 7, D2 = e4[27] << 25 | e4[26] >>> 7, A3 = e4[36] << 21 | e4[37] >>> 11, k3 = e4[37] << 21 | e4[36] >>> 11, $ = e4[47] << 24 | e4[46] >>> 8, ee2 = e4[46] << 24 | e4[47] >>> 8, K2 = e4[8] << 27 | e4[9] >>> 5, V2 = e4[9] << 27 | e4[8] >>> 5, P2 = e4[18] << 20 | e4[19] >>> 12, O2 = e4[19] << 20 | e4[18] >>> 12, oe2 = e4[29] << 7 | e4[28] >>> 25, ae2 = e4[28] << 7 | e4[29] >>> 25, H2 = e4[38] << 8 | e4[39] >>> 24, q2 = e4[39] << 8 | e4[38] >>> 24, _2 = e4[48] << 14 | e4[49] >>> 18, S2 = e4[49] << 14 | e4[48] >>> 18, e4[0] = b3 ^ ~m3 & g3, e4[1] = y3 ^ ~v3 & w3, e4[10] = x2 ^ ~P2 & B2, e4[11] = E2 ^ ~O2 & T2, e4[20] = R2 ^ ~N2 & L2, e4[21] = j ^ ~F2 & D2, e4[30] = K2 ^ ~J2 & Y2, e4[31] = V2 ^ ~W2 & X2, e4[40] = te2 ^ ~ne2 & oe2, e4[41] = re2 ^ ~ie2 & ae2, e4[2] = m3 ^ ~g3 & A3, e4[3] = v3 ^ ~w3 & k3, e4[12] = P2 ^ ~B2 & C2, e4[13] = O2 ^ ~T2 & I2, e4[22] = N2 ^ ~L2 & H2, e4[23] = F2 ^ ~D2 & q2, e4[32] = J2 ^ ~Y2 & Q2, e4[33] = W2 ^ ~X2 & Z2, e4[42] = ne2 ^ ~oe2 & se2, e4[43] = ie2 ^ ~ae2 & ue2, e4[4] = g3 ^ ~A3 & _2, e4[5] = w3 ^ ~k3 & S2, e4[14] = B2 ^ ~C2 & M2, e4[15] = T2 ^ ~I2 & U2, e4[24] = L2 ^ ~H2 & z2, e4[25] = D2 ^ ~q2 & G2, e4[34] = Y2 ^ ~Q2 & $, e4[35] = X2 ^ ~Z2 & ee2, e4[44] = oe2 ^ ~se2 & ce2, e4[45] = ae2 ^ ~ue2 & fe2, e4[6] = A3 ^ ~_2 & b3, e4[7] = k3 ^ ~S2 & y3, e4[16] = C2 ^ ~M2 & x2, e4[17] = I2 ^ ~U2 & E2, e4[26] = H2 ^ ~z2 & R2, e4[27] = q2 ^ ~G2 & j, e4[36] = Q2 ^ ~$ & K2, e4[37] = Z2 ^ ~ee2 & V2, e4[46] = se2 ^ ~ce2 & te2, e4[47] = ue2 ^ ~fe2 & re2, e4[8] = _2 ^ ~b3 & m3, e4[9] = S2 ^ ~y3 & v3, e4[18] = M2 ^ ~x2 & P2, e4[19] = U2 ^ ~E2 & O2, e4[28] = z2 ^ ~R2 & N2, e4[29] = G2 ^ ~j & F2, e4[38] = $ ^ ~K2 & J2, e4[39] = ee2 ^ ~V2 & W2, e4[48] = ce2 ^ ~te2 & ne2, e4[49] = fe2 ^ ~re2 & ie2, e4[0] ^= u2[n3], e4[1] ^= u2[n3 + 1];
47205        };
47206        if (o)
47207          e3.exports = b2;
47208        else
47209          for (m2 = 0; m2 < y2.length; ++m2)
47210            t4[y2[m2]] = b2[y2[m2]];
47211      }();
47212    }, 3135: (e3, t3, r3) => {
47213      e3.exports = r3(2109)(r3(801));
47214    }, 2109: (e3, t3, r3) => {
47215      var n2 = r3(6543), i = r3(274);
47216      e3.exports = function(e4) {
47217        var t4 = n2(e4), r4 = i(e4);
47218        return function(e5, n3) {
47219          switch ("string" == typeof e5 ? e5.toLowerCase() : e5) {
47220            case "keccak224":
47221              return new t4(1152, 448, null, 224, n3);
47222            case "keccak256":
47223              return new t4(1088, 512, null, 256, n3);
47224            case "keccak384":
47225              return new t4(832, 768, null, 384, n3);
47226            case "keccak512":
47227              return new t4(576, 1024, null, 512, n3);
47228            case "sha3-224":
47229              return new t4(1152, 448, 6, 224, n3);
47230            case "sha3-256":
47231              return new t4(1088, 512, 6, 256, n3);
47232            case "sha3-384":
47233              return new t4(832, 768, 6, 384, n3);
47234            case "sha3-512":
47235              return new t4(576, 1024, 6, 512, n3);
47236            case "shake128":
47237              return new r4(1344, 256, 31, n3);
47238            case "shake256":
47239              return new r4(1088, 512, 31, n3);
47240            default:
47241              throw new Error("Invald algorithm: " + e5);
47242          }
47243        };
47244      };
47245    }, 6543: (e3, t3, r3) => {
47246      var n2 = r3(9033).Buffer, i = r3(8847), o = i(r3(9721)), a = i(r3(8985)), s = i(r3(5163)), u2 = i(r3(4650)), c2 = i(r3(1949));
47247      var f2 = r3(6505).Transform;
47248      e3.exports = function(e4) {
47249        return function(t4) {
47250          (0, s.default)(d2, t4);
47251          var r4, i2, f3 = (r4 = d2, i2 = function() {
47252            if ("undefined" == typeof Reflect || !Reflect.construct)
47253              return false;
47254            if (Reflect.construct.sham)
47255              return false;
47256            if ("function" == typeof Proxy)
47257              return true;
47258            try {
47259              return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
47260              })), true;
47261            } catch (e5) {
47262              return false;
47263            }
47264          }(), function() {
47265            var e5, t5 = (0, c2.default)(r4);
47266            if (i2) {
47267              var n3 = (0, c2.default)(this).constructor;
47268              e5 = Reflect.construct(t5, arguments, n3);
47269            } else
47270              e5 = t5.apply(this, arguments);
47271            return (0, u2.default)(this, e5);
47272          });
47273          function d2(t5, r5, n3, i3, a2) {
47274            var s2;
47275            return (0, o.default)(this, d2), (s2 = f3.call(this, a2))._rate = t5, s2._capacity = r5, s2._delimitedSuffix = n3, s2._hashBitLength = i3, s2._options = a2, s2._state = new e4(), s2._state.initialize(t5, r5), s2._finalized = false, s2;
47276          }
47277          return (0, a.default)(d2, [{ key: "_transform", value: function(e5, t5, r5) {
47278            var n3 = null;
47279            try {
47280              this.update(e5, t5);
47281            } catch (e6) {
47282              n3 = e6;
47283            }
47284            r5(n3);
47285          } }, { key: "_flush", value: function(e5) {
47286            var t5 = null;
47287            try {
47288              this.push(this.digest());
47289            } catch (e6) {
47290              t5 = e6;
47291            }
47292            e5(t5);
47293          } }, { key: "update", value: function(e5, t5) {
47294            if (!n2.isBuffer(e5) && "string" != typeof e5)
47295              throw new TypeError("Data must be a string or a buffer");
47296            if (this._finalized)
47297              throw new Error("Digest already called");
47298            return n2.isBuffer(e5) || (e5 = n2.from(e5, t5)), this._state.absorb(e5), this;
47299          } }, { key: "digest", value: function(e5) {
47300            if (this._finalized)
47301              throw new Error("Digest already called");
47302            this._finalized = true, this._delimitedSuffix && this._state.absorbLastFewBits(this._delimitedSuffix);
47303            var t5 = this._state.squeeze(this._hashBitLength / 8);
47304            return void 0 !== e5 && (t5 = t5.toString(e5)), this._resetState(), t5;
47305          } }, { key: "_resetState", value: function() {
47306            return this._state.initialize(this._rate, this._capacity), this;
47307          } }, { key: "_clone", value: function() {
47308            var e5 = new d2(this._rate, this._capacity, this._delimitedSuffix, this._hashBitLength, this._options);
47309            return this._state.copy(e5._state), e5._finalized = this._finalized, e5;
47310          } }]), d2;
47311        }(f2);
47312      };
47313    }, 274: (e3, t3, r3) => {
47314      var n2 = r3(9033).Buffer, i = r3(8847), o = i(r3(9721)), a = i(r3(8985)), s = i(r3(5163)), u2 = i(r3(4650)), c2 = i(r3(1949));
47315      var f2 = r3(6505).Transform;
47316      e3.exports = function(e4) {
47317        return function(t4) {
47318          (0, s.default)(d2, t4);
47319          var r4, i2, f3 = (r4 = d2, i2 = function() {
47320            if ("undefined" == typeof Reflect || !Reflect.construct)
47321              return false;
47322            if (Reflect.construct.sham)
47323              return false;
47324            if ("function" == typeof Proxy)
47325              return true;
47326            try {
47327              return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
47328              })), true;
47329            } catch (e5) {
47330              return false;
47331            }
47332          }(), function() {
47333            var e5, t5 = (0, c2.default)(r4);
47334            if (i2) {
47335              var n3 = (0, c2.default)(this).constructor;
47336              e5 = Reflect.construct(t5, arguments, n3);
47337            } else
47338              e5 = t5.apply(this, arguments);
47339            return (0, u2.default)(this, e5);
47340          });
47341          function d2(t5, r5, n3, i3) {
47342            var a2;
47343            return (0, o.default)(this, d2), (a2 = f3.call(this, i3))._rate = t5, a2._capacity = r5, a2._delimitedSuffix = n3, a2._options = i3, a2._state = new e4(), a2._state.initialize(t5, r5), a2._finalized = false, a2;
47344          }
47345          return (0, a.default)(d2, [{ key: "_transform", value: function(e5, t5, r5) {
47346            var n3 = null;
47347            try {
47348              this.update(e5, t5);
47349            } catch (e6) {
47350              n3 = e6;
47351            }
47352            r5(n3);
47353          } }, { key: "_flush", value: function() {
47354          } }, { key: "_read", value: function(e5) {
47355            this.push(this.squeeze(e5));
47356          } }, { key: "update", value: function(e5, t5) {
47357            if (!n2.isBuffer(e5) && "string" != typeof e5)
47358              throw new TypeError("Data must be a string or a buffer");
47359            if (this._finalized)
47360              throw new Error("Squeeze already called");
47361            return n2.isBuffer(e5) || (e5 = n2.from(e5, t5)), this._state.absorb(e5), this;
47362          } }, { key: "squeeze", value: function(e5, t5) {
47363            this._finalized || (this._finalized = true, this._state.absorbLastFewBits(this._delimitedSuffix));
47364            var r5 = this._state.squeeze(e5);
47365            return void 0 !== t5 && (r5 = r5.toString(t5)), r5;
47366          } }, { key: "_resetState", value: function() {
47367            return this._state.initialize(this._rate, this._capacity), this;
47368          } }, { key: "_clone", value: function() {
47369            var e5 = new d2(this._rate, this._capacity, this._delimitedSuffix, this._options);
47370            return this._state.copy(e5._state), e5._finalized = this._finalized, e5;
47371          } }]), d2;
47372        }(f2);
47373      };
47374    }, 5612: (e3, t3) => {
47375      var r3 = [1, 0, 32898, 0, 32906, 2147483648, 2147516416, 2147483648, 32907, 0, 2147483649, 0, 2147516545, 2147483648, 32777, 2147483648, 138, 0, 136, 0, 2147516425, 0, 2147483658, 0, 2147516555, 0, 139, 2147483648, 32905, 2147483648, 32771, 2147483648, 32770, 2147483648, 128, 2147483648, 32778, 0, 2147483658, 2147483648, 2147516545, 2147483648, 32896, 2147483648, 2147483649, 0, 2147516424, 2147483648];
47376      t3.p1600 = function(e4) {
47377        for (var t4 = 0; t4 < 24; ++t4) {
47378          var n2 = e4[0] ^ e4[10] ^ e4[20] ^ e4[30] ^ e4[40], i = e4[1] ^ e4[11] ^ e4[21] ^ e4[31] ^ e4[41], o = e4[2] ^ e4[12] ^ e4[22] ^ e4[32] ^ e4[42], a = e4[3] ^ e4[13] ^ e4[23] ^ e4[33] ^ e4[43], s = e4[4] ^ e4[14] ^ e4[24] ^ e4[34] ^ e4[44], u2 = e4[5] ^ e4[15] ^ e4[25] ^ e4[35] ^ e4[45], c2 = e4[6] ^ e4[16] ^ e4[26] ^ e4[36] ^ e4[46], f2 = e4[7] ^ e4[17] ^ e4[27] ^ e4[37] ^ e4[47], d2 = e4[8] ^ e4[18] ^ e4[28] ^ e4[38] ^ e4[48], l2 = e4[9] ^ e4[19] ^ e4[29] ^ e4[39] ^ e4[49], h2 = d2 ^ (o << 1 | a >>> 31), p2 = l2 ^ (a << 1 | o >>> 31), b2 = e4[0] ^ h2, y2 = e4[1] ^ p2, m2 = e4[10] ^ h2, v2 = e4[11] ^ p2, g2 = e4[20] ^ h2, w2 = e4[21] ^ p2, A2 = e4[30] ^ h2, k2 = e4[31] ^ p2, _ = e4[40] ^ h2, S2 = e4[41] ^ p2;
47379          h2 = n2 ^ (s << 1 | u2 >>> 31), p2 = i ^ (u2 << 1 | s >>> 31);
47380          var x2 = e4[2] ^ h2, E2 = e4[3] ^ p2, P2 = e4[12] ^ h2, O2 = e4[13] ^ p2, B2 = e4[22] ^ h2, T2 = e4[23] ^ p2, C2 = e4[32] ^ h2, I2 = e4[33] ^ p2, M2 = e4[42] ^ h2, U2 = e4[43] ^ p2;
47381          h2 = o ^ (c2 << 1 | f2 >>> 31), p2 = a ^ (f2 << 1 | c2 >>> 31);
47382          var R2 = e4[4] ^ h2, j = e4[5] ^ p2, N2 = e4[14] ^ h2, F2 = e4[15] ^ p2, L2 = e4[24] ^ h2, D2 = e4[25] ^ p2, H2 = e4[34] ^ h2, q2 = e4[35] ^ p2, z2 = e4[44] ^ h2, G2 = e4[45] ^ p2;
47383          h2 = s ^ (d2 << 1 | l2 >>> 31), p2 = u2 ^ (l2 << 1 | d2 >>> 31);
47384          var K2 = e4[6] ^ h2, V2 = e4[7] ^ p2, J2 = e4[16] ^ h2, W2 = e4[17] ^ p2, Y2 = e4[26] ^ h2, X2 = e4[27] ^ p2, Q2 = e4[36] ^ h2, Z2 = e4[37] ^ p2, $ = e4[46] ^ h2, ee2 = e4[47] ^ p2;
47385          h2 = c2 ^ (n2 << 1 | i >>> 31), p2 = f2 ^ (i << 1 | n2 >>> 31);
47386          var te2 = e4[8] ^ h2, re2 = e4[9] ^ p2, ne2 = e4[18] ^ h2, ie2 = e4[19] ^ p2, oe2 = e4[28] ^ h2, ae2 = e4[29] ^ p2, se2 = e4[38] ^ h2, ue2 = e4[39] ^ p2, ce2 = e4[48] ^ h2, fe2 = e4[49] ^ p2, de2 = b2, le2 = y2, he2 = v2 << 4 | m2 >>> 28, pe2 = m2 << 4 | v2 >>> 28, be2 = g2 << 3 | w2 >>> 29, ye = w2 << 3 | g2 >>> 29, me2 = k2 << 9 | A2 >>> 23, ve2 = A2 << 9 | k2 >>> 23, ge2 = _ << 18 | S2 >>> 14, we2 = S2 << 18 | _ >>> 14, Ae2 = x2 << 1 | E2 >>> 31, ke2 = E2 << 1 | x2 >>> 31, _e2 = O2 << 12 | P2 >>> 20, Se2 = P2 << 12 | O2 >>> 20, xe = B2 << 10 | T2 >>> 22, Ee2 = T2 << 10 | B2 >>> 22, Pe2 = I2 << 13 | C2 >>> 19, Oe2 = C2 << 13 | I2 >>> 19, Be2 = M2 << 2 | U2 >>>
47386 30, Te2 = U2 << 2 | M2 >>> 30, Ce2 = j << 30 | R2 >>> 2, Ie2 = R2 << 30 | j >>> 2, Me2 = N2 << 6 | F2 >>> 26, Ue2 = F2 << 6 | N2 >>> 26, Re2 = D2 << 11 | L2 >>> 21, je2 = L2 << 11 | D2 >>> 21, Ne2 = H2 << 15 | q2 >>> 17, Fe2 = q2 << 15 | H2 >>> 17, Le2 = G2 << 29 | z2 >>> 3, De2 = z2 << 29 | G2 >>> 3, He2 = K2 << 28 | V2 >>> 4, qe2 = V2 << 28 | K2 >>> 4, ze = W2 << 23 | J2 >>> 9, Ge2 = J2 << 23 | W2 >>> 9, Ke2 = Y2 << 25 | X2 >>> 7, Ve2 = X2 << 25 | Y2 >>> 7, Je2 = Q2 << 21 | Z2 >>> 11, We2 = Z2 << 21 | Q2 >>> 11, Ye2 = ee2 << 24 | $ >>> 8, Xe2 = $ << 24 | ee2 >>> 8, Qe2 = te2 << 27 | re2 >>> 5, Ze2 = re2 << 27 | te2 >>> 5, $e2 = ne2 << 20 | ie2 >>> 12, et = ie2 << 20 | ne2 >>> 12, tt = ae2 << 7 | oe2 >>> 25, rt = oe2 << 7 | ae2 >>> 25, nt = se2 << 8 | ue2 >>> 24, it = ue2 << 8 | se2 >>> 24, ot = ce2 << 14 | fe2 >>> 18, at = fe2 << 14 | ce2 >>> 18;
47387          e4[0] = de2 ^ ~_e2 & Re2, e4[1] = le2 ^ ~Se2 & je2, e4[10] = He2 ^ ~$e2 & be2, e4[11] = qe2 ^ ~et & ye, e4[20] = Ae2 ^ ~Me2 & Ke2, e4[21] = ke2 ^ ~Ue2 & Ve2, e4[30] = Qe2 ^ ~he2 & xe, e4[31] = Ze2 ^ ~pe2 & Ee2, e4[40] = Ce2 ^ ~ze & tt, e4[41] = Ie2 ^ ~Ge2 & rt, e4[2] = _e2 ^ ~Re2 & Je2, e4[3] = Se2 ^ ~je2 & We2, e4[12] = $e2 ^ ~be2 & Pe2, e4[13] = et ^ ~ye & Oe2, e4[22] = Me2 ^ ~Ke2 & nt, e4[23] = Ue2 ^ ~Ve2 & it, e4[32] = he2 ^ ~xe & Ne2, e4[33] = pe2 ^ ~Ee2 & Fe2, e4[42] = ze ^ ~tt & me2, e4[43] = Ge2 ^ ~rt & ve2, e4[4] = Re2 ^ ~Je2 & ot, e4[5] = je2 ^ ~We2 & at, e4[14] = be2 ^ ~Pe2 & Le2, e4[15] = ye ^ ~Oe2 & De2, e4[24] = Ke2 ^ ~nt & ge2, e4[25] = Ve2 ^ ~it & we2, e4[34] = xe ^ ~Ne2 & Ye2, e4[35] = Ee2 ^ ~Fe2 & Xe2, e4[44] = tt ^ ~me2 & Be2, e4[45] = rt ^ ~ve2 & Te2, e4[6] = Je2 ^ ~ot & de2, e4[7] = We2 ^ ~at & le2, e4[16] = Pe2 ^ ~Le2 & He2, e4[17] = Oe2 ^ ~De2 & qe2, e4[26] = nt ^ ~ge2 & Ae2, e4[27] = it ^ ~we2 & ke2, e4[36] = Ne2 ^ ~Ye2 & Qe2, e4[37] = Fe2 ^ ~Xe2 & Ze2, e4[46] = me2 ^ ~Be2 & Ce2, e4[47] = ve2 ^ ~Te2 & Ie2, e4[8] = ot ^ ~de2 & _e2, e4[9] = at ^ ~le2 & Se2, e4[18] = Le2 ^ ~He2 & $e2, e4[19] = De2 ^ ~qe2 & et, e4[28] = ge2 ^ ~Ae2 & Me2, e4[29] = we2 ^ ~ke2 & Ue2, e4[38] = Ye2 ^ ~Qe2 & he2, e4[39] = Xe2 ^ ~Ze2 & pe2, e4[48] = Be2 ^ ~Ce2 & ze, e4[49] = Te2 ^ ~Ie2 & Ge2, e4[0] ^= r3[2 * t4], e4[1] ^= r3[2 * t4 + 1];
47388        }
47389      };
47390    }, 801: (e3, t3, r3) => {
47391      var n2 = r3(9033).Buffer, i = r3(5612);
47392      function o() {
47393        this.state = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], this.blockSize = null, this.count = 0, this.squeezing = false;
47394      }
47395      o.prototype.initialize = function(e4, t4) {
47396        for (var r4 = 0; r4 < 50; ++r4)
47397          this.state[r4] = 0;
47398        this.blockSize = e4 / 8, this.count = 0, this.squeezing = false;
47399      }, o.prototype.absorb = function(e4) {
47400        for (var t4 = 0; t4 < e4.length; ++t4)
47401          this.state[~~(this.count / 4)] ^= e4[t4] << this.count % 4 * 8, this.count += 1, this.count === this.blockSize && (i.p1600(this.state), this.count = 0);
47402      }, o.prototype.absorbLastFewBits = function(e4) {
47403        this.state[~~(this.count / 4)] ^= e4 << this.count % 4 * 8, 0 != (128 & e4) && this.count === this.blockSize - 1 && i.p1600(this.state), this.state[~~((this.blockSize - 1) / 4)] ^= 128 << (this.blockSize - 1) % 4 * 8, i.p1600(this.state), this.count = 0, this.squeezing = true;
47404      }, o.prototype.squeeze = function(e4) {
47405        this.squeezing || this.absorbLastFewBits(1);
47406        for (var t4 = n2.alloc(e4), r4 = 0; r4 < e4; ++r4)
47407          t4[r4] = this.state[~~(this.count / 4)] >>> this.count % 4 * 8 & 255, this.count += 1, this.count === this.blockSize && (i.p1600(this.state), this.count = 0);
47408        return t4;
47409      }, o.prototype.copy = function(e4) {
47410        for (var t4 = 0; t4 < 50; ++t4)
47411          e4.state[t4] = this.state[t4];
47412        e4.blockSize = this.blockSize, e4.count = this.count, e4.squeezing = this.squeezing;
47413      }, e3.exports = o;
47414    }, 807: (e3, t3, r3) => {
47415      var n2 = r3(1736), i = r3(2353), o = r3(8850).Buffer, a = new Array(16);
47416      function s() {
47417        i.call(this, 64), this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878;
47418      }
47419      function u2(e4, t4) {
47420        return e4 << t4 | e4 >>> 32 - t4;
47421      }
47422      function c2(e4, t4, r4, n3, i2, o2, a2) {
47423        return u2(e4 + (t4 & r4 | ~t4 & n3) + i2 + o2 | 0, a2) + t4 | 0;
47424      }
47425      function f2(e4, t4, r4, n3, i2, o2, a2) {
47426        return u2(e4 + (t4 & n3 | r4 & ~n3) + i2 + o2 | 0, a2) + t4 | 0;
47427      }
47428      function d2(e4, t4, r4, n3, i2, o2, a2) {
47429        return u2(e4 + (t4 ^ r4 ^ n3) + i2 + o2 | 0, a2) + t4 | 0;
47430      }
47431      function l2(e4, t4, r4, n3, i2, o2, a2) {
47432        return u2(e4 + (r4 ^ (t4 | ~n3)) + i2 + o2 | 0, a2) + t4 | 0;
47433      }
47434      n2(s, i), s.prototype._update = function() {
47435        for (var e4 = a, t4 = 0; t4 < 16; ++t4)
47436          e4[t4] = this._block.readInt32LE(4 * t4);
47437        var r4 = this._a, n3 = this._b, i2 = this._c, o2 = this._d;
47438        r4 = c2(r4, n3, i2, o2, e4[0], 3614090360, 7), o2 = c2(o2, r4, n3, i2, e4[1], 3905402710, 12), i2 = c2(i2, o2, r4, n3, e4[2], 606105819, 17), n3 = c2(n3, i2, o2, r4, e4[3], 3250441966, 22), r4 = c2(r4, n3, i2, o2, e4[4], 4118548399, 7), o2 = c2(o2, r4, n3, i2, e4[5], 1200080426, 12), i2 = c2(i2, o2, r4, n3, e4[6], 2821735955, 17), n3 = c2(n3, i2, o2, r4, e4[7], 4249261313, 22), r4 = c2(r4, n3, i2, o2, e4[8], 1770035416, 7), o2 = c2(o2, r4, n3, i2, e4[9], 2336552879, 12), i2 = c2(i2, o2, r4, n3, e4[10], 4294925233, 17), n3 = c2(n3, i2, o2, r4, e4[11], 2304563134, 22), r4 = c2(r4, n3, i2, o2, e4[12], 1804603682, 7), o2 = c2(o2, r4, n3, i2, e4[13], 4254626195, 12), i2 = c2(i2, o2, r4, n3, e4[14], 2792965006, 17), r4 = f2(r4, n3 = c2(n3, i2, o2, r4, e4[15], 1236535329, 22), i2, o2, e4[1], 4129170786, 5), o2 = f2(o2, r4, n3, i2, e4[6], 3225465664, 9), i2 = f2(i2, o2, r4, n3, e4[11], 643717713, 14), n3 = f2(n3, i2, o2, r4, e4[0], 3921069994, 20), r4 = f2(r4, n3, i2, o2, e4[5], 3593408605, 5), o2 = f2(o2, r4, n3, i2, e4[10], 38016083, 9), i2 = f2(i2, o2, r4, n3, e4[15], 3634488961, 14), n3 = f2(n3, i2, o2, r4, e4[4], 3889429448, 20), r4 = f2(r4, n3, i2, o2, e4[9], 568446438, 5), o2 = f2(o2, r4, n3, i2, e4[14], 3275163606, 9), i2 = f2(i2, o2, r4, n3, e4[3], 4107603335, 14), n3 = f2(n3, i2, o2, r4, e4[8], 1163531501, 20), r4 = f2(r4, n3, i2, o2, e4[13], 2850285829, 5), o2 = f2(o2, r4, n3, i2, e4[2], 4243563512, 9), i2 = f2(i2, o2, r4, n3, e4[7], 1735328473, 14), r4 = d2(r4, n3 = f2(n3, i2, o2, r4, e4[12], 2368359562, 20), i2, o2, e4[5], 4294588738, 4), o2 = d2(o2, r4, n3, i2, e4[8], 2272392833, 11), i2 = d2(i2, o2, r4, n3, e4[11], 1839030562, 16), n3 = d2(n3, i2, o2, r4, e4[14], 4259657740, 23), r4 = d2(r4, n3, i2, o2, e4[1], 2763975236, 4), o2 = d2(o2, r4, n3, i2, e4[4], 1272893353, 11), i2 = d2(i2, o2, r4, n3, e4[7], 4139469664, 16), n3 = d2(n3, i2, o2, r4, e4[10], 3200236656, 23), r4 = d2(r4, n3, i2, o2, e4[13], 681279174, 4), o2 = d2(o2, r4, n3, i2, e4[0], 3936430074, 11), i2 = d2(i2, o2, r4, n3, e4[3], 3572445317, 16), n3 = d2(n3, i2, o2, r4, e4[6], 76029189, 23), r4 = d2(r4, n3, i2, o2, e4[9], 3654602809, 4), o2 = d2(o2, r4, n3, i2, e4[12], 3873151461, 11), i2 = d2(i2, o2, r4, n3, e4[15], 530742520, 16), r4 = l2(r4, n3 = d2(n3, i2, o2, r4, e4[2], 3299628645, 23), i2, o2, e4[0], 4096336452, 6), o2 = l2(o2, r4, n3, i2, e4[7], 1126891415, 10), i2 = l2(i2, o2, r4, n3, e4[14], 2878612391, 15), n3 = l2(n3, i2, o2, r4, e4[5], 4237533241, 21), r4 = l2(r4, n3, i2, o2, e4[12], 1700485571, 6), o2 = l2(o2, r4, n3, i2, e4[3], 2399980690, 10), i2 = l2(i2, o2, r4, n3, e4[10], 4293915773, 15), n3 = l2(n3, i2, o2, r4, e4[1], 2240044497, 21), r4 = l2(r4, n3, i2, o2, e4[8], 1873313359, 6), o2 = l2(o2, r4, n3, i2, e4[15], 4264355552, 10), i2 = l2(i2, o2, r4, n3, e4[6], 2734768916, 15), n3 = l2(n3, i2, o2, r4, e4[13], 1309151649, 21), r4 = l2(r4, n3, i2, o2, e4[4], 4149444226, 6), o2 = l2(o2, r4, n3, i2, e4[11], 3174756917, 10), i2 = l2(i2, o2, r4, n3, e4[2], 718787259, 15), n3 = l2(n3, i2, o2, r4, e4[9], 3951481745, 21), this._a = this._a + r4 | 0, this._b = this._b + n3 | 0, this._c = this._c + i2 | 0, this._d = this._d + o2 | 0;
47439      }, s.prototype._digest = function() {
47440        this._block[this._blockOffset++] = 128, this._blockOffset > 56 && (this._block.fill(0, this._blockOffset, 64), this._update(), this._blockOffset = 0), this._block.fill(0, this._blockOffset, 56), this._block.writeUInt32LE(this._length[0], 56), this._block.writeUInt32LE(this._length[1], 60), this._update();
47441        var e4 = o.allocUnsafe(16);
47442        return e4.writeInt32LE(this._a, 0), e4.writeInt32LE(this._b, 4), e4.writeInt32LE(this._c, 8), e4.writeInt32LE(this._d, 12), e4;
47443      }, e3.exports = s;
47444    }, 137: (e3, t3, r3) => {
47445      var n2 = r3(1734), i = r3(2202);
47446      function o(e4) {
47447        this.rand = e4 || new i.Rand();
47448      }
47449      e3.exports = o, o.create = function(e4) {
47450        return new o(e4);
47451      }, o.prototype._randbelow = function(e4) {
47452        var t4 = e4.bitLength(), r4 = Math.ceil(t4 / 8);
47453        do {
47454          var i2 = new n2(this.rand.generate(r4));
47455        } while (i2.cmp(e4) >= 0);
47456        return i2;
47457      }, o.prototype._randrange = function(e4, t4) {
47458        var r4 = t4.sub(e4);
47459        return e4.add(this._randbelow(r4));
47460      }, o.prototype.test = function(e4, t4, r4) {
47461        var i2 = e4.bitLength(), o2 = n2.mont(e4), a = new n2(1).toRed(o2);
47462        t4 || (t4 = Math.max(1, i2 / 48 | 0));
47463        for (var s = e4.subn(1), u2 = 0; !s.testn(u2); u2++)
47464          ;
47465        for (var c2 = e4.shrn(u2), f2 = s.toRed(o2); t4 > 0; t4--) {
47466          var d2 = this._randrange(new n2(2), s);
47467          r4 && r4(d2);
47468          var l2 = d2.toRed(o2).redPow(c2);
47469          if (0 !== l2.cmp(a) && 0 !== l2.cmp(f2)) {
47470            for (var h2 = 1; h2 < u2; h2++) {
47471              if (0 === (l2 = l2.redSqr()).cmp(a))
47472                return false;
47473              if (0 === l2.cmp(f2))
47474                break;
47475            }
47476            if (h2 === u2)
47477              return false;
47478          }
47479        }
47480        return true;
47481      }, o.prototype.getDivisor = function(e4, t4) {
47482        var r4 = e4.bitLength(), i2 = n2.mont(e4), o2 = new n2(1).toRed(i2);
47483        t4 || (t4 = Math.max(1, r4 / 48 | 0));
47484        for (var a = e4.subn(1), s = 0; !a.testn(s); s++)
47485          ;
47486        for (var u2 = e4.shrn(s), c2 = a.toRed(i2); t4 > 0; t4--) {
47487          var f2 = this._randrange(new n2(2), a), d2 = e4.gcd(f2);
47488          if (0 !== d2.cmpn(1))
47489            return d2;
47490          var l2 = f2.toRed(i2).redPow(u2);
47491          if (0 !== l2.cmp(o2) && 0 !== l2.cmp(c2)) {
47492            for (var h2 = 1; h2 < s; h2++) {
47493              if (0 === (l2 = l2.redSqr()).cmp(o2))
47494                return l2.fromRed().subn(1).gcd(e4);
47495              if (0 === l2.cmp(c2))
47496                break;
47497            }
47498            if (h2 === s)
47499              return (l2 = l2.redSqr()).fromRed().subn(1).gcd(e4);
47500          }
47501        }
47502        return false;
47503      };
47504    }, 4504: (e3) => {
47505      function t3(e4, t4) {
47506        if (!e4)
47507          throw new Error(t4 || "Assertion failed");
47508      }
47509      e3.exports = t3, t3.equal = function(e4, t4, r3) {
47510        if (e4 != t4)
47511          throw new Error(r3 || "Assertion failed: " + e4 + " != " + t4);
47512      };
47513    }, 6580: (e3, t3) => {
47514      var r3 = t3;
47515      function n2(e4) {
47516        return 1 === e4.length ? "0" + e4 : e4;
47517      }
47518      function i(e4) {
47519        for (var t4 = "", r4 = 0; r4 < e4.length; r4++)
47520          t4 += n2(e4[r4].toString(16));
47521        return t4;
47522      }
47523      r3.toArray = function(e4, t4) {
47524        if (Array.isArray(e4))
47525          return e4.slice();
47526        if (!e4)
47527          return [];
47528        var r4 = [];
47529        if ("string" != typeof e4) {
47530          for (var n3 = 0; n3 < e4.length; n3++)
47531            r4[n3] = 0 | e4[n3];
47532          return r4;
47533        }
47534        if ("hex" === t4)
47535          for ((e4 = e4.replace(/[^a-z0-9]+/gi, "")).length % 2 != 0 && (e4 = "0" + e4), n3 = 0; n3 < e4.length; n3 += 2)
47536            r4.push(parseInt(e4[n3] + e4[n3 + 1], 16));
47537        else
47538          for (n3 = 0; n3 < e4.length; n3++) {
47539            var i2 = e4.charCodeAt(n3), o = i2 >> 8, a = 255 & i2;
47540            o ? r4.push(o, a) : r4.push(a);
47541          }
47542        return r4;
47543      }, r3.zero2 = n2, r3.toHex = i, r3.encode = function(e4, t4) {
47544        return "hex" === t4 ? i(e4) : e4;
47545      };
47546    }, 6565: (e3, t3, r3) => {
47547      var n2 = r3(8847), i = n2(r3(9721)), o = n2(r3(8985)), a = function() {
47548        function e4(t4, r4, n3, o2) {
47549          (0, i.default)(this, e4), this.name = t4, this.code = r4, this.alphabet = o2, n3 && o2 && (this.engine = n3(o2));
47550        }
47551        return (0, o.default)(e4, [{ key: "encode", value: function(e5) {
47552          return this.engine.encode(e5);
47553        } }, { key: "decode", value: function(e5) {
47554          return this.engine.decode(e5);
47555        } }, { key: "isImplemented", value: function() {
47556          return this.engine;
47557        } }]), e4;
47558      }();
47559      e3.exports = a;
47560    }, 2642: (e3, t3, r3) => {
47561      function n2(e4, t4) {
47562        (null == t4 || t4 > e4.length) && (t4 = e4.length);
47563        for (var r4 = 0, n3 = new Array(t4); r4 < t4; r4++)
47564          n3[r4] = e4[r4];
47565        return n3;
47566      }
47567      var i = r3(9033).Buffer;
47568      e3.exports = function(e4) {
47569        return { encode: function(e5) {
47570          return "string" == typeof e5 ? i.from(e5).toString("hex") : e5.toString("hex");
47571        }, decode: function(t4) {
47572          var r4, o = function(e5, t5) {
47573            var r5 = "undefined" != typeof Symbol && e5[Symbol.iterator] || e5["@@iterator"];
47574            if (!r5) {
47575              if (Array.isArray(e5) || (r5 = function(e6, t6) {
47576                if (e6) {
47577                  if ("string" == typeof e6)
47578                    return n2(e6, t6);
47579                  var r6 = Object.prototype.toString.call(e6).slice(8, -1);
47580                  return "Object" === r6 && e6.constructor && (r6 = e6.constructor.name), "Map" === r6 || "Set" === r6 ? Array.from(e6) : "Arguments" === r6 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r6) ? n2(e6, t6) : void 0;
47581                }
47582              }(e5)) || t5 && e5 && "number" == typeof e5.length) {
47583                r5 && (e5 = r5);
47584                var i2 = 0, o2 = function() {
47585                };
47586                return { s: o2, n: function() {
47587                  return i2 >= e5.length ? { done: true } : { done: false, value: e5[i2++] };
47588                }, e: function(e6) {
47589                  throw e6;
47590                }, f: o2 };
47591              }
47592              throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
47593            }
47594            var a2, s = true, u2 = false;
47595            return { s: function() {
47596              r5 = r5.call(e5);
47597            }, n: function() {
47598              var e6 = r5.next();
47599              return s = e6.done, e6;
47600            }, e: function(e6) {
47601              u2 = true, a2 = e6;
47602            }, f: function() {
47603              try {
47604                s || null == r5.return || r5.return();
47605              } finally {
47606                if (u2)
47607                  throw a2;
47608              }
47609            } };
47610          }(t4);
47611          try {
47612            for (o.s(); !(r4 = o.n()).done; ) {
47613              var a = r4.value;
47614              if (e4.indexOf(a) < 0)
47615                throw new Error("invalid base16 character");
47616            }
47617          } catch (e5) {
47618            o.e(e5);
47619          } finally {
47620            o.f();
47621          }
47622          return i.from(t4, "hex");
47623        } };
47624      };
47625    }, 6494: (e3) => {
47626      function t3(e4, t4) {
47627        (null == t4 || t4 > e4.length) && (t4 = e4.length);
47628        for (var r3 = 0, n2 = new Array(t4); r3 < t4; r3++)
47629          n2[r3] = e4[r3];
47630        return n2;
47631      }
47632      e3.exports = function(e4) {
47633        return { encode: function(t4) {
47634          return function(e5, t5) {
47635            var r3 = e5.byteLength, n2 = new Uint8Array(e5), i = t5.indexOf("=") === t5.length - 1;
47636            i && (t5 = t5.substring(0, t5.length - 1));
47637            for (var o = 0, a = 0, s = "", u2 = 0; u2 < r3; u2++)
47638              for (a = a << 8 | n2[u2], o += 8; o >= 5; )
47639                s += t5[a >>> o - 5 & 31], o -= 5;
47640            if (o > 0 && (s += t5[a << 5 - o & 31]), i)
47641              for (; s.length % 8 != 0; )
47642                s += "=";
47643            return s;
47644          }("string" == typeof t4 ? Uint8Array.from(t4) : t4, e4);
47645        }, decode: function(r3) {
47646          var n2, i = function(e5, r4) {
47647            var n3 = "undefined" != typeof Symbol && e5[Symbol.iterator] || e5["@@iterator"];
47648            if (!n3) {
47649              if (Array.isArray(e5) || (n3 = function(e6, r5) {
47650                if (e6) {
47651                  if ("string" == typeof e6)
47652                    return t3(e6, r5);
47653                  var n4 = Object.prototype.toString.call(e6).slice(8, -1);
47654                  return "Object" === n4 && e6.constructor && (n4 = e6.constructor.name), "Map" === n4 || "Set" === n4 ? Array.from(e6) : "Arguments" === n4 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n4) ? t3(e6, r5) : void 0;
47655                }
47656              }(e5)) || r4 && e5 && "number" == typeof e5.length) {
47657                n3 && (e5 = n3);
47658                var i2 = 0, o2 = function() {
47659                };
47660                return { s: o2, n: function() {
47661                  return i2 >= e5.length ? { done: true } : { done: false, value: e5[i2++] };
47662                }, e: function(e6) {
47663                  throw e6;
47664                }, f: o2 };
47665              }
47666              throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
47667            }
47668            var a, s = true, u2 = false;
47669            return { s: function() {
47670              n3 = n3.call(e5);
47671            }, n: function() {
47672              var e6 = n3.next();
47673              return s = e6.done, e6;
47674            }, e: function(e6) {
47675              u2 = true, a = e6;
47676            }, f: function() {
47677              try {
47678                s || null == n3.return || n3.return();
47679              } finally {
47680                if (u2)
47681                  throw a;
47682              }
47683            } };
47684          }(r3);
47685          try {
47686            for (i.s(); !(n2 = i.n()).done; ) {
47687              var o = n2.value;
47688              if (e4.indexOf(o) < 0)
47689                throw new Error("invalid base32 character");
47690            }
47691          } catch (e5) {
47692            i.e(e5);
47693          } finally {
47694            i.f();
47695          }
47696          return function(e5, t4) {
47697            for (var r4 = (e5 = e5.replace(new RegExp("=", "g"), "")).length, n3 = 0, i2 = 0, o2 = 0, a = new Uint8Array(5 * r4 / 8 | 0), s = 0; s < r4; s++)
47698              i2 = i2 << 5 | t4.indexOf(e5[s]), (n3 += 5) >
47698= 8 && (a[o2++] = i2 >>> n3 - 8 & 255, n3 -= 8);
47699            return a.buffer;
47700          }(r3, e4);
47701        } };
47702      };
47703    }, 6627: (e3, t3, r3) => {
47704      function n2(e4, t4) {
47705        (null == t4 || t4 > e4.length) && (t4 = e4.length);
47706        for (var r4 = 0, n3 = new Array(t4); r4 < t4; r4++)
47707          n3[r4] = e4[r4];
47708        return n3;
47709      }
47710      var i = r3(9033).Buffer;
47711      e3.exports = function(e4) {
47712        var t4 = e4.indexOf("=") > -1, r4 = e4.indexOf("-") > -1 && e4.indexOf("_") > -1;
47713        return { encode: function(e5) {
47714          var n3 = "";
47715          n3 = "string" == typeof e5 ? i.from(e5).toString("base64") : e5.toString("base64"), r4 && (n3 = n3.replace(/\+/g, "-").replace(/\//g, "_"));
47716          var o = n3.indexOf("=");
47717          return o > 0 && !t4 && (n3 = n3.substring(0, o)), n3;
47718        }, decode: function(t5) {
47719          var r5, o = function(e5, t6) {
47720            var r6 = "undefined" != typeof Symbol && e5[Symbol.iterator] || e5["@@iterator"];
47721            if (!r6) {
47722              if (Array.isArray(e5) || (r6 = function(e6, t7) {
47723                if (e6) {
47724                  if ("string" == typeof e6)
47725                    return n2(e6, t7);
47726                  var r7 = Object.prototype.toString.call(e6).slice(8, -1);
47727                  return "Object" === r7 && e6.constructor && (r7 = e6.constructor.name), "Map" === r7 || "Set" === r7 ? Array.from(e6) : "Arguments" === r7 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r7) ? n2(e6, t7) : void 0;
47728                }
47729              }(e5)) || t6 && e5 && "number" == typeof e5.length) {
47730                r6 && (e5 = r6);
47731                var i2 = 0, o2 = function() {
47732                };
47733                return { s: o2, n: function() {
47734                  return i2 >= e5.length ? { done: true } : { done: false, value: e5[i2++] };
47735                }, e: function(e6) {
47736                  throw e6;
47737                }, f: o2 };
47738              }
47739              throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
47740            }
47741            var a2, s = true, u2 = false;
47742            return { s: function() {
47743              r6 = r6.call(e5);
47744            }, n: function() {
47745              var e6 = r6.next();
47746              return s = e6.done, e6;
47747            }, e: function(e6) {
47748              u2 = true, a2 = e6;
47749            }, f: function() {
47750              try {
47751                s || null == r6.return || r6.return();
47752              } finally {
47753                if (u2)
47754                  throw a2;
47755              }
47756            } };
47757          }(t5);
47758          try {
47759            for (o.s(); !(r5 = o.n()).done; ) {
47760              var a = r5.value;
47761              if (e4.indexOf(a) < 0)
47762                throw new Error("invalid base64 character");
47763            }
47764          } catch (e5) {
47765            o.e(e5);
47766          } finally {
47767            o.f();
47768          }
47769          return i.from(t5, "base64");
47770        } };
47771      };
47772    }, 7905: (e3, t3, r3) => {
47773      var n2 = r3(6565), i = r3(7548), o = r3(2642), a = r3(6494), s = r3(6627), u2 = [["base1", "1", "", "1"], ["base2", "0", i, "01"], ["base8", "7", i, "01234567"], ["base10", "9", i, "0123456789"], ["base16", "f", o, "0123456789abcdef"], ["base32", "b", a, "abcdefghijklmnopqrstuvwxyz234567"], ["base32pad", "c", a, "abcdefghijklmnopqrstuvwxyz234567="], ["base32hex", "v", a, "0123456789abcdefghijklmnopqrstuv"], ["base32hexpad", "t", a, "0123456789abcdefghijklmnopqrstuv="], ["base32z", "h", a, "ybndrfg8ejkmcpqxot1uwisza345h769"], ["base58flickr", "Z", i, "123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"], ["base58btc", "z", i, "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"], ["base64", "m", s, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"], ["base64pad", "M", s, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="], ["base64url", "u", s, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"], ["base64urlpad", "U", s, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_="]], c2 = u2.reduce(function(e4, t4) {
47774        return e4[t4[0]] = new n2(t4[0], t4[1], t4[2], t4[3]), e4;
47775      }, {}), f2 = u2.reduce(function(e4, t4) {
47776        return e4[t4[1]] = c2[t4[0]], e4;
47777      }, {});
47778      e3.exports = { names: c2, codes: f2 };
47779    }, 6086: (e3, t3, r3) => {
47780      var n2 = r3(9033).Buffer, i = r3(7905);
47781      (t3 = e3.exports = a).encode = function(e4, t4) {
47782        var r4 = s(e4);
47783        return a(r4.name, n2.from(r4.encode(t4)));
47784      }, t3.decode = function(e4) {
47785        n2.isBuffer(e4) && (e4 = e4.toString());
47786        var t4 = e4.substring(0, 1);
47787        "string" == typeof (e4 = e4.substring(1, e4.length)) && (e4 = n2.from(e4));
47788        var r4 = s(t4);
47789        return n2.from(r4.decode(e4.toString()));
47790      }, t3.isEncoded = function(e4) {
47791        if (n2.isBuffer(e4) && (e4 = e4.toString()), "[object String]" !== Object.prototype.toString.call(e4))
47792          return false;
47793        var t4 = e4.substring(0, 1);
47794        try {
47795          return s(t4).name;
47796        } catch (e5) {
47797          return false;
47798        }
47799      }, t3.names = Object.freeze(Object.keys(i.names)), t3.codes = Object.freeze(Object.keys(i.codes));
47800      var o = new Error("Unsupported encoding");
47801      function a(e4, t4) {
47802        if (!t4)
47803          throw new Error("requires an encoded buffer");
47804        var r4 = s(e4), i2 = n2.from(r4.code);
47805        return function(e5, t5) {
47806          s(e5).decode(t5.toString());
47807        }(r4.name, t4), n2.concat([i2, t4]);
47808      }
47809      function s(e4) {
47810        var t4;
47811        if (i.names[e4])
47812          t4 = i.names[e4];
47813        else {
47814          if (!i.codes[e4])
47815            throw o;
47816          t4 = i.codes[e4];
47817        }
47818        if (!t4.isImplemented())
47819          throw new Error("Base " + e4 + " is not implemented yet");
47820        return t4;
47821      }
47822    }, 4093: (e3, t3, r3) => {
47823      for (var n2 = r3(8847)(r3(4519)), i = r3(4070), o = {}, a = 0, s = Object.entries(i); a < s.length; a++) {
47824        var u2 = (0, n2.default)(s[a], 2), c2 = u2[0], f2 = u2[1];
47825        o[c2.toUpperCase().replace(/-/g, "_")] = f2;
47826      }
47827      e3.exports = Object.freeze(o);
47828    }, 9206: (e3, t3, r3) => {
47829      var n2 = r3(9033).Buffer, i = r3(6657), o = r3(7054), a = r3(6002), s = r3(5576);
47830      (t3 = e3.exports).addPrefix = function(e4, t4) {
47831        var r4;
47832        if (n2.isBuffer(e4))
47833          r4 = s.varintBufferEncode(e4);
47834        else {
47835          if (!a[e4])
47836            throw new Error("multicodec not recognized");
47837          r4 = a[e4];
47838        }
47839        return n2.concat([r4, t4]);
47840      }, t3.rmPrefix = function(e4) {
47841        return i.decode(e4), e4.slice(i.decode.bytes);
47842      }, t3.getCodec = function(e4) {
47843        var t4 = i.decode(e4), r4 = o.get(t4);
47844        if (void 0 === r4)
47845          throw new Error("Code ".concat(t4, " not found"));
47846        return r4;
47847      }, t3.getName = function(e4) {
47848        return o.get(e4);
47849      }, t3.getNumber = function(e4) {
47850        var t4 = a[e4];
47851        if (void 0 === t4)
47852          throw new Error("Codec `" + e4 + "` not found");
47853        return s.varintBufferDecode(t4)[0];
47854      }, t3.getCode = function(e4) {
47855        return i.decode(e4);
47856      }, t3.getCodeVarint = function(e4) {
47857        var t4 = a[e4];
47858        if (void 0 === t4)
47859          throw new Error("Codec `" + e4 + "` not found");
47860        return t4;
47861      }, t3.getVarint = function(e4) {
47862        return i.encode(e4);
47863      };
47864      var u2 = r3(4093);
47865      Object.assign(t3, u2), t3.print = r3(1032);
47866    }, 7054: (e3, t3, r3) => {
47867      var n2 = r3(4070), i = /* @__PURE__ */ new Map();
47868      for (var o in n2) {
47869        var a = n2[o];
47870        i.set(a, o);
47871      }
47872      e3.exports = Object.freeze(i);
47873    }, 1032: (e3, t3, r3) => {
47874      for (var n2 = r3(8847)(r3(4519)), i = r3(4070), o = {}, a = 0, s = Object.entries(i); a < s.length; a++) {
47875        var u2 = (0, n2.default)(s[a], 2), c2 = u2[0], f2 = u2[1];
47876        void 0 === o[f2] && (o[f2] = c2);
47877      }
47878      e3.exports = Object.freeze(o);
47879    }, 5576: (e3, t3, r3) => {
47880      var n2 = r3(9033).Buffer, i = r3(6657);
47881      function o(e4) {
47882        return parseInt(e4.toString("hex"), 16);
47883      }
47884      function a(e4) {
47885        var t4 = e4.toString(16);
47886        return t4.length % 2 == 1 && (t4 = "0" + t4), n2.from(t4, "hex");
47887      }
47888      e3.exports = { numberToBuffer: a, bufferToNumber: o, varintBufferEncode: function(e4) {
47889        return n2.from(i.encode(o(e4)));
47890      }, varintBufferDecode: function(e4) {
47891        return a(i.decode(e4));
47892      }, varintEncode: function(e4) {
47893        return n2.from(i.encode(e4));
47894      } };
47895    }, 6002: (e3, t3, r3) => {
47896      var n2 = r3(4070), i = r3(5576).varintEncode, o = {};
47897      for (var a in n2) {
47898        var s = n2[a];
47899        o[a] = i(s);
47900      }
47901      e3.exports = Object.freeze(o);
47902    }, 1786: (e3, t3, r3) => {
47903      var n2 = r3(8847), i = n2(r3(9721)), o = n2(r3(8985)), a = function() {
47904        function e4(t4, r4, n3, o2) {
47905          (0, i.default)(this, e4), this.name = t4, this.code = r4, this.alphabet = o2, n3 && o2 && (this.engine = n3(o2));
47906        }
47907        return (0, o.default)(e4, [{ key: "encode", value: function(e5) {
47908          return this.engine.encode(e5);
47909        } }, { key: "decode", value: function(e5) {
47910          return this.engine.decode(e5);
47911        } }, { key: "isImplemented", value: function() {
47912          return this.engine;
47913        } }]), e4;
47914      }();
47915      e3.exports = a;
47916    }, 7739: (e3, t3, r3) => {
47917      function n2(e4, t4) {
47918        (null == t4 || t4 > e4.length) && (t4 = e4.length);
47919        for (var r4 = 0, n3 = new Array(t4); r4 < t4; r4++)
47920          n3[r4] = e4[r4];
47921        return n3;
47922      }
47923      var i = r3(9033).Buffer;
47924      e3.exports = function(e4) {
47925        return { encode: function(e5) {
47926          return "string" == typeof e5 ? i.from(e5).toString("hex") : e5.toString("hex");
47927        }, decode: function(t4) {
47928          var r4, o = function(e5, t5) {
47929            var r5 = "undefined" != typeof Symbol && e5[Symbol.iterator] || e5["@@iterator"];
47930            if (!r5) {
47931              if (Array.isArray(e5) || (r5 = function(e6, t6) {
47932                if (e6) {
47933                  if ("string" == typeof e6)
47934                    return n2(e6, t6);
47935                  var r6 = Object.prototype.toString.call(e6).slice(8, -1);
47936                  return "Object" === r6 && e6.constructor && (r6 = e6.constructor.name), "Map" === r6 || "Set" === r6 ? Array.from(e6) : "Arguments" === r6 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r6) ? n2(e6, t6) : void 0;
47937                }
47938              }(e5)) || t5 && e5 && "number" == typeof e5.length) {
47939                r5 && (e5 = r5);
47940                var i2 = 0, o2 = function() {
47941                };
47942                return { s: o2, n: function() {
47943                  return i2 >= e5.length ? { done: true } : { done: false, value: e5[i2++] };
47944                }, e: function(e6) {
47945                  throw e6;
47946                }, f: o2 };
47947              }
47948              throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
47949            }
47950            var a2, s = true, u2 = false;
47951            return { s: function() {
47952              r5 = r5.call(e5);
47953            }, n: function() {
47954              var e6 = r5.next();
47955              return s = e6.done, e6;
47956            }, e: function(e6) {
47957              u2 = true, a2 = e6;
47958            }, f: function() {
47959              try {
47960                s || null == r5.return || r5.return();
47961              } finally {
47962                if (u2)
47963                  throw a2;
47964              }
47965            } };
47966          }(t4);
47967          try {
47968            for (o.s(); !(r4 = o.n()).done; ) {
47969              var a = r4.value;
47970              if (e4.indexOf(a) < 0)
47971                throw new Error("invalid base16 character");
47972            }
47973          } catch (e5) {
47974            o.e(e5);
47975          } finally {
47976            o.f();
47977          }
47978          return i.from(t4, "hex");
47979        } };
47980      };
47981    }, 976: (e3) => {
47982      function t3(e4, t4) {
47983        (null == t4 || t4 > e4.length) && (t4 = e4.length);
47984        for (var r3 = 0, n2 = new Array(t4); r3 < t4; r3++)
47985          n2[r3] = e4[r3];
47986        return n2;
47987      }
47988      e3.exports = function(e4) {
47989        return { encode: function(t4) {
47990          return function(e5, t5) {
47991            var r3 = e5.byteLength, n2 = new Uint8Array(e5), i = t5.indexOf("=") === t5.length - 1;
47992            i && (t5 = t5.substring(0, t5.length - 1));
47993            for (var o = 0, a = 0, s = "", u2 = 0; u2 < r3; u2++)
47994              for (a = a << 8 | n2[u2], o += 8; o >= 5; )
47995                s += t5[a >>> o - 5 & 31], o -= 5;
47996            if (o > 0 && (s += t5[a << 5 - o & 31]), i)
47997              for (; s.length % 8 != 0; )
47998                s += "=";
47999            return s;
48000          }("string" == typeof t4 ? Uint8Array.from(t4) : t4, e4);
48001        }, decode: function(r3) {
48002          var n2, i = function(e5, r4) {
48003            var n3 = "undefined" != typeof Symbol && e5[Symbol.iterator] || e5["@@iterator"];
48004            if (!n3) {
48005              if (Array.isArray(e5) || (n3 = function(e6, r5) {
48006                if (e6) {
48007                  if ("string" == typeof e6)
48008                    return t3(e6, r5);
48009                  var n4 = Object.prototype.toString.call(e6).slice(8, -1);
48010                  return "Object" === n4 && e6.constructor && (n4 = e6.constructor.name), "Map" === n4 || "Set" === n4 ? Array.from(e6) : "Arguments" === n4 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n4) ? t3(e6, r5) : void 0;
48011                }
48012              }(e5)) || r4 && e5 && "number" == typeof e5.length) {
48013                n3 && (e5 = n3);
48014                var i2 = 0, o2 = function() {
48015                };
48016                return { s: o2, n: function() {
48017                  return i2 >= e5.length ? { done: true } : { done: false, value: e5[i2++] };
48018                }, e: function(e6) {
48019                  throw e6;
48020                }, f: o2 };
48021              }
48022              throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
48023            }
48024            var a, s = true, u2 = false;
48025            return { s: function() {
48026              n3 = n3.call(e5);
48027            }, n: function() {
48028              var e6 = n3.next();
48029              return s = e6.done, e6;
48030            }, e: function(e6) {
48031              u2 = true, a = e6;
48032            }, f: function() {
48033              try {
48034                s || null == n3.return || n3.return();
48035              } finally {
48036                if (u2)
48037                  throw a;
48038              }
48039            } };
48040          }(r3);
48041          try {
48042            for (i.s(); !(n2 = i.n()).done; ) {
48043              var o = n2.value;
48044              if (e4.indexOf(o) < 0)
48045                throw new Error("invalid base32 character");
48046            }
48047          } catch (e5) {
48048            i.e(e5);
48049          } finally {
48050            i.f();
48051          }
48052          return function(e5, t4) {
48053            for (var r4 = (e5 = e5.replace(new RegExp("=", "g"), "")).length, n3 = 0, i2 = 0, o2 = 0, a = new Uint8Array(5 * r4 / 8 | 0), s = 0; s < r4; s++)
48054              i2 = i2 << 5 | t4.indexOf(e5[s]), (n3 += 5) >
48054= 8 && (a[o2++] = i2 >>> n3 - 8 & 255, n3 -= 8);
48055            return a.buffer;
48056          }(r3, e4);
48057        } };
48058      };
48059    }, 8504: (e3, t3, r3) => {
48060      function n2(e4, t4) {
48061        (null == t4 || t4 > e4.length) && (t4 = e4.length);
48062        for (var r4 = 0, n3 = new Array(t4); r4 < t4; r4++)
48063          n3[r4] = e4[r4];
48064        return n3;
48065      }
48066      var i = r3(9033).Buffer;
48067      e3.exports = function(e4) {
48068        var t4 = e4.indexOf("=") > -1, r4 = e4.indexOf("-") > -1 && e4.indexOf("_") > -1;
48069        return { encode: function(e5) {
48070          var n3 = "";
48071          n3 = "string" == typeof e5 ? i.from(e5).toString("base64") : e5.toString("base64"), r4 && (n3 = n3.replace(/\+/g, "-").replace(/\//g, "_"));
48072          var o = n3.indexOf("=");
48073          return o > 0 && !t4 && (n3 = n3.substring(0, o)), n3;
48074        }, decode: function(t5) {
48075          var r5, o = function(e5, t6) {
48076            var r6 = "undefined" != typeof Symbol && e5[Symbol.iterator] || e5["@@iterator"];
48077            if (!r6) {
48078              if (Array.isArray(e5) || (r6 = function(e6, t7) {
48079                if (e6) {
48080                  if ("string" == typeof e6)
48081                    return n2(e6, t7);
48082                  var r7 = Object.prototype.toString.call(e6).slice(8, -1);
48083                  return "Object" === r7 && e6.constructor && (r7 = e6.constructor.name), "Map" === r7 || "Set" === r7 ? Array.from(e6) : "Arguments" === r7 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r7) ? n2(e6, t7) : void 0;
48084                }
48085              }(e5)) || t6 && e5 && "number" == typeof e5.length) {
48086                r6 && (e5 = r6);
48087                var i2 = 0, o2 = function() {
48088                };
48089                return { s: o2, n: function() {
48090                  return i2 >= e5.length ? { done: true } : { done: false, value: e5[i2++] };
48091                }, e: function(e6) {
48092                  throw e6;
48093                }, f: o2 };
48094              }
48095              throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
48096            }
48097            var a2, s = true, u2 = false;
48098            return { s: function() {
48099              r6 = r6.call(e5);
48100            }, n: function() {
48101              var e6 = r6.next();
48102              return s = e6.done, e6;
48103            }, e: function(e6) {
48104              u2 = true, a2 = e6;
48105            }, f: function() {
48106              try {
48107                s || null == r6.return || r6.return();
48108              } finally {
48109                if (u2)
48110                  throw a2;
48111              }
48112            } };
48113          }(t5);
48114          try {
48115            for (o.s(); !(r5 = o.n()).done; ) {
48116              var a = r5.value;
48117              if (e4.indexOf(a) < 0)
48118                throw new Error("invalid base64 character");
48119            }
48120          } catch (e5) {
48121            o.e(e5);
48122          } finally {
48123            o.f();
48124          }
48125          return i.from(t5, "base64");
48126        } };
48127      };
48128    }, 2263: (e3, t3, r3) => {
48129      var n2 = r3(1786), i = r3(7548), o = r3(7739), a = r3(976), s = r3(8504), u2 = [["base1", "1", "", "1"], ["base2", "0", i, "01"], ["base8", "7", i, "01234567"], ["base10", "9", i, "0123456789"], ["base16", "f", o, "0123456789abcdef"], ["base32", "b", a, "abcdefghijklmnopqrstuvwxyz234567"], ["base32pad", "c", a, "abcdefghijklmnopqrstuvwxyz234567="], ["base32hex", "v", a, "0123456789abcdefghijklmnopqrstuv"], ["base32hexpad", "t", a, "0123456789abcdefghijklmnopqrstuv="], ["base32z", "h", a, "ybndrfg8ejkmcpqxot1uwisza345h769"], ["base58flickr", "Z", i, "123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"], ["base58btc", "z", i, "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"], ["base64", "m", s, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"], ["base64pad", "M", s, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="], ["base64url", "u", s, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"], ["base64urlpad", "U", s, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_="]], c2 = u2.reduce(function(e4, t4) {
48130        return e4[t4[0]] = new n2(t4[0], t4[1], t4[2], t4[3]), e4;
48131      }, {}), f2 = u2.reduce(function(e4, t4) {
48132        return e4[t4[1]] = c2[t4[0]], e4;
48133      }, {});
48134      e3.exports = { names: c2, codes: f2 };
48135    }, 2592: (e3, t3, r3) => {
48136      var n2 = r3(9033).Buffer, i = r3(2263);
48137      function o(e4, t4) {
48138        if (!t4)
48139          throw new Error("requires an encoded buffer");
48140        var r4 = a(e4), i2 = n2.from(r4.code);
48141        return function(e5, t5) {
48142          a(e5).decode(t5.toString());
48143        }(r4.name, t4), n2.concat([i2, t4]);
48144      }
48145      function a(e4) {
48146        var t4;
48147        if (i.names[e4])
48148          t4 = i.names[e4];
48149        else {
48150          if (!i.codes[e4])
48151            throw new Error("Unsupported encoding");
48152          t4 = i.codes[e4];
48153        }
48154        if (!t4.isImplemented())
48155          throw new Error("Base " + e4 + " is not implemented yet");
48156        return t4;
48157      }
48158      (t3 = e3.exports = o).encode = function(e4, t4) {
48159        var r4 = a(e4);
48160        return o(r4.name, n2.from(r4.encode(t4)));
48161      }, t3.decode = function(e4) {
48162        n2.isBuffer(e4) && (e4 = e4.toString());
48163        var t4 = e4.substring(0, 1);
48164        "string" == typeof (e4 = e4.substring(1, e4.length)) && (e4 = n2.from(e4));
48165        var r4 = a(t4);
48166        return n2.from(r4.decode(e4.toString()));
48167      }, t3.isEncoded = function(e4) {
48168        if (n2.isBuffer(e4) && (e4 = e4.toString()), "[object String]" !== Object.prototype.toString.call(e4))
48169          return false;
48170        var t4 = e4.substring(0, 1);
48171        try {
48172          return a(t4).name;
48173        } catch (e5) {
48174          return false;
48175        }
48176      }, t3.names = Object.freeze(Object.keys(i.names)), t3.codes = Object.freeze(Object.keys(i.codes));
48177    }, 1269: (e3, t3) => {
48178      t3.names = Object.freeze({ identity: 0, sha1: 17, "sha2-256": 18, "sha2-512": 19, "dbl-sha2-256": 86, "sha3-224": 23, "sha3-256": 22, "sha3-384": 21, "sha3-512": 20, "shake-128": 24, "shake-256": 25, "keccak-224": 26, "keccak-256": 27, "keccak-384": 28, "keccak-512": 29, "murmur3-128": 34, "murmur3-32": 35, md4: 212, md5: 213, "blake2b-8": 45569, "blake2b-16": 45570, "blake2b-24": 45571, "blake2b-32": 45572, "blake2b-40": 45573, "blake2b-48": 45574, "blake2b-56": 45575, "blake2b-64": 45576, "blake2b-72": 45577, "blake2b-80": 45578, "blake2b-88": 45579, "blake2b-96": 45580, "blake2b-104": 45581, "blake2b-112": 45582, "blake2b-120": 45583, "blake2b-128": 45584, "blake2b-136": 45585, "blake2b-144": 45586, "blake2b-152": 45587, "blake2b-160": 45588, "blake2b-168": 45589, "blake2b-176": 45590, "blake2b-184": 45591, "blake2b-192": 45592, "blake2b-200": 45593, "blake2b-208": 45594, "blake2b-216": 45595, "blake2b-224": 45596, "blake2b-232": 45597, "blake2b-240": 45598, "blake2b-248": 45599, "blake2b-256": 45600, "blake2b-264": 45601, "blake2b-272": 45602, "blake2b-280": 45603, "blake2b-288": 45604, "blake2b-296": 45605, "blake2b-304": 45606, "blake2b-312": 45607, "blake2b-320": 45608, "blake2b-328": 45609, "blake2b-336": 45610, "blake2b-344": 45611, "blake2b-352": 45612, "blake2b-360": 45613, "blake2b-368": 45614, "blake2b-376": 45615, "blake2b-384": 45616, "blake2b-392": 45617, "blake2b-400": 45618, "blake2b-408": 45619, "blake2b-416": 45620, "blake2b-424": 45621, "blake2b-432": 45622, "blake2b-440": 45623, "blake2b-448": 45624, "blake2b-456": 45625, "blake2b-464": 45626, "blake2b-472": 45627, "blake2b-480": 45628, "blake2b-488": 45629, "blake2b-496": 45630, "blake2b-504": 45631, "blake2b-512": 45632, "blake2s-8": 45633, "blake2s-16": 45634, "blake2s-24": 45635, "blake2s-32": 45636, "blake2s-40": 45637, "blake2s-48": 45638, "blake2s-56": 45639, "blake2s-64": 45640, "blake2s-72": 45641, "blake2s-80": 45642, "blake2s-88": 45643, "blake2s-96": 45644, "blake2s-104": 45645, "blake2s-112": 45646, "blake2s-120": 45647, "blake2s-128": 45648, "blake2s-136": 45649, "blake2s-144": 45650, "blake2s-152": 45651, "blake2s-160": 45652, "blake2s-168": 45653, "blake2s-176": 45654, "blake2s-184": 45655, "blake2s-192": 45656, "blake2s-200": 45657, "blake2s-208": 45658, "blake2s-216": 45659, "blake2s-224": 45660, "blake2s-232": 45661, "blake2s-240": 45662, "blake2s-248": 45663, "blake2s-256": 45664, "Skein256-8": 45825, "Skein256-16": 45826, "Skein256-24": 45827, "Skein256-32": 45828, "Skein256-40": 45829, "Skein256-48": 45830, "Skein256-56": 45831, "Skein256-64": 45832, "Skein256-72": 45833, "Skein256-80": 45834, "Skein256-88": 45835, "Skein256-96": 45836, "Skein256-104": 45837, "Skein256-112": 45838, "Skein256-120": 45839, "Skein256-128": 45840, "Skein256-136": 45841, "Skein256-144": 45842, "Skein256-152": 45843, "Skein256-160": 45844, "Skein256-168": 45845, "Skein256-176": 45846, "Skein256-184": 45847, "Skein256-192": 45848, "Skein256-200": 45849, "Skein256-208": 45850, "Skein256-216": 45851, "Skein256-224": 45852, "Skein256-232": 45853, "Skein256-240": 45854, "Skein256-248": 45855, "Skein256-256": 45856, "Skein512-8": 45857, "Skein512-16": 45858, "Skein512-24": 45859, "Skein512-32": 45860, "Skein512-40": 45861, "Skein512-48": 45862, "Skein512-56": 45863, "Skein512-64": 45864, "Skein512-72": 45865, "Skein512-80": 45866, "Skein512-88": 45867, "Skein512-96": 45868, "Skein512-104": 45869, "Skein512-112": 45870, "Skein512-120": 45871, "Skein512-128": 45872, "Skein512-136": 45873, "Skein512-144": 45874, "Skein512-152": 45875, "Skein512-160": 45876, "Skein512-168": 45877, "Skein512-176": 45878, "Skein512-184": 45879, "Skein512-192": 45880, "Skein512-200": 45881, "Skein512-208": 45882, "Skein512-216": 45883, "Skein512-224": 45884, "Skein512-232": 45885, "Skein512-240": 45886, "Skein512-248": 45887, "Skein512-256": 45888, "Skein512-264": 45889, "Skein512-272": 45890, "Skein512-280": 45891, "
48178Skein512-288": 45892, "Skein512-296": 45893, "Skein512-304": 45894, "Skein512-312": 45895, "Skein512-320": 45896, "Skein512-328": 45897, "Skein512-336": 45898, "Skein512-344": 45899, "Skein512-352": 45900, "Skein512-360": 45901, "Skein512-368": 45902, "Skein512-376": 45903, "Skein512-384": 45904, "Skein512-392": 45905, "Skein512-400": 45906, "Skein512-408": 45907, "Skein512-416": 45908, "Skein512-424": 45909, "Skein512-432": 45910, "Skein512-440": 45911, "Skein512-448": 45912, "Skein512-456": 45913, "Skein512-464": 45914, "Skein512-472": 45915, "Skein512-480": 45916, "Skein512-488": 45917, "Skein512-496": 45918, "Skein512-504": 45919, "Skein512-512": 45920, "Skein1024-8": 45921, "Skein1024-16": 45922, "Skein1024-24": 45923, "Skein1024-32": 45924, "Skein1024-40": 45925, "Skein1024-48": 45926, "Skein1024-56": 45927, "Skein1024-64": 45928, "Skein1024-72": 45929, "Skein1024-80": 45930, "Skein1024-88": 45931, "Skein1024-96": 45932, "Skein1024-104": 45933, "Skein1024-112": 45934, "Skein1024-120": 45935, "Skein1024-128": 45936, "Skein1024-136": 45937, "Skein1024-144": 45938, "Skein1024-152": 45939, "Skein1024-160": 45940, "Skein1024-168": 45941, "Skein1024-176": 45942, "Skein1024-184": 45943, "Skein1024-192": 45944, "Skein1024-200": 45945, "Skein1024-208": 45946, "Skein1024-216": 45947, "Skein1024-224": 45948, "Skein1024-232": 45949, "Skein1024-240": 45950, "Skein1024-248": 45951, "Skein1024-256": 45952, "Skein1024-264": 45953, "Skein1024-272": 45954, "Skein1024-280": 45955, "Skein1024-288": 45956, "Skein1024-296": 45957, "Skein1024-304": 45958, "Skein1024-312": 45959, "Skein1024-320": 45960, "Skein1024-328": 45961, "Skein1024-336": 45962, "Skein1024-344": 45963, "Skein1024-352": 45964, "Skein1024-360": 45965, "Skein1024-368": 45966, "Skein1024-376": 45967, "Skein1024-384": 45968, "Skein1024-392": 45969, "Skein1024-400": 45970, "Skein1024-408": 45971, "Skein1024-416": 45972, "Skein1024-424": 45973, "Skein1024-432": 45974, "Skein1024-440": 45975, "Skein1024-448": 45976, "Skein1024-456": 45977, "Skein1024-464": 45978, "Skein1024-472": 45979, "Skein1024-480": 45980, "Skein1024-488": 45981, "Skein1024-496": 45982, "Skein1024-504": 45983, "Skein1024-512": 45984, "Skein1024-520": 45985, "Skein1024-528": 45986, "Skein1024-536": 45987, "Skein1024-544": 45988, "Skein1024-552": 45989, "Skein1024-560": 45990, "Skein1024-568": 45991, "Skein1024-576": 45992, "Skein1024-584": 45993, "Skein1024-592": 45994, "Skein1024-600": 45995, "Skein1024-608": 45996, "Skein1024-616": 45997, "Skein1024-624": 45998, "Skein1024-632": 45999, "Skein1024-640": 46e3, "Skein1024-648": 46001, "Skein1024-656": 46002, "Skein1024-664": 46003, "Skein1024-672": 46004, "Skein1024-680": 46005, "Skein1024-688": 46006, "Skein1024-696": 46007, "Skein1024-704": 46008, "Skein1024-712": 46009, "Skein1024-720": 46010, "Skein1024-728": 46011, "Skein1024-736": 46012, "Skein1024-744": 46013, "Skein1024-752": 46014, "Skein1024-760": 46015, "Skein1024-768": 46016, "Skein1024-776": 46017, "Skein1024-784": 46018, "Skein1024-792": 46019, "Skein1024-800": 46020, "Skein1024-808": 46021, "Skein1024-816": 46022, "Skein1024-824": 46023, "Skein1024-832": 46024, "Skein1024-840": 46025, "Skein1024-848": 46026, "Skein1024-856": 46027, "Skein1024-864": 46028, "Skein1024-872": 46029, "Skein1024-880": 46030, "Skein1024-888": 46031, "Skein1024-896": 46032, "Skein1024-904": 46033, "Skein1024-912": 46034, "Skein1024-920": 46035, "Skein1024-928": 46036, "Skein1024-936": 46037, "Skein1024-944": 46038, "Skein1024-952": 46039, "Skein1024-960": 46040, "Skein1024-968": 46041, "Skein1024-976": 46042, "Skein1024-984": 46043, "Skein1024-992": 46044, "Skein1024-1000": 46045, "Skein1024-1008": 46046, "Skein1024-1016": 46047, "Skein1024-1024": 46048 }), t3.codes = Object.freeze({ 0: "identity", 17: "sha1", 18: "sha2-256", 19: "sha2-512", 86: "dbl-sha2-256", 23: "sha3-224", 22: "sha3-256", 21: "sha3-384", 20: "sha3-512", 24: "shake-128", 25: "shake-256", 26: "keccak-224", 27: "keccak-256", 28: "keccak-384", 29: "keccak-512", 34: "murmur3-128", 35: "murmur3-32", 212: "md4", 213: "md5", 45569: "blake2b-8", 45570: "blake2b-16", 45571: "blake2b-24", 45572: "blake2b-32", 45573: "blake2b-40", 45574: "blake2b-48", 45575: "blake2b-56", 45576: "blake2b-64", 45577: "blake2b-72", 45578: "blake2b-80", 45579: "blake2b-88", 45580: "blake2b-96", 45581: "blake2b-104", 45582: "blake2b-112", 45583: "blake2b-120", 45584: "blake2b-128", 45585: "blake2b-136", 45586: "blake2b-144", 45587: "blake2b-152", 45588: "blake2b-160", 45589: "blake2b-168", 45590: "blake2b-176", 45591: "blake2b-184", 45592: "blake2b-192", 45593: "blake2b-200", 45594: "blake2b-208", 45595: "blake2b-216", 45596: "blake2b-224", 45597: "blake2b-232", 45598: "blake2b-240", 45599: "blake2b-248", 45600: "blake2b-256", 45601: "blake2b-264", 45602: "blake2b-272", 45603: "blake2b-280", 45604: "blake2b-288", 45605: "blake2b-296", 45606: "blake2b-304", 45607: "blake2b-312", 45608: "blake2b-320", 45609: "blake2b-328", 45610: "blake2b-336", 45611: "blake2b-344", 45612: "blake2b-352", 45613: "blake2b-360", 45614: "blake2b-368", 45615: "blake2b-376", 45616: "blake2b-384", 45617: "blake2b-392", 45618: "blake2b-400", 45619: "blake2b-408", 45620: "blake2b-416", 45621: "blake2b-424", 45622: "blake2b-432", 45623: "blake2b-440", 45624: "blake2b-448", 45625: "blake2b-456", 45626: "blake2b-464", 45627: "blake2b-472", 45628: "blake2b-480", 45629: "blake2b-488", 45630: "blake2b-496", 45631: "blake2b-504", 45632: "blake2b-512", 45633: "blake2s-8", 45634: "blake2s-16", 45635: "blake2s-24", 45636: "blake2s-32", 45637: "blake2s-40", 45638: "blake2s-48", 45639: "blake2s-
4817856", 45640: "blake2s-64", 45641: "blake2s-72", 45642: "blake2s-80", 45643: "blake2s-88", 45644: "blake2s-96", 45645: "blake2s-104", 45646: "blake2s-112", 45647: "blake2s-120", 45648: "blake2s-128", 45649: "blake2s-136", 45650: "blake2s-144", 45651: "blake2s-152", 45652: "blake2s-160", 45653: "blake2s-168", 45654: "blake2s-176", 45655: "blake2s-184", 45656: "blake2s-192", 45657: "blake2s-200", 45658: "blake2s-208", 45659: "blake2s-216", 45660: "blake2s-224", 45661: "blake2s-232", 45662: "blake2s-240", 45663: "blake2s-248", 45664: "blake2s-256", 45825: "Skein256-8", 45826: "Skein256-16", 45827: "Skein256-24", 45828: "Skein256-32", 45829: "Skein256-40", 45830: "Skein256-48", 45831: "Skein256-56", 45832: "Skein256-64", 45833: "Skein256-72", 45834: "Skein256-80", 45835: "Skein256-88", 45836: "Skein256-96", 45837: "Skein256-104", 45838: "Skein256-112", 45839: "Skein256-120", 45840: "Skein256-128", 45841: "Skein256-136", 45842: "Skein256-144", 45843: "Skein256-152", 45844: "Skein256-160", 45845: "Skein256-168", 45846: "Skein256-176", 45847: "Skein256-184", 45848: "Skein256-192", 45849: "Skein256-200", 45850: "Skein256-208", 45851: "Skein256-216", 45852: "Skein256-224", 45853: "Skein256-232", 45854: "Skein256-240", 45855: "Skein256-248", 45856: "Skein256-256", 45857: "Skein512-8", 45858: "Skein512-16", 45859: "Skein512-24", 45860: "Skein512-32", 45861: "Skein512-40", 45862: "Skein512-48", 45863: "Skein512-56", 45864: "Skein512-64", 45865: "Skein512-72", 45866: "Skein512-80", 45867: "Skein512-88", 45868: "Skein512-96", 45869: "Skein512-104", 45870: "Skein512-112", 45871: "Skein512-120", 45872: "Skein512-128", 45873: "Skein512-136", 45874: "Skein512-144", 45875: "Skein512-152", 45876: "Skein512-160", 45877: "Skein512-168", 45878: "Skein512-176", 45879: "Skein512-184", 45880: "Skein512-192", 45881: "Skein512-200", 45882: "Skein512-208", 45883: "Skein512-216", 45884: "Skein512-224", 45885: "Skein512-232", 45886: "Skein512-240", 45887: "Skein512-248", 45888: "Skein512-256", 45889: "Skein512-264", 45890: "Skein512-272", 45891: "Skein512-280", 45892: "Skein512-288", 45893: "Skein512-296", 45894: "Skein512-304", 45895: "Skein512-312", 45896: "Skein512-320", 45897: "Skein512-328", 45898: "Skein512-336", 45899: "Skein512-344", 45900: "Skein512-352", 45901: "Skein512-360", 45902: "Skein512-368", 45903: "Skein512-376", 45904: "Skein512-384", 45905: "Skein512-392", 45906: "Skein512-400", 45907: "Skein512-408", 45908: "Skein512-416", 45909: "Skein512-424", 45910: "Skein512-432", 45911: "Skein512-440", 45912: "Skein512-448", 45913: "Skein512-456", 45914: "Skein512-464", 45915: "Skein512-472", 45916: "Skein512-480", 45917: "Skein512-488", 45918: "Skein512-496", 45919: "Skein512-504", 45920: "Skein512-512", 45921: "Skein1024-8", 45922: "Skein1024-16", 45923: "Skein1024-24", 45924: "Skein1024-32", 45925: "Skein1024-40", 45926: "Skein1024-48", 45927: "Skein1024-56", 45928: "Skein1024-64", 45929: "Skein1024-72", 45930: "Skein1024-80", 45931: "Skein1024-88", 45932: "Skein1024-96", 45933: "Skein1024-104", 45934: "Skein1024-112", 45935: "Skein1024-120", 45936: "Skein1024-128", 45937: "Skein1024-136", 45938: "Skein1024-144", 45939: "Skein1024-152", 45940: "Skein1024-160", 45941: "Skein1024-168", 45942: "Skein1024-176", 45943: "Skein1024-184", 45944: "Skein1024-192", 45945: "Skein1024-200", 45946: "Skein1024-208", 45947: "Skein1024-216", 45948: "Skein1024-224", 45949: "Skein1024-232", 45950: "Skein1024-240", 45951: "Skein1024-248", 45952: "Skein1024-256", 45953: "Skein1024-264", 45954: "Skein1024-272", 45955: "Skein1024-280", 45956: "Skein1024-288", 45957: "Skein1024-296", 45958: "Skein1024-304", 45959: "Skein1024-312", 45960: "Skein1024-320", 45961: "Skein1024-328", 45962: "Skein1024-336", 45963: "Skein1024-344", 45964: "Skein1024-352", 45965: "Skein1024-360", 45966: "Skein1024-368", 45967: "Skein1024-376", 45968: "Skein1024-384", 45969: "Skein1024-392", 45970: "Skein1024-400", 45971: "Skein1024-408", 45972: "Skein1024-416", 45973: "Skein1024-424", 45974: "Skein1024-432", 45975: "Skein1024-440", 45976: "Skein1024-448", 45977: "Skein1024-456", 45978: "Skein1024-464", 45979: "Skein1024-472", 45980: "Skein1024-480", 45981: "Skein1024-488", 45982: "Skein1024-496", 45983: "Skein1024-504", 45984: "Skein1024-512", 45985: "Skein1024-520", 45986: "Skein1024-528", 45987: "Skein1024-536", 45988: "Skein1024-544", 45989: "Skein1024-552", 45990: "Skein1024-560", 45991: "Skein1024-568", 45992: "Skein1024-576", 45993: "Skein1024-584", 45994: "Skein1024-592", 45995: "Skein1024-600", 45996: "Skein1024-608", 45997: "Skein1024-616", 45998: "Skein1024-624", 45999: "Skein1024-632", 46e3: "Skein1024-640", 46001: "Skein1024-648", 46002: "Skein1024-656", 46003: "Skein1024-664", 46004: "Skein1024-672", 46005: "Skein1024-680", 46006: "Skein1024-688", 46007: "Skein1024-696", 46008: "Skein1024-704", 46009: "Skein1024-712", 46010: "Skein1024-720", 46011: "Skein1024-728", 46012: "Skein1024-736", 46013: "Skein1024-744", 46014: "Skein1024-752", 4601
481785: "Skein1024-760", 46016: "Skein1024-768", 46017: "Skein1024-776", 46018: "Skein1024-784", 46019: "Skein1024-792", 46020: "Skein1024-800", 46021: "Skein1024-808", 46022: "Skein1024-816", 46023: "Skein1024-824", 46024: "Skein1024-832", 46025: "Skein1024-840", 46026: "Skein1024-848", 46027: "Skein1024-856", 46028: "Skein1024-864", 46029: "Skein1024-872", 46030: "Skein1024-880", 46031: "Skein1024-888", 46032: "Skein1024-896", 46033: "Skein1024-904", 46034: "Skein1024-912", 46035: "Skein1024-920", 46036: "Skein1024-928", 46037: "Skein1024-936", 46038: "Skein1024-944", 46039: "Skein1024-952", 46040: "Skein1024-960", 46041: "Skein1024-968", 46042: "Skein1024-976", 46043: "Skein1024-984", 46044: "Skein1024-992", 46045: "Skein1024-1000", 46046: "Skein1024-1008", 46047: "Skein1024-1016", 46048: "Skein1024-1024" }), t3.defaultLengths = Object.freeze({ 17: 20, 18: 32, 19: 64, 86: 32, 23: 28, 22: 32, 21: 48, 20: 64, 24: 32, 25: 64, 26: 28, 27: 32, 28: 48, 29: 64, 34: 32, 45569: 1, 45570: 2, 45571: 3, 45572: 4, 45573: 5, 45574: 6, 45575: 7, 45576: 8, 45577: 9, 45578: 10, 45579: 11, 45580: 12, 45581: 13, 45582: 14, 45583: 15, 45584: 16, 45585: 17, 45586: 18, 45587: 19, 45588: 20, 45589: 21, 45590: 22, 45591: 23, 45592: 24, 45593: 25, 45594: 26, 45595: 27, 45596: 28, 45597: 29, 45598: 30, 45599: 31, 45600: 32, 45601: 33, 45602: 34, 45603: 35, 45604: 36, 45605: 37, 45606: 38, 45607: 39, 45608: 40, 45609: 41, 45610: 42, 45611: 43, 45612: 44, 45613: 45, 45614: 46, 45615: 47, 45616: 48, 45617: 49, 45618: 50, 45619: 51, 45620: 52, 45621: 53, 45622: 54, 45623: 55, 45624: 56, 45625: 57, 45626: 58, 45627: 59, 45628: 60, 45629: 61, 45630: 62, 45631: 63, 45632: 64, 45633: 1, 45634: 2, 45635: 3, 45636: 4, 45637: 5, 45638: 6, 45639: 7, 45640: 8, 45641: 9, 45642: 10, 45643: 11, 45644: 12, 45645: 13, 45646: 14, 45647: 15, 45648: 16, 45649: 17, 45650: 18, 45651: 19, 45652: 20, 45653: 21, 45654: 22, 45655: 23, 45656: 24, 45657: 25, 45658: 26, 45659: 27, 45660: 28, 45661: 29, 45662: 30, 45663: 31, 45664: 32, 45825: 1, 45826: 2, 45827: 3, 45828: 4, 45829: 5, 45830: 6, 45831: 7, 45832: 8, 45833: 9, 45834: 10, 45835: 11, 45836: 12, 45837: 13, 45838: 14, 45839: 15, 45840: 16, 45841: 17, 45842: 18, 45843: 19, 45844: 20, 45845: 21, 45846: 22, 45847: 23, 45848: 24, 45849: 25, 45850: 26, 45851: 27, 45852: 28, 45853: 29, 45854: 3
481780, 45855: 31, 45856: 32, 45857: 1, 45858: 2, 45859: 3, 45860: 4, 45861: 5, 45862: 6, 45863: 7, 45864: 8, 45865: 9, 45866: 10, 45867: 11, 45868: 12, 45869: 13, 45870: 14, 45871: 15, 45872: 16, 45873: 17, 45874: 18, 45875: 19, 45876: 20, 45877: 21, 45878: 22, 45879: 23, 45880: 24, 45881: 25, 45882: 26, 45883: 27, 45884: 28, 45885: 29, 45886: 30, 45887: 31, 45888: 32, 45889: 33, 45890: 34, 45891: 35, 45892: 36, 45893: 37, 45894: 38, 45895: 39, 45896: 40, 45897: 41, 45898: 42, 45899: 43, 45900: 44, 45901: 45, 45902: 46, 45903: 47, 45904: 48, 45905: 49, 45906: 50, 45907: 51, 45908: 52, 45909: 53, 45910: 54, 45911: 55, 45912: 56, 45913: 57, 45914: 58, 45915: 59, 45916: 60, 45917: 61, 45918: 62, 45919: 63, 45920: 64, 45921: 1, 45922: 2, 45923: 3, 45924: 4, 45925: 5, 45926: 6, 45927: 7, 45928: 8, 45929: 9, 45930: 10, 45931: 11, 45932: 12, 45933: 13, 45934: 14, 45935: 15, 45936: 16, 45937: 17, 45938: 18, 45939: 19, 45940: 20, 45941: 21, 45942: 22, 45943: 23, 45944: 24, 45945: 25, 45946: 26, 45947: 27, 45948: 28, 45949: 29, 45950: 30, 45951: 31, 45952: 32, 45953: 33, 45954: 34, 45955: 35, 45956: 36, 45957: 37, 45958: 38, 45959: 39, 45960: 40, 45961: 41, 45962: 42, 45963: 43, 45964: 44, 45965: 45, 45966: 46, 45967: 47, 45968: 48, 45969: 49, 45970: 50, 45971: 51, 45972: 52, 45973: 53, 45974: 54, 45975: 55, 45976: 56, 45977: 57, 45978: 58, 45979: 59, 45980: 60, 45981: 61, 45982: 62, 45983: 63, 45984: 64, 45985: 65, 45986: 66, 45987: 67, 45988: 68, 45989: 69, 45990: 70, 45991: 71, 45992: 72, 45993: 73, 45994: 74, 45995: 75, 45996: 76, 45997: 77, 45998: 78, 45999: 79, 46e3: 80, 46001: 81, 46002: 82, 46003: 83, 46004: 84, 46005: 85, 46006: 86, 46007: 87, 46008: 88, 46009: 89, 46010: 90, 46011: 91, 46012: 92, 46013: 93, 46014: 94, 46015: 95, 46016: 96, 46017: 97, 46018: 98, 46019: 99, 46020: 100, 46021: 101, 46022: 102, 46023: 103, 46024: 104, 46025: 105, 46026: 106, 46027: 107, 46028: 108, 46029: 109, 46030: 110, 46031: 111, 46032: 112, 46033: 113, 46034: 114, 46035: 115, 46036: 116, 46037: 117, 46038: 118, 46039: 119, 46040: 120, 46041: 121, 46042: 122, 46043: 123, 46044: 124, 46045: 125, 46046: 126, 46047: 127, 46048: 128 });
48179    }, 7748: (e3, t3, r3) => {
48180      var n2 = r3(9033).Buffer, i = r3(2592), o = r3(6657), a = r3(1269);
48181      function s(e4) {
48182        t3.decode(e4);
48183      }
48184      t3.names = a.names, t3.codes = a.codes, t3.defaultLengths = a.defaultLengths, t3.toHexString = function(e4) {
48185        if (!n2.isBuffer(e4))
48186          throw new Error("must be passed a buffer");
48187        return e4.toString("hex");
48188      }, t3.fromHexString = function(e4) {
48189        return n2.from(e4, "hex");
48190      }, t3.toB58String = function(e4) {
48191        if (!n2.isBuffer(e4))
48192          throw new Error("must be passed a buffer");
48193        return i.encode("base58btc", e4).toString().slice(1);
48194      }, t3.fromB58String = function(e4) {
48195        var t4 = e4;
48196        return n2.isBuffer(e4) && (t4 = e4.toString()), i.decode("z" + t4);
48197      }, t3.decode = function(e4) {
48198        if (!n2.isBuffer(e4))
48199          throw new Error("multihash must be a Buffer");
48200        if (e4.length < 2)
48201          throw new Error("multihash too short. must be > 2 bytes.");
48202        var r4 = o.decode(e4);
48203        if (!t3.isValidCode(r4))
48204          throw new Error("multihash unknown function code: 0x".concat(r4.toString(16)));
48205        e4 = e4.slice(o.decode.bytes);
48206        var i2 = o.decode(e4);
48207        if (i2 < 0)
48208          throw new Error("multihash invalid length: ".concat(i2));
48209        if ((e4 = e4.slice(o.decode.bytes)).length !== i2)
48210          throw new Error("multihash length inconsistent: 0x".concat(e4.toString("hex")));
48211        return { code: r4, name: a.codes[r4], length: i2, digest: e4 };
48212      }, t3.encode = function(e4, r4, i2) {
48213        if (!e4 || void 0 === r4)
48214          throw new Error("multihash encode requires at least two args: digest, code");
48215        var a2 = t3.coerceCode(r4);
48216        if (!n2.isBuffer(e4))
48217          throw new Error("digest should be a Buffer");
48218        if (null == i2 && (i2 = e4.length), i2 && e4.length !== i2)
48219          throw new Error("digest length should be equal to specified length.");
48220        return n2.concat([n2.from(o.encode(a2)), n2.from(o.encode(i2)), e4]);
48221      }, t3.coerceCode = function(e4) {
48222        var r4 = e4;
48223        if ("string" == typeof e4) {
48224          if (void 0 === a.names[e4])
48225            throw new Error("Unrecognized hash function named: ".concat(e4));
48226          r4 = a.names[e4];
48227        }
48228        if ("number" != typeof r4)
48229          throw new Error("Hash function code should be a number. Got: ".concat(r4));
48230        if (void 0 === a.codes[r4] && !t3.isAppCode(r4))
48231          throw new Error("Unrecognized function code: ".concat(r4));
48232        return r4;
48233      }, t3.isAppCode = function(e4) {
48234        return e4 > 0 && e4 < 16;
48235      }, t3.isValidCode = function(e4) {
48236        return !!t3.isAppCode(e4) || !!a.codes[e4];
48237      }, t3.validate = s, t3.prefix = function(e4) {
48238        return s(e4), e4.slice(0, 2);
48239      };
48240    }, 7277: (e3, t3, r3) => {
48241      var n2 = r3(8847)(r3(3355)), i = r3(1734), o = r3(6931);
48242      e3.exports = function(e4) {
48243        if ("string" == typeof e4 || "number" == typeof e4) {
48244          var t4 = new i(1), r4 = String(e4).toLowerCase().trim(), a = "0x" === r4.substr(0, 2) || "-0x" === r4.substr(0, 3), s = o(r4);
48245          if ("-" === s.substr(0, 1) && (s = o(s.slice(1)), t4 = new i(-1, 10)), !(s = "" === s ? "0" : s).match(/^-?[0-9]+$/) && s.match(/^[0-9A-Fa-f]+$/) || s.match(/^[a-fA-F]+$/) || true === a && s.match(/^[0-9A-Fa-f]+$/))
48246            return new i(s, 16).mul(t4);
48247          if ((s.match(/^-?[0-9]+$/) || "" === s) && false === a)
48248            return new i(s, 10).mul(t4);
48249        } else if ("object" === (0, n2.default)(e4) && e4.toString && !e4.pop && !e4.push && e4.toString(10).match(/^-?[0-9]+$/) && (e4.mul || e4.dividedToIntegerBy))
48250          return new i(e4.toString(10), 10);
48251        throw new Error("[number-to-bn] while converting number " + JSON.stringify(e4) + " to BN.js instance, error: invalid number value. Value must be an integer, hex string, BN or BigNumber instance. Note, decimals are not supported.");
48252      };
48253    }
48253, 3103: (e3) => {
48254      var t3 = Object.getOwnPropertySymbols, r3 = Object.prototype.hasOwnProperty, n2 = Object.prototype.propertyIsEnumerable;
48255      function i(e4) {
48256        if (null == e4)
48257          throw new TypeError("Object.assign cannot be called with null or undefined");
48258        return Object(e4);
48259      }
48260      e3.exports = function() {
48261        try {
48262          if (!Object.assign)
48263            return false;
48264          var e4 = new String("abc");
48265          if (e4[5] = "de", "5" === Object.getOwnPropertyNames(e4)[0])
48266            return false;
48267          for (var t4 = {}, r4 = 0; r4 < 10; r4++)
48268            t4["_" + String.fromCharCode(r4)] = r4;
48269          if ("0123456789" !== Object.getOwnPropertyNames(t4).map(function(e5) {
48270            return t4[e5];
48271          }).join(""))
48272            return false;
48273          var n3 = {};
48274          return "abcdefghijklmnopqrst".split("").forEach(function(e5) {
48275            n3[e5] = e5;
48276          }), "abcdefghijklmnopqrst" === Object.keys(Object.assign({}, n3)).join("");
48277        } catch (e5) {
48278          return false;
48279        }
48280      }() ? Object.assign : function(e4, o) {
48281        for (var a, s, u2 = i(e4), c2 = 1; c2 < arguments.length; c2++) {
48282          for (var f2 in a = Object(arguments[c2]))
48283            r3.call(a, f2) && (u2[f2] = a[f2]);
48284          if (t3) {
48285            s = t3(a);
48286            for (var d2 = 0; d2 < s.length; d2++)
48287              n2.call(a, s[d2]) && (u2[s[d2]] = a[s[d2]]);
48288          }
48289        }
48290        return u2;
48291      };
48292    }, 3150: (e3, t3, r3) => {
48293      var n2, i, o;
48294      e3 = r3.nmd(e3);
48295      var a, s = r3(8847)(r3(3355));
48296      a = function() {
48297        return function(e4) {
48298          var t4 = {};
48299          function r4(n3) {
48300            if (t4[n3])
48301              return t4[n3].exports;
48302            var i2 = t4[n3] = { i: n3, l: false, exports: {} };
48303            return e4[n3].call(i2.exports, i2, i2.exports, r4), i2.l = true, i2.exports;
48304          }
48305          return r4.m = e4, r4.c = t4, r4.d = function(e5, t5, n3) {
48306            r4.o(e5, t5) || Object.defineProperty(e5, t5, { configurable: false, enumerable: true, get: n3 });
48307          }, r4.n = function(e5) {
48308            var t5 = e5 && e5.__esModule ? function() {
48309              return e5.default;
48310            } : function() {
48311              return e5;
48312            };
48313            return r4.d(t5, "a", t5), t5;
48314          }, r4.o = function(e5, t5) {
48315            return Object.prototype.hasOwnProperty.call(e5, t5);
48316          }, r4.p = "", r4(r4.s = 7);
48317        }([function(e4, t4, r4) {
48318          r4.d(t4, "j", function() {
48319            return i2;
48320          }), r4.d(t4, "d", function() {
48321            return o2;
48322          }), r4.d(t4, "c", function() {
48323            return a2;
48324          }), r4.d(t4, "h", function() {
48325            return s2;
48326          }), r4.d(t4, "b", function() {
48327            return u2;
48328          }), r4.d(t4, "k", function() {
48329            return c2;
48330          }), r4.d(t4, "e", function() {
48331            return f2;
48332          }), r4.d(t4, "g", function() {
48333            return d2;
48334          }), r4.d(t4, "i", function() {
48335            return l2;
48336          }), r4.d(t4, "a", function() {
48337            return h2;
48338          }), r4.d(t4, "f", function() {
48339            return p2;
48340          });
48341          var n3 = r4(1), i2 = c2(function(e5, t5) {
48342            var r5 = t5.length;
48343            return c2(function(n4) {
48344              for (var i3 = 0; i3 < n4.length; i3++)
48345                t5[r5 + i3] = n4[i3];
48346              return t5.length = r5 + n4.length, e5.apply(this, t5);
48347            });
48348          });
48349          function o2(e5, t5) {
48350            return function() {
48351              return e5.call(this, t5.apply(this, arguments));
48352            };
48353          }
48354          function a2(e5) {
48355            return function(t5) {
48356              return t5[e5];
48357            };
48358          }
48359          c2(function(e5) {
48360            var t5 = Object(n3.c)(e5);
48361            function r5(e6, t6) {
48362              return [u2(e6, t6)];
48363            }
48364            return c2(function(e6) {
48365              return Object(n3.f)(r5, e6, t5)[0];
48366            });
48367          });
48368          var s2 = c2(function(e5) {
48369            return c2(function(t5) {
48370              for (var r5, n4 = 0; n4 < a2("length")(e5); n4++)
48371                if (r5 = u2(t5, e5[n4]))
48372                  return r5;
48373            });
48374          });
48375          function u2(e5, t5) {
48376            return t5.apply(void 0, e5);
48377          }
48378          function c2(e5) {
48379            var t5 = e5.length - 1, r5 = Array.prototype.slice;
48380            if (0 === t5)
48381              return function() {
48382                return e5.call(this, r5.call(arguments));
48383              };
48384            if (1 === t5)
48385              return function() {
48386                return e5.call(this, arguments[0], r5.call(arguments, 1));
48387              };
48388            var n4 = Array(e5.length);
48389            return function() {
48390              for (var i3 = 0; i3 < t5; i3++)
48391                n4[i3] = arguments[i3];
48392              return n4[t5] = r5.call(arguments, t5), e5.apply(this, n4);
48393            };
48394          }
48395          function f2(e5) {
48396            return function(t5, r5) {
48397              return e5(r5, t5);
48398            };
48399          }
48400          function d2(e5, t5) {
48401            return function(r5) {
48402              return e5(r5) && t5(r5);
48403            };
48404          }
48405          function l2() {
48406          }
48407          function h2() {
48408            return true;
48409          }
48410          function p2(e5) {
48411            return function() {
48412              return e5;
48413            };
48414          }
48415        }, function(e4, t4, r4) {
48416          r4.d(t4, "d", function() {
48417            return i2;
48418          }), r4.d(t4, "g", function() {
48419            return a2;
48420          }), r4.d(t4, "l", function() {
48421            return s2;
48422          }), r4.d(t4, "c", function() {
48423            return u2;
48424          }), r4.d(t4, "h", function() {
48425            return c2;
48426          }), r4.d(t4, "i", function() {
48427            return f2;
48428          }), r4.d(t4, "j", function() {
48429            return d2;
48430          }), r4.d(t4, "f", function() {
48431            return l2;
48432          }), r4.d(t4, "m", function() {
48433            return h2;
48434          }), r4.d(t4, "a", function() {
48435            return p2;
48436          }), r4.d(t4, "b", function() {
48437            return b2;
48438          }), r4.d(t4, "k", function() {
48439            return y2;
48440          }), r4.d(t4, "e", function() {
48441            return m2;
48442          });
48443          var n3 = r4(0);
48444          function i2(e5, t5) {
48445            return [e5, t5];
48446          }
48447          var o2 = null, a2 = Object(n3.c)(0), s2 = Object(n3.c)(1);
48448          function u2(e5) {
48449            return y2(e5.reduce(Object(n3.e)(i2), o2));
48450          }
48451          var c2 = Object(n3.k)(u2);
48452          function f2(e5) {
48453            return l2(function(e6, t5) {
48454              return e6.unshift(t5), e6;
48455            }, [], e5);
48456          }
48457          function d2(e5, t5) {
48458            return t5 ? i2(e5(a2(t5)), d2(e5, s2(t5))) : o2;
48459          }
48460          function l2(e5, t5, r5) {
48461            return r5 ? e5(l2(e5, t5, s2(r5)), a2(r5)) : t5;
48462          }
48463          function h2(e5, t5, r5) {
48464            return function e6(r6, n4) {
48465              return r6 ? t5(a2(r6)) ? (n4(a2(r6)), s2(r6)) : i2(a2(r6), e6(s2(r6), n4)) : o2;
48466            }(e5, r5 || n3.i);
48467          }
48468          function p2(e5, t5) {
48469            return !t5 || e5(a2(t5)) && p2(e5, s2(t5));
48470          }
48471          function b2(e5, t5) {
48472            e5 && (a2(e5).apply(null, t5), b2(s2(e5), t5));
48473          }
48474          function y2(e5) {
48475            return function e6(t5, r5) {
48476              return t5 ? e6(s2(t5), i2(a2(t5), r5)) : r5;
48477            }(e5, o2);
48478          }
48479          function m2(e5, t5) {
48480            return t5 && (e5(a2(t5)) ? a2(t5) : m2(e5, s2(t5)));
48481          }
48482        }, function(e4, t4, r4) {
48483          r4.d(t4, "c", function() {
48484            return o2;
48485          }), r4.d(t4, "e", function() {
48486            return a2;
48487          }), r4.d(t4, "d", function() {
48488            return s2;
48489          }), r4.d(t4, "a", function() {
48490            return u2;
48491          }), r4.d(t4, "b", function() {
48492            return c2;
48493          });
48494          var n3 = r4(1), i2 = r4(0);
48495          function o2(e5, t5) {
48496            return t5 && t5.constructor === e5;
48497          }
48498          var a2 = Object(i2.c)("length"), s2 = Object(i2.j)(o2, String);
48499          function u2(e5) {
48500            return void 0 !== e5;
48501          }
48502          function c2(e5, t5) {
48503            return t5 instanceof Object && Object(n3.a)(function(e6) {
48504              return e6 in t5;
48505            }, e5);
48506          }
48507        }, function(e4, t4, r4) {
48508          r4.d(t4, "f", function() {
48509            return i2;
48510          }), r4.d(t4, "d", function() {
48511            return o2;
48512          }), r4.d(t4, "g", function() {
48513            return a2;
48514          }), r4.d(t4, "e", function() {
48515            return s2;
48516          }), r4.d(t4, "b", function() {
48517            return u2;
48518          }), r4.d(t4, "h", function() {
48519            return c2;
48520          }), r4.d(t4, "i", function() {
48521            return f2;
48522          }), r4.d(t4, "c", function() {
48523            return d2;
48524          }), r4.d(t4, "m", function() {
48525            return l2;
48526          }), r4.d(t4, "n", function() {
48527            return h2;
48528          }), r4.d(t4, "a", function() {
48529            return p2;
48530          }), r4.d(t4, "j", function() {
48531            return b2;
48532          }), r4.d(t4, "l", function() {
48533            return y2;
48534          }), r4.d(t4, "k", function() {
48535            return m2;
48536          }), r4.d(t4, "o", function() {
48537            return v2;
48538          });
48539          var n3 = 1, i2 = n3++, o2 = n3++, a2 = n3++, s2 = n3++, u2 = "fail", c2 = n3++, f2 = n3++, d2 = "start", l2 = "data", h2 = "end", p2 = n3++, b2 = n3++, y2 = n3++, m2 = n3++;
48540          function v2(e5, t5, r5) {
48541            try {
48542              var n4 = JSON.parse(t5);
48543            } catch (e6) {
48544            }
48545            return { statusCode: e5, body: t5, jsonBody: n4, thrown: r5 };
48546          }
48547        }, function(e4, t4, r4) {
48548          r4.d(t4, "b", function() {
48549            return i2;
48550          }), r4.d(t4, "a", function() {
48551            return o2;
48552          }), r4.d(t4, "c", function() {
48553            return a2;
48554          });
48555          var n3 = r4(0);
48556          function i2(e5, t5) {
48557            return { key: e5, node: t5 };
48558          }
48559          var o2 = Object(n3.c)("key"), a2 = Object(n3.c)("node");
48560        }, function(e4, t4, r4) {
48561          r4.d(t4, "a", function() {
48562            return u2;
48563          });
48564          var n3 = r4(1), i2 = r4(0), o2 = r4(2), a2 = r4(8), s2 = r4(9);
48565          function u2(e5) {
48566            var t5 = Object(n3.h)("resume", "pause", "pipe"), r5 = Object(i2.j)(o2.b, t5);
48567            return e5 ? r5(e5) || Object(o2.d)(e5) ? Object(a2.a)(s2.a, e5) : Object(a2.a)(s2.a, e5.url, e5.method, e5.body, e5.headers, e5.withCredentials, e5.cached) : Object(s2.a)();
48568          }
48569          u2.drop = function() {
48570            return u2.drop;
48571          };
48572        }, function(e4, t4, r4) {
48573          r4.d(t4, "b", function() {
48574            return u2;
48575          }), r4.d(t4, "a", function() {
48576            return s2;
48577          });
48578          var n3 = r4(3), i2 = r4(4), o2 = r4(2), a2 = r4(1), s2 = {};
48579          function u2(e5) {
48580            var t5 = e5(n3.f).emit, r5 = e5(n3.d).emit, u3 = e5(n3.i).emit, c2 = e5(n3.h).emit;
48581            function f2(e6, t6, r6) {
48582              Object(i2.c)(Object(a2.g)(e6))[t6] = r6;
48583            }
48584            function d2(e6, r6, n4) {
48585              e6 && f2(e6, r6, n4);
48586              var o3 = Object(a2.d)(Object(i2.b)(r6, n4), e6);
48587              return t5(o3), o3;
48588            }
48589            var l2 = {};
48590            return l2[n3.l] = function(e6, t6) {
48591              if (!e6)
48592                return u3(t6), d2(e6, s2, t6);
48593              var r6 = function(e7, t7) {
48594                var r7 = Object(i2.c)(Object(a2.g)(e7));
48595                return Object(o2.c)(Array, r7) ? d2(e7, Object(o2.e)(r7), t7) : e7;
48596              }(e6, t6), n4 = Object(a2.l)(r6), c3 = Object(i2.a)(Object(a2.g)(r6));
48597              return f2(n4, c3, t6), Object(a2.d)(Object(i2.b)(c3, t6), n4);
48598            }, l2[n3.k] = function(e6) {
48599              return r5(e6), Object(a2.l)(e6) || c2(Object(i2.c)(Object(a2.g)(e6)));
48600            }, l2[n3.j] = d2, l2;
48601          }
48602        }, function(e4, t4, r4) {
48603          Object.defineProperty(t4, "__esModule", { value: true });
48604          var n3 = r4(5);
48605          t4.default = n3.a;
48606        }, function(e4, t4, r4) {
48607          r4.d(t4, "a", function() {
48608            return i2;
48609          });
48610          var n3 = r4(2);
48611          function i2(e5, t5, r5, i3, o2, a2, s2) {
48612            return o2 = o2 ? JSON.parse(JSON.stringify(o2)) : {}, i3 ? (Object(n3.d)(i3) || (i3 = JSON.stringify(i3), o2["Content-Type"] = o2["Content-Type"] || "application/json"), o2["Content-Length"] = o2["Content-Length"] || i3.length) : i3 = null, e5(r5 || "GET", function(e6, t6) {
48613              return false === t6 && (-1 === e6.indexOf("?") ? e6 += "?" : e6 += "&", e6 += "_=" + new Date().getTime()), e6;
48614            }(t5, s2), i3, o2, a2 || false);
48615          }
48616        }, function(e4, t4, r4) {
48617          r4.d(t4, "a", function() {
48618            return d2;
48619          });
48620          var n3 = r4(10), i2 = r4(12), o2 = r4(6), a2 = r4(13), s2 = r4(14), u2 = r4(16), c2 = r4(17), f2 = r4(18);
48621          function d2(e5, t5, r5, d3, l2) {
48622            var h2 = Object(n3.a)();
48623            return t5 && Object(f2.b)(h2, Object(f2.a)(), e5, t5, r5, d3, l2), Object(c2.a)(h2), Object(i2.a)(h2, Object(o2.b)(h2)), Object(a2.a)(h2, s2.a), Object(u2.a)(h2, t5);
48624          }
48625        }, function(e4, t4, r4) {
48626          r4.d(t4, "a", function() {
48627            return o2;
48628          });
48629          var n3 = r4(11), i2 = r4(0);
48630          function o2() {
48631            var e5 = {}, t5 = o3("newListener"), r5 = o3("removeListener");
48632            function o3(i3) {
48633              return e5[i3] = Object(n3.a)(i3, t5, r5), e5[i3];
48634            }
48635            function a2(t6) {
48636              return e5[t6] || o3(t6);
48637            }
48638            return ["emit", "on", "un"].forEach(function(e6) {
48639              a2[e6] = Object(i2.k)(function(t6, r6) {
48640                Object(i2.b)(r6, a2(t6)[e6]);
48641              });
48642            }), a2;
48643          }
48644        }, function(e4, t4, r4) {
48645          r4.d(t4, "a", function() {
48646            return a2;
48647          });
48648          var n3 = r4(1), i2 = r4(2), o2 = r4(0);
48649          function a2(e5, t5, r5) {
48650            var a3, s2;
48651            function u2(e6) {
48652              return function(t6) {
48653                return t6.id === e6;
48654              };
48655            }
48656            return { on: function(r6, i3) {
48657              var o3 = { listener: r6, id: i3 || r6 };
48658              return t5 && t5.emit(e5, r6, o3.id), a3 = Object(n3.d)(o3, a3), s2 = Object(n3.d)(r6, s2), this;
48659            }, emit: function() {
48660              Object(n3.b)(s2, arguments);
48661            }, un: function(t6) {
48662              var i3;
48663              a3 = Object(n3.m)(a3, u2(t6), function(e6) {
48664                i3 = e6;
48665              }), i3 && (s2 = Object(n3.m)(s2, function(e6) {
48666                return e6 === i3.listener;
48667              }), r5 && r5.emit(e5, i3.listener, i3.id));
48668            }, listeners: function() {
48669              return s2;
48670            }, hasListener: function(e6) {
48671              var t6 = e6 ? u2(e6) : o2.a;
48672              return Object(i2.a)(Object(n3.e)(t6, a3));
48673            } };
48674          }
48675        }, function(e4, t4, r4) {
48676          r4.d(t4, "a", function() {
48677            return a2;
48678          });
48679          var n3 = r4(4), i2 = r4(3), o2 = r4(1);
48680          function a2(e5, t5) {
48681            var r5, a3 = {};
48682            function s2(e6) {
48683              return function(t6) {
48684                r5 = e6(r5, t6);
48685              };
48686            }
48687            for (var u2 in t5)
48688              e5(u2).on(s2(t5[u2]), a3);
48689            e5(i2.g).on(function(e6) {
48690              var t6 = Object(o2.g)(r5), i3 = Object(n3.a)(t6), a4 = Object(o2.l)(r5);
48691              a4 && (Object(n3.c)(Object(o2.g)(a4))[i3] = e6);
48692            }), e5(i2.e).on(function() {
48693              var e6 = Object(o2.g)(r5), t6 = Object(n3.a)(e6), i3 = Object(o2.l)(r5);
48694              i3 && delete Object(n3.c)(Object(o2.g)(i3))[t6];
48695            }), e5(i2.a).on(function() {
48696              for (var r6 in t5)
48697                e5(r6).un(a3);
48698            });
48699          }
48700        }, function(e4, t4, r4) {
48701          r4.d(t4, "a", function() {
48702            return a2;
48703          });
48704          var n3 = r4(3), i2 = r4(1), o2 = r4(4);
48705          function a2(e5, t5) {
48706            var r5 = { node: e5(n3.d), path: e5(n3.f) };
48707            e5("newListener").on(function(n4) {
48708              var a3 = /(node|path):(.*)/.exec(n4);
48709              if (a3) {
48710                var s2 = r5[a3[1]];
48711                s2.hasListener(n4) || function(t6, r6, n5) {
48712                  var a4 = e5(t6).emit;
48713                  r6.on(function(e6) {
48714                    var t7 = n5(e6);
48715                    false !== t7 && function(e7, t8, r7) {
48716                      var n6 = Object(i2.k)(r7);
48717                      e7(t8, Object(i2.i)(Object(i2.l)(Object(i2.j)(o2.a, n6))), Object(i2.i)(Object(i2.j)(o2.c, n6))
48717);
48718                    }(a4, Object(o2.c)(t7), e6);
48719                  }, t6), e5("removeListener").on(function(n6) {
48720                    n6 === t6 && (e5(n6).listeners() || r6.un(t6));
48721                  });
48722                }(n4, s2, t5(a3[2]));
48723              }
48724            });
48725          }
48726        }, function(e4, t4, r4) {
48727          r4.d(t4, "a", function() {
48728            return c2;
48729          });
48730          var n3 = r4(0), i2 = r4(1), o2 = r4(4), a2 = r4(2), s2 = r4(6), u2 = r4(15), c2 = Object(u2.a)(function(e5, t5, r5, u3, c3) {
48731            var f2 = Object(n3.d)(o2.a, i2.g), d2 = Object(n3.d)(o2.c, i2.g);
48732            function l2(e6, t6) {
48733              return t6[1] ? Object(n3.g)(e6, i2.g) : e6;
48734            }
48735            function h2(e6) {
48736              return e6 === n3.a ? n3.a : Object(n3.g)(function(e7) {
48737                return f2(e7) !== s2.a;
48738              }, Object(n3.d)(e6, i2.l));
48739            }
48740            function p2() {
48741              return function(e6) {
48742                return f2(e6) === s2.a;
48743              };
48744            }
48745            function b2(e6, t6, r6, n4, o3) {
48746              var s3 = e6(r6);
48747              if (s3) {
48748                var u4 = function(e7, t7, r7) {
48749                  return Object(i2.f)(function(e8, t8) {
48750                    return t8(e8, r7);
48751                  }, t7, e7);
48752                }(t6, n4, s3);
48753                return o3(r6.substr(Object(a2.e)(s3[0])), u4);
48754              }
48755            }
48756            function y2(e6, t6) {
48757              return Object(n3.j)(b2, e6, t6);
48758            }
48759            var m2 = Object(n3.h)(y2(e5, Object(i2.h)(l2, function(e6, t6) {
48760              var r6 = t6[3];
48761              if (!r6)
48762                return e6;
48763              var o3 = Object(n3.j)(a2.b, Object(i2.c)(r6.split(/\W+/))), s3 = Object(n3.d)(o3, d2);
48764              return Object(n3.g)(s3, e6);
48765            }, function(e6, t6) {
48766              var r6 = t6[2], i3 = r6 && "*" !== r6 ? function(e7) {
48767                return String(f2(e7)) === r6;
48768              } : n3.a;
48769              return Object(n3.g)(i3, e6);
48770            }, h2)), y2(t5, Object(i2.h)(function(e6) {
48771              if (e6 === n3.a)
48772                return n3.a;
48773              var t6 = p2(), r6 = e6, i3 = h2(function(e7) {
48774                return o3(e7);
48775              }), o3 = Object(n3.h)(t6, r6, i3);
48776              return o3;
48777            })), y2(r5, Object(i2.h)()), y2(u3, Object(i2.h)(l2, p2)), y2(c3, Object(i2.h)(function(e6) {
48778              return function(t6) {
48779                var r6 = e6(t6);
48780                return true === r6 ? Object(i2.g)(t6) : r6;
48781              };
48782            })), function(e6) {
48783              throw Error('"' + e6 + '" could not be tokenised');
48784            });
48785            function v2(e6, t6) {
48786              return t6;
48787            }
48788            function g2(e6, t6) {
48789              return m2(e6, t6, e6 ? g2 : v2);
48790            }
48791            return function(e6) {
48792              try {
48793                return g2(e6, n3.a);
48794              } catch (t6) {
48795                throw Error('Could not compile "' + e6 + '" because ' + t6.message);
48796              }
48797            };
48798          });
48799        }, function(e4, t4, r4) {
48800          r4.d(t4, "a", function() {
48801            return b2;
48802          });
48803          var n3, i2, o2, a2, s2, u2, c2, f2, d2, l2, h2, p2 = r4(0), b2 = (n3 = Object(p2.k)(function(e5) {
48804            return e5.unshift(/^/), (t5 = RegExp(e5.map(Object(p2.c)("source")).join(""))).exec.bind(t5);
48805            var t5;
48806          }), a2 = n3(i2 = /(\$?)/, /([\w-_]+|\*)/, o2 = /(?:{([\w ]*?)})?/), s2 = n3(i2, /\["([^"]+)"\]/, o2), u2 = n3(i2, /\[(\d+|\*)\]/, o2), c2 = n3(i2, /()/, /{([\w ]*?)}/), f2 = n3(/\.\./), d2 = n3(/\./), l2 = n3(i2, /!/), h2 = n3(/$/), function(e5) {
48807            return e5(Object(p2.h)(a2, s2, u2, c2), f2, d2, l2, h2);
48808          });
48809        }, function(e4, t4, r4) {
48810          r4.d(t4, "a", function() {
48811            return s2;
48812          });
48813          var n3 = r4(3), i2 = r4(0), o2 = r4(2), a2 = r4(5);
48814          function s2(e5, t5) {
48815            var r5, s3 = /^(node|path):./, u2 = e5(n3.h), c2 = e5(n3.e).emit, f2 = e5(n3.g).emit, d2 = Object(i2.k)(function(t6, n4) {
48816              if (r5[t6])
48817                Object(i2.b)(n4, r5[t6]);
48818              else {
48819                var o3 = e5(t6), a3 = n4[0];
48820                s3.test(t6) ? l2(o3, p2(a3)) : o3.on(a3);
48821              }
48822              return r5;
48823            });
48824            function l2(e6, t6, n4) {
48825              n4 = n4 || t6;
48826              var o3 = h2(t6);
48827              return e6.on(function() {
48828                var t7 = false;
48829                r5.forget = function() {
48830                  t7 = true;
48831                }, Object(i2.b)(arguments, o3), delete r5.forget, t7 && e6.un(n4);
48832              }, n4), r5;
48833            }
48834            function h2(e6) {
48835              return function() {
48836                try {
48837                  return e6.apply(r5, arguments);
48838                } catch (e7) {
48839                  setTimeout(function() {
48840                    throw new Error(e7.message);
48841                  });
48842                }
48843              };
48844            }
48845            function p2(e6) {
48846              return function() {
48847                var t6 = e6.apply(this, arguments);
48848                Object(o2.a)(t6) && (t6 === a2.a.drop ? c2() : f2(t6));
48849              };
48850            }
48851            function b2(t6, r6, n4) {
48852              var i3;
48853              i3 = "node" === t6 ? p2(n4) : n4, l2(function(t7, r7) {
48854                return e5(t7 + ":" + r7);
48855              }(t6, r6), i3, n4);
48856            }
48857            function y2(e6, t6, n4) {
48858              return Object(o2.d)(t6) ? b2(e6, t6, n4) : function(e7, t7) {
48859                for (var r6 in t7)
48860                  b2(e7, r6, t7[r6]);
48861              }(e6, t6), r5;
48862            }
48863            return e5(n3.i).on(function(e6) {
48864              r5.root = Object(i2.f)(e6);
48865            }), e5(n3.c).on(function(e6, t6) {
48866              r5.header = function(e7) {
48867                return e7 ? t6[e7] : t6;
48868              };
48869            }), r5 = { on: d2, addListener: d2, removeListener: function(t6, n4, i3) {
48870              if ("done" === t6)
48871                u2.un(n4);
48872              else if ("node" === t6 || "path" === t6)
48873                e5.un(t6 + ":" + n4, i3);
48874              else {
48875                var o3 = n4;
48876                e5(t6).un(o3);
48877              }
48878              return r5;
48879            }, emit: e5.emit, node: Object(i2.j)(y2, "node"), path: Object(i2.j)(y2, "path"), done: Object(i2.j)(l2, u2), start: Object(i2.j)(function(t6, n4) {
48880              return e5(t6).on(h2(n4), n4), r5;
48881            }, n3.c), fail: e5(n3.b).on, abort: e5(n3.a).emit, header: i2.i, root: i2.i, source: t5 };
48882          }
48883        }, function(e4, t4, r4) {
48884          r4.d(t4, "a", function() {
48885            return i2;
48886          });
48887          var n3 = r4(3);
48888          function i2(e5) {
48889            var t5, r5, i3, o2, a2 = e5(n3.j).emit, s2 = e5(n3.l).emit, u2 = e5(n3.k).emit, c2 = e5(n3.b).emit, f2 = 65536, d2 = /[\\"\n]/g, l2 = 0, h2 = l2++, p2 = l2++, b2 = l2++, y2 = l2++, m2 = l2++, v2 = l2++, g2 = l2++, w2 = l2++, A2 = l2++, k2 = l2++, _ = l2++, S2 = l2++, x2 = l2++, E2 = l2++, P2 = l2++, O2 = l2++, B2 = l2++, T2 = l2++, C2 = l2++, I2 = l2++, M2 = f2, U2 = "", R2 = false, j = false, N2 = h2, F2 = [], L2 = null, D2 = 0, H2 = 0, q2 = 0, z2 = 0, G2 = 1;
48890            function K2(e6) {
48891              void 0 !== o2 && (s2(o2), u2(), o2 = void 0), t5 = Error(e6 + "\nLn: " + G2 + "\nCol: " + z2 + "\nChr: " + r5), c2(Object(n3.o)(void 0, void 0, t5));
48892            }
48893            function V2(e6) {
48894              return "\r" === e6 || "\n" === e6 || " " === e6 || "	" === e6;
48895            }
48896            e5(n3.m).on(function(e6) {
48897              if (!t5) {
48898                if (j)
48899                  return K2("Cannot write after close");
48900                var n4, c3 = 0;
48901                for (r5 = e6[0]; r5 && (c3 > 0 && (i3 = r5), r5 = e6[c3++]); )
48902                  switch (q2++, "\n" === r5 ? (G2++, z2 = 0) : z2++, N2) {
48903                    case h2:
48904                      if ("{" === r5)
48905                        N2 = b2;
48906                      else if ("[" === r5)
48907                        N2 = m2;
48908                      else if (!V2(r5))
48909                        return K2("Non-whitespace before {[.");
48910                      continue;
48911                    case w2:
48912                    case b2:
48913                      if (V2(r5))
48914                        continue;
48915                      if (N2 === w2)
48916                        F2.push(A2);
48917                      else {
48918                        if ("}" === r5) {
48919                          s2({}), u2(), N2 = F2.pop() || p2;
48920                          continue;
48921                        }
48922                        F2.push(y2);
48923                      }
48924                      if ('"' !== r5)
48925                        return K2('Malformed object key should start with " ');
48926                      N2 = g2;
48927                      continue;
48928                    case A2:
48929                    case y2:
48930                      if (V2(r5))
48931                        continue;
48932                      if (":" === r5)
48933                        N2 === y2 ? (F2.push(y2), void 0 !== o2 && (s2({}), a2(o2), o2 = void 0), H2++) : void 0 !== o2 && (a2(o2), o2 = void 0), N2 = p2;
48934                      else if ("}" === r5)
48935                        void 0 !== o2 && (s2(o2), u2(), o2 = void 0), u2(), H2--, N2 = F2.pop() || p2;
48936                      else {
48937                        if ("," !== r5)
48938                          return K2("Bad object");
48939                        N2 === y2 && F2.push(y2), void 0 !== o2 && (s2(o2), u2(), o2 = void 0), N2 = w2;
48940                      }
48941                      continue;
48942                    case m2:
48943                    case p2:
48944                      if (V2(r5))
48945                        continue;
48946                      if (N2 === m2) {
48947                        if (s2([]), H2++, N2 = p2, "]" === r5) {
48948                          u2(), H2--, N2 = F2.pop() || p2;
48949                          continue;
48950                        }
48951                        F2.push(v2);
48952                      }
48953                      if ('"' === r5)
48954                        N2 = g2;
48955                      else if ("{" === r5)
48956                        N2 = b2;
48957                      else if ("[" === r5)
48958                        N2 = m2;
48959                      else if ("t" === r5)
48960                        N2 = k2;
48961                      else if ("f" === r5)
48962                        N2 = x2;
48963                      else if ("n" === r5)
48964                        N2 = B2;
48965                      else if ("-" === r5)
48966                        U2 += r5;
48967                      else if ("0" === r5)
48968                        U2 += r5, N2 = 20;
48969                      else {
48970                        if (-1 === "123456789".indexOf(r5))
48971                          return K2("Bad value");
48972                        U2 += r5, N2 = 20;
48973                      }
48974                      continue;
48975                    case v2:
48976                      if ("," === r5)
48977                        F2.push(v2), void 0 !== o2 && (s2(o2), u2(), o2 = void 0), N2 = p2;
48978                      else {
48979                        if ("]" !== r5) {
48980                          if (V2(r5))
48981                            continue;
48982                          return K2("Bad array");
48983                        }
48984                        void 0 !== o2 && (s2(o2), u2(), o2 = void 0), u2(), H2--, N2 = F2.pop() || p2;
48985                      }
48986                      continue;
48987                    case g2:
48988                      void 0 === o2 && (o2 = "");
48989                      var l3 = c3 - 1;
48990                      e:
48991                        for (; ; ) {
48992                          for (; D2 > 0; )
48993                            if (L2 += r5, r5 = e6.charAt(c3++), 4 === D2 ? (
48993o2 += String.fromCharCode(parseInt(L2, 16)), D2 = 0, l3 = c3 - 1) : D2++, !r5)
48994                              break e;
48995                          if ('"' === r5 && !R2) {
48996                            N2 = F2.pop() || p2, o2 += e6.substring(l3, c3 - 1);
48997                            break;
48998                          }
48999                          if (!("\\" !== r5 || R2 || (R2 = true, o2 += e6.substring(l3, c3 - 1), r5 = e6.charAt(c3++))))
49000                            break;
49001                          if (R2) {
49002                            if (R2 = false, "n" === r5 ? o2 += "\n" : "r" === r5 ? o2 += "\r" : "t" === r5 ? o2 += "	" : "f" === r5 ? o2 += "\f" : "b" === r5 ? o2 += "\b" : "u" === r5 ? (D2 = 1, L2 = "") : o2 += r5, r5 = e6.charAt(c3++), l3 = c3 - 1, r5)
49003                              continue;
49004                            break;
49005                          }
49006                          d2.lastIndex = c3;
49007                          var J2 = d2.exec(e6);
49008                          if (!J2) {
49009                            c3 = e6.length + 1, o2 += e6.substring(l3, c3 - 1);
49010                            break;
49011                          }
49012                          if (c3 = J2.index + 1, !(r5 = e6.charAt(J2.index))) {
49013                            o2 += e6.substring(l3, c3 - 1);
49014                            break;
49015                          }
49016                        }
49017                      continue;
49018                    case k2:
49019                      if (!r5)
49020                        continue;
49021                      if ("r" !== r5)
49022                        return K2("Invalid true started with t" + r5);
49023                      N2 = _;
49024                      continue;
49025                    case _:
49026                      if (!r5)
49027                        continue;
49028                      if ("u" !== r5)
49029                        return K2("Invalid true started with tr" + r5);
49030                      N2 = S2;
49031                      continue;
49032                    case S2:
49033                      if (!r5)
49034                        continue;
49035                      if ("e" !== r5)
49036                        return K2("Invalid true started with tru" + r5);
49037                      s2(true), u2(), N2 = F2.pop() || p2;
49038                      continue;
49039                    case x2:
49040                      if (!r5)
49041                        continue;
49042                      if ("a" !== r5)
49043                        return K2("Invalid false started with f" + r5);
49044                      N2 = E2;
49045                      continue;
49046                    case E2:
49047                      if (!r5)
49048                        continue;
49049                      if ("l" !== r5)
49050                        return K2("Invalid false started with fa" + r5);
49051                      N2 = P2;
49052                      continue;
49053                    case P2:
49054                      if (!r5)
49055                        continue;
49056                      if ("s" !== r5)
49057                        return K2("Invalid false started with fal" + r5);
49058                      N2 = O2;
49059                      continue;
49060                    case O2:
49061                      if (!r5)
49062                        continue;
49063                      if ("e" !== r5)
49064                        return K2("Invalid false started with fals" + r5);
49065                      s2(false), u2(), N2 = F2.pop() || p2;
49066                      continue;
49067                    case B2:
49068                      if (!r5)
49069                        continue;
49070                      if ("u" !== r5)
49071                        return K2("Invalid null started with n" + r5);
49072                      N2 = T2;
49073                      continue;
49074                    case T2:
49075                      if (!r5)
49076                        continue;
49077                      if ("l" !== r5)
49078                        return K2("Invalid null started with nu" + r5);
49079                      N2 = C2;
49080                      continue;
49081                    case C2:
49082                      if (!r5)
49083                        continue;
49084                      if ("l" !== r5)
49085                        return K2("Invalid null started with nul" + r5);
49086                      s2(null), u2(), N2 = F2.pop() || p2;
49087                      continue;
49088                    case I2:
49089                      if ("." !== r5)
49090                        return K2("Leading zero not followed by .");
49091                      U2 += r5, N2 = 20;
49092                      continue;
49093                    case 20:
49094                      if (-1 !== "0123456789".indexOf(r5))
49095                        U2 += r5;
49096                      else if ("." === r5) {
49097                        if (-1 !== U2.indexOf("."))
49098                          return K2("Invalid number has two dots");
49099                        U2 += r5;
49100                      } else if ("e" === r5 || "E" === r5) {
49101                        if (-1 !== U2.indexOf("e") || -1 !== U2.indexOf("E"))
49102                          return K2("Invalid number has two exponential");
49103                        U2 += r5;
49104                      } else if ("+" === r5 || "-" === r5) {
49105                        if ("e" !== i3 && "E" !== i3)
49106                          return K2("Invalid symbol in number");
49107                        U2 += r5;
49108                      } else
49109                        U2 && (s2(parseFloat(U2)), u2(), U2 = ""), c3--, N2 = F2.pop() || p2;
49110                      continue;
49111                    default:
49112                      return K2("Unknown state: " + N2);
49113                  }
49114                q2 >= M2 && (n4 = 0, void 0 !== o2 && o2.length > f2 && (K2("Max buffer length exceeded: textNode"), n4 = Math.max(n4, o2.length)), U2.length > f2 && (K2("Max buffer length exceeded: numberNode"), n4 = Math.max(n4, U2.length)), M2 = f2 - n4 
49114+ q2);
49115              }
49116            }), e5(n3.n).on(function() {
49117              if (N2 === h2)
49118                return s2({}), u2(), void (j = true);
49119              N2 === p2 && 0 === H2 || K2("Unexpected end"), void 0 !== o2 && (s2(o2), u2(), o2 = void 0), j = true;
49120            });
49121          }
49122        }, function(e4, t4, r4) {
49123          r4.d(t4, "a", function() {
49124            return u2;
49125          }), r4.d(t4, "b", function() {
49126            return c2;
49127          });
49128          var n3 = r4(19), i2 = r4(3), o2 = r4(2), a2 = r4(20), s2 = r4(0);
49129          function u2() {
49130            return new XMLHttpRequest();
49131          }
49132          function c2(e5, t5, r5, u3, c3, f2, d2) {
49133            var l2 = e5(i2.m).emit, h2 = e5(i2.b).emit, p2 = 0, b2 = true;
49134            function y2() {
49135              if ("2" === String(t5.status)[0]) {
49136                var e6 = t5.responseText, r6 = (" " + e6.substr(p2)).substr(1);
49137                r6 && l2(r6), p2 = Object(o2.e)(e6);
49138              }
49139            }
49140            function m2(t6) {
49141              try {
49142                b2 && e5(i2.c).emit(t6.status, Object(a2.a)(t6.getAllResponseHeaders())), b2 = false;
49143              } catch (e6) {
49144              }
49145            }
49146            e5(i2.a).on(function() {
49147              t5.onreadystatechange = null, t5.abort();
49148            }), "onprogress" in t5 && (t5.onprogress = y2), t5.onreadystatechange = function() {
49149              switch (t5.readyState) {
49150                case 2:
49151                case 3:
49152                  return m2(t5);
49153                case 4:
49154                  m2(t5), "2" === String(t5.status)[0] ? (y2(), e5(i2.n).emit()) : h2(Object(i2.o)(t5.status, t5.responseText));
49155              }
49156            };
49157            try {
49158              for (var v2 in t5.open(r5, u3, true), f2)
49159                t5.setRequestHeader(v2, f2[v2]);
49160              Object(n3.a)(window.location, Object(n3.b)(u3)) || t5.setRequestHeader("X-Requested-With", "XMLHttpRequest"), t5.withCredentials = d2, t5.send(c3);
49161            } catch (e6) {
49162              window.setTimeout(Object(s2.j)(h2, Object(i2.o)(void 0, void 0, e6)), 0);
49163            }
49164          }
49165        }, function(e4, t4, r4) {
49166          function n3(e5, t5) {
49167            function r5(t6) {
49168              return String(t6.port || { "http:": 80, "https:": 443 }[t6.protocol || e5.protocol]);
49169            }
49170            return !!(t5.protocol && t5.protocol !== e5.protocol || t5.host && t5.host !== e5.host || t5.host && r5(t5) !== r5(e5));
49171          }
49172          function i2(e5) {
49173            var t5 = /(\w+:)?(?:\/\/)([\w.-]+)?(?::(\d+))?\/?/.exec(e5) || [];
49174            return { protocol: t5[1] || "", host: t5[2] || "", port: t5[3] || "" };
49175          }
49176          r4.d(t4, "a", function() {
49177            return n3;
49178          }), r4.d(t4, "b", function() {
49179            return i2;
49180          });
49181        }, function(e4, t4, r4) {
49182          function n3(e5) {
49183            var t5 = {};
49184            return e5 && e5.split("\r\n").forEach(function(e6) {
49185              var r5 = e6.indexOf(": ");
49186              t5[e6.substring(0, r5)] = e6.substring(r5 + 2);
49187            }), t5;
49188          }
49189          r4.d(t4, "a", function() {
49190            return n3;
49191          });
49192        }]).default;
49193      }, "object" === (0, s.default)(t3) && "object" === (0, s.default)(e3) ? e3.exports = a() : (i = [], void 0 === (o = "function" == typeof (n2 = a) ? n2.apply(t3, i) : n2) || (e3.exports = o));
49194    }, 1823: (e3, t3, r3) => {
49195      var n2 = r3(8357);
49196      t3.certificate = r3(1320);
49197      var i = n2.define("RSAPrivateKey", function() {
49198        this.seq().obj(this.key("version").int(), this.key("modulus").int(), this.key("publicExponent").int(), this.key("privateExponent").int(), this.key("prime1").int(), this.key("prime2").int(), this.key("exponent1").int(), this.key("exponent2").int(), this.key("coefficient").int());
49199      });
49200      t3.RSAPrivateKey = i;
49201      var o = n2.define("RSAPublicKey", function() {
49202        this.seq().obj(this.key("modulus").int(), this.key("publicExponent").int());
49203      });
49204      t3.RSAPublicKey = o;
49205      var a = n2.define("SubjectPublicKeyInfo", function() {
49206        this.seq().obj(this.key("algorithm").use(s), this.key("subjectPublicKey").bitstr());
49207      });
49208      t3.PublicKey = a;
49209      var s = n2.define("AlgorithmIdentifier", function() {
49210        this.seq().obj(this.key("algorithm").objid(), this.key("none").null_().optional(), this.key("curve").objid().optional(), this.key("params").seq().obj(this.key("p").int(), this.key("q").int(), this.key("g").int()).optional());
49211      }), u2 = n2.define("PrivateKeyInfo", function() {
49212        this.seq().obj(this.key("version").int(), this.key("algorithm").use(s), this.key("subjectPrivateKey").octstr());
49213      });
49214      t3.PrivateKey = u2;
49215      var c2 = n2.define("EncryptedPrivateKeyInfo", function() {
49216        this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(), this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(), this.key("kdeparams").seq().obj(this.key("salt").octstr(), this.key("iters").int())), this.key("cipher").seq().obj(this.key("algo").objid(), this.key("iv").octstr()))), this.key("subjectPrivateKey").octstr());
49217      });
49218      t3.EncryptedPrivateKey = c2;
49219      var f2 = n2.define("DSAPrivateKey", function() {
49220        this.seq().obj(this.key("version").int(), this.key("p").int(), this.key("q").int(), this.key("g").int(), this.key("pub_key").int(), this.key("priv_key").int());
49221      });
49222      t3.DSAPrivateKey = f2, t3.DSAparam = n2.define("DSAparam", function() {
49223        this.int();
49224      });
49225      var d2 = n2.define("ECPrivateKey", function() {
49226        this.seq().obj(this.key("version").int(), this.key("privateKey").octstr(), this.key("parameters").optional().explicit(0).use(l2), this.key("publicKey").optional().explicit(1).bitstr());
49227      });
49228      t3.ECPrivateKey = d2;
49229      var l2 = n2.define("ECParameters", function() {
49230        this.choice({ namedCurve: this.objid() });
49231      });
49232      t3.signature = n2.define("signature", function() {
49233        this.seq().obj(this.key("r").int(), this.key("s").int());
49234      });
49235    }, 1320: (e3, t3, r3) => {
49236      var n2 = r3(8357), i = n2.define("Time", function() {
49237        this.choice({ utcTime: this.utctime(), generalTime: this.gentime() });
49238      }), o = n2.define("AttributeTypeValue", function() {
49239        this.seq().obj(this.key("type").objid(), this.key("value").any());
49240      }), a = n2.define("AlgorithmIdentifier", function() {
49241        this.seq().obj(this.key("algorithm").objid(), this.key("parameters").optional(), this.key("curve").objid().optional());
49242      }), s = n2.define("SubjectPublicKeyInfo", function() {
49243        this.seq().obj(this.key("algorithm").use(a), this.key("subjectPublicKey").bitstr());
49244      }), u2 = n2.define("RelativeDistinguishedName", function() {
49245        this.setof(o);
49246      }), c2 = n2.define("RDNSequence", function() {
49247        this.seqof(u2);
49248      }), f2 = n2.define("Name", function() {
49249        this.choice({ rdnSequence: this.use(c2) });
49250      }), d2 = n2.define("Validity", function() {
49251        this.seq().obj(this.key("notBefore").use(i), this.key("notAfter").use(i));
49252      }), l2 = n2.define("Extension", function() {
49253        this.seq().obj(this.key("extnID").objid(), this.key("critical").bool().def(false), this.key("extnValue").octstr());
49254      }), h2 = n2.define("TBSCertificate", function() {
49255        this.seq().obj(this.key("version").explicit(0).int().optional(), this.key("serialNumber").int(), this.key("signature").use(a), this.key("issuer").use(f2), this.key("validity").use(d2), this.key("subject").use(f2), this.key("subjectPublicKeyInfo").use(s), this.key("issuerUniqueID").implicit(1).bitstr().optional(), this.key("subjectUniqueID").implicit(2).bitstr().optional(), this.key("extensions").explicit(3).seqof(l2).optional());
49256      }
49256), p2 = n2.define("X509Certificate", function() {
49257        this.seq().obj(this.key("tbsCertificate").use(h2), this.key("signatureAlgorithm").use(a), this.key("signatureValue").bitstr());
49258      });
49259      e3.exports = p2;
49260    }, 4988: (e3, t3, r3) => {
49261      var n2 = /Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m, i = /^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m, o = /^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m, a = r3(7085), s = r3(8073), u2 = r3(8850).Buffer;
49262      e3.exports = function(e4, t4) {
49263        var r4, c2 = e4.toString(), f2 = c2.match(n2);
49264        if (f2) {
49265          var d2 = "aes" + f2[1], l2 = u2.from(f2[2], "hex"), h2 = u2.from(f2[3].replace(/[\r\n]/g, ""), "base64"), p2 = a(t4, l2.slice(0, 8), parseInt(f2[1], 10)).key, b2 = [], y2 = s.createDecipheriv(d2, p2, l2);
49266          b2.push(y2.update(h2)), b2.push(y2.final()), r4 = u2.concat(b2);
49267        } else {
49268          var m2 = c2.match(o);
49269          r4 = u2.from(m2[2].replace(/[\r\n]/g, ""), "base64");
49270        }
49271        return { tag: c2.match(i)[1], data: r4 };
49272      };
49273    }, 7552: (e3, t3, r3) => {
49274      var n2 = r3(8847)(r3(3355)), i = r3(1823), o = r3(2562), a = r3(4988), s = r3(8073), u2 = r3(4192), c2 = r3(8850).Buffer;
49275      function f2(e4) {
49276        var t4;
49277        "object" !== (0, n2.default)(e4) || c2.isBuffer(e4) || (t4 = e4.passphrase, e4 = e4.key), "string" == typeof e4 && (e4 = c2.from(e4));
49278        var r4, f3, d2 = a(e4, t4), l2 = d2.tag, h2 = d2.data;
49279        switch (l2) {
49280          case "CERTIFICATE":
49281            f3 = i.certificate.decode(h2, "der").tbsCertificate.subjectPublicKeyInfo;
49282          case "PUBLIC KEY":
49283            switch (f3 || (f3 = i.PublicKey.decode(h2, "der")), r4 = f3.algorithm.algorithm.join(".")) {
49284              case "1.2.840.113549.1.1.1":
49285                return i.RSAPublicKey.decode(f3.subjectPublicKey.data, "der");
49286              case "1.2.840.10045.2.1":
49287                return f3.subjectPrivateKey = f3.subjectPublicKey, { type: "ec", data: f3 };
49288              case "1.2.840.10040.4.1":
49289                return f3.algorithm.params.pub_key = i.DSAparam.decode(f3.subjectPublicKey.data, "der"), { type: "dsa", data: f3.algorithm.params };
49290              default:
49291                throw new Error("unknown key id " + r4);
49292            }
49293          case "ENCRYPTED PRIVATE KEY":
49294            h2 = function(e5, t5) {
49295              var r5 = e5.algorithm.decrypt.kde.kdeparams.salt, n3 = parseInt(e5.algorithm.decrypt.kde.kdeparams.iters.toString(), 10), i2 = o[e5.algorithm.decrypt.cipher.algo.join(".")], a2 = e5.algorithm.decrypt.cipher.iv, f4 = e5.subjectPrivateKey, d3 = parseInt(i2.split("-")[1], 10) / 8, l3 = u2.pbkdf2Sync(t5, r5, n3, d3, "sha1"), h3 = s.createDecipheriv(i2, l3, a2), p2 = [];
49296              return p2.push(h3.update(f4)), p2.push(h3.final()), c2.concat(p2);
49297            }(h2 = i.EncryptedPrivateKey.decode(h2, "der"), t4);
49298          case "PRIVATE KEY":
49299            switch (r4 = (f3 = i.PrivateKey.decode(h2, "der")).algorithm.algorithm.join(".")) {
49300              case "1.2.840.113549.1.1.1":
49301                return i.RSAPrivateKey.decode(f3.subjectPrivateKey, "der");
49302              case "1.2.840.10045.2.1":
49303                return { curve: f3.algorithm.curve, privateKey: i.ECPrivateKey.decode(f3.subjectPrivateKey, "der").privateKey };
49304              case "1.2.840.10040.4.1":
49305                return f3.algorithm.params.priv_key = i.DSAparam.decode(f3.subjectPrivateKey, "der"), { type: "dsa", params: f3.algorithm.params };
49306              default:
49307                throw new Error("unknown key id " + r4);
49308            }
49309          case "RSA PUBLIC KEY":
49310            return i.RSAPublicKey.decode(h2, "der");
49311          case "RSA PRIVATE KEY":
49312            return i.RSAPrivateKey.decode(h2, "der");
49313          case "DSA PRIVATE KEY":
49314            return { type: "dsa", params: i.DSAPrivateKey.decode(h2, "der") };
49315          case "EC PRIVATE KEY":
49316            return { curve: (h2 = i.ECPrivateKey.decode(h2, "der")).parameters.value, privateKey: h2.privateKey };
49317          default:
49318            throw new Error("unknown key type " + l2);
49319        }
49320      }
49321      e3.exports = f2, f2.signature = i.signature;
49322    }, 8209: (e3) => {
49323      var t3 = function(e4) {
49324        return e4.replace(/^\s+|\s+$/g, "");
49325      };
49326      e3.exports = function(e4) {
49327        if (!e4)
49328          return {};
49329        for (var r3, n2 = {}, i = t3(e4).split("\n"), o = 0; o < i.length; o++) {
49330          var a = i[o], s = a.indexOf(":"), u2 = t3(a.slice(0, s)).toLowerCase(), c2 = t3(a.slice(s + 1));
49331          void 0 === n2[u2] ? n2[u2] = c2 : (r3 = n2[u2], "[object Array]" === Object.prototype.toString.call(r3) ? n2[u2].push(c2) : n2[u2] = [n2[u2], c2]);
49332        }
49333        return n2;
49334      };
49335    }, 4192: (e3, t3, r3) => {
49336      t3.pbkdf2 = r3(1882), t3.pbkdf2Sync = r3(1658);
49337    }, 1882: (e3, t3, r3) => {
49338      var n2, i, o = r3(8850).Buffer, a = r3(3127), s = r3(7401), u2 = r3(1658), c2 = r3(8398), f2 = r3.g.crypto && r3.g.crypto.subtle, d2 = { sha: "SHA-1", "sha-1": "SHA-1", sha1: "SHA-1", sha256: "SHA-256", "sha-256": "SHA-256", sha384: "SHA-384", "sha-384": "SHA-384", "sha-512": "SHA-512", sha512: "SHA-512" }, l2 = [];
49339      function h2() {
49340        return i || (i = r3.g.process && r3.g.process.nextTick ? r3.g.process.nextTick : r3.g.queueMicrotask ? r3.g.queueMicrotask : r3.g.setImmediate ? r3.g.setImmediate : r3.g.setTimeout);
49341      }
49342      function p2(e4, t4, r4, n3, i2) {
49343        return f2.importKey("raw", e4, { name: "PBKDF2" }, false, ["deriveBits"]).then(function(e5) {
49344          return f2.deriveBits({ name: "PBKDF2", salt: t4, iterations: r4, hash: { name: i2 } }, e5, n3 << 3);
49345        }).then(function(e5) {
49346          return o.from(e5);
49347        });
49348      }
49349      e3.exports = function(e4, t4, i2, b2, y2, m2) {
49350        "function" == typeof y2 && (m2 = y2, y2 = void 0);
49351        var v2 = d2[(y2 = y2 || "sha1").toLowerCase()];
49352        if (v2 && "function" == typeof r3.g.Promise) {
49353          if (a(i2, b2), e4 = c2(e4, s, "Password"), t4 = c2(t4, s, "Salt"), "function" != typeof m2)
49354            throw new Error("No callback provided to pbkdf2");
49355          !function(e5, t5) {
49356            e5.then(function(e6) {
49357              h2()(function() {
49358                t5(null, e6);
49359              });
49360            }, function(e6) {
49361              h2()(function() {
49362                t5(e6);
49363              });
49364            });
49365          }(function(e5) {
49366            if (r3.g.process && !r3.g.process.browser)
49367              return Promise.resolve(false);
49368            if (!f2 || !f2.importKey || !f2.deriveBits)
49369              return Promise.resolve(false);
49370            if (void 0 !== l2[e5])
49371              return l2[e5];
49372            var t5 = p2(n2 = n2 || o.alloc(8), n2, 10, 128, e5).then(function() {
49373              return true;
49374            }).catch(function() {
49375              return false;
49376            });
49377            return l2[e5] = t5, t5;
49378          }(v2).then(function(r4) {
49379            return r4 ? p2(e4, t4, i2, b2, v2) : u2(e4, t4, i2, b2, y2);
49380          }), m2);
49381        } else
49382          h2()(function() {
49383            var r4;
49384            try {
49385              r4 = u2(e4, t4, i2, b2, y2);
49386            } catch (e5) {
49387              return m2(e5);
49388            }
49389            m2(null, r4);
49390          });
49391      };
49392    }, 7401: (e3, t3, r3) => {
49393      var n2, i = r3(9142);
49394      n2 = r3.g.process && r3.g.process.browser ? "utf-8" : r3.g.process && r3.g.process.version ? parseInt(i.version.split(".")[0].slice(1), 10) >= 6 ? "utf-8" : "binary" : "utf-8", e3.exports = n2;
49395    }, 3127: (e3) => {
49396      var t3 = Math.pow(2, 30) - 1;
49397      e3.exports = function(e4, r3) {
49398        if ("number" != typeof e4)
49399          throw new TypeError("Iterations not a number");
49400        if (e4 < 0)
49401          throw new TypeError("Bad iterations");
49402        if ("number" != typeof r3)
49403          throw new TypeError("Key length not a number");
49404        if (r3 < 0 || r3 > t3 || r3 != r3)
49405          throw new TypeError("Bad key length");
49406      };
49407    }, 1658: (e3, t3, r3) => {
49408      var n2 = r3(5349), i = r3(6707), o = r3(1708), a = r3(8850).Buffer, s = r3(3127), u2 = r3(7401), c2 = r3(8398), f2 = a.alloc(128), d2 = { md5: 16, sha1: 20, sha224: 28, sha256: 32, sha384: 48, sha512: 64, rmd160: 20, ripemd160: 20 };
49409      function l2(e4, t4, r4) {
49410        var s2 = function(e5) {
49411          return "rmd160" === e5 || "ripemd160" === e5 ? function(e6) {
49412            return new i().update(e6).digest();
49413          } : "md5" === e5 ? n2 : function(t5) {
49414            return o(e5).update(t5).digest();
49415          };
49416        }(e4), u3 = "sha512" === e4 || "sha384" === e4 ? 128 : 64;
49417        t4.length > u3 ? t4 = s2(t4) : t4.length < u3 && (t4 = a.concat([t4, f2], u3));
49418        for (var c3 = a.allocUnsafe(u3 + d2[e4]), l3 = a.allocUnsafe(u3 + d2[e4]), h2 = 0; h2 < u3; h2++)
49419          c3[h2] = 54 ^ t4[h2], l3[h2] = 92 ^ t4[h2];
49420        var p2 = a.allocUnsafe(u3 + r4 + 4);
49421        c3.copy(p2, 0, 0, u3), this.ipad1 = p2, this.ipad2 = c3, this.opad = l3, this.alg = e4, this.blocksize = u3, this.hash = s2, this.size = d2[e4];
49422      }
49423      l2.prototype.run = function(e4, t4) {
49424        return e4.copy(t4, this.blocksize), this.hash(t4).copy(this.opad, this.blocksize), this.hash(this.opad);
49425      }, e3.exports = function(e4, t4, r4, n3, i2) {
49426        s(r4, n3);
49427        var o2 = new l2(i2 = i2 || "sha1", e4 = c2(e4, u2, "Password"), (t4 = c2(t4, u2, "Salt")).length), f3 = a.allocUnsafe(n3), h2 = a.allocUnsafe(t4.length + 4);
49428        t4.copy(h2, 0, 0, t4.length);
49429        for (var p2 = 0, b2 = d2[i2], y2 = Math.ceil(n3 / b2), m2 = 1; m2 <= y2; m2++) {
49430          h2.writeUInt32BE(m2, t4.length);
49431          for (var v2 = o2.run(h2, o2.ipad1), g2 = v2, w2 = 1; w2 < r4; w2++) {
49432            g2 = o2.run(g2, o2.ipad2);
49433            for (var A2 = 0; A2 < b2; A2++)
49434              v2[A2] ^= g2[A2];
49435          }
49436          v2.copy(f3, p2), p2 += b2;
49437        }
49438        return f3;
49439      };
49440    }, 8398: (e3, t3, r3) => {
49441      var n2 = r3(8850).Buffer;
49442      e3.exports = function(e4, t4, r4) {
49443        if (n2.isBuffer(e4))
49444          return e4;
49445        if ("string" == typeof e4)
49446          return n2.from(e4, t4);
49447        if (ArrayBuffer.isView(e4))
49448          return n2.from(e4.buffer);
49449        throw new TypeError(r4 + " must be a string, a Buffer, a typed array or a DataView");
49450      };
49451    }, 9142: (e3) => {
49452      var t3, r3, n2 = e3.exports = {};
49453      function i() {
49454        throw new Error("setTimeout has not been defined");
49455      }
49456      function o() {
49457        throw new Error("clearTimeout has not been defined");
49458      }
49459      function a(e4) {
49460        if (t3 === setTimeout)
49461          return setTimeout(e4, 0);
49462        if ((t3 === i || !t3) && setTimeout)
49463          return t3 = setTimeout, setTimeout(e4, 0);
49464        try {
49465          return t3(e4, 0);
49466        } catch (r4) {
49467          try {
49468            return t3.call(null, e4, 0);
49469          } catch (r5) {
49470            return t3.call(this, e4, 0);
49471          }
49472        }
49473      }
49474      !function() {
49475        try {
49476          t3 = "function" == typeof setTimeout ? setTimeout : i;
49477        } catch (e4) {
49478          t3 = i;
49479        }
49480        try {
49481          r3 = "function" == typeof clearTimeout ? clearTimeout : o;
49482        } catch (e4) {
49483          r3 = o;
49484        }
49485      }();
49486      var s, u2 = [], c2 = false, f2 = -1;
49487      function d2() {
49488        c2 && s && (c2 = false, s.length ? u2 = s.concat(u2) : f2 = -1, u2.length && l2());
49489      }
49490      function l2() {
49491        if (!c2) {
49492          var e4 = a(d2);
49493          c2 = true;
49494          for (var t4 = u2.length; t4; ) {
49495            for (s = u2, u2 = []; ++f2 < t4; )
49496              s && s[f2].run();
49497            f2 = -1, t4 = u2.length;
49498          }
49499          s = null, c2 = false, function(e5) {
49500            if (r3 === clearTimeout)
49501              return clearTimeout(e5);
49502            if ((r3 === o || !r3) && clearTimeout)
49503              return r3 = clearTimeout, clearTimeout(e5);
49504            try {
49505              r3(e5);
49506            } catch (t5) {
49507              try {
49508                return r3.call(null, e5);
49509              } catch (t6) {
49510                return r3.call(this, e5);
49511              }
49512            }
49513          }(e4);
49514        }
49515      }
49516      function h2(e4, t4) {
49517        this.fun = e4, this.array = t4;
49518      }
49519      function p2() {
49520      }
49521      n2.nextTick = function(e4) {
49522        var t4 = new Array(arguments.length - 1);
49523        if (arguments.length > 1)
49524          for (var r4 = 1; r4 < arguments.length; r4++)
49525            t4[r4 - 1] = arguments[r4];
49526        u2.push(new h2(e4, t4)), 1 !== u2.length || c2 || a(l2);
49527      }, h2.prototype.run = function() {
49528        this.fun.apply(null, this.array);
49529      }, n2.title = "browser", n2.browser = true, n2.env = {}, n2.argv = [], n2.version = "", n2.versions = {}, n2.on = p2, n2.addListener = p2, n2.once = p2, n2.off = p2, n2.removeListener = p2, n2.removeAllListeners = p2, n2.emit = p2, n2.prepe
49529ndListener = p2, n2.prependOnceListener = p2, n2.listeners = function(e4) {
49530        return [];
49531      }, n2.binding = function(e4) {
49532        throw new Error("process.binding is not supported");
49533      }, n2.cwd = function() {
49534        return "/";
49535      }, n2.chdir = function(e4) {
49536        throw new Error("process.chdir is not supported");
49537      }, n2.umask = function() {
49538        return 0;
49539      };
49540    }, 6991: (e3, t3, r3) => {
49541      t3.publicEncrypt = r3(2466), t3.privateDecrypt = r3(3144), t3.privateEncrypt = function(e4, r4) {
49542        return t3.publicEncrypt(e4, r4, true);
49543      }, t3.publicDecrypt = function(e4, r4) {
49544        return t3.privateDecrypt(e4, r4, true);
49545      };
49546    }, 6873: (e3, t3, r3) => {
49547      var n2 = r3(5866), i = r3(8850).Buffer;
49548      function o(e4) {
49549        var t4 = i.allocUnsafe(4);
49550        return t4.writeUInt32BE(e4, 0), t4;
49551      }
49552      e3.exports = function(e4, t4) {
49553        for (var r4, a = i.alloc(0), s = 0; a.length < t4; )
49554          r4 = o(s++), a = i.concat([a, n2("sha1").update(e4).update(r4).digest()]);
49555        return a.slice(0, t4);
49556      };
49557    }, 3144: (e3, t3, r3) => {
49558      var n2 = r3(7552), i = r3(6873), o = r3(817), a = r3(1734), s = r3(9782), u2 = r3(5866), c2 = r3(2561), f2 = r3(8850).Buffer;
49559      e3.exports = function(e4, t4, r4) {
49560        var d2;
49561        d2 = e4.padding ? e4.padding : r4 ? 1 : 4;
49562        var l2, h2 = n2(e4), p2 = h2.modulus.byteLength();
49563        if (t4.length > p2 || new a(t4).cmp(h2.modulus) >= 0)
49564          throw new Error("decryption error");
49565        l2 = r4 ? c2(new a(t4), h2) : s(t4, h2);
49566        var b2 = f2.alloc(p2 - l2.length);
49567        if (l2 = f2.concat([b2, l2], p2), 4 === d2)
49568          return function(e5, t5) {
49569            var r5 = e5.modulus.byteLength(), n3 = u2("sha1").update(f2.alloc(0)).digest(), a2 = n3.length;
49570            if (0 !== t5[0])
49571              throw new Error("decryption error");
49572            var s2 = t5.slice(1, a2 + 1), c3 = t5.slice(a2 + 1), d3 = o(s2, i(c3, a2)), l3 = o(c3, i(d3, r5 - a2 - 1));
49573            if (function(e6, t6) {
49574              e6 = f2.from(e6), t6 = f2.from(t6);
49575              var r6 = 0, n4 = e6.length;
49576              e6.length !== t6.length && (r6++, n4 = Math.min(e6.length, t6.length));
49577              for (var i2 = -1; ++i2 < n4; )
49578                r6 += e6[i2] ^ t6[i2];
49579              return r6;
49580            }(n3, l3.slice(0, a2)))
49581              throw new Error("decryption error");
49582            for (var h3 = a2; 0 === l3[h3]; )
49583              h3++;
49584            if (1 !== l3[h3++])
49585              throw new Error("decryption error");
49586            return l3.slice(h3);
49587          }(h2, l2);
49588        if (1 === d2)
49589          return function(e5, t5, r5) {
49590            for (var n3 = t5.slice(0, 2), i2 = 2, o2 = 0; 0 !== t5[i2++]; )
49591              if (i2 >= t5.length) {
49592                o2++;
49593                break;
49594              }
49595            var a2 = t5.slice(2, i2 - 1);
49596            if (("0002" !== n3.toString("hex") && !r5 || "0001" !== n3.toString("hex") && r5) && o2++, a2.length < 8 && o2++, o2)
49597              throw new Error("decryption error");
49598            return t5.slice(i2);
49599          }(0, l2, r4);
49600        if (3 === d2)
49601          return l2;
49602        throw new Error("unknown padding");
49603      };
49604    }, 2466: (e3, t3, r3) => {
49605      var n2 = r3(7552), i = r3(5010), o = r3(5866), a = r3(6873), s = r3(817), u2 = r3(1734), c2 = r3(2561), f2 = r3(9782), d2 = r3(8850).Buffer;
49606      e3.exports = function(e4, t4, r4) {
49607        var l2;
49608        l2 = e4.padding ? e4.padding : r4 ? 1 : 4;
49609        var h2, p2 = n2(e4);
49610        if (4 === l2)
49611          h2 = function(e5, t5) {
49612            var r5 = e5.modulus.byteLength(), n3 = t5.length, c3 = o("sha1").update(d2.alloc(0)).digest(), f3 = c3.length, l3 = 2 * f3;
49613            if (n3 > r5 - l3 - 2)
49614              throw new Error("message too long");
49615            var h3 = d2.alloc(r5 - n3 - l3 - 2), p3 = r5 - f3 - 1, b2 = i(f3), y2 = s(d2.concat([c3, h3, d2.alloc(1, 1), t5], p3), a(b2, p3)), m2 = s(b2, a(y2, f3));
49616            return new u2(d2.concat([d2.alloc(1), m2, y2], r5));
49617          }(p2, t4);
49618        else if (1 === l2)
49619          h2 = function(e5, t5, r5) {
49620            var n3, o2 = t5.length, a2 = e5.modulus.byteLength();
49621            if (o2 > a2 - 11)
49622              throw new Error("message too long");
49623            return n3 = r5 ? d2.alloc(a2 - o2 - 3, 255) : function(e6) {
49624              for (var t6, r6 = d2.allocUnsafe(e6), n4 = 0, o3 = i(2 * e6), a3 = 0; n4 < e6; )
49625                a3 === o3.length && (o3 = i(2 * e6), a3 = 0), (t6 = o3[a3++]) && (r6[n4++] = t6);
49626              return r6;
49627            }(a2 - o2 - 3), new u2(d2.concat([d2.from([0, r5 ? 1 : 2]), n3, d2.alloc(1), t5], a2));
49628          }(p2, t4, r4);
49629        else {
49630          if (3 !== l2)
49631            throw new Error("unknown padding");
49632          if ((h2 = new u2(t4)).cmp(p2.modulus) >= 0)
49633            throw new Error("data too long for modulus");
49634        }
49635        return r4 ? f2(h2, p2) : c2(h2, p2);
49636      };
49637    }, 2561: (e3, t3, r3) => {
49638      var n2 = r3(1734), i = r3(8850).Buffer;
49639      e3.exports = function(e4, t4) {
49640        return i.from(e4.toRed(n2.mont(t4.modulus)).redPow(new n2(t4.publicExponent)).fromRed().toArray());
49641      };
49642    }, 817: (e3) => {
49643      e3.exports = function(e4, t3) {
49644        for (var r3 = e4.length, n2 = -1; ++n2 < r3; )
49645          e4[n2] ^= t3[n2];
49646        return e4;
49647      };
49648    }, 5010: (e3, t3, r3) => {
49649      var n2 = r3(9142), i = 65536, o = r3(8850).Buffer, a = r3.g.crypto || r3.g.msCrypto;
49650      a && a.getRandomValues ? e3.exports = function(e4, t4) {
49651        if (e4 > 4294967295)
49652          throw new RangeError("requested too many random bytes");
49653        var r4 = o.allocUnsafe(e4);
49654        if (e4 > 0)
49655          if (e4 > i)
49656            for (var s = 0; s < e4; s += i)
49657              a.getRandomValues(r4.slice(s, s + i));
49658          else
49659            a.getRandomValues(r4);
49660        return "function" == typeof t4 ? n2.nextTick(function() {
49661          t4(null, r4);
49662        }) : r4;
49663      } : e3.exports = function() {
49664        throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11");
49665      };
49666    }, 6509: (e3, t3, r3) => {
49667      var n2 = r3(9142);
49668      function i() {
49669        throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11");
49670      }
49671      var o = r3(8850), a = r3(5010), s = o.Buffer, u2 = o.kMaxLength, c2 = r3.g.crypto || r3.g.msCrypto, f2 = Math.pow(2, 32) - 1;
49672      function d2(e4, t4) {
49673        if ("number" != typeof e4 || e4 != e4)
49674          throw new TypeError("offset must be a number");
49675        if (e4 > f2 || e4 < 0)
49676          throw new TypeError("offset must be a uint32");
49677        if (e4 > u2 || e4 > t4)
49678          throw new RangeError("offset out of range");
49679      }
49680      function l2(e4, t4, r4) {
49681        if ("number" != typeof e4 || e4 != e4)
49682          throw new TypeError("size must be a number");
49683        if (e4 > f2 || e4 < 0)
49684          throw new TypeError("size must be a uint32");
49685        if (e4 + t4 > r4 || e4 > u2)
49686          throw new RangeError("buffer too small");
49687      }
49688      function h2(e4, t4, r4, i2) {
49689        if (n2.browser) {
49690          var o2 = e4.buffer, s2 = new Uint8Array(o2, t4, r4);
49691          return c2.getRandomValues(s2), i2 ? void n2.nextTick(function() {
49692            i2(null, e4);
49693          }) : e4;
49694        }
49695        if (!i2)
49696          return a(r4).copy(e4, t4), e4;
49697        a(r4, function(r5, n3) {
49698          if (r5)
49699            return i2(r5);
49700          n3.copy(e4, t4), i2(null, e4);
49701        });
49702      }
49703      c2 && c2.getRandomValues || !n2.browser ? (t3.randomFill = function(e4, t4, n3, i2) {
49704        if (!(s.isBuffer(e4) || e4 instanceof r3.g.Uint8Array))
49705          throw new TypeError('"buf" argument must be a Buffer or Uint8Array');
49706        if ("function" == typeof t4)
49707          i2 = t4, t4 = 0, n3 = e4.length;
49708        else if ("function" == typeof n3)
49709          i2 = n3, n3 = e4.length - t4;
49710        else if ("function" != typeof i2)
49711          throw new TypeError('"cb" argument must be a function');
49712        return d2(t4, e4.length), l2(n3, t4, e4.length), h2(e4, t4, n3, i2);
49713      }, t3.randomFillSync = function(e4, t4, n3) {
49714        if (void 0 === t4 && (t4 = 0), !(s.isBuffer(e4) || e4 instanceof r3.g.Uint8Array))
49715          throw new TypeError('"buf" argument must be a Buffer or Uint8Array');
49716        return d2(t4, e4.length), void 0 === n3 && (n3 = e4.length - t4), l2(n3, t4, e4.length), h2(e4, t4, n3);
49717      }) : (t3.randomFill = i, t3.randomFillSync = i);
49718    }, 9024: (e3, t3, r3) => {
49719      var n2 = r3(8847)(r3(3355)), i = {};
49720      function o(e4, t4, r4) {
49721        r4 || (r4 = Error);
49722        var n3 = function(e5) {
49723          var r5, n4;
49724          function i2(r6, n5, i3) {
49725            return e5.call(this, function(e6, r7, n6) {
49726              return "string" == typeof t4 ? t4 : t4(e6, r7, n6);
49727            }(r6, n5, i3)) || this;
49728          }
49729          return n4 = e5, (r5 = i2).prototype = Object.create(n4.prototype), r5.prototype.constructor = r5, r5.__proto__ = n4, i2;
49730        }(r4);
49731        n3.prototype.name = r4.name, n3.prototype.code = e4, i[e4] = n3;
49732      }
49733      function a(e4, t4) {
49734        if (Array.isArray(e4)) {
49735          var r4 = e4.length;
49736          return e4 = e4.map(function(e5) {
49737            return String(e5);
49738          }), r4 > 2 ? "one of ".concat(t4, " ").concat(e4.slice(0, r4 - 1).join(", "), ", or ") + e4[r4 - 1] : 2 === r4 ? "one of ".concat(t4, " ").concat(e4[0], " or ").concat(e4[1]) : "of ".concat(t4, " ").concat(e4[0]);
49739        }
49740        return "of ".concat(t4, " ").concat(String(e4));
49741      }
49742      o("ERR_INVALID_OPT_VALUE", function(e4, t4) {
49743        return 'The value "' + t4 + '" is invalid for option "' + e4 + '"';
49744      }, TypeError), o("ERR_INVALID_ARG_TYPE", function(e4, t4, r4) {
49745        var i2, o2, s, u2, c2;
49746        if ("string" == typeof t4 && (o2 = "not ", t4.substr(0, o2.length) === o2) ? (i2 = "must not be", t4 = t4.replace(/^not /, "")) : i2 = "must be", function(e5, t5, r5) {
49747          return (void 0 === r5 || r5 > e5.length) && (r5 = e5.length), e5.substring(r5 - t5.length, r5) === t5;
49748        }(e4, " argument"))
49749          s = "The ".concat(e4, " ").concat(i2, " ").concat(a(t4, "type"));
49750        else {
49751          var f2 = ("number" != typeof c2 && (c2 = 0), c2 + ".".length > (u2 = e4).length || -1 === u2.indexOf(".", c2) ? "argument" : "property");
49752          s = 'The "'.concat(e4, '" ').concat(f2, " ").concat(i2, " ").concat(a(t4, "type"));
49753        }
49754        return s + ". Received type ".concat((0, n2.default)(r4));
49755      }, TypeError), o("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF"), o("ERR_METHOD_NOT_IMPLEMENTED", function(e4) {
49756        return "The " + e4 + " method is not implemented";
49757      }), o("ERR_STREAM_PREMATURE_CLOSE", "Premature close"), o("ERR_STREAM_DESTROYED", function(e4) {
49758        return "Cannot call " + e4 + " after a stream was destroyed";
49759      }), o("ERR_MULTIPLE_CALLBACK", "Callback called multiple times"), o("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable"), o("ERR_STREAM_WRITE_AFTER_END", "write after end"), o("ERR_STREAM_NULL_VALUES", "May not write null values to stream", TypeError), o("ERR_UNKNOWN_ENCODING", function(e4) {
49760        return "Unknown encoding: " + e4;
49761      }, TypeError), o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event"), e3.exports.q = i;
49762    }, 6884: (e3, t3, r3) => {
49763      var n2 = r3(9142), i = Object.keys || function(e4) {
49764        var t4 = [];
49765        for (var r4 in e4)
49766          t4.push(r4);
49767        return t4;
49768      };
49769      e3.exports = f2;
49770      var o = r3(6297), a = r3(1471);
49771      r3(1736)(f2, o);
49772      for (var s = i(a.prototype), u2 = 0; u2 < s.length; u2++) {
49773        var c2 = s[u2];
49774        f2.prototype[c2] || (f2.prototype[c2] = a.prototype[c2]);
49775      }
49776      function f2(e4) {
49777        if (!(this instanceof f2))
49778          return new f2(e4);
49779        o.call(this, e4), a.call(this, e4), this.allowHalfOpen = true, e4 && (false === e4.readable && (this.readable = false), false === e4.writable && (this.writable = false), false === e4.allowHalfOpen && (this.allowHalfOpen = false, this.once("end", d2)));
49780      }
49781      function d2() {
49782        this._writableState.ended || n2.nextTick(l2, this);
49783      }
49784      function l2(e4) {
49785        e4.end();
49786      }
49787      Object.defineProperty(f2.prototype, "writableHighWaterMark", { enumerable: false, get: function() {
49788        return this._writableState.highWaterMark;
49789      } }), Object.defineProperty(f2.prototype, "writableBuffer", { enumerable: false, get: function() {
49790        return this._writableState && this._writableState.getBuffer();
49791      } }), Object.defineProperty(f2.prototype, "writableLength", { enumerable: false, get: function() {
49792        return this._writableState.length;
49793      } }), Object.defineProperty(f2.prototype, "destroyed", { enumerable: false, get: function() {
49794        return void 0 !== this._readableState && void 0 !== this._writableState && this._readableState.destroyed && this._writableState.destroyed;
49795      }, set: function(e4) {
49796        void 0 !== this._readableState && void 0 !== this._writableState && (this._readableState.destroyed = e4, this._writableState.destroyed = e4);
49797      } });
49798    }, 3582: (e3, t3, r3) => {
49799      e3.exports = i;
49800      var n2 = r3(9154);
49801      function i(e4) {
49802        if (!(this instanceof i))
49803          return new i(e4);
49804        n2.call(this, e4);
49805      }
49806      r3(1736)(i, n2), i.prototype._transform = function(e4, t4, r4) {
49807        r4(null, e4);
49808      };
49809    }, 6297: (e3, t3, r3) => {
49810      var n2, i = r3(9142);
49811      e3.exports = x2, x2.ReadableState = S2, r3(8291).EventEmitter;
49812      var o, a = function(e4, t4) {
49813        return e4.listeners(t4).length;
49814      }, s = r3(7144), u2 = r3(9033).Buffer, c2 = r3.g.Uint8Array || function() {
49815      }, f2 = r3(4616);
49816      o = f2 && f2.debuglog ? f2.debuglog("stream") : function() {
49817      };
49818      var d2, l2, h2, p2 = r3(5392), b2 = r3(7572), y2 = r3(6756).getHighWaterMark, m2 = r3(9024).q, v2 = m2.ERR_INVALID_ARG_TYPE, g2 = m2.ERR_STREAM_PUSH_AFTER_EOF, w2 = m2.ERR_METHOD_NOT_IMPLEMENT
vendor: 14,429 bytes, lines 49818-50041
49818ED, A2 = m2.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;
49819      r3(1736)(x2, s);
49820      var k2 = b2.errorOrDestroy, _ = ["error", "close", "destroy", "pause", "resume"];
49821      function S2(e4, t4, i2) {
49822        n2 = n2 || r3(6884), e4 = e4 || {}, "boolean" != typeof i2 && (i2 = t4 instanceof n2), this.objectMode = !!e4.objectMode, i2 && (this.objectMode = this.objectMode || !!e4.readableObjectMode), this.highWaterMark = y2(this, e4, "readableHighWaterMark", i2), this.buffer = new p2(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = false, this.endEmitted = false, this.reading = false, this.sync = true, this.needReadable = false, this.emittedReadable = false, this.readableListening = false, this.resumeScheduled = false, this.paused = true, this.emitClose = false !== e4.emitClose, this.autoDestroy = !!e4.autoDestroy, this.destroyed = false, this.defaultEncoding = e4.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = false, this.decoder = null, this.encoding = null, e4.encoding && (d2 || (d2 = r3(3462).s), this.decoder = new d2(e4.encoding), this.encoding = e4.encoding);
49823      }
49824      function x2(e4) {
49825        if (n2 = n2 || r3(6884), !(this instanceof x2))
49826          return new x2(e4);
49827        var t4 = this instanceof n2;
49828        this._readableState = new S2(e4, this, t4), this.readable = true, e4 && ("function" == typeof e4.read && (this._read = e4.read), "function" == typeof e4.destroy && (this._destroy = e4.destroy)), s.call(this);
49829      }
49830      function E2(e4, t4, r4, n3, i2) {
49831        o("readableAddChunk", t4);
49832        var a2, s2 = e4._readableState;
49833        if (null === t4)
49834          s2.reading = false, function(e5, t5) {
49835            if (o("onEofChunk"), !t5.ended) {
49836              if (t5.decoder) {
49837                var r5 = t5.decoder.end();
49838                r5 && r5.length && (t5.buffer.push(r5), t5.length += t5.objectMode ? 1 : r5.length);
49839              }
49840              t5.ended = true, t5.sync ? T2(e5) : (t5.needReadable = false, t5.emittedReadable || (t5.emittedReadable = true, C2(e5)));
49841            }
49842          }(e4, s2);
49843        else if (i2 || (a2 = function(e5, t5) {
49844          var r5, n4;
49845          return n4 = t5, u2.isBuffer(n4) || n4 instanceof c2 || "string" == typeof t5 || void 0 === t5 || e5.objectMode || (r5 = new v2("chunk", ["string", "Buffer", "Uint8Array"], t5)), r5;
49846        }(s2, t4)), a2)
49847          k2(e4, a2);
49848        else if (s2.objectMode || t4 && t4.length > 0)
49849          if ("string" == typeof t4 || s2.objectMode || Object.getPrototypeOf(t4) === u2.prototype || (t4 = function(e5) {
49850            return u2.from(e5);
49851          }(t4)), n3)
49852            s2.endEmitted ? k2(e4, new A2()) : P2(e4, s2, t4, true);
49853          else if (s2.ended)
49854            k2(e4, new g2());
49855          else {
49856            if (s2.destroyed)
49857              return false;
49858            s2.reading = false, s2.decoder && !r4 ? (t4 = s2.decoder.write(t4), s2.objectMode || 0 !== t4.length ? P2(e4, s2, t4, false) : I2(e4, s2)) : P2(e4, s2, t4, false);
49859          }
49860        else
49861          n3 || (s2.reading = false, I2(e4, s2));
49862        return !s2.ended && (s2.length < s2.highWaterMark || 0 === s2.length);
49863      }
49864      function P2(e4, t4, r4, n3) {
49865        t4.flowing && 0 === t4.length && !t4.sync ? (t4.awaitDrain = 0, e4.emit("data", r4)) : (t4.length += t4.objectMode ? 1 : r4.length, n3 ? t4.buffer.unshift(r4) : t4.buffer.push(r4), t4.needReadable && T2(e4)), I2(e4, t4);
49866      }
49867      Object.defineProperty(x2.prototype, "destroyed", { enumerable: false, get: function() {
49868        return void 0 !== this._readableState && this._readableState.destroyed;
49869      }, set: function(e4) {
49870        this._readableState && (this._readableState.destroyed = e4);
49871      } }), x2.prototype.destroy = b2.destroy, x2.prototype._undestroy = b2.undestroy, x2.prototype._destroy = function(e4, t4) {
49872        t4(e4);
49873      }, x2.prototype.push = function(e4, t4) {
49874        var r4, n3 = this._readableState;
49875        return n3.objectMode ? r4 = true : "string" == typeof e4 && ((t4 = t4 || n3.defaultEncoding) !== n3.encoding && (e4 = u2.from(e4, t4), t4 = ""), r4 = true), E2(this, e4, t4, false, r4);
49876      }, x2.prototype.unshift = function(e4) {
49877        return E2(this, e4, null, true, false);
49878      }, x2.prototype.isPaused = function() {
49879        return false === this._readableState.flowing;
49880      }, x2.prototype.setEncoding = function(e4) {
49881        d2 || (d2 = r3(3462).s);
49882        var t4 = new d2(e4);
49883        this._readableState.decoder = t4, this._readableState.encoding = this._readableState.decoder.encoding;
49884        for (var n3 = this._readableState.buffer.head, i2 = ""; null !== n3; )
49885          i2 += t4.write(n3.data), n3 = n3.next;
49886        return this._readableState.buffer.clear(), "" !== i2 && this._readableState.buffer.push(i2), this._readableState.length = i2.length, this;
49887      };
49888      var O2 = 1073741824;
49889      function B2(e4, t4) {
49890        return e4 <= 0 || 0 === t4.length && t4.ended ? 0 : t4.objectMode ? 1 : e4 != e4 ? t4.flowing && t4.length ? t4.buffer.head.data.length : t4.length : (e4 > t4.highWaterMark && (t4.highWaterMark = function(e5) {
49891          return e5 >= O2 ? e5 = O2 : (e5--, e5 |= e5 >>> 1, e5 |= e5 >>> 2, e5 |= e5 >>> 4, e5 |= e5 >>> 8, e5 |= e5 >>> 16, e5++), e5;
49892        }(e4)), e4 <= t4.length ? e4 : t4.ended ? t4.length : (t4.needReadable = true, 0));
49893      }
49894      function T2(e4) {
49895        var t4 = e4._readableState;
49896        o("emitReadable", t4.needReadable, t4.emittedReadable), t4.needReadable = false, t4.emittedReadable || (o("emitReadable", t4.flowing), t4.emittedReadable = true, i.nextTick(C2, e4));
49897      }
49898      function C2(e4) {
49899        var t4 = e4._readableState;
49900        o("emitReadable_", t4.destroyed, t4.length, t4.ended), t4.destroyed || !t4.length && !t4.ended || (e4.emit("readable"), t4.emittedReadable = false), t4.needReadable = !t4.flowing && !t4.ended && t4.length <= t4.highWaterMark, N2(e4);
49901      }
49902      function I2(e4, t4) {
49903        t4.readingMore || (t4.readingMore = true, i.nextTick(M2, e4, t4));
49904      }
49905      function M2(e4, t4) {
49906        for (; !t4.reading && !t4.ended && (t4.length < t4.highWaterMark || t4.flowing && 0 === t4.length); ) {
49907          var r4 = t4.length;
49908          if (o("maybeReadMore read 0"), e4.read(0), r4 === t4.length)
49909            break;
49910        }
49911        t4.readingMore = false;
49912      }
49913      function U2(e4) {
49914        var t4 = e4._readableState;
49915        t4.readableListening = e4.listenerCount("readable") > 0, t4.resumeScheduled && !t4.paused ? t4.flowing = true : e4.listenerCount("data") > 0 && e4.resume();
49916      }
49917      function R2(e4) {
49918        o("readable nexttick read 0"), e4.read(0);
49919      }
49920      function j(e4, t4) {
49921        o("resume", t4.reading), t4.reading || e4.read(0), t4.resumeScheduled = false, e4.emit("resume"), N2(e4), t4.flowing && !t4.reading && e4.read(0);
49922      }
49923      function N2(e4) {
49924        var t4 = e4._readableState;
49925        for (o("flow", t4.flowing); t4.flowing && null !== e4.read(); )
49926          ;
49927      }
49928      function F2(e4, t4) {
49929        return 0 === t4.length ? null : (t4.objectMode ? r4 = t4.buffer.shift() : !e4 || e4 >= t4.length ? (r4 = t4.decoder ? t4.buffer.join("") : 1 === t4.buffer.length ? t4.buffer.first() : t4.buffer.concat(t4.length), t4.buffer.clear()) : r4 = t4.buffer.consume(e4, t4.decoder), r4);
49930        var r4;
49931      }
49932      function L2(e4) {
49933        var t4 = e4._readableState;
49934        o("endReadable", t4.endEmitted), t4.endEmitted || (t4.ended = true, i.nextTick(D2, t4, e4));
49935      }
49936      function D2(e4, t4) {
49937        if (o("endReadableNT", e4.endEmitted, e4.length), !e4.endEmitted && 0 === e4.length && (e4.endEmitted = true, t4.readable = false, t4.emit("end"), e4.autoDestroy)) {
49938          var r4 = t4._writableState;
49939          (!r4 || r4.autoDestroy && r4.finished) && t4.destroy();
49940        }
49941      }
49942      function H2(e4, t4) {
49943        for (var r4 = 0, n3 = e4.length; r4 < n3; r4++)
49944          if (e4[r4] === t4)
49945            return r4;
49946        return -1;
49947      }
49948      x2.prototype.read = function(e4) {
49949        o("read", e4), e4 = parseInt(e4, 10);
49950        var t4 = this._readableState, r4 = e4;
49951        if (0 !== e4 && (t4.emittedReadable = false), 0 === e4 && t4.needReadable && ((0 !== t4.highWaterMark ? t4.length >= t4.highWaterMark : t4.length > 0) || t4.ended))
49952          return o("read: emitReadable", t4.length, t4.ended), 0 === t4.length && t4.ended ? L2(this) : T2(this), null;
49953        if (0 === (e4 = B2(e4, t4)) && t4.ended)
49954          return 0 === t4.length && L2(this), null;
49955        var n3, i2 = t4.needReadable;
49956        return o("need readable", i2), (0 === t4.length || t4.length - e4 < t4.highWaterMark) && o("length less than watermark", i2 = true), t4.ended || t4.reading ? o("reading or ended", i2 = false) : i2 && (o("do read"), t4.reading = true, t4.sync = true, 0 === t4.length && (t4.needReadable = true), this._read(t4.highWaterMark), t4.sync = false, t4.reading || (e4 = B2(r4, t4))), null === (n3 = e4 > 0 ? F2(e4, t4) : null) ? (t4.needReadable = t4.length <= t4.highWaterMark, e4 = 0) : (t4.length -= e4, t4.awaitDrain = 0), 0 === t4.length && (t4.ended || (t4.needReadable = true), r4 !== e4 && t4.ended && L2(this)), null !== n3 && this.emit("data", n3), n3;
49957      }, x2.prototype._read = function(e4) {
49958        k2(this, new w2("_read()"));
49959      }, x2.prototype.pipe = function(e4, t4) {
49960        var r4 = this, n3 = this._readableState;
49961        switch (n3.pipesCount) {
49962          case 0:
49963            n3.pipes = e4;
49964            break;
49965          case 1:
49966            n3.pipes = [n3.pipes, e4];
49967            break;
49968          default:
49969            n3.pipes.push(e4);
49970        }
49971        n3.pipesCount += 1, o("pipe count=%d opts=%j", n3.pipesCount, t4);
49972        var s2 = t4 && false === t4.end || e4 === i.stdout || e4 === i.stderr ? b3 : u3;
49973        function u3() {
49974          o("onend"), e4.end();
49975        }
49976        n3.endEmitted ? i.nextTick(s2) : r4.once("end", s2), e4.on("unpipe", function t5(i2, a2) {
49977          o("onunpipe"), i2 === r4 && a2 && false === a2.hasUnpiped && (a2.hasUnpiped = true, o("cleanup"), e4.removeListener("close", h3), e4.removeListener("finish", p3), e4.removeListener("drain", c3), e4.removeListener("error", l3), e4.removeListener("unpipe", t5), r4.removeListener("end", u3), r4.removeListener("end", b3), r4.removeListener("data", d3), f3 = true, !n3.awaitDrain || e4._writableState && !e4._writableState.needDrain || c3());
49978        });
49979        var c3 = function(e5) {
49980          return function() {
49981            var t5 = e5._readableState;
49982            o("pipeOnDrain", t5.awaitDrain), t5.awaitDrain && t5.awaitDrain--, 0 === t5.awaitDrain && a(e5, "data") && (t5.flowing = true, N2(e5));
49983          };
49984        }(r4);
49985        e4.on("drain", c3);
49986        var f3 = false;
49987        function d3(t5) {
49988          o("ondata");
49989          var i2 = e4.write(t5);
49990          o("dest.write", i2), false === i2 && ((1 === n3.pipesCount && n3.pipes === e4 || n3.pipesCount > 1 && -1 !== H2(n3.pipes, e4)) && !f3 && (o("false write response, pause", n3.awaitDrain), n3.awaitDrain++), r4.pause());
49991        }
49992        function l3(t5) {
49993          o("onerror", t5), b3(), e4.removeListener("error", l3), 0 === a(e4, "error") && k2(e4, t5);
49994        }
49995        function h3() {
49996          e4.removeListener("finish", p3), b3();
49997        }
49998        function p3() {
49999          o("onfinish"), e4.removeListener("close", h3), b3();
50000        }
50001        function b3() {
50002          o("unpipe"), r4.unpipe(e4);
50003        }
50004        return r4.on("data", d3), function(e5, t5, r5) {
50005          if ("function" == typeof e5.prependListener)
50006            return e5.prependListener(t5, r5);
50007          e5._events && e5._events[t5] ? Array.isArray(e5._events[t5]) ? e5._events[t5].unshift(r5) : e5._events[t5] = [r5, e5._events[t5]] : e5.on(t5, r5);
50008        }(e4, "error", l3), e4.once("close", h3), e4.once("finish", p3), e4.emit("pipe", r4), n3.flowing || (o("pipe resume"), r4.resume()), e4;
50009      }, x2.prototype.unpipe = function(e4) {
50010        var t4 = this._readableState, r4 = { hasUnpiped: false };
50011        if (0 === t4.pipesCount)
50012          return this;
50013        if (1 === t4.pipesCount)
50014          return e4 && e4 !== t4.pipes || (e4 || (e4 = t4.pipes), t4.pipes = null, t4.pipesCount = 0, t4.flowing = false, e4 && e4.emit("unpipe", this, r4)), this;
50015        if (!e4) {
50016          var n3 = t4.pipes, i2 = t4.pipesCount;
50017          t4.pipes = null, t4.pipesCount = 0, t4.flowing = false;
50018          for (var o2 = 0; o2 < i2; o2++)
50019            n3[o2].emit("unpipe", this, { hasUnpiped: false });
50020          return this;
50021        }
50022        var a2 = H2(t4.pipes, e4);
50023        return -1 === a2 || (t4.pipes.splice(a2, 1), t4.pipesCount -= 1, 1 === t4.pipesCount && (t4.pipes = t4.pipes[0]), e4.emit("unpipe", this, r4)), this;
50024      }, x2.prototype.on = function(e4, t4) {
50025        var r4 = s.prototype.on.call(this, e4, t4), n3 = this._readableState;
50026        return "data" === e4 ? (n3.readableListening = this.listenerCount("readable") > 0, false !== n3.flowing && this.resume()) : "readable" === e4 && (n3.endEmitted || n3.readableListening || (n3.readableListening = n3.needReadable = true, n3.flowing = false, n3.emittedReadable = false, o("on readable", n3.length, n3.reading), n3.length ? T2(this) : n3.reading || i.nextTick(R2, this))), r4;
50027      }, x2.prototype.addListener = x2.prototype.on, x2.prototype.removeListener = function(e4, t4) {
50028        var r4 = s.prototype.removeListener.call(this, e4, t4);
50029        return "readable" === e4 && i.nextTick(U2, this), r4;
50030      }, x2.prototype.removeAllListeners = function(e4) {
50031        var t4 = s.prototype.removeAllListeners.apply(this, arguments);
50032        return "readable" !== e4 && void 0 !== e4 || i.nextTick(U2, this), t4;
50033      }, x2.prototype.resume = function() {
50034        var e4 = this._readableState;
50035        return e4.flowing || (o("resume"), e4.flowing = !e4.readableListening, function(e5, t4) {
50036          t4.resumeScheduled || (t4.resumeScheduled = true, i.nextTick(j, e5, t4));
50037        }(this, e4)), e4.paused = false, this;
50038      }, x2.prototype.pause = function() {
50039        return o("call pause flowing=%j", this._readableState.flowing), false !== this._readableState.flowing && (o("pause"), this._readableState.flowing = false, this.emit("pause")), this._readableState.paused = true, this;
50040      }, x2.prototype.wrap = function(e4) {
50041        var t4 = this, r4 = this._readableState, n3 = false;
50042        for (var i2 in e4.on("end", function() {
50043          if (o("wrapped end"), r4.decoder && !r4.ended) {
50044            var e5 = r4.decoder.end();
50045            e5 && e5.length && t4.push(e5);
50046          }
50047          t4.push(null);
50048        }), e4.on("data", function(i3) {
50049          o("wrapped data"), r4.decoder && (i3 = r4.decoder.write(i3)), r4.objectMode && null == i3 || (r4.objectMode || i3 && i3.length) && (t4.push(i3) || (n3 = true, e4.pause()));
50050        }), e4)
50051          void 0 === this[i2] && "function" == typeof e4[i2] && (this[i2] = function(t5) {
50052            return function() {
50053              return e4[t5].apply(e4, arguments);
50054            };
50055          }(i2));
50056        for (var a2 = 0; a2 < _.length; a2++)
50057          e4.on(_[a2], this.emit.bind(this, _[a2]));
50058        return this._read = function(t5) {
50059          o("wrapped _read", t5), n3 && (n3 = false, e4.resume());
50060        }, this;
50061      }, "function" == typeof Symbol && (x2.prototype[Symbol.asyncIterator] = function() {
50062        return void 0 === l2 && (l2 = r3(2317)), l2(this);
50063      }), Object.defineProperty(x2.prototype, "readableHighWaterMark", { enumerable: false, get: function() {
50064        return this._readableState.highWaterMark;
50065      } }), Object.defineProperty(x2.prototype, "readableBuffer", { enumerable: false, get: function() {
50066        return this._readableState && this._readableState.buffer;
50067      } }), Object.defineProperty(x2.prototype, "readableFlowing", { enumerable: false, get: function() {
50068        return this._readableState.flowing;
50069      }, set: function(e4) {
50070        this._readableState && (this._readableState.flowing = e4);
50071      } }), x2._fromList = F2, Object.defineProperty(x2.prototype, "readableLength", { enumerable: false, get: function() {
50072        return this._readableState.length;
50073      } }), "function" == typeof Symbol && (x2.from = function(e4, t4) {
50074        return void 0 === h2 && (h2 = r3(6218)), h2(x2, e4, t4);
50075      });
50076    }, 9154: (e3, t3, r3) => {
50077      e3.exports = f2;
50078      var n2 = r3(9024).q, i = n2.ERR_METHOD_NOT_IMPLEMENTED, o = n2.ERR_MULTIPLE_CALLBACK, a = n2.ERR_TRANSFORM_ALREADY_TRANSFORMING, s = n2.ERR_TRANSFORM_WITH_LENGTH_0, u2 = r3(6884);
50079      function c2(e4, t4) {
50080        var r4 = this._transformState;
50081        r4.transforming = false;
50082        var n3 = r4.writecb;
50083        if (null === n3)
50084          return this.emit("error", new o());
50085        r4.writechunk = null, r4.writecb = null, null != t4 && this.push(t4), n3(e4);
50086        var i2 = this._readableState;
50087        i2.reading = false, (i2.needReadable || i2.length < i2.highWaterMark) && this._read(i2.highWaterMark);
50088      }
50089      function f2(e4) {
50090        if (!(this instanceof f2))
50091          return new f2(e4);
50092        u2.call(this, e4), this._transformState = { afterTransform: c2.bind(this), needTransform: false, transforming: false, writecb: null, writechunk: null, writeencoding: null }, this._readableState.needReadable = true, this._readableState.sync = false, e4 && ("function" == typeof e4.transform && (this._transform = e4.transform), "function" == typeof e4.flush && (this._flush = e4.flush)), this.on("prefinish", d2);
50093      }
50094      function d2() {
50095        var e4 = this;
50096        "function" != typeof this._flush || this._readableState.destroyed ? l2(this, null, null) : this._flush(function(t4, r4) {
50097          l2(e4, t4, r4);
50098        });
50099      }
50100      function l2(e4, t4, r4) {
50101        if (t4)
50102          return e4.emit("error", t4);
50103        if (null != r4 && e4.push(r4), e4._writableState.length)
50104          throw new s();
50105        if (e4._transformState.transforming)
50106          throw new a();
50107        return e4.push(null);
50108      }
50109      r3(1736)(f2, u2), f2.prototype.push = function(e4, t4) {
50110        return this._transformState.needTransform = false, u2.prototype.push.call(this, e4, t4);
50111      }, f2.prototype._transform = function(e4, t4, r4) {
50112        r4(new i("_transform()"));
50113      }, f2.prototype._write = function(e4, t4, r4) {
50114        var n3 = this._transformState;
50115        if (n3.writecb = r4, n3.writechunk = e4, n3.writeencoding = t4, !n3.transforming) {
50116          var i2 = this._readableState;
50117          (n3.needTransform || i2.needReadable || i2.length < i2.highWaterMark) && this._read(i2.highWaterMark);
50118        }
50119      }, f2.prototype._read = function(e4) {
50120        var t4 = this._transformState;
50121        null === t4.writechunk || t4.transforming ? t4.needTransform = true : (t4.transforming = true, this._transform(t4.writechunk, t4.writeencoding, t4.afterTransform));
50122      }, f2.prototype._destroy = function(e4, t4) {
50123        u2.prototype._destroy.call(this, e4, function(e5) {
50124          t4(e5);
50125        });
50126      };
50127    }, 1471: (e3, t3, r3) => {
50128      var n2, i = r3(9142);
50129      function o(e4) {
50130        var t4 = this;
50131        this.next = null, this.entry = null, this.finish = function() {
50132          !function(e5, t5, r4) {
50133            var n3 = e5.entry;
50134            for (e5.entry = null; n3; ) {
50135              var i2 = n3.callback;
50136              t5.pendingcb--, i2(void 0), n3 = n3.next;
50137            }
50138            t5.corkedRequestsFree.next = e5;
50139          }(t4, e4);
50140        };
50141      }
50142      e3.exports = x2, x2.WritableState = S2;
50143      var a, s = { deprecate: r3(6219) }, u2 = r3(7144), c2 = r3(9033).Buffer, f2 = r3.g.Uint8Array || function() {
50144      }
50144, d2 = r3(7572), l2 = r3(6756).getHighWaterMark, h2 = r3(9024).q, p2 = h2.ERR_INVALID_ARG_TYPE, b2 = h2.ERR_METHOD_NOT_IMPLEMENTED, y2 = h2.ERR_MULTIPLE_CALLBACK, m2 = h2.ERR_STREAM_CANNOT_PIPE, v2 = h2.ERR_STREAM_DESTROYED, g2 = h2.ERR_STREAM_NULL_VALUES, w2 = h2.ERR_STREAM_WRITE_AFTER_END, A2 = h2.ERR_UNKNOWN_ENCODING, k2 = d2.errorOrDestroy;
50145      function _() {
50146      }
50147      function S2(e4, t4, a2) {
50148        n2 = n2 || r3(6884), e4 = e4 || {}, "boolean" != typeof a2 && (a2 = t4 instanceof n2), this.objectMode = !!e4.objectMode, a2 && (this.objectMode = this.objectMode || !!e4.writableObjectMode), this.highWaterMark = l2(this, e4, "writableHighWaterMark", a2), this.finalCalled = false, this.needDrain = false, this.ending = false, this.ended = false, this.finished = false, this.destroyed = false;
50149        var s2 = false === e4.decodeStrings;
50150        this.decodeStrings = !s2, this.defaultEncoding = e4.defaultEncoding || "utf8", this.length = 0, this.writing = false, this.corked = 0, this.sync = true, this.bufferProcessing = false, this.onwrite = function(e5) {
50151          !function(e6, t5) {
50152            var r4 = e6._writableState, n3 = r4.sync, o2 = r4.writecb;
50153            if ("function" != typeof o2)
50154              throw new y2();
50155            if (function(e7) {
50156              e7.writing = false, e7.writecb = null, e7.length -= e7.writelen, e7.writelen = 0;
50157            }(r4), t5)
50158              !function(e7, t6, r5, n4, o3) {
50159                --t6.pendingcb, r5 ? (i.nextTick(o3, n4), i.nextTick(C2, e7, t6), e7._writableState.errorEmitted = true, k2(e7, n4)) : (o3(n4), e7._writableState.errorEmitted = true, k2(e7, n4), C2(e7, t6));
50160              }(e6, r4, n3, t5, o2);
50161            else {
50162              var a3 = B2(r4) || e6.destroyed;
50163              a3 || r4.corked || r4.bufferProcessing || !r4.bufferedRequest || O2(e6, r4), n3 ? i.nextTick(P2, e6, r4, a3, o2) : P2(e6, r4, a3, o2);
50164            }
50165          }(t4, e5);
50166        }, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = false, this.errorEmitted = false, this.emitClose = false !== e4.emitClose, this.autoDestroy = !!e4.autoDestroy, this.bufferedRequestCount = 0, this.corkedRequestsFree = new o(this);
50167      }
50168      function x2(e4) {
50169        var t4 = this instanceof (n2 = n2 || r3(6884));
50170        if (!t4 && !a.call(x2, this))
50171          return new x2(e4);
50172        this._writableState = new S2(e4, this, t4), this.writable = true, e4 && ("function" == typeof e4.write && (this._write = e4.write), "function" == typeof e4.writev && (this._writev = e4.writev), "function" == typeof e4.destroy && (this._destroy = e4.destroy), "function" == typeof e4.f
50172inal && (this._final = e4.final)), u2.call(this);
50173      }
50174      function E2(e4, t4, r4, n3, i2, o2, a2) {
50175        t4.writelen = n3, t4.writecb = a2, t4.writing = true, t4.sync = true, t4.destroyed ? t4.onwrite(new v2("write")) : r4 ? e4._writev(i2, t4.onwrite) : e4._write(i2, o2, t4.onwrite), t4.sync = false;
50176      }
50177      function P2(e4, t4, r4, n3) {
50178        r4 || function(e5, t5) {
50179          0 === t5.length && t5.needDrain && (t5.needDrain = false, e5.emit("drain"));
50180        }(e4, t4), t4.pendingcb--, n3(), C2(e4, t4);
50181      }
50182      function O2(e4, t4) {
50183        t4.bufferProcessing = true;
50184        var r4 = t4.bufferedRequest;
50185        if (e4._writev && r4 && r4.next) {
50186          var n3 = t4.bufferedRequestCount, i2 = new Array(n3), a2 = t4.corkedRequestsFree;
50187          a2.entry = r4;
50188          for (var s2 = 0, u3 = true; r4; )
50189            i2[s2] = r4, r4.isBuf || (u3 = false), r4 = r4.next, s2 += 1;
50190          i2.allBuffers = u3, E2(e4, t4, true, t4.length, i2, "", a2.finish), t4.pendingcb++, t4.lastBufferedRequest = null, a2.next ? (t4.corkedRequestsFree = a2.next, a2.next = null) : t4.corkedRequestsFree = new o(t4), t4.bufferedRequestCount = 0;
50191        } else {
50192          for (; r4; ) {
50193            var c3 = r4.chunk, f3 = r4.encoding, d3 = r4.callback;
50194            if (E2(e4, t4, false, t4.objectMode ? 1 : c3.length, c3, f3, d3), r4 = r4.next, t4.bufferedRequestCount--, t4.writing)
50195              break;
50196          }
50197          null === r4 && (t4.lastBufferedRequest = null);
50198        }
50199        t4.bufferedRequest = r4, t4.bufferProcessing = false;
50200      }
50201      function B2(e4) {
50202        return e4.ending && 0 === e4.length && null === e4.bufferedRequest && !e4.finished && !e4.writing;
50203      }
50204      function T2(e4, t4) {
50205        e4._final(function(r4) {
50206          t4.pendingcb--, r4 && k2(e4, r4), t4.prefinished = true, e4.emit("prefinish"), C2(e4, t4);
50207        });
50208      }
50209      function C2(e4, t4) {
50210        var r4 = B2(t4);
50211        if (r4 && (function(e5, t5) {
50212          t5.prefinished || t5.finalCalled || ("function" != typeof e5._final || t5.destroyed ? (t5.prefinished = true, e5.emit("prefinish")) : (t5.pendingcb++, t5.finalCalled = true, i.nextTick(T2, e5, t5)));
50213        }(e4, t4), 0 === t4.pendingcb && (t4.finished = true, e4.emit("finish"), t4.autoDestroy))) {
50214          var n3 = e4._readableState;
50215          (!n3 || n3.autoDestroy && n3.endEmitted) && e4.destroy();
50216        }
50217        return r4;
50218      }
50219      r3(1736)(x2, u2), S2.prototype.getBuffer = function() {
50220        for (var e4 = this.bufferedRequest, t4 = []; e4; )
50221          t4.push(e4), e4 = e4.next;
50222        return t4;
50223      }, function() {
50224        try {
50225          Object.defineProperty(S2.prototype, "buffer", { get: s.deprecate(function() {
50226            return this.getBuffer();
50227          }, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003") });
50228        } catch (e4) {
50229        }
50230      }(), "function" == typeof Symbol && Symbol.hasInstance && "function" == typeof Function.prototype[Symbol.hasInstance] ? (a = Function.prototype[Symbol.hasInstance], Object.defineProperty(x2, Symbol.hasInstance, { value: function(e4) {
50231        return !!a.call(this, e4) || this === x2 && e4 && e4._writableState instanceof S2;
50232      } })) : a = function(e4) {
50233        return e4 instanceof this;
50234      }, x2.prototype.pipe = function() {
50235        k2(this, new m2());
50236      }, x2.prototype.write = function(e4, t4, r4) {
50237        var n3, o2 = this._writableState, a2 = false, s2 = !o2.objectMode && (n3 = e4, c2.isBuffer(n3) || n3 instanceof f2);
50238        return s2 && !c2.isBuffer(e4) && (e4 = function(e5) {
50239          return c2.from(e5);
50240        }(e4)), "function" == typeof t4 && (r4 = t4, t4 = null), s2 ? t4 = "buffer" : t4 || (t4 = o2.defaultEncoding), "function" != typeof r4 && (r4 = _), o2.ending ? function(e5, t5) {
50241          var r5 = new w2();
50242          k2(e5, r5), i.nextTick(t5, r5);
50243        }(this, r4) : (s2 || function(e5, t5, r5, n4) {
50244          var o3;
50245          return null === r5 ? o3 = new g2() : "string" == typeof r5 || t5.objectMode || (o3 = new p2("chunk", ["string", "Buffer"], r5)), !o3 || (k2(e5, o3), i.nextTick(n4, o3), false);
50246        }
50246(this, o2, e4, r4)) && (o2.pendingcb++, a2 = function(e5, t5, r5, n4, i2, o3) {
50247          if (!r5) {
50248            var a3 = function(e6, t6, r6) {
50249              return e6.objectMode || false === e6.decodeStrings || "string" != typeof t6 || (t6 = c2.from(t6, r6)), t6;
50250            }(t5, n4, i2);
50251            n4 !== a3 && (r5 = true, i2 = "buffer", n4 = a3);
50252          }
50253          var s3 = t5.objectMode ? 1 : n4.length;
50254          t5.length += s3;
50255          var u3 = t5.length < t5.highWaterMark;
50256          if (u3 || (t5.needDrain = true), t5.writing || t5.corked) {
50257            var f3 = t5.lastBufferedRequest;
50258            t5.lastBufferedRequest = { chunk: n4, encoding: i2, isBuf: r5, callback: o3, next: null }, f3 ? f3.next = t5.lastBufferedRequest : t5.bufferedRequest = t5.lastBufferedRequest, t5.bufferedRequestCount += 1;
50259          } else
50260            E2(e5, t5, false, s3, n4, i2, o3);
50261          return u3;
50262        }(this, o2, s2, e4, t4, r4)), a2;
50263      }, x2.prototype.cork = function() {
50264        this._writableState.corked++;
50265      }, x2.prototype.uncork = function() {
50266        var e4 = this._writableState;
50267        e4.corked && (e4.corked--, e4.writing || e4.corked || e4.bufferProcessing || !e4.bufferedRequest || O2(this, e4));
50268      }, x2.prototype.setDefaultEncoding = function(e4) {
50269        if ("string" == typeof e4 && (e4 = e4.toLowerCase()), !(["hex", "utf8", "utf-8", "ascii", "binary", "base64", "ucs2", "ucs-2", "utf16le", "utf-16le", "raw"].indexOf((e4 + "").toLowerCase()) > -1))
50270          throw new A2(e4);
50271        return this._writableState.defaultEncoding = e4, this;
50272      }, Object.defineProperty(x2.prototype, "writableBuffer", { enumerable: false, get: function() {
50273        return this._writableState && this._writableState.getBuffer();
50274      } }), Object.defineProperty(x2.prototype, "writableHighWaterMark", { enumerable: false, get: function() {
50275        return this._writableState.highWaterMark;
50276      } }), x2.prototype._write = function(e4, t4, r4) {
50277        r4(new b2("_write()"));
50278      }, x2.prototype._writev = null, x2.prototype.end = function(e4, t4, r4) {
50279        var n3 = this._writableState;
50280        return "function" == typeof e4 ? (r4 = e4, e4 = null, t4 = null) : "function" == typeof t4 && (r4 = t4, t4 = null), null != e4 && this.write(e4, t4), n3.corked && (n3.corked = 1, this.uncork()), n3.ending || function(e5, t5, r5) {
50281          t5.ending = true, C2(e5, t5), r5 && (t5.finished ? i.nextTick(r5) : e5.once("finish", r5)), t5.ended = true, e5.writable = false;
50282        }(this, n3, r4), this;
50283      }, Object.defineProperty(x2.prototype, "writableLength", { enumerable: false, get: function() {
50284        return this._writableState.length;
50285      } }), Object.defineProperty(x2.prototype, "destroyed", { enumerable: false, get: function() {
50286        return void 0 !== this._writableState && this._writableState.destroyed;
50287      }, set: function(e4) {
50288        this._writableState && (this._writableState.destroyed = e4);
50289      } }), x2.prototype.destroy = d2.destroy, x2.prototype._undestroy = d2.undestroy, x2.prototype._destroy = function(e4, t4) {
50290        t4(e4);
50291      };
50292    }, 2317: (e3, t3, r3) => {
50293      var n2, i = r3(9142);
50294      function o(e4, t4, r4) {
50295        return t4 in e4 ? Object.defineProperty(e4, t4, { value: r4, enumerable: true, configurable: true, writable: true }) : e4[t4] = r4, e4;
50296      }
50297      var a = r3(5831), s = Symbol("lastResolve"), u2 = Symbol("lastReject"), c2 = Symbol("error"), f2 = Symbol("ended"), d2 = Symbol("lastPromise"), l2 = Symbol("handlePromise"), h2 = Symbol("stream");
50298      function p2(e4, t4) {
50299        return { value: e4, done: t4 };
50300      }
50301      function b2(e4) {
50302        var t4 = e4[s];
50303        if (null !== t4) {
50304          var r4 = e4[h2].read();
50305          null !== r4 && (e4[d2] = null, e4[s] = null, e4[u2] = null, t4(p2(r4, false)));
50306        }
50307      }
50308      function y2(e4) {
50309        i.nextTick(b2, e4);
50310      }
50311      var m2 = Object.getPrototypeOf(function() {
50312      }), v2 = Object.setPrototypeOf((o(n2 = { get stream() {
50313        return this[h2];
50314      }, next: function() {
50315        var e4 = this, t4 = this[c2];
50316        if (null !== t4)
50317          return Promise.reject(t4);
50318        if (this[f2])
50319          return Promise.resolve(p2(void 0, true));
50320        if (this[h2].destroyed)
50321          return new Promise(function(t5, r5) {
50322            i.nextTick(function() {
50323              e4[c2] ? r5(e4[c2]) : t5(p2(void 0, true));
50324            });
50325          });
50326        var r4, n3 = this[d2];
50327        if (n3)
50328          r4 = new Promise(function(e5, t5) {
50329            return function(r5, n4) {
50330              e5.then(function() {
50331                t5[f2] ? r5(p2(void 0, true)) : t5[l2](r5, n4);
50332              }, n4);
50333            };
50334          }(n3, this));
50335        else {
50336          var o2 = this[h2].read();
50337          if (null !== o2)
50338            return Promise.resolve(p2(o2, false));
50339          r4 = new Promise(this[l2]);
50340        }
50341        return this[d2] = r4, r4;
50342      } }, Symbol.asyncIterator, function() {
50343        return this;
50344      }), o(n2, "return", function() {
50345        var e4 = this;
50346        return new Promise(function(t4, r4) {
50347          e4[h2].destroy(null, function(e5) {
50348            e5 ? r4(e5) : t4(p2(void 0, true));
50349          });
50350        });
50351      }), n2), m2);
50352      e3.exports = function(e4) {
50353        var t4, r4 = Object.create(v2, (o(t4 = {}, h2, { value: e4, writable: true }), o(t4, s, { value: null, writable: true }), o(t4, u2, { value: null, writable: true }), o(t4, c2, { value: null, writable: true }), o(t4, f2, { value: e4._readableState.endEmitted, writable: true }), o(t4, l2, { value: function(e5, t5) {
50354          var n3 = r4[h2].read();
50355          n3 ? (r4[d2] = null, r4[s] = null, r4[u2] = null, e5(p2(n3, false))) : (r4[s] = e5, r4[u2] = t5);
50356        }, writable: true }), t4));
50357        return r4[d2] = null, a(e4, function(e5) {
50358          if (e5 && "ERR_STREAM_PREMATURE_CLOSE" !== e5.code) {
50359            var t5 = r4[u2];
50360            return null !== t5 && (r4[d2] = null, r4[s] = null, r4[u2] = null, t5(e5)), void (r4[c2] = e5);
50361          }
50362          var n3 = r4[s];
50363          null !== n3 && (r4[d2] = null, r4[s] = null, r4[u2] = null, n3(p2(void 0, true))), r4[f2] = true;
50364        }), e4.on("readable", y2.bind(null, r4)), r4;
50365      };
50366    }, 5392: (e3, t3, r3) => {
50367      function n2(e4, t4) {
50368        var r4 = Object.keys(e4);
50369        if (Object.getOwnPropertySymbols) {
50370          var n3 = Object.getOwnPropertySymbols(e4);
50371          t4 && (n3 = n3.filter(function(t5) {
50372            return Object.getOwnPropertyDescriptor(e4, t5).enumerable;
50373          }
vendor: 4,221 bytes, lines 50373-50453
50373)), r4.push.apply(r4, n3);
50374        }
50375        return r4;
50376      }
50377      function i(e4, t4, r4) {
50378        return t4 in e4 ? Object.defineProperty(e4, t4, { value: r4, enumerable: true, configurable: true, writable: true }) : e4[t4] = r4, e4;
50379      }
50380      function o(e4, t4) {
50381        for (var r4 = 0; r4 < t4.length; r4++) {
50382          var n3 = t4[r4];
50383          n3.enumerable = n3.enumerable || false, n3.configurable = true, "value" in n3 && (n3.writable = true), Object.defineProperty(e4, n3.key, n3);
50384        }
50385      }
50386      var a = r3(9033).Buffer, s = r3(2361).inspect, u2 = s && s.custom || "inspect";
50387      e3.exports = function() {
50388        function e4() {
50389          !function(e5, t5) {
50390            if (!(e5 instanceof t5))
50391              throw new TypeError("Cannot call a class as a function");
50392          }(this, e4), this.head = null, this.tail = null, this.length = 0;
50393        }
50394        var t4, r4;
50395        return t4 = e4, r4 = [{ key: "push", value: function(e5) {
50396          var t5 = { data: e5, next: null };
50397          this.length > 0 ? this.tail.next = t5 : this.head = t5, this.tail = t5, ++this.length;
50398        } }, { key: "unshift", value: function(e5) {
50399          var t5 = { data: e5, next: this.head };
50400          0 === this.length && (this.tail = t5), this.head = t5, ++this.length;
50401        } }, { key: "shift", value: function() {
50402          if (0 !== this.length) {
50403            var e5 = this.head.data;
50404            return 1 === this.length ? this.head = this.tail = null : this.head = this.head.next, --this.length, e5;
50405          }
50406        } }, { key: "clear", value: function() {
50407          this.head = this.tail = null, this.length = 0;
50408        } }, { key: "join", value: function(e5) {
50409          if (0 === this.length)
50410            return "";
50411          for (var t5 = this.head, r5 = "" + t5.data; t5 = t5.next; )
50412            r5 += e5 + t5.data;
50413          return r5;
50414        } }, { key: "concat", value: function(e5) {
50415          if (0 === this.length)
50416            return a.alloc(0);
50417          for (var t5, r5, n3, i2 = a.allocUnsafe(e5 >>> 0), o2 = this.head, s2 = 0; o2; )
50418            t5 = o2.data, r5 = i2, n3 = s2, a.prototype.copy.call(t5, r5, n3), s2 += o2.data.length, o2 = o2.next;
50419          return i2;
50420        } }, { key: "consume", value: function(e5, t5) {
50421          var r5;
50422          return e5 < this.head.data.length ? (r5 = this.head.data.slice(0, e5), this.head.data = this.head.data.slice(e5)) : r5 = e5 === this.head.data.length ? this.shift() : t5 ? this._getString(e5) : this._getBuffer(e5), r5;
50423        } }, { key: "first", value: function() {
50424          return this.head.data;
50425        } }, { key: "_getString", value: function(e5) {
50426          var t5 = this.head, r5 = 1, n3 = t5.data;
50427          for (e5 -= n3.length; t5 = t5.next; ) {
50428            var i2 = t5.data, o2 = e5 > i2.length ? i2.length : e5;
50429            if (o2 === i2.length ? n3 += i2 : n3 += i2.slice(0, e5), 0 == (e5 -= o2)) {
50430              o2 === i2.length ? (++r5, t5.next ? this.head = t5.next : this.head = this.tail = null) : (this.head = t5, t5.data = i2.slice(o2));
50431              break;
50432            }
50433            ++r5;
50434          }
50435          return this.length -= r5, n3;
50436        } }, { key: "_getBuffer", value: function(e5) {
50437          var t5 = a.allocUnsafe(e5), r5 = this.head, n3 = 1;
50438          for (r5.data.copy(t5), e5 -= r5.data.length; r5 = r5.next; ) {
50439            var i2 = r5.data, o2 = e5 > i2.length ? i2.length : e5;
50440            if (i2.copy(t5, t5.length - e5, 0, o2), 0 == (e5 -= o2)) {
50441              o2 === i2.length ? (++n3, r5.next ? this.head = r5.next : this.head = this.tail = null) : (this.head = r5, r5.data = i2.slice(o2));
50442              break;
50443            }
50444            ++n3;
50445          }
50446          return this.length -= n3, t5;
50447        } }, { key: u2, value: function(e5, t5) {
50448          return s(this, function(e6) {
50449            for (var t6 = 1; t6 < arguments.length; t6++) {
50450              var r5 = null != arguments[t6] ? arguments[t6] : {};
50451              t6 % 2 ? n2(Object(r5), true).forEach(function(t7) {
50452                i(e6, t7, r5[t7]);
50453              }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e6, Object.getOwnPropertyDescriptors(r5)) : n2(Object(r5)).forEac
50453h(function(t7) {
50454                Object.defineProperty(e6, t7, Object.getOwnPropertyDescriptor(r5, t7));
50455              });
50456            }
50457            return e6;
50458          }({}, t5, { depth: 0, customInspect: false }));
50459        } }], r4 && o(t4.prototype, r4), e4;
50460      }();
50461    }, 7572: (e3, t3, r3) => {
50462      var n2 = r3(9142);
50463      function i(e4, t4) {
50464        a(e4, t4), o(e4);
50465      }
50466      function o(e4) {
50467        e4._writableState && !e4._writableState.emitClose || e4._readableState && !e4._readableState.emitClose || e4.emit("close");
50468      }
50469      function a(e4, t4) {
50470        e4.emit("error", t4);
50471      }
50472      e3.exports = { destroy: function(e4, t4) {
50473        var r4 = this, s = this._readableState && this._readableState.destroyed, u2 = this._writableState && this._writableState.destroyed;
50474        return s || u2 ? (t4 ? t4(e4) : e4 && (this._writableState ? this._writableState.errorEmitted || (this._writableState.errorEmitted = true, n2.nextTick(a, this, e4)) : n2.nextTick(a, this, e4)), this) : (this._readableState && (this._readableState.destroyed = true), this._writableState && (this._writableState.destroyed = true), this._destroy(e4 || null, function(e5) {
50475          !t4 && e5 ? r4._writableState ? r4._writableState.errorEmitted ? n2.nextTick(o, r4) : (r4._writableState.errorEmitted = true, n2.nextTick(i, r4, e5)) : n2.nextTick(i, r4, e5) : t4 ? (n2.nextTick(o, r4), t4(e5)) : n2.nextTick(o, r4);
50476        }), this);
50477      }, undestroy: function() {
50478        this._readableState && (this._readableState.destroyed = false, this._readableState.reading = false, this._readableState.ended = false, this._readableState.endEmitted = false), this._writableState && (this._writableState.destroyed = false, this._writableState.ended = false, this._writableState.ending = false, this._writableState.finalCalled = false, this._writableState.prefinished = false, this._writableState.finished = false, this._writableState.errorEmitted = false);
50479      }, errorOrDestroy: function(e4, t4) {
50480        var r4 = e4._readableState, n3 = e4._writableState;
50481        r4 && r4.autoDestroy || n3 && n3.autoDestroy ? e4.destroy(t4) : e4.emit("error", t4);
50482      } };
50483    }, 5831: (e3, t3, r3) => {
50484      var n2 = r3(9024).q.ERR_STREAM_PREMATURE_CLOSE;
50485      function i() {
50486      }
50487      e3.exports = function e4(t4, r4, o) {
50488        if ("function" == typeof r4)
50489          return e4(t4, null, r4);
50490        r4 || (r4 = {}), o = function(e5) {
50491          var t5 = false;
50492          return function() {
50493            if (!t5) {
50494              t5 = true;
50495              for (var r5 = arguments.length, n3 = new Array(r5), i2 = 0; i2 < r5; i2++)
50496                n3[i2] = arguments[i2];
50497              e5.apply(this, n3);
50498            }
50499          };
50500        }(o || i);
50501        var a = r4.readable || false !== r4.readable && t4.readable, s = r4.writable || false !== r4.writable && t4.writable, u2 = function() {
50502          t4.writable || f2();
50503        }, c2 = t4._writableState && t4._writableState.finished, f2 = function() {
50504          s = false, c2 = true, a || o.call(t4);
50505        }, d2 = t4._readableState && t4._readableState.endEmitted, l2 = function() {
50506          a = false, d2 = true, s || o.call(t4);
50507        }, h2 = function(e5) {
50508          o.call(t4, e5);
50509        }, p2 = function() {
50510          var e5;
50511          return a && !d2 ? (t4._readableState && t4._readableState.ended || (e5 = new n2()), o.call(t4, e5)) : s && !c2 ? (t4._writableState && t4._writableState.ended || (e5 = new n2()), o.call(t4, e5)) : void 0;
50512        }, b2 = function() {
50513          t4.req.on("finish", f2);
50514        };
50515        return function(e5) {
50516          return e5.setHeader && "function" == typeof e5.abort;
50517        }(t4) ? (t4.on("complete", f2), t4.on("abort", p2), t4.req ? b2() : t4.on("request", b2)) : s && !t4._writableState && (t4.on("end", u2), t4.on("close", u2)), t4.on("end", l2), t4.on("finish", f2), false !== r4.error && t4.on("error", h2), t4.on("close", p2), function() {
50518          t4.removeListener("complete", f2), t4.removeListener("abort", p2), t4.removeListener("request", b2), t4.req && t4.req.removeListener("finish", f2), t4.removeListener("end", u2), t4.removeListener("close", u2), t4.removeListener("finish", f2), t4.removeListener("end", l2), t4.removeListener("error", h2), t4.removeListener("close", p2);
50519        };
50520      };
50521    }, 6218: (e3) => {
50522      e3.exports = function() {
50523        throw new Error("Readable.from is not available in the browser");
50524      };
50525    }, 384: (e3, t3, r3) => {
50526      var n2, i = r3(9024).q, o = i.ERR_MISSING_ARGS, a = i.ERR_STREAM_DESTROYED;
50527      function s(e4) {
50528        if (e4)
50529          throw e4;
50530      }
50531      function u2(e4, t4, i2, o2) {
50532        o2 = function(e5) {
50533          var t5 = false;
50534          return function() {
50535            t5 || (t5 = true, e5.apply(void 0, arguments));
50536          };
50537        }(o2);
50538        var s2 = false;
50539        e4.on("close", function() {
50540          s2 = true;
50541        }), void 0 === n2 && (n2 = r3(5831)), n2(e4, { readable: t4, writable: i2 }, function(e5) {
50542          if (e5)
50543            return o2(e5);
50544          s2 = true, o2();
50545        });
50546        var u3 = false;
50547        return function(t5) {
50548          if (!s2 && !u3)
50549            return u3 = true, function(e5) {
50550              return e5.setHeader && "function" == typeof e5.abort;
50551            }(e4) ? e4.abort() : "function" == typeof e4.destroy ? e4.destroy() : void o2(t5 || new a("pipe"));
50552        };
50553      }
50554      function c2(e4) {
50555        e4();
50556      }
50557      function f2(e4, t4) {
50558        return e4.pipe(t4);
50559      }
50560      function d2(e4) {
50561        return e4.length ? "function" != typeof e4[e4.length - 1] ? s : e4.pop() : s;
50562      }
50563      e3.exports = function() {
50564        for (var e4 = arguments.length, t4 = new Array(e4), r4 = 0; r4 < e4; r4++)
50565          t4[r4] = arguments[r4];
50566        var n3, i2 = d2(t4);
50567        if (Array.isArray(t4[0]) && (t4 = t4[0]), t4.length < 2)
50568          throw new o("streams");
50569        var a2 = t4.map(function(e5, r5) {
50570          var o2 = r5 < t4.length - 1;
50571          return u2(e5, o2, r5 > 0, function(e6) {
50572            n3 || (n3 = e6), e6 && a2.forEach(c2), o2 || (a2.forEach(c2), i2(n3));
50573          });
50574        });
50575        return t4.reduce(f2);
50576      };
50577    }, 6756: (e3, t3, r3) => {
50578      var n2 = r3(9024).q.ERR_INVALID_OPT_VALUE;
50579      e3.exports = { getHighWaterMark: function(e4, t4, r4, i) {
50580        var o = function(e5, t5, r5) {
50581          return null != e5.highWaterMark ? e5.highWaterMark : t5 ? e5[r5] : null;
50582        }(t4, i, r4);
50583        if (null != o) {
50584          if (!isFinite(o) || Math.floor(o) !== o || o < 0)
50585            throw new n2(i ? r4 : "highWaterMark", o);
50586          return Math.floor(o);
50587        }
50588        return e4.objectMode ? 16 : 16384;
50589      } };
50590    }, 7144: (e3, t3, r3) => {
50591      e3.exports = r3(8291).EventEmitter;
50592    }, 6505: (e3, t3, r3) => {
50593      (t3 = e3.exports = r3(6297)).Stream = t3, t3.Readable = t3, t3.Writable = r3(1471), t3.Duplex = r3(6884), t3.Transform = r3(9154), t3.PassThrough = r3(3582), t3.finished = r3(5831), t3.pipeline = r3(384);
50594    }, 6707: (e3, t3, r3) => {
50595      var n2 = r3(9033).Buffer, i = r3(1736), o = r3(2353), a = new Array(16), s = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8, 3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12, 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2, 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13], u2 = [5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12, 6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2, 15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13, 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, 14, 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11], c2 = [11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8, 7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12, 11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5, 11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, 5, 12, 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6], f2 = [8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6, 9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11, 9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5, 15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, 5, 15, 8, 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11], d2 = [0, 1518500249, 1859775393, 2400959708, 2840853838], l2 = [1352829926, 1548603684, 1836072691, 2053994217, 0];
50596      function h2() {
50597        o.call(this, 64), this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878, this._e = 3285377520;
50598      }
50599      function p2(e4, t4) {
50600        return e4 << t4 | e4 >>> 32 - t4;
50601      }
50602      function b2(e4, t4, r4, n3, i2, o2, a2, s2) {
50603        return p2(e4 + (t4 ^ r4 ^ n3) + o2 + a2 | 0, s2) + i2 | 0;
50604      }
50605      function y2(e4, t4, r4, n3, i2, o2, a2, s2) {
50606        return p2(e4 + (t4 & r4 | ~t4 & n3) + o2 + a2 | 0, s2) + i2 | 0;
50607      }
50608      function m2(e4, t4, r4, n3, i2, o2, a2, s2) {
50609        return p2(e4 + ((t4 | ~r4) ^ n3) + o2 + a2 | 0, s2) + i2 | 0;
50610      }
50611      function v2(e4, t4, r4, n3, i2, o2, a2, s2) {
50612        return p2(e4 + (t4 & n3 | r4 & ~n3) + o2 + a2 | 0, s2) + i2 | 0;
50613      }
50614      function g2(e4, t4, r4, n3, i2, o2, a2, s2) {
50615        return p2(e4 + (t4 ^ (r4 | ~n3)) + o2 + a2 | 0, s2) + i2 | 0;
50616      }
50617      i(h2, o), h2.prototype._update = function() {
50618        for (var e4 = a, t4 = 0; t4 < 16; ++t4)
50619          e4[t4] = this._block.readInt32LE(4 * t4);
50620        for (var r4 = 0 | this._a, n3 = 0 | this._b, i2 = 0 | this._c, o2 = 0 | this._d, h3 = 0 | this._e, w2 = 0 | this._a, A2 = 0 | this._b, k2 = 0 | this._c, _ = 0 | this._d, S2 = 0 | this._e, x2 = 0; x2 < 80; x2 += 1) {
50621          var E2, P2;
50622          x2 < 16 ? (E2 = b2(r4, n3, i2, o2, h3, e4[s[x2]], d2[0], c2[x2]), P2 = g2(w2, A2, k2, _, S2, e4[u2[x2]], l2[0], f2[x2])) : x2 < 32 ? (E2 = y2(r4, n3, i2, o2, h3, e4[s[x2]], d2[1], c2[x2]), P2 = v2(w2, A2, k2, _, S2, e4[u2[x2]], l2[1], f2[x2])) : x2 < 48 ? (E2 = m2(r4, n3, i2, o2, h3, e4[s[x2]], d2[2], c2[x2]), P2 = m2(w2, A2, k2, _, S2, e4[u2[x2]], l2[2], f2[x2])) : x2 < 64 ? (E2 = v2(r4, n3, i2, o2, h3, e4[s[x2]], d2[3], c2[x2]), P2 = y2(w2, A2, k2, _, S2, e4[u2[x2]], l2[3], f2[x2])) : (E2 = g2(r4, n3, i2, o2, h3, e4[s[x2]], d2[4], c2[x2]), P2 = b2(w2, A2, k2, _, S2, e4[u2[x2]], l2[4], f2[x2])), r4 = h3, h3 = o2, o2 = p2(i2, 10), i2 = n3, n3 = E2, w2 = S2, S2 = _, _ = p2(k2, 10), k2 = A2, A2 = P2;
50623        }
50624        var O2 = this._b + i2 + _ | 0;
50625        this._b = this._c + o2 + S2 | 0, this._c = this._d + h3 + w2 | 0, this._d = this._e + r4 + A2 | 0, this._e = this._a + n3 + k2 | 0, this._a = O2;
50626      }, h2.prototype._digest = function() {
50627        this._block[this._blockOffset++] = 128, this._blockOffset > 56 && (this._block.fill(0, this._blockOffset, 64), this._update(), this._blockOffset = 0), this._block.fill(0, this._blockOffset, 56), this._block.writeUInt32LE(this._length[0], 56), this._block.writeUInt32LE(this._length[1], 60), this._update();
50628        var e4 = n2.alloc ? n2.alloc(20) : new n2(20);
50629        return e4.writeInt32LE(this._a, 0), e4.writeInt32LE(this._b, 4), e4.writeInt32LE(this._c, 8), e4.writeInt32LE(this._d, 12), e4.writeInt32LE(this._e, 16), e4;
50630      }, e3.exports = h2;
50631    }, 6905: (e3, t3, r3) => {
50632      var n2 = r3(9033).Buffer;
50633      Object.defineProperty(t3, "__esModule", { value: true }), t3.getLength = t3.decode = t3.encode = void 0;
50634      var i, o = (i = r3(1734)) && i.__esModule ? i : { default: i };
50635      function a(e4, t4) {
50636        if ("0" === e4[0] && "0" === e4[1])
50637          throw new Error("invalid RLP: extra zeros");
50638        return parseInt(e4, t4);
50639      }
50640      function s(e4, t4) {
50641        if (e4 < 56)
50642          return n2.from([e4 + t4]);
50643        var r4 = f2(e4), i2 = f2(t4 + 55 + r4.length / 2);
50644        return n2.from(i2 + r4, "hex");
50645      }
50646      function u2(e4) {
50647        var t4, r4, i2, o2, s2, c3 = [], f3 = e4[0];
50648        if (f3 <= 127)
50649          return { data: e4.slice(0, 1), remainder: e4.slice(1) };
50650        if (f3 <= 183) {
50651          if (t4 = f3 - 127, i2 = 128 === f3 ? n2.from([]) : e4.slice(1, t4), 2 === t4 && i2[0] < 128)
50652            throw new Error("invalid rlp encoding: byte must be less 0x80");
50653          return { data: i2, remainder: e4.slice(t4) };
50654        }
50655        if (f3 <= 191) {
50656          if (r4 = f3 - 182, e4.length - 1 < r4)
50657            throw new Error("invalid RLP: not enough bytes for string length");
50658          if ((t4 = a(e4.slice(1, r4).toString("hex"), 16)) <= 55)
50659            throw new Error("invalid RLP: expected string length to be greater than 55");
50660          if ((i2 = e4.slice(r4, t4 + r4)).length < t4)
50661            throw new Error("invalid RLP: not enough bytes for string");
50662          return { data: i2, remainder: e4.slice(t4 + r4) };
50663        }
50664        if (f3 <= 247) {
50665          for (t4 = f3 - 191, o2 = e4.slice(1, t4); o2.length; )
50666            s2 = u2(o2), c3.push(s2.data), o2 = s2.remainder;
50667          return { data: c3, remainder: e4.slice(t4) };
50668        }
50669        var d3 = (r4 = f3 - 246) + (t4 = a(e4.slice(1, r4).toString("hex"), 16));
50670        if (d3 > e4.length)
50671          throw new Error("invalid rlp: total length is larger than the data");
50672        if (0 === (o2 = e4.slice(r4, d3)).length)
50673          throw new Error("invalid rlp, List has a invalid length");
50674        for (; o2.length; )
50675          s2 = u2(o2), c3.push(s2.data), o2 = s2.remainder;
50676        return { data: c3, remainder: e4.slice(d3) };
50677      }
50678      function c2(e4) {
50679        return "0x" === e4.slice(0, 2);
50680      }
50681      function f2(e4) {
50682        if (e4 < 0)
50683          throw new Error("Invalid integer as argument, must be unsigned!");
50684        var t4 = e4.toString(16);
50685        return t4.length % 2 ? "0" + t4 : t4;
50686      }
50687      function d2(e4) {
50688        if (!n2.isBuffer(e4)) {
50689          if ("string" == typeof e4)
50690            return c2(e4) ? n2.from((r4 = "string" != typeof (i2 = e4) ? i2 : c2(i2) ? i2.slice(2) : i2).length % 2 ? "0" + r4 : r4, "hex") : n2.from(e4);
50691          if ("number" == typeof e4 || "bigint" == typeof e4)
50692            return e4 ? (t4 = f2(e4), n2.from(t4, "hex")) : n2.from([]);
50693          if (null == e4)
50694            return n2.from([]);
50695          if (e4 instanceof Uint8Array)
50696            return n2.from(e4);
50697          if (o.default.isBN(e4))
50698            return n2.from(e4.toArray());
50699          throw new Error("invalid type");
50700        }
50701        var t4, r4, i2;
50702        return e4;
50703      }
50704      t3.encode = function e4(t4) {
50705        if (Array.isArray(t4)) {
50706          for (var r4 = [], i2 = 0; i2 < t4.length; i2++)
50707            r4.push(e4(t4[i2]));
50708          var o2 = n2.concat(r4);
50709          return n2.concat([s(o2.length, 192), o2]);
50710        }
50711        var a2 = d2(t4);
50712        return 1 === a2.length && a2[0] < 128 ? a2 : n2.concat([s(a2.length, 128), a2]);
50713      }, t3.decode = function(e4, t4) {
50714        if (void 0 === t4 && (t4 = false), !e4 || 0 === e4.length)
50715          return n2.from([]);
50716        var r4 = u2(d2(e4));
50717        if (t4)
50718          return r4;
50719        if (0 !== r4.remainder.length)
50720          throw new Error("invalid remainder");
50721        return r4.data;
50722      }, t3.getLength = function(e4) {
50723        if (!e4 || 0 === e4.length)
50724          return n2.from([]);
50725        var t4 = d2(e4), r4 = t4[0];
50726        if (r4 <= 127)
50727          return t4.length;
50728        if (r4 <= 183)
50729          return r4 - 127;
50730        if (r4 <= 191)
50731          return r4 - 182;
50732        if (r4 <= 247)
50733          return r4 - 191;
50734        var i2 = r4 - 246;
50735        return i2 + a(t4.slice(1, i2).toString("hex"), 16);
50736      };
50737    }, 8850: (e3, t3, r3) => {
50738      var n2 = r3(9033), i = n2.Buffer;
50739      function o(e4, t4) {
50740        for (var r4 in e4)
50741          t4[r4] = e4[r4];
50742      }
50743      function a(e4, t4, r4) {
50744        return i(e4, t4, r4);
50745      }
50746      i.from && i.alloc && i.allocUnsafe && i.allocUnsafeSlow ? e3.exports = n2 : (o(n2, t3), t3.Buffer = a), a.prototype = Object.create(i.prototype), o(i, a), a.from = function(e4, t4, r4) {
50747        if ("number" == typeof e4)
50748          throw new TypeError("Argument must not be a number");
50749        return i(e4, t4, r4);
50750      }, a.alloc = function(e4, t4, r4) {
50751        if ("number" != typeof e4)
50752          throw new TypeError("Argument must be a number");
50753        var n3 = i(e4);
50754        return void 0 !== t4 ? "string" == typeof r4 ? n3.fill(t4, r4) : n3.fill(t4) : n3.fill(0), n3;
50755      }, a.allocUnsafe = function(e4) {
50756        if ("number" != typeof e4)
50757          throw new TypeError("Argument must be a number");
50758        return i(e4);
50759      }, a.allocUnsafeSlow = function(e4) {
50760        if ("number" != typeof e4)
50761          throw new TypeError("Argument must be a number");
50762        return n2.SlowBuffer(e4);
50763      };
50764    }, 1755: (e3, t3, r3) => {
50765      var n2, i = r3(9142), o = r3(8847)(r3(3355)), a = r3(9033), s = a.Buffer, u2 = {};
50766      for (n2 in a)
50767        a.hasOwnProperty(n2) && "SlowBuffer" !== n2 && "Buffer" !== n2 && (u2[n2] = a[n2]);
50768      var c2 = u2.Buffer = {};
50769      for (n2 in s)
50770        s.hasOwnProperty(n2) && "allocUnsafe" !== n2 && "allocUnsafeSlow" !== n2 && (c2[n2] = s[n2]);
50771      if (u2.Buffer.prototype = s.prototype, c2.from && c2.from !== Uint8Array.from || (c2.from = function(e4, t4, r4) {
50772        if ("number" == typeof e4)
50773          throw new TypeError('The "value" argument must not be of type number. Received type ' + (0, o.default)(e4));
50774        if (e4 && void 0 === e4.length)
50775          throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + (0, o.default)(e4));
50776        return s(e4, t4, r4);
50777      }), c2.alloc || (c2.alloc = function(e4, t4, r4) {
50778        if ("number" != typeof e4)
50779          throw new TypeError('The "size" argument must be of type number. Received type ' + (0, o.default)(e4));
50780        if (e4 < 0 || e4 >= 2 * (1 << 30))
50781          throw new RangeError('The value "' + e4 + '" is invali
50781d for option "size"');
50782        var n3 = s(e4);
50783        return t4 && 0 !== t4.length ? "string" == typeof r4 ? n3.fill(t4, r4) : n3.fill(t4) : n3.fill(0), n3;
50784      }), !u2.kStringMaxLength)
50785        try {
50786          u2.kStringMaxLength = i.binding("buffer").kStringMaxLength;
50787        } catch (e4) {
50788        }
50789      u2.constants || (u2.constants = { MAX_LENGTH: u2.kMaxLength }, u2.kStringMaxLength && (u2.constants.MAX_STRING_LENGTH = u2.kStringMaxLength)), e3.exports = u2;
50790    }, 7799: (e3) => {
50791      !function(t3) {
50792        var r3 = 2147483647;
50793        function n2(e4) {
50794          var t4 = new Uint32Array([1116352408, 1899447441, 3049323471, 3921009573, 961987163, 1508970993, 2453635748, 2870763221, 3624381080, 310598401, 607225278, 1426881987, 1925078388, 2162078206, 2614888103, 3248222580, 3835390401, 4022224774, 264347078, 604807628, 770255983, 1249150122, 1555081692, 1996064986, 2554220882, 2821834349, 2952996808, 3210313671, 3336571891, 3584528711, 113926993, 338241895, 666307205, 773529912, 1294757372, 1396182291, 1695183700, 1986661051, 2177026350, 2456956037, 2730485921, 2820302411, 3259730800, 3345764771, 3516065817, 3600352804, 4094571909, 275423344, 430227734, 506948616, 659060556, 883997877, 958139571, 1322822218, 1537002063, 1747873779, 1955562222, 2024104815, 2227730452, 2361852424, 2428436474, 2756734187, 3204031479, 3329325298]), r4 = 1779033703, n3 = 3144134277, i2 = 1013904242, o2 = 2773480762, a2 = 1359893119, s2 = 2600822924, u3 = 528734635, c3 = 1541459225, f3 = new Uint32Array(64);
50795          function d3(e5) {
50796            for (var d4 = 0, l4 = e5.length; l4 >= 64; ) {
50797              var h4 = r4, p3 = n3, b3 = i2, y3 = o2, m3 = a2, v2 = s2, g2 = u3, w2 = c3, A2 = void 0, k2 = void 0, _ = void 0, S2 = void 0, x2 = void 0;
50798              for (k2 = 0; k2 < 16; k2++)
50799                _ = d4 + 4 * k2, f3[k2] = (255 & e5[_]) << 24 | (255 & e5[_ + 1]) << 16 | (255 & e5[_ + 2]) << 8 | 255 & e5[_ + 3];
50800              for (k2 = 16; k2 < 64; k2++)
50801                S2 = ((A2 = f3[k2 - 2]) >>> 17 | A2 << 15) ^ (A2 >>> 19 | A2 << 13) ^ A2 >>> 10, x2 = ((A2 = f3[k2 - 15]) >>> 7 | A2 << 25) ^ (A2 >>> 18 | A2 << 14) ^ A2 >>> 3, f3[k2] = (S2 + f3[k2 - 7] | 0) + (x2 + f3[k2 - 16] | 0) | 0;
50802              for (k2 = 0; k2 < 64; k2++)
50803                S2 = (((m3 >>> 6 | m3 << 26) ^ (m3 >>> 11 | m3 << 21) ^ (m3 >>> 25 | m3 << 7)) + (m3 & v2 ^ ~m3 & g2) | 0) + (w2 + (t4[k2] + f3[k2] | 0) | 0) | 0, x2 = ((h4 >>> 2 | h4 << 30) ^ (h4 >>> 13 | h4 << 19) ^ (h4 >>> 22 | h4 << 10)) + (h4 & p3 ^ h4 & b3 ^ p3 & b3) | 0, w2 = g2, g2 = v2, v2 = m3, m3 = y3 + S2 | 0, y3 = b3, b3 = p3, p3 = h4, h4 = S2 + x2 | 0;
50804              r4 = r4 + h4 | 0, n3 = n3 + p3 | 0, i2 = i2 + b3 | 0, o2 = o2 + y3 | 0, a2 = a2 + m3 | 0, s2 = s2 + v2 | 0, u3 = u3 + g2 | 0, c3 = c3 + w2 | 0, d4 += 64, l4 -= 64;
50805            }
50806          }
50807          d3(e4);
50808          var l3, h3 = e4.length % 64, p2 = e4.length / 536870912 | 0, b2 = e4.length << 3, y2 = h3 < 56 ? 56 : 120, m2 = e4.slice(e4.length - h3, e4.length);
50809          for (m2.push(128), l3 = h3 + 1; l3 < y2; l3++)
50810            m2.push(0);
50811          return m2.push(p2 >>> 24 & 255), m2.push(p2 >>> 16 & 255), m2.push(p2 >>> 8 & 255), m2.push(p2 >>> 0 & 255), m2.push(b2 >>> 24 & 255), m2.push(b2 >>> 16 & 255), m2.push(b2 >>> 8 & 255), m2.push(b2 >>> 0 & 255), d3(m2), [r4 >>> 24 & 255, r4 >>> 16 & 255, r4 >>> 8 & 255, r4 >>> 0 & 255, n3 >>> 24 & 255, n3 >>> 16 & 255, n3 >>> 8 & 255, n3 >>> 0 & 255, i2 >>> 24 & 255, i2 >>> 16 & 255, i2 >>> 8 & 255, i2 >>> 0 & 255, o2 >>> 24 & 255, o2 >>> 16 & 255, o2 >>> 8 & 255, o2 >>> 0 & 255, a2 >>> 24 & 255, a2 >>> 16 & 255, a2 >>> 8 & 255, a2 >>> 0 & 255, s2 >>> 24 & 255, s2 >>> 16 & 255, s2 >>> 8 & 255, s2 >>> 0 & 255, u3 >>> 24 & 255, u3 >>> 16 & 255, u3 >>> 8 & 255, u3 >>> 0 & 255, c3 >>> 24 & 255, c3 >>> 16 & 255, c3 >>> 8 & 255, c3 >>> 0 & 255];
50812        }
50813        function i(e4, t4, r4) {
50814          e4 = e4.length <= 64 ? e4 : n2(e4);
50815          var i2, o2 = 64 + t4.length + 4, a2 = new Array(o2), s2 = new Array(64), u3 = [];
50816          for (i2 = 0; i2 < 64; i2++)
50817            a2[i2] = 54;
50818          for (i2 = 0; i2 < e4.length; i2++)
50819            a2[i2] ^= e4[i2];
50820          for (i2 = 0; i2 < t4.length; i2++)
50821            a2[64 + i2] = t4[i2];
50822          for (i2 = o2 - 4; i2 < o2; i2++)
50823            a2[i2] = 0;
50824          for (i2 = 0; i2 < 64; i2++)
50825            s2[i2] = 92;
50826          for (i2 = 0; i2 < e4.length; i2++)
50827            s2[i2] ^= e4[i2];
50828          function c3() {
50829            for (var e5 = o2 - 1; e5 >= o2 - 4; e5--) {
50830              if (a2[e5]++, a2[e5] <= 255)
50831                return;
50832              a2[e5] = 0;
50833            }
50834          }
50835          for (; r4 >= 32; )
50836            c3(), u3 = u3.concat(n2(s2.concat(n2(a2)))), r4 -= 32;
50837          return r4 > 0 && (c3(), u3 = u3.concat(n2(s2.concat(n2(a2))).slice(0, r4))), u3;
50838        }
50839        function o(e4, t4, r4, n3, i2) {
50840          var o2;
50841          for (c2(e4, 16 * (2 * r4 - 1), i2, 0, 16), o2 = 0; o2 < 2 * r4; o2++)
50842            u2(e4, 16 * o2, i2, 16), s(i2, n3), c2(i2, 0, e4, t4 + 16 * o2, 16);
50843          for (o2 = 0; o2 < r4; o2++)
50844            c2(e4, t4 + 2 * o2 * 16, e4, 16 * o2, 16);
50845          for (o2 = 0; o2 < r4; o2++)
50846            c2(e4, t4 + 16 * (2 * o2 + 1), e4, 16 * (o2 + r4), 16);
50847        }
50848        function a(e4, t4) {
50849          return e4 << t4 | e4 >>> 32 - t4;
50850        }
50851        function s(e4, t4) {
50852          c2(e4, 0, t4, 0, 16);
50853          for (var r4 = 8; r4 > 0; r4 -= 2)
50854            t4[4] ^= a(t4[0] + t4[12], 7), t4[8] ^= a(t4[4] + t4[0], 9), t4[12] ^= a(t4[8] + t4[4], 13), t4[0] ^= a(t4[12] + t4[8], 18), t4[9] ^= a(t4[5] + t4[1], 7), t4[13] ^= a(t4[9] + t4[5], 9), t4[1] ^= a(t4[13] + t4[9], 13), t4[5] ^= a(t4[1] + t4[13], 18), t4[14] ^= a(t4[10] + t4[6], 7), t4[2] ^= a(t4[14] + t4[10], 9), t4[6] ^= a(t4[2] + t4[14], 13), t4[10] ^= a(t4[6] + t4[2], 18), t4[3] ^= a(t4[15] + t4[11], 7), t4[7] ^= a(t4[3] + t4[15], 9), t4[11] ^= a(t4[7] + t4[3], 13), t4[15] ^= a(t4[11] + t4[7], 18), t4[1] ^= a(t4[0] + t4[3], 7), t4[2] ^= a(t4[1] + t4[0], 9), t4[3] ^= a(t4[2] + t4[1], 13), t4[0] ^= a(t4[3] + t4[2], 18), t4[6] ^= a(t4[5] + t4[4], 7), t4[7] ^= a(t4[6] + t4[5], 9), t4[4] ^= a(t4[7] + t4[6], 13), t4[5] ^= a(t4[4] + t4[7], 18), t4[11] ^= a(t4[10] + t4[9], 7), t4[8] ^= a(t4[11] + t4[10], 9), t4[9] ^= a(t4[8] + t4[11], 13), t4[10] ^= a(t4[9] + t4[8], 18), t4[12] ^= a(t4[15] + t4[14], 7), t4[13] ^= a(t4[12] + t4[15], 9), t4[14] ^= a(t4[13] + t4[12], 13), t4[15] ^= a(t4[14] + t4[13], 18);
50855          for (var n3 = 0; n3 < 16; ++n3)
50856            e4[n3] += t4[n3];
50857        }
50858        function u2(e4, t4, r4, n3) {
50859          for (var i2 = 0; i2 < n3; i2++)
50860            r4[i2] ^= e4[t4 + i2];
50861        }
50862        function c2(e4, t4, r4, n3, i2) {
50863          for (; i2--; )
50864            r4[n3++] = e4[t4++];
50865        }
50866        function f2(e4) {
50867          if (!e4 || "number" != typeof e4.length)
50868            return false;
50869          for (var t4 = 0; t4 < e4.length; t4++) {
50870            var r4 = e4[t4];
50871            if ("number" != typeof r4 || r4 % 1 || r4 < 0 || r4 >= 256)
50872              return false;
50873          }
50874          return true;
50875        }
50876        function d2(e4, t4) {
50877          if ("number" != typeof e4 || e4 % 1)
50878            throw new Error("invalid " + t4);
50879          return e4;
50880        }
50881        function l2(e4, t4, n3, a2, s2, l3, h3) {
50882          if (n3 = d2(n3, "N"), a2 = d2(a2, "r"), s2 = d2(s2, "p"), l3 = d2(l3, "dkLen"), 0 === n3 || 0 != (n3 & n3 - 1))
50883            throw new Error("N must be power of 2");
50884          if (n3 > r3 / 128 / a2)
50885            throw new Error("N too large");
50886          if (a2 > r3 / 128 / s2)
50887            throw new Error("r too large");
50888          if (!f2(e4))
50889            throw new Error("password must be an array or buffer");
50890          if (e4 = Array.prototype.slice.call(e4), !f2(t4))
50891            throw new Error("salt must be an array or buffer");
50892          t4 = Array.prototype.slice.call(t4);
50893          for (var p2 = i(e4, t4, 128 * s2 * a2), b2 = new Uint32Array(32 * s2 * a2), y2 = 0; y2 < b2.length; y2++) {
50894            var m2 = 4 * y2;
50895            b2[y2] = (255 & p2[m2 + 3]) << 24 | (255 & p2[m2 + 2]) << 16 | (255 & p2[m2 + 1]) << 8 | (255 & p2[m2 + 0]) << 0;
50896          }
50897          var v2, g2, w2 = new Uint32Array(64 * a2), A2 = new Uint32Array(32 * a2 * n3), k2 = 32 * a2, _ = new Uint32Array(16), S2 = new Uint32Array(16), x2 = s2 * n3 * 2, E2 = 0, P2 = null, O2 = false, B2 = 0, T2 = 0, C2 = h3 ? parseInt(1e3 / a2) : 4294967295, I2 = "undefined" != typeof setImmediate ? setImmediate : setTimeout, M2 = function t5() {
50898            if (O2)
50899              return h3(new Error("cancelled"), E2 / x2);
50900            var r4;
50901            switch (B2) {
50902              case 0:
50903                c2(b2, g2 = 32 * T2 * a2, w2, 0, k2), B2 = 1, v2 = 0;
50904              case 1:
50905                (r4 = n3 - v2) > C2 && (r4 = C2);
50906                for (var f3 = 0; f3 < r4; f3++)
50907                  c2(w2, 0, A2, (v2 + f3) * k2, k2), o(w2, k2, a2, _, S2);
50908                if (v2 += r4, E2 += r4, h3) {
50909                  var d3 = parseInt(1e3 * E2 / x2);
50910                  if (d3 !== P2) {
50911                    if (O2 = h3(null, E2 / x2))
50912                      break;
50913                    P2 = d3;
50914                  }
50915                }
50916                if (v2 < n3)
50917                  break;
50918                v2 = 0, B2 = 2;
50919              case 2:
50920                (r4 = n3 - v2) > C2 && (r4 = C2);
50921                for (var y3 = 0; y3 < r4; y3++) {
50922                  var m3 = w2[16 * (2 * a2 - 1)] & n3 - 1;
50923                  u2(A2, m3 * k2, w2, k2), o(w2, k2, a2, _, S2);
50924                }
50925                if (v2 += r4, E2 += r4, h3) {
50926                  var M3 = parseInt(1e3 * E2 / x2);
50927                  if (M3 !== P2) {
50928                    if (O2 = h3(null, E2 / x2))
50929                      break;
50930                    P2 = M3;
50931                  }
50932                }
50933                if (v2 < n3)
50934                  break;
50935                if (c2(w2, 0, b2, g2, k2), ++T2 < s2) {
50936                  B2 = 0;
50937                  break;
50938                }
50939                p2 = [];
50940                for (var U3 = 0; U3 < b2.length; U3++)
50941                  p2.push(b2[U3] >> 0 & 255), p2.push(b2[U3] >> 8 & 255), p2.push(b2[U3] >> 16 & 255), p2.push(b2[U3] >> 24 & 255);
50942                var R2 = i(e4, p2, l3);
50943                return h3 && h3(null, 1, R2), R2;
50944            }
50945            h3 && I2(t5);
50946          };
50947          if (!h3)
50948            for (; ; ) {
50949              var U2 = M2();
50950              if (null != U2)
50951                return U2;
50952            }
50953          M2();
50954        }
50955        var h2 = { scrypt: function(e4, t4, r4, n3, i2, o2, a2) {
50956          return new Promise(function(s2, u3) {
50957            var c3 = 0;
50958            a2 && a2(0), l2(e4, t4, r4, n3, i2, o2, function(e5, t5, r5) {
50959              if (e5)
50960                u3(e5);
50961              else if (r5)
50962                a2 && 1 !== c3 && a2(1), s2(new Uint8Array(r5));
50963              else if (a2 && t5 !== c3)
50964                return c3 = t5, a2(t5);
50965            });
50966          });
50967        }, syncScrypt: function(e4, t4, r4, n3, i2, o2) {
50968          return new Uint8Array(l2(e4, t4, r4, n3, i2, o2));
50969        } };
50970        e3.exports = h2;
50971      }();
50972    }, 7902: (e3, t3, r3) => {
50973      e3.exports = r3(6922)(r3(8123));
50974    }, 8123: (e3, t3, r3) => {
50975      var n2 = new (r3(6597)).ec("secp256k1"), i = n2.curve, o = i.n.constructor;
50976      function a(e4) {
50977        var t4 = e4[0];
50978        switch (t4) {
50979          case 2:
50980          case 3:
50981            return 33 !== e4.length ? null : function(e5, t5) {
50982              var r4 = new o(t5);
50983              if (r4.cmp(i.p) >= 0)
50984                return null;
50985              var a2 = (r4 = r4.toRed(i.red)).redSqr().redIMul(r4).redIAdd(i.b).redSqrt();
50986              return 3 === e5 !== a2.isOdd() && (a2 = a2.redNeg()), n2.keyPair({ pub: { x: r4, y: a2 } });
50987            }(t4, e4.subarray(1, 33));
50988          case 4:
50989          case 6:
50990          case 7:
50991            return 65 !== e4.length ? null : function(e5, t5, r4) {
50992              var a2 = new o(t5), s2 = new o(r4);
50993              if (a2.cmp(i.p) >= 0 || s2.cmp(i.p) >= 0)
50994                return null;
50995              if (a2 = a2.toRed(i.red), s2 = s2.toRed(i.red), (6 === e5 || 7 === e5) && s2.isOdd() !== (7 === e5))
50996                return null;
50997              var u2 = a2.redSqr().redIMul(a2);
50998              return s2.redSqr().redISub(u2.redIAdd(i.b)).isZero() ? n2.keyPair({ pub: { x: a2, y: s2 } }) : null;
50999            }(t4, e4.subarray(1, 33), e4.subarray(33, 65));
51000          default:
51001            return null;
51002        }
51003      }
51004      function s(e4, t4) {
51005        for (var r4 = t4.encode(null, 33 === e4.length), n3 = 0; n3 < e4.length; ++n3)
51006          e4[n3] = r4[n3];
51007      }
51008      e3.exports = { contextRandomize: function() {
51009        return 0;
51010      }, privateKeyVerify: function(e4) {
51011        var t4 = new o(e4);
51012        return t4.cmp(i.n) < 0 && !t4.isZero() ? 0 : 1;
51013      }, privateKeyNegate: function(e4) {
51014        var t4 = new o(e4), r4 = i.n.sub(t4).umod(i.n).toArrayLike(Uint8Array, "be", 32);
51015        return e4.set(r4), 0;
51016      }, privateKeyTweakAdd: function(e4, t4) {
51017        var r4 = new o(t4);
51018        if (r4.cmp(i.n) >= 0)
51019          return 1;
51020        if (r4.iadd(new o(e4)), r4.cmp(i.n) >= 0 && r4.isub(i.n), r4.isZero())
51021          return 1;
51022        var n3 = r4.toArrayLike(Uint8Array, "be", 32);
51023        return e4.set(n3), 0;
51024      }, privateKeyTweakMul: function(e4, t4) {
51025        var r4 = new o(t4);
51026        if (r4.cmp(i.n) >= 0 || r4.isZero())
51027          return 1;
51028        r4.imul(new o(e4)), r4.cmp(i.n) >= 0 && (r4 = r4.umod(i.n));
51029        var n3 = r4.toArrayLike(Uint8Array, "be", 32);
51030        return e4.set(n3), 0;
51031      }, publicKeyVerify: function(e4) {
51032        return null === a(e4) ? 1 : 0;
51033      }, publicKeyCreate: function(e4, t4) {
51034        var r4 = new o(t4);
51035        return r4.cmp(i.n) >= 0 || r4.isZero() ? 1 : (s(e4, n2.keyFromPrivate(t4).getPublic()), 0);
51036      }, publicKeyConvert: function(e4, t4) {
51037        var r4 = a(t4);
51038        return null === r4 ? 1 : (s(e4, r4.getPublic()), 0);
51039      }, publicKeyNegate: function(e4, t4) {
51040        var r4 = a(t4);
51041        if (null === r4)
51042          return 1;
51043        var n3 = r4.getPublic();
51044        return n3.y = n3.y.redNeg(), s(e4, n3), 0;
51045      }, publicKeyCombine: function(e4, t4) {
51046        for (var r4 = new Array(t4.length), n3 = 0; n3 < t4.length; ++n3)
51047          if (r4[n3] = a(t4[n3]), null === r4[n3])
51048            return 1;
51049        for (var i2 = r4[0].getPublic(), o2 = 1; o2 < r4.length; ++o2)
51050          i2 = i2.add(r4[o2].pub);
51051        return i2.isInfinity() ? 2 : (s(e4, i2), 0);
51052      }, publicKeyTweakAdd: function(e4, t4, r4) {
51053        var n3 = a(t4);
51054        if (null === n3)
51055          return 1;
51056        if ((r4 = new o(r4)).cmp(i.n) >= 0)
51057          return 2;
51058        var u2 = n3.getPublic().add(i.g.mul(r4));
51059        return u2.isInfinity() ? 2 : (s(e4, u2), 0);
51060      }, publicKeyTweakMul: function(e4, t4, r4) {
51061        var n3 = a(t4);
51062        return null === n3 ? 1 : (r4 = new o(r4)).cmp(i.n) >= 0 || r4.isZero() ? 2 : (s(e4, n3.getPublic().mul(r4)), 0);
51063      }, signatureNormalize: function(e4) {
51064        var t4 = new o(e4.subarray(0, 32)), r4 = new o(e4.subarray(32, 64));
51065        return t4.cmp(i.n) >= 0 || r4.cmp(i.n) >= 0 ? 1 : (1 === r4.cmp(n2.nh) && e4.set(i.n.sub(r4).toArrayLike(Uint8Array, "be", 32), 32), 0);
51066      }, signatureExport: function(e4, t4) {
51067        var r4 = t4.subarray(0, 32), n3 = t4.subarray(32, 64);
51068        if (new o(r4).cmp(i.n) >= 0)
51069          return 1;
51070        if (new o(n3).cmp(i.n) >= 0)
51071          return 1;
51072        var a2 = e4.output, s2 = a2.subarray(4, 37);
51073        s2[0] = 0, s2.set(r4, 1);
51074        for (var u2 = 33, c2 = 0; u2 > 1 && 0 === s2[c2] && !(128 & s2[c2 + 1]); --u2, ++c2)
51075          ;
51076        if (128 & (s2 = s2.subarray(c2))[0])
51077          return 1;
51078        if (u2 >
51078 1 && 0 === s2[0] && !(128 & s2[1]))
51079          return 1;
51080        var f2 = a2.subarray(39, 72);
51081        f2[0] = 0, f2.set(n3, 1);
51082        for (var d2 = 33, l2 = 0; d2 > 1 && 0 === f2[l2] && !(128 & f2[l2 + 1]); --d2, ++l2)
51083          ;
51084        return 128 & (f2 = f2.subarray(l2))[0] || d2 > 1 && 0 === f2[0] && !(128 & f2[1]) ? 1 : (e4.outputlen = 6 + u2 + d2, a2[0] = 48, a2[1] = e4.outputlen - 2, a2[2] = 2, a2[3] = s2.length, a2.set(s2, 4), a2[4 + u2] = 2, a2[5 + u2] = f2.length, a2.set(f2, 6 + u2), 0);
51085      }, signatureImport: function(e4, t4) {
51086        if (t4.length < 8)
51087          return 1;
51088        if (t4.length > 72)
51089          return 1;
51090        if (48 !== t4[0])
51091          return 1;
51092        if (t4[1] !== t4.length - 2)
51093          return 1;
51094        if (2 !== t4[2])
51095          return 1;
51096        var r4 = t4[3];
51097        if (0 === r4)
51098          return 1;
51099        if (5 + r4 >= t4.length)
51100          return 1;
51101        if (2 !== t4[4 + r4])
51102          return 1;
51103        var n3 = t4[5 + r4];
51104        if (0 === n3)
51105          return 1;
51106        if (6 + r4 + n3 !== t4.length)
51107          return 1;
51108        if (128 & t4[4])
51109          return 1;
51110        if (r4 > 1 && 0 === t4[4] && !(128 & t4[5]))
51111          return 1;
51112        if (128 & t4[r4 + 6])
51113          return 1;
51114        if (n3 > 1 && 0 === t4[r4 + 6] && !(128 & t4[r4 + 7]))
51115          return 1;
51116        var a2 = t4.subarray(4, 4 + r4);
51117        if (33 === a2.length && 0 === a2[0] && (a2 = a2.subarray(1)), a2.length > 32)
51118          return 1;
51119        var s2 = t4.subarray(6 + r4);
51120        if (33 === s2.length && 0 === s2[0] && (s2 = s2.slice(1)), s2.length > 32)
51121          throw new Error("S length is too long");
51122        var u2 = new o(a2);
51123        u2.cmp(i.n) >= 0 && (u2 = new o(0));
51124        var c2 = new o(t4.subarray(6 + r4));
51125        return c2.cmp(i.n) >= 0 && (c2 = new o(0)), e4.set(u2.toArrayLike(Uint8Array, "be", 32), 0), e4.set(c2.toArrayLike(Uint8Array, "be", 32), 32), 0;
51126      }, ecdsaSign: function(e4, t4, r4, a2, s2) {
51127        if (s2) {
51128          var u2 = s2;
51129          s2 = function(e5) {
51130            var n3 = u2(t4, r4, null, a2, e5);
51131            if (!(n3 instanceof Uint8Array && 32 === n3.length))
51132              throw new Error("This is the way");
51133            return new o(n3);
51134          };
51135        }
51136        var c2, f2 = new o(r4);
51137        if (f2.cmp(i.n) >= 0 || f2.isZero())
51138          return 1;
51139        try {
51140          c2 = n2.sign(t4, r4, { canonical: true, k: s2, pers: a2 });
51141        } catch (e5) {
51142          return 1;
51143        }
51144        return e4.signature.set(c2.r.toArrayLike(Uint8Array, "be", 32), 0), e4.signature.set(c2.s.toArrayLike(Uint8Array, "be", 32), 32), e4.recid = c2.recoveryParam, 0;
51145      }, ecdsaVerify: function(e4, t4, r4) {
51146        var s2 = { r: e4.subarray(0, 32), s: e4.subarray(32, 64) }, u2 = new o(s2.r), c2 = new o(s2.s);
51147        if (u2.cmp(i.n) >= 0 || c2.cmp(i.n) >= 0)
51148          return 1;
51149        if (1 === c2.cmp(n2.nh) || u2.isZero() || c2.isZero())
51150          return 3;
51151        var f2 = a(r4);
51152        if (null === f2)
51153          return 2;
51154        var d2 = f2.getPublic();
51155        return n2.verify(t4, s2, d2) ? 0 : 3;
51156      }, ecdsaRecover: function(e4, t4, r4, a2) {
51157        var u2, c2 = { r: t4.slice(0, 32), s: t4.slice(32, 64) }, f2 = new o(c2.r), d2 = new o(c2.s);
51158        if (f2.cmp(i.n) >= 0 || d2.cmp(i.n) >= 0)
51159          return 1;
51160        if (f2.isZero() || d2.isZero())
51161          return 2;
51162        try {
51163          u2 = n2.recoverPubKey(a2, c2, r4);
51164        } catch (e5) {
51165          return 2;
51166        }
51167        return s(e4, u2), 0;
51168      }, ecdh: function(e4, t4, r4, s2, u2, c2, f2) {
51169        var d2 = a(t4);
51170        if (null === d2)
51171          return 1;
51172        var l2 = new o(r4);
51173        if (l2.cmp(i.n) >= 0 || l2.isZero())
51174          return 2;
51175        var h2 = d2.getPublic().mul(l2);
51176        if (void 0 === u2)
51177          for (var p2 = h2.encode(null, true), b2 = n2.hash().update(p2).digest(), y2 = 0; y2 < 32; ++y2)
51178            e4[y2] = b2[y2];
51179        else {
51180          c2 || (c2 = new Uint8Array(32));
51181          for (var m2 = h2.getX().toArray("be", 32), v2 = 0; v2 < 32; ++v2)
51182            c2[v2] = m2[v2];
51183          f2 || (f2 = new Uint8Array(32));
51184          for (var g2 = h2.getY().toArray("be", 32), w2 = 0; w2 < 32; ++w2)
51185            f2[w2] = g2[w2];
51186          var A2 = u2(c2, f2, s2);
51187          if (!(A2 instanceof Uint8Array && A2.length === e4.length))
51188            return 2;
51189          e4.set(A2);
51190        }
51191        return 0;
51192      } };
51193    }, 6922: (e3) => {
51194      function t3(e4, t4) {
51195        var n3 = "undefined" != typeof Symbol && e4[Symbol.iterator] || e4["@@iterator"];
51196        if (!n3) {
51197          if (Array.isArray(e4) || (n3 = function(e5, t5) {
51198            if (e5) {
51199              if ("string" == typeof e5)
51200                return r3(e5, t5);
51201              var n4 = Object.prototype.toString.call(e5).slice(8, -1);
51202              return "Object" === n4 && e5.constructor && (n4 = e5.constructor.name), "Map" === n4 || "Set" === n4 ? Array.from(e5) : "Arguments" === n4 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n4) ? r3(e5, t5) : void 0;
51203            }
51204          }(e4)) || t4 && e4 && "number" == typeof e4.length) {
51205            n3 && (e4 = n3);
51206            var i2 = 0, o2 = function() {
51207            };
51208            return { s: o2, n: function() {
51209              return i2 >= e4.length ? { done: true } : { done: false, value: e4[i2++] };
51210            }, e: function(e5) {
51211              throw e5;
51212            }, f: o2 };
51213          }
51214          throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
51215        }
51216        var a2, s2 = true, u3 = false;
51217        return { s: function() {
51218          n3 = n3.call(e4);
51219        }, n: function() {
51220          var e5 = n3.next();
51221          return s2 = e5.done, e5;
51222        }, e: function(e5) {
51223          u3 = true, a2 = e5;
51224        }, f: function() {
51225          try {
51226            s2 || null == n3.return || n3.return();
51227          } finally {
51228            if (u3)
51229              throw a2;
51230          }
51231        } };
51232      }
51233      function r3(e4, t4) {
51234        (null == t4 || t4 > e4.length) && (t4 = e4.length);
51235        for (var r4 = 0, n3 = new Array(t4); r4 < t4; r4++)
51236          n3[r4] = e4[r4];
51237        return n3;
51238      }
51239      var n2 = "Impossible case. Please create issue.", i = "The tweak was out of range or the resulted private key is invalid", o = "The tweak was out of range or equal to zero", a = "Private Key is invalid", s = "Public Key could not be parsed", u2 = "Public Key serialization error", c2 = "The sum of the public keys is not valid", f2 = "Signature could not be parsed", d2 = "The nonce generation function failed, or the private key was invalid", l2 = "Public key could not be recover", h2 = "Scalar was invali
51239d (zero or overflow)";
51240      function p2(e4, t4) {
51241        if (!e4)
51242          throw new Error(t4);
51243      }
51244      function b2(e4, t4, r4) {
51245        if (p2(t4 instanceof Uint8Array, "Expected ".concat(e4, " to be an Uint8Array")), void 0 !== r4)
51246          if (Array.isArray(r4)) {
51247            var n3 = r4.join(", "), i2 = "Expected ".concat(e4, " to be an Uint8Array with length [").concat(n3, "]");
51248            p2(r4.includes(t4.length), i2);
51249          } else {
51250            var o2 = "Expected ".concat(e4, " to be an Uint8Array with length ").concat(r4);
51251            p2(t4.length === r4, o2);
51252          }
51253      }
51254      function y2(e4) {
51255        p2("Boolean" === v2(e4), "Expected compressed to be a Boolean");
51256      }
51257      function m2() {
51258        var e4 = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : function(e5) {
51259          return new Uint8Array(e5);
51260        }, t4 = arguments.length > 1 ? arguments[1] : void 0;
51261        return "function" == typeof e4 && (e4 = e4(t4)), b2("output", e4, t4), e4;
51262      }
51263      function v2(e4) {
51264        return Object.prototype.toString.call(e4).slice(8, -1);
51265      }
51266      e3.exports = function(e4) {
51267        return { contextRandomize: function(t4) {
51268          if (p2(null === t4 || t4 instanceof Uint8Array, "Expected seed to be an Uint8Array or null"), null !== t4 && b2("seed", t4, 32), 1 === e4.contextRandomize(t4))
51269            throw new Error("Unknow error on context randomization");
51270        }, privateKeyVerify: function(t4) {
51271          return b2("private key", t4, 32), 0 === e4.privateKeyVerify(t4);
51272        }, privateKeyNegate: function(t4) {
51273          switch (b2("private key", t4, 32), e4.privateKeyNegate(t4)) {
51274            case 0:
51275              return t4;
51276            case 1:
51277              throw new Error(n2);
51278          }
51279        }, privateKeyTweakAdd: function(t4, r4) {
51280          switch (b2("private key", t4, 32), b2("tweak", r4, 32), e4.privateKeyTweakAdd(t4, r4)) {
51281            case 0:
51282              return t4;
51283            case 1:
51284              throw new Error(i);
51285          }
51286        }, privateKeyTweakMul: function(t4, r4) {
51287          switch (b2("private key", t4, 32), b2("tweak", r4, 32), e4.privateKeyTweakMul(t4, r4)) {
51288            case 0:
51289              return t4;
51290            case 1:
51291              throw new Error(o);
51292          }
51293        }, publicKeyVerify: function(t4) {
51294          return b2("public key", t4, [33, 65]), 0 === e4.publicKeyVerify(t4);
51295        }, publicKeyCreate: function(t4) {
51296          var r4 = !(arguments.length > 1 && void 0 !== arguments[1]) || arguments[1], n3 = arguments.length > 2 ? arguments[2] : void 0;
51297          switch (b2("private key", t4, 32), y2(r4), n3 = m2(n3, r4 ? 33 : 65), e4.publicKeyCreate(n3, t4)) {
51298            case 0:
51299              return n3;
51300            case 1:
51301              throw new Error(a);
51302            case 2:
51303              throw new Error(u2);
51304          }
51305        }, publicKeyConvert: function(t4) {
51306          var r4 = !(arguments.length > 1 && void 0 !== arguments[1]) || arguments[1], n3 = arguments.length > 2 ? arguments[2] : void 0;
51307          switch (b2("public key", t4, [33, 65]), y2(r4), n3 = m2(n3, r4 ? 33 : 65), e4.publicKeyConvert(n3, t4)) {
51308            case 0:
51309              return n3;
51310            case 1:
51311              throw new Error(s);
51312            case 2:
51313              throw new Error(u2);
51314          }
51315        }, publicKeyNegate: function(t4) {
51316          var r4 = !(arguments.length > 1 && void 0 !== arguments[1]) || arguments[1], i2 = arguments.length > 2 ? arguments[2] : void 0;
51317          switch (b2("public key", t4, [33, 65]), y2(r4), i2 = m2(i2, r4 ? 33 : 65), e4.publicKeyNegate(i2, t4)) {
51318            case 0:
51319              return i2;
51320            case 1:
51321              throw new Error(s);
51322            case 2:
51323              throw new Error(n2);
51324            case 3:
51325              throw new Error(u2);
51326          }
51327        }, publicKeyCombine: function(r4) {
51328          var n3 = !(arguments.length > 1 && void 0 !== arguments[1]) || arguments[1], i2 = arguments.length > 2 ? arguments[2] : void 0;
51329          p2(Array.isArray(r4), "Expected public keys to be an Array"), p2(r4.length > 0, "Expected public keys array will have more than zero items");
51330          var o2, a2 = t3(r4);
51331          try {
51332            for (a2.s(); !(o2 = a2.n()).done; ) {
51333              var f3 = o2.value;
51334              b2("public key", f3, [33, 65]);
51335            }
51336          } catch (e5) {
51337            a2.e(e5);
51338          } finally {
51339            a2.f();
51340          }
51341          switch (y2(n3), i2 = m2(i2, n3 ? 33 : 65), e4.publicKeyCombine(i2, r4)) {
51342            case 0:
51343              return i2;
51344            case 1:
51345              throw new Error(s);
51346            case 2:
51347              throw new Error(c2);
51348            case 3:
51349              throw new Error(u2);
51350          }
51351        }, publicKeyTweakAdd: function(t4, r4) {
51352          var n3 = !(arguments.length > 2 && void 0 !== arguments[2]) || arguments[2], o2 = arguments.length > 3 ? arguments[3] : void 0;
51353          switch (b2("public key", t4, [33, 65]), b2("tweak", r4, 32), y2(n3), o2 = m2(o2, n3 ? 33 : 65), e4.publicKeyTweakAdd(o2, t4, r4)) {
51354            case 0:
51355              return o2;
51356            case 1:
51357              throw new Error(s);
51358            case 2:
51359              throw new Error(i);
51360          }
51361        }, publicKeyTweakMul: function(t4, r4) {
51362          var n3 = !(arguments.length > 2 && void 0 !== arguments[2]) || arguments[2], i2 = arguments.length > 3 ? arguments[3] : void 0;
51363          switch (b2("public key", t4, [33, 65]), b2("tweak", r4, 32), y2(n3), i2 = m2(i2, n3 ? 33 : 65), e4.publicKeyTweakMul(i2, t4, r4)) {
51364            case 0:
51365              return i2;
51366            case 1:
51367              throw new Error(s);
51368            case 2:
51369              throw new Error(o);
51370          }
51371        }, signatureNormalize: function(t4) {
51372          switch (b2("signature", t4, 64), e4.signatureNormalize(t4)) {
51373            case 0:
51374              return t4;
51375            case 1:
51376              throw new Error(f2);
51377          }
51378        }, signatureExport: function(t4, r4) {
51379          b2("signature", t4, 64);
51380          var i2 = { output: r4 = m2(r4, 72), outputlen: 72 };
51381          switch (e4.signatureExport(i2, t4)) {
51382            case 0:
51383              return r4.slice(0, i2.outputlen);
51384            case 1:
51385              throw new Error(f2);
51386            case 2:
51387              throw new Error(n2);
51388          }
51389        }, signatureImport: function(t4, r4) {
51390          switch (b2("signature", t4), r4 = m2(r4, 64), e4.signatureImport(r4, t4)) {
51391            case 0:
51392              return r4;
51393            case 1:
51394              throw new Error(f2);
51395            case 2:
51396              throw new Error(n2);
51397          }
51398        }, ecdsaSign: function(t4, r4) {
51399          var i2 = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}, o2 = arguments.length > 3 ? arguments[3] : void 0;
51400          b2("message", t4, 32), b2("private key", r4, 32), p2("Object" === v2(i2), "Expected options to be an Object"), void 0 !== i2.data && b2("options.data", i2.data), void 0 !== i2.noncefn && p2("Function" === v2(i2.noncefn), "Expected options.noncefn to be a Function");
51401          var a2 = { signature: o2 = m2(o2, 64), recid: null };
51402          switch (e4.ecdsaSign(a2, t4, r4, i2.data, i2.noncefn)) {
51403            case 0:
51404              return a2;
51405            case 1:
51406              throw new Error(d2);
51407            case 2:
51408              throw new Error(n2);
51409          }
51410        }, ecdsaVerify: function(t4, r4, n3) {
51411          switch (b2("signature", t4, 64), b2("message", r4, 32), b2("public key", n3, [33, 65]), e4.ecdsaVerify(t4, r4, n3)) {
51412            case 0:
51413              return true;
51414            case 3:
51415              return false;
51416            case 1:
51417              throw new Error(f2);
51418            case 2:
51419              throw new Error(s);
51420          }
51421        }, ecdsaRecover: function(t4, r4, i2) {
51422          var o2 = !(arguments.length > 3 && void 0 !== arguments[3]) || arguments[3], a2 = arguments.length > 4 ? arguments[4] : void 0;
51423          switch (b2("signature", t4, 64), p2("Number" === v2(r4) && r4 >= 0 && r4 <= 3, "Expected recovery id to be a Number within interval [0, 3]"), b2("message", i2, 32), y2(o2), a2 = m2(a2, o2 ? 33 : 65), e4.ecdsaRecover(a2, t4, r4, i2)) {
51424            case 0:
51425              return a2;
51426            case 1:
51427              throw new Error(f2);
51428            case 2:
51429              throw new Error(l2);
51430            case 3:
51431              throw new Error(n2);
51432          }
51433        }, ecdh: function(t4, r4) {
51434          var n3 = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}, i2 = arguments.length > 3 ? arguments[3] : void 0;
51435          switch (b2("public key", t4, [33, 65]), b2("private key", r4, 32), p2("Object" === v2(n3), "Expected options to be an Object"), void 0 !== n3.data && b2("options.data", n3.data), void 0 !== n3.hashfn ? (p2("Function" === v2(n3.hashfn), "Expected options.hashfn to be a Function"), void 0 !== n3.xbuf && b2("options.xbuf", n3.xbuf, 32), void 0 !== n3.ybuf && b2("options.ybuf", n3.ybuf, 32), b2("output", i2)) : i2 = m2(i2, 32), e4.ecdh(i2, t4, r4, n3.data, n3.hashfn, n3.xbuf, n3.ybuf)) {
51436            case 0:
51437              return i2;
51438            case 1:
51439              throw new Error(s);
51440            case 2:
51441              throw new Error(h2);
51442          }
51443        } };
51444      };
51445    }, 6003: (e3, t3, r3) => {
51446      var n2 = r3(8850).Buffer;
51447      function i(e4, t4) {
51448        this._block = n2.alloc(e4), this._finalSize = t4, this._blockSize = e4, this._len = 0;
51449      }
51450      i.prototype.update = function(e4, t4) {
51451        "string" == typeof e4 && (t4 = t4 || "utf8", e4 = n2.from(e4, t4));
51452        for (var r4 = this._block, i2 = this._blockSize, o = e4.length, a = this._len, s = 0; s < o; ) {
51453          for (var u2 = a % i2, c2 = Math.min(o - s, i2 - u2), f2 = 0; f2 < c2; f2++)
51454            r4[u2 + f2] = e4[s + f2];
51455          s += c2, (a += c2) % i2 == 0 && this._update(r4);
51456        }
51457        return this._len += o, this;
51458      }, i.prototype.digest = function(e4) {
51459        var t4 = this._len % this._blockSize;
51460        this._block[t4] = 128, this._block.fill(0, t4 + 1), t4 >= this._finalSize && (this._update(this._block), this._block.fill(0));
51461        var r4 = 8 * this._len;
51462        if (r4 <= 4294967295)
51463          this._block.writeUInt32BE(r4, this._blockSize - 4);
51464        else {
51465          var n3 = (4294967295 & r4) >>> 0, i2 = (r4 - n3) / 4294967296;
51466          this._block.writeUInt32BE(i2, this._blockSize - 8), this._block.writeUInt32BE(n3, this._blockSize - 4);
51467        }
51468        this._update(this._block);
51469        var o = this._hash();
51470        return e4 ? o.toString(e4) : o;
51471      }, i.prototype._update = function() {
51472        throw new Error("_update must be implemented by subclass");
51473      }, e3.exports = i;
51474    }, 1708: (e3, t3, r3) => {
51475      var n2 = e3.exports = function(e4) {
51476        e4 = e4.toLowerCase();
51477        var t4 = n2[e4];
51478        if (!t4)
51479          throw new Error(e4 + " is not supported (we accept pull requests)");
51480        return new t4();
51481      };
51482      n2.sha = r3(8210), n2.sha1 = r3(544), n2.sha224 = r3(6288), n2.sha256 = r3(4571), n2.sha384 = r3(6959), n2.sha512 = r3(4515);
51483    }, 8210: (e3, t3, r3) => {
51484      var n2 = r3(1736), i = r3(6003), o = r3(8850).Buffer, a = [1518500249, 1859775393, -1894007588, -899497514], s = new Array(80);
51485      function u2() {
51486        this.init(), this._w = s, i.call(this, 64, 56);
51487      }
51488      function c2(e4) {
51489        return e4 << 30 | e4 >>> 2;
51490      }
51491      function f2(e4, t4, r4, n3) {
51492        return 0 === e4 ? t4 & r4 | ~t4 & n3 : 2 === e4 ? t4 & r4 | t4 & n3 | r4 & n3 : t4 ^ r4 ^ n3;
51493      }
51494      n2(u2, i), u2.prototype.init = function() {
51495        return this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878, this._e = 3285377520, this;
51496      }, u2.prototype._update = function(e4) {
51497        for (var t4, r4 = this._w, n3 = 0 | this._a, i2 = 0 | this._b, o2 = 0 | this._c, s2 = 0 | this._d, u3 = 0 | this._e, d2 = 0; d2 < 16; ++d2)
51498          r4[d2] = e4.readInt32BE(4 * d2);
51499        for (; d2 < 80; ++d2)
51500          r4[d2] = r4[d2 - 3] ^ r4[d2 - 8] ^ r4[d2 - 14] ^ r4[d2 - 16];
51501        for (var l2 = 0; l2 < 80; ++l2) {
51502          var h2 = ~~(l2 / 20), p2 = 0 | ((t4 = n3) << 5 | t4 >>> 27) + f2(h2, i2, o2, s2) + u3 + r4[l2] + a[h2];
51503          u3 = s2, s2 = o2, o2 = c2(i2), i2 = n3, n3 = p2;
51504        }
51505        this._a = n3 + this._a | 0, this._b = i2 + this._b | 0, this._c = o2 + this._c | 0, this._d = s2 + this._d | 0, this._e = u3 + this._e | 0;
51506      }, u2.prototype._hash = function() {
51507        var e4 = o.allocUnsafe(20);
51508        return e4.writeInt32BE(0 | this._a, 0), e4.writeInt32BE(0 | this._b, 4), e4.writeInt32BE(0 | this._c, 8), e4.writeInt32BE(0 | this._d, 12), e4.writeInt32BE(0 | this._e, 16), e4;
51509      }, e3.exports = u2;
51510    }, 544: (e3, t3, r3) => {
51511      var n2 = r3(1736), i = r3(6003), o = r3(8850).Buffer, a = [1518500249, 1859775393, -1894007588, -899497514], s = new Array(80);
51512      function u2() {
51513        this.init(), this._w = s, i.call(this, 64, 56);
51514      }
51515      function c2(e4) {
51516        return e4 << 5 | e4 >>> 27;
51517      }
51518      function f2(e4) {
51519        return e4 << 30 | e4 >>> 2;
51520      }
51521      function d2(e4, t4, r4, n3) {
51522        return 0 === e4 ? t4 & r4 | ~t4 & n3 : 2 === e4 ? t4 & r4 | t4 & n3 | r4 & n3 : t4 ^ r4 ^ n3;
51523      }
51524      n2(u2, i), u2.prototype.init = function() {
51525        return this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878, this._e = 3285377520, this;
51526      }, u2.prototype._update = function(e4) {
51527        for (var t4, r4 = this._w, n3 = 0 | this._a, i2 = 0 | this._b, o2 = 0 | this._c, s2 = 0 | this._d, u3 = 0 | this._e, l2 = 0; l2 < 16; ++l2)
51528          r4[l2] = e4.readInt32BE(4 * l2);
51529        for (; l2 < 80; ++l2)
51530          r4[l2] = (t4 = r4[l2 - 3] ^ r4[l2 - 8] ^ r4[l2 - 14] ^ r4[l2 - 16]) << 1 | t4 >>> 31;
51531        for (var h2 = 0; h2 < 80; ++h2) {
51532          var p2 = ~~(h2 / 20), b2 = c2(n3) + d2(p2, i2, o2, s2) + u3 + r4[h2] + a[p2] | 0;
51533          u3 = s2, s2 = o2, o2 = f2(i2), i2 = n3, n3 = b2;
51534        }
51535        this._a = n3 + this._a | 0, this._b = i2 + this._b | 0, this._c = o2 + this._c | 0, this._d = s2 + this._d | 0, this._e = u3 + this._e | 0;
51536      }, u2.prototype._hash = function() {
51537        var e4 = o.allocUnsafe(20);
51538        return e4.writeInt32BE(0 | this._a, 0), e4.writeInt32BE(0 | this._b, 4), e4.writeInt32BE(0 | this._c, 8), e4.writeInt32BE(0 | this._d, 12), e4.writeInt32BE(0 | this._e, 16), e4;
51539      }, e3.exports = u2;
51540    }, 6288: (e3, t3, r3) => {
51541      var n2 = r3(1736), i = r3(4571), o = r3(6003), a = r3(8850).Buffer, s = new Array(64);
51542      function u2() {
51543        this.init(), this._w = s, o.call(this, 64, 56);
51544      }
51545      n2(u2, i), u2.prototype.init = function() {
51546        return this._a = 3238371032, this._b = 914150663, this._c = 812702999, this._d = 4144912697, this._e = 4290775857, this._f = 1750603025, this._g = 1694076839, this._h = 3204075428, this;
51547      }, u2.prototype._hash = function() {
51548        var e4 = a.allocUnsafe(28);
51549        return e4.writeInt32BE(this._a, 0), e4.writeInt32BE(this._b, 4), e4.writeInt32BE(this._c, 8), e4.writeInt32BE(this._d, 12), e4.writeInt32BE(this._e, 16), e4.writeInt32BE(this._f, 20), e4.writeInt32BE(this._g, 24), e4;
51550      }, e3.exports = u2;
51551    }, 4571: (e3, t3, r3) => {
51552      var n2 = r3(1736), i = r3(6003), o = r3(8850).Buffer, a = [1116352408, 1899447441, 3049323471, 3921009573, 961987163, 1508970993, 2453635748, 2870763221, 3624381080, 310598401, 607225278, 1426881987, 1925078388, 2162078206, 2614888103, 3248222580, 3835390401, 4022224774, 264347078, 604807628, 770255983, 1249150122, 1555081692, 1996064986, 2554220882, 2821834349, 2952996808, 3210313671, 3336571891, 3584528711, 113926993, 338241895, 666307205, 773529912, 1294757372, 1396182291, 1695183700, 1986661051, 2177026350, 2456956037, 2730485921, 2820302411, 3259730800, 3345764771, 3516065817, 3600352804, 4094571909, 275423344, 430227734, 506948616, 659060556, 883997877, 958139571, 1322822218, 1537002063, 1747873779, 1955562222, 2024104815, 2227730452, 2361852424, 2428436474, 2756734187, 3204031479, 3329325298], s = new Array(64);
51553      function u2() {
51554        this.init(), this._w = s, i.call(this, 64, 56);
51555      }
51556      function c2(e4, t4, r4) {
51557        return r4 ^ e4 & (t4 ^ r4);
51558      }
51559      function f2(e4, t4, r4) {
51560        return e4 & t4 | r4 & (e4 | t4);
51561      }
51562      function d2(e4) {
51563        return (e4 >>> 2 | e4 << 30) ^ (e4 >>> 13 | e4 << 19) ^ (e4 >>> 22 | e4 << 10);
51564      }
51565      function l2(e4) {
51566        return (e4 >>> 6 | e4 << 26) ^ (e4 >>> 11 | e4 << 21) ^ (e4 >>> 25 | e4 << 7);
51567      }
51568      function h2(e4) {
51569        return (e4 >>> 7 | e4 << 25) ^ (e4 >>> 18 | e4 << 14) ^ e4 >>> 3;
51570      }
51571      n2(u2, i), u2.prototype.init = function() {
51572        return this._a = 1779033703, this._b = 3144134277, this._c = 1013904242, this._d = 2773480762, this._e = 1359893119, this._f = 2600822924, this._g = 528734635, this._h = 1541459225, this;
51573      }, u2.prototype._update = function(e4) {
51574        for (var t4, r4 = this._w, n3 = 0 | this._a, i2 = 0 | this._b, o2 = 0 | this._c, s2 = 0 | this._d, u3 = 0 | this._e, p2 = 0 | this._f, b2 = 0 | this._g, y2 = 0 | this._h, m2 = 0; m2 < 16; ++m2)
51575          r4[m2] = e4.readInt32BE(4 * m2);
51576        for (; m2 < 64; ++m2)
51577          r4[m2] = 0 | (((t4 = r4[m2 - 2]) >>> 17 | t4 << 15) ^ (t4 >>> 19 | t4 << 13) ^ t4 >>> 10) + r4[m2 - 7] + h2(r4[m2 - 15]) + r4[m2 - 16];
51578        for (var v2 = 0; v2 < 64; ++v2) {
51579          var g2 = y2 + l2(u3) + c2(u3, p2, b2) + a[v2] + r4[v2] | 0, w2 = d2(n3) + f2(n3, i2, o2) | 0;
51580          y2 = b2, b2 = p2, p2 = u3, u3 = s2 + g2 | 0, s2 = o2, o2 = i2, i2 = n3, n3 = g2 + w2 | 0;
51581        }
51582        this._a = n3 + this._a | 0, this._b = i2 + this._b | 0, this._c = o2 + this._c | 0, this._d = s2 + this._d | 0, this._e = u3 + this._e | 0, this._f = p2 + this._f | 0, this._g = b2 + this._g | 0, this._h = y2 + this._h | 0;
51583      }, u2.prototype._hash = function() {
51584        var e4 = o.allocUnsafe(32);
51585        return e4.writeInt32BE(this._a, 0), e4.writeInt32BE(this._b, 4), e4.writeInt32BE(this._c, 8), e4.writeInt32BE(this._d, 12), e4.writeInt32BE(this._e, 16), e4.writeInt32BE(this._f, 20), e4.writeInt32BE(this._g, 24), e4.writeInt32BE(this._h, 28), e4;
51586      }, e3.exports = u2;
51587    }, 6959: (e3, t3, r3) => {
51588      var n2 = r3(1736), i = r3(4515), o = r3(6003), a = r3(8850).Buffer, s = new Array(160);
51589      function u2() {
51590        this.init(), this._w = s, o.call(this, 128, 112);
51591      }
51592      n2(u2, i), u2.prototype.init = function() {
51593        return this._ah = 3418070365, this._bh = 1654270250, this._ch = 2438529370, this._dh = 355462360, this._eh = 1731405415, this._fh = 2394180231, this._gh = 3675008525, this._hh = 1203062813, this._al = 3238371032, this._bl = 914150663, this._cl = 812702999, this._dl = 4144912697, this._el = 4290775857, this._fl = 1750603025, this._gl = 1694076839, this._hl = 3204075428, this;
51594      }, u2.prototype._hash = function() {
51595        var e4 = a.allocUnsafe(48);
51596        function t4(t5, r4, n3) {
51597          e4.writeInt32BE(t5, n3), e4.writeInt32BE(r4, n3 + 4);
51598        }
51599        return t4(this._ah, this._al, 0), t4(this._bh, this._bl, 8), t4(this._ch, this._cl, 16), t4(this._dh, this._dl, 24), t4(this._eh, this._el, 32), t4(this._fh, this._fl, 40), e4;
51600      }, e3.exports = u2;
51601    }, 4515: (e3, t3, r3) => {
51602      var n2 = r3(1736), i = r3(6003), o = r3(8850).Buffer, a = [1116352408, 3609767458, 1899447441, 602891725, 3049323471, 3964484399, 3921009573, 2173295548, 961987163, 4081628472, 1508970993, 3053834265, 2453635748, 2937671579, 2870763221, 3664609560, 3624381080, 2734883394, 310598401, 1164996542, 607225278, 1323610764, 1426881987, 3590304994, 
vendor: 6,619 bytes, lines 51602-51672
516021925078388, 4068182383, 2162078206, 991336113, 2614888103, 633803317, 3248222580, 3479774868, 3835390401, 2666613458, 4022224774, 944711139, 264347078, 2341262773, 604807628, 2007800933, 770255983, 1495990901, 1249150122, 1856431235, 1555081692, 3175218132, 1996064986, 2198950837, 2554220882, 3999719339, 2821834349, 766784016, 2952996808, 2566594879, 3210313671, 3203337956, 3336571891, 1034457026, 3584528711, 2466948901, 113926993, 3758326383, 338241895, 168717936, 666307205, 1188179964, 773529912, 1546045734, 1294757372, 1522805485, 1396182291, 2643833823, 1695183700, 2343527390, 1986661051, 1014477480, 2177026350, 1206759142, 2456956037, 344077627, 2730485921, 1290863460, 2820302411, 3158454273, 3259730800, 3505952657, 3345764771, 106217008, 3516065817, 3606008344, 3600352804, 1432725776, 4094571909, 1467031594, 275423344, 851169720, 430227734, 3100823752, 506948616, 1363258195, 659060556, 3750685593, 883997877, 3785050280, 958139571, 3318307427, 1322822218, 3812723403, 1537002063, 2003034995, 1747873779, 3602036899, 1955562222, 1575990012, 2024104815, 1125592928, 2227730452, 2716904306, 2361852424, 442776044, 2428436474, 593698344, 2756734187, 3733110249, 3204031479, 2999351573, 3329325298, 3815920427, 3391569614, 3928383900, 3515267271, 566280711, 3940187606, 3454069534, 4118630271, 4000239992, 116418474, 1914138554, 174292421, 2731055270, 289380356, 3203993006, 460393269, 320620315, 685471733, 587496836, 852142971, 1086792851, 1017036298, 365543100, 1126000580, 2618297676, 1288033470, 3409855158, 1501505948, 4234509866, 1607167915, 987167468, 1816402316, 1246189591], s = new Array(160);
51603      function u2() {
51604        this.init(), this._w = s, i.call(this, 128, 112);
51605      }
51606      function c2(e4, t4, r4) {
51607        return r4 ^ e4 & (t4 ^ r4);
51608      }
51609      function f2(e4, t4, r4) {
51610        return e4 & t4 | r4 & (e4 | t4);
51611      }
51612      function d2(e4, t4) {
51613        return (e4 >>> 28 | t4 << 4) ^ (t4 >>> 2 | e4 << 30) ^ (t4 >>> 7 | e4 << 25);
51614      }
51615      function l2(e4, t4) {
51616        return (e4 >>> 14 | t4 << 18) ^ (e4 >>> 18 | t4 << 14) ^ (t4 >>> 9 | e4 << 23);
51617      }
51618      function h2(e4, t4) {
51619        return (e4 >>> 1 | t4 << 31) ^ (e4 >>> 8 | t4 << 24) ^ e4 >>> 7;
51620      }
51621      function p2(e4, t4) {
51622        return (e4 >>> 1 | t4 << 31) ^ (e4 >>> 8 | t4 << 24) ^ (e4 >>> 7 | t4 << 25);
51623      }
51624      function b2(e4, t4) {
51625        return (e4 >>> 19 | t4 << 13) ^ (t4 >>> 29 | e4 << 3) ^ e4 >>> 6;
51626      }
51627      function y2(e4, t4) {
51628        return (e4 >>> 19 | t4 << 13) ^ (t4 >>> 29 | e4 << 3) ^ (e4 >>> 6 | t4 << 26);
51629      }
51630      function m2(e4, t4) {
51631        return e4 >>> 0 < t4 >>> 0 ? 1 : 0;
51632      }
51633      n2(u2, i), u2.prototype.init = function() {
51634        return this._ah = 1779033703, this._bh = 3144134277, this._ch = 1013904242, this._dh = 2773480762, this._eh = 1359893119, this._fh = 2600822924, this._gh = 528734635, this._hh = 1541459225, this._al = 4089235720, this._bl = 2227873595, this._cl = 4271175723, this._dl = 1595750129, this._el = 2917565137, this._fl = 725511199, this._gl = 4215389547, this._hl = 327033209, this;
51635      }, u2.prototype._update = function(e4) {
51636        for (var t4 = this._w, r4 = 0 | this._ah, n3 = 0 | this._bh, i2 = 0 | this._ch, o2 = 0 | this._dh, s2 = 0 | this._eh, u3 = 0 | this._fh, v2 = 0 | this._gh, g2 = 0 | this._hh, w2 = 0 | this._al, A2 = 0 | this._bl, k2 = 0 | this._cl, _ = 0 | this._dl, S2 = 0 | this._el, x2 = 0 | this._fl, E2 = 0 | this._gl, P2 = 0 | this._hl, O2 = 0; O2 < 32; O2 += 2)
51637          t4[O2] = e4.readInt32BE(4 * O2), t4[O2 + 1] = e4.readInt32BE(4 * O2 + 4);
51638        for (; O2 < 160; O2 += 2) {
51639          var B2 = t4[O2 - 30], T2 = t4[O2 - 30 + 1], C2 = h2(B2, T2), I2 = p2(T2, B2), M2 = b2(B2 = t4[O2 - 4], T2 = t4[O2 - 4 + 1]), U2 = y2(T2, B2), R2 = t4[O2 - 14], j = t4[O2 - 14 + 1], N2 = t4[O2 - 32], F2 = t4[O2 - 32 + 1], L2 = I2 + j | 0, D2 = C2 + R2 + m2(L2, I2) | 0;
51640          D2 = (D2 = D2 + M2 + m2(L2 = L2 + U2 | 0, U2) | 0) + N2 + m2(L2 = L2 + F2 | 0, F2) | 0, t4[O2] = D2, t4[O2 + 1] = L2;
51641        }
51642        for (var H2 = 0; H2 < 160; H2 += 2) {
51643          D2 = t4[H2], L2 = t4[H2 + 1];
51644          var q2 = f2(r4, n3, i2), z2 = f2(w2, A2, k2), G2 = d2(r4, w2), K2 = d2(w2, r4), V2 = l2(s2, S2), J2 = l2(S2, s2), W2 = a[H2], Y2 = a[H2 + 1], X2 = c2(s2, u3, v2), Q2 = c2(S2, x2, E2), Z2 = P2 + J2 | 0, $ = g2 + V2 + m2(Z2, P2) | 0;
51645          $ = ($ = ($ = $ + X2 + m2(Z2 = Z2 + Q2 | 0, Q2) | 0) + W2 + m2(Z2 = Z2 + Y2 | 0, Y2) | 0) + D2 + m2(Z2 = Z2 + L2 | 0, L2) | 0;
51646          var ee2 = K2 + z2 | 0, te2 = G2 + q2 + m2(ee2, K2) | 0;
51647          g2 = v2, P2 = E2, v2 = u3, E2 = x2, u3 = s2, x2 = S2, s2 = o2 + $ + m2(S2 = _ + Z2 | 0, _) | 0, o2 = i2, _ = k2, i2 = n3, k2 = A2, n3 = r4, A2 = w2, r4 = $ + te2 + m2(w2 = Z2 + ee2 | 0, Z2) | 0;
51648        }
51649        this._al = this._al + w2 | 0, this._bl = this._bl + A2 | 0, this._cl = this._cl + k2 | 0, this._dl = this._dl + _ | 0, this._el = this._el + S2 | 0, this._fl = this._fl + x2 | 0, this._gl = this._gl + E2 | 0, this._hl = this._hl + P2 | 0, this._ah = this._ah + r4 + m2(this._al, w2) | 0, this._bh = this._bh + n3 + m2(this._bl, A2) | 0, this._ch = this._ch + i2 + m2(this._cl, k2) | 0, this._dh = this._dh + o2 + m2(this._dl, _) | 0, this._eh = this._eh + s2 + m2(this._el, S2) | 0, this._fh = this._fh + u3 + m2(this._fl, x2) | 0, this._gh = this._gh + v2 + m2(this._gl, E2) | 0, this._hh = this._hh + g2 + m2(this._hl, P2) | 0;
51650      }, u2.prototype._hash = function() {
51651        var e4 = o.allocUnsafe(64);
51652        function t4(t5, r4, n3) {
51653          e4.writeInt32BE(t5, n3), e4.writeInt32BE(r4, n3 + 4);
51654        }
51655        return t4(this._ah, this._al, 0), t4(this._bh, this._bl, 8), t4(this._ch, this._cl, 16), t4(this._dh, this._dl, 24), t4(this._eh, this._el, 32), t4(this._fh, this._fl, 40), t4(this._gh, this._gl, 48), t4(this._hh, this._hl, 56), e4;
51656      }, e3.exports = u2;
51657    }, 7245: (e3, t3, r3) => {
51658      e3.exports = i;
51659      var n2 = r3(8291).EventEmitter;
51660      function i() {
51661        n2.call(this);
51662      }
51663      r3(1736)(i, n2), i.Readable = r3(6297), i.Writable = r3(1471), i.Duplex = r3(6884), i.Transform = r3(9154), i.PassThrough = r3(3582), i.finished = r3(5831), i.pipeline = r3(384), i.Stream = i, i.prototype.pipe = function(e4, t4) {
51664        var r4 = this;
51665        function i2(t5) {
51666          e4.writable && false === e4.write(t5) && r4.pause && r4.pause();
51667        }
51668        function o() {
51669          r4.readable && r4.resume && r4.resume();
51670        }
51671        r4.on("data", i2), e4.on("drain", o), e4._isStdio || t4 && false === t4.end || (r4.on("end", s), r4.on("close", u2));
51672        var a = false;
51673        function s() {
51674          a || (a = true, e4.end());
51675        }
51676        function u2() {
51677          a || (a = true, "function" == typeof e4.destroy && e4.destroy());
51678        }
51679        function c2(e5) {
51680          if (f2(), 0 === n2.listenerCount(this, "error"))
51681            throw e5;
51682        }
51683        function f2() {
51684          r4.removeListener("data", i2), e4.removeListener("drain", o), r4.removeListener("end", s), r4.removeListener("close", u2), r4.removeListener("error", c2), e4.removeListener("error", c2), r4.removeListener("end", f2), r4.removeListener("close", f2), e4.removeListener("close", f2);
51685        }
51686        return r4.on("error", c2), e4.on("error", c2), r4.on("end", f2), r4.on("close", f2), e4.on("close", f2), e4.emit("pipe", r4), e4;
51687      };
51688    }, 9519: (e3, t3, r3) => {
51689      var n2 = r3(8844), i = r3(3319), o = r3(7705), a = r3(3675), s = r3(1143), u2 = t3;
51690      u2.request = function(e4, t4) {
51691        e4 = "string" == typeof e4 ? s.parse(e4) : o(e4);
51692        var i2 = -1 === r3.g.location.protocol.search(/^https?:$/) ? "http:" : "", a2 = e4.protocol || i2, u3 = e4.hostname || e4.host, c2 = e4.port, f2 = e4.path || "/";
51693        u3 && -1 !== u3.indexOf(":") && (u3 = "[" + u3 + "]"), e4.url = (u3 ? a2 + "//" + u3 : "") + (c2 ? ":" + c2 : "") + f2, e4.method = (e4.method || "GET").toUpperCase(), e4.headers = e4.headers || {};
51694        var d2 = new n2(e4);
51695        return t4 && d2.on("response", t4), d2;
51696      }, u2.get = function(e4, t4) {
51697        var r4 = u2.request(e4, t4);
51698        return r4.end(), r4;
51699      }, u2.ClientRequest = n2, u2.IncomingMessage = i.IncomingMessage, u2.Agent = function() {
51700      }, u2.Agent.defaultMaxSockets = 4, u2.globalAgent = new u2.Agent(), u2.STATUS_CODES = a, u2.METHODS = ["CHECKOUT", "CONNECT", "COPY", "DELETE", "GET", "HEAD", "LOCK", "M-SEARCH", "MERGE", "MKACTIVITY", "MKCOL", "MOVE", "NOTIFY", "OPTIONS", "PATCH", "POST", "PROPFIND", "PROPPATCH", "PURGE", "PUT", "REPORT", "SEARCH", "SUBSCRIBE", "TRACE", "UNLOCK", "UNSUBSCRIBE"];
51701    }, 3928: (e3, t3, r3) => {
51702      var n2;
51703      function i() {
51704        if (void 0 !== n2)
51705          return n2;
51706        if (r3.g.XMLHttpRequest) {
51707          n2 = new r3.g.XMLHttpRequest();
51708          try {
51709            n2.open("GET", r3.g.XDomainRequest ? "/" : "https://example.com");
51710          } catch (e4) {
51711            n2 = null;
51712          }
51713        } else
51714          n2 = null;
51715        return n2;
51716      }
51717      function o(e4) {
51718        var t4 = i();
51719        if (!t4)
51720          return false;
51721        try {
51722          return t4.responseType = e4, t4.responseType === e4;
51723        } catch (e5) {
51724        }
51725        return false;
51726      }
51727      function a(e4) {
51728        return "function" == typeof e4;
51729      }
51730      t3.fetch = a(r3.g.fetch) && a(r3.g.ReadableStream), t3.writableStream = a(r3.g.WritableStream), t3.abortController = a(r3.g.AbortController), t3.arraybuffer = t3.fetch || o("arraybuffer"), t3.msstream = !t3.fetch && o("ms-stream"), t3.mozchunkedarraybuffer = !t3.fetch && o("moz-chunked-arraybuffer"), t3.overrideMimeType = t3.fetch || !!i() && a(i().overrideMimeType), n2 = null;
51731    }, 8844: (e3, t3, r3) => {
51732      var n2 = r3(9033).Buffer, i = r3(9142), o = r3(3928), a = r3(1736), s = r3(3319), u2 = r3(6505), c2 = s.IncomingMessage, f2 = s.readyStates, d2 = e3.exports = function(e4) {
51733        var t4, r4 = this;
51734        u2.Writable.call(r4), r4._opts = e4, r4._body = [], r4._headers = {}, e4.auth && r4.setHeader("Authorization", "Basic " + n2.from(e4.auth).toString("base64")), Object.keys(e4.headers).forEach(function(t5) {
51735          r4.setHeader(t5, e4.headers[t5]);
51736        });
51737        var i2 = true;
51738        if ("disable-fetch" === e4.mode || "requestTimeout" in e4 && !o.abortController)
51739          i2 = false, t4 = true;
51740        else if ("prefer-streaming" === e4.mode)
51741          t4 = false;
51742        else if ("allow-wrong-content-type" === e4.mode)
51743          t4 = !o.overrideMimeType;
51744        else {
51745          if (e4.mode && "default" !== e4.mode && "prefer-fast" !== e4.mode)
51746            throw new Error("Invalid value for opts.mode");
51747          t4 = true;
51748        }
51749        r4._mode = function(e5, t5) {
51750          return o.fetch && t5 ? "fetch" : o.mozchunkedarraybuffer ? "moz-chunked-arraybuffer" : o.msstream ? "ms-stream" : o.arraybuffer && e5 ? "arraybuffer" : "text";
51751        }(t4, i2), r4._fetchTimer = null, r4._socketTimeout = null, r4._socketTimer = null, r4.on("finish", function() {
51752          r4._onFinish();
51753        });
51754      };
51755      a(d2, u2.Writable), d2.prototype.setHeader = function(e4, t4) {
51756        var r4 = e4.toLowerCase();
51757        -1 === l2.indexOf(r4) && (this._headers[r4] = { name: e4, value: t4 });
51758      }, d2.prototype.getHeader = function(e4) {
51759        var t4 = this._headers[e4.toLowerCase()];
51760        return t4 ? t4.value : null;
51761      }, d2.prototype.removeHeader = function(e4) {
51762        delete this._headers[e4.toLowerCase()];
51763      }, d2.prototype._onFinish = function() {
51764        var e4 = this;
51765        if (!e4._destroyed) {
51766          var t4 = e4._opts;
51767          "timeout" in t4 && 0 !== t4.timeout && e4.setTimeout(t4.timeout);
51768          var n3 = e4._headers, a2 = null;
51769          "GET" !== t4.method && "HEAD" !== t4.method && (a2 = new Blob(e4._body, { type: (n3["content-type"] || {}).value || "" }));
51770          var s2 = [];
51771          if (Object.keys(n3).forEach(function(e5) {
51772            var t5 = n3[e5].name, r4 = n3[e5].value;
51773            Array.isArray(r4) ? r4.forEach(function(e6) {
51774              s2.push([t5, e6]);
51775            }) : s2.push([t5, r4]);
51776          }), "fetch" === e4._mode) {
51777            var u3 = null;
51778            if (o.abortController) {
51779              var c3 = new AbortController();
51780              u3 = c3.signal, e4._fetchAbortController = c3, "requestTimeout" in t4 && 0 !== t4.requestTimeout && (e4._fetchTimer = r3.g.setTimeout(function() {
51781                e4.emit("requestTimeout"), e4._fetchAbortController && e4._fetchAbortController.abort();
51782              }, t4.requestTimeout));
51783            }
51784            r3.g.fetch(e4._opts.url, { method: e4._opts.method, headers: s2, body: a2 || void 0, mode: "cors", credentials: t4.withCredentials ? "include" : "same-origin", signal: u3 }).then(function(t5) {
51785              e4._fetchResponse = t5, e4._resetTimers(false), e4._connect();
51786            }, function(t5) {
51787              e4._resetTimers(true), e4._destroyed || e4.emit("error", t5);
51788            });
51789          } else {
51790            var d3 = e4._xhr = new r3.g.XMLHttpRequest();
51791            try {
51792              d3.open(e4._opts.method, e4._opts.url, true);
51793            } catch (t5) {
51794              return void i.nextTick(function() {
51795                e4.emit("error", t5);
51796              });
51797            }
51798            "responseType" in d3 && (d3.responseType = e4._mode), "withCredentials" in d3 && (d3.withCredentials = !!t4.withCredentials), "text" === e4._mode && "overrideMimeType" in d3 && d3.overrideMimeType("text/plain;
51798 charset=x-user-defined"), "requestTimeout" in t4 && (d3.timeout = t4.requestTimeout, d3.ontimeout = function() {
51799              e4.emit("requestTimeout");
51800            }), s2.forEach(function(e5) {
51801              d3.setRequestHeader(e5[0], e5[1]);
51802            }), e4._response = null, d3.onreadystatechange = function() {
51803              switch (d3.readyState) {
51804                case f2.LOADING:
51805                case f2.DONE:
51806                  e4._onXHRProgress();
51807              }
51808            }, "moz-chunked-arraybuffer" === e4._mode && (d3.onprogress = function() {
51809              e4._onXHRProgress();
51810            }), d3.onerror = function() {
51811              e4._destroyed || (e4._resetTimers(true), e4.emit("error", new Error("XHR error")));
51812            };
51813            try {
51814              d3.send(a2);
51815            } catch (t5) {
51816              return void i.nextTick(function() {
51817                e4.emit("error", t5);
51818              });
51819            }
51820          }
51821        }
51822      }, d2.prototype._onXHRProgress = function() {
51823        var e4 = this;
51824        e4._resetTimers(false), function(e5) {
51825          try {
51826            var t4 = e5.status;
51827            return null !== t4 && 0 !== t4;
51828          } catch (e6) {
51829            return false;
51830          }
51831        }(e4._xhr) && !e4._destroyed && (e4._response || e4._connect(), e4._response._onXHRProgress(e4._resetTimers.bind(e4)));
51832      }, d2.prototype._connect = function() {
51833        var e4 = this;
51834        e4._destroyed || (e4._response = new c2(e4._xhr, e4._fetchResponse, e4._mode, e4._resetTimers.bind(e4)), e4._response.on("error", function(t4) {
51835          e4.emit("error", t4);
51836        }), e4.emit("response", e4._response));
51837      }, d2.prototype._write = function(e4, t4, r4) {
51838        this._body.push(e4), r4();
51839      }, d2.prototype._resetTimers = function(e4) {
51840        var t4 = this;
51841        r3.g.clearTimeout(t4._socketTimer), t4._socketTimer = null, e4 ? (r3.g.clearTimeout(t4._fetchTimer), t4._fetchTimer = null) : t4._socketTimeout && (t4._socketTimer = r3.g.setTimeout(function() {
51842          t4.emit("timeout");
51843        }, t4._socketTimeout));
51844      }, d2.prototype.abort = d2.prototype.destroy = function(e4) {
51845        var t4 = this;
51846        t4._destroyed = true, t4._resetTimers(true), t4._response && (t4._response._destroyed = true), t4._xhr ? t4._xhr.abort() : t4._fetchAbortController && t4._fetchAbortController.abort(), e4 && t4.emit("error", e4);
51847      }, d2.prototype.end = function(e4, t4, r4) {
51848        "function" == typeof e4 && (r4 = e4, e4 = void 0), u2.Writable.prototype.end.call(this, e4, t4, r4);
51849      }, d2.prototype.setTimeout = function(e4, t4) {
51850        var r4 = this;
51851        t4 && r4.once("timeout", t4), r4._socketTimeout = e4, r4._resetTimers(false);
51852      }, d2.prototype.flushHeaders = function() {
51853      }, d2.prototype.setNoDelay = function() {
51854      }, d2.prototype.setSocketKeepAlive = function() {
51855      };
51856      var l2 = ["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"];
51857    }, 3319: (e3, t3, r3) => {
51858      var n2 = r3(9142), i = r3(9033).Buffer, o = r3(3928), a = r3(1736), s = r3(6505), u2 = t3.readyStates = { UNSENT: 0, OPENED: 1, HEADERS_RECEIVED: 2, LOADING: 3, DONE: 4 }, c2 = t3.IncomingMessage = function(e4, t4, r4, a2) {
51859        var u3 = this;
51860        if (s.Readable.call(u3), u3._mode = r4, u3.headers = {}, u3.rawHeaders = [], u3.trailers = {}, u3.rawTrailers = [], u3.on("end", function() {
51861          n2.nextTick(function() {
51862            u3.emit("close");
51863          });
51864        }), "fetch" === r4) {
51865          if (u3._fetchResponse = t4, u3.url = t4.url, u3.statusCode = t4.status, u3.statusMessage = t4.statusText, t4.headers.forEach(function(e5, t5) {
51866            u3.headers[t5.toLowerCase()] = e5, u3.rawHeaders.push(t5, e5);
51867          }), o.writableStream) {
51868            var c3 = new WritableStream({ write: function(e5) {
51869              return a2(false), new Promise(function(t5, r5) {
51870                u3._destroyed ? r5() : u3.push(i.from(e5)) ? t5() : u3._resumeFetch = t5;
51871              });
51872            }, close: function() {
51873              a2(true), u3._destroyed || u3.push(null);
51874            }, abort: function(e5) {
51875              a2(true), u3._destroyed || u3.emit("error", e5);
51876            } });
51877            try {
51878              return void t4.body.pipeTo(c3).catch(function(e5) {
51879                a2(true), u3._destroyed || u3.emit("error", e5);
51880              });
51881            } catch (e5) {
51882            }
51883          }
51884          var f2 = t4.body.getReader();
51885          !function e5() {
51886            f2.read().then(function(t5) {
51887              u3._destroyed || (a2(t5.done), t5.done ? u3.push(null) : (u3.push(i.from(t5.value)), e5()));
51888            }).catch(function(e6) {
51889              a2(true), u3._destroyed || u3.emit("error", e6);
51890            });
51891          }();
51892        } else if (u3._xhr = e4, u3._pos = 0, u3.url = e4.responseURL, u3.statusCode = e4.status, u3.statusMessage = e4.statusText, e4.getAllResponseHeaders().split(/\r?\n/).forEac
51892h(function(e5) {
51893          var t5 = e5.match(/^([^:]+):\s*(.*)/);
51894          if (t5) {
51895            var r5 = t5[1].toLowerCase();
51896            "set-cookie" === r5 ? (void 0 === u3.headers[r5] && (u3.headers[r5] = []), u3.headers[r5].push(t5[2])) : void 0 !== u3.headers[r5] ? u3.headers[r5] += ", " + t5[2] : u3.headers[r5] = t5[2], u3.rawHeaders.push(t5[1], t5[2]);
51897          }
51898        }), u3._charset = "x-user-defined", !o.overrideMimeType) {
51899          var d2 = u3.rawHeaders["mime-type"];
51900          if (d2) {
51901            var l2 = d2.match(/;\s*charset=([^;])(;|$)/);
51902            l2 && (u3._charset = l2[1].toLowerCase());
51903          }
51904          u3._charset || (u3._charset = "utf-8");
51905        }
51906      };
51907      a(c2, s.Readable), c2.prototype._read = function() {
51908        var e4 = this._resumeFetch;
51909        e4 && (this._resumeFetch = null, e4());
51910      }, c2.prototype._onXHRProgress = function(e4) {
51911        var t4 = this, n3 = t4._xhr, o2 = null;
51912        switch (t4._mode) {
51913          case "text":
51914            if ((o2 = n3.responseText).length > t4._pos) {
51915              var a2 = o2.substr(t4._pos);
51916              if ("x-user-defined" === t4._charset) {
51917                for (var s2 = i.alloc(a2.length), c3 = 0; c3 < a2.length; c3++)
51918                  s2[c3] = 255 & a2.charCodeAt(c3);
51919                t4.push(s2);
51920              } else
51921                t4.push(a2, t4._charset);
51922              t4._pos = o2.length;
51923            }
51924            break;
51925          case "arraybuffer":
51926            if (n3.readyState !== u2.DONE || !n3.response)
51927              break;
51928            o2 = n3.response, t4.push(i.from(new Uint8Array(o2)));
51929            break;
51930          case "moz-chunked-arraybuffer":
51931            if (o2 = n3.response, n3.readyState !== u2.LOADING || !o2)
51932              break;
51933            t4.push(i.from(new Uint8Array(o2)));
51934            break;
51935          case "ms-stream":
51936            if (o2 = n3.response, n3.readyState !== u2.LOADING)
51937              break;
51938            var f2 = new r3.g.MSStreamReader();
51939            f2.onprogress = function() {
51940              f2.result.byteLength > t4._pos && (t4.push(i.from(new Uint8Array(f2.result.slice(t4._pos)))), t4._pos = f2.result.byteLength);
51941            }, f2.onload = function() {
51942              e4(true), t4.push(null);
51943            }, f2.readAsArrayBuffer(o2);
51944        }
51945        t4._xhr.readyState === u2.DONE && "ms-stream" !== t4._mode && (e4(true), t4.push(null));
51946      };
51947    }, 3462: (e3, t3, r3) => {
51948      var n2 = r3(8850).Buffer, i = n2.isEncoding || function(e4) {
51949        switch ((e4 = "" + e4) && e4.toLowerCase()) {
51950          case "hex":
51951          case "utf8":
51952          case "utf-8":
51953          case "ascii":
51954          case "binary":
51955          case "base64":
51956          case "ucs2":
51957          case "ucs-2":
51958          case "utf16le":
51959          case "utf-16le":
51960          case "raw":
51961            return true;
51962          default:
51963            return false;
51964        }
51965      };
51966      function o(e4) {
51967        var t4;
51968        switch (this.encoding = function(e5) {
51969          var t5 = function(e6) {
51970            if (!e6)
51971              return "utf8";
51972            for (var t6; ; )
51973              switch (e6) {
51974                case "utf8":
51975                case "utf-8":
51976                  return "utf8";
51977                case "ucs2":
51978                case "ucs-2":
51979                case "utf16le":
51980                case "utf-16le":
51981                  return "utf16le";
51982                case "latin1":
51983                case "binary":
51984                  return "latin1";
51985                case "base64":
51986                case "ascii":
51987                case "hex":
51988                  return e6;
51989                default:
51990                  if (t6)
51991                    return;
51992                  e6 = ("" + e6).toLowerCase(), t6 = true;
51993              }
51994          }(e5);
51995          if ("string" != typeof t5 && (n2.isEncoding === i || !i(e5)))
51996            throw new Error("Unknown encoding: " + e5);
51997          return t5 || e5;
51998        }(e4), this.encoding) {
51999          case "utf16le":
52000            this.text = u2, this.end = c2, t4 = 4;
52001            break;
52002          case "utf8":
52003            this.fillLast = s, t4 = 4;
52004            break;
52005          case "base64":
52006            this.text = f2, this.end = d2, t4 = 3;
52007            break;
52008          default:
52009            return this.write = l2, void (this.end = h2);
52010        }
52011        this.lastNeed = 0, this.lastTotal = 0, this.lastChar = n2.allocUnsafe(t4);
52012      }
52013      function a(e4) {
52014        return e4 <= 127 ? 0 : e4 >> 5 == 6 ? 2 : e4 >> 4 == 14 ? 3 : e4 >> 3 == 30 ? 4 : e4 >> 6 == 2 ? -1 : -2;
52015      }
52016      function s(e4) {
52017        var t4 = this.lastTotal - this.lastNeed, r4 = function(e5, t5, r5) {
52018          if (128 != (192 & t5[0]))
52019            return e5.lastNeed = 0, "�";
52020          if (e5.lastNeed > 1 && t5.length > 1) {
52021            if (128 != (192 & t5[1]))
52022              return e5.lastNeed = 1, "�";
52023            if (e5.lastNeed > 2 && t5.length > 2 && 128 != (192 & t5[2]))
52024              return e5.lastNeed = 2, "�";
52025          }
52026        }(this, e4);
52027        return void 0 !== r4 ? r4 : this.lastNeed <= e4.length ? (e4.copy(this.lastChar, t4, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal)) : (e4.copy(this.lastChar, t4, 0, e4.length), void (this.lastNeed -= e4.length));
52028      }
52029      function u2(e4, t4) {
52030        if ((e4.length - t4) % 2 == 0) {
52031          var r4 = e4.toString("utf16le", t4);
52032          if (r4) {
52033            var n3 = r4.charCodeAt(r4.length - 1);
52034            if (n3 >= 55296 && n3 <= 56319)
52035              return this.lastNeed = 2, this.lastTotal = 4, this.lastChar[0] = e4[e4.length - 2], this.lastChar[1] = e4[e4.length - 1], r4.slice(0, -1);
52036          }
52037          return r4;
52038        }
52039        return this.lastNeed = 1, this.lastTotal = 2, this.lastChar[0] = e4[e4.length - 1], e4.toString("utf16le", t4, e4.length - 1);
52040      }
52041      function c2(e4) {
52042        var t4 = e4 && e4.length ? this.write(e4) : "";
52043        if (this.lastNeed) {
52044          var r4 = this.lastTotal - this.lastNeed;
52045          return t4 + this.lastChar.toString("utf16le", 0, r4);
52046        }
52047        return t4;
52048      }
52049      function f2(e4, t4) {
52050        var r4 = (e4.length - t4) % 3;
52051        return 0 === r4 ? e4.toString("base64", t4) : (this.lastNeed = 3 - r4, this.lastTotal = 3, 1 === r4 ? this.lastChar[0] = e4[e4.length - 1] : (this.lastChar[0] = e4[e4.length - 2], this.lastChar[1] = e4[e4.length - 1]), e4.toString("base64", t4, e4.length - r4));
52052      }
52053      function d2(e4) {
52054        var t4 = e4 && e4.length ? this.write(e4) : "";
52055        return this.lastNeed ? t4 + this.lastChar.toString("base64", 0, 3 - this.lastNeed) : t4;
52056      }
52057      function l2(e4) {
52058        return e4.toString(this.encoding);
52059      }
52060      function h2(e4) {
52061        return e4 && e4.length ? this.write(e4) : "";
52062      }
52063      t3.s = o, o.prototype.write = function(e4) {
52064        if (0 === e4.length)
52065          return "";
52066        var t4, r4;
52067        if (this.lastNeed) {
52068          if (void 0 === (t4 = this.fillLast(e4)))
52069            return "";
52070          r4 = this.lastNeed, this.lastNeed = 0;
52071        } else
52072          r4 = 0;
52073        return r4 < e4.length ? t4 ? t4 + this.text(e4, r4) : this.text(e4, r4) : t4 || "";
52074      }, o.prototype.end = function(e4) {
52075        var t4 = e4 && e4.length ? this.write(e4) : "";
52076        return this.lastNeed ? t4 + "�" : t4;
52077      }, o.prototype.text = function(e4, t4) {
52078        var r4 = function(e5, t5, r5) {
52079          var n4 = t5.length - 1;
52080          if (n4 < r5)
52081            return 0;
52082          var i2 = a(t5[n4]);
52083          return i2 >= 0 ? (i2 > 0 && (e5.lastNeed = i2 - 1), i2) : --n4 < r5 || -2 === i2 ? 0 : (i2 = a(t5[n4])) >= 0 ? (i2 > 0 && (e5.lastNeed = i2 - 2), i2) : --n4 < r5 || -2 === i2 ? 0 : (i2 = a(t5[n4])) >= 0 ? (i2 > 0 && (2 === i2 ? i2 = 0 : e5.lastNeed = i2 - 3), i2) : 0;
52084        }(this, e4, t4);
52085        if (!this.lastNeed)
52086          return e4.toString("utf8", t4);
52087        this.lastTotal = r4;
52088        var n3 = e4.length - (r4 - this.lastNeed);
52089        return e4.copy(this.lastChar, 0, n3), e4.toString("utf8", t4, n3);
52090      }, o.prototype.fillLast = function(e4) {
52091        if (this.lastNeed <= e4.length)
52092          return e4.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal);
52093        e4.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, e4.length), this.lastNeed -= e4.length;
52094      };
52095    }, 6931: (e3, t3, r3) => {
52096      var n2 = r3(8619);
52097      e3.exports = function(e4) {
52098        return "string" != typeof e4 ? e4 : n2(e4) ? e4.slice(2) : e4;
52099      };
52100    }, 6427: (e3, t3, r3) => {
52101      var n2 = function() {
52102        throw "This swarm.js function isn't available on the browser.";
52103      }, i = { readFile: n2 }, o = { download: n2, safeDownloadArchived: n2, directoryTree: n2 }, a = { platform: n2, arch: n2 }, s = { join: n2, slice: n2 }, u2 = { spawn: n2 }, c2 = { lookup: n2 }, f2 = r3(1357), d2 = r3(631), l2 = r3(2733), h2 = r3(2510), p2 = r3(3094);
52104      e3.exports = p2({ fs: i, files: o, os: a, path: s, child_process: u2, defaultArchives: {}, mimetype: c2, request: f2, downloadUrl: null, bytes: d2, hash: l2, pick: h2 });
52105    }, 2510: (e3) => {
52106      var t3 = function(e4) {
52107        return function() {
52108          return new Promise(function(t4, r3) {
52109            var n2, i = function(r4) {
52110              var n3 = {}, i2 = r4.target.files.length, o2 = 0;
52111              [].map.call(r4.target.files, function(r5) {
52112                var a = new FileReader();
52113                a.onload = function(a2) {
52114                  var s = new Uint8Array(a2.target.result);
52115                  if ("directory" === e4) {
52116                    var u2 = r5.webkitRelativePath;
52117                    n3[u2.slice(u2.indexOf("/") + 1)] = { type: "text/plain", data: s }, ++o2 === i2 && t4(n3);
52118                  } else if ("file" === e4) {
52119                    var c2 = r5.webkitRelativePath;
52120                    t4({ type: mimetype.lookup(c2), data: s });
52121                  } else
52122                    t4(s);
52123                }, a.readAsArrayBuffer(r5);
52124              });
52125            };
52126            "directory" === e4 ? ((n2 = document.createElement("input")).addEventListener("change", i), n2.type = "file", n2.webkitdirectory = true, n2.mozdirectory = true, n2.msdirectory = true, n2.odirectory = true, n2.directory = true) : ((n2 = document.createElement("input")).addEventListener("change", i), n2.type = "file");
52127            var o = document.createEvent("MouseEvents");
52128            o.initEvent("click", true, false), n2.dispatchEvent(o);
52129          });
52130        };
52131      };
52132      e3.exports = { data: t3("data"), file: t3("file"), directory: t3("directory") };
52133    }, 2733: (e3, t3, r3) => {
52134      var n2 = r3(9574).keccak256, i = r3(631), o = function(e4, t4) {
52135        var r4 = i.reverse(i.pad(6, i.fromNumber(e4))), o2 = i.flatten([r4, "0x0000", t4]);
52136        return n2(o2).slice(2);
52137      };
52138      e3.exports = function e4(t4) {
52139        "string" == typeof t4 && "0x" !== t4.slice(0, 2) ? t4 = i.fromString(t4) : "string" != typeof t4 && void 0 !== t4.length && (t4 = i.fromUint8Array(t4));
52140        var r4 = i.length(t4);
52141        if (r4 <= 4096)
52142          return o(r4, t4);
52143        for (var n3 = 4096; 128 * n3 < r4; )
52144          n3 *= 128;
52145        for (var a = [], s = 0; s < r4; s += n3) {
52146          var u2 = n3 < r4 - s ? n3 : r4 - s;
52147          a.push(e4(i.slice(t4, s, s + u2)));
52148        }
52149        return o(r4, i.flatten(a));
52150      };
52151    }, 3094: (e3) => {
52152      e3.exports = function(e4) {
52153        var t3 = e4.fs, r3 = e4.files, n2 = e4.os, i = e4.path, o = e4.child_process, a = e4.mimetype, s = e4.defaultArchives, u2 = e4.request, c2 = e4.downloadUrl, f2 = e4.bytes, d2 = e4.hash, l2 = e4.pick, h2 = function(e5) {
52154          return function(t4) {
52155            for (var r4 = {}, n3 = 0, i2 = e5.length; n3 < i2; ++n3)
52156              r4[e5[n3]] = t4[n3];
52157            return r4;
52158          };
52159        }, p2 = function(e5) {
52160          return function(t4) {
52161            return "".concat(e5, "/bzz-raw:/").concat(t4);
52162          };
52163        }, b2 = function(e5) {
52164          return function(t4) {
52165            return new Promise(function(r4, n3) {
52166              u2(p2(e5)(t4), { responseType: "arraybuffer" }, function(e6, t5, i2) {
52167                return e6 ? n3(e6) : i2.statusCode >= 400 ? n3(new Error("Error ".concat(i2.statusCode, "."))) : r4(new Uint8Array(t5));
52168              });
52169            });
52170          };
52171        }, y2 = function(e5) {
52172          return function(t4) {
52173            return function t5(r4) {
52174              return function(n3) {
52175                return function(i2) {
52176                  var o2 = function(e6) {
52177                    return void 0 === e6.path ? Promise.resolve() : "application/bzz-manifest+json" === e6.contentType ? t5(e6.hash)(n3 + e6.path)(i2) : Promise.resolve((r5 = n3 + e6.path, function(e7) {
52178                      return function(t6) {
52179                        return t6[r5] = e7, t6;
52180                      };
52181                    })(function(e7) {
52182                      return { type: e7.contentType, hash: e7.hash };
52183                    }(e6))(i2));
52184                    var r5;
52185                  };
52186                  return b2(e5)(r4).then(function(e6) {
52187                    return JSON.parse(j(e6)).entries;
52188                  }).then(function(e6) {
52189                    return Promise.all(e6.map(o2));
52190                  }).then(function() {
52191                    return i2;
52192                  });
52193                };
52194              };
52195            }(t4)("")({});
52196          };
52197        }, m2 = function(e5) {
52198          return function(t4) {
52199            return y2(e5)(t4).then(function(e6) {
52200              return h2(Object.keys(e6))(Object.keys(e6).map(function(t5) {
52201                return e6[t5].hash;
52202              }));
52203            });
52204          };
52205        }, v2 = function(e5) {
52206          return function(t4) {
52207            return y2(e5)(t4).then(function(t5) {
52208              var r4 = Object.keys(t5), n3 = r4.map(function(e6) {
52209                return t5[e6].hash;
52210              }), i2 = r4.map(function(e6) {
52211                return t5[e6].type;
52212              }), o2 = n3.map(b2(e5));
52213              return Promise.all(o2).then(function(e6) {
52214                return h2(r4)(function(e7) {
52215                  return e7.map(function(e8, t6) {
52216                    return { type: i2[t6], data: e8 };
52217                  });
52218                }(e6));
52219              });
52220            });
52221          };
52222        }, g2 = function(e5) {
52223          return function(t4) {
52224            return function(n3) {
52225              return r3.download(p2(e5)(t4))(n3);
52226            };
52227          };
52228        }, w2 = function(e5) {
52229          return function(t4) {
52230            return function(r4) {
52231              return m2(e5)(t4).then(function(t5) {
52232                var n3 = [];
52233                for (var o2 in t5)
52234                  if (o2.length > 0) {
52235                    var a2 = i.join(r4, o2);
52236                    n3.push(g2(e5)(t5[o2])(a2));
52237                  }
52238                return Promise.all(n3).then(function() {
52239                  return r4;
52240                });
52241              });
52242            };
52243          };
52244        }, A2 = function(e5) {
52245          return function(t4) {
52246            return new Promise(function(r4, n3) {
52247              var i2 = { body: "string" == typeof t4 ? N2(t4) : t4, method: "POST" };
52248              u2("".concat(e5, "/bzz-raw:/"), i2, function(e6, t5) {
52249                return e6 ? n3(e6) : r4(t5);
52250              });
52251            });
52252          };
52253        }, k2 = function(e5) {
52254          return function(t4) {
52255            return function(r4) {
52256              return function(n3) {
52257                return function i2(o2) {
52258                  var a2 = "/" === r4[0] ? r4 : "/" + r4, s2 = "".concat(e5, "/bzz:/").concat(t4).concat(a2), c3 = { method: "PUT", headers: { "Content-Type": n3.type }, body: n3.data };
52259                  return new Promise(function(e6, t5) {
52260                    u2(s2, c3, function(r5, n4) {
52261                      return r5 ? t5(r5) : -1 !== n4.indexOf("error") ? t5(n4) : e6(n4);
52262                    });
52263                  }).catch(function(e6) {
52264                    return o2 > 0 && i2(o2 - 1);
52265                  });
52266                }(3);
52267              };
52268            };
52269          };
52270        }, _ = function(e5) {
52271          return function(t4) {
52272            return x2(e5)({ "": t4 });
52273          };
52274        }, S2 = function(e5) {
52275          return function(r4) {
52276            return t3.readFile(r4).then(function(t4) {
52277              return _(e5)({ type: a.lookup(r4), data: t4 });
52278            });
52279          };
52280        }, x2 = function(e5) {
52281          return function(t4) {
52282            return A2(e5)("{}").then(function(r4) {
52283              return Object.keys(t4).reduce(function(r5, n3) {
52284                return r5.then(function(r6) {
52285                  return function(n4) {
52286                    return k2(e5)(n4)(r6)(t4[r6]);
52287                  };
52288                }(n3));
52289              }, Promise.resolve(r4));
52290            });
52291          };
52292        }, E2 = function(e5) {
52293          return function(r4) {
52294            return t3.readFile(r4).then(A2(e5));
52295          };
52296        }, P2 = function(e5) {
52297          return function(n3) {
52298            return function(i2) {
52299              return r3.directoryTree(i2).then(function(e6) {
52300                return Promise.all(e6.map(function(e7) {
52301                  return t3.readFile(e7);
52302                })).then(function(t4) {
52303                  var r4 = e6.map(function(e7) {
52304                    return e7.slice(i2.length);
52305                  }), n4 = e6.map(function(e7) {
52306                    return a.lookup(e7) || "text/plain";
52307                  });
52308                  return h2(r4)(t4.map(function(e7, t5) {
52309                    return { type: n4[t5], data: e7 };
52310                  }));
52311                });
52312              }).then(function(e6) {
52313                return (t4 = n3 ? { "": e6[n3] } : {}, function(e7) {
52314                  var r4 = {};
52315                  for (var n4 in t4)
52316                    r4[n4] = t4[n4];
52317                  for (var i3 in e7)
52318                    r4[i3] = e7[i3];
52319                  return r4;
52320                })(e6);
52321                var t4;
52322              }).then(x2(e5));
52323            };
52324          };
52325        }, O2 = function(e5) {
52326          return function(t4) {
52327            if ("data" === t4.pick)
52328              return l2.data().then(A2(e5));
52329            if ("file" === t4.pick)
52330              return l2.file().then(_(e5));
52331            if ("directory" === t4.pick)
52332              return l2.directory().then(x2(e5));
52333            if (t4.path)
52334              switch (t4.kind) {
52335                case "data":
52336                  return E2(e5)(t4.path);
52337                case "file":
52338                  return S2(e5)(t4.path);
52339                case "directory":
52340                  return P2(e5)(t4.defaultFile)(t4.path);
52341              }
52342            else {
52343              if (t4.length || "string" == typeof t4)
52344                return A2(e5)(t4);
52345              if (t4 instanceof Object)
52346                return x2(e5)(t4);
52347            }
52348            return Promise.reject(new Error("Bad arguments"));
52349          };
52350        }, B2 = function(e5) {
52351          return function(t4) {
52352            return function(r4) {
52353              return U2(e5)(t4).then(function(n3) {
52354                return n3 ? r4 ? w2(e5)(t4)(r4) : v2(e5)(t4) : r4 ? g2(e5)(t4)(r4) : b2(e5)(t4);
52355              });
52356            };
52357          };
52358        }, T2 = function(e5, t4) {
52359          var i2 = n2.platform().replace("win32", "windows") + "-" + ("x64" === n2.arch() ? "amd64" : "386"), o2 = (t4 || s)[i2], a2 = c2 + o2.archive + ".tar.gz", u3 = o2.archiveMD5, f3 = o2.binaryMD5;
52360          return r3.safeDownloadArchived(a2)(u3)(f3)(e5);
52361        }, C2 = function(e5) {
52362          return new Promise(function(t4, r4) {
52363            var n3 = o.spawn, i2 = function(e6) {
52364              return function(t5) {
52365                return -1 !== ("" + t5).indexOf(e6);
52366              };
52367            }, a2 = e5.account, s2 = e5.password, u3 = e5.dataDir, c3 = e5.ensApi, f3 = e5.privateKey, d3 = 0, l3 = n3(e5.binPath, ["--bzzaccount", a2 || f3, "--datadir", u3, "--ens-api", c3]), h3 = function(e6) {
52368              0 === d3 && i2("Passphrase")(e6) ? setTimeout(function() {
52369                d3 = 1, l3.stdin.write(s2 + "\n");
52370              }, 500) : i2("Swarm http proxy started")(e6) && (d3 = 2, clearTimeout(p3), t4(l3));
52371            };
52372            l3.stdout.on("data", h3), l3.stderr.on("data", h3);
52373            var p3 = setTimeout(function() {
52374              return r4(new Error("Couldn't start swarm process."));
52375            }, 2e4);
52376          });
52377        }, I2 = function(e5) {
52378          return new Promise(function(t4, r4) {
52379            e5.stderr.removeAllListeners("data"), e5.stdout.removeAllListeners("data"), e5.stdin.removeAllListeners("error"), e5.removeAllListeners("error"), e5.removeAllListeners("exit"), e5.kill("SIGINT");
52380            var n3 = setTimeout(function() {
52381              return e5.kill("SIGKILL");
52382            }, 8e3);
52383            e5.once("close", function() {
52384              clearTimeout(n3), t4();
52385            });
52386          });
52387        }, M2 = function(e5) {
52388          return A2(e5)("test").then(function(e6) {
52389            return "c9a99c7d326dcc6316f32fe2625b311f6dc49a175e6877681ded93137d3569e7" === e6;
52390          }).catch(function() {
52391            return false;
52392          });
52393        }, U2 = function(e5) {
52394          return function(t4) {
52395            return b2(e5)(t4).then(function(e6) {
52396              try {
52397                return !!JSON.parse(j(e6)).entries;
52398              } catch (e7) {
52399                return false;
52400              }
52401            });
52402          };
52403        }, R2 = function(e5) {
52404          return function(t4, r4, n3, i2, o2) {
52405            var a2;
52406            return void 0 !== t4 && (a2 = e5(t4)), void 0 !== r4 && (a2 = e5(r4)), void 0 !== n3 && (a2 = e5(n3)), void 0 !== i2 && (a2 = e5(i2)), void 0 !== o2 && (a2 = e5(o2)), a2;
52407          };
52408        }, j = function(e5) {
52409          return f2.toString(f2.fromUint8Array(e5));
52410        }, N2 = function(e5) {
52411          return f2.toUint8Array(f2.fromString(e5));
52412        }, F2 = function(e5) {
52413          return { download: function(t4, r4) {
52414            return B2(e5)(t4)(r4);
52415          }, downloadData: R2(b2(e5)), downloadDataToDisk: R2(g2(e5)), downloadDirectory: R2(v2(e5)), downloadDirectoryToDisk: R2(w2(e5)), downloadEntries: R2(y2(e5)), downloadRoutes: R2(m2(e5)), isAvailable: function() {
52416            return M2(e5);
52417          }, upload: function(t4) {
52418            return O2(e5)(t4);
52419          }, uploadData: R2(A2(e5)), uploadFile: R2(_(e5)), uploadFileFromDisk: R2(_(e5)), uploadDataFromDisk: R2(E2(e5)), uploadDirectory: R2(x2(e5)), uploadDirectoryFromDisk: R2(P2(e5)), uploadToManifest: R2(k2(e5)), pick: l2, hash: d2, fromString: N2, toString: j };
52420        };
52421        return { at: F2, local: function(e5) {
52422          return function(t4) {
52423            return M2("http://localhost:8500").then(function(r4) {
52424              return r4 ? t4(F2("http://localhost:8500")).then(function() {
52425              }) : T2(e5.binPath, e5.archives).onData(function(t5) {
52426                return (e5.onProgress || function() {
52427                })(t5.length);
52428              }).then(function() {
52429                return C2(e5);
52430              }).then(function(e6) {
52431                return t4(F2("http://localhost:8500")).then(function() {
52432                  return e6;
52433                });
52434              }).then(I2);
52435            });
52436          };
52437        }, download: B2, downloadBinary: T2, downloadData: b2, downloadDataToDisk: g2, downloadDirectory: v2, downloadDirectoryToDisk: w2, downloadEntries: y2, downloadRoutes: m2, isAvailable: M2, startProcess: C2, stopProcess: I2, upload: O2, uploadData: A2, uploadDataFromDisk: E2, uploadFile: _, uploadFileFromDisk: S2, uploadDirectory: x2, uploadDirectoryFromDisk: P2, uploadToManifest: k2, pick: l2, hash: d2, fromString: N2, toString: j };
52438      };
52439    }, 7380: (e3) => {
52440      var t3 = function(e4, t4) {
52441        for (var r3 = [], n2 = 0; n2 < e4; ++n2)
52442          r3.push(t4(n2));
52443        return r3;
52444      };
52445      e3.exports = { generate: t3, replicate: function(e4, r3) {
52446        return t3(e4, function() {
52447          return r3;
52448        });
52449      }, concat: function(e4, t4) {
52450        return e4.concat(t4);
52451      }, flatten: function(e4) {
52452        for (var t4 = [], r3 = 0, n2 = e4.length; r3 < n2; ++r3)
52453          for (var i = 0, o = e4[r3].length; i < o; ++i)
52454            t4.push(e4[r3][i]);
52455        return t4;
52456      }, chunksOf: function(e4, t4) {
52457        for (var r3 = [], n2 = 0, i = t4.length; n2 < i; n2 += e4)
52458          r3.push(t4.slice(n2, n2 + e4));
52459        return r3;
52460      } };
52461    }, 631: (e3, t3, r3) => {
52462      r3(7380);
52463      var n2 = function(e4, t4) {
52464        return parseInt(e4.slice(2 * t4 + 2, 2 * t4 + 4), 16);
52465      }, i = function(e4) {
52466        return (e4.length - 2) / 2;
52467      }, o = function(e4) {
52468        for (var t4 = [], r4 = 2, n3 = e4.length; r4 < n3; r4 += 2)
52469          t4.push(parseInt(e4.slice(r4, r4 + 2), 16));
52470        return t4;
52471      }, a = function(e4) {
52472        for (var t4 = "0x", r4 = 0, n3 = e4.length; r4 < n3; ++r4) {
52473          var i2 = e4[r4];
52474          t4 += (i2 < 16 ? "0" : "") + i2.toString(16);
52475        }
52476        return t4;
52477      };
52478      e3.exports = { random: function(e4) {
52479        var t4 = void 0;
52480        t4 = "undefined" != typeof window && window.crypto && window.crypto.getRandomValues ? window.crypto.getRandomValues(new Uint8Array(e4)) : r3(4293).randomBytes(e4);
52481        for (var n3 = "0x", i2 = 0; i2 < e4; ++i2)
52482          n3 += ("00" + t4[i2].toString(16)).slice(-2);
52483        return n3;
52484      }, length: i, concat: function(e4, t4) {
52485        return e4.concat(t4.slice(2));
52486      }, flatten: function(e4) {
52487        return "0x" + e4.reduce(function(e5, t4) {
52488          return e5 + t4.slice(2);
52489        }, "");
52490      }, slice: function(e4, t4, r4) {
52491        return "0x" + r4.slice(2 * e4 + 2, 2 * t4 + 2);
52492      }, reverse: function(e4) {
52493        for (var t4 = "0x", r4 = 0, n3 = i(e4); r4 < n3; ++r4)
52494          t4 += e4.slice(2 * (n3 - r4), 2 * (n3 - r4 + 1));
52495        return t4;
52496      }, pad: function e4(t4, r4) {
52497        return r4.length === 2 * t4 + 2 ? r4 : e4(t4, "0x0" + r4.slice(2));
52498      }, padRight: function e4(t4, r4) {
52499        return r4.length === 2 * t4 + 2 ? r4 : e4(t4, r4 + "0");
52500      }, fromAscii: function(e4) {
52501        for (var t4 = "0x", r4 = 0; r4 < e4.length; ++r4)
52502          t4 += ("00" + e4.charCodeAt(r4).toString(16)).slice(-2);
52503        return t4;
52504      }, toAscii: function(e4) {
52505        for (var t4 = "", r4 = 2; r4 < e4.length; r4 += 2)
52506          t4 += String.fromCharCode(parseInt(e4.slice(r4, r4 + 2), 16));
52507        return t4;
52508      }, fromString: function(e4) {
52509        for (var t4 = function(e5) {
52510          var t5 = e5.toString(16);
52511          return t5.length < 2 ? "0" + t5 : t5;
52512        }, r4 = "0x", n3 = 0; n3 != e4.length; n3++) {
52513          var i2 = e4.charCodeAt(n3);
52514          if (i2 < 128)
52515            r4 += t4(i2);
52516          else {
52517            if (i2 < 2048)
52518              r4 += t4(i2 >> 6 | 192);
52519            else {
52520              if (i2 > 55295 && i2 < 56320) {
52521                if (++n3 == e4.length)
52522                  return null;
52523                var o2 = e4.charCodeAt(n3);
52524                if (o2 < 56320 || o2 > 57343)
52525                  return null;
52526                r4 += t4((i2 = 65536 + ((1023 & i2) << 10) + (1023 & o2)) >> 18 | 240), r4 += t4(i2 >> 12 & 63 | 128);
52527              } else
52528                r4 += t4(i2 >> 12 | 224);
52529              r4 += t4(i2 >> 6 & 63 | 128);
52530            }
52531            r4 += t4(63 & i2 | 128);
52532          }
52533        }
52534        return r4;
52535      }, toString: function(e4) {
52536        for (var t4 = "", r4 = 0, o2 = i(e4); r4 < o2; ) {
52537          var a2 = n2(e4, r4++);
52538          if (a2 > 127) {
52539            if (a2 > 191 && a2 < 224) {
52540              if (r4 >= o2)
52541                return null;
52542              a2 = (31 & a2) << 6 | 63 & n2(e4, r4);
52543            } else if (a2 > 223 && a2 < 240) {
52544              if (r4 + 1 >= o2)
52545                return null;
52546              a2 = (15 & a2) << 12 | (63 & n2(e4, r4)) << 6 | 63 & n2(e4, ++r4);
52547            } else {
52548              if (!(a2 > 239 && a2 < 248))
52549                return null;
52550              if (r4 + 2 >= o2)
52551                return null;
52552              a2 = (7 & a2) << 18 | (63 & n2(e4, r4)) << 12 | (63 & n2(e4, ++r4)) << 6 | 63 & n2(e4, ++r4);
52553            }
52554            ++r4;
52555          }
52556          if (a2 <= 65535)
52557            t4 += String.fromCharCode(a2);
52558          else {
52559            if (!(a2 <= 1114111))
52560              return null;
52561            a2 -= 65536, t4 += String.fromCharCode(a2 >> 10 | 55296), t4 += String.fromCharCode(1023 & a2 | 56320);
52562          }
52563        }
52564        return t4;
52565      }, fromNumber: function(e4) {
52566        var t4 = e4.toString(16);
52567        return t4.length % 2 == 0 ? "0x" + t4 : "0x0" + t4;
52568      }, toNumber: function(e4) {
52569        return parseInt(e4.slice(2), 16);
52570      }, fromNat: function(e4) {
52571        return "0x0" === e4 ? "0x" : e4.length % 2 == 0 ? e4 : "0x0" + e4.slice(2);
52572      }, toNat: function(e4) {
52573        return "0" === e4[2] ? "0x" + e4.slice(3) : e4;
52574      }, fromArray: a, toArray: o, fromUint8Array: function(e4) {
52575        return a([].slice.call(e4, 0));
52576      }, toUint8Array: function(e4) {
52577        return new Uint8Array(o(e4));
52578      } };
52579    }, 9574: (e3) => {
52580      var t3 = "0123456789abcdef".split(""), r3 = [1, 256, 65536, 16777216], n2 = [0, 8, 16, 24], i = [1, 0, 32898, 0, 32906, 2147483648, 2147516416, 2147483648, 32907, 0, 2147483649, 0, 2147516545, 2147483648, 32777, 2147483648, 138, 0, 136, 0, 2147516425, 0, 2147483658, 0, 2147516555, 0, 139, 2147483648, 32905, 2147483648, 32771, 2147483648, 32770, 2147483648, 128, 2147483648, 32778, 0, 2147483658, 2147483648, 2147516545, 2147483648, 32896, 2147483648, 2147483649, 0, 2147516424, 2147483648], o = function(e4) {
52581        var t4, r4, n3, o2, a2, s, u2, c2, f2, d2, l2, h2, p2, b2, y2, m2, v2, g2, w2, A2, k2, _, S2, x2, E2, P2, O2, B2, T2, C2, I2, M2, U2, R2, j, N2, F2, L2, D2, H2, q2, z2, G2, K2, V2, J2, W2, Y2, X2, Q2, Z2, $, ee2, te2, re2, ne2, ie2, oe2, ae2, se2, ue2, ce2, fe2;
52582        for (n3 = 0; n3 < 48; n3 += 2)
52583          o2 = e4[0] ^ e4[10] ^ e4[20] ^ e4[30] ^ e4[40], a2 = e4[1] ^ e4[11] ^ e4[21] ^ e4[31] ^ e4[41], s = e4[2] ^ e4[12] ^ e4[22] ^ e4[32] ^ e4[42], u2 = e4[3] ^ e4[13] ^ e4[23] ^ e4[33] ^ e4[43], c2 = e4[4] ^ e4[14] ^ e4[24] ^ e4[34] ^ e4[44], f2 = e4[5] ^ e4[15] ^ e4[25] ^ e4[35] ^ e4[45], d2 = e4[6] ^ e4[16] ^ e4[26] ^ e4[36] ^ e4[46], l2 = e4[7] ^ e4[17] ^ e4[27] ^ e4[37] ^ e4[47], t4 = (h2 = e4[8] ^ e4[18] ^ e4[28] ^ e4[38] ^ e4[48]) ^ (s << 1 | u2 >>> 31), r4 = (p2 = e4[9] ^ e4[19] ^ e4[29] ^ e4[39] ^ e4[49]) ^ (u2 << 1 | s >>> 31), e4[0] ^= t4, e4[1] ^= r4, e4[10] ^= t4, e4[11] ^= r4, e4[20] ^= t4, e4[21] ^= r4, e4[30] ^= t4, e4[31] ^= r4, e4[40] ^= t4, e4[41] ^= r4, t4 = o2 ^ (c2 << 1 | f2 >>> 31), r4 = a2 ^ (f2 << 1 | c2 >>> 31), e4[2] ^= t4, e4[3] ^= r4, e4[12] ^= t4, e4[13] ^= r4, e4[22] ^= t4, e4[23] ^= r4, e4[32] ^= t4, e4[33] ^= r4, e4[42] ^= t4, e4[43] ^= r4, t4 = s ^ (d2 << 1 | l2 >>> 31), r4 = u2 ^ (l2 << 1 | d2 >>> 31), e4[4] ^= t4, e4[5] ^= r4, e4[14] ^= t4, e4[15] ^= r4, e4[24] ^= t4, e4[25] ^= r4, e4[34] ^= t4, e4[35] ^= r4, e4[44] ^= t4, e4[45] ^= r4, t4 = c2 ^ (h2 << 1 | p2 >>> 31), r4 = f2 ^ (p2 << 1 | h2 >>> 31), e4[6] ^= t4, e4[7] ^= r4, e4[16] ^= t4, e4[17] ^= r4, e4[26] ^= t4, e4[27] ^= r4, e4[36] ^= t4, e4[37] ^= r4, e4[46] ^= t4, e4[47] ^= r4, t4 = d2 ^ (o2 << 1 | a2 >>> 31), r4 = l2 ^ (a2 << 1 | o2 >>> 31), e4[8] ^= t4, e4[9] ^= r4, e4[18] ^= t4, e4[19] ^= r4, e4[28] ^= t4, e4[29] ^= r4, e4[38] ^= t4, e4[39] ^= r4, e4[48] ^= t4, e4[49] ^= r4, b2 = e4[0], y2 = e4[1], J2 = e4[11] << 4 | e4[10] >>> 28, W2 = e4[10] << 4 | e4[11] >>> 28, B2 = e4[20] << 3 | e4[21] >>> 29, T2 = e4[21] << 3 | e4[20] >>> 29, se2 = e4[31] << 9 | e4[30] >>> 23, ue2 = e4[30] << 9 | e4[31] >>> 23, z2 = e4[40] << 18 | e4[41] >>> 14, G2 = e4[41] << 18 | e4[40] >>> 14, R2 = e4[2] << 1 | e4[3] >>> 31, j = e4[3] << 1 | e4[2] >>> 31, m2 = e4[13] << 12 | e4[12] >>> 20, v2 = e4[12] << 12 | e4[13] >>> 20, Y2 = e4[22] << 10 | e4[23] >>> 22, X2 = e4[23] << 10 | e4[22] >>> 22, C2 = e4[33] << 13 | e4[32] >>> 19, I2 = e4[32] << 13 | e4[33] >>> 19, ce2 = e4[42] << 2 | e4[43] >>> 30, fe2 = e4[43] << 2 | e4[42] >>> 30, te2 = e4[5] << 30 | e4[4] >>> 2, re2 = e4[4] << 30 | e4[5] >>> 2, N2 = e4[14] << 6 | e4[15] >>> 26, F2 = e4[15] << 6 | e4[14] >>> 26, g2 = e4[25] << 11 | e4[24] >>> 21, w2 = e4[24] << 11 | e4[25] >>> 21, Q2 = e4[34] << 15 | e4[35] >>> 17, Z2 = e4[35] << 15 | e4[34] >>> 17, M2 = e4[45] << 29 | e4[44] >>> 3, U2 = e4[44] << 29 | e4[45] >>> 3, x2 = e4[6] << 28 | e4[7] >>> 4, E2 = e4[7] << 28 | e4[6] >>> 4, ne2 = e4[17] << 23 | e4[16] >>> 9, ie2 = e4[16] << 23 | e4[17] >>> 9, L2 = e4[26] << 25 | e4[27] >>> 7, D2 = e4[27] << 25 | e4[26] >>> 7, A2 = e4[36] << 21 | e4[37] >>> 11, k2 = e4[37] << 21 | e4[36] >>> 11, $ = e4[47] << 24 | e4[46] >>> 8, ee2 = e4[46] << 24 | e4[47] >>> 8, K2 = e4[8] << 27 | e4[9] >>> 5, V2 = e4[9] << 27 | e4[8] >>> 5, P2 = e4[18] << 20 | e4[19] >>> 12, O2 = e4[19] << 20 | e4[18] >>> 12, oe2 = e4[29] << 7 | e4[28] >>> 25, ae2 = e4[28] << 7 | e4[29] >>> 25, H2 = e4[38] << 8 | e4[39] >>> 24, q2 = e4[39] << 8 | e4[38] >>> 24, _ = e4[48] << 14 | e4[49] >>> 18, S2 = e4[49] << 14 | e4[48] >>> 18, e4[0] = b2 ^ ~m2 & g2, e4[1] = y2 ^ ~v2 & w2, e4[10] = x2 ^ ~P2 & B2, e4[11] = E2 ^ ~O2 & T2, e4[20] = R2 ^ ~N2 & L2, e4[21] = j ^ ~F2 & D2, e4[30] = K2 ^ ~J2 & Y2, e4[31] = V2 ^ ~W2 & X2, e4[40] = te2 ^ ~ne2 & oe2, e4[41] = re2 ^ ~ie2 & ae2, e4[2] = m2 ^ ~g2 & A2, e4[3] = v2 ^ ~w2 & k2, e4[12] = P2 ^ ~B2 & C2, e4[13] = O2 ^ ~T2 & I2, e4[22] = N2 ^ ~L2 & H2, e4[23] = F2 ^ ~D2 & q2, e4[32] = J2 ^ ~Y2 & Q2, e4[33] = W2 ^ ~X2 & Z2, e4[42] = ne2 ^ ~oe2 & se2, e4[43] = ie2 ^ ~ae2 & ue2, e4[4] = g2 ^ ~A2 & _, e4[5] = w2 ^ ~k2 & S2, e4[14] = B2 ^ ~C2 & M2, e4[15] = T2 ^ ~I2 & U2, e4[24] = L2 ^ ~H2 & z2, e4[25] = D2 ^ ~q2 & G2, e4[34] = Y2 ^ ~Q2 & $, e4[35] = X2 ^ ~Z2 & ee2, e4[44] = oe2 ^ ~se2 & ce2, e4[45] = ae2 ^ ~ue2 & fe2, e4[6] = A2 ^ ~_ & b2, e4[7] = k2 ^ ~S2 & y2, e4[16] = C2 ^ ~M2 & x2, e4[17] = I2 ^ ~U2 & E2, e4[26] = H2 ^ ~z2 & R2, e4[27] = q2 ^ ~G2 & j, e4[36] = Q2 ^ ~$ & K2, e4[37] = Z2 ^ ~ee2 & V2, e4[46] = se2 ^ ~ce2 & te2, e4[47] = ue2 ^ ~fe2 & re2, e4[8] = _ ^ ~b2 & m2, e4[9] = S2 ^ ~y2 & v2, e4[18] = M2 ^ ~x2 & P2, e4[19] = U2 ^ ~E2 & O2, e4[28] = z2 ^ ~R2 & N2, e4[29] = G2 ^ ~j & F2, e4[38] = $ ^ ~K2 & J2, e4[39] = ee2 ^ ~V2 & W2, e4[48] = ce2 ^ ~te2 & ne2, e4[49] = fe2 ^ ~re2 & ie2, e4[0] ^= i[n3], e4[1] ^= i[n3 + 1];
52584      }, a = function(e4) {
52585        return function(i2) {
52586          var a2;
52587          if ("0x" === i2.slice(0, 2)) {
52588            a2 = [];
52589            for (var s = 2, u2 = i2.length; s < u2; s += 2)
52590              a2.push(parseInt(i2.slice(s, s + 2), 16));
52591          } else
52592            a2 = i2;
52593          return function(e5, i3) {
52594            for (var a3, s2 = i3.length, u3 = e5.blocks, c2 = e5.blockCount << 2, f2 = e5.blockCount, d2 = e5.outputBlocks, l2 = e5.s, h2 = 0; h2 < s2; ) {
52595              if (e5.reset)
52596                for (e5.reset = false, u3[0] = e5.block, y2 = 1; y2 < f2 + 1; ++y2)
52597                  u3[y2] = 0;
52598              if ("string" != typeof i3)
52599                for (y2 = e5.start; h2 < s2 && y2 < c2; ++h2)
52600                  u3[y2 >> 2] |= i3[h2] << n2[3 & y2++];
52601              else
52602                for (y2 = e5.start; h2 < s2 && y2 < c2; ++h2)
52603                  (a3 = i3.charCodeAt(h2)) < 128 ? u3[y2 >> 2] |= a3 << n2[3 & y2++] : a3 < 2048 ? (u3[y2 >> 2] |= (192 | a3 >> 6) << n2[3 & y2++], u3[y2 >> 2] |= (128 | 63 & a3) << n2[3 & y2++]) : a3 < 55296 || a3 >= 57344 ? (u3[y2 >> 2] |= (224 | a3 >> 12) << n2[3 & y2++], u3[y2 >> 2] |= (128 | a3 >> 6 & 63) << n2[3 & y2++], u3[y2 >> 2] |= (128 | 63 & a3) << n2[3 & y2++]) : (a3 = 65536 + ((1023 & a3) << 10 | 1023 & i3.charCodeAt(++h2)), u3[y2 >> 2] |= (240 | a3 >> 18) << n2[3 & y2++], u3[y2 >> 2] |= (128 | a3 >> 12 & 63) << n2[3 & y2++], u3[y2 >> 2] |= (128 | a3 >> 6 & 63) << n2[3 & y2++], u3[y2 >> 2] |= (128 | 63 & a3) << n2[3 & y2++]);
52604              if (e5.lastByteIndex = y2, y2 >= c2) {
52605                for (e5.start = y2 - c2, e5.block = u3[f2], y2 = 0; y2 < f2; ++y2)
52606                  l2[y2] ^= u3[y2];
52607                o(l2), e5.reset = true;
52608              } else
52609                e5.start = y2;
52610            }
52611            if (u3[(y2 = e5.lastByteIndex) >> 2] |= r3[3 & y2], e5.lastByteIndex === c2)
52612              for (u3[0] = u3[f2], y2 = 1; y2 < f2 + 1; ++y2)
52613                u3[y2] = 0;
52614            for (u3[f2 - 1] |= 2147483648, y2 = 0; y2 < f2; ++y2)
52615              l2[y2] ^= u3[y2];
52616            o(l2);
52617            for (var p2, b2 = "", y2 = 0, m2 = 0; m2 < d2; ) {
52618              for (y2 = 0; y2 < f2 && m2 < d2; ++y2, ++m2)
52619                p2 = l2[y2], b2 += t3[p2 >> 4 & 15] + t3[15 & p2] + t3[p2 >> 12 & 15] + t3[p2 >> 8 & 15] + t3[p2 >> 20 & 15] + t3[p2 >> 16 & 15] + t3[p2 >> 28 & 15] + t3[p2 >> 24 & 15];
52620              m2 % f2 == 0 && (o(l2), y2 = 0);
52621            }
52622            return "0x" + b2;
52623          }(function(e5) {
52624            return { blocks: [], reset: true, block: 0, start: 0, blockCount: 1600 - (e5 << 1) >> 5, outputBlocks: e5 >> 5, s: (t4 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [].concat(t4, t4, t4, t4, t4)) };
52625            var t4;
52626          }(e4), a2);
52627        };
52628      };
52629      e3.exports = { keccak256: a(256), keccak512: a(512), keccak256s: a(256), keccak512s: a(512) };
52630    }, 8419: (e3) => {
52631      e3.exports = function(e4, t3) {
52632        if (t3) {
52633          t3 = (t3 = t3.trim().replace(/^(\?|#|&)/, "")) ? "?" + t3 : t3;
52634          var r3 = e4.split(/[\?\#]/)[0];
52635          t3 && /\:\/\/[^\/]*$/.test(r3) && (r3 += "/");
52636          var n2 = e4.match(/(\#.*)$/);
52637          e4 = r3 + t3, n2 && (e4 += n2[0]);
52638        }
52639        return e4;
52640      };
52641    }, 8677: (e3, t3, r3) => {
52642      var n2;
52643      e3 = r3.nmd(e3);
52644      var i = r3(8847)(r3(3355));
52645      !function(o) {
52646        var a = "object" == (0, i.default)(t3) && t3 && !t3.nodeType && t3, s = "object" == (0, i.default)(e3) && e3 && !e3.nodeType && e3, u2 = "object" == (void 0 === r3.g ? "undefined" : (0, i.default)(r3.g)) && r3.g;
52647        u2.global !== u2 && u2.window !== u2 && u2.self !== u2 || (o = u2);
52648        var c2, f2, d2 = 2147483647, l2 = 36, h2 = /^xn--/, p2 = /[^\x20-\x7E]/, b2 = /[\x2E\u3002\uFF0E\uFF61]/g, y2 = { overflow: "Overflow: input needs wider integers to process", "not-basic": "Illegal input >= 0x80 (not a basic code point)", "invalid-input": "Invalid input" }, m2 = Math.floor, v2 = String.fromCharCode;
52649        function g2(e4) {
52650          throw RangeError(y2[e4]);
52651        }
52652        function w2(e4, t4) {
52653          for (var r4 = e4.length, n3 = []; r4--; )
52654            n3[r4] = t4(e4[r4]);
52655          return n3;
52656        }
52657        function A2(e4, t4) {
52658          var r4 = e4.split("@"), n3 = "";
52659          return r4.length > 1 && (n3 = r4[0] + "@", e4 = r4[1]), n3 + w2((e4 = e4.replace(b2, ".")).split("."), t4).join(".");
52660        }
52661        function k2(e4) {
52662          for (var t4, r4, n3 = [], i2 = 0, o2 = e4.length; i2 < o2; )
52663            (t4 = e4.charCodeAt(i2++)) >= 55296 && t4 <= 56319 && i2 < o2 ? 56320 == (64512 & (r4 = e4.charCodeAt(i2++))) ? n3.push(((1023 & t4) << 10) + (1023 & r4) + 65536) : (n3.push(t4), i2--) : n3.push(t4);
52664          return n3;
52665        }
52666        function _(e4) {
52667          return w2(e4, function(e5) {
52668            var t4 = "";
52669            return e5 > 65535 && (t4 += v2((e5 -= 65536) >>> 10 & 1023 | 55296), e5 = 56320 | 1023 & e5), t4 + v2(e5);
52670          }).join("");
52671        }
52672        function S2(e4, t4) {
52673          return e4 + 22 + 75 * (e4 < 26) - ((0 != t4) << 5);
52674        }
52675        function x2(e4, t4, r4) {
52676          var n3 = 0;
52677          for (e4 = r4 ? m2(e4 / 700) : e4 >> 1, e4 += m2(e4 / t4); e4 > 455; n3 += l2)
52678            e4 = m2(e4 / 35);
52679          return m2(n3 + 36 * e4 / (e4 + 38));
52680        }
52681        function E2(e4) {
52682          var t4, r4, n3, i2, o2, a2, s2, u3, c3, f3, h3, p3 = [], b3 = e4.length, y3 = 0, v3 = 128, w3 = 72;
52683          for ((r4 = e4.lastIndexOf("-")) < 0 && (r4 = 0), n3 = 0; n3 < r4; ++n3)
52684            e4.charCodeAt(n3) >= 128 && g2("not-basic"), p3.push(e4.charCodeAt(n3));
52685          for (i2 = r4 > 0 ? r4 + 1 : 0; i2 < b3; ) {
52686            for (o2 = y3, a2 = 1, s2 = l2; i2 >= b3 && g2("invalid-input"), ((u3 = (h3 = e4.charCodeAt(i2++)) - 48 < 10 ? h3 - 22 : h3 - 65 < 26 ? h3 - 65 : h3 - 97 < 26 ? h3 - 97 : l2) >= l2 || u3 > m2((d2 - y3) / a2)) && g2("overflow"), y3 += u3 * a2, !(u3 < (c3 = s2 <= w3 ? 1 : s2 >= w3 + 26 ? 26 : s2 - w3)); s2 += l2)
52687              a2 > m2(d2 / (f3 = l2 - c3)) && g2("overflow"), a2 *= f3;
52688            w3 = x2(y3 - o2, t4 = p3.length + 1, 0 == o2), m2(y3 / t4) >
52688 d2 - v3 && g2("overflow"), v3 += m2(y3 / t4), y3 %= t4, p3.splice(y3++, 0, v3);
52689          }
52690          return _(p3);
52691        }
52692        function P2(e4) {
52693          var t4, r4, n3, i2, o2, a2, s2, u3, c3, f3, h3, p3, b3, y3, w3, A3 = [];
52694          for (p3 = (e4 = k2(e4)).length, t4 = 128, r4 = 0, o2 = 72, a2 = 0; a2 < p3; ++a2)
52695            (h3 = e4[a2]) < 128 && A3.push(v2(h3));
52696          for (n3 = i2 = A3.length, i2 && A3.push("-"); n3 < p3; ) {
52697            for (s2 = d2, a2 = 0; a2 < p3; ++a2)
52698              (h3 = e4[a2]) >= t4 && h3 < s2 && (s2 = h3);
52699            for (s2 - t4 > m2((d2 - r4) / (b3 = n3 + 1)) && g2("overflow"), r4 += (s2 - t4) * b3, t4 = s2, a2 = 0; a2 < p3; ++a2)
52700              if ((h3 = e4[a2]) < t4 && ++r4 > d2 && g2("overflow"), h3 == t4) {
52701                for (u3 = r4, c3 = l2; !(u3 < (f3 = c3 <= o2 ? 1 : c3 >= o2 + 26 ? 26 : c3 - o2)); c3 += l2)
52702                  w3 = u3 - f3, y3 = l2 - f3, A3.push(v2(S2(f3 + w3 % y3, 0))), u3 = m2(w3 / y3);
52703                A3.push(v2(S2(u3, 0))), o2 = x2(r4, b3, n3 == i2), r4 = 0, ++n3;
52704              }
52705            ++r4, ++t4;
52706          }
52707          return A3.join("");
52708        }
52709        if (c2 = { version: "1.3.2", ucs2: { decode: k2, encode: _ }, decode: E2, encode: P2, toASCII: function(e4) {
52710          return A2(e4, function(e5) {
52711            return p2.test(e5) ? "xn--" + P2(e5) : e5;
52712          });
52713        }, toUnicode: function(e4) {
52714          return A2(e4, function(e5) {
52715            return h2.test(e5) ? E2(e5.slice(4).toLowerCase()) : e5;
52716          });
52717        } }, "object" == (0, i.default)(r3.amdO) && r3.amdO)
52718          void 0 === (n2 = function() {
52719            return c2;
52720          }.call(t3, r3, t3, e3)) || (e3.exports = n2);
52721        else if (a && s)
52722          if (e3.exports == a)
52723            s.exports = c2;
52724          else
52725            for (f2 in c2)
52726              c2.hasOwnProperty(f2) && (a[f2] = c2[f2]);
52727        else
52728          o.punycode = c2;
52729      }(void 0);
52730    }, 8983: (e3) => {
52731      function t3(e4, t4) {
52732        return Object.prototype.hasOwnProperty.call(e4, t4);
52733      }
52734      e3.exports = function(e4, r3, n2, i) {
52735        r3 = r3 || "&", n2 = n2 || "=";
52736        var o = {};
52737        if ("string" != typeof e4 || 0 === e4.length)
52738          return o;
52739        var a = /\+/g;
52740        e4 = e4.split(r3);
52741        var s = 1e3;
52742        i && "number" == typeof i.maxKeys && (s = i.maxKeys);
52743        var u2 = e4.length;
52744        s > 0 && u2 > s && (u2 = s);
52745        for (var c2 = 0; c2 < u2; ++c2) {
52746          var f2, d2, l2, h2, p2 = e4[c2].replace(a, "%20"), b2 = p2.indexOf(n2);
52747          b2 >= 0 ? (f2 = p2.substr(0, b2), d2 = p2.substr(b2 + 1)) : (f2 = p2, d2 = ""), l2 = decodeURIComponent(f2), h2 = decodeURIComponent(d2), t3(o, l2) ? Array.isArray(o[l2]) ? o[l2].push(h2) : o[l2] = [o[l2], h2] : o[l2] = h2;
52748        }
52749        return o;
52750      };
52751    }, 4031: (e3, t3, r3) => {
52752      var n2 = r3(8847)(r3(3355)), i = function(e4) {
52753        switch ((0, n2.default)(e4)) {
52754          case "string":
52755            return e4;
52756          case "boolean":
52757            return e4 ? "true" : "false";
52758          case "number":
52759            return isFinite(e4) ? e4 : "";
52760          default:
52761            return "";
52762        }
52763      };
52764      e3.exports = function(e4, t4, r4, o) {
52765        return t4 = t4 || "&", r4 = r4 || "=", null === e4 && (e4 = void 0), "object" === (0, n2.default)(e4) ? Object.keys(e4).map(function(n3) {
52766          var o2 = encodeURIComponent(i(n3)) + r4;
52767          return Array.isArray(e4[n3]) ? e4[n3].map(function(e5) {
52768            return o2 + encodeURIComponent(i(e5));
52769          }).join(t4) : o2 + encodeURIComponent(i(e4[n3]));
52770        }).join(t4) : o ? encodeURIComponent(i(o)) + r4 + encodeURIComponent(i(e4)) : "";
52771      };
52772    }, 845: (e3, t3, r3) => {
52773      t3.decode = t3.parse = r3(8983), t3.encode = t3.stringify = r3(4031);
52774    }, 1143: (e3, t3, r3) => {
52775      var n2 = r3(8847)(r3(3355)), i = r3(8677), o = r3(5751);
52776      function a() {
52777        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;
52778      }
52779      t3.parse = w2, t3.resolve = function(e4, t4) {
52780        return w2(e4, false, true).resolve(t4);
52781      }, t3.resolveObject = function(e4, t4) {
52782        return e4 ? w2(e4, false, true).resolveObject(t4) : t4;
52783      }, t3.format = function(e4) {
52784        return o.isString(e4) && (e4 = w2(e4)), e4 instanceof a ? e4.format() : a.prototype.format.call(e4);
52785      }, t3.Url = a;
52786      var s = /^([a-z0-9.+-]+:)/i, u2 = /:[0-9]*$/, c2 = /^(\/\/?(?!\/)[^\?\s]
52786*)(\?[^\s]*)?$/, f2 = ["{", "}", "|", "\\", "^", "`"].concat(["<", ">", '"', "`", " ", "\r", "\n", "	"]), d2 = ["'"].concat(f2), l2 = ["%", "/", "?", ";", "#"].concat(d2), h2 = ["/", "?", "#"], p2 = /^[+a-z0-9A-Z_-]{0,63}$/, b2 = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, y2 = { javascript: true, "javascript:": true }, m2 = { javascript: true, "javascript:": true }, v2 = { http: true, https: true, ftp: true, gopher: true, file: true, "http:": true, "https:": true, "ftp:": true, "gopher:": true, "file:": true }, g2 = r3(845);
52787      function w2(e4, t4, r4) {
52788        if (e4 && o.isObject(e4) && e4 instanceof a)
52789          return e4;
52790        var n3 = new a();
52791        return n3.parse(e4, t4, r4), n3;
52792      }
52793      a.prototype.parse = function(e4, t4, r4) {
52794        if (!o.isString(e4))
52795          throw new TypeError("Parameter 'url' must be a string, not " + (0, n2.default)(e4));
52796        var a2 = e4.indexOf("?"), u3 = -1 !== a2 && a2 < e4.indexOf("#") ? "?" : "#", f3 = e4.split(u3);
52797        f3[0] = f3[0].replace(/\\/g, "/");
52798        var w3 = e4 = f3.join(u3);
52799        if (w3 = w3.trim(), !r4 && 1 === e4.split("#").length) {
52800          var A2 = c2.exec(w3);
52801          if (A2)
52802            return this.path = w3, this.href = w3, this.pathname = A2[1], A2[2] ? (this.search = A2[2], this.query = t4 ? g2.parse(this.search.substr(1)) : this.search.substr(1)) : t4 && (this.search = "", this.query = {}), this;
52803        }
52804        var k2 = s.exec(w3);
52805        if (k2) {
52806          var _ = (k2 = k2[0]).toLowerCase();
52807          this.protocol = _, w3 = w3.substr(k2.length);
52808        }
52809        if (r4 || k2 || w3.match(/^\/\/[^@\/]+@[^@\/]+/)) {
52810          var S2 = "//" === w3.substr(0, 2);
52811          !S2 || k2 && m2[k2] || (w3 = w3.substr(2), this.slashes = true);
52812        }
52813        if (!m2[k2] && (S2 || k2 && !v2[k2])) {
52814          for (var x2, E2, P2 = -1, O2 = 0; O2 < h2.length; O2++)
52815            -1 !== (B2 = w3.indexOf(h2[O2])) && (-1 === P2 || B2 < P2) && (P2 = B2);
52816          for (-1 !== (E2 = -1 === P2 ? w3.lastIndexOf("@") : w3.lastIndexOf("@", P2)) && (x2 = w3.slice(0, E2), w3 = w3.slice(E2 + 1), this.auth = decodeURIComponent(x2)), P2 = -1, O2 = 0; O2 < l2.length; O2++) {
52817            var B2;
52818            -1 !== (B2 = w3.indexOf(l2[O2])) && (-1 === P2 || B2 < P2) && (P2 = B2);
52819          }
52820          -1 === P2 && (P2 = w3.length), this.host = w3.slice(0, P2), w3 = w3.slice(P2), this.parseHost(), this.hostname = this.hostname || "";
52821          var T2 = "[" === this.hostname[0] && "]" === this.hostname[this.hostname.length - 1];
52822          if (!T2)
52823            for (var C2 = this.hostname.split(/\./), I2 = (O2 = 0, C2.length); O2 < I2; O2++) {
52824              var M2 = C2[O2];
52825              if (M2 && !M2.match(p2)) {
52826                for (var U2 = "", R2 = 0, j = M2.length; R2 < j; R2++)
52827                  M2.charCodeAt(R2) > 127 ? U2 += "x" : U2 += M2[R2];
52828                if (!U2.match(p2)) {
52829                  var N2 = C2.slice(0, O2), F2 = C2.slice(O2 + 1), L2 = M2.match(b2);
52830                  L2 && (N2.push(L2[1]), F2.unshift(L2[2])), F2.length && (w3 = "/" + F2.join(".") + w3), this.hostname = N2.join(".");
52831                  break;
52832                }
52833              }
52834            }
52835          this.hostname.length > 255 ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), T2 || (this.hostname = i.toASCII(this.hostname));
52836          var D2 = this.port ? ":" + this.port : "", H2 = this.hostname || "";
52837          this.host = H2 + D2, this.href += this.host, T2 && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), "/" !== w3[0] && (w3 = "/" + w3));
52838        }
52839        if (!y2[_])
52840          for (O2 = 0, I2 = d2.length; O2 < I2; O2++) {
52841            var q2 = d2[O2];
52842            if (-1 !== w3.indexOf(q2)) {
52843              var z2 = encodeURIComponent(q2);
52844              z2 === q2 && (z2 = escape(q2)), w3 = w3.split(q2).join(z2);
52845            }
52846          }
52847        var G2 = w3.indexOf("#");
52848        -1 !== G2 && (this.hash = w3.substr(G2), w3 = w3.slice(0, G2));
52849        var K2 = w3.indexOf("?");
52850        if (-1 !== K2 ? (this.search = w3.substr(K2), this.query = w3.substr(K2 + 1), t4 && (this.query = g2.parse(this.query)), w3 = w3.slice(0, K2)) : t4 && (this.search = "", this.query = {}), w3 && (this.pathname = w3), v2[_] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
52851          D2 = this.pathname || "";
52852          var V2 = this.search || "";
52853          this.path = D2 + V2;
52854        }
52855        return this.href = this.format(), this;
52856      }, a.prototype.format = function() {
52857        var e4 = this.auth || "";
52858        e4 && (e4 = (e4 = encodeURIComponent(e4)).replace(/%3A/i, ":"), e4 += "@");
52859        var t4 = this.protocol || "", r4 = this.pathname || "", n3 = this.hash || "", i2 = false, a2 = "";
52860        this.host ? i2 = e4 + this.host : this.hostname && (i2 = e4 + (-1 === this.hostname.indexOf(":") ? this.hostname : "[" + this.hostname + "]"), this.port && (i2 += ":" + this.port)), this.query && o.isObject(this.query) && Object.keys(this.query).length && (a2 = g2.stringify(this.query));
52861        var s2 = this.search || a2 && "?" + a2 || "";
52862        return t4 && ":" !== t4.substr(-1) && (t4 += ":"), this.slashes || (!t4 || v2[t4]) && false !== i2 ? (i2 = "//" + (i2 || ""), r4 && "/" !== r4.charAt(0) && (r4 = "/" + r4)) : i2 || (i2 = ""), n3 && "#" !== n3.charAt(0) && (n3 = "#" + n3), s2 && "?" !== s2.charAt(0) && (s2 = "?" + s2), t4 + i2 + (r4 = r4.replace(/[?#]/g, function(e5) {
52863          return encodeURIComponent(e5);
52864        })) + (s2 = s2.replace("#", "%23")) + n3;
52865      }, a.prototype.resolve = function(e4) {
52866        return this.resolveObject(w2(e4, false, true)).format();
52867      }, a.prototype.resolveObject = function(e4) {
52868        if (o.isString(e4)) {
52869          var t4 = new a();
52870          t4.parse(e4, false, true), e4 = t4;
52871        }
52872        for (var r4 = new a(), n3 = Object.keys(this), i2 = 0; i2 < n3.length; i2++) {
52873          var s2 = n3[i2];
52874          r4[s2] = this[s2];
52875        }
52876        if (r4.hash = e4.hash, "" === e4.href)
52877          return r4.href = r4.format(), r4;
52878        if (e4.slashes && !e4.protocol) {
52879          for (var u3 = Object.keys(e4), c3 = 0; c3 < u3.length; c3++) {
52880            var f3 = u3[c3];
52881            "protocol" !== f3 && (r4[f3] = e4[f3]);
52882          }
52883          return v2[r4.protocol] && r4.hostname && !r4.pathname && (r4.path = r4.pathname = "/"), r4.href = r4.format(), r4;
52884        }
52885        if (e4.protocol && e4.protocol !== r4.protocol) {
52886          if (!v2[e4.protocol]) {
52887            for (var d3 = Object.keys(e4), l3 = 0; l3 < d3.length; l3++) {
52888              var h3 = d3[l3];
52889              r4[h3] = e4[h3];
52890            }
52891            return r4.href = r4.format(), r4;
52892          }
52893          if (r4.protocol = e4.protocol, e4.host || m2[e4.protocol])
52894            r4.pathname = e4.pathname;
52895          else {
52896            for (var p3 = (e4.pathname || "").split("/"); p3.length && !(e4.host = p3.shift()); )
52897              ;
52898            e4.host || (e4.host = ""), e4.hostname || (e4.hostname = ""), "" !== p3[0] && p3.unshift(""), p3.length < 2 && p3.unshift(""), r4.pathname = p3.join("/");
52899          }
52900          if (r4.search = e4.search, r4.query = e4.query, r4.host = e4.host || "", r4.auth = e4.auth, r4.hostname = e4.hostname || e4.host, r4.port = e4.port, r4.pathname || r4.search) {
52901            var b3 = r4.pathname || "", y3 = r4.search || "";
52902            r4.path = b3 + y3;
52903          }
52904          return r4.slashes = r4.slashes || e4.slashes, r4.href = r4.format(), r4;
52905        }
52906        var g3 = r4.pathname && "/" === r4.pathname.charAt(0), w3 = e4.host || e4.pathname && "/" === e4.pathname.charAt(0), A2 = w3 || g3 || r4.host && e4.pathname, k2 = A2, _ = r4.pathname && r4.pathname.split("/") || [], S2 = (p3 = e4.pathname && e4.pathname.split("/") || [], r4.protocol && !v2[r4.protocol]);
52907        if (S2 && (r4.hostname = "", r4.port = null, r4.host && ("" === _[0] ? _[0] = r4.host : _.unshift(r4.host)), r4.host = "", e4.protocol && (e4.hostname = null, e4.port = null, e4.host && ("" === p3[0] ? p3[0] = e4.host : p3.unshift(e4.host)), e4.host = null), A2 = A2 && ("" === p3[0] || "" === _[0])), w3)
52908          r4.host = e4.host || "" === e4.host ? e4.host : r4.host, r4.hostname = e4.hostname || "" === e4.hostname ? e4.hostname : r4.hostname, r4.search = e4.search, r4.query = e4.query, _ = p3;
52909        else if (p3.length)
52910          _ || (_ = []), _.pop(), _ = _.concat(p3), r4.search = e4.search, r4.query = e4.query;
52911        else if (!o.isNullOrUndefined(e4.search))
52912          return S2 && (r4.hostname = r4.host = _.shift(), (B2 = !!(r4.host && r4.host.indexOf("@") > 0) && r4.host.split("@")) && (r4.auth = B2.shift(), r4.host = r4.hostname = B2.shift())), r4.search = e4.search, r4.query = e4.query, o.isNull(r4.pathname) && o.isNull(r4.search) || (r4.path = (r4.pathname ? r4.pathname : "") + (r4.search ? r4.search : "")), r4.href = r4.format(), r4;
52913        if (!_.length)
52914          return r4.pathname = null, r4.search ? r4.path = "/" + r4.search : r4.path = null, r4.href = r4.format(), r4;
52915        for (var x2 = _.slice(-1)[0], E2 = (r4.host || e4.host || _.length > 1) && ("." === x2 || ".." === x2) || "" === x2, P2 = 0, O2 = _.length; O2 >= 0; O2--)
52916          "." === (x2 = _[O2]) ? _.splice(O2, 1) : ".." === x2 ? (_.splice(O2, 1), P2++) : P2 && (_.splice(O2, 1), P2--);
52917        if (!A2 && !k2)
52918          for (; P2--; P2)
52919            _.unshift("..");
52920        !A2 || "" === _[0] || _[0] && "/" === _[0].charAt(0) || _.unshift(""), E2 && "/" !== _.join("/").substr(-1) && _.push("");
52921        var B2, T2 = "" === _[0] || _[0] && "/" === _[0].charAt(0);
52922        return S2 && (r4.hostname = r4.host = T2 ? "" : _.length ? _.shift() : "", (B2 = !!(r4.host && r4.host.indexOf("@") > 0) && r4.host.split("@")) && (r4.auth = B2.shift(), r4.host = r4.hostname = B2.shift())), (A2 = A2 || r4.host && _.length) && !T2 && _.unshift(""), _.length ? r4.pathname = _.join("/") : (r4.pathname = null, r4.path = null), o.isNull(r4.pathname) && o.isNull(r4.search) || (r4.path = (r4.pathname ? r4.pathname : "") + (r4.search ? r4.search : "")), r4.auth = e4.auth || r4.auth, r4.slashes = r4.slashes || e4.slashes, r4.href = r4.format(), r4;
52923      }, a.prototype.parseHost = function() {
52924        var e4 = this.host, t4 = u2.exec(e4);
52925        t4 && (":" !== (t4 = t4[0]) && (this.port = t4.substr(1)), e4 = e4.substr(0, e4.length - t4.length)), e4 && (this.hostname = e4);
52926      };
52927    }, 5751: (e3, t3, r3) => {
52928      var n2 = r3(8847)(r3(3355));
52929      e3.exports = { isString: function(e4) {
52930        return "string" == typeof e4;
52931      }, isObject: function(e4) {
52932        return "object" === (0, n2.default)(e4) && null !== e4;
52933      }, isNull: function(e4) {
52934        return null === e4;
52935      }, isNullOrUndefined: function(e4) {
52936        return null == e4;
52937      } };
52938    }, 8632: (e3, t3) => {
52939      !function(e4) {
52940        var t4, r3, n2, i = String.fromCharCode;
52941        function o(e5) {
52942          for (var t5, r4, n3 = [], i2 = 0, o2 = e5.length; i2 < o2; )
52943            (t5 = e5.charCodeAt(i2++)) >= 55296 && t5 <= 56319 && i2 < o2 ? 56320 == (64512 & (r4 = e5.charCodeAt(i2++))) ? n3.push(((1023 & t5) << 10) + (1023 & r4) + 65536) : (n3.push(t5), i2--) : n3.push(t5);
52944          return n3;
52945        }
52946        function a(e5) {
52947          if (e5 >= 55296 && e5 <= 57343)
52948            throw Error("Lone surrogate U+" + e5.toString(16).toUpperCase() + " is not a scalar value");
52949        }
52950        function s(e5, t5) {
52951          return i(e5 >> t5 & 63 | 128);
52952        }
52953        function u2(e5) {
52954          if (0 == (4294967168 & e5))
52955            return i(e5);
52956          var t5 = "";
52957          return 0 == (4294965248 & e5) ? t5 = i(e5 >> 6 & 31 | 192) : 0 == (4294901760 & e5) ? (a(e5), t5 = i(e5 >> 12 & 15 | 224), t5 += s(e5, 6)) : 0 == (4292870144 & e5) && (t5 = i(e5 >> 18 & 7 | 240), t5 += s(e5, 12), t5 += s(e5, 6)), t5 + i(63 & e5 | 128);
52958        }
52959        function c2() {
52960          if (n2 >= r3)
52961            throw Error("Invalid byte index");
52962          var e5 = 255 & t4[n2];
52963          if (n2++, 128 == (192 & e5))
52964            return 63 & e5;
52965          throw Error("Invalid continuation byte");
52966        }
52967        function f2() {
52968          var e5, i2;
52969          if (n2 > r3)
52970            throw Error("Invalid byte index");
52971          if (n2 == r3)
52972            return false;
52973          if (e5 = 255 & t4[n2], n2++, 0 == (128 & e5))
52974            return e5;
52975          if (192 == (224 & e5)) {
52976            if ((i2 = (31 & e5) << 6 | c2()) >= 128)
52977              return i2;
52978            throw Error("Invalid continuation byte");
52979          }
52980          if (224 == (240 & e5)) {
52981            if ((i2 = (15 & e5) << 12 | c2() << 6 | c2()) >= 2048)
52982              return a(i2), i2;
52983            throw Error("Invalid continuation byte");
52984          }
52985          if (240 == (248 & e5) && (i2 = (7 & e5) << 18 | c2() << 12 | c2() << 6 | c2()) >= 65536 && i2 <= 1114111)
52986            return i2;
52987          throw Error("Invalid UTF-8 detected");
52988        }
52989        e4.version = "3.0.0", e4.encode = function(e5) {
52990          for (var t5 = o(e5), r4 = t5.length, n3 = -1, i2 = ""; ++n3 < r4; )
52991            i2 += u2(t5[n3]);
52992          return i2;
52993        }, e4.decode = function(e5) {
52994          t4 = o(e5), r3 = t4.length, n2 = 0;
52995          for (var a2, s2 = []; false !== (a2 = f2()); )
52996            s2.push(a2);
52997          return function(e6) {
52998            for (var t5, r4 = e6.length, n3 = -1, o2 = ""; ++n3 < r4; )
52999              (t5 = e6[n3]) > 65535 && (o2 += i((t5 -= 65536) >>> 10 & 1023 | 55296), t5 = 56320 | 1023 & t5), o2 += i(t5);
53000            return o2;
53001          }(s2);
53002        };
53003      }(t3);
53004    }, 6219: (e3, t3, r3) => {
53005      function n2(e4) {
53006        try {
53007          if (!r3.g.localStorage)
53008            return false;
53009        } catch (e5) {
53010          return false;
53011        }
53012        var t4 = r3.g.localStorage[e4];
53013        return null != t4 && "true" === String(t4).toLowerCase();
53014      }
53015      e3.exports = function(e4, t4) {
53016        if (n2("noDeprecation"))
53017          return e4;
53018        var r4 = false;
53019        return function() {
53020          if (!r4) {
53021            if (n2("throwDeprecation"))
53022              throw new Error(t4);
53023            n2("traceDeprecation") ? console.trace(t4) : console.warn(t4), r4 = true;
53024          }
53025          return e4.apply(this, arguments);
53026        };
53027      };
53028    }, 6248: (e3, t3, r3) => {
53029      var n2 = r3(8847)(r3(3355));
53030      e3.exports = function(e4) {
53031        return e4 && "object" === (0, n2.default)(e4) && "function" == typeof e4.copy && "function" == typeof e4.fill && "function" == typeof e4.readUInt8;
53032      };
53033    }, 7092: (e3, t3, r3) => {
53034      var n2 = r3(8847)(r3(3355)), i = r3(9446), o = r3(4477), a = r3(2337), s = r3(8915);
53035      function u2(e4) {
53036        return e4.call.bind(e4);
53037      }
53038      var c2 = "undefined" != typeof BigInt, f2 = "undefined" != typeof Symbol, d2 = u2(Object.prototype.toString), l2 = u2(Number.prototype.valueOf), h2 = u2(String.prototype.valueOf), p2 = u2(Boolean.prototype.valueOf);
53039      if (c2)
53040        var b2 = u2(BigInt.prototype.valueOf);
53041      if (f2)
53042        var y2 = u2(Symbol.prototype.valueOf);
53043      function m2(e4, t4) {
53044        if ("object" !== (0, n2.default)(e4))
53045          return false;
53046        try {
53047          return t4(e4), true;
53048        } catch (e5) {
53049          return false;
53050        }
53051      }
53052      function v2(e4) {
53053        return "[object Map]" === d2(e4);
53054      }
53055      function g2(e4) {
53056        return "[object Set]" === d2(e4);
53057      }
53058      function w2(e4) {
53059        return "[object WeakMap]" === d2(e4);
53060      }
53061      function A2(e4) {
53062        return "[object WeakSet]" === d2(e4);
53063      }
53064      function k2(e4) {
53065        return "[object ArrayBuffer]" === d2(e4);
53066      }
53067      function _(e4) {
53068        return "undefined" != typeof ArrayBuffer && (k2.working ? k2(e4) : e4 instanceof ArrayBuffer);
53069      }
53070      function S2(e4) {
53071        return "[object DataView]" === d2(e4);
53072      }
53073      function x2(e4) {
53074        return "undefined" != typeof DataView && (S2.working ? S2(e4) : e4 instanceof DataView);
53075      }
53076      t3.isArgumentsObject = i, t3.isGeneratorFunction = o, t3.isTypedArray = s, t3.isPromise = function(e4) {
53077        return "undefined" != typeof Promise && e4 instanceof Promise || null !== e4 && "object" === (0, n2.default)(e4) && "function" == typeof e4.then && "function" == typeof e4.catch;
53078      }, t3.isArrayBufferView = function(e4) {
53079        return "undefined" != typeof ArrayBuffer && ArrayBuffer.isView ? ArrayBuffer.isView(e4) : s(e4) || x2(e4);
53080      }, t3.isUint8Array = function(e4) {
53081        return "Uint8Array" === a(e4);
53082      }, t3.isUint8ClampedArray = function(e4) {
53083        return "Uint8ClampedArray" === a(e4);
53084      }, t3.isUint16Array = function(e4) {
53085        return "Uint16Array" === a(e4);
53086      }, t3.isUint32Array = function(e4) {
53087        return "Uint32Array" === a(e4);
53088      }, t3.isInt8Array = function(e4) {
53089        return "Int8Array" === a(e4);
53090      }, t3.isInt16Array = function(e4) {
53091        return "Int16Array" === a(e4);
53092      }, t3.isInt32Array = function(e4) {
53093        return "Int32Array" === a(e4);
53094      }, t3.isFloat32Array = function(e4) {
53095        return "Float32Array" === a(e4);
53096      }, t3.isFloat64Array = function(e4) {
53097        return "Float64Array" === a(e4);
53098      }, t3.isBigInt64Array = function(e4) {
53099        return "BigInt64Array" === a(e4);
53100      }, t3.isBigUint64Array = function(e4) {
53101        return "BigUint64Array" === a(e4);
53102      }, v2.working = "undefined" != typeof Map && v2(/* @__PURE__ */ new Map()), t3.isMap = function(e4) {
53103        return "undefined" != typeof Map && (v2.working ? v2(e4) : e4 instanceof Map);
53104      }, g2.working = "undefined" != typeof Set && g2(/* @__PURE__ */ new Set()), t3.isSet = function(e4) {
53105        return "undefined" != typeof Set && (g2.working ? g2(e4) : e4 instanceof Set);
53106      }, w2.working = "undefined" != typeof WeakMap && w2(/* @__PURE__ */ new WeakMap()), t3.isWeakMap = function(e4) {
53107        return "undefined" != typeof WeakMap && (w2.working ? w2(e4) : e4 instanceof WeakMap);
53108      }, A2.working = "undefined" != typeof WeakSet && A2(/* @__PURE__ */ new WeakSet()), t3.isWeakSet = function(e4) {
53109        return A2(e4);
53110      }, k2.working = "undefined" != typeof ArrayBuffer && k2(new ArrayBuffer()), t3.isArrayBuffer = _, S2.working = "undefined" != typeof ArrayBuffer && "undefined" != typeof DataView && S2(new DataView(new ArrayBuffer(1), 0, 1)), t3.isDataView = x2;
53111      var E2 = "undefined" != typeof SharedArrayBuffer ? SharedArrayBuffer : void 0;
53112      function P2(e4) {
53113        return "[object SharedArrayBuffer]" === d2(e4);
53114      }
53115      function O2(e4) {
53116        return void 0 !== E2 && (void 0 === P2.working && (P2.working = P2(new E2())), P2.working ? P2(e4) : e4 instanceof E2);
53117      }
53118      function B2(e4) {
53119        return m2(e4, l2);
53120      }
53121      function T2(e4) {
53122        return m2(e4, h2);
53123      }
53124      function C2(e4) {
53125        return m2(e4, p2);
53126      }
53127      function I2(e4) {
53128        return c2 && m2(e4, b2);
53129      }
53130      function M2(e4) {
53131        return f2 && m2(e4, y2);
53132      }
53133      t3.isSharedArrayBuffer = O2, t3.isAsyncFunction = function(e4) {
53134        return "[object AsyncFunction]" === d2(e4);
53135      }, t3.isMapIterator = function(e4) {
53136        return "[object Map Iterator]" === d2(e4);
53137      }, t3.isSetIterator = function(e4) {
53138        return "[object Set Iterator]" === d2(e4);
53139      }, t3.isGeneratorObject = function(e4) {
53140        return "[object Generator]" === d2(e4);
53141      }, t3.isWebAssemblyCompiledModule = function(e4) {
53142        return "[object WebAssembly.Module]" === d2(e4);
53143      }, t3.isNumberObject = B2, t3.isStringObject = T2, t3.isBooleanObject = C2, t3.isBigIntObject = I2, t3.isSymbolObject = M2, t3.isBoxedPrimitive = function(e4) {
53144        return B2(e4) || T2(e4) || C2(e4) || I2(e4) || M2(e4);
53145      }, t3.isAnyArrayBuffer = function(e4) {
53146        return "undefined" != typeof Uint8Array && (_(e4) || O2(e4));
53147      }, ["isProxy", "isExternal", "isModuleNamespaceObject"].forEach(function(e4) {
53148        Object.defineProperty(t3, e4, { enumerable: false, value: function() {
53149          throw new Error(e4 + " is not supported in userland");
53150        } });
53151      });
53152    }
53152, 5058: (e3, t3, r3) => {
53153      var n2 = r3(9142), i = r3(8847)(r3(3355)), o = Object.getOwnPropertyDescriptors || function(e4) {
53154        for (var t4 = Object.keys(e4), r4 = {}, n3 = 0; n3 < t4.length; n3++)
53155          r4[t4[n3]] = Object.getOwnPropertyDescriptor(e4, t4[n3]);
53156        return r4;
53157      }, a = /%[sdj%]/g;
53158      t3.format = function(e4) {
53159        if (!w2(e4)) {
53160          for (var t4 = [], r4 = 0; r4 < arguments.length; r4++)
53161            t4.push(f2(arguments[r4]));
53162          return t4.join(" ");
53163        }
53164        r4 = 1;
53165        for (var n3 = arguments, i2 = n3.length, o2 = String(e4).replace(a, function(e5) {
53166          if ("%%" === e5)
53167            return "%";
53168          if (r4 >= i2)
53169            return e5;
53170          switch (e5) {
53171            case "%s":
53172              return String(n3[r4++]);
53173            case "%d":
53174              return Number(n3[r4++]);
53175            case "%j":
53176              try {
53177                return JSON.stringify(n3[r4++]);
53178              } catch (e6) {
53179                return "[Circular]";
53180              }
53181            default:
53182              return e5;
53183          }
53184        }), s2 = n3[r4]; r4 < i2; s2 = n3[++r4])
53185          v2(s2) || !_(s2) ? o2 += " " + s2 : o2 += " " + f2(s2);
53186        return o2;
53187      }, t3.deprecate = function(e4, r4) {
53188        if (void 0 !== n2 && true === n2.noDeprecation)
53189          return e4;
53190        if (void 0 === n2)
53191          return function() {
53192            return t3.deprecate(e4, r4).apply(this, arguments);
53193          };
53194        var i2 = false;
53195        return function() {
53196          if (!i2) {
53197            if (n2.throwDeprecation)
53198              throw new Error(r4);
53199            n2.traceDeprecation ? console.trace(r4) : console.error(r4), i2 = true;
53200          }
53201          return e4.apply(this, arguments);
53202        };
53203      };
53204      var s = {}, u2 = /^$/;
53205      if (n2.env.NODE_DEBUG) {
53206        var c2 = n2.env.NODE_DEBUG;
53207        c2 = c2.replace(/[|\\{}()[\]^$+?.]/g, "\\$&").replace(/\*/g, ".*").replace(/,/g, "$|^").toUpperCase(), u2 = new RegExp("^" + c2 + "$", "i");
53208      }
53209      function f2(e4, r4) {
53210        var n3 = { seen: [], stylize: l2 };
53211        return arguments.length >= 3 && (n3.depth = arguments[2]), arguments.length >= 4 && (n3.colors = arguments[3]), m2(r4) ? n3.showHidden = r4 : r4 && t3._extend(n3, r4), A2(n3.showHidden) && (n3.showHidden = false), A2(n3.depth) && (n3.depth = 2), A2(n3.colors) && (n3.colors = false), A2(n3.customInspect) && (n3.customInspect = true), n3.colors && (n3.stylize = d2), h2(n3, e4, n3.depth);
53212      }
53213      function d2(e4, t4) {
53214        var r4 = f2.styles[t4];
53215        return r4 ? "\x1B[" + f2.colors[r4][0] + "m" + e4 + "\x1B[" + f2.colors[r4][1] + "m" : e4;
53216      }
53217      function l2(e4, t4) {
53218        return e4;
53219      }
53220      function h2(e4, r4, n3) {
53221        if (e4.customInspect && r4 && E2(r4.inspect) && r4.inspect !== t3.inspect && (!r4.constructor || r4.constructor.prototype !== r4)) {
53222          var i2 = r4.inspect(n3, e4);
53223          return w2(i2) || (i2 = h2(e4, i2, n3)), i2;
53224        }
53225        var o2 = function(e5, t4) {
53226          if (A2(t4))
53227            return e5.stylize("undefined", "undefined");
53228          if (w2(t4)) {
53229            var r5 = "'" + JSON.stringify(t4).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
53230            return e5.stylize(r5, "string");
53231          }
53232          return g2(t4) ? e5.stylize("" + t4, "number") : m2(t4) ? e5.stylize("" + t4, "boolean") : v2(t4) ? e5.stylize("null", "null") : void 0;
53233        }(e4, r4);
53234        if (o2)
53235          return o2;
53236        var a2 = Object.keys(r4), s2 = function(e5) {
53237          var t4 = {};
53238          return e5.forEach(function(e6, r5) {
53239            t4[e6] = true;
53240          }), t4;
53241        }(a2);
53242        if (e4.showHidden && (a2 = Object.getOwnPropertyNames(r4)), x2(r4) && (a2.indexOf("message") >= 0 || a2.indexOf("description") >= 0))
53243          return p2(r4);
53244        if (0 === a2.length) {
53245          if (E2(r4)) {
53246            var u3 = r4.name ? ": " + r4.name : "";
53247            return e4.stylize("[Function" + u3 + "]", "special");
53248          }
53249          if (k2(r4))
53250            return e4.stylize(RegExp.prototype.toString.call(r4), "regexp");
53251          if (S2(r4))
53252            return e4.stylize(Date.prototype.toString.call(r4), "date");
53253          if (x2(r4))
53254            return p2(r4);
53255        }
53256        var c3, f3 = "", d3 = false, l3 = ["{", "}"];
53257        return y2(r4) && (d3 = true, l3 = ["[", "]"]), E2(r4) && (f3 = " [Function" + (r4.name ? ": " + r4.name : "") + "]"), k2(r4) && (f3 = " " + RegExp.prototype.toString.call(r4)), S2(r4) && (f3 = " " + Date.prototype.toUTCString.call(r4)), x2(r4) && (f3 = " " + p2(r4)), 0 !== a2.length || d3 && 0 != r4.length ? n3 < 0 ? k2(r4) ? e4.stylize(RegExp.prototype.toString.call(r4), "regexp") : e4.stylize("[Object]", "special") : (e4.seen.push(r4), c3 = d3 ? function(e5, t4, r5, n4, i3) {
53258          for (var o3 = [], a3 = 0, s3 = t4.length; a3 < s3; ++a3)
53259            C2(t4, String(a3)) ? o3.push(b2(e5, t4, r5, n4, String(a3), true)) : o3.push("");
53260          return i3.forEach(function(i4) {
53261            i4.match(/^\d+$/) || o3.push(b2(e5, t4, r5, n4, i4, true));
53262          }), o3;
53263        }(e4, r4, n3, s2, a2) : a2.map(function(t4) {
53264          return b2(e4, r4, n3, s2, t4, d3);
53265        }), e4.seen.pop(), function(e5, t4, r5) {
53266          return e5.reduce(function(e6, t5) {
53267            return t5.indexOf("\n"), e6 + t5.replace(/\u001b\[\d\d?m/g, "").length + 1;
53268          }, 0) > 60 ? r5[0] + ("" === t4 ? "" : t4 + "\n ") + " " + e5.join(",\n  ") + " " + r5[1] : r5[0] + t4 + " " + e5.join(", ") + " " + r5[1];
53269        }(c3, f3, l3)) : l3[0] + f3 + l3[1];
53270      }
53271      function p2(e4) {
53272        return "[" + Error.prototype.toString.call(e4) + "]";
53273      }
53274      function b2(e4, t4, r4, n3, i2, o2) {
53275        var a2, s2, u3;
53276        if ((u3 = Object.getOwnPropertyDescriptor(t4, i2) || { value: t4[i2] }).get ? s2 = u3.set ? e4.stylize("[Getter/Setter]", "special") : e4.stylize("[Getter]", "special") : u3.set && (s2 = e4.stylize("[
53276Setter]", "special")), C2(n3, i2) || (a2 = "[" + i2 + "]"), s2 || (e4.seen.indexOf(u3.value) < 0 ? (s2 = v2(r4) ? h2(e4, u3.value, null) : h2(e4, u3.value, r4 - 1)).indexOf("\n") > -1 && (s2 = o2 ? s2.split("\n").map(function(e5) {
53277          return "  " + e5;
53278        }).join("\n").slice(2) : "\n" + s2.split("\n").map(function(e5) {
53279          return "   " + e5;
53280        }).join("\n")) : s2 = e4.stylize("[Circular]", "special")), A2(a2)) {
53281          if (o2 && i2.match(/^\d+$/))
53282            return s2;
53283          (a2 = JSON.stringify("" + i2)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (a2 = a2.slice(1, -1), a2 = e4.stylize(a2, "name")) : (a2 = a2.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), a2 = e4.stylize(a2, "string"));
53284        }
53285        return a2 + ": " + s2;
53286      }
53287      function y2(e4) {
53288        return Array.isArray(e4);
53289      }
53290      function m2(e4) {
53291        return "boolean" == typeof e4;
53292      }
53293      function v2(e4) {
53294        return null === e4;
53295      }
53296      function g2(e4) {
53297        return "number" == typeof e4;
53298      }
53299      function w2(e4) {
53300        return "string" == typeof e4;
53301      }
53302      function A2(e4) {
53303        return void 0 === e4;
53304      }
53305      function k2(e4) {
53306        return _(e4) && "[object RegExp]" === P2(e4);
53307      }
53308      function _(e4) {
53309        return "object" === (0, i.default)(e4) && null !== e4;
53310      }
53311      function S2(e4) {
53312        return _(e4) && "[object Date]" === P2(e4);
53313      }
53314      function x2(e4) {
53315        return _(e4) && ("[object Error]" === P2(e4) || e4 instanceof Error);
53316      }
53317      function E2(e4) {
53318        return "function" == typeof e4;
53319      }
53320      function P2(e4) {
53321        return Object.prototype.toString.call(e4);
53322      }
53323      function O2(e4) {
53324        return e4 < 10 ? "0" + e4.toString(10) : e4.toString(10);
53325      }
53326      t3.debuglog = function(e4) {
53327        if (e4 = e4.toUpperCase(), !s[e4])
53328          if (u2.test(e4)) {
53329            var r4 = n2.pid;
53330            s[e4] = function() {
53331              var n3 = t3.format.apply(t3, arguments);
53332              console.error("%s %d: %s", e4, r4, n3);
53333            };
53334          } else
53335            s[e4] = function() {
53336            };
53337        return s[e4];
53338      }, t3.inspect = f2, f2.colors = { bold: [1, 22], italic: [3, 23], underline: [4, 24], inverse: [7, 27], white: [37, 39], grey: [90, 39], black: [30, 39], blue: [34, 39], cyan: [36, 39], green: [32, 39], magenta: [35, 39], red: [31, 39], yellow: [33, 39] }, f2.styles = { special: "cyan", number: "yellow", boolean: "yellow", undefined: "grey", null: "bold", string: "green", date: "magenta", regexp: "red" }, t3.types = r3(7092), t3.isArray = y2, t3.isBoolean = m2, t3.isNull = v2, t3.isNullOrUndefined = function(e4) {
53339        return null == e4;
53340      }, t3.isNumber = g2, t3.isString = w2, t3.isSymbol = function(e4) {
53341        return "symbol" === (0, i.default)(e4);
53342      }, t3.isUndefined = A2, t3.isRegExp = k2, t3.types.isRegExp = k2, t3.isObject = _, t3.isDate = S2, t3.types.isDate = S2, t3.isError = x2, t3.types.isNativeError = x2, t3.isFunction = E2, t3.isPrimitive = function(e4) {
53343        return null === e4 || "boolean" == typeof e4 || "number" == typeof e4 || "string" == typeof e4 || "symbol" === (0, i.default)(e4) || void 0 === e4;
53344      }, t3.isBuffer = r3(6248);
53345      var B2 = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
53346      function T2() {
53347        var e4 = new Date(), t4 = [O2(e4.getHours()), O2(e4.getMinutes()), O2(e4.getSeconds())].join(":");
53348        return [e4.getDate(), B2[e4.getMonth()], t4].join(" ");
53349      }
53350      function C2(e4, t4) {
53351        return Object.prototype.hasOwnProperty.call(e4, t4);
53352      }
53353      t3.log = function() {
53354        console.log("%s - %s", T2(), t3.format.apply(t3, arguments));
53355      }, t3.inherits = r3(1736), t3._extend = function(e4, t4) {
53356        if (!t4 || !_(t4))
53357          return e4;
53358        for (var r4 = Object.keys(t4), n3 = r4.length; n3--; )
53359          e4[r4[n3]] = t4[r4[n3]];
53360        return e4;
53361      };
53362      var I2 = "undefined" != typeof Symbol ? Symbol("util.promisify.custom") : void 0;
53363      function M2(e4, t4) {
53364        if (!e4) {
53365          var r4 = new Error("Promise was rejected with a falsy value");
53366          r4.reason = e4, e4 = r4;
53367        }
53368        return t4(e4);
53369      }
53370      t3.promisify = function(e4) {
53371        if ("function" != typeof e4)
53372          throw new TypeError('The "original" argument must be of type Function');
53373        if (I2 && e4[I2]) {
53374          var t4;
53375          if ("function" != typeof (t4 = e4[I2]))
53376            throw new TypeError('The "util.promisify.custom" argument must be of type Function');
53377          return Object.defineProperty(t4, I2, { value: t4, enumerable: false, writable: false, configurable: true }), t4;
53378        }
53379        function t4() {
53380          for (var t5, r4, n3 = new Promise(function(e5, n4) {
53381            t5 = e5, r4 = n4;
53382          }), i2 = [], o2 = 0; o2 < arguments.length; o2++)
53383            i2.push(arguments[o2]);
53384          i2.push(function(e5, n4) {
53385            e5 ? r4(e5) : t5(n4);
53386          });
53387          try {
53388            e4.apply(this, i2);
53389          } catch (e5) {
53390            r4(e5);
53391          }
53392          return n3;
53393        }
53394        return Object.setPrototypeOf(t4, Object.getPrototypeOf(e4)), I2 && Object.defineProperty(t4, I2, { value: t4, enumerable: false, writable: false, configurable: true }), Object.defineProperties(t4, o(e4));
53395      }, t3.promisify.custom = I2, t3.callbackify = function(e4) {
53396        if ("function" != typeof e4)
53397          throw new TypeError('The "original" argument must be of type Function');
53398        function t4() {
53399          for (var t5 = [], r4 = 0; r4 < arguments.length; r4++)
53400            t5.push(arguments[r4]);
53401          var i2 = t5.pop();
53402          if ("function" != typeof i2)
53403            throw new TypeError("The last argument must be of type Function");
53404          var o2 = this, a2 = function() {
53405            return i2.apply(o2, arguments);
53406          };
53407          e4.apply(this, t5).then(function(e5) {
53408            n2.nextTick(a2.bind(null, null, e5));
53409          }, function(e5) {
53410            n2.nextTick(M2.bind(null, e5, a2));
53411          });
53412        }
53413        return Object.setPrototypeOf(t4, Object.getPrototypeOf(e4)), Object.defineProperties(t4, o(e4)), t4;
53414      };
53415    }, 2679: (e3, t3, r3) => {
53416      Object.defineProperty(t3, "__esModule", { value: true }), Object.defineProperty(t3, "NIL", { enumerable: true, get: function() {
53417        return s.default;
53418      } }), Object.defineProperty(t3, "parse", { enumerable: true, get: function() {
53419        return d2.default;
53420      } }), Object.defineProperty(t3, "stringify", { enumerable: true, get: function() {
53421        return f2.default;
53422      } }), Object.defineProperty(t3, "v1", { enumerable: true, get: function() {
53423        return n2.default;
53424      } }), Object.defineProperty(t3, "v3", { enumerable: true, get: function() {
53425        return i.default;
53426      } }), Object.defineProperty(t3, "v4", { enumerable: true, get: function() {
53427        return o.default;
53428      } }), Object.defineProperty(t3, "v5", { enumerable: true, get: function() {
53429        return a.default;
53430      } }), Object.defineProperty(t3, "validate", { enumerable: true, get: function() {
53431        return c2.default;
53432      } }), Object.defineProperty(t3, "version", { enumerable: true, get: function() {
53433        return u2.default;
53434      } });
53435      var n2 = l2(r3(5999)), i = l2(r3(8231)), o = l2(r3(8647)), a = l2(r3(5025)), s = l2(r3(5996
53435)), u2 = l2(r3(8928)), c2 = l2(r3(6163)), f2 = l2(r3(2982)), d2 = l2(r3(1729));
53436      function l2(e4) {
53437        return e4 && e4.__esModule ? e4 : { default: e4 };
53438      }
53439    }, 6792: (e3, t3) => {
53440      function r3(e4) {
53441        return 14 + (e4 + 64 >>> 9 << 4) + 1;
53442      }
53443      function n2(e4, t4) {
53444        var r4 = (65535 & e4) + (65535 & t4);
53445        return (e4 >> 16) + (t4 >> 16) + (r4 >> 16) << 16 | 65535 & r4;
53446      }
53447      function i(e4, t4, r4, i2, o2, a2) {
53448        return n2((s2 = n2(n2(t4, e4), n2(i2, a2))) << (u3 = o2) | s2 >>> 32 - u3, r4);
53449        var s2, u3;
53450      }
53451      function o(e4, t4, r4, n3, o2, a2, s2) {
53452        return i(t4 & r4 | ~t4 & n3, e4, t4, o2, a2, s2);
53453      }
53454      function a(e4, t4, r4, n3, o2, a2, s2) {
53455        return i(t4 & n3 | r4 & ~n3, e4, t4, o2, a2, s2);
53456      }
53457      function s(e4, t4, r4, n3, o2, a2, s2) {
53458        return i(t4 ^ r4 ^ n3, e4, t4, o2, a2, s2);
53459      }
53460      function u2(e4, t4, r4, n3, o2, a2, s2) {
53461        return i(r4 ^ (t4 | ~n3), e4, t4, o2, a2, s2);
53462      }
53463      Object.defineProperty(t3, "__esModule", { value: true }), t3.default = void 0;
53464      t3.default = function(e4) {
53465        if ("string" == typeof e4) {
53466          var t4 = unescape(encodeURIComponent(e4));
53467          e4 = new Uint8Array(t4.length);
53468          for (var i2 = 0; i2 < t4.length; ++i2)
53469            e4[i2] = t4.charCodeAt(i2);
53470        }
53471        return function(e5) {
53472          for (var t5 = [], r4 = 32 * e5.length, n3 = "0123456789abcdef", i3 = 0; i3 < r4; i3 += 8) {
53473            var o2 = e5[i3 >> 5] >>> i3 % 32 & 255, a2 = parseInt(n3.charAt(o2 >>> 4 & 15) + n3.charAt(15 & o2), 16);
53474            t5.push(a2);
53475          }
53476          return t5;
53477        }(function(e5, t5) {
53478          e5[t5 >> 5] |= 128 << t5 % 32, e5[r3(t5) - 1] = t5;
53479          for (var i3 = 1732584193, c2 = -271733879, f2 = -1732584194, d2 = 271733878, l2 = 0; l2 < e5.length; l2 += 16) {
53480            var h2 = i3, p2 = c2, b2 = f2, y2 = d2;
53481            i3 = o(i3, c2, f2, d2, e5[l2], 7, -680876936), d2 = o(d2, i3, c2, f2, e5[l2 + 1], 12, -389564586), f2 = o(f2, d2, i3, c2, e5[l2 + 2], 17, 606105819), c2 = o(c2, f2, d2, i3, e5[l2 + 3], 22, -1044525330), i3 = o(i3, c2, f2, d2, e5[l2 + 4], 7, -176418897), d2 = o(d2, i3, c2, f2, e5[l2 + 5], 12, 1200080426), f2 = o(f2, d2, i3, c2, e5[l2 + 6], 17, -1473231341), c2 = o(c2, f2, d2, i3, e5[l2 + 7], 22, -45705983), i3 = o(i3, c2, f2, d2, e5[l2 + 8], 7, 1770035416), d2 = o(d2, i3, c2, f2, e5[l2 + 9], 12, -1958414417), f2 = o(f2, d2, i3, c2, e5[l2 + 10], 17, -42063), c2 = o(c2, f2, d2, i3, e5[l2 + 11], 22, -1990404162), i3 = o(i3, c2, f2, d2, e5[l2 + 12], 7, 1804603682), d2 = o(d2, i3, c2, f2, e5[l2 + 13], 12, -40341101), f2 = o(f2, d2, i3, c2, e5[l2 + 14], 17, -1502002290), i3 = a(i3, c2 = o(c2, f2, d2, i3, e5[l2 + 15], 22, 1236535329), f2, d2, e5[l2 + 1], 5, -165796510), d2 = a(d2, i3, c2, f2, e5[l2 + 6], 9, -1069501632), f2 = a(f2, d2, i3, c2, e5[l2 + 11], 14, 643717713), c2 = a(c2, f2, d2, i3, e5[l2], 20, -373897302), i3 = a(i3, c2, f2, d2, e5[l2 + 5], 5, -701558691), d2 = a(d2, i3, c2, f2, e5[l2 + 10], 9, 38016083), f2 = a(f2, d2, i3, c2, e5[l2 + 15], 14, -660478335), c2 = a(c2, f2, d2, i3, e5[l2 + 4], 20, -405537848), i3 = a(i3, c2, f2, d2, e5[l2 + 9], 5, 568446438), d2 = a(d2, i3, c2, f2, e5[l2 + 14], 9, -1019803690), f2 = a(f2, d2, i3, c2, e5[l2 + 3], 14, -187363961), c2 = a(c2, f2, d2, i3, e5[l2 + 8], 20, 1163531501), i3 = a(i3, c2, f2, d2, e5[l2 + 13], 5, -1444681467), d2 = a(d2, i3, c2, f2, e5[l2 + 2], 9, -51403784), f2 = a(f2, d2, i3, c2, e5[l2 + 7], 14, 1735328473), i3 = s(i3, c2 = a(c2, f2, d2, i3, e5[l2 + 12], 20, -1926607734), f2, d2, e5[l2 + 5], 4, -378558), d2 = s(d2, i3, c2, f2, e5[l2 + 8], 11, -2022574463), f2 = s(f2, d2, i3, c2, e5[l2 + 11], 16, 1839030562), c2 = s(c2, f2, d2, i3, e5[l2 + 14], 23, -35309556), i3 = s(i3, c2, f2, d2, e5[l2 + 1], 4, -1530992060), d2 = s(d2, i3, c2, f2, e5[l2 + 4], 11, 1272893353), f2 = s(f2, d2, i3, c2, e5[l2 + 7], 16, -155497632), c2 = s(c2, f2, d2, i3, e5[l2 + 10], 23, -1094730640), i3 = s(i3, c2, f2, d2, e5[l2 + 13], 4, 681279174), d2 = s(d2, i3, c2, f2, e5[l2], 11, -358537222), f2 = s(f2, d2, i3, c2, e5[l2 + 3], 16, -722521979), c2 = s(c2, f2, d2, i3, e5[l2 + 6], 23, 76029189), i3 = s(i3, c2, f2, d2, e5[l2 + 9], 4, -640364487), d2 = s(d2, i3, c2, f2, e5[l2 + 12], 11, -421815835), f2 = s(f2, d2, i3, c2, e5[l2 + 15], 16, 530742520), i3 = u2(i3, c2 = s(c2, f2, d2, i3, e5[l2 + 2], 23, -995338651), f2, d2, e5[l2], 6, -198630844), d2 = u2(d2, i3, c2, f2, e5[l2 + 7], 10, 1126891415), f2 = u2(f2, d2, i3, c2, e5[l2 + 14], 15, -1416354905), c2 = u2(c2, f2, d2, i3, e5[l2 + 5], 21, -57434055), i3 = u2(i3, c2, f2, d2, e5[l2 + 12], 6, 1700485571), d2 = u2(d2, i3, c2, f2, e5[l2 + 3], 10, -1894986606), f2 = u2(f2, d2, i3, c2, e5[l2 + 10], 15, -1051523), c2 = u2(c2, f2, d2, i3, e5[l2 + 1], 21, -2054922799), i3 = u2(i3, c2, f2, d2, e5[l2 + 8], 6, 1873313359), d2 = u2(d2, i3, c2, f2, e5[l2 + 15], 10, -30611744), f2 = u2(f2, d2, i3, c2, e5[l2 + 6], 15, -1560198380), c2 = u2(c2, f2, d2, i3, e5[l2 + 13], 21, 1309151649), i3 = u2(i3, c2, f2, d2, e5[l2 + 4], 6, -145523070), d2 = u2(d2, i3, c2, f2, e5[l2 + 11], 10, -1120210379), f2 = u2(f2, d2, i3, c2, e5[l2 + 2], 15, 718787259), c2 = u2(c2, f2, d2, i3, e5[l2 + 9], 21, -343485551), i3 = n2(i3, h2), c2 = n2(c2, p2), f2 = n2(f2, b2), d2 = n2(d2, y2);
53482          }
53483          return [i3, c2, f2, d2];
53484        }(function(e5) {
53485          if (0 === e5.length)
53486            return [];
53487          for (var t5 = 8 * e5.length, n3 = new Uint32Array(r3(t5)), i3 = 0; i3 < t5; i3 += 8)
53488            n3[i3 >> 5] |= (255 & e5[i3 / 8]) << i3 % 32;
53489          return n3;
53490        }(e4), 8 * e4.length));
53491      };
53492    }, 1788: (e3, t3) => {
53493      Object.defineProperty(t3, "__esModule", { value: true }), t3.default = void 0;
53494      var r3 = { randomUUID: "undefined" != typeof crypto && crypto.randomUUID && crypto.randomUUID.bind(crypto) };
53495      t3.default = r3;
53496    }, 5996: (e3, t3) => {
53497      Object.defineProperty(t3, "__esModule", { value: true }), t3.default = void 0, t3.default = "00000000-0000-0000-0000-000000000000";
53498    }, 1729: (e3, t3, r3) => {
53499      Object.defineProperty(t3, "__esModule", { value: true }), t3.default = void 0;
53500      var n2, i = (n2 = r3(6163)) && n2.__esModule ? n2 : { default: n2 };
53501      t3.default = function(e4) {
53502        if (!(0, i.default)(e4))
53503          throw TypeError("Invalid UUID");
53504        var t4, r4 = new Uint8Array(16);
53505        return r4[0] = (t4 = parseInt(e4.slice(0, 8), 16)) >>> 24, r4[1] = t4 >>> 16 & 255, r4[2] = t4 >>> 8 & 255, r4[3] = 255 & t4, r4[4] = (t4 = parseInt(e4.slice(9, 13), 16)) >>> 8, r4[5] = 255 & t4, r4[6] = (t4 = parseInt(e4.slice(14, 18), 16)) >>> 8, r4[7] = 255 & t4, r4[8] = (t4 = parseInt(e4.slice(19, 23), 16)) >>> 8, r4[9] = 255 & t4, r4[10] = (t4 = parseInt(e4.slice(24, 36), 16)) / 1099511627776 & 255, r4[11] = t4 / 4294967296 & 255, r4[12] = t4 >>> 24 & 255, r4[13] = t4 >>> 16 & 255, r4[14] = t4 >>> 8 & 255, r4[15] = 255 & t4, r4;
53506      };
53507    }, 7300: (e3, t3) => {
53508      Object.defineProperty(t3, "__esModule", { value: true }), t3.default = void 0, t3.default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
53509    }, 4402: (e3, t3) => {
53510      var r3;
53511      Object.defineProperty(t3, "__esModule", { value: true }), t3.default = function() {
53512        if (!r3 && !(r3 = "undefined" != typeof crypto && crypto.getRandomValues && crypto.getRandomValues.bind(crypto)))
53513          throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
53514        return r3(n2);
53515      };
53516      var n2 = new Uint8Array(16);
53517    }, 2702: (e3, t3) => {
53518      function r3(e4, t4, r4, n3) {
53519        switch (e4) {
53520          case 0:
53521            return t4 & r4 ^ ~t4 & n3;
53522          case 1:
53523          case 3:
53524            return t4 ^ r4 ^ n3;
53525          case 2:
53526            return t4 & r4 ^ t4 & n3 ^ r4 & n3;
53527        }
53528      }
53529      function n2(e4, t4) {
53530        return e4 << t4 | e4 >>> 32 - t4;
53531      }
53532      Object.defineProperty(t3, "__esModule", { value: true }), t3.default = void 0;
53533      t3.default = function(e4) {
53534        var t4 = [1518500249, 1859775393, 2400959708, 3395469782], i = [1732584193, 4023233417, 2562383102, 271733878, 3285377520];
53535        if ("string" == typeof e4) {
53536          var o = unescape(encodeURIComponent(e4));
53537          e4 = [];
53538          for (var a = 0; a < o.length; ++a)
53539            e4.push(o.charCodeAt(a));
53540        } else
53541          Array.isArray(e4) || (e4 = Array.prototype.slice.call(e4));
53542        e4.push(128);
53543        for (var s = e4.length / 4 + 2, u2 = Math.ceil(s / 16), c2 = new Array(u2), f2 = 0; f2 < u2; ++f2) {
53544          for (var d2 = new Uint32Array(16), l2 = 0; l2 < 16; ++l2)
53545            d2[l2] = e4[64 * f2 + 4 * l2] << 24 | e4[64 * f2 + 4 * l2 + 1] << 16 | e4[64 * f2 + 4 * l2 + 2] << 8 | e4[64 * f2 + 4 * l2 + 3];
53546          c2[f2] = d2;
53547        }
53548        c2[u2 - 1][14] = 8 * (e4.length - 1) / Math.pow(2, 32), c2[u2 - 1][14] = Math.floor(c2[u2 - 1][14]), c2[u2 - 1][15] = 8 * (e4.length - 1) & 4294967295;
53549        for (var h2 = 0; h2 < u2; ++h2) {
53550          for (var p2 = new Uint32Array(80), b2 = 0; b2 < 16; ++b2)
53551            p2[b2] = c2[h2][b2];
53552          for (var y2 = 16; y2 < 80; ++y2)
53553            p2[y2] = n2(p2[y2 - 3] ^ p2[y2 - 8] ^ p2[y2 - 14] ^ p2[y2 - 16], 1);
53554          for (var m2 = i[0], v2 = i[1], g2 = i[2], w2 = i[3], A2 = i[4], k2 = 0; k2 < 80; ++k2) {
53555            var _ = Math.floor(k2 / 20), S2 = n2(m2, 5) + r3(_, v2, g2, w2) + A2 + t4[_] + p2[k2] >>> 0;
53556            A2 = w2, w2 = g2, g2 = n2(v2, 30) >>> 0, v2 = m2, m2 = S2;
53557          }
53558          i[0] = i[0] + m2 >>> 0, i[1] = i[1] + v2 >>> 0, i[2] = i[2] + g2 >>> 0, i[3] = i[3] + w2 >>> 0, i[4] = i[4] + A2 >>> 0;
53559        }
53560        return [i[0] >> 24 & 255, i[0] >> 16 & 255, i[0] >> 8 & 255, 255 & i[0], i[1] >> 24 & 255, i[1] >> 16 & 255, i[1] >> 8 & 255, 255 & i[1], i[2] >> 24 & 255, i[2] >> 16 & 255, i[2] >> 8 & 255, 255 & i[2], i[3] >> 24 & 255, i[3] >> 16 & 255, i[3] >> 8 & 255, 255 & i[3], i[4] >> 24 & 255, i[4] >> 16 & 255, i[4] >> 8 & 255, 255 & i[4]];
53561      };
53562    }, 2982: (e3, t3, r3) => {
53563      Object.defineProperty(t3, "__esModule", { value: true }), t3.default = void 0, t3.unsafeStringify = s;
53564      for (var n2, i = (n2 = r3(6163)) && n2.__esModule ? n2 : { default: n2 }, o = [], a = 0; a < 256; ++a)
53565        o.push((a + 256).toString(16).slice(1));
53566      function s(e4) {
53567        var t4 = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0;
53568        return (o[e4[t4 + 0]] + o[e4[t4 + 1]] + o[e4[t4 + 2]] + o[e4[t4 + 3]] + "-" + o[e4[t4 + 4]] + o[e4[t4 + 5]] + "-" + o[e4[t4 + 6]] + o[e4[t4 + 7]] + "-" + o[e4[t4 + 8]] + o[e4[t4 + 9]] + "-" + o[e4[t4 + 10]] + o[e4[t4 + 11]] + o[e4[t4 + 12]] + o[e4[t4 + 13]] + o[e4[t4 + 14]] + o[e4[t4 + 15]]).toLowerCase();
53569      }
53570      t3.default = function(e4) {
53571        var t4 = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0, r4 = s(e4, t4);
53572        if (!(0, i.default)(r4))
53573          throw TypeError("Stringified UUID is invalid");
53574        return r4;
53575      };
53576    }, 5999: (e3, t3, r3) => {
53577      Object.defineProperty(t3, "__esModule", { value: true }), t3.default = void 0;
53578      var n2, i, o, a = (n2 = r3(4402)) && n2.__esModule ? n2 : { default: n2 }, s = r3(2982), u2 = 0, c2 = 0;
53579      t3.default = function(e4, t4, r4) {
53580        var n3 = t4 && r4 || 0, f2 = t4 || new Array(16), d2 = (e4 = e4 || {}).node || i, l2 = void 0 !== e4.clockseq ? e4.clockseq : o;
53581        if (null == d2 || null == l2) {
53582          var h2 = e4.random || (e4.rng || a.default)();
53583          null == d2 && (d2 = i = [1 | h2[0], h2[1], h2[2], h2[3], h2[4], h2[5]]), null == l2 && (l2 = o = 16383 & (h2[6] << 8 | h2[7]));
53584        }
53585        var p2 = void 0 !== e4.msecs ? e4.msecs : Date.now(), b2 = void 0 !== e4.nsecs ? e4.nsecs : c2 + 1, y2 = p2 - u2 + (b2 - c2) / 1e4;
53586        if (y2 < 0 && void 0 === e4.clockseq && (l2 = l2 + 1 & 16383), (y2 < 0 || p2 > u2) && void 0 === e4.nsecs && (b2 = 0), b2 >= 1e4)
53587          throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");
53588        u2 = p2, c2 = b2, o = l2;
53589        var m2 = (1e4 * (268435455 & (p2 += 122192928e5)) + b2) % 4294967296;
53590        f2[n3++] = m2 >>> 24 & 255, f2[n3++] = m2 >>> 16 & 255, f2[n3++] = m2 >>> 8 & 255, f2[n3++] = 255 & m2;
53591        var v2 = p2 / 4294967296 * 1e4 & 268435455;
53592        f2[n3++] = v2 >>> 8 & 255, f2[n3++] = 255 & v2, f2[n3++] = v2 >>> 24 & 15 | 16, f2[n3++] = v2 >>> 16 & 255, f2[n3++] = l2 >>> 8 | 128, f2[n3++] = 255 & l2;
53593        for (var g2 = 0; g2 < 6; ++g2)
53594          f2[n3 + g2] = d2[g2];
53595        return t4 || (0, s.unsafeStringify)(f2);
53596      };
53597    }, 8231: (e3, t3, r3) => {
53598      Object.defineProperty(t3, "__esModule", { value: true }), t3.default = void 0;
53599      var n2 = o(r3(6125)), i = o(r3(6792));
53600      function o(e4) {
53601        return e4 && e4.__esModule ? e4 : { default: e4 };
53602      }
53603      var a = (0, n2.default)("v3", 48, i.default);
53604      t3.default = a;
53605    }, 6125: (e3, t3, r3) => {
53606      Object.defineProperty(t3, "__esModule", { value: true }), t3.URL = t3.DNS = void 0, t3.default = function(e4, t4, r4) {
53607        function n3(e5, n4, a2, s2) {
53608          var u2;
53609          if ("string" == typeof e5 && (e5 = function(e6) {
53610            e6 = unescape(encodeURIComponent(e6));
53611            for (var t5 = [], r5 = 0; r5 < e6.length; ++r5)
53612              t5.push(e6.charCodeAt(r5));
53613            return t5;
53614          }(e5)), "string" == typeof n4 && (n4 = (0, o.default)(n4)), 16 !== (null === (u2 = n4) || void 0 === u2 ? void 0 : u2.length))
53615            throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");
53616          var c2 = new Uint8Array(16 + e5.length);
53617          if (c2.set(n4), c2.set(e5, n4.length), (c2 = r4(c2))[6] = 15 & c2[6] | t4, c2[8] = 63 & c2[8] | 128, a2) {
53618            s2 = s2 || 0;
53619            for (var f2 = 0; f2 < 16; ++f2)
53620              a2[s2 + f2] = c2[f2];
53621            return a2;
53622          }
53623          return (0, i.unsafeStringify)(c2);
53624        }
53625        try {
53626          n3.name = e4;
53627        } catch (e5) {
53628        }
53629        return n3.DNS = a, n3.URL = s, n3;
53630      };
53631      var n2, i = r3(2982), o = (n2 = r3(1729)) && n2.__esModule ? n2 : { default: n2 }, a = "6ba7b810-9dad-11d1-80b4-00c04fd430c8";
53632      t3.DNS = a;
53633      var s = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
53634      t3.URL = s;
53635    }, 8647: (e3, t3, r3) => {
53636      Object.defineProperty(t3, "__esModule", { value: true }), t3.default = void 0;
53637      var n2 = a(r3(1788)), i = a(r3(4402)), o = r3(2982);
53638      function a(e4) {
53639        return e4 && e4.__esModule ? e4 : { default: e4 };
53640      }
53641      t3.default = function(e4, t4, r4) {
53642        if (n2.default.randomUUID && !t4 && !e4)
53643          return n2.default.randomUUID();
53644        var a2 = (e4 = e4 || {}).random || (e4.rng || i.default)();
53645        if (a2[6] = 15 & a2[6] | 64, a2[8] = 63 & a2[8] | 128, t4) {
53646          r4 = r4 || 0;
53647          for (var s = 0; s < 16; ++s)
53648            t4[r4 + s] = a2[s];
53649          return t4;
53650        }
53651        return (0, o.unsafeStringify)(a2);
53652      };
53653    }, 5025: (e3, t3, r3) => {
53654      Object.defineProperty(t3, "__esModule", { value: true }), t3.default = void 0;
53655      var n2 = o(r3(6125)), i = o(r3(2702));
53656      function o(e4) {
53657        return e4 && e4.__esModule ? e4 : { default: e4 };
53658      }
53659      var a = (0, n2.default)("v5", 80, i.default);
53660      t3.default = a;
53661    }, 6163: (e3, t3, r3) => {
53662      Object.defineProperty(t3, "__esModule", { value: true }), t3.default = void 0;
53663      var n2, i = (n2 = r3(7300)) && n2.__esModule ? n2 : { default: n2 };
53664      t3.default = function(e4) {
53665        return "string" == typeof e4 && i.default.test(e4);
53666      };
53667    }, 8928: (e3, t3, r3) => {
53668      Object.defineProperty(t3, "__esModule", { value: true }), t3.default = void 0;
53669      var n2, i = (n2 = r3(6163)) && n2.__esModule ? n2 : { default: n2 };
53670      t3.default = function(e4) {
53671        if (!(0, i.default)(e4))
53672          throw TypeError("Invalid UUID");
53673        return parseInt(e4.slice(14, 15), 16);
53674      };
53675    }, 8325: (e3) => {
53676      e3.exports = function e4(t3, r3) {
53677        var n2, i = 0, o = 0, a = r3 = r3 || 0, s = t3.length;
53678        do {
53679          if (a >= s)
53680            throw e4.bytes = 0, new RangeError("Could not decode varint");
53681          n2 = t3[a++], i += o < 28 ? (127 & n2) << o : (127 & n2) * Math.pow(2, o), o += 7;
53682        } while (n2 >= 128);
53683        return e4.bytes = a - r3, i;
53684      };
53685    }, 2699: (e3) => {
53686      e3.exports = function e4(r3, n2, i) {
53687        n2 = n2 || [];
53688        for (var o = i = i || 0; r3 >= t3; )
53689          n2[i++] = 255 & r3 | 128, r3 /= 128;
53690        for (; -128 & r3; )
53691          n2[i++] = 255 & r3 | 128, r3 >>>= 7;
53692        return n2[i] = 0 | r3, e4.bytes = i - o + 1, n2;
53693      };
53694      var t3 = Math.pow(2, 31);
53695    }, 6657: (e3, t3, r3) => {
53696      e3.exports = { encode: r3(2699), decode: r3(8325), encodingLength: r3(7490) };
53697    }, 7490: (e3) => {
53698      var t3 = Math.pow(2, 7), r3 = Math.pow(2, 14), n2 = Math.pow(2, 21), i = Math.pow(2, 28), o = Math.pow(2, 35), a = Math.pow(2, 42), s = Math.pow(2, 49), u2 = Math.pow(2, 56), c2 = Math.pow(2, 63);
53699      e3.exports = function(e4) {
53700        return e4 < t3 ? 1 : e4 < r3 ? 2 : e4 < n2 ? 3 : e4 < i ? 4 : e4 < o ? 5 : e4 < a ? 6 : e4 < s ? 7 : e4 < u2 ? 8 : e4 < c2 ? 9 : 10;
53701      };
53702    }, 1158: (e3, t3, r3) => {
53703      var n2, i = r3(8847)(r3(3355));
53704      if ("object" === ("undefined" == typeof globalThis ? "undefined" : (0, i.default)(globalThis)))
53705        n2 = globalThis;
53706      else
53707        try {
53708          n2 = r3(6464);
53709        } catch (e4) {
53710        } finally {
53711          if (n2 || "undefined" == typeof window || (n2 = window), !n2)
53712            throw new Error("Could not determine global this");
53713        }
53714      var o = n2.WebSocket || n2.MozWebSocket, a = r3(5735);
53715      function s(e4, t4) {
53716        return t4 ? new o(e4, t4) : new o(e4);
53717      }
53718      o && ["CONNECTING", "OPEN", "CLOSING", "CLOSED"].forEach(function(e4) {
53719        Object.defineProperty(s, e4, { get: function() {
53720          return o[e4];
53721        } });
53722      }), e3.exports = { w3cwebsocket: o ? s : null, version: a };
53723    }, 5735: (e3, t3, r3) => {
53724      e3.exports = r3(9794).version;
53725    }, 2337: (e3, t3, r3) => {
53726      var n2 = r3(8184), i = r3(3604), o = r3(593), a = r3(3820), s = o("Object.prototype.toString"), u2 = r3(1191)(), c2 = "undefined" == typeof globalThis ? r3.g : globalThis, f2 = i(), d2 = o("String.prototype.slice"), l2 = {}, h2 = Object.getPrototypeOf;
53727      u2 && a && h2 && n2(f2, function(e4) {
53728        if ("function" == typeof c2[e4]) {
53729          var t4 = new c2[e4]();
53730          if (Symbol.toStringTag in t4) {
53731            var r4 = h2(t4), n3 = a(r4, Symbol.toStringTag);
53732            if (!n3) {
53733              var i2 = h2(r4);
53734              n3 = a(i2, Symbol.toStringTag);
53735            }
53736            l2[e4] = n3.get;
53737          }
53738        }
53739      });
53740      var p2 = r3(8915);
53741      e3.exports = function(e4) {
53742        return !!p2(e4) && (u2 && Symbol.toStringTag in e4 ? function(e5) {
53743          var t4 = false;
53744          return n2(l2, function(r4, n3) {
53745            if (!t4)
53746              try {
53747                var i2 = r4.call(e5);
53748                i2 === n3 && (t4 = i2);
53749              } catch (e6) {
53750              }
53751          }), t4;
53752        }(e4) : d2(s(e4), 8, -1));
53753      };
53754    }, 1357: (e3, t3, r3) => {
53755      var n2 = r3(8992), i = r3(8419), o = r3(3103), a = r3(9122), s = r3(7321), u2 = "application/json", c2 = function() {
53756      };
53757      e3.exports = function(e4, t4, r4) {
53758        if (!e4 || "string" != typeof e4)
53759          throw new TypeError("must specify a URL");
53760        if ("function" == typeof t4 && (r4 = t4, t4 = {}), r4 && "function" != typeof r4)
53761          throw new TypeError("expected cb to be undefined or a function");
53762        r4 = r4 || c2;
53763        var f2 = (t4 = t4 || {}).json ? "json" : "text", d2 = (t4 = o({ responseType: f2 }, t4)).headers || {}, l2 = (t4.method || "GET").toUpperCase(), h2 = t4.query;
53764        return h2 && ("string" != typeof h2 && (h2 = n2.stringify(h2)), e4 = i(e4, h2)), "json" === t4.responseType && a(d2, "Accept", u2), t4.json && "GET" !== l2 && "HEAD" !== l2 && (a(d2, "Content-Type", u2), t4.body = JSON.stringify(t4.body)), t4.method = l2, t4.url = e4, t4.headers = d2, delete t4.query, delete t4.json, s(t4, r4);
53765      };
53766    }, 9122: (e3) => {
53767      e3.exports = function(e4, t3, r3) {
53768        var n2 = t3.toLowerCase();
53769        e4[t3] || e4[n2] || (e4[t3] = r3);
53770      };
53771    }, 9800: (e3) => {
53772      e3.exports = function(e4, t3) {
53773        return t3 ? { statusCode: t3.statusCode, headers: t3.headers, method: e4.method, url: e4.url, rawRequest: t3.rawRequest ? t3.rawRequest : t3 } : null;
53774      };
53775    }, 7321: (e3, t3, r3) => {
53776      var n2 = r3(346), i = r3(9800), o = function() {
53777      };
53778      e3.exports = function(e4, t4) {
53779        delete e4.uri;
53780        var r4 = false;
53781        "json" === e4.responseType && (e4.responseType = "text", r4 = true);
53782        var a = n2(e4, function(n3, a2, s2) {
53783          if (r4 && !n3)
53784            try {
53785              var u2 = a2.rawRequest.responseText;
53786              s2 = JSON.parse(u2);
53787            } catch (e5) {
53788              n3 = e5;
53789            }
53790          a2 = i(e4, a2), t4(n3, n3 ? null : s2, a2), t4 = o;
53791        }), s = a.onabort;
53792        return a.onabort = function() {
53793          var e5 = s.apply(a, Array.prototype.slice.call(arguments));
53794          return t4(new Error("XHR Aborted")), t4 = o, e5;
53795        }, a;
53796      };
53797    }, 8992: (e3, t3, r3) => {
53798      var n2 = r3(8847)(r3(3355)), i = r3(3621), o = r3(3103), a = r3(34);
53799      function s(e4, t4) {
53800        return t4.encode ? t4.strict ? i(e4) : encodeURIComponent(e4) : e4;
53801      }
53802      function u2(e4) {
53803        return Array.isArray(e4) ? e4.sort() : "object" === (0, n2.default)(e4) ? u2(Object.keys(e4)).sort(function(e5, t4) {
53804          return Number(e5) - Number(t4);
53805        }).map(function(t4) {
53806          return e4[t4];
53807        }) : e4;
53808      }
53809      function c2(e4) {
53810        var t4 = e4.indexOf("?");
53811        return -1 === t4 ? "" : e4.slice(t4 + 1);
53812      }
53813      function f2(e4, t4) {
53814        var r4 = function(e5) {
53815          var t5;
53816          switch (e5.arrayFormat) {
53817            case "index":
53818              return function(e6, r5, n3) {
53819                t5 = /\[(\d*)\]$/.exec(e6), e6 = e6.replace(/\[\d*\]$/, ""), t5 ? (void 0 === n3[e6] && (n3[e6] = {}), n3[e6][t5[1]] = r5) : n3[e6] = r5;
53820              };
53821            case "bracket":
53822              return function(e6, r5, n3) {
53823                t5 = /(\[\])$/.exec(e6), e6 = e6.replace(/\[\]$/, ""), t5 ? void 0 !== n3[e6] ? n3[e6] = [].concat(n3[e6], r5) : n3[e6] = [r5] : n3[e6] = r5;
53824              };
53825            default:
53826              return function(e6, t6, r5) {
53827                void 0 !== r5[e6] ? r5[e6] = [].concat(r5[e6], t6) : r5[e6] = t6;
53828              };
53829          }
53830        }(t4 = o({ arrayFormat: "none" }, t4)), i2 = /* @__PURE__ */ Object.create(null);
53831        return "string" != typeof e4 ? i2 : (e4 = e4.trim().replace(/^[?#&]/, "")) ? (e4.split("&").forEach(function(e5) {
53832          var t5 = e5.replace(/\+/g, " ").split("="), n3 = t5.shift(), o2 = t5.length > 0 ? t5.join("=") : void 0;
53833          o2 = void 0 === o2 ? null : a(o2), r4(a(n3), o2, i2);
53834        }), Object.keys(i2).sort().reduce(function(e5, t5) {
53835          var r5 = i2[t5];
53836          return Boolean(r5) && "object" === (0, n2.default)(r5) && !Array.isArray(r5) ? e5[t5] = u2(r5) : e5[t5] = r5, e5;
53837        }, /* @__PURE__ */ Object.create(null))) : i2;
53838      }
53839      t3.extract = c2, t3.parse = f2, t3.stringify = function(e4, t4) {
53840        false === (t4 = o({ encode: true, strict: true, arrayFormat: "none" }, t4)).sort && (t4.sort = function() {
53841        });
53842        var r4 = function(e5) {
53843          switch (e5.arrayFormat) {
53844            case "index":
53845              return function(t5, r5, n3) {
53846                return null === r5 ? [s(t5, e5), "[", n3, "]"].join("") : [s(t5, e5), "[", s(n3, e5), "]=", s(r5, e5)].join("");
53847              };
53848            case "bracket":
53849              return function(t5, r5) {
53850                return null === r5 ? s(t5, e5) : [s(t5, e5), "[]=", s(r5, e5)].join("");
53851              };
53852            default:
53853              return function(t5, r5) {
53854                return null === r5 ? s(t5, e5) : [s(t5, e5), "=", s(r5, e5)].join("");
53855              };
53856          }
53857        }(t4);
53858        return e4 ? Object.keys(e4).sort(t4.sort).map(function(n3) {
53859          var i2 = e4[n3];
53860          if (void 0 === i2)
53861            return "";
53862          if (null === i2)
53863            return s(n3, t4);
53864          if (Array.isArray(i2)) {
53865            var o2 = [];
53866            return i2.slice().forEach(function(e5) {
53867              void 0 !== e5 && o2.push(r4(n3, e5, o2.length));
53868            }), o2.join("&");
53869          }
53870          return s(n3, t4) + "=" + s(i2, t4);
53871        }).filter(function(e5) {
53872          return e5.length > 0;
53873        }).join("&") : "";
53874      }, t3.parseUrl = function(e4, t4) {
53875        return { url: e4.split("?")[0] || "", query: f2(c2(e4), t4) };
53876      };
53877    }, 3621: (e3) => {
53878      e3.exports = function(e4) {
53879        return encodeURIComponent(e4).replace(/[!'()*]/g, function(e5) {
53880          return "%" + e5.charCodeAt(0).toString(16).toUpperCase();
53881        });
53882      };
53883    }, 346: (e3, t3, r3) => {
53884      var n2 = r3(2948), i = r3(4339), o = r3(8209), a = r3(7705);
53885      function s(e4, t4, r4) {
53886        var n3 = e4;
53887        return i(t4) ? (r4 = t4, "string" == typeof e4 && (n3 = { uri: e4 })) : n3 = a(t4, { uri: e4 }), n3.callback = r4, n3;
53888      }
53889      function u2(e4, t4, r4) {
53890        return c2(t4 = s(e4, t4, r4));
53891      }
53892      function c2(e4) {
53893        if (void 0 === e4.callback)
53894          throw new Error("callback argument missing");
53895        var t4 = false, r4 = function(r5, n4, i3) {
53896          t4 || (t4 = true, e4.callback(r5, n4, i3));
53897        };
53898        function n3() {
53899          var e5 = void 0;
53900          if (e5 = f2.response ? f2.response : f2.responseText || function(e6) {
53901            try {
53902              if ("document" === e6.responseType)
53903                return e6.responseXML;
53904              var t5 = e6.responseXML && "parsererror" === e6.responseXML.documentElement.nodeName;
53905              if ("" === e6.responseType && !t5)
53906                return e6.responseXML;
53907            } catch (e7) {
53908            }
53909            return null;
53910          }(f2), m2)
53911            try {
53912              e5 = JSON.parse(e5);
53913            } catch (e6) {
53914            }
53915          return e5;
53916        }
53917        function i2(e5) {
53918          return clearTimeout(d2), e5 instanceof Error || (e5 = new Error("" + (e5 || "Unknown XMLHttpRequest Error"))), e5.statusCode = 0, r4(e5, v2);
53919        }
53920        function a2() {
53921          if (!c3) {
53922            var t5;
53923            clearTimeout(d2), t5 = e4.useXDR && void 0 === f2.status ? 200 : 1223 === f2.status ? 204 : f2.status;
53924            var i3 = v2, a3 = null;
53925            return 0 !== t5 ? (i3 = { body: n3(), statusCode: t5, method: h2, headers: {}, url: l2, rawRequest: f2 }, f2.getAllResponseHeaders && (i3.headers = o(f2.getAllResponseHeaders()))) : a3 = new Error("Internal XMLHttpRequest Error"), r4(a3, i3, i3.body);
53926          }
53927        }
53928        var s2, c3, f2 = e4.xhr || null;
53929        f2 || (f2 = e4.cors || e4.useXDR ? new u2.XDomainRequest() : new u2.XMLHttpRequest());
53930        var d2, l2 = f2.url = e4.uri || e4.url, h2 = f2.method = e4.method || "GET", p2 = e4.body || e4.data, b2 = f2.headers = e4.headers || {}, y2 = !!e4.sync, m2 = false, v2 = { body: void 0, headers: {}, statusCode: 0, method: h2, url: l2, rawRequest: f2 };
53931        if ("json" in e4 && false !== e4.json && (m2 = true, b2.accept || b2.Accept || (b2.Accept = "application/json"), "GET" !== h2 && "HEAD" !== h2 && (b2["content-type"] || b2["Content-Type"] || (b2["Content-Type"] = "a
53931pplication/json"), p2 = JSON.stringify(true === e4.json ? p2 : e4.json))), f2.onreadystatechange = function() {
53932          4 === f2.readyState && setTimeout(a2, 0);
53933        }, f2.onload = a2, f2.onerror = i2, f2.onprogress = function() {
53934        }, f2.onabort = function() {
53935          c3 = true;
53936        }, f2.ontimeout = i2, f2.open(h2, l2, !y2, e4.username, e4.password), y2 || (f2.withCredentials = !!e4.withCredentials), !y2 && e4.timeout > 0 && (d2 = setTimeout(function() {
53937          if (!c3) {
53938            c3 = true, f2.abort("timeout");
53939            var e5 = new Error("XMLHttpRequest timeout");
53940            e5.code = "ETIMEDOUT", i2(e5);
53941          }
53942        }, e4.timeout)), f2.setRequestHeader)
53943          for (s2 in b2)
53944            b2.hasOwnProperty(s2) && f2.setRequestHeader(s2, b2[s2]);
53945        else if (e4.headers && !function(e5) {
53946          for (var t5 in e5)
53947            if (e5.hasOwnProperty(t5))
53948              return false;
53949          return true;
53950        }(e4.headers))
53951          throw new Error("Headers cannot be set on an XDomainRequest object");
53952        return "responseType" in e4 && (f2.responseType = e4.responseType), "beforeSend" in e4 && "function" == typeof e4.beforeSend && e4.beforeSend(f2), f2.send(p2 || null), f2;
53953      }
53954      e3.exports = u2, e3.exports.default = u2, u2.XMLHttpRequest = n2.XMLHttpRequest || function() {
53955      }, u2.XDomainRequest = "withCredentials" in new u2.XMLHttpRequest() ? u2.XMLHttpRequest : n2.XDomainRequest, function(e4, t4) {
53956        for (var r4 = 0; r4 < e4.length; r4++)
53957          t4(e4[r4]);
53958      }(["get", "put", "post", "patch", "head", "delete"], function(e4) {
53959        u2["delete" === e4 ? "del" : e4] = function(t4, r4, n3) {
53960          return (r4 = s(t4, r4, n3)).method = e4.toUpperCase(), c2(r4);
53961        };
53962      });
53963    }, 7705: (e3) => {
53964      e3.exports = function() {
53965        for (var e4 = {}, r3 = 0; r3 < arguments.length; r3++) {
53966          var n2 = arguments[r3];
53967          for (var i in n2)
53968            t3.call(n2, i) && (e4[i] = n2[i]);
53969        }
53970        return e4;
53971      };
53972      var t3 = Object.prototype.hasOwnProperty;
53973    }, 2463: (e3, t3, r3) => {
53974      var n2 = r3(8847)(r3(3355)), i = r3(6427), o = function e4(t4) {
53975        this.givenProvider = e4.givenProvider, t4 && t4._requestManager && (t4 = t4.currentProvider), "undefined" != typeof document && (this.pick = i.pick), this.setProvider(t4);
53976      };
53977      o.givenProvider = null, "undefined" != typeof ethereum && ethereum.bzz && (o.givenProvider = ethereum.bzz), o.prototype.setProvider = function(e4) {
53978        if (e4 && "object" === (0, n2.default)(e4) && "string" == typeof e4.bzz && (e4 = e4.bzz), "string" != typeof e4) {
53979          this.currentProvider = null;
53980          var t4 = new Error("No provider set, please set one using bzz.setProvider().");
53981          return this.download = this.upload = this.isAvailable = function() {
53982            throw t4;
53983          }, false;
53984        }
53985        return this.currentProvider = e4, this.download = i.at(e4).download, this.upload = i.at(e4).upload, this.isAvailable = i.at(e4).isAvailable, true;
53986      }, e3.exports = o;
53987    }, 4246: (e3, t3, r3) => {
53988      var n2 = r3(8847)(r3(3355));
53989      e3.exports = { ErrorResponse: function(e4) {
53990        var t4 = e4 && e4.error && e4.error.message ? e4.error.message : JSON.stringify(e4), r4 = e4.error && e4.error.data ? e4.error.data : null, n3 = new Error("Returned error: " + t4);
53991        return n3.data = r4, n3;
53992      }, InvalidNumberOfParams: function(e4, t4, r4) {
53993        return new Error('Invalid number of parameters for "' + r4 + '". Got ' + e4 + " expected " + t4 + "!");
53994      }, InvalidConnection: function(e4, t4) {
53995        return this.ConnectionError("CONNECTION ERROR: Couldn't connect to node " + e4 + ".", t4);
53996      }, InvalidProvider: function() {
53997        return new Error("Provider not set or invalid");
53998      }, InvalidResponse: function(e4) {
53999        var t4 = e4 && e4.error && e4.error.message ? e4.error.message : "Invalid JSON RPC response: " + JSON.stringify(e4);
54000        return new Error(t4);
54001      }, ConnectionTimeout: function(e4) {
54002        return new Error("CONNECTION TIMEOUT: timeout of " + e4 + " ms achived");
54003      }, ConnectionNotOpenError: function(e4) {
54004        return this.ConnectionError("connection not open on send()", e4);
54005      }, ConnectionCloseError: function(e4) {
54006        return "object" === (0, n2.default)(e4) && e4.code && e4.reason ? this.ConnectionError("CONNECTION ERROR: The connection got closed with the close code `" + e4.code + "` and the following reason string `" + e4.reason + "`", e4) : new Error("CONNECTION ERROR: The connection closed unexpectedly");
54007      }, MaxAttemptsReachedOnReconnectingError: function() {
54008        return new Error("Maximum number of reconnect attempts reached!");
54009      }, PendingRequestsOnReconnectingError: function() {
54010        return new Error("CONNECTION ERROR: Provider started to reconnect before the response got received!");
54011      }, ConnectionError: function(e4, t4) {
54012        var r4 = new Error(e4);
54013        return t4 && (r4.code = t4.code, r4.reason = t4.reason), r4;
54014      }
54014, RevertInstructionError: function(e4, t4) {
54015        var r4 = new Error("Your request got reverted with the following reason string: " + e4);
54016        return r4.reason = e4, r4.signature = t4, r4;
54017      }, TransactionRevertInstructionError: function(e4, t4, r4) {
54018        var n3 = new Error("Transaction has been reverted by the EVM:\n" + JSON.stringify(r4, null, 2));
54019        return n3.reason = e4, n3.signature = t4, n3.receipt = r4, n3;
54020      }, TransactionError: function(e4, t4) {
54021        var r4 = new Error(e4);
54022        return r4.receipt = t4, r4;
54023      }, NoContractAddressFoundError: function(e4) {
54024        return this.TransactionError("The transaction receipt didn't contain a contract address.", e4);
54025      }, ContractCodeNotStoredError: function(e4) {
54026        return this.TransactionError("The contract code couldn't be stored, please check your gas limit.", e4);
54027      }, TransactionRevertedWithoutReasonError: function(e4) {
54028        return this.TransactionError("Transaction has been reverted by the EVM:\n" + JSON.stringify(e4, null, 2), e4);
54029      }, TransactionOutOfGasError: function(e4) {
54030        return this.TransactionError("Transaction ran out of gas. Please provide more gas:\n" + JSON.stringify(e4, null, 2), e4);
54031      }, ResolverMethodMissingError: function(e4, t4) {
54032        return new Error("The resolver at " + e4 + 'does not implement requested method: "' + t4 + '".');
54033      }, ContractMissingABIError: function() {
54034        return new Error("You must provide the json interface of the contract when instantiating a contract object.");
54035      }, ContractOnceRequiresCallbackError: function() {
54036        return new Error("Once requires a callback as the second parameter.");
54037      }, ContractEventDoesNotExistError: function(e4) {
54038        return new Error('Event "' + e4 + `" doesn't exist in this contract.`);
54039      }, ContractReservedEventError: function(e4) {
54040        return new Error('The event "' + e4 + `" is a reserved event name, you can't use it.`);
54041      }, ContractMissingDeployDataError: function() {
54042        return new Error('No "data" specified in neither the given options, nor the default options.');
54043      }, ContractNoAddressDefinedError: function() {
54044        return new Error("This contract object doesn't have address set yet, please set an address first.");
54045      }, ContractNoFromAddressDefinedError: function() {
54046        return new Error('No "from" address specified in neither the given options, nor the default options.');
54047      } };
54048    }, 2084: (e3, t3, r3) => {
54049      var n2 = r3(8847), i = n2(r3(775)), o = n2(r3(3355));
54050      function a(e4, t4) {
54051        var r4 = Object.keys(e4);
54052        if (Object.getOwnPropertySymbols) {
54053          var n3 = Object.getOwnPropertySymbols(e4);
54054          t4 && (n3 = n3.filter(function(t5) {
54055            return Object.getOwnPropertyDescriptor(e4, t5).enumerable;
54056          })), r4.push.apply(r4, n3);
54057        }
54058        return r4;
54059      }
54060      function s(e4) {
54061        for (var t4 = 1; t4 < arguments.length; t4++) {
54062          var r4 = null != arguments[t4] ? arguments[t4] : {};
54063          t4 % 2 ? a(Object(r4), true).forEach(function(t5) {
54064            (0, i.default)(e4, t5, r4[t5]);
54065          }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e4, Object.getOwnPropertyDescriptors(r4)) : a(Object(r4)).forEach(function(t5) {
54066            Object.defineProperty(e4, t5, Object.getOwnPropertyDescriptor(r4, t5));
54067          });
54068        }
54069        return e4;
54070      }
54071      var u2 = r3(8161), c2 = r3(6), f2 = function(e4) {
54072        return u2.toBN(e4).toString(10);
54073      }, d2 = function(e4) {
54074        if (void 0 !== e4)
54075          return function(e5) {
54076            return ["latest", "pending", "earliest", "finalized", "safe"].includes(e5);
54077          }(e4) ? e4 : "genesis" === e4 ? "0x0" : u2.isHexStrict(e4) ? "string" == typeof e4 ? e4.toLowerCase() : e4 : u2.numberToHex(e4);
54078      }, l2 = function(e4) {
54079        if (e4.to && (e4.to = b2(e4.to)), e4.data && e4.input)
54080          throw new Error(`You can't have "data" and "input" as properties of transactions at the same time, please use either "data" or "input" instead.`);
54081        if (!e4.data && e4.input && (e4.data = e4.input, delete e4.input), e4.data && !e4.data.startsWith("0x") && (e4.data = "0x" + e4.data), e4.data && !u2.isHex(e4.data))
54082          throw new Error("The data field must be HEX encoded data.");
54083        return (e4.gas || e4.gasLimit) && (e4.gas = e4.gas || e4.gasLimit), (e4.maxPriorityFeePerGas || e4.maxFeePerGas) && delete e4.gasPrice, ["gasPrice", "gas", "value", "maxPriorityFeePerGas", "maxFeePerGas", "nonce"].filter(function(t4) {
54084          return void 0 !== e4[t4];
54085        }).forEach(function(t4) {
54086          e4[t4] = u2.numberToHex(e4[t4]);
54087        }), e4;
54088      }, h2 = function(e4) {
54089        return null !== e4.blockNumber && (e4.blockNumber = u2.hexToNumber(e4.blockNumber)), null !== e4.transactionIndex && (e4.transactionIndex = u2.hexToNumber(e4.transactionIndex)), e4.nonce = u2.hexToNumber(e4.nonce), e4.gas = u2.hexToNumber(e4.gas), e4.gasPrice && (e4.gasPrice = f2(e4.gasPrice)), e4.maxFeePerGas && (e4.maxFeePerGas = f2(e4.maxFeePerGas)), e4.maxPriorityFeePerGas && (e4.maxPriorityFeePerGas = f2(e4.maxPriorityFeePerGas)), e4.type && (e4.type = u2.hexToNumber(e4.type)), e4.value = f2(e4.value), e4.to && u2.isAddress(e4.to) ? e4.to = u2.toChecksumAddress(e4.to) : e4.to = null, e4.from && (e4.from = u2.toChecksumAddress(e4.from)), e4;
54090      }, p2 = function(e4) {
54091        if ("string" == typeof e4.blockHash && "string" == typeof e4.transactionHash && "string" == typeof e4.logIndex) {
54092          var t4 = u2.sha3(e4.blockHash.replace("0x", "") + e4.transactionHash.replace("0x", "") + e4.logIndex.replace("0x", ""));
54093          e4.id = "log_" + t4.replace("0x", "").slice(0, 8);
54094        } else
54095          e4.id || (e4.id = null);
54096        return null !== e4.blockNumber && (e4.blockNumber = u2.hexToNumber(e4.blockNumber)), null !== e4.transactionIndex && (e4.transactionIndex = u2.hexToNumber(e4.transactionIndex)), null !== e4.logIndex && (e4.logIndex = u2.hexToNumber(e4.logIndex)), e4.address && (e4.address = u2.toChecksumAddress(e4.address)), e4;
54097      }, b2 = function(e4) {
54098        var t4 = new c2(e4);
54099        if (t4.isValid() && t4.isDirect())
54100          return t4.toAddress().toLowerCase();
54101        if (u2.isAddress(e4))
54102          return "0x" + e4.toLowerCase().replace("0x", "");
54103        throw new Error("Provided address ".concat(e4, " is invalid, the capitalization checksum test failed, or it's an indirect IBAN address which can't be converted."));
54104      };
54105      e3.exports = { inputDefaultBlockNumberFormatter: function(e4) {
54106        return d2(this && null == e4 ? this.defaultBlock : e4);
54107      }, inputBlockNumberFormatter: d2, inputCallFormatter: function(e4) {
54108        var t4 = (e4 = l2(e4)).from || (this ? this.defaultAccount : null);
54109        return t4 && (e4.from = b2(t4)), e4;
54110      }, inputTransactionFormatter: function(e4) {
54111        if ("number" != typeof (e4 = l2(e4)).from && (!e4.from || "object" !== (0, o.default)(e4.from))) {
54112          if (e4.from = e4.from || (this ? this.defaultAccount : null), !e4.from && "number" != typeof e4.from)
54113            throw new Error('The send transactions "from" field must be defined!');
54114          e4.from = b2(e4.from);
54115        }
54116        return e4;
54117      }, inputAddressFormatter: b2, inputPostFormatter: function(e4) {
54118        return e4.ttl && (e4.ttl = u2.numberToHex(e4.ttl)), e4.workToProve && (e4.workToProve = u2.numberToHex(e4.workToProve)), e4.priority && (e4.priority = u2.numberToHex(e4.priority)), Array.isArray(e4.topics) || (e4.topics = e4.topics ? [e4.topics] : []), e4.topics = e4.topics.map(function(e5) {
54119          return 0 === e5.indexOf("0x") ? e5 : u2.fromUtf8(e5);
54120        }), e4;
54121      }, inputLogFormatter: function(e4) {
54122        var t4 = function(e5) {
54123          return null == e5 ? null : 0 === (e5 = String(e5)).indexOf("0x") ? e5 : u2.fromUtf8(e5);
54124        };
54125        return void 0 === e4 && (e4 = {}), void 0 === e4.fromBlock && (e4 = s(s({}, e4), {}, { fromBlock: "latest" })), (e4.fromBlock || 0 === e4.fromBlock) && (e4.fromBlock = d2(e4.fromBlock)), (e4.toBlock || 0 === e4.toBlock) && (e4.toBlock = d2(e4.toBlock)), e4.topics = e4.topics || [], e4.topics = e4.topics.map(function(e5) {
54126          return Array.isArray(e5) ? e5.map(t4) : t4(e5);
54127        }), t4 = null, e4.address && (e4.address = Array.isArray(e4.address) ? e4.address.map(function(e5) {
54128          return b2(e5);
54129        }) : b2(e4.address)), e4;
54130      }, inputSignFormatter: function(e4) {
54131        return u2.isHexStrict(e4) ? e4 : u2.utf8ToHex(e4);
54132      }, inputStorageKeysFormatter: function(e4) {
54133        return e4.map(u2.numberToHex);
54134      }, outputProofFormatter: function(e4) {
54135        return e4.address = u2.toChecksumAddress(e4.address), e4.nonce = u2.hexToNumberString(e4.nonce), e4.balance = u2.hexToNumberString(e4.balance), e4;
54136      }, outputBigNumberFormatter: f2, outputTransactionFormatter: h2, outputTransactionReceiptFormatter: function(e4) {
54137        if ("object" !== (0, o.default)(e4))
54138          throw new Error("Received receipt is invalid: " + e4);
54139        return this.hexFormat || (null !== e4.blockNumber && (e4.blockNumber = u2.hexToNumber(e4.blockNumber)), null !== e4.transactionIndex && (e4.transactionIndex = u2.hexToNumber(e4.transactionIndex)), e4.cumulativeGasUsed = u2.hexToNumber(e4.cumulativeGasUsed), e4.gasUsed = u2.hexToNumber(e4.gasUsed), e4.effectiveGasPrice && (e4.effectiveGasPrice = u2.hexToNumber(e4.effectiveGasPrice))), Array.isArray(e4.logs) && (e4.logs = e4.logs.map(p2)), e4.contractAddress && (e4.contractAddress = u2.toChecksumAddress(e4.contractAddress)), void 0 !== e4.status && null !== e4.status && (e4.status = Boolean(parseInt(e4.status))), e4;
54140      }, outputBlockFormatter: function(e4) {
54141        return e4.gasLimit = u2.hexToNumber(e4.gasLimit), e4.gasUsed = u2.hexToNumber(e4.gasUsed), e4.size = u2.hexToNumber(e4.size), e4.timestamp = u2.hexToNumber(e4.timestamp), null !== e4.number && (e4.number = u2.hexToNumber(e4.number)), e4.difficulty && (e4.difficulty = f2(e4.difficulty)), e4.totalDifficulty && (e4.totalDifficulty = f2(e4.totalDifficulty)), Array.isArray(e4.transactions) && e4.transactions.forEach(function(e5) {
54142          if ("string" != typeof e5)
54143            return h2(e5);
54144        }), e4.miner && (e4.miner = u2.toChecksumAddress(e4.miner)), e4.baseFeePerGas && (e4.baseFeePerGas = u2.hexToNumber(e4.baseFeePerGas)), e4;
54145      }, outputLogFormatter: p2, outputPostFormatter: function(e4) {
54146        return e4.expiry = u2.hexToNumber(e4.expiry), e4.sent = u2.hexToNumber(e4.sent), e4.ttl = u2.hexToNumber(e4.ttl), e4.workProved = u2.hexToNumber(e4.workProved), e4.topics || (e4.topics = []), e4.topics = e4.topics.map(function(e5) {
54147          return u2.toUtf8(e5);
54148        }), e4;
54149      }, outputSyncingFormatter: function(e4) {
54150        return e4.startingBlock = u2.hexToNumber(e4.startingBlock), e4.currentBlock = u2.hexToNumber(e4.currentBlock), e4.highestBlock = u2.hexToNumber(e4.highestBlock), e4.knownStates && (e4.knownStates = u2.hexToNumber(e4.knownStates), e4.pulledStates = u2.hexToNumber(e4.pulledStates)), e4;
54151      } };
54152    }, 1314: (e3, t3, r3) => {
54153      var n2 = r3(4246), i = r3(2084);
54154      e3.exports = { errors: n2, formatters: i };
54155    }, 3349: (e3, t3, r3) => {
54156      var n2 = r3(8847), i = n2(r3(2247)), o = n2(r3(4519)), a = n2(r3(775)), s = n2(r3(5698)), u2 = n2(r3(3355));
54157      function c2(e4, t4) {
54158        var r4 = Object.keys(e4);
54159        if (Object.getOwnPropertySymbols) {
54160          var n3 = Object.getOwnPropertySymbols(e4);
54161          t4 && (n3 = n3.filter(function(t5) {
54162            return Object.getOwnPropertyDescriptor(e4, t5).enumerable;
54163          })), r4.push.apply(r4, n3);
54164        }
54165        return r4;
54166      }
54167      function f2(e4) {
54168        for (var t4 = 1; t4 < arguments.length; t4++) {
54169          var r4 = null != arguments[t4] ? arguments[t4] : {};
54170          t4 % 2 ? c2(Object(r4), true).forEach(function(t5) {
54171            (0, a.default)(e4, t5, r4[t5]);
54172          }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e4, Object.getOwnPropertyDescriptors(r4)) : c2(Object(r4)).forEach(function(t5) {
54173            Object.defineProperty(e4, t5, Object.getOwnPropertyDescriptor(r4, t5));
54174          });
54175        }
54176        return e4;
54177      }
54178      var d2 = r3(1314).errors, l2 = r3(1314).formatters, h2 = r3(8161), p2 = r3(282), b2 = r3(4178).subscriptions, y2 = r3(1936), m2 = function(e4) {
54179        if (!e4.call || !e4.name)
54180          throw new Error('When creating a method you need to provide at least the "name" and "call" property.');
54181        this.name = e4.name, this.call = e4.call, this.params = e4.params || 0, this.inputFormatter = e4.inputFormatter, this.outputFormatter = e4.outputFormatter, this.transformPayload = e4.transformPayload, this.extraFormatters = e4.extraFormatters, this.abiCoder = e4.abiCoder, this.requestManager = e4.requestManager, this.accounts = e4.accounts, this.defaultBlock = e4.defaultBlock || "latest", this.defaultAccount = e4.defaultAccount || null, this.transactionBlockTimeout = e4.transactionBlockTimeout || 50, this.transactionConfirmationBlocks = e4.transactionConfirmationBlocks || 24, this.transactionPollingTimeout = e4.transactionPollingTimeout || 750, this.transactionPollingInterval = e4.transactionPollingInterval || 1e3, this.blockHeaderTimeout = e4.blockHeaderTimeout || 10, this.defaultCommon = e4.defaultCommon, this.defaultChain = e4.defaultChain, this.defaultHardfork = e4.defaultHardfork, this.handleRevert = e4.handleRevert;
54182      };
54183      m2.prototype.setRequestManager = function(e4, t4) {
54184        this.requestManager = e4, t4 && (this.accounts = t4);
54185      }, m2.prototype.createFunction = function(e4, t4) {
54186        var r4 = this.buildCall();
54187        return Object.defineProperty(r4, "call", { configurable: true, writable: true, value: this.call }), this.setRequestManager(e4 || this.requestManager, t4 || this.accounts), r4;
54188      }, m2.prototype.attachToObject = function(e4) {
54189        var t4 = this.buildCall();
54190        Object.defineProperty(t4, "call", { configurable: true, writable: true, value: this.call });
54191        var r4 = this.name.split(".");
54192        r4.length > 1 ? (e4[r4[0]] = e4[r4[0]] || {}, e4[r4[0]][r4[1]] = t4) : e4[r4[0]] = t4;
54193      }, m2.prototype.getCall = function(e4) {
54194        return "function" == typeof this.call ? this.call(e4) : this.call;
54195      }, m2.prototype.extractCallback = function(e4) {
54196        if ("function" == typeof e4[e4.length - 1])
54197          return e4.pop();
54198      }, m2.prototype.validateArgs = function(e4) {
54199        if (e4.length !== this.params)
54200          throw d2.InvalidNumberOfParams(e4.length, this.params, this.name);
54201      }, m2.prototype.formatInput = function(e4) {
54202        var t4 = this;
54203        return this.inputFormatter ? this.inputFormatter.map(function(r4, n3) {
54204          return r4 ? r4.call(t4, e4[n3]) : e4[n3];
54205        }) : e4;
54206      }, m2.prototype.formatOutput = function(e4) {
54207        var t4 = this;
54208        return Array.isArray(e4) ? e4.map(function(e5) {
54209          return t4.outputFormatter && e5 ? t4.outputFormatter(e5) : e5;
54210        }) : this.outputFormatter && e4 ? this.outputFormatter(e4) : e4;
54211      }, m2.prototype.toPayload = function(e4) {
54212        var t4 = this.getCall(e4), r4 = this.extractCallback(e4), n3 = this.formatInput(e4);
54213        this.validateArgs(n3);
54214        var i2 = { method: t4, params: n3, callback: r4 };
54215        return this.transformPayload && (i2 = this.transformPayload(i2)), i2;
54216      }, m2.prototype._confirmTransaction = function(e4, t4, r4) {
54217        var n3 = this, o2 = false, a2 = true, c3 = 0, f3 = 0, v3 = null, g3 = null, w2 = null, A2 = r4.params[0] && "object" === (0, u2.default)(r4.params[0]) && r4.params[0].gas ? r4.params[0].gas : null, k2 = !!r4.params[0] && "object" === (0, u2.default)(r4.params[0]) && r4.params[0].data && r4.params[0].from && !r4.params[0].to, _ = k2 && r4.params[0].data.length > 2, S2 = [new m2({ name: "getBlockByNumber", call: "eth_getBlockByNumber", params: 2, inputFormatter: [l2.inputBlockNumberFormatter, function(e5) {
54218          return !!e5;
54219        }], outputFormatter: l2.outputBlockFormatter }), new m2({ name: "getTransactionReceipt", call: "eth_getTransactionReceipt", params: 1, inputFormatter: [null], outputFormatter: l2.outputTransactionReceiptFormatter }
54219), new m2({ name: "getCode", call: "eth_getCode", params: 2, inputFormatter: [l2.inputAddressFormatter, l2.inputDefaultBlockNumberFormatter] }), new m2({ name: "getTransactionByHash", call: "eth_getTransactionByHash", params: 1, inputFormatter: [null], outputFormatter: l2.outputTransactionFormatter }), new b2({ name: "subscribe", type: "eth", subscriptions: { newBlockHeaders: { subscriptionName: "newHeads", params: 0, outputFormatter: l2.outputBlockFormatter } } })], x2 = {};
54220        S2.forEach(function(e5) {
54221          e5.attachToObject(x2), e5.requestManager = n3.requestManager;
54222        });
54223        var E2 = function(u3, b3, m3, S3, E3) {
54224          if (!m3)
54225            return E3 || (E3 = { unsubscribe: function() {
54226              clearInterval(v3), clearTimeout(g3);
54227            } }), (u3 ? p2.resolve(u3) : x2.getTransactionReceipt(t4)).catch(function(t5) {
54228              E3.unsubscribe(), o2 = true, h2._fireError({ message: "Failed to check for transaction receipt:", data: t5 }, e4.eventEmitter, e4.reject);
54229            }).then(function() {
54230              var t5 = (0, s.default)(i.default.mark(function t6(r5) {
54231                var o3, s2, c4;
54232                return i.default.wrap(function(t7) {
54233                  for (; ; )
54234                    switch (t7.prev = t7.next) {
54235                      case 0:
54236                        if (r5 && r5.blockHash) {
54237                          t7.next = 2;
54238                          break;
54239                        }
54240                        throw new Error("Receipt missing or blockHash null");
54241                      case 2:
54242                        if (n3.extraFormatters && n3.extraFormatters.receiptFormatter && (r5 = n3.extraFormatters.receiptFormatter(r5)), !(e4.eventEmitter.listeners("confirmation").length > 0)) {
54243                          t7.next = 28;
54244                          break;
54245                        }
54246                        if (void 0 !== u3 && 0 === f3) {
54247                          t7.next = 25;
54248                          break;
54249                        }
54250                        return t7.next = 7, x2.getBlockByNumber("latest");
54251                      case 7:
54252                        if (s2 = t7.sent, c4 = s2 ? s2.hash : null, !b3) {
54253                          t7.next = 24;
54254                          break;
54255                        }
54256                        if (!w2) {
54257                          t7.next = 17;
54258                          break;
54259                        }
54260                        return t7.next = 13, x2.getBlockByNumber(w2.number + 1);
54261                      case 13:
54262                        (o3 = t7.sent) && (w2 = o3, e4.eventEmitter.emit("confirmation", f3, r5, c4)), t7.next = 22;
54263                        break;
54264                      case 17:
54265                        return t7.next = 19, x2.getBlockByNumber(r5.blockNumber);
54266                      case 19:
54267                        o3 = t7.sent, w2 = o3, e4.eventEmitter.emit("confirmation", f3, r5, c4);
54268                      case 22:
54269                        t7.next = 25;
54270                        break;
54271                      case 24:
54272                        e4.eventEmitter.emit("confirmation", f3, r5, c4);
54273                      case 25:
54274                        (b3 && o3 || !b3) && f3++, a2 = false, f3 === n3.transactionConfirmationBlocks + 1 && (E3.unsubscribe(), e4.eventEmitter.removeAllListeners());
54275                      case 28:
54276                        return t7.abrupt("return", r5);
54277                      case 29:
54278                      case "end":
54279                        return t7.stop();
54280                    }
54281                }, t6);
54282              }));
54283              return function(e5) {
54284                return t5.apply(this, arguments);
54285              };
54286            }()).then(function() {
54287              var t5 = (0, s.default)(i.default.mark(function t6(r5) {
54288                var s2;
54289                return i.default.wrap(function(t7) {
54290                  for (; ; )
54291                    switch (t7.prev = t7.next) {
54292                      case 0:
54293                        if (!k2 || o2) {
54294                          t7.next = 19;
54295                          break;
54296                        }
54297                        if (r5.contractAddress) {
54298                          t7.next = 5;
54299                          break;
54300                        }
54301                        return a2 && (E3.unsubscribe(), o2 = true), h2._fireError(d2.NoContractAddressFoundError(r5), e4.eventEmitter, e4.reject, null, r5), t7.abrupt("return");
54302                      case 5:
54303                        return t7.prev = 5, t7.next = 8, x2.getCode(r5.contractAddress);
54304                      case 8:
54305                        s2 = t7.sent, t7.next = 13;
54306                        break;
54307                      case 11:
54308                        t7.prev = 11, t7.t0 = t7.catch(5);
54309                      case 13:
54310                        if (s2) {
54311                          t7.next = 15;
54312                          break;
54313                        }
54314                        return t7.abrupt("return");
54315                      case 15:
54316                        true === r5.status && _ || s2.length > 2 ? (e4.eventEmitter.emit("receipt", r5), n3.extraFormatters && n3.extraFormatters.contractDeployFormatter ? e4.resolve(n3.extraFormatters.contractDeployFormatter(r5)) : e4.resolve(r5), a2 && e4.eventEmitter.removeAllListeners()) : h2._fireError(d2.ContractCodeNotStoredError(r5), e4.eventEmitter, e4.reject, null, r5), a2 && E3.unsubscribe(), o2 = true;
54317                      case 19:
54318                        return t7.abrupt("return", r5);
54319                      case 20:
54320                      case "end":
54321                        return t7.stop();
54322                    }
54323                }, t6, null, [[5, 11]]);
54324              }));
54325              return function(e5) {
54326                return t5.apply(this, arguments);
54327              };
54328            }()).then(function() {
54329              var t5 = (0, s.default)(i.default.mark(function t6(s2) {
54330                var u4, c4, f4, p3;
54331                return i.default.wrap(function(t7) {
54332                  for (; ; )
54333                    switch (t7.prev = t7.next) {
54334                      case 0:
54335                        if (k2 || o2) {
54336                          t7.next = 35;
54337                          break;
54338                        }
54339                        if (s2.outOfGas || A2 && A2 === s2.gasUsed || true !== s2.status && "0x1" !== s2.status && void 0 !== s2.status) {
54340                          t7.next = 7;
54341                          break;
54342                        }
54343                        e4.eventEmitter.emit("receipt", s2), e4.resolve(s2), a2 && e4.eventEmitter.removeAllListeners(), t7.next = 33;
54344                        break;
54345                      case 7:
54346                        if (JSON.stringify(s2, null, 2), false !== s2.status && "0x0" !== s2.status) {
54347                          t7.next = 32;
54348                          break;
54349                        }
54350                        if (t7.prev = 9, u4 = null, !n3.handleRevert || "eth_sendTransaction" !== n3.call && "eth_sendRawTransaction" !== n3.call) {
54351                          t7.next = 24;
54352                          break;
54353                        }
54354                        return c4 = r4.params[0], "eth_sendRawTransaction" === n3.call && (f4 = r4.params[0], p3 = y2.parse(f4), c4 = l2.inputTransactionFormatter({ data: p3.data, to: p3.to, from: p3.from, gas: p3.gasLim
54354it.toHexString(), gasPrice: p3.gasPrice ? p3.gasPrice.toHexString() : void 0, value: p3.value.toHexString() })), t7.next = 16, n3.getRevertReason(c4, s2.blockNumber);
54355                      case 16:
54356                        if (!(u4 = t7.sent)) {
54357                          t7.next = 21;
54358                          break;
54359                        }
54360                        h2._fireError(d2.TransactionRevertInstructionError(u4.reason, u4.signature, s2), e4.eventEmitter, e4.reject, null, s2), t7.next = 22;
54361                        break;
54362                      case 21:
54363                        throw false;
54364                      case 22:
54365                        t7.next = 25;
54366                        break;
54367                      case 24:
54368                        throw false;
54369                      case 25:
54370                        t7.next = 30;
54371                        break;
54372                      case 27:
54373                        t7.prev = 27, t7.t0 = t7.catch(9), h2._fireError(d2.TransactionRevertedWithoutReasonError(s2), e4.eventEmitter, e4.reject, null, s2);
54374                      case 30:
54375                        t7.next = 33;
54376                        break;
54377                      case 32:
54378                        h2._fireError(d2.TransactionOutOfGasError(s2), e4.eventEmitter, e4.reject, null, s2);
54379                      case 33:
54380                        a2 && E3.unsubscribe(), o2 = true;
54381                      case 35:
54382                      case "end":
54383                        return t7.stop();
54384                    }
54385                }, t6, null, [[9, 27]]);
54386              }));
54387              return function(e5) {
54388                return t5.apply(this, arguments);
54389              };
54390            }()).catch(function() {
54391              c3++, b3 ? c3 - 1 >= n3.transactionPollingTimeout && (E3.unsubscribe(), o2 = true, h2._fireError(d2.TransactionError("Transaction was not mined within " + n3.transactionPollingTimeout + " seconds, please make sure your transaction was properly sent. Be aware that it might still be mined!"), e4.eventEmitter, e4.reject)) : c3 - 1 >= n3.transactionBlockTimeout && (E3.unsubscribe(), o2 = true, h2._fireError(d2.TransactionError("Transaction was not mined within " + n3.transactionBlockTimeout + " blocks, please make sure your transaction was properly sent. Be aware that it might still be mined!"), e4.eventEmitter, e4.reject));
54392            });
54393          E3.unsubscribe(), o2 = true, h2._fireError({ message: "Failed to subscribe to new newBlockHeaders to confirm the transaction receipts.", data: m3 }, e4.eventEmitter, e4.reject);
54394        }, P2 = function(e5) {
54395          var t5 = false, r5 = function() {
54396            v3 = setInterval(E2.bind(null, e5, true), n3.transactionPollingInterval);
54397          };
54398          if (!this.requestManager.provider.on)
54399            return r5();
54400          x2.subscribe("newBlockHeaders", function(n4, i2, o3) {
54401            if (t5 = true, n4 || !i2)
54402              return r5();
54403            E2(e5, false, n4, 0, o3);
54404          }), g3 = setTimeout(function() {
54405            t5 || r5();
54406          }, 1e3 * this.blockHeaderTimeout);
54407        }.bind(this);
54408        x2.getTransactionReceipt(t4).then(function(t5) {
54409          t5 && t5.blockHash ? (e4.eventEmitter.listeners("confirmation").length > 0 && P2(t5), E2(t5, false)) : o2 || P2();
54410        }).catch(function() {
54411          o2 || P2();
54412        });
54413      };
54414      var v2 = function(e4, t4) {
54415        return "number" == typeof e4 ? t4.wallet[e4] : e4 && "object" === (0, u2.default)(e4) && e4.address && e4.privateKey ? e4 : t4.wallet[e4.toLowerCase()];
54416      };
54417      function g2(e4, t4) {
54418        return new Promise(function(r4, n3) {
54419          try {
54420            var i2 = new m2({ name: "getBlockByNumber", call: "eth_getBlockByNumber", params: 2, inputFormatter: [function(e5) {
54421              return e5 ? h2.toHex(e5) : "latest";
54422            }, function() {
54423              return false;
54424            }] }).createFunction(e4.requestManager), a2 = new m2({ name: "getGasPrice", call: "eth_gasPrice", params: 0 }).createFunction(e4.requestManager);
54425            Promise.all([i2(), a2()]).then(function(e5) {
54426              var n4 = (0, o.default)(e5, 2), i3 = n4[0], a3 = n4[1];
54427              if (("0x2" === t4.type || void 0 === t4.type) && i3 && i3.baseFeePerGas) {
54428                var s2, u3;
54429                t4.gasPrice ? (s2 = t4.gasPrice, u3 = t4.gasPrice, delete t4.gasPrice) : (s2 = t4.maxPriorityFeePerGas || "0x9502F900", u3 = t4.maxFeePerGas || h2.toHex(h2.toBN(i3.baseFeePerGas).mul(h2.toBN(2)).add(h2.toBN(s2)))), r4({ maxFeePerGas: u3, maxPriorityFeePerGas: s2 });
54430              } else {
54431                if (t4.maxPriorityFeePerGas || t4.maxFeePerGas)
54432                  throw Error("Network doesn't support eip-1559");
54433                r4({ gasPrice: a3 });
54434              }
54435            });
54436          } catch (e5) {
54437            n3(e5);
54438          }
54439        });
54440      }
54441      m2.prototype.buildCall = function() {
54442        var e4 = this, t4 = "eth_sendTransaction" === e4.call || "eth_sendRawTransaction" === e4.call, r4 = "eth_call" === e4.call, n3 = function() {
54443          var n4 = Array.prototype.slice.call(arguments), i2 = p2(!t4), o2 = e4.toPayload(n4);
54444          e4.hexFormat = false, "eth_getTransactionReceipt" === e4.call && (e4.hexFormat = o2.params.length < n4.length && "hex" === n4[n4.length - 1]);
54445          var a2 = function(n5, a3) {
54446            var s3;
54447            if (e4.handleRevert && r4 && e4.abiCoder && (!n5 && e4.isRevertReasonString(a3) ? s3 = a3.substring(10) : n5 && n5.data && (s3 = n5.data.substring(10)), s3)) {
54448              var u3 = e4.abiCoder.decodeParameter("string", "0x" + s3), c4 = "Error(String)";
54449              h2._fireError(d2.RevertInstructionError(u3, c4), i2.eventEmitter, i2.reject, o2.callback, { reason: u3, signature: c4 });
54450            } else {
54451              try {
54452                a3 = e4.formatOutput(a3);
54453              } catch (e5) {
54454                n5 = e5;
54455              }
54456              if (a3 instanceof Error && (n5 = a3), n5)
54457                return n5.error && (n5 = n5.error), h2._fireError(n5, i2.eventEmitter, i2.reject, o2.callback);
54458              o2.callback && o2.callback(null, a3), t4 ? (i2.eventEmitter.emit("transactionHash", a3), e4._confirmTransaction(i2, a3, o2)) : n5 || i2.resolve(a3);
54459            }
54460          }, s2 = function(t5) {
54461            var r5 = f2(f2({}, o2), {}, { method: "eth_sendRawTransaction", params: [t5.rawTransaction] });
54462            e4.requestManager.send(r5, a2);
54463          }, c3 = function(e5, t5) {
54464            var r5;
54465            if (t5 && t5.accounts && t5.accounts.wallet && t5.accounts.wallet.length) {
54466              if ("eth_sendTransaction" === e5.method) {
54467                var n5 = e5.params[0];
54468                if ((r5 = v2(n5 && "object" === (0, u2.default)(n5) ? n5.from : null, t5.accounts)) && r5.privateKey)
54469                  return delete (n5 = JSON.parse(JSON.stringify(n5))).from, t5.defaultChain && !n5.chain && (n5.chain = t5.defaultChain), t5.defaultHardfork && !n5.hardfork && (n5.hardfork = t5.defaultHardfork), t5.defaultCommon && !n5.common && (n5.common = t5.defaultCommon), void t5.accounts.signTransaction(n5, r5.privateKey).then(s2).cat
54469ch(function(e6) {
54470                    if ("function" == typeof i2.eventEmitter.listeners && i2.eventEmitter.listeners("error").length) {
54471                      try {
54472                        i2.eventEmitter.emit("error", e6);
54473                      } catch (e7) {
54474                      }
54475                      i2.eventEmitter.removeAllListeners(), i2.eventEmitter.catch(function() {
54476                      });
54477                    }
54478                    i2.reject(e6);
54479                  });
54480              } else if ("eth_sign" === e5.method) {
54481                var o3 = e5.params[1];
54482                if ((r5 = v2(e5.params[0], t5.accounts)) && r5.privateKey) {
54483                  var c4 = t5.accounts.sign(o3, r5.privateKey);
54484                  return e5.callback && e5.callback(null, c4.signature), void i2.resolve(c4.signature);
54485                }
54486              }
54487            }
54488            return t5.requestManager.send(e5, a2);
54489          };
54490          return t4 && o2.params[0] && "object" === (0, u2.default)(o2.params[0]) && void 0 === o2.params[0].gasPrice && (void 0 === o2.params[0].maxPriorityFeePerGas || void 0 === o2.params[0].maxFeePerGas) ? g2(e4, o2.params[0]).then(function(r5) {
54491            void 0 !== r5.gasPrice ? o2.params[0].gasPrice = r5.gasPrice : void 0 !== r5.maxPriorityFeePerGas && void 0 !== r5.maxFeePerGas && (o2.params[0].maxPriorityFeePerGas = r5.maxPriorityFeePerGas, o2.params[0].maxFeePerGas = r5.maxFeePerGas), t4 && setTimeout(function() {
54492              i2.eventEmitter.emit("sending", o2);
54493            }, 0), c3(o2, e4);
54494          }) : (t4 && setTimeout(function() {
54495            i2.eventEmitter.emit("sending", o2);
54496          }, 0), c3(o2, e4)), t4 && setTimeout(function() {
54497            i2.eventEmitter.emit("sent", o2);
54498          }, 0), i2.eventEmitter;
54499        };
54500        return n3.method = e4, n3.request = this.request.bind(this), n3;
54501      }, m2.prototype.getRevertReason = function(e4, t4) {
54502        var r4 = this;
54503        return new Promise(function(n3, i2) {
54504          new m2({ name: "call", call: "eth_call", params: 2, abiCoder: r4.abiCoder, handleRevert: true }).createFunction(r4.requestManager)(e4, h2.numberToHex(t4)).then(function() {
54505            n3(false);
54506          }).catch(function(e5) {
54507            e5.reason ? n3({ reason: e5.reason, signature: e5.signature }) : i2(e5);
54508          });
54509        });
54510      }, m2.prototype.isRevertReasonString = function(e4) {
54511        return "string" == typeof e4 && (e4.length - 2) / 2 % 32 == 4 && "0x08c379a0" === e4.substring(0, 10);
54512      }, m2.prototype.request = function() {
54513        var e4 = this.toPayload(Array.prototype.slice.call(arguments));
54514        return e4.format = this.formatOutput.bind(this), e4;
54515      }, e3.exports = m2;
54516    }, 282: (e3, t3, r3) => {
54517      var n2 = r3(8008), i = function(e4) {
54518        var t4, r4, i2 = new Promise(function() {
54519          t4 = arguments[0], r4 = arguments[1];
54520        });
54521        if (e4)
54522          return { resolve: t4, reject: r4, eventEmitter: i2 };
54523        var o = new n2();
54524        return i2._events = o._events, i2.emit = o.emit, i2.on = o.on, i2.once = o.once, i2.off = o.off, i2.listeners = o.listeners, i2.addListener = o.addListener, i2.removeListener = o.removeListener, i2.removeAllListeners = o.removeAllListeners, { resolve: t4, reject: r4, eventEmitter: i2 };
54525      };
54526      i.resolve = function(e4) {
54527        var t4 = i(true);
54528        return t4.resolve(e4), t4.eventEmitter;
54529      }, e3.exports = i;
54530    }, 5229: (e3, t3, r3) => {
54531      var n2 = r3(8155), i = r3(1314).errors, o = function(e4) {
54532        this.requestManager = e4, this.requests = [];
54533      };
54534      o.prototype.add = function(e4) {
54535        this.requests.push(e4);
54536      }, o.prototype.execute = function() {
54537        var e4 = this.requests, t4 = this._sortResponses.bind(this);
54538        this.requestManager.sendBatch(e4, function(r4, o2) {
54539          o2 = t4(o2), e4.map(function(e5, t5) {
54540            return o2[t5] || {};
54541          }
54541).forEach(function(t5, r5) {
54542            if (e4[r5].callback) {
54543              if (t5 && t5.error)
54544                return e4[r5].callback(i.ErrorResponse(t5));
54545              if (!n2.isValidResponse(t5))
54546                return e4[r5].callback(i.InvalidResponse(t5));
54547              try {
54548                e4[r5].callback(null, e4[r5].format ? e4[r5].format(t5.result) : t5.result);
54549              } catch (t6) {
54550                e4[r5].callback(t6);
54551              }
54552            }
54553          });
54554        });
54555      }, o.prototype._sortResponses = function(e4) {
54556        return (e4 || []).sort(function(e5, t4) {
54557          return e5.id - t4.id;
54558        });
54559      }, e3.exports = o;
54560    }, 9764: (e3, t3, r3) => {
54561      var n2 = r3(8847)(r3(3355)), i = null, o = "object" === ("undefined" == typeof globalThis ? "undefined" : (0, n2.default)(globalThis)) ? globalThis : void 0;
54562      if (!o)
54563        try {
54564          o = Function("return this")();
54565        } catch (e4) {
54566          o = self;
54567        }
54568      void 0 !== o.ethereum ? i = o.ethereum : void 0 !== o.web3 && o.web3.currentProvider && (o.web3.currentProvider.sendAsync && (o.web3.currentProvider.send = o.web3.currentProvider.sendAsync, delete o.web3.currentProvider.sendAsync), !o.web3.currentProvider.on && o.web3.currentProvider.connection && "ipcProviderWrapper" === o.web3.currentProvider.connection.constructor.name && (o.web3.currentProvider.on = function(e4, t4) {
54569        if ("function" != typeof t4)
54570          throw new Error("The second parameter callback must be a function.");
54571        "data" === e4 ? this.connection.on("data", function(e5) {
54572          var r4 = "";
54573          e5 = e5.toString();
54574          try {
54575            r4 = JSON.parse(e5);
54576          } catch (r5) {
54577            return t4(new Error("Couldn't parse response data" + e5));
54578          }
54579          r4.id || -1 === r4.method.indexOf("_subscription") || t4(null, r4);
54580        }) : this.connection.on(e4, t4);
54581      }), i = o.web3.currentProvider), e3.exports = i;
54582    }, 2033: (e3, t3, r3) => {
54583      var n2 = r3(8847)(r3(3355)), i = r3(5058).callbackify, o = r3(1314).errors, a = r3(8155), s = r3(5229), u2 = r3(9764), c2 = function e4(t4, r4) {
54584        this.provider = null, this.providers = e4.providers, this.setProvider(t4, r4), this.subscriptions = /* @__PURE__ */ new Map();
54585      };
54586      c2.givenProvider = u2, c2.providers = { WebsocketProvider: r3(7651), HttpProvider: r3(4565), IpcProvider: r3(2683) }, c2.prototype.setProvider = function(e4, t4) {
54587        var r4 = this;
54588        if (e4 && "string" == typeof e4 && this.providers) {
54589          if (/^http(s)?:\/\//i.test(e4))
54590            e4 = new this.providers.HttpProvider(e4);
54591          else if (/^ws(s)?:\/\//i.test(e4))
54592            e4 = new this.providers.WebsocketProvider(e4);
54593          else if (e4 && "object" === (0, n2.default)(t4) && "function" == typeof t4.connect)
54594            e4 = new this.providers.IpcProvider(e4, t4);
54595          else if (e4)
54596            throw new Error(`Can't autodetect provider for "` + e4 + '"');
54597        }
54598        this.provider && this.provider.connected && this.clearSubscriptions(), this.provider = e4 || null, this.provider && this.provider.on && ("function" == typeof e4.request ? this.provider.on("message", function(e5) {
54599          if (e5 && "eth_subscription" === e5.type && e5.data) {
54600            var t5 = e5.data;
54601            t5.subscription && r4.subscriptions.has(t5.subscription) && r4.subscriptions.get(t5.subscription).callback(null, t5.result);
54602          }
54603        }) : this.provider.on("data", function(e5, t5) {
54604          (e5 = e5 || t5).method && e5.params && e5.params.subscription && r4.subscriptions.has(e5.params.subscription) && r4.subscriptions.get(e5.params.subscription).callback(null, e5.params.result);
54605        }), this.provider.on("connect", function() {
54606          r4.subscriptions.forEach(function(e5) {
54607            e5.subscription.resubscribe();
54608          });
54609        }), this.provider.on("error", function(e5) {
54610          r4.subscriptions.forEach(function(t5) {
54611            t5.callback(e5);
54612          });
54613        }), this.provider.on("disconnect", function(e5) {
54614          r4._isCleanCloseEvent(e5) && !r4._isIpcCloseError(e5) || (r4.subscriptions.forEach(function(t5) {
54615            t5.callback(o.ConnectionCloseError(e5)), r4.subscriptions.delete(t5.subscription.id);
54616          }), r4.provider && r4.provider.emit && r4.provider.emit("error", o.ConnectionCloseError(e5))), r4.provider && r4.provider.emit && r4.provider.emit("end", e5);
54617        }));
54618      }, c2.prototype.send = function(e4, t4) {
54619        if (t4 = t4 || function() {
54620        }, !this.provider)
54621          return t4(o.InvalidProvider());
54622        var r4 = e4.method, n3 = e4.params, s2 = a.toPayload(r4, n3), u3 = this._jsonrpcResultCallback(t4, s2);
54623        if (this.provider.request)
54624          i(this.provider.request.bind(this.provider))({ method: r4, params: n3 }, t4);
54625        else if (this.provider.sendAsync)
54626          this.provider.sendAsync(s2, u3);
54627        else {
54628          if (!this.provider.send)
54629            throw new Error("Provider does not have a request or send method to use.");
54630          this.provider.send(s2, u3);
54631        }
54632      }, c2.prototype.sendBatch = function(e4, t4) {
54633        if (!this.provider)
54634          return t4(o.InvalidProvider());
54635        var r4 = a.toBatchPayload(e4);
54636        this.provider[this.provider.sendAsync ? "sendAsync" : "send"](r4, function(e5, r5) {
54637          return e5 ? t4(e5) : Array.isArray(r5) ? void t4(null, r5) : t4(o.InvalidResponse(r5));
54638        });
54639      }, c2.prototype.addSubscription = function(e4, t4) {
54640        if (!this.provider.on)
54641          throw new Error("The provider doesn't support subscriptions: " + this.provider.constructor.name);
54642        this.subscriptions.set(e4.id, { callback: t4, subscription: e4 });
54643      }, c2.prototype.removeSubscription = function(e4, t4) {
54644        if (this.subscriptions.has(e4)) {
54645          var r4 = this.subscriptions.get(e4).subscription.options.type;
54646          return this.subscriptions.delete(e4), void this.send({ method: r4 + "_unsubscribe", params: [e4] }, t4);
54647        }
54648        "function" == typeof t4 && t4(null);
54649      }, c2.prototype.clearSubscriptions = function(e4) {
54650        try {
54651          var t4 = this;
54652          return this.subscriptions.size > 0 && this.subscriptions.forEach(function(r4, n3) {
54653            e4 && "syncing" === r4.name || t4.removeSubscription(n3);
54654          }), this.provider.reset && this.provider.reset(), true;
54655        } catch (e5) {
54656          throw new Error("Error while clearing subscriptions: ".concat(e5));
54657        }
54658      }, c2.prototype._isCleanCloseEvent = function(e4) {
54659        return "object" === (0, n2.default)(e4) && ([1e3].includes(e4.code) || true === e4.wasClean);
54660      }, c2.prototype._isIpcCloseError = function(e4) {
54661        return "boolean" == typeof e4 && e4;
54662      }, c2.prototype._jsonrpcResultCallback = function(e4, t4) {
54663        return function(r4, n3) {
54664          return n3 && n3.id && t4.id !== n3.id ? e4(new Error("Wrong response id ".concat(n3.id, " (expected: ").concat(t4.id, ") in ").concat(JSON.stringify(t4)))) : r4 ? e4(r4) : n3 && n3.error ? e4(o.ErrorResponse(n3)) : a.isValidResponse(n3) ? void e4(null, n3.result) : e4(o.InvalidResponse(n3));
54665        };
54666      }, e3.exports = { Manager: c2, BatchManager: s };
54667    }, 8155: (e3) => {
54668      var t3 = { messageId: Math.floor(Math.random() * Number.MAX_SAFE_INTEGER), toPayload: function(e4, r3) {
54669        if (!e4)
54670          throw new Error('JSONRPC method should be specified for params: "' + JSON.stringify(r3) + '"!');
54671        return t3.messageId === Number.MAX_SAFE_INTEGER ? t3.messageId = Math.floor(Math.random() * Number.MAX_SAFE_INTEGER) : t3.messageId++, { jsonrpc: "2.0", id: t3.messageId, method: e4, params: r3 || [] };
54672      }, isValidResponse: function(e4) {
54673        return Array.isArray(e4) ? e4.every(t4) : t4(e4);
54674        function t4(e5) {
54675          return !(!e5 || e5.error || "2.0" !== e5.jsonrpc || "number" != typeof e5.id && "string" != typeof e5.id || void 0 === e5.result);
54676        }
54677      }, toBatchPayload: function(e4) {
54678        return e4.map(function(e5) {
54679          return t3.toPayload(e5.method, e5.params);
54680        });
54681      } };
54682      e3.exports = t3;
54683    }, 4178: (e3, t3, r3) => {
54684      var n2 = r3(2929), i = function(e4) {
54685        this.name = e4.name, this.type = e4.type, this.subscriptions = e4.subscriptions || {}, this.requestManager = null;
54686      };
54687      i.prototype.setRequestManager = function(e4) {
54688        this.requestManager = e4;
54689      }, i.prototype.attachToObject = function(e4) {
54690        var t4 = this.buildCall(), r4 = this.name.split(".");
54691        r4.length > 1 ? (e4[r4[0]] = e4[r4[0]] || {}, e4[r4[0]][r4[1]] = t4) : e4[r4[0]] = t4;
54692      }, i.prototype.buildCall = function() {
54693        var e4 = this;
54694        return function() {
54695          e4.subscriptions[arguments[0]] || console.warn("Subscription " + JSON.stringify(arguments[0]) + " doesn't exist. Subscribing anyway.");
54696          var t4 = new n2({ subscription: e4.subscriptions[arguments[0]] || {}, requestManager: e4.requestManager, type: e4.type });
54697          return t4.subscribe.apply(t4, arguments);
54698        };
54699      }, e3.exports = { subscriptions: i, subscription: n2 };
54700    }, 2929: (e3, t3, r3) => {
54701      var n2 = r3(8847)(r3(3355)), i = r3(1314).errors, o = r3(8008), a = r3(1314).formatters;
54702      function s(e4) {
54703        return e4;
54704      }
54705      function u2(e4) {
54706        o.call(this), this.id = null, this.callback = s, this.arguments = null, this.lastBlock = null, this.options = { subscription: e4.subscription, type: e4.type, requestManager: e4.requestManager };
54707      }
54708      u2.prototype = Object.create(o.prototype), u2.prototype.constructor = u2, u2.prototype._extractCallback = function(e4) {
54709        if ("function" == typeof e4[e4.length - 1])
54710          return e4.pop();
54711      }, u2.prototype._validateArgs = function(e4) {
54712        var t4 = this.options.subscription;
54713        if (t4 || (t4 = {}), t4.params || (t4.params = 0), e4.length !== t4.params)
54714          throw i.InvalidNumberOfParams(e4.length, t4.params, t4.subscriptionName);
54715      }, u2.prototype._formatInput = function(e4) {
54716        var t4 = this.options.subscription;
54717        return t4 && t4.inputFormatter ? t4.inputFormatter.map(function(t5, r4) {
54718          return t5 ? t5(e4[r4]) : e4[r4];
54719        }) : e4;
54720      }, u2.prototype._formatOutput = function(e4) {
54721        var t4 = this.options.subscription;
54722        return t4 && t4.outputFormatter && e4 ? t4.outputFormatter(e4) : e4;
54723      }, u2.prototype._toPayload = function(e4) {
54724        var t4 = [];
54725        if (this.callback = this._extractCallback(e4) || s, this.subscriptionMethod || (this.subscriptionMethod = e4.shift(), this.options.subscription.subscriptionName && (this.subscriptionMethod = this.options.subscription.subscriptionName)), this.arguments || (this.arguments = this._formatInput(e4), this._val
54725idateArgs(this.arguments), e4 = []), t4.push(this.subscriptionMethod), t4 = t4.concat(this.arguments), e4.length)
54726          throw new Error("Only a callback is allowed as parameter on an already instantiated subscription.");
54727        return { method: this.options.type + "_subscribe", params: t4 };
54728      }, u2.prototype.unsubscribe = function(e4) {
54729        this.options.requestManager.removeSubscription(this.id, e4), this.id = null, this.lastBlock = null, this.removeAllListeners();
54730      }, u2.prototype.subscribe = function() {
54731        var e4 = this, t4 = Array.prototype.slice.call(arguments), r4 = this._toPayload(t4);
54732        if (!r4)
54733          return this;
54734        if (!this.options.requestManager.provider)
54735          return setTimeout(function() {
54736            var t5 = new Error("No provider set.");
54737            e4.callback(t5, null, e4), e4.emit("error", t5);
54738          }, 0), this;
54739        if (!this.options.requestManager.provider.on)
54740          return setTimeout(function() {
54741            var t5 = new Error("The current provider doesn't support subscriptions: " + e4.options.requestManager.provider.constructor.name);
54742            e4.callback(t5, null, e4), e4.emit("error", t5);
54743          }, 0), this;
54744        if (this.lastBlock && this.options.params && "object" === (0, n2.default)(this.options.params) && (r4.params[1] = this.options.params, r4.params[1].fromBlock = a.inputBlockNumberFormatter(this.lastBlock + 1)), this.id && this.unsubscribe(), this.options.params = r4.params[1], "logs" === r4.params[0] && r4.params[1] && "object" === (0, n2.default)(r4.params[1]) && r4.params[1].hasOwnProperty("fromBlock") && isFinite(r4.params[1].fromBlock)) {
54745          var i2 = Object.assign({}, r4.params[1]);
54746          this.options.requestManager.send({ method: "eth_getLogs", params: [i2] }, function(t5, r5) {
54747            t5 ? setTimeout(function() {
54748              e4.callback(t5, null, e4), e4.emit("error", t5);
54749            }, 0) : r5.forEach(function(t6) {
54750              var r6 = e4._formatOutput(t6);
54751              e4.callback(null, r6, e4), e4.emit("data", r6);
54752            });
54753          });
54754        }
54755        return "object" === (0, n2.default)(r4.params[1]) && delete r4.params[1].fromBlock, this.options.requestManager.send(r4, function(t5, i3) {
54756          !t5 && i3 ? (e4.id = i3, e4.method = r4.params[0], e4.options.requestManager.addSubscription(e4, function(t6, r5) {
54757            t6 ? (e4.callback(t6, false, e4), e4.emit("error", t6)) : (Array.isArray(r5) || (r5 = [r5]), r5.forEach(function(t7) {
54758              var r6 = e4._formatOutput(t7);
54759              if (e4.lastBlock = r6 && "object" === (0, n2.default)(r6) ? r6.blockNumber : null, "function" == typeof e4.options.subscription.subscriptionHandler)
54760                return e4.options.subscription.subscriptionHandler.call(e4, r6);
54761              e4.emit("data", r6), e4.callback(null, r6, e4);
54762            }));
54763          }), e4.emit("connected", i3)) : setTimeout(function() {
54764            e4.callback(t5, false, e4), e4.emit("error", t5);
54765          }, 0);
54766        }), this;
54767      }, u2.prototype.resubscribe = function() {
54768        this.options.requestManager.removeSubscription(this.id), this.id = null, this.subscribe(this.callback);
54769      }, e3.exports = u2;
54770    }, 9907: (e3, t3, r3) => {
54771      var n2 = r3(1314).formatters, i = r3(3349), o = r3(8161);
54772      e3.exports = function(e4) {
54773        var t4 = function(t5) {
54774          var r4;
54775          return t5.property ? (e4[t5.property] || (e4[t5.property] = {}), r4 = e4[t5.property]) : r4 = e4, t5.methods && t5.methods.forEach(function(t6) {
54776            t6 instanceof i || (t6 = new i(t6)), t6.attachToObject(r4), t6.setRequestManager(e4._requestManager);
54777          }), e4;
54778        };
54779        return t4.formatters = n2, t4.utils = o, t4.Method = i, t4;
54780      };
54781    }, 606: (e3, t3, r3) => {
54782      var n2 = r3(2033), i = r3(9907);
54783      e3.exports = { packageInit: function(e4, t4) {
54784        if (t4 = Array.prototype.slice.call(t4), !e4)
54785          throw new Error('You need to instantiate using the "new" keyword.');
54786        Object.defineProperty(e4, "currentProvider", { get: function() {
54787          return e4._provider;
54788        }, set: function(t5) {
54789          return e4.setProvider(t5);
54790        }, enumerable: true, configurable: true }), t4[0] && t4[0]._requestManager ? e4._requestManager = t4[0]._requestManager : e4._requestManager = new n2.Manager(t4[0], t4[1]), e4.givenProvider = n2.Manager.givenProvider, e4.providers = n2.Manager.providers, e4._provider = e4._requestManager.provider, e4.setProvider || (e4.setProvider = function(t5, r4) {
54791          return e4._requestManager.setProvider(t5, r4), e4._provider = e4._requestManager.provider, true;
54792        }), e4.setRequestManager = function(t5) {
54793          e4._requestManager = t5, e4._provider = t5.provider;
54794        }, e4.BatchRequest = n2.BatchManager.bind(null, e4._requestManager), e4.extend = i(e4);
54795      }, addProviders: function(e4) {
54796        e4.givenProvider = n2.Manager.givenProvider, e4.providers = n2.Manager.providers;
54797      } };
54798    }, 9901: (e3, t3, r3) => {
54799      var n2 = r3(8847)(r3(3355)), i = r3(9033).Buffer, o = r3(8161), a = r3(2914).RQ, s = r3(2914)._R, u2 = new a(function(e4, t4) {
54800        return !e4.match(/^u?int/) || Array.isArray(t4) || t4 && "object" === (0, n2.default)(t4) && "BN" === t4.constructor.name ? t4 : t4.toString();
54801      });
54802      function c2() {
54803      }
54804      var f2 = function() {
54805      };
54806      f2.prototype.encodeFunctionSignature = function(e4) {
54807        return ("function" == typeof e4 || "object" === (0, n2.default)(e4) && e4) && (e4 = o._jsonInterfaceMethodToString(e4)), o.sha3(e4).slice(0, 10);
54808      }, f2.prototype.encodeEventSignature = function(e4) {
54809        return ("function" == typeof e4 || "object" === (0, n2.default)(e4) && e4) && (e4 = o._jsonInterfaceMethodToString(e4)), o.sha3(e4);
54810      }, f2.prototype.encodeParameter = function(e4, t4) {
54811        return this.encodeParameters([e4], [t4]);
54812      }, f2.prototype.encodeParameters = function(e4, t4) {
54813        var r4 = this;
54814        return e4 = r4.mapTypes(e4), t4 = t4.map(function(t5, i2) {
54815          var o2 = e4[i2];
54816          return "object" === (0, n2.default)(o2) && o2.type && (o2 = o2.type), t5 = r4.formatParam(o2, t5), "string" == typeof o2 && o2.includes("tuple") && function e5(t6, n3) {
54817            if ("array" === t6.name) {
54818              if (!t6.type.match(/\[(\d+)\]/))
54819                return n3.map(function(r5) {
54820                  return e5(u2._getCoder(s.from(t6.type.replace("[]", ""))), r5);
54821                });
54822              var i3 = parseInt(t6.type.match(/\[(\d+)\]/)[1]);
54823              if (n3.length !== i3)
54824                throw new Error("Array length does not matches with the given input");
54825              return n3.map(function(r5) {
54826                return e5(u2._getCoder(s.from(t6.type.replace(/\[\d+\]/, ""))), r5);
54827              });
54828            }
54829            t6.coders.forEach(function(t7, i4) {
54830              "tuple" === t7.name ? e5(t7, n3[i4]) : n3[i4] = r4.formatParam(t7.name, n3[i4]);
54831            });
54832          }(u2._getCoder(s.from(o2)), t5), t5;
54833        }), u2.encode(e4, t4);
54834      }, f2.prototype.mapTypes = function(e4) {
54835        var t4 = this, r4 = [];
54836        return e4.forEach(function(e5) {
54837          if ("object" === (0, n2.default)(e5) && "function" === e5.type && (e5 = Object.assign({}, e5, { type: "bytes24" })), t4.isSimplifiedStructFormat(e5)) {
54838            var i2 = Object.keys(e5)[0];
54839            r4.push(Object.assign(t4.mapStructNameAndType(i2), { components: t4.mapStructToCoderFormat(e5[i2]) }));
54840          } else
54841            r4.push(e5);
54842        }), r4;
54843      }, f2.prototype.isSimplifiedStructFormat = function(e4) {
54844        return "object" === (0, n2.default)(e4) && void 0 === e4.components && void 0 === e4.name;
54845      }, f2.prototype.mapStructNameAndType = function(e4) {
54846        var t4 = "tuple";
54847        return e4.indexOf("[]") > -1 && (t4 = "tuple[]", e4 = e4.slice(0, -2)), { type: t4, name: e4 };
54848      }, f2.prototype.mapStructToCoderFormat = function(e4) {
54849        var t4 = this, r4 = [];
54850        return Object.keys(e4).forEach(function(i2) {
54851          "object" !== (0, n2.default)(e4[i2]) ? r4.push({ name: i2, type: e4[i2] }) : r4.push(Object.assign(t4.mapStructNameAndType(i2), { components: t4.mapStructToCoderFormat(e4[i2]) }));
54852        }), r4;
54853      }, f2.prototype.formatParam = function(e4, t4) {
54854        var r4 = this, n3 = new RegExp(/^bytes([0-9]*)$/), a2 = new RegExp(/^bytes([0-9]*)\[\]$/), s2 = new RegExp(/^(u?int)([0-9]*)$/), u3 = new RegExp(/^(u?int)([0-9]*)\[\]$/);
54855        if (o.isBN(t4) || o.isBigNumber(t4))
54856          return t4.toString(10);
54857        if (e4.match(a2) || e4.match(u3))
54858          return t4.map(function(t5) {
54859            return r4.formatParam(e4.replace("[]", ""), t5);
54860          });
54861        var c3 = e4.match(s2);
54862        if (c3) {
54863          var f3 = parseInt(c3[2] || "256");
54864          f3 / 8 < t4.length && (t4 = o.leftPad(t4, f3));
54865        }
54866        if (c3 = e4.match(n3)) {
54867          i.isBuffer(t4) && (t4 = o.toHex(t4));
54868          var d3 = parseInt(c3[1]);
54869          if (d3) {
54870            var l2 = 2 * d3;
54871            "0x" === t4.substring(0, 2) && (l2 += 2), t4.length < l2 && (t4 = o.rightPad(t4, 2 * d3));
54872          }
54873          t4.length % 2 == 1 && (t4 = "0x0" + t4.substring(2));
54874        }
54875        return t4;
54876      }, f2.prototype.encodeFunctionCall = function(e4, t4) {
54877        return this.encodeFunctionSignature(e4) + this.encodeParameters(e4.inputs, t4).replace("0x", "");
54878      }, f2.prototype.decodeParameter = function(e4, t4) {
54879        return this.decodeParameters([e4], t4)[0];
54880      }, f2.prototype.decodeParameters = function(e4, t4) {
54881        return this.decodeParametersWith(e4, t4, false);
54882      }, f2.prototype.decodeParametersWith = function(e4, t4, r4) {
54883        if (e4.length > 0 && (!t4 || "0x" === t4 || "0X" === t4))
54884          throw new Error("Returned values aren't valid, did it run Out of Gas? You might also see this error if you are not using the correct ABI for the contract you are retrieving data from, requesting data from a block number that does not exist, or querying a node which is not fully synced.");
54885        var i2 = u2.decode(this.mapTypes(e4), "0x" + t4.replace(/0x/i, ""), r4), o2 = new c2();
54886        return o2.__length__ = 0, e4.forEach(function(e5, t5) {
54887          var r5 = i2[o2.__length__], a2 = "object" === (0, n2.default)(e5) && e5.type && "string" === e5.type;
54888          r5 = "0x" !== r5 || a2 || "string" == typeof e5 && "string" === e5 ? r5 : null, o2[t5] = r5, ("function" == typeof e5 || e5 && "object" === (0, n2.default)(e5)) && e5.name && (o2[e5.name] = r5), o2.__length__++;
54889        }), o2;
54890      }, f2.prototype.decodeLog = function(e4, t4, r4) {
54891        var n3 = this;
54892        r4 = Array.isArray(r4) ? r4 : [r4], t4 = t4 || "";
54893        var i2 = [], o2 = [], a2 = 0;
54894        e4.forEach(function(e5, t5) {
54895          e5.indexed ? (o2[t5] = ["bool", "int", "uint", "address", "fixed", "ufixed"].find(function(t6) {
54896            return -1 !== e5.type.indexOf(t6);
54897          }) ? n3.decodeParameter(e5.type, r4[a2]) : r4[a2], a2++) : i2[t5] = e5;
54898        });
54899        var s2 = t4, u3 = s2 ? this.decodeParametersWith(i2, s2, true) : [], f3 = new c2();
54900        return f3.__length__ = 0, e4.forEach(function(e5, t5) {
54901          f3[t5] = "string" === e5.type ? "" : null, void 0 !== u3[t5] && (f3[t5] = u3[t5]), void 0 !== o2[t5] && (f3[t5] = o2[t5]), e5.name && (f3[e5.name] = f3[t5]), f3.__length__++;
54902        }), f3;
54903      };
54904      var d2 = new f2();
54905      e3.exports = d2;
54906    }, 9819: (e3, t3, r3) => {
54907      var n2 = r3(9033).Buffer, i = r3(8847), o = i(r3(3106)), a = i(r3(3355)), s = i(r3(775)), u2 = i(r3(4519));
54908      function c2(e4, t4) {
54909        var r4 = Object.keys(e4);
54910        if (Object.getOwnPropertySymbols) {
54911          var n3 = Object.getOwnPropertySymbols(e4);
54912          t4 && (n3 = n3.filter(function(t5) {
54913            return Object.getOwnPropertyDescriptor(e4, t5).enumerable;
54914          }
54914)), r4.push.apply(r4, n3);
54915        }
54916        return r4;
54917      }
54918      function f2(e4) {
54919        for (var t4 = 1; t4 < arguments.length; t4++) {
54920          var r4 = null != arguments[t4] ? arguments[t4] : {};
54921          t4 % 2 ? c2(Object(r4), true).forEach(function(t5) {
54922            (0, s.default)(e4, t5, r4[t5]);
54923          }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e4, Object.getOwnPropertyDescriptors(r4)) : c2(Object(r4)).forEach(function(t5) {
54924            Object.defineProperty(e4, t5, Object.getOwnPropertyDescriptor(r4, t5));
54925          });
54926        }
54927        return e4;
54928      }
54929      function d2(e4, t4) {
54930        (null == t4 || t4 > e4.length) && (t4 = e4.length);
54931        for (var r4 = 0, n3 = new Array(t4); r4 < t4; r4++)
54932          n3[r4] = e4[r4];
54933        return n3;
54934      }
54935      var l2 = r3(606), h2 = r3(3349), p2 = r3(3058), b2 = r3(4293), y2 = r3(7799), m2 = r3(2679), v2 = r3(8161), g2 = r3(1314), w2 = r3(2339).TransactionFactory, A2 = r3(3863).default, k2 = r3(3863).Hardfork, _ = r3(3062), S2 = function(e4) {
54936        return null == e4;
54937      }, x2 = function(e4) {
54938        return null != e4;
54939      }, E2 = function() {
54940        var e4 = this;
54941        l2.packageInit(this, arguments), delete this.BatchRequest, delete this.extend;
54942        var t4 = [new h2({ name: "getNetworkId", call: "net_version", params: 0, outputFormatter: parseInt }), new h2({ name: "getChainId", call: "eth_chainId", params: 0, outputFormatter: v2.hexToNumber }), new h2({ name: "getGasPrice", call: "eth_gasPrice", params: 0 }), new h2({ name: "getTransactionCount", call: "eth_getTransactionCount", params: 2, inputFormatter: [function(e5) {
54943          if (v2.isAddress(e5))
54944            return e5;
54945          throw new Error("Address " + e5 + ' is not a valid address to get the "transactionCount".');
54946        }, function() {
54947          return "latest";
54948        }] }), new h2({ name: "getBlockByNumber", call: "eth_getBlockByNumber", params: 2, inputFormatter: [function(e5) {
54949          return e5 ? v2.toHex(e5) : "latest";
54950        }, function() {
54951          return false;
54952        }] })];
54953        this._ethereumCall = {}, t4.forEach(function(t5) {
54954          t5.attachToObject(e4._ethereumCall), t5.setRequestManager(e4._requestManager);
54955        }), this.wallet = new O2(this);
54956      };
54957      function P2(e4, t4) {
54958        return new Promise(function(r4, n3) {
54959          try {
54960            (void 0 === t4.type || t4.type < "0x2") && void 0 !== t4.gasPrice ? r4({ gasPrice: t4.gasPrice }) : "0x2" === t4.type && t4.maxFeePerGas && t4.maxPriorityFeePerGas ? r4({ maxFeePerGas: t4.maxFeePerGas, maxPriorityFeePerGas: t4.maxPriorityFeePerGas }) : Promise.all([e4._ethereumCall.getBlockByNumber(), e4._ethereumCall.getGasPrice()]).then(function(e5) {
54961              var n4 = (0, u2.default)(e5, 2), i2 = n4[0], o2 = n4[1];
54962              if ("0x2" === t4.type && i2 && i2.baseFeePerGas) {
54963                var a2, s2;
54964                t4.gasPrice ? (a2 = t4.gasPrice, s2 = t4.gasPrice, delete t4.gasPrice) : (a2 = t4.maxPriorityFeePerGas || "0x9502F900", s2 = t4.maxFeePerGas || v2.toHex(v2.toBN(i2.baseFeePerGas).mul(v2.toBN(2)).add(v2.toBN(a2)))), r4({ maxFeePerGas: s2, maxPriorityFeePerGas: a2 });
54965              } else {
54966                if (t4.maxPriorityFeePerGas || t4.maxFeePerGas)
54967                  throw Error("Network doesn't support eip-1559");
54968                r4({ gasPrice: o2 });
54969              }
54970            }).catch(function(e5) {
54971              n3(e5);
54972            });
54973          } catch (e5) {
54974            n3(e5);
54975          }
54976        });
54977      }
54978      function O2(e4) {
54979        this._accounts = e4, this.length = 0, this.defaultKeyName = "web3js_wallet";
54980      }
54981      E2.prototype._addAccountFunctions = function(e4) {
54982        var t4 = this;
54983        return e4.signTransaction = function(r4, n3) {
54984          return t4.signTransaction(r4, e4.privateKey, n3);
54985        }, e4.sign = function(r4) {
54986          return t4.sign(r4, e4.privateKey);
54987        }, e4.encrypt = function(r4, n3) {
54988          return t4.encrypt(e4.privateKey, r4, n3);
54989        }, e4;
54990      }, E2.prototype.create = function(e4) {
54991        return this._addAccountFunctions(p2.create(e4 || v2.randomHex(32)));
54992      }, E2.prototype.privateKeyToAccount = function(e4, t4) {
54993        if (e4.startsWith("0x") || (e4 = "0x" + e4), !t4 && 66 !== e4.length)
54994          throw new Error("Private key must be 32 bytes long");
54995        return this._addAccountFunctions(p2.fromPrivate(e4));
54996      }, E2.prototype.signTransaction = function(e4, t4, r4) {
54997        var i2 = this, o2 = false, a2 = {}, s2 = !(!e4 || !(e4.chain && e4.hardfork || e4.common));
54998        if (r4 = r4 || function() {
54999        }, !e4)
55000          return o2 = new Error("No transaction object given!"), r4(o2), Promise.reject(o2);
55001        if (x2(e4.common) && S2(e4.common.customChain))
55002          return o2 = new Error("If tx.common is provided it must have tx.common.customChain"), r4(o2), Promise.reject(o2);
55003        if (x2(e4.common) && S2(e4.common.customChain.chainId))
55004          return o2 = new Error("If tx.common is provided it must have tx.common.customChain and tx.common.customChain.chainId"), r4(o2), Promise.reject(o2);
55005        if (x2(e4.common) && x2(e4.common.customChain.chainId) && x2(e4.chainId) && e4.chainId !== e4.common.customChain.chainId)
55006          return o2 = new Error("Chain Id doesnt match in tx.chainId tx.common.customChain.chainId"), r4(o2), Promise.reject(o2);
55007        function c3(e5) {
55008          var i3 = function(e6) {
55009            if (e6.common && e6.chain && e6.hardfork)
55010              return new Error("Please provide the @ethereumjs/common object or the chain and hardfork property but not all together.");
55011            if (e6.chain && !e6.hardfork || e6.hardfork && !e6.chain)
55012              return new Error('When specifying chain and hardfork, both values must be defined. Received "chain": ' + e6.chain + ', "hardfork": ' + e6.hardfork);
55013            if (!(e6.gas || e6.gasLimit || e6.maxPriorityFeePerGas || e6.maxFeePerGas))
55014              return new Error('"gas" is missing');
55015            if (e6.gas && e6.gasPrice) {
55016              if (e6.gas < 0 || e6.gasPrice < 0)
55017                return new Error("Gas or gasPrice is lower than 0");
55018            } else if (e6.maxPriorityFeePerGas < 0 || e6.maxFeePerGas < 0)
55019              return new Error("maxPriorityFeePerGas or maxFeePerGas is lower than 0");
55020            return e6.nonce < 0 || e6.chainId < 0 ? new Error("Nonce or chainId is lower than 0") : void 0;
55021          }(e5);
55022          if (i3)
55023            return r4(i3), Promise.reject(i3);
55024          try {
55025            var o3 = g2.formatters.inputCallFormatter(Object.assign({}, e5));
55026            o3.data = o3.data || "0x", o3.value = o3.value || "0x", o3.gasLim
55026it = o3.gasLimit || o3.gas, "0x1" === o3.type && void 0 === o3.accessList && (o3.accessList = []), s2 ? (o3.common && (a2.common = A2.forCustomChain(o3.common.baseChain || "mainnet", { name: o3.common.customChain.name || "custom-network", networkId: o3.common.customChain.networkId, chainId: o3.common.customChain.chainId }, o3.common.hardfork || k2.London), delete o3.common), o3.chain && (a2.chain = o3.chain, delete o3.chain), o3.hardfork && (a2.hardfork = o3.hardfork, delete o3.hardfork)) : (a2.common = A2.forCustomChain("mainnet", { name: "custom-network", networkId: o3.networkId, chainId: o3.chainId }, o3.hardfork || k2.London), delete o3.networkId), t4.startsWith("0x") && (t4 = t4.substring(2));
55027            var u3 = w2.fromTxData(o3, a2).sign(n2.from(t4, "hex")), c4 = u3.validate(true);
55028            if (c4.length > 0) {
55029              var f3, l3 = "Signer Error: ", h3 = function(e6, t5) {
55030                var r5 = "undefined" != typeof Symbol && e6[Symbol.iterator] || e6["@@iterator"];
55031                if (!r5) {
55032                  if (Array.isArray(e6) || (r5 = function(e7, t6) {
55033                    if (e7) {
55034                      if ("string" == typeof e7)
55035                        return d2(e7, t6);
55036                      var r6 = Object.prototype.toString.call(e7).slice(8, -1);
55037                      return "Object" === r6 && e7.constructor && (r6 = e7.constructor.name), "Map" === r6 || "Set" === r6 ? Array.from(e7) : "Arguments" === r6 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r6) ? d2(e7, t6) : void 0;
55038                    }
55039                  }(e6)) || t5 && e6 && "number" == typeof e6.length) {
55040                    r5 && (e6 = r5);
55041                    var n3 = 0, i4 = function() {
55042                    };
55043                    return { s: i4, n: function() {
55044                      return n3 >= e6.length ? { done: true } : { done: false, value: e6[n3++] };
55045                    }, e: function(e7) {
55046                      throw e7;
55047                    }, f: i4 };
55048                  }
55049                  throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
55050                }
55051                var o4, a3 = true, s3 = false;
55052                return { s: function() {
55053                  r5 = r5.call(e6);
55054                }, n: function() {
55055                  var e7 = r5.next();
55056                  return a3 = e7.done, e7;
55057                }, e: function(e7) {
55058                  s3 = true, o4 = e7;
55059                }, f: function() {
55060                  try {
55061                    a3 || null == r5.return || r5.return();
55062                  } finally {
55063                    if (s3)
55064                      throw o4;
55065                  }
55066                } };
55067              }(c4);
55068              try {
55069                for (h3.s(); !(f3 = h3.n()).done; ) {
55070                  var p3 = f3.value;
55071                  l3 += "".concat(l3, " ").concat(p3, ".");
55072                }
55073              } catch (e6) {
55074                h3.e(e6);
55075              } finally {
55076                h3.f();
55077              }
55078              throw new Error(l3);
55079            }
55080            var b3 = "0x" + u3.serialize().toString("hex"), y3 = v2.keccak256(b3), m3 = { messageHash: "0x" + n2.from(u3.getMessageToSign(true)).toString("hex"), v: "0x" + u3.v.toString("hex"), r: "0x" + u3.r.toString("hex"), s: "0x" + u3.s.toString("hex"), rawTransaction: b3, transactionHash: y3 };
55081            return r4(null, m3), m3;
55082          } catch (e6) {
55083            return r4(e6), Promise.reject(e6);
55084          }
55085        }
55086        return e4.type = function(e5) {
55087          var t5, r5 = void 0 !== e5.maxFeePerGas || void 0 !== e5.maxPriorityFeePerGas;
55088          if (void 0 !== e5.type ? t5 = v2.toHex(e5.type) : void 0 === e5.type && r5 && (t5 = "0x2"), void 0 !== e5.gasPrice && ("0x2" === t5 || r5))
55089            throw Error("eip-1559 transactions don't support gasPrice");
55090          if (("0x1" === t5 || "0x0" === t5) && r5)
55091            throw Error("pre-eip-1559 transaction don't support maxFeePerGas/maxPriorityFeePerGas");
55092          return r5 || e5.common && e5.common.hardfork && e5.common.hardfork.toLowerCase() === k2.London || e5.hardfork && e5.hardfork.toLowerCase() === k2.London ? t5 = "0x2" : (e5.accessList || e5.common && e5.common.hardfork && e5.common.hardfork.toLowerCase() === k2.Berlin || e5.hardfork && e5.hardfork.toLowerCase() === k2.Berlin) && (t5 = "0x1"), t5;
55093        }(e4), void 0 !== e4.nonce && void 0 !== e4.chainId && (void 0 !== e4.gasPrice || void 0 !== e4.maxFeePerGas && void 0 !== e4.maxPriorityFeePerGas) && s2 ? Promise.resolve(c3(e4)) : Promise.all([S2(e4.common) || S2(e4.common.customChain.chainId) ? S2(e4.chainId) ? i2._ethereumCall.getChainId() : e4.chainId : void 0, S2(e4.nonce) ? i2._ethereumCall.getTransactionCount(i2.privateKeyToAccount(t4).address) : e4.nonce, S2(s2) ? i2._ethereumCall.getNetworkId() : 1, P2(i2, e4)]).then(function(t5) {
55094          var r5 = (0, u2.default)(t5, 4), n3 = r5[0], i3 = r5[1], o3 = r5[2], a3 = r5[3];
55095          if (S2(n3) && S2(e4.common) && S2(e4.common.customChain.chainId) || S2(i3) || S2(o3) || S2(a3))
55096            throw new Error(`One of the values "chainId", "networkId", "gasPrice", or "nonce" couldn't be fetched: ` + JSON.stringify(t5));
55097          return c3(f2(f2(f2({}, e4), S2(e4.common) || S2(e4.common.customChain.chainId) ? { chainId: n3 } : {}), {}, { nonce: i3, networkId: o3 }, a3));
55098        });
55099      }, E2.prototype.recoverTransaction = function(e4) {
55100        var t4 = n2.from(e4.slice(2), "hex"), r4 = w2.fromSerializedData(t4);
55101        return v2.toChecksumAddress(r4.getSenderAddress().toString("hex"));
55102      }, E2.prototype.hashMessage = function(e4) {
55103        var t4 = v2.isHexStrict(e4) ? e4 : v2.utf8ToHex(e4), r4 = v2.hexToBytes(t4), i2 = n2.from(r4), o2 = "�Ethereum Signed Message:\n" + r4.length, a2 = n2.from(o2), s2 = n2.concat([a2, i2]);
55104        return _.bufferToHex(_.keccak256(s2));
55105      }, E2.prototype.sign = function(e4, t4) {
55106        if (t4.startsWith("0x") || (t4 = "0x" + t4), 66 !== t4.length)
55107          throw new Error("Private key must be 32 bytes long");
55108        var r4 = this.hashMessage(e4), n3 = p2.sign(r4, t4), i2 = p2.decodeSignature(n3);
55109        return { message: e4, messageHash: r4, v: i2[0], r: i2[1], s: i2[2], signature: n3 };
55110      }, E2.prototype.recover = function(e4, t4, r4) {
55111        var n3 = [].slice.apply(arguments);
55112        return e4 && "object" === (0, a.default)(e4) ? this.recover(e4.messageHash, p2.encodeSignature([e4.v, e4.r, e4.s]), true) : (r4 || (e4 = this.hashMessage(e4)), n3.length >= 4 ? (r4 = "boolean" == typeof (r4 = n3.slice(-1)[0]) && !!r4, this.recover(e4, p2.encodeSignature(n3.slice(1, 4)), r4)) : p2.recover(e4, t4));
55113      }, E2.prototype.decrypt = function(e4, t4, r4) {
55114        if ("string" != typeof t4)
55115          throw new Error("No password given.");
55116        var i2, s2, u3 = e4 && "object" === (0, a.default)(e4) ? e4 : JSON.parse(r4 ? e4.toLowerCase() : e4);
55117        if (3 !== u3.version)
55118          throw new Error("Not a valid V3 wallet");
55119        if ("scrypt" === u3.crypto.kdf)
55120          s2 = u3.crypto.kdfparams, i2 = y2.syncScrypt(n2.from(t4), n2.from(s2.salt, "hex"), s2.n, s2.r, s2.p, s2.dklen);
55121        else {
55122          if ("pbkdf2" !== u3.crypto.kdf)
55123            throw new Error("Unsupported key derivation scheme");
55124          if ("hmac-sha256" !== (s2 = u3.crypto.kdfparams).prf)
55125            throw new Error("Unsupported parameters to PBKDF2");
55126          i2 = b2.pbkdf2Sync(n2.from(t4), n2.from(s2.salt, "hex"), s2.c, s2.dklen, "sha256");
55127        }
55128        var c3 = n2.from(u3.crypto.ciphertext, "hex");
55129        if (v2.sha3(n2.from([].concat((0, o.default)(i2.slice(16, 32)), (0, o.default)(c3)))).replace("0x", "") !== u3.crypto.mac)
55130          throw new Error("Key derivation failed - possibly wrong password");
55131        var f3 = b2.createDecipheriv(u3.crypto.cipher, i2.slice(0, 16), n2.from(u3.crypto.cipherparams.iv, "hex")), d3 = "0x" + n2.from([].concat((0, o.default)(f3.update(c3)), (0, o.default)(f3.final()))).toString("hex");
55132        return this.privateKeyToAccount(d3, true);
55133      }, E2.prototype.encrypt = function(e4, t4, r4) {
55134        var i2, a2 = this.privateKeyToAccount(e4, true), s2 = (r4 = r4 || {}).salt || b2.randomBytes(32), u3 = r4.iv || b2.randomBytes(16), c3 = r4.kdf || "scrypt", f3 = { dklen: r4.dklen || 32, salt: s2.toString("hex") };
55135        if ("pbkdf2" === c3)
55136          f3.c = r4.c || 262144, f3.prf = "hmac-sha256", i2 = b2.pbkdf2Sync(n2.from(t4), n2.from(f3.salt, "hex"), f3.c, f3.dklen, "sha256");
55137        else {
55138          if ("scrypt" !== c3)
55139            throw new Error("Unsupported kdf");
55140          f3.n = r4.n || 8192, f3.r = r4.r || 8, f3.p = r4.p || 1, i2 = y2.syncScrypt(n2.from(t4), n2.from(f3.salt, "hex"), f3.n, f3.r, f3.p, f3.dklen);
55141        }
55142        var d3 = b2.createCipheriv(r4.cipher || "aes-128-ctr", i2.slice(0, 16), u3);
55143        if (!d3)
55144          throw new Error("Unsupported cipher");
55145        var l3 = n2.from([].concat((0, o.default)(d3.update(n2.from(a2.privateKey.replace("0x", ""), "hex"))), (0, o.default)(d3.final()))), h3 = v2.sha3(n2.from([].concat((0, o.default)(i2.slice(16, 32)), (0, o.default)(l3)))).replace("0x", "");
55146        return { version: 3, id: m2.v4({ random: r4.uuid || b2.randomBytes(16) }), address: a2.address.toLowerCase().replace("0x", ""), crypto: { ciphertext: l3.toString("hex"), cipherparams: { iv: u3.toString("hex") }, cipher: r4.cipher || "aes-128-ctr", kdf: c3, kdfparams: f3, mac: h3.toString("hex") } };
55147      }, O2.prototype._findSafeIndex = function(e4) {
55148        return e4 = e4 || 0, this.hasOwnProperty(e4) ? this._findSafeIndex(e4 + 1) : e4;
55149      }, O2.prototype._currentIndexes = function() {
55150        return Object.keys(this).map(function(e4) {
55151          return parseInt(e4);
55152        }).filter(function(e4) {
55153          return e4 < 9e20;
55154        });
55155      }, O2.prototype.create = function(e4, t4) {
55156        for (var r4 = 0; r4 < e4; ++r4)
55157          this.add(this._accounts.create(t4).privateKey);
55158        return this;
55159      }, O2.prototype.add = function(e4) {
55160        return "string" == typeof e4 && (e4 = this._accounts.privateKeyToAccount(e4)), this[e4.address] ? this[e4.address] : ((e4 = this._accounts.privateKeyToAccount(e4.privateKey)).index = this._findSafeIndex(), this[e4.index] = e4, this[e4.address] = e4, this[e4.address.toLowerCase()] = e4, this.length++, e4);
55161      }, O2.prototype.remove = function(e4) {
55162        var t4 = this[e4];
55163        return !(!t4 || !t4.address || (this[t4.address].privateKey = null, delete this[t4.address], this[t4.address.toLowerCase()] && (this[t4.address.toLowerCase()].privateKey = null, delete this[t4.address.toLowerCase()]), this[t4.index].privateKey = null, delete this[t4.index], this.length--, 0));
55164      }, O2.prototype.clear = function() {
55165        var e4 = this;
55166        return this._currentIndexes().forEach(function(t4) {
55167          e4.remove(t4);
55168        }), this;
55169      }, O2.prototype.encrypt = function(e4, t4) {
55170        var r4 = this;
55171        return this._currentIndexes().map(function(n3) {
55172          return r4[n3].encrypt(e4, t4);
55173        });
55174      }, O2.prototype.decrypt = function(e4, t4) {
55175        var r4 = this;
55176        return e4.forEach(function(e5) {
55177          var n3 = r4._accounts.decrypt(e5, t4);
55178          if (!n3)
55179            throw new Error("Couldn't decrypt accounts. Password wrong?");
55180          r4.add(n3);
55181        }), this;
55182      }, O2.prototype.save = function(e4, t4) {
55183        return localStorage.setItem(t4 || this.defaultKeyName, JSON.stringify(this.encrypt(e4))), true;
55184      }, O2.prototype.load = function(e4, t4) {
55185        var r4 = localStorage.getItem(t4 || this.defaultKeyName);
55186        if (r4)
55187          try {
55188            r4 = JSON.parse(r4);
55189          } catch (e5) {
55190          }
55191        return this.decrypt(r4 || [], e4);
55192      }, function(e4) {
55193        var t4;
55194        try {
55195          t4 = self.localStorage;
55196          var r4 = "__storage_test__";
55197          return t4.setItem(r4, r4), t4.removeItem(r4), true;
55198        } catch (e5) {
55199          return e5 && (22 === e5.code || 1014 === e5.code || "QuotaExceededError" === e5.name || "NS_ERROR_DOM_QUOTA_REACHED" === e5.name) && t4 && 0 !== t4.length;
55200        }
55201      }() || (delete O2.prototype.save, delete O2.prototype.load), e3.exports = E2;
55202    }, 8164: (e3, t3, r3) => {
55203      var n2 = r3(8847), i = n2(r3(775)), o = n2(r3(3355));
55204      function a(e4, t4) {
55205        var r4 = Object.keys(e4);
55206        if (Object.getOwnPropertySymbols) {
55207          var n3 = Object.getOwnPropertySymbols(e4);
55208          t4 && (n3 = n3.filter(function(t5) {
55209            return Object.getOwnPropertyDescriptor(e4, t5).enumerable;
55210          })), r4.push.apply(r4, n3);
55211        }
55212        return r4;
55213      }
55214      function s(e4) {
55215        for (var t4 = 1; t4 < arguments.length; t4++) {
55216          var r4 = null != arguments[t4] ? arguments[t4] : {};
55217          t4 % 2 ? a(Object(r4), true).forEach(function(t5) {
55218            (0, i.default)(e4, t5, r4[t5]);
55219          }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e4, Object.getOwnPropertyDescriptors(r4)) : a(Object(r4)).forEach(function(t5) {
55220            Object.defineProperty(e4, t5, Object.getOwnPropertyDescriptor(r4, t5));
55221          });
55222        }
55223        return e4;
55224      }
55225      var u2 = r3(606), c2 = r3(3349), f2 = r3(8161), d2 = r3(4178).subscription, l2 = r3(1314).formatters, h2 = r3(1314).errors, p2 = r3(282), b2 = r3(9901), y2 = function e4(t4, r4, n3) {
55226        var i2 = this, a2 = Array.prototype.slice.call(arguments);
55227        if (!(this instanceof e4))
55228          throw new Error('Please use the "new" keyword to instantiate a web3.eth.Contract() object!');
55229        if (this.setProvider = function() {
55230          u2.packageInit(i2, arguments), i2.clearSubscriptions = i2._requestManager.clearSubscriptions;
55231        }, u2.packageInit(this, [this.constructor]), this.clearSubscriptions = this._requestManager.clearSubscriptions, !t4 || !Array.isArray(t4))
55232          throw h2.ContractMissingABIError();
55233        this.options = {};
55234        var c3 = a2[a2.length - 1];
55235        c3 && "object" === (0, o.default)(c3) && !Array.isArray(c3) && (n3 = c3, this.options = s(s({}, this.options), this._getOrSetDefaultOptions(n3)), r4 && "object" === (0, o.default)(r4) && (r4 = null)), Object.defineProperty(this.options, "address", { set: function(e5) {
55236          e5 && (i2._address = f2.toChecksumAddress(l2.inputAddressFormatter(e5)));
55237        }, get: function() {
55238          return i2._address;
55239        }, enumerable: true }), Object.defineProperty(this.options, "jsonInterface", { set: function(e5) {
55240          return i2.methods = {}, i2.events = {}, i2._jsonInterface = e5.map(function(e6) {
55241            var t5, r5;
55242            if (e6.constant = "view" === e6.stateMutability || "pure" === e6.stateMutability || e6.constant, e6.payable = "payable" === e6.stateMutability || e6.payable, e6.name && (r5 = f2._jsonInterfaceMethodToString(e6)), "function" === e6.type) {
55243              if (e6.signature = b2.encodeFunctionSignature(r5), t5 = i2._createTxObject.bind({ method: e6, parent: i2 }), i2.methods[e6.name]) {
55244                var n4 = i2._createTxObject.bind({ method: e6, parent: i2, nextMethod: i2.methods[e6.name] });
55245                i2.methods[e6.name] = n4;
55246              } else
55247                i2.methods[e6.name] = t5;
55248              i2.methods[e6.signature] = t5, i2.methods[r5] = t5;
55249            } else if ("event" === e6.type) {
55250              e6.signature = b2.encodeEventSignature(r5);
55251              var o2 = i2._on.bind(i2, e6.signature);
55252              i2.events[e6.name] && "bound " !== i2.events[e6.name].name || (i2.events[e6.name] = o2), i2.events[e6.signature] = o2, i2.events[r5] = o2;
55253            }
55254            return e6;
55255          }), i2.events.allEvents = i2._on.bind(i2, "allevents"), i2._jsonInterface;
55256        }, get: function() {
55257          return i2._jsonInterface;
55258        }, enumerable: true });
55259        var d3 = this.constructor.defaultAccount, p3 = this.constructor.defaultBlock || "latest";
55260        Object.defineProperty(this, "handleRevert", { get: function() {
55261          return false === i2.options.handleRevert || true === i2.options.handleRevert ? i2.options.handleRevert : this.constructor.handleRevert;
55262        }, set: function(e5) {
55263          i2.options.handleRevert = e5;
55264        }, enumerable: true }), Object.defineProperty(this, "defaultCommon", { get: function() {
55265          return i2.options.common || this.constructor.defaultCommon;
55266        }, set: function(e5) {
55267          i2.options.common = e5;
55268        }, enumerable: true }), Object.defineProperty(this, "defaultHardfork", { get: function() {
55269          return i2.options.hardfork || this.constructor.defaultHardfork;
55270        }, set: function(e5) {
55271          i2.options.hardfork = e5;
55272        }, enumerable: true }), Object.defineProperty(this, "defaultChain", { get: function() {
55273          return i2.options.chain || this.constructor.defaultChain;
55274        }, set: function(e5) {
55275          i2.options.chain = e5;
55276        }, enumerable: true }), Object.defineProperty(this, "transactionPollingTimeout", { get: function() {
55277          return 0 === i2.options.transactionPollingTimeout ? i2.options.transactionPollingTimeout : i2.options.transactionPollingTimeout || this.constructor.transactionPollingTimeout;
55278        }, set: function(e5) {
55279          i2.options.transactionPollingTimeout = e5;
55280        }, enumerable: true }), Object.defineProperty(this, "transactionPollingInterval", { get: function() {
55281          return 0 === i2.options.transactionPollingInterval ? i2.options.transactionPollingInterval : i2.options.transactionPollingInterval || this.constructor.transactionPollingInterval;
55282        }, set: function(e5) {
55283          i2.options.transactionPollingInterval = e5;
55284        }, enumerable: true }), Object.defineProperty(this, "transactionConfirmationBlocks", { get: function() {
55285          return 0 === i2.options.transactionConfirmationBlocks ? i2.options.transactionConfirmationBlocks : i2.options.transactionConfirmationBlocks || this.constructor.transactionConfirmationBlocks;
55286        }, set: function(e5) {
55287          i2.options.transactionConfirmationBlocks = e5;
55288        }, enumerable: true }), Object.defineProperty(this, "transactionBlockTimeout", { get: function() {
55289          return 0 === i2.options.transactionBlockTimeout ? i2.options.transactionBlockTimeout : i2.options.transactionBlockTimeout || this.constructor.transactionBlockTimeout;
55290        }, set: function(e5) {
55291          i2.options.transactionBlockTimeout = e5;
55292        }, enumerable: true }), Object.defineProperty(this, "blockHeaderTimeout", { get: function() {
55293          return 0 === i2.options.blockHeaderTimeout ? i2.options.blockHeaderTimeout : i2.options.blockHeaderTimeout || this.constructor.blockHeaderTimeout;
55294        }, set: function(e5) {
55295          i2.options.blockHeaderTimeout = e5;
55296        }, enumerable: true }), Object.defineProperty(this, "defaultAccount", { get: function() {
55297          return d3;
55298        }, set: function(e5) {
55299          return e5 && (d3 = f2.toChecksumAddress(l2.inputAddressFormatter(e5))), e5;
55300        }, enumerable: true }), Object.defineProperty(this, "defaultBlock", { get: function() {
55301          return p3;
55302        }, set: function(e5) {
55303          return p3 = e5, e5;
55304        }, enumerable: true }), this.methods = {}, this.events = {}, this._address = null, this._jsonInterface = [], this.options.address = r4, this.options.jsonInterface = t4;
55305      };
55306      y2.setProvider = function(e4, t4) {
55307        u2.packageInit(this, [e4]), this._ethAccounts = t4;
55308      }, y2.prototype._getCallback = function(e4) {
55309        if (e4 && e4[e4.length - 1] && "function" == typeof e4[e4.length - 1])
55310          return e4.pop();
55311      }, y2.prototype._checkListener = function(e4, t4) {
55312        if (t4 === e4)
55313          throw h2.ContractReservedEventError(e4);
55314      }, y2.prototype._getOrSetDefaultOptions = function(e4) {
55315        var t4 = s({}, e4), r4 = t4.gasPrice ? String(t4.gasPrice) : null, n3 = t4.from ? f2.toChecksumAddress(l2.inputAddressFormatter(t4.from)) : null;
55316        return t4.data = t4.data || this.options.data, t4.from = n3 || this.options.from, t4.gasPrice = r4 || this.options.gasPrice, t4.gas = t4.gas || t4.gasLim
55316it || this.options.gas, delete t4.gasLimit, t4;
55317      }, y2.prototype._encodeEventABI = function(e4, t4) {
55318        var r4 = (t4 = t4 || {}).filter || {}, n3 = {};
55319        if (["fromBlock", "toBlock"].filter(function(e5) {
55320          return void 0 !== t4[e5];
55321        }).forEach(function(e5) {
55322          n3[e5] = l2.inputBlockNumberFormatter(t4[e5]);
55323        }), Array.isArray(t4.topics))
55324          n3.topics = t4.topics;
55325        else {
55326          if (n3.topics = [], e4 && !e4.anonymous && "ALLEVENTS" !== e4.name && n3.topics.push(e4.signature), "ALLEVENTS" !== e4.name) {
55327            var i2 = e4.inputs.filter(function(e5) {
55328              return true === e5.indexed;
55329            }).map(function(e5) {
55330              var t5 = r4[e5.name];
55331              return t5 ? Array.isArray(t5) ? t5.map(function(t6) {
55332                return b2.encodeParameter(e5.type, t6);
55333              }) : b2.encodeParameter(e5.type, t5) : null;
55334            });
55335            n3.topics = n3.topics.concat(i2);
55336          }
55337          n3.topics.length || delete n3.topics;
55338        }
55339        return this.options.address && (n3.address = this.options.address.toLowerCase()), n3;
55340      }, y2.prototype._decodeEventABI = function(e4) {
55341        var t4 = this;
55342        e4.data = e4.data || "", e4.topics = e4.topics || [];
55343        var r4 = l2.outputLogFormatter(e4);
55344        if ("ALLEVENTS" === t4.name && (t4 = t4.jsonInterface.find(function(t5) {
55345          return t5.signature === e4.topics[0];
55346        }) || { anonymous: true }), t4.inputs = t4.inputs || [], !t4.anonymous) {
55347          var n3 = 0;
55348          t4.inputs.forEach(function(e5) {
55349            return e5.indexed ? n3++ : null;
55350          }), n3 > 0 && e4.topics.length !== n3 + 1 && (t4 = { anonymous: true, inputs: [] });
55351        }
55352        var i2 = t4.anonymous ? e4.topics : e4.topics.slice(1);
55353        return r4.returnValues = b2.decodeLog(t4.inputs, e4.data, i2), delete r4.returnValues.__length__, r4.event = t4.name, r4.signature = t4.anonymous || !e4.topics[0] ? null : e4.topics[0], r4.raw = { data: r4.data, topics: r4.topics }, delete r4.data, delete r4.topics, r4;
55354      }, y2.prototype._encodeMethodABI = function() {
55355        var e4 = this._method.signature, t4 = this.arguments || [], r4 = false, n3 = this._parent.options.jsonInterface.filter(function(t5) {
55356          return "constructor" === e4 && t5.type === e4 || (t5.signature === e4 || t5.signature === e4.replace("0x", "") || t5.name === e4) && "function" === t5.type;
55357        }).map(function(e5) {
55358          var n4 = Array.isArray(e5.inputs) ? e5.inputs.length : 0;
55359          if (n4 !== t4.length)
55360            throw new Error("The number of arguments is not matching the methods required number. You need to pass " + n4 + " arguments.");
55361          return "function" === e5.type && (r4 = e5.signature), Array.isArray(e5.inputs) ? e5.inputs : [];
55362        }).map(function(e5) {
55363          return b2.encodeParameters(e5, t4).replace("0x", "");
55364        })[0] || "";
55365        if ("constructor" === e4) {
55366          if (!this._deployData)
55367            throw new Error("The contract has no contract data option set. This is necessary to append the constructor parameters.");
55368          return this._deployData.startsWith("0x") || (this._deployData = "0x" + this._deployData), this._deployData + n3;
55369        }
55370        var i2 = r4 ? r4 + n3 : n3;
55371        if (!i2)
55372          throw new Error(`Couldn't find a matching contract method named "` + this._method.name + '".');
55373        return i2;
55374      }, y2.prototype._decodeMethodReturn = function(e4, t4) {
55375        if (!t4)
55376          return null;
55377        t4 = t4.length >= 2 ? t4.slice(2) : t4;
55378        var r4 = b2.decodeParameters(e4, t4);
55379        return 1 === r4.__length__ ? r4[0] : (delete r4.__length__, r4);
55380      }, y2.prototype.deploy = function(e4, t4) {
55381        if ((e4 = e4 || {}).arguments = e4.arguments || [], !(e4 = this._getOrSetDefaultOptions(e4)).data) {
55382          if ("function" == typeof t4)
55383            return t4(h2.ContractMissingDeployDataError());
55384          throw h2.ContractMissingDeployDataError();
55385        }
55386        var r4 = this.options.jsonInterface.find(function(e5) {
55387          return "constructor" === e5.type;
55388        }) || {};
55389        return r4.signature = "constructor", this._createTxObject.apply({ method: r4, parent: this, deployData: e4.data, _ethAccounts: this.constructor._ethAccounts }, e4.arguments);
55390      }, y2.prototype._generateEventOptions = function() {
55391        var e4 = Array.prototype.slice.call(arguments), t4 = this._getCallback(e4), r4 = "object" === (!!e4[e4.length - 1] && (0, o.default)(e4[e4.length - 1])) ? e4.pop() : {}, n3 = "string" == typeof e4[0] ? e4[0] : "allevents", i2 = "allevents" === n3.toLowerCase() ? { name: "ALLEVENTS", jsonInterface: this.options.jsonInterface } : this.options.jsonInterface.find(function(e5) {
55392          return "event" === e5.type && (e5.name === n3 || e5.signature === "0x" + n3.replace("0x", ""));
55393        });
55394        if (!i2)
55395          throw h2.ContractEventDoesNotExistError(n3);
55396        if (!f2.isAddress(this.options.address))
55397          throw h2.ContractNoAddressDefinedError();
55398        return { params: this._encodeEventABI(i2, r4), event: i2, callback: t4 };
55399      }, y2.prototype.clone = function() {
55400        return new this.constructor(this.options.jsonInterface, this.options.address, this.options);
55401      }, y2.prototype.once = function(e4, t4, r4) {
55402        var n3 = Array.prototype.slice.call(arguments);
55403        if (!(r4 = this._getCallback(n3)))
55404          throw h2.ContractOnceRequiresCallbackError();
55405        t4 && delete t4.fromBlock, this._on(e4, t4, function(e5, t5, n4) {
55406          n4.unsubscribe(), "function" == typeof r4 && r4(e5, t5, n4);
55407        });
55408      }, y2.prototype._on = function() {
55409        var e4 = this._generateEventOptions.apply(this, arguments);
55410        e4.params && e4.params.toBlock && (delete e4.params.toBlock, console.warn("Invalid option: toBlock. Use getPastEvents for specific range.")), this._checkListener("newListener", e4.event.name), this._checkListener("removeListener", e4.event.name);
55411        var t4 = new d2({ subscription: { params: 1, inputFormatter: [l2.inputLogFormatter], outputFormatter: this._decodeEventABI.bind(e4.event), subscriptionHandler: function(e5) {
55412          e5.removed ? this.emit("changed", e5) : this.emit("data", e5), "function" == typeof this.callback && this.callback(null, e5, this);
55413        } }, type: "eth", requestManager: this._requestManager });
55414        return t4.subscribe("logs", e4.params, e4.callback || function() {
55415        }), t4;
55416      }, y2.prototype.getPastEvents = function() {
55417        var e4 = this._generateEventOptions.apply(this, arguments), t4 = new c2({ name: "getPastLogs", call: "eth_getLogs", params: 1, inputFormatter: [l2.inputLogFormatter], outputFormatter: this._decodeEventABI.bind(e4.event) });
55418        t4.setRequestManager(this._requestManager);
55419        var r4 = t4.buildCall();
55420        return t4 = null, r4(e4.params, e4.callback);
55421      }, y2.prototype._createTxObject = function() {
55422        var e4 = Array.prototype.slice.call(arguments), t4 = {};
55423        if ("function" === this.method.type && (t4.call = this.parent._executeMethod.bind(t4, "call"), t4.call.request = this.parent._executeMethod.bind(t4, "call", true)), t4.send = this.parent._executeMethod.bind(t4, "send"), t4.send.request = this.parent._executeMethod.bind(t4, "send", true), t4.encodeABI = this.parent._encodeMethodABI.bind(t4), t4.estimateGas = this.parent._executeMethod.bind(t4, "estimate"), t4.createAccessList = this.parent._executeMethod.bind(t4, "createAccessList"), e4 && this.method.inputs && e4.length !== this.method.inputs.length) {
55424          if (this.nextMethod)
55425            return this.nextMethod.apply(null, e4);
55426          throw h2.InvalidNumberOfParams(e4.length, this.method.inputs.length, this.method.name);
55427        }
55428        return t4.arguments = e4 || [], t4._method = this.method, t4._parent = this.parent, t4._ethAccounts = this.parent.constructor._ethAccounts || this._ethAccounts, this.deployData && (t4._deployData = this.deployData), t4;
55429      }, y2.prototype._processExecuteArguments = function(e4, t4) {
55430        var r4 = {};
55431        if (r4.type = e4.shift(), r4.callback = this._parent._getCallback(e4), "call" !== r4.type || true === e4[e4.length - 1] || "string" != typeof e4[e4.length - 1] && !isFinite(e4[e4.length - 1]) || (r4.defaultBlock = e4.pop()), r4.options = "object" === (!!e4[e4.length - 1] && (0, o.default)(e4[e4.length - 1])) ? e4.pop() : {}, r4.generateRequest = true === e4[e4.length - 1] && e4.pop(), r4.options = this._parent._getOrSetDefaultOptions(r4.options), r4.options.data = this.encodeABI(), !this._deployData && !f2.isAddress(this._parent.options.address))
55432          throw h2.ContractNoAddressDefinedError();
55433        return this._deployData || (r4.options.to = this._parent.options.address), r4.options.data ? r4 : f2._fireError(new Error("Couldn't find a matching contract method, or the number of parameters is wrong."), t4.eventEmitter, t4.reject, r4.callback);
55434      }, y2.prototype._executeMethod = function() {
55435        var e4 = this, t4 = this._parent._processExecuteArguments.call(this, Array.prototype.slice.call(arguments), r4), r4 = p2("send" !== t4.type), n3 = e4.constructor._ethAccounts || e4._ethAccounts;
55436        if (t4.generateRequest) {
55437          var i2 = { params: [l2.inputCallFormatter.call(this._parent, t4.options)], callback: t4.callback };
55438          return "call" === t4.type ? (i2.params.push(l2.inputDefaultBlockNumberFormatter.call(this._parent, t4.defaultBlock)), i2.method = "eth_call", i2.format = this._parent._decodeMethodReturn.bind(null, this._method.outputs)) : i2.method = "eth_sendTransaction", i2;
55439        }
55440        switch (t4.type) {
55441          case "createAccessList":
55442            if (!f2.isAddress(t4.options.from))
55443              return f2._fireError(h2.ContractNoFromAddressDefinedError(), r4.eventEmitter, r4.reject, t4.callback);
55444            var o2 = new c2({ name: "createAccessList", call: "eth_createAccessList", params: 2, inputFormatter: [l2.inputTransactionFormatter, l2.inputDefaultBlockNumberFormatter], requestManager: e4._parent._requestManager, accounts: n3, defaultAccount: e4._parent.defaultAccount, defaultBlock: e4._parent.defaultBlock }).createFunction();
55445            return o2(t4.options, t4.callback);
55446          case "estimate":
55447            var a2 = new c2({ name: "estimateGas", call: "eth_estimateGas", params: 1, inputFormatter: [l2.inputCallFormatter], outputFormatter: f2.hexToNumber, requestManager: e4._parent._requestManager, accounts: n3, defaultAccount: e4._parent.defaultAccount, defaultBlock: e4._parent.defaultBlock }).createFunction();
55448            return a2(t4.options, t4.callback);
55449          case "call":
55450            var s2 = new c2({ name: "call", call: "eth_call", params: 2, inputFormatter: [l2.inputCallFormatter, l2.inputDefaultBlockNumberFormatter], outputFormatter: function(t5) {
55451              return e4._parent._decodeMethodReturn(e4._method.outputs, t5);
55452            }, requestManager: e4._parent._requestManager, accounts: n3, defaultAccount: e4._parent.defaultAccount, defaultBlock: e4._parent.defaultBlock, handleRevert: e4._parent.handleRevert, abiCoder: b2 }).createFunction();
55453            return s2(t4.options, t4.defaultBlock, t4.callback);
55454          case "send":
55455            if (!f2.isAddress(t4.options.from))
55456              return f2._fireError(h2.ContractNoFromAddressDefinedError(), r4.eventEmitter, r4.reject, t4.callback);
55457            if ("boolean" == typeof this._method.payable && !this._method.payable && t4.options.value && t4.options.value > 0)
55458              return f2._fireError(new Error("Can not send value to non-payable contract method or constructor"), r4.eventEmitter, r4.reject, t4.callback);
55459            var u3 = { receiptFormatter: function(t5) {
55460              if (Array.isArray(t5.logs)) {
55461                var r5 = t5.logs.map(function(t6) {
55462                  return e4._parent._decodeEventABI.call({ name: "ALLEVENTS", jsonInterface: e4._parent.options.jsonInterface }, t6);
55463                });
55464                t5.events = {};
55465                var n4 = 0;
55466                r5.forEach(function(e5) {
55467                  e5.event ? t5.events[e5.event] ? Array.isArray(t5.events[e5.event]) ? t5.events[e5.event].push(e5) : t5.events[e5.event] = [t5.events[e5.event], e5] : t5.events[e5.event] = e5 : (t5.events[n4] = e5, n4++);
55468                }), delete t5.logs;
55469              }
55470              return t5;
55471            }, contractDeployFormatter: function(t5) {
55472              var r5 = e4._parent.clone();
55473              return r5.options.address = t5.contractAddress, r5;
55474            } }, d3 = new c2({ name: "sendTransaction", call: "eth_sendTransaction", params: 1, inputFormatter: [l2.inputTransactionFormatter], requestManager: e4._parent._requestManager, accounts: e4.constructor._ethAccounts || e4._ethAccounts, defaultAccount: e4._parent.defaultAccount, defaultBlock: e4._parent.defaultBlock, transactionBlockTimeout: e4._parent.transactionBlockTimeout, transactionConfirmationBlocks: e4._parent.transactionConfirmationBlocks, transactionPollingTimeout: e4._parent.transactionPollingTimeout, transactionPollingInterval: e4._parent.transactionPollingInterval, defaultCommon: e4._parent.defaultCommon, defaultChain: e4._parent.defaultChain, defaultHardfork: e4._parent.defaultHardfork, handleRevert: e4._parent.handleRevert, extraFormatters: u3, abiCoder: b2 }).createFunction();
55475            return d3(t4.options, t4.callback);
55476          default:
55477            throw new Error('Method "' + t4.type + '" not implemented.');
55478        }
55479      }, e3.exports = y2;
55480    }, 6764: (e3, t3, r3) => {
55481      var n2 = r3(8847), i = n2(r3(2247)), o = n2(r3(5698)), a = r3(5160), s = r3(1314).formatters, u2 = r3(8161), c2 = r3(1841), f2 = r3(2867), d2 = r3(2689);
55482      function l2(e4) {
55483        this.eth = e4;
55484        var t4 = null;
55485        this._detectedAddress = null, this._lastSyncCheck = null, Object.defineProperty(this, "registry", { get: function() {
55486          return new c2(this);
55487        }, enumerable: true }), Object.defineProperty(this, "resolverMethodHandler", { get: function() {
55488          return new f2(this.registry);
55489        }, enumerable: true }), Object.defineProperty(this, "registryAddress", { get: function() {
55490          return t4;
55491        }, set: function(e5) {
55492          t4 = null !== e5 ? s.inputAddressFormatter(e5) : e5;
55493        }, enumerable: true });
55494      }
55495      l2.prototype.supportsInterface = function(e4, t4, r4) {
55496        return this.getResolver(e4).then(function(e5) {
55497          return u2.isHexStrict(t4) || (t4 = u2.sha3(t4).slice(0, 10)), e5.methods.supportsInterface(t4).call(r4);
55498        }).catch(function(e5) {
55499          if ("function" != typeof r4)
55500            throw e5;
55501          r4(e5, null);
55502        });
55503      }, l2.prototype.resolver = function(e4, t4) {
55504        return this.registry.resolver(e4, t4);
55505      }, l2.prototype.getResolver = function(e4, t4) {
55506        return this.registry.getResolver(e4, t4);
55507      }, l2.prototype.setResolver = function(e4, t4, r4, n3) {
55508        return this.registry.setResolver(e4, t4, r4, n3);
55509      }, l2.prototype.setRecord = function(e4, t4, r4, n3, i2, o2) {
55510        return this.registry.setRecord(e4, t4, r4, n3, i2, o2);
55511      }, l2.prototype.setSubnodeRecord = function(e4, t4, r4, n3, i2, o2, a2) {
55512        return this.registry.setSubnodeRecord(e4, t4, r4, n3, i2, o2, a2);
55513      }, l2.prototype.setApprovalForAll = function(e4, t4, r4, n3) {
55514        return this.registry.setApprovalForAll(e4, t4, r4, n3);
55515      }, l2.prototype.isApprovedForAll = function(e4, t4, r4) {
55516        return this.registry.isApprovedForAll(e4, t4, r4);
55517      }, l2.prototype.recordExists = function(e4, t4) {
55518        return this.registry.recordExists(e4, t4);
55519      }, l2.prototype.setSubnodeOwner = function(e4, t4, r4, n3, i2) {
55520        return this.registry.setSubnodeOwner(e4, t4, r4, n3, i2);
55521      }, l2.prototype.getTTL = function(e4, t4) {
55522        return this.registry.getTTL(e4, t4);
55523      }, l2.prototype.setTTL = function(e4, t4, r4, n3) {
55524        return this.registry.setTTL(e4, t4, r4, n3);
55525      }, l2.prototype.getOwner = function(e4, t4) {
55526        return this.registry.getOwner(e4, t4);
55527      }, l2.prototype.setOwner = function(e4, t4, r4, n3) {
55528        return this.registry.setOwner(e4, t4, r4, n3);
55529      }, l2.prototype.getAddress = function(e4, t4) {
55530        return this.resolverMethodHandler.method(e4, "addr", []).call(t4);
55531      }, l2.prototype.setAddress = function(e4, t4, r4, n3) {
55532        return this.resolverMethodHandler.method(e4, "setAddr", [t4]).send(r4, n3);
55533      }, l2.prototype.getPubkey = function(e4, t4) {
55534        return this.resolverMethodHandler.method(e4, "pubkey", [], null, t4).call(t4);
55535      }, l2.prototype.setPubkey = function(e4, t4, r4, n3, i2) {
55536        return this.resolverMethodHandler.method(e4, "setPubkey", [t4, r4]).send(n3, i2);
55537      }, l2.prototype.getContent = function(e4, t4) {
55538        return this.resolverMethodHandler.method(e4, "content", []).call(t4);
55539      }, l2.prototype.setContent = function(e4, t4, r4, n3) {
55540        return this.resolverMethodHandler.method(e4, "setContent", [t4]).send(r4, n3);
55541      }, l2.prototype.getContenthash = function(e4, t4) {
55542        return this.resolverMethodHandler.method(e4, "contenthash", [], d2.decode).call(t4);
55543      }, l2.prototype.setContenthash = function(e4, t4, r4, n3) {
55544        var i2;
55545        try {
55546          i2 = d2.encode(t4);
55547        } catch (e5) {
55548          var o2 = new Error("Could not encode " + t4 + ". See docs for supported hash protocols.");
55549          if ("function" == typeof n3)
55550            return void n3(o2, null);
55551          throw o2;
55552        }
55553        return this.resolverMethodHandler.method(e4, "setContenthash", [i2]).send(r4, n3);
55554      }, l2.prototype.getMultihash = function(e4, t4) {
55555        return this.resolverMethodHandler.method(e4, "multihash", []).call(t4);
55556      }, l2.prototype.setMultihash = function(e4, t4, r4, n3) {
55557        return this.resolverMethodHandler.method(e4, "multihash", [t4]).send(r4, n3);
55558      }, l2.prototype.checkNetwork = (0, o.default)(i.default.mark(function e4() {
55559        var t4, r4, n3, o2, s2;
55560        return i.default.wrap(function(e5) {
55561          for (; ; )
55562            switch (e5.prev = e5.next) {
55563              case 0:
55564                if (t4 = new Date() / 1e3, this._lastSyncCheck && !(t4 - this._lastSyncCheck > 3600)) {
55565                  e5.next = 9;
55566                  break;
55567                }
55568                return e5.next = 4, this.eth.getBlock("latest");
55569              case 4:
55570                if (r4 = e5.sent, !((n3 = t4 - r4.timestamp) > 3600)) {
55571                  e5.next = 8;
55572                  break;
55573                }
55574                throw new Error("Network not synced; last block was " + n3 + " seconds ago");
55575              case 8:
55576                this._lastSyncCheck = t4;
55577              case 9:
55578                if (!this.registryAddress) {
55579                  e5.next = 11;
55580                  break;
55581                }
55582                return e5.abrupt("return", this.registryAddress);
55583              case 11:
55584                if (this._detectedAddress) {
55585                  e5.next = 20;
55586                  break;
55587                }
55588                return e5.next = 14, this.eth.net.getNetworkType();
55589              case 14:
55590                if (o2 = e5.sent, void 0 !== (s2 = a.addresses[o2])) {
55591                  e5.next = 18;
55592                  break;
55593                }
55594                throw new Error("ENS is not supported on network " + o2);
55595              case 18:
55596                return this._detectedAddress = s2, e5.abrupt("return", this._detectedAddress);
55597              case 20:
55598                return e5.abrupt("return", this._detectedAddress);
55599              case 21:
55600              case "end":
55601                return e5.stop();
55602            }
55603        }, e4, this);
55604      })), e3.exports = l2;
55605    }, 5160: (e3) => {
55606      e3.exports = { addresses: { main: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e", ropsten: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e", rinkeby: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e", goerli: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e" }, interfaceIds: { addr: "0x3b3b57de", setAddr: "0x3b3b57de", pubkey: "0xc8690233", setPubkey: "0xc8690233", contenthash: "0xbc1c58d1", setContenthash: "0xbc1c58d1", content: "0xd8389dc5", setContent: "0xd8389dc5" } };
55607    }, 1841: (e3, t3, r3) => {
55608      var n2 = r3(8164), i = r3(1006), o = r3(282), a = r3(1314).formatters, s = r3(8161), u2 = r3(3205), c2 = r3(8384);
55609      function f2(e4) {
55610        var t4 = this;
55611        this.ens = e4, this.contract = e4.checkNetwork().then(function(e5) {
55612          var r4 = new n2(u2, e5);
55613          return r4.setProvider(t4.ens.eth.currentProvider), r4;
55614        });
55615      }
55616      f2.prototype.owner = function(e4, t4) {
55617        return console.warn('Deprecated: Please use the "getOwner" method instead of "owner".'), this.getOwner(e4, t4);
55618      }, f2.prototype.getOwner = function(e4, t4) {
55619        var r4 = new o(true);
55620        return this.contract.then(function(t5) {
55621          return t5.methods.owner(i.hash(e4)).call();
55622        }).then(function(e5) {
55623          "function" != typeof t4 ? r4.resolve(e5) : t4(e5, e5);
55624        }).catch(function(e5) {
55625          "function" != typeof t4 ? r4.reject(e5) : t4(e5, null);
55626        }), r4.eventEmitter;
55627      }, f2.prototype.setOwner = function(e4, t4, r4, n3) {
55628        var s2 = new o(true);
55629        return this.contract.then(function(n4) {
55630          return n4.methods.setOwner(i.hash(e4), a.inputAddressFormatter(t4)).send(r4);
55631        }).then(function(e5) {
55632          "function" != typeof n3 ? s2.resolve(e5) : n3(e5, e5);
55633        }).catch(function(e5) {
55634          "function" != typeof n3 ? s2.reject(e5) : n3(e5, null);
55635        }), s2.eventEmitter;
55636      }, f2.prototype.getTTL = function(e4, t4) {
55637        var r4 = new o(true);
55638        return this.contract.then(function(t5) {
55639          return t5.methods.ttl(i.hash(e4)).call();
55640        }).then(function(e5) {
55641          "function" != typeof t4 ? r4.resolve(e5) : t4(e5, e5);
55642        }).catch(function(e5) {
55643          "function" != typeof t4 ? r4.reject(e5) : t4(e5, null);
55644        }), r4.eventEmitter;
55645      }, f2.prototype.setTTL = function(e4, t4, r4, n3) {
55646        var a2 = new o(true);
55647        return this.contract.then(function(n4) {
55648          return n4.methods.setTTL(i.hash(e4), t4).send(r4);
55649        }).then(function(e5) {
55650          "function" != typeof n3 ? a2.resolve(e5) : n3(e5, e5);
55651        }).catch(function(e5) {
55652          "function" != typeof n3 ? a2.reject(e5) : n3(e5, null);
55653        }),
55653 a2.eventEmitter;
55654      }, f2.prototype.setSubnodeOwner = function(e4, t4, r4, n3, u3) {
55655        var c3 = new o(true);
55656        return s.isHexStrict(t4) || (t4 = s.sha3(t4)), this.contract.then(function(o2) {
55657          return o2.methods.setSubnodeOwner(i.hash(e4), t4, a.inputAddressFormatter(r4)).send(n3);
55658        }).then(function(e5) {
55659          "function" != typeof u3 ? c3.resolve(e5) : u3(e5, e5);
55660        }).catch(function(e5) {
55661          "function" != typeof u3 ? c3.reject(e5) : u3(e5, null);
55662        }), c3.eventEmitter;
55663      }, f2.prototype.setRecord = function(e4, t4, r4, n3, s2, u3) {
55664        var c3 = new o(true);
55665        return this.contract.then(function(o2) {
55666          return o2.methods.setRecord(i.hash(e4), a.inputAddressFormatter(t4), a.inputAddressFormatter(r4), n3).send(s2);
55667        }).then(function(e5) {
55668          "function" != typeof u3 ? c3.resolve(e5) : u3(e5, e5);
55669        }).catch(function(e5) {
55670          "function" != typeof u3 ? c3.reject(e5) : u3(e5, null);
55671        }), c3.eventEmitter;
55672      }, f2.prototype.setSubnodeRecord = function(e4, t4, r4, n3, u3, c3, f3) {
55673        var d2 = new o(true);
55674        return s.isHexStrict(t4) || (t4 = s.sha3(t4)), this.contract.then(function(o2) {
55675          return o2.methods.setSubnodeRecord(i.hash(e4), t4, a.inputAddressFormatter(r4), a.inputAddressFormatter(n3), u3).send(c3);
55676        }).then(function(e5) {
55677          "function" != typeof f3 ? d2.resolve(e5) : f3(e5, e5);
55678        }).catch(function(e5) {
55679          "function" != typeof f3 ? d2.reject(e5) : f3(e5, null);
55680        }), d2.eventEmitter;
55681      }, f2.prototype.setApprovalForAll = function(e4, t4, r4, n3) {
55682        var i2 = new o(true);
55683        return this.contract.then(function(n4) {
55684          return n4.methods.setApprovalForAll(a.inputAddressFormatter(e4), t4).send(r4);
55685        }).then(function(e5) {
55686          "function" != typeof n3 ? i2.resolve(e5) : n3(e5, e5);
55687        }).catch(function(e5) {
55688          "function" != typeof n3 ? i2.reject(e5) : n3(e5, null);
55689        }), i2.eventEmitter;
55690      }, f2.prototype.isApprovedForAll = function(e4, t4, r4) {
55691        var n3 = new o(true);
55692        return this.contract.then(function(r5) {
55693          return r5.methods.isApprovedForAll(a.inputAddressFormatter(e4), a.inputAddressFormatter(t4)).call();
55694        }).then(function(e5) {
55695          "function" != typeof r4 ? n3.resolve(e5) : r4(e5, e5);
55696        }).catch(function(e5) {
55697          "function" != typeof r4 ? n3.reject(e5) : r4(e5, null);
55698        }), n3.eventEmitter;
55699      }, f2.prototype.recordExists = function(e4, t4) {
55700        var r4 = new o(true);
55701        return this.contract.then(function(t5) {
55702          return t5.methods.recordExists(i.hash(e4)).call();
55703        }).then(function(e5) {
55704          "function" != typeof t4 ? r4.resolve(e5) : t4(e5, e5);
55705        }).catch(function(e5) {
55706          "function" != typeof t4 ? r4.reject(e5) : t4(e5, null);
55707        }), r4.eventEmitter;
55708      }, f2.prototype.resolver = function(e4, t4) {
55709        return console.warn('Deprecated: Please use the "getResolver" method instead of "resolver".'), this.getResolver(e4, t4);
55710      }, f2.prototype.getResolver = function(e4, t4) {
55711        var r4 = this;
55712        return this.contract.then(function(t5) {
55713          return t5.methods.resolver(i.hash(e4)).call();
55714        }).then(function(e5) {
55715          var i2 = new n2(c2, e5);
55716          if (i2.setProvider(r4.ens.eth.currentProvider), "function" != typeof t4)
55717            return i2;
55718          t4(i2, i2);
55719        }).catch(function(e5) {
55720          if ("function" != typeof t4)
55721            throw e5;
55722          t4(e5, null);
55723        });
55724      }, f2.prototype.setResolver = function(e4, t4, r4, n3) {
55725        var s2 = new o(true);
55726        return this.contract.then(function(n4) {
55727          return n4.methods.setResolver(i.hash(e4), a.inputAddressFormatter(t4)).send(r4);
55728        }).then(function(e5) {
55729          "function" != typeof n3 ? s2.resolve(e5) : n3(e5, e5);
55730        }).catch(function(e5) {
55731          "function" != typeof n3 ? s2.reject(e5) : n3(e5, null);
55732        }), s2.eventEmitter;
55733      }, e3.exports = f2;
55734    }, 715: (e3, t3, r3) => {
55735      var n2 = r3(6764);
55736      e3.exports = n2;
55737    }, 2867: (e3, t3, r3) => {
55738      var n2 = r3(8847), i = n2(r3(2247)), o = n2(r3(5698)), a = r3(282), s = r3(1006), u2 = r3(1314).errors, c2 = r3(5160).interfaceIds;
55739      function f2(e4) {
55740        this.registry = e4;
55741      }
55742      f2.prototype.method = function(e4, t4, r4, n3, i2) {
55743        return { call: this.call.bind({ ensName: e4, methodName: t4, methodArguments: r4, callback: i2, parent: this, outputFormatter: n3 }), send: this.send.bind({ ensName: e4, methodName: t4, methodArguments: r4, callback: i2, parent: this }) };
55744      }, f2.prototype.call = function(e4) {
55745        var t4 = this, r4 = new a(), n3 = this.parent.prepareArguments(this.ensName, this.methodArguments), s2 = this.outputFormatter || null;
55746        return this.parent.registry.getResolver(this.ensName).then(function() {
55747          var a2 = (0, o.default)(i.default.mark(function o2(a3) {
55748            return i.default.wrap(function(i2) {
55749              for (; ; )
55750                switch (i2.prev = i2.next) {
55751                  case 0:
55752                    return i2.next = 2, t4.parent.checkInterfaceSupport(a3, t4.methodName);
55753                  case 2:
55754                    t4.parent.handleCall(r4, a3.methods[t4.methodName], n3, s2, e4);
55755                  case 3:
55756                  case "end":
55757                    return i2.stop();
55758                }
55759            }, o2);
55760          }));
55761          return function(e5) {
55762            return a2.apply(this, arguments);
55763          };
55764        }()).catch(function(t5) {
55765          "function" != typeof e4 ? r4.reject(t5) : e4(t5, null);
55766        }), r4.eventEmitter;
55767      }, f2.prototype.send = function(e4, t4) {
55768        var r4 = this, n3 = new a(), s2 = this.parent.prepareArguments(this.ensName, this.methodArguments);
55769        return this.parent.registry.getResolver(this.ensName).then(function() {
55770          var a2 = (0, o.default)(i.default.mark(function o2(a3) {
55771            return i.default.wrap(function(i2) {
55772              for (; ; )
55773                switch (i2.prev = i2.next) {
55774                  case 0:
55775                    return i2.next = 2, r4.parent.checkInterfaceSupport(a3, r4.methodName);
55776                  case 2:
55777                    r4.parent.handleSend(n3, a3.methods[r4.methodName], s2, e4, t4);
55778                  case 3:
55779                  case "end":
55780                    return i2.stop();
55781                }
55782            }, o2);
55783          }));
55784          return function(e5) {
55785            return a2.apply(this, arguments);
55786          };
55787        }()).catch(function(e5) {
55788          "function" != typeof t4 ? n3.reject(e5) : t4(e5, null);
55789        }), n3.eventEmitter;
55790      }, f2.prototype.handleCall = function(e4, t4, r4, n3, i2) {
55791        return t4.apply(this, r4).call().then(function(t5) {
55792          n3 && (t5 = n3(t5)), "function" != typeof i2 ? e4.resolve(t5) : i2(t5, t5);
55793        }).catch(function(t5) {
55794          "function" != typeof i2 ? e4.reject(t5) : i2(t5, null);
55795        }), e4;
55796      }, f2.prototype.handleSend = function(e4, t4, r4, n3, i2) {
55797        return t4.apply(this, r4).send(n3).on("sending", function() {
55798          e4.eventEmitter.emit("sending");
55799        }).on("sent", function() {
55800          e4.eventEmitter.emit("sent");
55801        }).on("transactionHash", function(t5) {
55802          e4.eventEmitter.emit("transactionHash", t5);
55803        }).on("confirmation", function(t5, r5) {
55804          e4.eventEmitter.emit("confirmation", t5, r5);
55805        }).on("receipt", function(t5) {
55806          e4.eventEmitter.emit("receipt", t5), e4.resolve(t5), "function" == typeof i2 && i2(t5, t5);
55807        }).on("error", function(t5) {
55808          e4.eventEmitter.emit("error", t5), "function" != typeof i2 ? e4.reject(t5) : i2(t5, null);
55809        }), e4;
55810      }, f2.prototype.prepareArguments = function(e4, t4) {
55811        var r4 = s.hash(e4);
55812        return t4.length > 0 ? (t4.unshift(r4), t4) : [r4];
55813      }, f2.prototype.checkInterfaceSupport = function() {
55814        var e4 = (0, o.default)(i.default.mark(function e5(t4, r4) {
55815          var n3;
55816          return i.default.wrap(function(e6) {
55817            for (; ; )
55818              switch (e6.prev = e6.next) {
55819                case 0:
55820                  if (c2[r4]) {
55821                    e6.next = 2;
55822                    break;
55823                  }
55824                  return e6.abrupt("return");
55825                case 2:
55826                  return n3 = false, e6.prev = 3, e6.next = 6, t4.methods.supportsInterface(c2[r4]).call();
55827                case 6:
55828                  n3 = e6.sent, e6.next = 12;
55829                  break;
55830                case 9:
55831                  e6.prev = 9, e6.t0 = e6.catch(3), console.warn('Could not verify interface of resolver contract at "' + t4.options.address + '". ');
55832                case 12:
55833                  if (n3) {
55834                    e6.next = 14;
55835                    break;
55836                  }
55837                  throw u2.ResolverMethodMissingError(t4.options.address, r4);
55838                case 14:
55839                case "end":
55840                  return e6.stop();
55841              }
55842          }, e5, null, [[3, 9]]);
55843        }));
55844        return function(t4, r4) {
55845          return e4.apply(this, arguments);
55846        };
55847      }(), e3.exports = f2;
55848    }, 2689: (e3, t3, r3) => {
55849      var n2 = r3(4308);
55850      e3.exports = { decode: function(e4) {
55851        var t4 = null, r4 = null, i = null;
55852        if (e4 && e4.error)
55853          return { protocolType: null, decoded: e4.error };
55854        if (e4)
55855          try {
55856            t4 = n2.decode(e4);
55857            var o = n2.getCodec(e4);
55858            "ipfs-ns" === o ? r4 = "ipfs" : "swarm-ns" === o ? r4 = "bzz" : "onion" === o ? r4 = "onion" : "onion3" === o ? r4 = "onion3" : t4 = e4;
55859          } catch (e5) {
55860            i = e5.message;
55861          }
55862        return { protocolType: r4, decoded: t4, error: i };
55863      }, encode: function(e4) {
55864        var t4, r4, i = false;
55865        if (e4) {
55866          var o = e4.match(/^(ipfs|bzz|onion|onion3):\/\/(.*)/) || e4.match(/\/(ipfs)\/(.*)/);
55867          o && (r4 = o[1], t4 = o[2]);
55868          try {
55869            if ("ipfs" === r4)
55870              t4.length >= 4 && (i = "0x" + n2.fromIpfs(t4));
55871            else if ("bzz" === r4)
55872              t4.length >= 4 && (i = "0x" + n2.fromSwarm(t4));
55873            else if ("onion" === r4)
55874              16 === t4.length && (i = "0x" + n2.encode("onion", t4));
55875            else {
55876              if ("onion3" !== r4)
55877                throw new Error("Could not encode content hash: unsupported content type");
55878              56 === t4.length && (i = "0x" + n2.encode("onion3", t4));
55879            }
55880          } catch (e5) {
55881            throw e5;
55882          }
55883        }
55884        return i;
55885      } };
55886    }, 3205: (e3) => {
55887      e3.exports = [{ constant: true, inputs: [{ name: "node", type: "bytes32" }], name: "resolver", outputs: [{ name: "", type: "address" }], payable: false, type: "function" }, { constant: true, inputs: [{ name: "node", type: "bytes32" }], name: "owner", outputs: [{ name: "", type: "address" }], payable: false, type: "function" }, { constant: false, inputs: [{ name: "node", type: "bytes32" }, { name: "label", type: "bytes32" }, { name: "owner", type: "address" }], name: "setSubnodeOwner", outputs: [], payable: false, type: "function" }, { constant: false, inputs: [{ name: "node", type: "bytes32" }, { name: "ttl", type: "uint64" }], name: "setTTL", outputs: [], payable: false, type: "function" }, { constant: true, inputs: [{ name: "node", type: "bytes32" }], name: "ttl", outputs: [{ name: "", type: "uint64" }], payable: false, type: "function" }, { constant: false, inputs: [{ name: "node", type: "bytes32" }, { name: "resolver", type: "address" }], name: "setResolver", outputs: [], payable: false, type: "function" }, { constant: false, inputs: [{ name: "node", type: "bytes32" }, { name: "owner", type: "address" }], name: "setOwner", outputs: [], payable: false, type: "function" }, { anonymous: false, inputs: [{ indexed: true, name: "node", type: "bytes32" }, { indexed: false, name: "owner", type: "address" }], name: "Transfer", type: "event" }, { anonymous: false, inputs: [{ indexed: true, name: "node", type: "bytes32" }, { indexed: true, name: "label", type: "bytes32" }, { indexed: false, name: "owner", type: "address" }], name: "NewOwner", type: "event" }, { anonymous: false, inputs: [{ indexed: true, name: "node", type: "bytes32" }, { indexed: false, name: "resolver", type: "address" }], name: "NewResolver", type: "event" }, { anonymous: false, inputs: [{ indexed: true, name: "node", type: "bytes32" }, { indexed: false, name: "ttl", type: "uint64" }], name: "NewTTL", type: "event" }, { constant: false, inputs: [{ internalType: "bytes32", name: "node", type: "bytes32" }, { internalType: "address", name: "owner", type: "address" }, { internalType: "address", name: "resolver", type: "address" }, { internalType: "uint64", name: "ttl", type: "uint64" }], name: "setRecord", outputs: [], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: false, inputs: [{ internalType: "address", name: "operator", type: "address" }, { internalType: "bool", name: "approved", type: "bool" }], name: "setApprovalForAll", outputs: [], payable: false, stateMutability: "nonpayable", type: "function" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "owner", type: "address" }, { indexed: true, internalType: "address", name: "operator", type: "address" }, { indexed: false, internalType: "bool", name: "approved", type: "bool" }], name: "ApprovalForAll", type: "event" }, { constant: true, inputs: [{ internalType: "address", name: "owner", type: "address" }, { internalType: "address", name: "operator", type: "address" }], name: "isApprovedForAll", outputs: [{ internalType: "bool", name: "", type: "bool" }], payable: false, stateMutability: "view", type: "function" }, { constant: true, inputs: [{ internalType: "bytes32", name: "node", type: "bytes32" }], name: "recordExists", outputs: [{ internalType: "bool", name: "", type: "bool" }], payable: false, stateMutability: "view", type: "function" }, { constant: false, inputs: [{ internalType: "bytes32", name: "node", type: "bytes32" }, { internalType: "bytes32", name: "label", type: "bytes32" }, { internalType: "address", name: "owner", type: "address" }, { internalType: "address", name: "resolver", type: "address" }, { internalType: "uint64", name: "ttl", type: "uint64" }], name: "setSubnodeRecord", outputs: [], payable: false, stateMutability: "nonpayable", type: "function" }];
55888    }, 8384: (e3) => {
55889      e3.exports = [{ constant: true, inputs: [{ name: "interfaceID", type: "bytes4" }], name: "supportsInterface", outputs: [{ name: "", type: "bool" }
55889], payable: false, type: "function" }, { constant: true, inputs: [{ name: "node", type: "bytes32" }, { name: "contentTypes", type: "uint256" }], name: "ABI", outputs: [{ name: "contentType", type: "uint256" }, { name: "data", type: "bytes" }], payable: false, type: "function" }, { constant: false, inputs: [{ name: "node", type: "bytes32" }, { name: "hash", type: "bytes" }], name: "setMultihash", outputs: [], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: true, inputs: [{ name: "node", type: "bytes32" }], name: "multihash", outputs: [{ name: "", type: "bytes" }], payable: false, stateMutability: "view", type: "function" }, { constant: false, inputs: [{ name: "node", type: "bytes32" }, { name: "x", type: "bytes32" }, { name: "y", type: "bytes32" }], name: "setPubkey", outputs: [], payable: false, type: "function" }, { constant: true, inputs: [{ name: "node", type: "bytes32" }], name: "content", outputs: [{ name: "ret", type: "bytes32" }], payable: false, type: "function" }, { constant: true, inputs: [{ name: "node", type: "bytes32" }], name: "addr", outputs: [{ name: "ret", type: "address" }], payable: false, type: "function" }, { constant: false, inputs: [{ name: "node", type: "bytes32" }, { name: "contentType", type: "uint256" }, { name: "data", type: "bytes" }], name: "setABI", outputs: [], payable: false, type: "function" }, { constant: true, inputs: [{ name: "node", type: "bytes32" }], name: "name", outputs: [{ name: "ret", type: "string" }], payable: false, type: "function" }, { constant: false, inputs: [{ name: "node", type: "bytes32" }, { name: "name", type: "string" }], name: "setName", outputs: [], payable: false, type: "function" }, { constant: false, inputs: [{ name: "node", type: "bytes32" }, { name: "hash", type: "bytes32" }], name: "setContent", outputs: [], payable: false, type: "function" }, { constant: true, inputs: [{ name: "node", type: "bytes32" }], name: "pubkey", outputs: [{ name: "x", type: "bytes32" }, { name: "y", type: "bytes32" }], payable: false, type: "function" }, { constant: false, inputs: [{ name: "node", type: "bytes32" }, { name: "addr", type: "address" }], name: "setAddr", outputs: [], payable: false, type: "function" }, { inputs: [{ name: "ensAddr", type: "address" }], payable: false, type: "constructor" }, { anonymous: false, inputs: [{ indexed: true, name: "node", type: "bytes32" }, { indexed: false, name: "a", type: "address" }], name: "AddrChanged", type: "event" }, { anonymous: false, inputs: [{ indexed: true, name: "node", type: "bytes32" }, { indexed: false, name: "hash", type: "bytes32" }], name: "ContentChanged", type: "event" }, { anonymous: false, inputs: [{ indexed: true, name: "node", type: "bytes32" }, { indexed: false, name: "name", type: "string" }], name: "NameChanged", type: "event" }, { anonymous: false, inputs: [{ indexed: true, name: "node", type: "bytes32" }, { indexed: true, name: "contentType", type: "uint256" }], name: "ABIChanged", type: "event" }, { anonymous: false, inputs: [{ indexed: true, name: "node", type: "bytes32" }, { indexed: false, name: "x", type: "bytes32" }, { indexed: false, name: "y", type: "bytes32" }], name: "PubkeyChanged", type: "event" }, { anonymous: false, inputs: [{ indexed: true, name: "node", type: "bytes32" }, { indexed: false, name: "hash", type: "bytes" }], name: "ContenthashChanged", type: "event" }, { constant: true, inputs: [{ name: "node", type: "bytes32" }], name: "contenthash", outputs: [{ name: "", type: "bytes" }], payable: false, stateMutability: "view", type: "function" }, { constant: false, inputs: [{ name: "node", type: "bytes32" }, { name: "hash", type: "bytes" }], name: "setContenthash", outputs: [], payable: false, stateMutability: "nonpayable", type: "function" }];
55890    }, 6: (e3, t3, r3) => {
55891      var n2 = r3(8847), i = n2(r3(9721)), o = n2(r3(8985)), a = r3(8161), s = r3(1734), u2 = function(e4) {
55892        var t4 = "A".charCodeAt(0), r4 = "Z".charCodeAt(0);
55893        return (e4 = (e4 = e4.toUpperCase()).slice(4) + e4.slice(0, 4)).split("").map(function(e5) {
55894          var n3 = e5.charCodeAt(0);
55895          return n3 >= t4 && n3 <= r4 ? n3 - t4 + 10 : e5;
55896        }).join("");
55897      }, c2 = function(e4) {
55898        for (var t4, r4 = e4; r4.length > 2; )
55899          t4 = r4.slice(0, 9), r4 = parseInt(t4, 10) % 97 + r4.slice(t4.length);
55900        return parseInt(r4, 10) % 97;
55901      }, f2 = function() {
55902        function e4(t4) {
55903          (0, i.default)(this, e4), this._iban = t4;
55904        }
55905        return (0, o.default)(e4, [{ key: "isValid", value: function() {
55906          return /^XE[0-9]{2}(ETH[0-9A-Z]{13}|[0-9A-Z]{30,31})$/.test(this._iban) && 1 === c2(u2(this._iban));
55907        } }, { key: "isDirect", value: function() {
55908          return 34 === this._iban.length || 35 === this._iban.length;
55909        } }, { key: "isIndirect", value: function() {
55910          return 20 === this._iban.length;
55911        } }, { key: "checksum", value: function() {
55912          return this._iban.slice(2, 4);
55913        } }, { key: "institution", value: function() {
55914          return this.isIndirect() ? this._iban.slice(7, 11) : "";
55915        } }, { key: "client", value: function() {
55916          return this.isIndirect() ? this._iban.slice(11) : "";
55917        } }, { key: "toAddress", value: function() {
55918          if (this.isDirect()) {
55919            var e5 = this._iban.slice(4), t4 = new s(e5, 36);
55920            return a.toChecksumAddress(t4.toString(16, 20));
55921          }
55922          return "";
55923        } }, { key: "toString", value: function() {
55924          return this._iban;
55925        } }], [{ key: "toAddress", value: function(t4) {
55926          if (!(t4 = new e4(t4)).isDirect())
55927            throw new Error("IBAN is indirect and can't be converted");
55928          return t4.toAddress();
55929        } }, { key: "toIban", value: function(t4) {
55930          return e4.fromAddress(t4).toString();
55931        } }, { key: "fromAddress", value: function(t4) {
55932          if (!a.isAddress(t4))
55933            throw new Error("Provided address is not a valid address: " + t4);
55934          t4 = t4.replace("0x", "").replace("0X", "");
55935          var r4 = function(e5, t5) {
55936            for (var r5 = e5; r5.length < 30; )
55937              r5 = "0" + r5;
55938            return r5;
55939          }(new s(t4, 16).toString(36));
55940          return e4.fromBban(r4.toUpperCase());
55941        } }, { key: "fromBban", value: function(t4) {
55942          return new e4("XE" + ("0" + (98 - c2(u2("XE00" + t4)))).slice(-2) + t4);
55943        } }, { key: "createIndirect", value: function(t4) {
55944          return e4.fromBban("ETH" + t4.institution + t4.identifier);
55945        } }, { key: "isValid", value: function(t4) {
55946          return new e4(t4).isValid();
55947        } }]), e4;
55948      }();
55949      e3.exports = f2;
55950    }, 6306: (e3, t3, r3) => {
55951      var n2 = r3(606), i = r3(3349), o = r3(8161), a = r3(473), s = r3(1314).formatters, u2 = function() {
55952        var e4 = this;
55953        n2.packageInit(this, arguments), this.net = new a(this);
55954        var t4 = null, r4 = "latest";
55955        Object.defineProperty(this, "defaultAccount", { get: function() {
55956          return t4;
55957        }, set: function(e5) {
55958          return e5 && (t4 = o.toChecksumAddress(s.inputAddressFormatter(e5))), u3.forEach(function(e6) {
55959            e6.defaultAccount = t4;
55960          }), e5;
55961        }, enumerable: true }), Object.defineProperty(this, "defaultBlock", { get: function() {
55962          return r4;
55963        }, set: function(e5) {
55964          return r4 = e5, u3.forEach(function(e6) {
55965            e6.defaultBlock = r4;
55966          }), e5;
55967        }, enumerable: true });
55968        var u3 = [new i({ name: "getAccounts", call: "personal_listAccounts", params: 0, outputFormatter: o.toChecksumAddress }), new i({ name: "newAccount", call: "personal_newAccount", params: 1, inputFormatter: [null], outputFormatter: o.toChecksumAddress }), new i({ name: "unlockAccount", call: "personal_unlockAccount", params: 3, inputFormatter: [s.inputAddressFormatter, null, null] }), new i({ name: "lockAccount", call: "personal_lockAccount", params: 1, inputFormatter: [s.inputAddressFormatter] }), new i({ name: "importRawKey", call: "personal_importRawKey", params: 2 }), new i({ name: "sendTransaction", call: "personal_sendTransaction", params: 2, inputFormatter: [s.inputTransactionFormatter, null] }), new i({ name: "signTransaction", call: "personal_signTransaction", params: 2, inputFormatter: [s.inputTransactionFormatter, null] }), new i({ name: "sign", call: "personal_sign", params: 3, inputFormatter: [s.inputSignFormatter, s.inputAddressFormatter, null] }
55968), new i({ name: "ecRecover", call: "personal_ecRecover", params: 2, inputFormatter: [s.inputSignFormatter, null] })];
55969        u3.forEach(function(t5) {
55970          t5.attachToObject(e4), t5.setRequestManager(e4._requestManager), t5.defaultBlock = e4.defaultBlock, t5.defaultAccount = e4.defaultAccount;
55971        });
55972      };
55973      n2.addProviders(u2), e3.exports = u2;
55974    }, 8130: (e3) => {
55975      e3.exports = function(e4) {
55976        var t3, r3 = this;
55977        return this.net.getId().then(function(e5) {
55978          return t3 = e5, r3.getBlock(0);
55979        }).then(function(r4) {
55980          var n2 = "private";
55981          return "0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3" === r4.hash && 1 === t3 && (n2 = "main"), "0x41941023680923e0fe4d74a34bdac8141f2540e3ae90623718e47d66d1ca4a2d" === r4.hash && 3 === t3 && (n2 = "ropsten"), "0x6341fd3daf94b748c72ced5a5b26028f2474f5f00d824504e4fa37a75767e177" === r4.hash && 4 === t3 && (n2 = "rinkeby"), "0xbf7e331f7f7c1dd2e05159666b3bf8bc7a8a3a9eb1d518969eab529dd9b88c1a" === r4.hash && 5 === t3 && (n2 = "goerli"), "0xa3c565fc15c7478862d50ccd6561e3c06b24cc509bf388941c25ea985ce32cb9" === r4.hash && 42 === t3 && (n2 = "kovan"), "function" == typeof e4 && e4(null, n2), n2;
55982        }).catch(function(t4) {
55983          if ("function" != typeof e4)
55984            throw t4;
55985          e4(t4);
55986        });
55987      };
55988    }, 6748: (e3, t3, r3) => {
55989      var n2 = r3(606), i = r3(1314), o = r3(4178).subscriptions, a = r3(3349), s = r3(8161), u2 = r3(473), c2 = r3(715), f2 = r3(6306), d2 = r3(8164), l2 = r3(6), h2 = r3(9819), p2 = r3(9901), b2 = r3(8130), y2 = i.formatters, m2 = function(e4) {
55990        return "string" == typeof e4[0] && 0 === e4[0].indexOf("0x") ? "eth_getBlockByHash" : "eth_getBlockByNumber";
55991      }, v2 = function(e4) {
55992        return "string" == typeof e4[0] && 0 === e4[0].indexOf("0x") ? "eth_getTransactionByBlockHashAndIndex" : "eth_getTransactionByBlockNumberAndIndex";
55993      }, g2 = function(e4) {
55994        return "string" == typeof e4[0] && 0 === e4[0].indexOf("0x") ? "eth_getUncleByBlockHashAndIndex" : "eth_getUncleByBlockNumberAndIndex";
55995      }, w2 = function(e4) {
55996        return "string" == typeof e4[0] && 0 === e4[0].indexOf("0x") ? "eth_getBlockTransactionCountByHash" : "eth_getBlockTransactionCountByNumber";
55997      }, A2 = function(e4) {
55998        return "string" == typeof e4[0] && 0 === e4[0].indexOf("0x") ? "eth_getUncleCountByBlockHash" : "eth_getUncleCountByBlockNumber";
55999      }, k2 = function() {
56000        var e4 = this;
56001        n2.packageInit(this, arguments);
56002        var t4 = this.setRequestManager;
56003        this.setRequestManager = function(r5) {
56004          return t4(r5), e4.net.setRequestManager(r5), e4.personal.setRequestManager(r5), e4.accounts.setRequestManager(r5), e4.Contract._requestManager = e4._requestManager, e4.Contract.currentProvider = e4._provider, true;
56005        };
56006        var r4 = this.setProvider;
56007        this.setProvider = function() {
56008          r4.apply(e4, arguments), e4.setRequestManager(e4._requestManager), e4.ens._detectedAddress = null, e4.ens._lastSyncCheck = null;
56009        };
56010        var i2, k3, _, S2 = false, x2 = null, E2 = "latest", P2 = 50, O2 = 24, B2 = 750, T2 = 1e3, C2 = 10, I2 = 100;
56011        Object.defineProperty(this, "handleRevert", { get: function() {
56012          return S2;
56013        }, set: function(t5) {
56014          S2 = t5, e4.Contract.handleRevert = S2, R2.forEach(function(e5) {
56015            e5.handleRevert = S2;
56016          });
56017        }, enumerable: true }), Object.defineProperty(this, "defaultCommon", { get: function() {
56018          return _;
56019        }, set: function(t5) {
56020          _ = t5, e4.Contract.defaultCommon = _, R2.forEach(function(e5) {
56021            e5.defaultCommon = _;
56022          });
56023        }, enumerable: true }), Object.defineProperty(this, "defaultHardfork", { get: function() {
56024          return k3;
56025        }, set: function(t5) {
56026          k3 = t5, e4.Contract.defaultHardfork = k3, R2.forEach(function(e5) {
56027            e5.defaultHardfork = k3;
56028          });
56029        }, enumerable: true }), Object.defineProperty(this, "defaultChain", { get: function() {
56030          return i2;
56031        }, set: function(t5) {
56032          i2 = t5, e4.Contract.defaultChain = i2, R2.forEach(function(e5) {
56033            e5.defaultChain = i2;
56034          });
56035        }, enumerable: true }), Object.defineProperty(this, "transactionPollingTimeout", { get: function() {
56036          return B2;
56037        }, set: function(t5) {
56038          B2 = t5, e4.Contract.transactionPollingTimeout = B2, R2.forEach(function(e5) {
56039            e5.transactionPollingTimeout = B2;
56040          });
56041        }, enumerable: true }), Object.defineProperty(this, "transactionPollingInterval", { get: function() {
56042          return T2;
56043        }, set: function(t5) {
56044          T2 = t5, e4.Contract.transactionPollingInterval = T2, R2.forEach(function(e5) {
56045            e5.transactionPollingInterval = T2;
56046          });
56047        }, enumerable: true }), Object.defineProperty(this, "transactionConfirmationBlocks", { get: function() {
56048          return O2;
56049        }, set: function(t5) {
56050          O2 = t5, e4.Contract.transactionConfirmationBlocks = O2, R2.forEach(function(e5) {
56051            e5.transactionConfirmationBlocks = O2;
56052          });
56053        }, enumerable: true }), Object.defineProperty(this, "transactionBlockTimeout", { get: function() {
56054          return P2;
56055        }, set: function(t5) {
56056          P2 = t5, e4.Contract.transactionBlockTimeout = P2, R2.forEach(function(e5) {
56057            e5.transactionBlockTimeout = P2;
56058          });
56059        }, enumerable: true }), Object.defineProperty(this, "blockHeaderTimeout", { get: function() {
56060          return C2;
56061        }, set: function(t5) {
56062          C2 = t5, e4.Contract.blockHeaderTimeout = C2, R2.forEach(function(e5) {
56063            e5.blockHeaderTimeout = C2;
56064          });
56065        }, enumerable: true }), Object.defineProperty(this, "defaultAccount", { get: function() {
56066          return x2;
56067        }, set: function(t5) {
56068          return t5 && (x2 = s.toChecksumAddress(y2.inputAddressFormatter(t5))), e4.Contract.defaultAccount = x2, e4.personal.defaultAccount = x2, R2.forEach(function(e5) {
56069            e5.defaultAccount = x2;
56070          }), t5;
56071        }, enumerable: true }), Object.defineProperty(this, "defaultBlock", { get: function() {
56072          return E2;
56073        }, set: function(t5) {
56074          return E2 = t5, e4.Contract.defaultBlock = E2, e4.personal.defaultBlock = E2, R2.forEach(function(e5) {
56075            e5.defaultBlock = E2;
56076          }), t5;
56077        }, enumerable: true }), Object.defineProperty(this, "maxListenersWarningThreshold", { get: function() {
56078          return I2;
56079        }, set: function(t5) {
56080          e4.currentProvider && e4.currentProvider.setMaxListeners && (I2 = t5, e4.currentProvider.setMaxListeners(t5));
56081        }, enumerable: true }), this.clearSubscriptions = e4._requestManager.clearSubscriptions.bind(e4._requestManager), this.removeSubscriptionById = e4._requestManager.removeSubscription.bind(e4._requestManager), this.net = new u2(this), this.net.getNetworkType = b2.bind(this), this.accounts = new h2(this), this.personal = new f2(this), this.personal.defaultAccount = this.defaultAccount, this.maxListenersWarningThreshold = I2;
56082        var M2 = this, U2 = function() {
56083          d2.apply(this, arguments);
56084          var e5 = this, t5 = M2.setProvider;
56085          M2.setProvider = function() {
56086            t5.apply(M2, arguments), n2.packageInit(e5, [M2]);
56087          };
56088        };
56089        U2.setProvider = function() {
56090          d2.setProvider.apply(this, arguments);
56091        }, U2.prototype = Object.create(d2.prototype), U2.prototype.constructor = U2, this.Contract = U2, this.Contract.defaultAccount = this.defaultAccount, this.Contract.defaultBlock = this.defaultBlock, this.Contract.transactionBlockTimeout = this.transactionBlockTimeout, this.Contract.transactionConfirmationBlocks = this.transactionConfirmationBlocks, this.Contract.transactionPollingTimeout = this.transactionPollingTimeout, this.Contract.transactionPollingInterval = this.transactionPollingInterval, this.Contract.blockHeaderTimeout = this.blockHeaderTimeout, this.Contract.handleRevert = this.handleRevert, this.Contract._requestManager = this._requestManager, this.Contract._ethAccounts = this.accounts, this.Contract.currentProvider = this._requestManager.provider, this.Iban = l2, this.abi = p2, this.ens = new c2(this);
56092        var R2 = [new a({ name: "getNodeInfo", call: "web3_clientVersion" }), new a({ name: "getProtocolVersion", call: "eth_protocolVersion", params: 0 }), new a({ name: "getCoinbase", call: "eth_coinbase", params: 0 }), new a({ name: "isMining", call: "eth_mining", params: 0 }), new a({ name: "getHashrate", call: "eth_hashrate", params: 0, outputFormatter: s.hexToNumber }), new a({ name: "isSyncing", call: "eth_syncing", params: 0, outputFormatter: y2.outputSyncingFormatter }), new a({ name: "getGasPrice", call: "eth_gasPrice", params: 0, outputFormatter: y2.outputBigNumberFormatter }), new a({ name: "getFeeHistory", call: "eth_feeHistory", params: 3, inputFormatter: [s.numberToHex, y2.inputBlockNumberFormatter, null] }), new a({ name: "getAccounts", call: "eth_accounts", params: 0, outputFormatter: s.toChecksumAddress }), new a({ name: "getBlockNumber", call: "eth_blockNumber", params: 0, outputFormatter: s.hexToNumber }), new a({ name: "getBalance", call: "eth_getBalance", params: 2, inputFormatter: [y2.inputAddressFormatter, y2.inputDefaultBlockNumberFormatter], outputFormatter: y2.outputBigNumberFormatter }), new a({ name: "getStorageAt", call: "eth_getStorageAt", params: 3, inputFormatter: [y2.inputAddressFormatter, s.numberToHex, y2.inputDefaultBlockNumberFormatter] }
56092), new a({ name: "getCode", call: "eth_getCode", params: 2, inputFormatter: [y2.inputAddressFormatter, y2.inputDefaultBlockNumberFormatter] }), new a({ name: "getBlock", call: m2, params: 2, inputFormatter: [y2.inputBlockNumberFormatter, function(e5) {
56093          return !!e5;
56094        }], outputFormatter: y2.outputBlockFormatter }), new a({ name: "getUncle", call: g2, params: 2, inputFormatter: [y2.inputBlockNumberFormatter, s.numberToHex], outputFormatter: y2.outputBlockFormatter }), new a({ name: "getBlockTransactionCount", call: w2, params: 1, inputFormatter: [y2.inputBlockNumberFormatter], outputFormatter: s.hexToNumber }), new a({ name: "getBlockUncleCount", call: A2, params: 1, inputFormatter: [y2.inputBlockNumberFormatter], outputFormatter: s.hexToNumber }), new a({ name: "getTransaction", call: "eth_getTransactionByHash", params: 1, inputFormatter: [null], outputFormatter: y2.outputTransactionFormatter }), new a({ name: "getTransactionFromBlock", call: v2, params: 2, inputFormatter: [y2.inputBlockNumberFormatter, s.numberToHex], outputFormatter: y2.outputTransactionFormatter }), new a({ name: "getTransactionReceipt", call: "eth_getTransactionReceipt", params: 1, inputFormatter: [null], outputFormatter: y2.outputTransactionReceiptFormatter }), new a({ name: "getTransactionCount", call: "eth_getTransactionCount", params: 2, inputFormatter: [y2.inputAddressFormatter, y2.inputDefaultBlockNumberFormatter], outputFormatter: s.hexToNumber }), new a({ name: "sendSignedTransaction", call: "eth_sendRawTransaction", params: 1, inputFormatter: [null], abiCoder: p2 }), new a({ name: "signTransaction", call: "eth_signTransaction", params: 1, inputFormatter: [y2.inputTransactionFormatter] }), new a({ name: "sendTransaction", call: "eth_sendTransaction", params: 1, inputFormatter: [y2.inputTransactionFormatter], abiCoder: p2 }), new a({ name: "sign", call: "eth_sign", params: 2, inputFormatter: [y2.inputSignFormatter, y2.inputAddressFormatter], transformPayload: function(e5) {
56095          return e5.params.reverse(), e5;
56096        } }), new a({ name: "call", call: "eth_call", params: 2, inputFormatter: [y2.inputCallFormatter, y2.inputDefaultBlockNumberFormatter], abiCoder: p2 }), new a({ name: "estimateGas", call: "eth_estimateGas", params: 1, inputFormatter: [y2.inputCallFormatter], outputFormatter: s.hexToNumber }), new a({ name: "submitWork", call: "eth_submitWork", params: 3 }), new a({ name: "getWork", call: "eth_getWork", params: 0 }), new a({ name: "getPastLogs", call: "eth_getLogs", params: 1, inputFormatter: [y2.inputLogFormatter], outputFormatter: y2.outputLogFormatter }), new a({ name: "getChainId", call: "eth_chainId", params: 0, outputFormatter: s.hexToNumber }), new a({ name: "requestAccounts", call: "eth_requestAccounts", params: 0, outputFormatter: s.toChecksumAddress }), new a({ name: "getProof", call: "eth_getProof", params: 3, inputFormatter: [y2.inputAddressFormatter, y2.inputStorageKeysFormatter, y2.inputDefaultBlockNumberFormatter], outputFormatter: y2.outputProofFormatter }), new a({ name: "getPendingTransactions", call: "eth_pendingTransactions", params: 0, outputFormatter: y2.outputTransactionFormatter }), new a({ name: "createAccessList", call: "eth_createAccessList", params: 2, inputFormatter: [y2.inputTransactionFormatter, y2.inputDefaultBlockNumberFormatter] }), new o({ name: "subscribe", type: "eth", subscriptions: { newBlockHeaders: { subscriptionName: "newHeads", params: 0, outputFormatter: y2.outputBlockFormatter }, pendingTransactions: { subscriptionName: "newPendingTransactions", params: 0 }, logs: { params: 1, inputFormatter: [y2.inputLogFormatter], outputFormatter: y2.outputLogFormatter, subscriptionHandler: function(e5) {
56097          e5.removed ? this.emit("changed", e5) : this.emit("data", e5), "function" == typeof this.callback && this.callback(null, e5, this);
56098        } }, syncing: { params: 0, outputFormatter: y2.outputSyncingFormatter, subscriptionHandler: function(e5) {
56099          var t5 = this;
56100          true !== this._isSyncing ? (this._isSyncing = true, this.emit("changed", t5._isSyncing), "function" == typeof this.callback && this.callback(null, t5._isSyncing, this), setTimeout(function() {
56101            t5.emit("data", e5), "function" == typeof t5.callback && t5.callback(null, e5, t5);
56102          }
56102, 0)) : (this.emit("data", e5), "function" == typeof t5.callback && this.callback(null, e5, this), clearTimeout(this._isSyncingTimeout), this._isSyncingTimeout = setTimeout(function() {
56103            e5.currentBlock > e5.highestBlock - 200 && (t5._isSyncing = false, t5.emit("changed", t5._isSyncing), "function" == typeof t5.callback && t5.callback(null, t5._isSyncing, t5));
56104          }, 500));
56105        } } } })];
56106        R2.forEach(function(t5) {
56107          t5.attachToObject(e4), t5.setRequestManager(e4._requestManager, e4.accounts), t5.defaultBlock = e4.defaultBlock, t5.defaultAccount = e4.defaultAccount, t5.transactionBlockTimeout = e4.transactionBlockTimeout, t5.transactionConfirmationBlocks = e4.transactionConfirmationBlocks, t5.transactionPollingTimeout = e4.transactionPollingTimeout, t5.transactionPollingInterval = e4.transactionPollingInterval, t5.handleRevert = e4.handleRevert;
56108        });
56109      };
56110      n2.addProviders(k2), e3.exports = k2;
56111    }, 473: (e3, t3, r3) => {
56112      var n2 = r3(606), i = r3(3349), o = r3(8161), a = function() {
56113        var e4 = this;
56114        n2.packageInit(this, arguments), [new i({ name: "getId", call: "net_version", params: 0, outputFormatter: parseInt }), new i({ name: "isListening", call: "net_listening", params: 0 }), new i({ name: "getPeerCount", call: "net_peerCount", params: 0, outputFormatter: o.hexToNumber })].forEach(function(t4) {
56115          t4.attachToObject(e4), t4.setRequestManager(e4._requestManager);
56116        });
56117      };
56118      n2.addProviders(a), e3.exports = a;
56119    }, 4565: (e3, t3, r3) => {
56120      var n2 = r3(1314).errors, i = r3(9519), o = r3(912);
56121      r3(2439), r3(4258).polyfill(), void 0 === r3.g || r3.g.AbortController || r3(3368);
56122      var a = function(e4, t4) {
56123        t4 = t4 || {}, this.withCredentials = t4.withCredentials, this.timeout = t4.timeout || 0, this.headers = t4.headers, this.agent = t4.agent, this.connected = false;
56124        var r4 = false !== t4.keepAlive;
56125        this.host = e4 || "http://localhost:8545", this.agent || ("https" === this.host.substring(0, 5) ? this.httpsAgent = new o.Agent({ keepAlive: r4 }) : this.httpAgent = new i.Agent({ keepAlive: r4 }));
56126      };
56127      a.prototype.send = function(e4, t4) {
56128        var r4, i2 = { method: "POST", body: JSON.stringify(e4) }, o2 = {};
56129        if ("undefined" != typeof AbortController ? r4 = new AbortController() : "undefined" != typeof window && void 0 !== window.AbortController && (r4 = new window.AbortController()), void 0 !== r4 && (i2.signal = r4.signal), "undefined" == typeof XMLHttpRequest) {
56130          var a2 = { httpsAgent: this.httpsAgent, httpAgent: this.httpAgent };
56131          this.agent && (a2.httpsAgent = this.agent.https, a2.httpAgent = this.agent.http), "https" === this.host.substring(0, 5) ? i2.agent = a2.httpsAgent : i2.agent = a2.httpAgent;
56132        }
56133        this.headers && this.headers.forEach(function(e5) {
56134          o2[e5.name] = e5.value;
56135        }), o2["Content-Type"] || (o2["Content-Type"] = "application/json"), this.withCredentials ? i2.credentials = "include" : i2.credentials = "omit", i2.headers = o2, this.timeout > 0 && void 0 !== r4 && (this.timeoutId = setTimeout(function() {
56136          r4.abort();
56137        }, this.timeout)), fetch(this.host, i2).then(function(e5) {
56138          void 0 !== this.timeoutId && clearTimeout(this.timeoutId), e5.json().then(function(e6) {
56139            t4(null, e6);
56140          }).catch(function(r5) {
56141            t4(n2.InvalidResponse(e5));
56142          });
56143        }.bind(this)).catch(function(e5) {
56144          void 0 !== this.timeoutId && clearTimeout(this.timeoutId), "AbortError" === e5.name && t4(n2.ConnectionTimeout(this.timeout)), t4(n2.InvalidConnection(this.host));
56145        }.bind(this));
56146      }, a.prototype.disconnect = function() {
56147      }, a.prototype.supportsSubscriptions = function() {
56148        return false;
56149      }, e3.exports = a;
56150    }, 2683: (e3, t3, r3) => {
56151      var n2 = r3(1314).errors, i = r3(3150), o = function(e4, t4) {
56152        var r4 = this;
56153        this.responseCallbacks = {}, this.notificationCallbacks = [], this.path = e4, this.connected = false, this.connection = t4.connect({ path: this.path }), this.addDefaultEvents();
56154        var n3 = function(e5) {
56155          var t5 = null;
56156          Array.isArray(e5) ? e5.forEach(function(e6) {
56157            r4.responseCallbacks[e6.id] && (t5 = e6.id);
56158          }) : t5 = e5.id, t5 || -1 === e5.method.indexOf("_subscription") ? r4.responseCallbacks[t5] && (r4.responseCallbacks[t5](null, e5), delete r4.responseCallbacks[t5]) : r4.notificationCallbacks.forEach(function(t6) {
56159            "function" == typeof t6 && t6(e5);
56160          });
56161        };
56162        "Socket" === t4.constructor.name ? i(this.connection).done(n3) : this.connection.on("data", function(e5) {
56163          r4._parseResponse(e5.toString()).forEach(n3);
56164        });
56165      };
56166      o.prototype.addDefaultEvents = function() {
56167        var e4 = this;
56168        this.connection.on("connect", function() {
56169          e4.connected = true;
56170        }), this.connection.on("close", function() {
56171          e4.connected = false;
56172        }), this.connection.on("error", function() {
56173          e4._timeout();
56174        }), this.connection.on("end", function() {
56175          e4._timeout();
56176        }), this.connection.on("timeout", function() {
56177          e4._timeout();
56178        });
56179      }, o.prototype._parseResponse = function(e4) {
56180        var t4 = this, r4 = [];
56181        return e4.replace(/\}[\n\r]?\{/g, "}|--|{").replace(/\}\][\n\r]?\[\{/g, "}]|--|[{").replace(/\}[\n\r]?\[\{/g, "}|--|[{").replace(/\}\][\n\r]?\{/g, "}]|--|{").split("|--|").forEach(function(e5) {
56182          t4.lastChunk && (e5 = t4.lastChunk + e5);
56183          var i2 = null;
56184          try {
56185            i2 = JSON.parse(e5);
56186          } catch (r5) {
56187            return t4.lastChunk = e5, clearTimeout(t4.lastChunkTimeout), void (t4.lastChunkTimeout = setTimeout(function() {
56188              throw t4._timeout(), n2.InvalidResponse(e5);
56189            }, 15e3));
56190          }
56191          clearTimeout(t4.lastChunkTimeout), t4.lastChunk = null, i2 && r4.push(i2);
56192        }), r4;
56193      }, o.prototype._addResponseCallback = function(e4, t4) {
56194        var r4 = e4.id || e4[0].id, n3 = e4.method || e4[0].method;
56195        this.responseCallbacks[r4] = t4, this.responseCallbacks[r4].method = n3;
56196      }, o.prototype._timeout = function() {
56197        for (var e4 in this.responseCallbacks)
56198          this.responseCallbacks.hasOwnProperty(e4) && (this.responseCallbacks[e4](n2.InvalidConnection("on IPC")), delete this.responseCallbacks[e4]);
56199      }, o.prototype.reconnect = function() {
56200        this.connection.connect({ path: this.path });
56201      }, o.prototype.send = function(e4, t4) {
56202        this.connection.writable || this.connection.connect({ path: this.path }), this.connection.write(JSON.stringify(e4)), this._addResponseCallback(e4, t4);
56203      }, o.prototype.on = function(e4, t4) {
56204        if ("function" != typeof t4)
56205          throw new Error("The second parameter callback must be a function.");
56206        "data" === e4 ? this.notificationCallbacks.push(t4) : this.connection.on(e4, t4);
56207      }, o.prototype.once = function(e4, t4) {
56208        if ("function" != typeof t4)
56209          throw new Error("The second parameter callback must be a function.");
56210        this.connection.once(e4, t4);
56211      }, o.prototype.removeListener = function(e4, t4) {
56212        var r4 = this;
56213        "data" === e4 ? this.notificationCallbacks.forEach(function(e5, n3) {
56214          e5 === t4 && r4.notificationCallbacks.splice(n3, 1);
56215        }) : this.connection.removeListener(e4, t4);
56216      }, o.prototype.removeAllListeners = function(e4) {
56217        "data" === e4 ? this.notificationCallbacks = [] : this.connection.removeAllListeners(e4);
56218      }, o.prototype.reset = function() {
56219        this._timeout(), this.notificationCallbacks = [], this.connection.removeAllListeners("error"), this.connection.removeAllListeners("end"), this.connection.removeAllListeners("timeout"), this.addDefaultEvents();
56220      }, o.prototype.supportsSubscriptions = function() {
56221        return true;
56222      }, e3.exports = o;
56223    }, 360: (e3, t3, r3) => {
56224      var n2 = r3(9142), i = r3(9033).Buffer, o = r3(8847)(r3(3355)), a = "[object process]" === Object.prototype.toString.call(void 0 !== n2 ? n2 : 0), s = "undefined" != typeof navigator && "ReactNative" === navigator.product, u2 = null, c2 = null;
56225      if (a || s) {
56226        u2 = function(e4) {
56227          return i.from(e4).toString("base64");
56228        };
56229        var f2 = r3(1143);
56230        if (f2.URL) {
56231          var d2 = f2.URL;
56232          c2 = function(e4) {
56233            return new d2(e4);
56234          };
56235        } else
56236          c2 = r3(1143).parse;
56237      } else
56238        u2 = btoa.bind("object" === ("undefined" == typeof globalThis ? "undefined" : (0, o.default)(globalThis)) ? globalThis : self), c2 = function(e4) {
56239          return new URL(e4);
56240        };
56241      e3.exports = { parseURL: c2, btoa: u2 };
56242    }, 7651: (e3, t3, r3) => {
56243      var n2 = r3(8008), i = r3(360), o = r3(1314).errors, a = r3(1158).w3cwebsocket, s = function(e4, t4) {
56244        n2.call(this), t4 = t4 || {}, this.url = e4, this._customTimeout = t4.timeout || 15e3, this.headers = t4.headers || {}, this.protocol = t4.protocol || void 0, this.reconnectOptions = Object.assign({ auto: fal
56244se, delay: 5e3, maxAttempts: false, onTimeout: false }, t4.reconnect), this.clientConfig = t4.clientConfig || void 0, this.requestOptions = t4.requestOptions || void 0, this.DATA = "data", this.CLOSE = "close", this.ERROR = "error", this.CONNECT = "connect", this.RECONNECT = "reconnect", this.connection = null, this.requestQueue = /* @__PURE__ */ new Map(), this.responseQueue = /* @__PURE__ */ new Map(), this.reconnectAttempts = 0, this.reconnecting = false;
56245        var r4 = i.parseURL(e4);
56246        r4.username && r4.password && (this.headers.authorization = "Basic " + i.btoa(r4.username + ":" + r4.password)), r4.auth && (this.headers.authorization = "Basic " + i.btoa(r4.auth)), Object.defineProperty(this, "connected", { get: function() {
56247          return this.connection && this.connection.readyState === this.connection.OPEN;
56248        }, enumerable: true }), this.connect();
56249      };
56250      (s.prototype = Object.create(n2.prototype)).constructor = s, s.prototype.connect = function() {
56251        this.connection = new a(this.url, this.protocol, void 0, this.headers, this.requestOptions, this.clientConfig), this._addSocketListeners();
56252      }, s.prototype._onMessage = function(e4) {
56253        var t4 = this;
56254        this._parseResponse("string" == typeof e4.data ? e4.data : "").forEach(function(e5) {
56255          if (e5.method && -1 !== e5.method.indexOf("_subscription"))
56256            t4.emit(t4.DATA, e5);
56257          else {
56258            var r4 = e5.id;
56259            Array.isArray(e5) && (r4 = e5[0].id), t4.responseQueue.has(r4) && (void 0 !== t4.responseQueue.get(r4).callback && t4.responseQueue.get(r4).callback(false, e5), t4.responseQueue.delete(r4));
56260          }
56261        });
56262      }, s.prototype._onConnect = function() {
56263        if (this.emit(this.CONNECT), this.reconnectAttempts = 0, this.reconnecting = false, this.requestQueue.size > 0) {
56264          var e4 = this;
56265          this.requestQueue.forEach(function(t4, r4) {
56266            e4.send(t4.payload, t4.callback), e4.requestQueue.delete(r4);
56267          });
56268        }
56269      }, s.prototype._onClose = function(e4) {
56270        var t4 = this;
56271        !this.reconnectOptions.auto || [1e3, 1001].includes(e4.code) && false !== e4.wasClean ? (this.emit(this.CLOSE, e4), this.requestQueue.size > 0 && this.requestQueue.forEach(function(r4, n3) {
56272          r4.callback(o.ConnectionNotOpenError(e4)), t4.requestQueue.delete(n3);
56273        }), this.responseQueue.size > 0 && this.responseQueue.forEach(function(r4, n3) {
56274          r4.callback(o.InvalidConnection("on WS", e4)), t4.responseQueue.delete(n3);
56275        }), this._removeSocketListeners(), this.removeAllListeners()) : this.reconnect();
56276      }, s.prototype._addSocketListeners = function() {
56277        this.connection.addEventListener("message", this._onMessage.bind(this)), this.connection.addEventListener("open", this._onConnect.bind(this)), this.connection.addEventListener("close", this._onClose.bind(this));
56278      }, s.prototype._removeSocketListeners = function() {
56279        this.connection.removeEventListener("message", this._onMessage), this.connection.removeEventListener("open", this._onConnect), this.connection.removeEventListener("close", this._onClose);
56280      }, s.prototype._parseResponse = function(e4) {
56281        var t4 = this, r4 = [];
56282        return e4.replace(/\}[\n\r]?\{/g, "}|--|{").replace(/\}\][\n\r]?\[\{/g, "}]|--|[{").replace(/\}[\n\r]?\[\{/g, "}|--|[{").replace(/\}\][\n\r]?\{/g, "}]|--|{").split("|--|").forEach(function(e5) {
56283          t4.lastChunk && (e5 = t4.lastChunk + e5);
56284          var n3 = null;
56285          try {
56286            n3 = JSON.parse(e5);
56287          } catch (r5) {
56288            return t4.lastChunk = e5, clearTimeout(t4.lastChunkTimeout), void (t4.lastChunkTimeout = setTimeout(function() {
56289              t4.reconnectOptions.auto && t4.reconnectOptions.onTimeout ? t4.reconnect() : (t4.emit(t4.ERROR, o.ConnectionTimeout(t4._customTimeout)), t4.requestQueue.size > 0 && t4.requestQueue.forEach(function(e6, r6) {
56290                e6.callback(o.ConnectionTimeout(t4._customTimeout)), t4.requestQueue.delete(r6);
56291              }));
56292            }, t4._customTimeout));
56293          }
56294          clearTimeout(t4.lastChunkTimeout), t4.lastChunk = null, n3 && r4.push(n3);
56295        }), r4;
56296      }, s.prototype.send = function(e4, t4) {
56297        var r4 = e4.id, n3 = { payload: e4, callback: t4 };
56298        if (Array.isArray(e4) && (r4 = e4[0].id), this.connection.readyState === this.connection.CONNECTING || this.reconnecting)
56299          this.requestQueue.set(r4, n3);
56300        else {
56301          if (this.connection.readyState !== this.connection.OPEN)
56302            return this.requestQueue.delete(r4), this.emit(this.ERROR, o.ConnectionNotOpenError()), void n3.callback(o.ConnectionNotOpenError());
56303          this.responseQueue.set(r4, n3), this.requestQueue.delete(r4);
56304          try {
56305            this.connection.send(JSON.stringify(n3.payload));
56306          } catch (e5) {
56307            n3.callback(e5), this.responseQueue.delete(r4);
56308          }
56309        }
56310      }, s.prototype.reset = function() {
56311        this.responseQueue.clear(), this.requestQueue.clear(), this.removeAllListeners(), this._removeSocketListeners(), this._addSocketListeners();
56312      }, s.prototype.disconnect = function(e4, t4) {
56313        this._removeSocketListeners(), this.connection.close(e4 || 1e3, t4);
56314      }, s.prototype.supportsSubscriptions = function() {
56315        return true;
56316      }, s.prototype.reconnect = function() {
56317        var e4 = this;
56318        this.reconnecting = true, this.responseQueue.size > 0 && this.responseQueue.forEach(function(t4, r4) {
56319          t4.callback(o.PendingRequestsOnReconnectingError()), e4.responseQueue.delete(r4);
56320        }), !this.reconnectOptions.maxAttempts || this.reconnectAttempts < this.reconnectOptions.maxAttempts ? setTimeout(function() {
56321          e4.reconnectAttempts++, e4._removeSocketListeners(), e4.emit(e4.RECONNECT, e4.reconnectAttempts), e4.connect();
56322        }
56322, this.reconnectOptions.delay) : (this.emit(this.ERROR, o.MaxAttemptsReachedOnReconnectingError()), this.reconnecting = false, this.requestQueue.size > 0 && this.requestQueue.forEach(function(t4, r4) {
56323          t4.callback(o.MaxAttemptsReachedOnReconnectingError()), e4.requestQueue.delete(r4);
56324        }));
56325      }, e3.exports = s;
56326    }, 2565: (e3, t3, r3) => {
56327      var n2 = r3(606), i = r3(4178).subscriptions, o = r3(3349), a = r3(473), s = function() {
56328        var e4 = this;
56329        n2.packageInit(this, arguments);
56330        var t4 = this.setRequestManager;
56331        this.setRequestManager = function(r5) {
56332          return t4(r5), e4.net.setRequestManager(r5), true;
56333        };
56334        var r4 = this.setProvider;
56335        this.setProvider = function() {
56336          r4.apply(e4, arguments), e4.setRequestManager(e4._requestManager);
56337        }, this.net = new a(this), [new i({ name: "subscribe", type: "shh", subscriptions: { messages: { params: 1 } } }), new o({ name: "getVersion", call: "shh_version", params: 0 }), new o({ name: "getInfo", call: "shh_info", params: 0 }), new o({ name: "setMaxMessageSize", call: "shh_setMaxMessageSize", params: 1 }), new o({ name: "setMinPoW", call: "shh_setMinPoW", params: 1 }), new o({ name: "markTrustedPeer", call: "shh_markTrustedPeer", params: 1 }), new o({ name: "newKeyPair", call: "shh_newKeyPair", params: 0 }), new o({ name: "addPrivateKey", call: "shh_addPrivateKey", params: 1 }), new o({ name: "deleteKeyPair", call: "shh_deleteKeyPair", params: 1 }), new o({ name: "hasKeyPair", call: "shh_hasKeyPair", params: 1 }), new o({ name: "getPublicKey", call: "shh_getPublicKey", params: 1 }), new o({ name: "getPrivateKey", call: "shh_getPrivateKey", params: 1 }), new o({ name: "newSymKey", call: "shh_newSymKey", params: 0 }), new o({ name: "addSymKey", call: "shh_addSymKey", params: 1 }), new o({ name: "generateSymKeyFromPassword", call: "shh_generateSymKeyFromPassword", params: 1 }), new o({ name: "hasSymKey", call: "shh_hasSymKey", params: 1 }), new o({ name: "getSymKey", call: "shh_getSymKey", params: 1 }), new o({ name: "deleteSymKey", call: "shh_deleteSymKey", params: 1 }), new o({ name: "newMessageFilter", call: "shh_newMessageFilter", params: 1 }), new o({ name: "getFilterMessages", call: "shh_getFilterMessages", params: 1 }), new o({ name: "deleteMessageFilter", call: "shh_deleteMessageFilter", params: 1 }), new o({ name: "post", call: "shh_post", params: 1, inputFormatter: [null] }), new o({ name: "unsubscribe", call: "shh_unsubscribe", params: 1 })].forEach(function(t5) {
56338          t5.attachToObject(e4), t5.setRequestManager(e4._requestManager);
56339        });
56340      };
56341      s.prototype.clearSubscriptions = function() {
56342        this._requestManager.clearSubscriptions();
56343      }, n2.addProviders(s), e3.exports = s;
56344    }, 8161: (e3, t3, r3) => {
56345      var n2 = r3(8847)(r3(3355)), i = r3(7130), o = r3(323), a = r3(747), s = r3(5010), u2 = r3(1734), c2 = function e4(t4, r4) {
56346        var i2 = [];
56347        return r4.forEach(function(r5) {
56348          if ("object" === (0, n2.default)(r5.components)) {
56349            if ("tuple" !== r5.type.substring(0, 5))
56350              throw new Error("components found but type is not tuple; report on GitHub");
56351            var o2 = "", a2 = r5.type.indexOf("[");
56352            a2 >= 0 && (o2 = r5.type.substring(a2));
56353            var s2 = e4(t4, r5.components);
56354            Array.isArray(s2) && t4 ? i2.push("tuple(" + s2.join(",") + ")" + o2) : t4 ? i2.push("(" + s2 + ")") : i2.push("(" + s2.join(",") + ")" + o2);
56355          } else
56356            i2.push(r5.type);
56357        }), i2;
56358      }, f2 = function(e4) {
56359        if (!o.isHexStrict(e4))
56360          throw new Error("The parameter must be a valid HEX string.");
56361        var t4 = "", r4 = 0, n3 = e4.length;
56362        for ("0x" === e4.substring(0, 2) && (r4 = 2); r4 < n3; r4 += 2) {
56363          var i2 = parseInt(e4.slice(r4, r4 + 2), 16);
56364          t4 += String.fromCharCode(i2);
56365        }
56366        return t4;
56367      }, d2 = function(e4) {
56368        if (!e4)
56369          return "0x00";
56370        for (var t4 = "", r4 = 0; r4 < e4.length; r4++) {
56371          var n3 = e4.charCodeAt(r4).toString(16);
56372          t4 += n3.length < 2 ? "0" + n3 : n3;
56373        }
56374        return "0x" + t4;
56375      }, l2 = function(e4) {
56376        if (e4 = e4 ? e4.toLowerCase() : "ether", !i.unitMap[e4])
56377          throw new Error('This unit "' + e4 + `" doesn't exist, please use the one of the following units` + JSON.stringify(i.unitMap, null, 2));
56378        return e4;
56379      };
56380      e3.exports = { _fireError: function(e4, t4, r4, i2, o2) {
56381        return !e4 || "object" !== (0, n2.default)(e4) || e4 instanceof Error || !e4.data || ((e4.data && "object" === (0, n2.default)(e4.data) || Array.isArray(e4.data)) && (e4.data = JSON.stringify(e4.data, null, 2)), e4 = e4.message + "\n" + e4.data), "string" == typeof e4 && (e4 = new Error(e4)), "function" == typeof i2 && i2(e4, o2), "function" == typeof r4 && ((t4 && "function" == typeof t4.listeners && t4.listeners("error").length || "function" == typeof i2) && t4.catch(function() {
56382        }), setTimeout(function() {
56383          r4(e4);
56384        }, 1)), t4 && "function" == typeof t4.emit && setTimeout(function() {
56385          t4.emit("error", e4, o2), t4.removeAllListeners();
56386        }, 1), t4;
56387      }, _jsonInterfaceMethodToString: function(e4) {
56388        return e4 && "object" === (0, n2.default)(e4) && e4.name && -1 !== e4.name.indexOf("(") ? e4.name : e4.name + "(" + c2(false, e4.inputs).join(",") + ")";
56389      }, _flattenTypes: c2, randomHex: function(e4) {
56390        return "0x" + s(e4).toString("hex");
56391      }, BN: o.BN, isBN: o.isBN, isBigNumber: o.isBigNumber, isHex: o.isHex, isHexStrict: o.isHexStrict, sha3: o.sha3, sha3Raw: o.sha3Raw, keccak256: o.sha3, soliditySha3: a.soliditySha3, soliditySha3Raw: a.soliditySha3Raw, encodePacked: a.encodePacked, isAddress: o.isAddress, checkAddressChecksum: o.checkAddressChecksum, toChecksumAddress: function(e4) {
56392        if (void 0 === e4)
56393          return "";
56394        if (!/^(0x)?[0-9a-f]{40}$/i.test(e4))
56395          throw new Error('Given address "' + e4 + '" is not a valid Ethereum address.');
56396        e4 = e4.toLowerCase().replace(/^0x/i, "");
56397        for (var t4 = o.sha3(e4).replace(/^0x/i, ""), r4 = "0x", n3 = 0; n3 < e4.length; n3++)
56398          parseInt(t4[n3], 16) > 7 ? r4 += e4[n3].toUpperCase() : r4 += e4[n3];
56399        return r4;
56400      }, toHex: o.toHex, toBN: o.toBN, bytesToHex: o.bytesToHex, hexToBytes: o.hexToBytes, hexToNumberString: o.hexToNumberString, hexToNumber: o.hexToNumber, toDecimal: o.hexToNumber, numberToHex: o.numberToHex, fromDecimal: o.numberToHex, hexToUtf8: o.hexToUtf8, hexToString: o.hexToUtf8, toUtf8: o.hexToUtf8, stripHexPrefix: o.stripHexPrefix, utf8ToHex: o.utf8ToHex, stringToHex: o.utf8ToHex, fromUtf8: o.utf8ToHex, hexToAscii: f2, toAscii: f2, asciiToHex: d2, fromAscii: d2, unitMap: i.unitMap, toWei: function(e4, t4) {
56401        if (t4 = l2(t4), !o.isBN(e4) && "string" != typeof e4)
56402          throw new Error("Please pass numbers as strings or BN objects to avoid precision errors.");
56403        return o.isBN(e4) ? i.toWei(e4, t4) : i.toWei(e4, t4).toString(10);
56404      }, fromWei: function(e4, t4) {
56405        if (t4 = l2(t4), !o.isBN(e4) && "string" != typeof e4)
56406          throw new Error("Please pass numbers as strings or BN objects to avoid precision errors.");
56407        return o.isBN(e4) ? i.fromWei(e4, t4) : i.fromWei(e4, t4).toString(10);
56408      }, padLeft: o.leftPad, leftPad: o.leftPad, padRight: o.rightPad, rightPad: o.rightPad, toTwosComplement: o.toTwosComplement, isBloom: o.isBloom, isUserEthereumAddressInBloom: o.isUserEthereumAddressInBloom, isContractAddressInBloom: o.isContractAddressInBloom, isTopic: o.isTopic, isTopicInBloom: o.isTopicInBloom, isInBloom: o.isInBloom, compareBlockNumbers: function(e4, t4) {
56409        if (e4 === t4)
56410          return 0;
56411        if ("genesis" !== e4 && "earliest" !== e4 && 0 !== e4 || "genesis" !== t4 && "earliest" !== t4 && 0 !== t4) {
56412          if ("genesis" === e4 || "earliest" === e4 || 0 === e4)
56413            return -1;
56414          if ("genesis" === t4 || "earliest" === t4 || 0 === t4)
56415            return 1;
56416          if ("latest" === e4 || "finalized" === e4)
56417            return "pending" === t4 ? -1 : 1;
56418          if ("latest" === t4 || "finalized" === t4)
56419            return "pending" === e4 ? 1 : -1;
56420          if ("pending" === e4)
56421            return 1;
56422          if ("pending" === t4)
56423            return -1;
56424          if ("safe" === e4 || "safe" === t4)
56425            return;
56426          var r4 = new u2(e4), n3 = new u2(t4);
56427          return r4.lt(n3) ? -1 : r4.eq(n3) ? 0 : 1;
56428        }
56429        return 0;
56430      }, toNumber: o.toNumber };
56431    }, 747: (e3, t3, r3) => {
56432      var n2 = r3(8847)(r3(3355)), i = r3(1734), o = r3(323), a = function(e4) {
56433        var t4 = (0, n2.default)(e4);
56434        if ("string" === t4)
56435          return o.isHexStrict(e4) ? new i(e4.replace(/0x/i, ""), 16) : new i(e4, 10);
56436        if ("number" === t4)
56437          return new i(e4);
56438        if (o.isBigNumber(e4))
56439          return new i(e4.toString(10));
56440        if (o.isBN(e4))
56441          return e4;
56442        throw new Error(e4 + " is not a number");
56443      }, s = function(e4, t4, r4) {
56444        var n3, s2;
56445        if ("bytes" === (e4 = function(e5) {
56446          return e5.startsWith("int[") ? "int256" + e5.slice(3) : "int" === e5 ? "int256" : e5.startsWith("uint[") ? "uint256" + e5.slice(4) : "uint" === e5 ? "uint256" : e5.startsWith("fixed[") ? "fixed128x128" + e5.slice(5) : "fixed" === e5 ? "fixed128x128" : e5.startsWith("ufixed[") ? "ufixed128x128" + e5.slice(6) : "ufixed" === e5 ? "ufixed128x128" : e5;
56447        }(e4))) {
56448          if (t4.replace(/^0x/i, "").length % 2 != 0)
56449            throw new Error("Invalid bytes characters " + t4.length);
56450          return t4;
56451        }
56452        if ("string" === e4)
56453          return o.utf8ToHex(t4);
56454        if ("bool" === e4)
56455          return t4 ? "01" : "00";
56456        if (e4.startsWith("address")) {
56457          if (n3 = r4 ? 64 : 40, !o.isAddress(t4))
56458            throw new Error(t4 + " is not a valid address, or the checksum is invalid.");
56459          return o.leftPad(t4.toLowerCase(), n3);
56460        }
56461        if (n3 = function(e5) {
56462          var t5 = /^\D+(\d+).*$/.exec(e5);
56463          return t5 ? parseInt(t5[1], 10) : null;
56464        }(e4), e4.startsWith("bytes")) {
56465          if (!n3)
56466            throw new Error("bytes[] not yet supported in solidity");
56467          if (r4 && (n3 = 32), n3 < 1 || n3 > 32 || n3 < t4.replace(/^0x/i, "").length / 2)
56468            throw new Error("Invalid bytes" + n3 + " for " + t4);
56469          return o.rightPad(t4, 2 * n3);
56470        }
56471        if (e4.startsWith("uint")) {
56472          if (n3 % 8 || n3 < 8 || n3 > 256)
56473            throw new Error("Invalid uint" + n3 + " size");
56474          if ((s2 = a(t4)).bitLength() > n3)
56475            throw new Error("Supplied uint exceeds width: " + n3 + " vs " + s2.bitLength());
56476          if (s2.lt(new i(0)))
56477            throw new Error("Supplied uint " + s2.toString() + " is negative");
56478          return n3 ? o.leftPad(s2.toString("hex"), n3 / 8 * 2) : s2;
56479        }
56480        if (e4.startsWith("int")) {
56481          if (n3 % 8 || n3 < 8 || n3 > 256)
56482            throw new Error("Invalid int" + n3 + " size");
56483          if ((s2 = a(t4)).bitLength() > n3)
56484            throw new Error("Supplied int exceeds width: " + n3 + " vs " + s2.bitLength());
56485          return s2.lt(new i(0)) ? s2.toTwos(n3).toString("hex") : n3 ? o.leftPad(s2.toString("hex"), n3 / 8 * 2) : s2;
56486        }
56487        throw new Error("Unsupported or invalid type: " + e4);
56488      }, u2 = function(e4) {
56489        if (Array.isArray(e4))
56490          throw new Error("Autodetection of array types is not supported.");
56491        var t4, r4, a2 = "";
56492        if (e4 && "object" === (0, n2.default)(e4) && (e4.hasOwnProperty("v") || e4.hasOwnProperty("t") || e4.hasOwnProperty("value") || e4.hasOwnProperty("type")) ? (t4 = e4.hasOwnProperty("t") ? e4.t : e4.type, a2 = e4.hasOwnProperty("v") ? e4.v : e4.value) : (t4 = o.toHex(e4, true), a2 = o.toHex(e4), t4.startsWith("int") || t4.startsWith("uint") || (t4 = "bytes")), !t4.startsWith("int") && !t4.startsWith("uint") || "string" != typeof a2 || /^(-)?0x/i.test(a2) || (a2 = new i(a2)), Array.isArray(a2)) {
56493          if (r4 = function(e5) {
56494            var t5 = /^\D+\d*\[(\d+)\]$/.exec(e5);
56495            return t5 ? parseInt(t5[1], 10) : null;
56496          }(t4), r4 && a2.length !== r4)
56497            throw new Error(t4 + " is not matching the given array " + JSON.stringify(a2));
56498          r4 = a2.length;
56499        }
56500        return Array.isArray(a2) ? a2.map(function(e5) {
56501          return s(t4, e5, r4).toString("hex").replace("0x", "");
56502        }).join("") : s(t4, a2, r4).toString("hex").replace("0x", "");
56503      };
56504      e3.exports = { soliditySha3: function() {
56505        var e4 = Array.prototype.slice.call(arguments), t4 = e4.map(u2);
56506        return o.sha3("0x" + t4.join(""));
56507      }, soliditySha3Raw: function() {
56508        return o.sha3Raw("0x" + Array.prototype.slice.call(arguments).map(u2).join(""));
56509      }, encodePacked: function() {
56510        var e4 = Array.prototype.slice.call(arguments), t4 = e4.map(u2);
56511        return "0x" + t4.join("").toLowerCase();
56512      } };
56513    }, 323: (e3, t3, r3) => {
56514      var n2 = r3(9033).Buffer, i = r3(8847), o = i(r3(4519)), a = i(r3(3355)), s = r3(1734), u2 = r3(7277), c2 = r3(8632), f2 = r3(3062), d2 = r3(9313), l2 = function(e4) {
56515        return s.isBN(e4);
56516      }, h2 = function(e4) {
56517        return e4 && e4.constructor && "BigNumber" === e4.constructor.name;
56518      }, p2 = function(e4) {
56519        try {
56520          return u2.apply(null, arguments);
56521        } catch (t4) {
56522          throw new Error(t4 + ' Given value: "' + e4 + '"');
56523        }
56524      }, b2 = function(e4) {
56525        return !!/^(0x)?[0-9a-f]{40}$/i.test(e4) && (!(!/^(0x|0X)?[0-9a-f]{40}$/.test(e4) && !/^(0x|0X)?[0-9A-F]{40}$/.test(e4)) || y2(e4));
56526      }, y2 = function(e4) {
56527        e4 = e4.replace(/^0x/i, "");
56528        for (var t4 = S2(e4.toLowerCase()).replace(/^0x/i, ""), r4 = 0; r4 < 40; r4++)
56529          if (parseInt(t4[r4], 16) > 7 && e4[r4].toUpperCase() !== e4[r4] || parseInt(t4[r4], 16) <= 7 && e4[r4].toLowerCase() !== e4[r4])
56530            return false;
56531        return true;
56532      }, m2 = function(e4) {
56533        var t4 = "";
56534        e4 = (e4 = (e4 = (e4 = (e4 = c2.encode(e4)).replace(/^(?:\u0000)*/, "")).split("").reverse().join("")).replace(/^(?:\u0000)*/, "")).split("").reverse().join("");
56535        for (var r4 = 0; r4 < e4.length; r4++) {
56536          var n3 = e4.charCodeAt(r4).toString(16);
56537          t4 += n3.length < 2 ? "0" + n3 : n3;
56538        }
56539        return "0x" + t4;
56540      }, v2 = function(e4) {
56541        if (!e4)
56542          return e4;
56543        if ("string" == typeof e4 && !A2(e4))
56544          throw new Error('Given value "' + e4 + '" is not a valid hex string.');
56545        return p2(e4).toNumber();
56546      }, g2 = function(e4) {
56547        if (null == e4)
56548          return e4;
56549        if (!isFinite(e4) && !A2(e4))
56550          throw new Error('Given input "' + e4 + '" is not a number.');
56551        var t4 = p2(e4), r4 = t4.toString(16);
56552        return t4.lt(new s(0)) ? "-0x" + r4.slice(1) : "0x" + r4;
56553      }, w2 = function(e4, t4) {
56554        if (b2(e4))
56555          return t4 ? "address" : "0x" + e4.toLowerCase().replace(/^0x/i, "");
56556        if ("boolean" == typeof e4)
56557          return t4 ? "bool" : e4 ? "0x01" : "0x00";
56558        if (n2.isBuffer(e4))
56559          return "0x" + e4.toString("hex");
56560        if ("object" === (0, a.default)(e4) && e4 && !h2(e4) && !l2(e4))
56561          return t4 ? "string" : m2(JSON.stringify(e4));
56562        if ("string" == typeof e4) {
56563          if (0 === e4.indexOf("-0x") || 0 === e4.indexOf("-0X"))
56564            return t4 ? "int256" : g2(e4);
56565          if (0 === e4.indexOf("0x") || 0 === e4.indexOf("0X"))
56566            return t4 ? "bytes" : e4;
56567          if (!isFinite(e4))
56568            return t4 ? "string" : m2(e4);
56569        }
56570        return t4 ? e4 < 0 ? "int256" : "uint256" : g2(e4);
56571      }, A2 = function(e4) {
56572        return ("string" == typeof e4 || "number" == typeof e4) && /^(-)?0x[0-9a-f]*$/i.test(e4);
56573      }, k2 = function(e4) {
56574        return ("string" == typeof e4 || "number" == typeof e4) && /^(-0x|0x)?[0-9a-f]*$/i.test(e4);
56575      }, _ = "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470", S2 = function(e4) {
56576        l2(e4) && (e4 = e4.toString()), A2(e4) && /^0x/i.test(e4.toString()) ? e4 = f2.toBuffer(e4) : "string" == typeof e4 && (e4 = n2.from(e4, "utf-8"));
56577        var t4 = f2.bufferToHex(f2.keccak256(e4));
56578        return t4 === _ ? null : t4;
56579      };
56580      S2._Hash = f2.keccak256;
56581      var x2 = function(e4) {
56582        if ("string" == typeof e4 && e4.includes("0x")) {
56583          var t4 = e4.toLocaleLowerCase().startsWith("-") ? ["-", e4.slice(3)] : ["", e4.slice(2)], r4 = (0, o.default)(t4, 2), n3 = r4[0], i2 = r4[1];
56584          return new s(n3 + i2, 16);
56585        }
56586        return new s(e4);
56587      };
56588      Object.setPrototypeOf(x2, s), Object.setPrototypeOf(x2.prototype, s.prototype), e3.exports = { BN: x2, isBN: l2, isBigNumber: h2, toBN: p2, isAddress: b2, isBloom: function(e4) {
56589        return d2.isBloom(e4);
56590      }, isUserEthereumAddressInBloom: function(e4, t4) {
56591        return d2.isUserEthereumAddressInBloom(e4, t4);
56592      }, isContractAddressInBloom: function(e4, t4) {
56593        return d2.isContractAddressInBloom(e4, t4);
56594      }, isTopic: function(e4) {
56595        return d2.isTopic(e4);
56596      }, isTopicInBloom: function(e4, t4) {
56597        return d2.isTopicInBloom(e4, t4);
56598      }, isInBloom: function(e4, t4) {
56599        return d2.isInBloom(e4, t4);
56600      }, checkAddressChecksum: y2, utf8ToHex: m2, hexToUtf8: function(e4) {
56601        if (!A2(e4))
56602          throw new Error('The parameter "' + e4 + '" must be a valid HEX string.');
56603        for (var t4 = "", r4 = 0, n3 = (e4 = (e4 = (e4 = (e4 = (e4 = e4.replace(/^0x/i, "")).replace(/^(?:00)*/, "")).split("").reverse().join("")).replace(/^(?:00)*/, "")).split("").reverse().join("")).length, i2 = 0; i2 < n3; i2 += 2)
56604          r4 = parseInt(e4.slice(i2, i2 + 2), 16), t4 += String.fromCharCode(r4);
56605        return c2.decode(t4);
56606      }, hexToNumber: v2, hexToNumberString: function(e4) {
56607        if (!e4)
56608          return e4;
56609        if ("string" == typeof e4 && !A2(e4))
56610          throw new Error('Given value "' + e4 + '" is not a valid hex string.');
56611        return p2(e4).toString(10);
56612      }, numberToHex: g2, toHex: w2, hexToBytes: function(e4) {
56613        if (e4 = e4.toString(16), !A2(e4))
56614          throw new Error('Given value "' + e4 + '" is not a valid hex string.');
56615        e4 = e4.replace(/^0x/i, "");
56616        for (var t4 = [], r4 = 0; r4 < e4.length; r4 += 2)
56617          t4.push(parseInt(e4.slice(r4, r4 + 2), 16));
56618        return t4;
56619      }, bytesToHex: function(e4) {
56620        for (var t4 = [], r4 = 0; r4 < e4.length; r4++)
56621          t4.push((e4[r4] >>> 4).toString(16)), t4.push((15 & e4[r4]).toString(16));
56622        return "0x" + t4.join("");
56623      }, isHex: k2, isHexStrict: A2, stripHexPrefix: function(e4) {
56624        return 0 !== e4 && k2(e4) ? e4.replace(/^(-)?0x/i, "$1") : e4;
56625      }, leftPad: function(e4, t4, r4) {
56626        var n3 = /^0x/i.test(e4) || "number" == typeof e4, i2 = t4 - (e4 = e4.toString(16).replace(/^0x/i, "")).length + 1 >= 0 ? t4 - e4.length + 1 : 0;
56627        return (n3 ? "0x" : "") + new Array(i2).join(r4 || "0") + e4;
56628      }, rightPad: function(e4, t4, r4) {
56629        var n3 = /^0x/i.test(e4) || "number" == typeof e4, i2 = t4 - (e4 = e4.toString(16).replace(/^0x/i, "")).length + 1 >= 0 ? t4 - e4.length + 1 : 0;
56630        return (n3 ? "0x" : "") + e4 + new Array(i2).join(r4 || "0");
56631      }
56631, toTwosComplement: function(e4) {
56632        return "0x" + p2(e4).toTwos(256).toString(16, 64);
56633      }, sha3: S2, sha3Raw: function(e4) {
56634        return null === (e4 = S2(e4)) ? _ : e4;
56635      }, toNumber: function(e4) {
56636        return "number" == typeof e4 ? e4 : v2(w2(e4));
56637      } };
56638    }, 7001: (e3, t3, r3) => {
56639      var n2 = r3(8920).i8, i = r3(606), o = r3(6748), a = r3(473), s = r3(6306), u2 = r3(2565), c2 = r3(2463), f2 = r3(8161), d2 = function() {
56640        var e4 = this;
56641        i.packageInit(this, arguments), this.version = n2, this.utils = f2, this.eth = new o(this), this.shh = new u2(this), this.bzz = new c2(this);
56642        var t4 = this.setProvider;
56643        this.setProvider = function(r4, n3) {
56644          return t4.apply(e4, arguments), e4.eth.setRequestManager(e4._requestManager), e4.shh.setRequestManager(e4._requestManager), e4.bzz.setProvider(r4), true;
56645        };
56646      };
56647      d2.version = n2, d2.utils = f2, d2.modules = { Eth: o, Net: a, Personal: s, Shh: u2, Bzz: c2 }, i.addProviders(d2), e3.exports = d2;
56648    }, 9214: () => {
56649    }, 2361: () => {
56650    }, 4616: () => {
56651    }, 8768: (e3) => {
56652      e3.exports = function(e4, t3) {
56653        (null == t3 || t3 > e4.length) && (t3 = e4.length);
56654        for (var r3 = 0, n2 = new Array(t3); r3 < t3; r3++)
56655          n2[r3] = e4[r3];
56656        return n2;
56657      }, e3.exports.__esModule = true, e3.exports.default = e3.exports;
56658    }, 2338: (e3) => {
56659      e3.exports = function(e4) {
56660        if (Array.isArray(e4))
56661          return e4;
56662      }, e3.exports.__esModule = true, e3.exports.default = e3.exports;
56663    }, 7907: (e3, t3, r3) => {
56664      var n2 = r3(8768);
56665      e3.exports = function(e4) {
56666        if (Array.isArray(e4))
56667          return n2(e4);
56668      }, e3.exports.__esModule = true, e3.exports.default = e3.exports;
56669    }, 8975: (e3) => {
56670      e3.exports = function(e4) {
56671        if (void 0 === e4)
56672          throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
56673        return e4;
56674      }, e3.exports.__esModule = true, e3.exports.default = e3.exports;
56675    }, 5698: (e3) => {
56676      function t3(e4, t4, r3, n2, i, o, a) {
56677        try {
56678          var s = e4[o](a), u2 = s.value;
56679        } catch (e5) {
56680          return void r3(e5);
56681        }
56682        s.done ? t4(u2) : Promise.resolve(u2).then(n2, i);
56683      }
56684      e3.exports = function(e4) {
56685        return function() {
56686          var r3 = this, n2 = arguments;
56687          return new Promise(function(i, o) {
56688            var a = e4.apply(r3, n2);
56689            function s(e5) {
56690              t3(a, i, o, s, u2, "next", e5);
56691            }
56692            function u2(e5) {
56693              t3(a, i, o, s, u2, "throw", e5);
56694            }
56695            s(void 0);
56696          });
56697        };
56698      }, e3.exports.__esModule = true, e3.exports.default = e3.exports;
56699    }, 9721: (e3) => {
56700      e3.exports = function(e4, t3) {
56701        if (!(e4 instanceof t3))
56702          throw new TypeError("Cannot call a class as a function");
56703      }, e3.exports.__esModule = true, e3.exports.default = e3.exports;
56704    }, 4727: (e3, t3, r3) => {
56705      var n2 = r3(8746), i = r3(6923);
56706      function o(t4, r4, a) {
56707        return i() ? (e3.exports = o = Reflect.construct.bind(), e3.exports.__esModule = true, e3.exports.default = e3.exports) : (e3.exports = o = function(e4, t5, r5) {
56708          var i2 = [null];
56709          i2.push.apply(i2, t5);
56710          var o2 = new (Function.bind.apply(e4, i2))();
56711          return r5 && n2(o2, r5.prototype), o2;
56712        }, e3.exports.__esModule = true, e3.exports.default = e3.exports), o.apply(null, arguments);
56713      }
56714      e3.exports = o, e3.exports.__esModule = true, e3.exports.default = e3.exports;
56715    }, 8985: (e3, t3, r3) => {
56716      var n2 = r3(2310);
56717      function i(e4, t4) {
56718        for (var r4 = 0; r4 < t4.length; r4++) {
56719          var i2 = t4[r4];
56720          i2.enumerable = i2.enumerable || false, i2.configurable = true, "value" in i2 && (i2.writable = true), Object.defineProperty(e4, n2(i2.key), i2);
56721        }
56722      }
56723      e3.exports = function(e4, t4, r4) {
56724        return t4 && i(e4.prototype, t4), r4 && i(e4, r4), Object.defineProperty(e4, "prototype", { writable: false }), e4;
56725      }, e3.exports.__esModule = true, e3.exports.default = e3.exports;
56726    }, 775: (e3, t3, r3) => {
56727      var n2 = r3(2310);
56728      e3.exports = function(e4, t4, r4) {
56729        return (t4 = n2(t4)) in e4 ? Object.defineProperty(e4, t4, { value: r4, enumerable: true, configurable: true, writable: true }) : e4[t4] = r4, e4;
56730      }, e3.exports.__esModule = true, e3.exports.default = e3.exports;
56731    }, 119: (e3, t3, r3) => {
56732      var n2 = r3(7460);
56733      function i() {
56734        return "undefined" != typeof Reflect && Reflect.get ? (e3.exports = i = Reflect.get.bind(), e3.exports.__esModule = true, e3.exports.default = e3.exports) : (e3.exports = i = function(e4, t4, r4) {
56735          var i2 = n2(e4, t4);
56736          if (i2) {
56737            var o = Object.getOwnPropertyDescriptor(i2, t4);
56738            return o.get ? o.get.call(arguments.length < 3 ? e4 : r4) : o.value;
56739          }
56740        }, e3.exports.__esModule = true, e3.exports.default = e3.exports), i.apply(this, arguments);
56741      }
56742      e3.exports = i, e3.exports.__esModule = true, e3.exports.default = e3.exports;
56743    }, 1949: (e3) => {
56744      function t3(r3) {
56745        return e3.exports = t3 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e4) {
56746          return e4.__proto__ || Object.getPrototypeOf(e4);
56747        }, e3.exports.__esModule = true, e3.exports.default = e3.exports, t3(r3);
56748      }
56749      e3.exports = t3, e3.exports.__esModule = true, e3.exports.default = e3.exports;
56750    }, 5163: (e3, t3, r3) => {
56751      var n2 = r3(8746);
56752      e3.exports = function(e4, t4) {
56753        if ("function" != typeof t4 && null !== t4)
56754          throw new TypeError("Super expression must either be null or a function");
56755        e4.prototype = Object.create(t4 && t4.prototype, { constructor: { value: e4, writable: true, configurable: true } }), Object.defineProperty(e4, "prototype", { writable: false }), t4 && n2(e4, t4);
56756      }, e3.exports.__esModule = true, e3.exports.default = e3.exports;
56757    }, 8847: (e3) => {
56758      e3.exports = function(e4) {
56759        return e4 && e4.__esModule ? e4 : { default: e4 };
56760      }, e3.exports.__esModule = true, e3.exports.default = e3.exports;
56761    }, 6923: (e3) => {
56762      e3.exports = function() {
56763        if ("undefined" == typeof Reflect || !Reflect.construct)
56764          return false;
56765        if (Reflect.construct.sham)
56766          return false;
56767        if ("function" == typeof Proxy)
56768          return true;
56769        try {
56770          return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
56771          })), true;
56772        } catch (e4) {
56773          return false;
56774        }
56775      }, e3.exports.__esModule = true, e3.exports.default = e3.exports;
56776    }, 1642: (e3) => {
56777      e3.exports = function(e4) {
56778        if ("undefined" != typeof Symbol && null != e4[Symbol.iterator] || null != e4["@@iterator"])
56779          return Array.from(e4);
56780      }, e3.exports.__esModule = true, e3.exports.default = e3.exports;
56781    }, 1436: (e3) => {
56782      e3.exports = function(e4, t3) {
56783        var r3 = null == e4 ? null : "undefined" != typeof Symbol && e4[Symbol.iterator] || e4["@@iterator"];
56784        if (null != r3) {
56785          var n2, i, o, a, s = [], u2 = true, c2 = false;
56786          try {
56787            if (o = (r3 = r3.call(e4)).next, 0 === t3) {
56788              if (Object(r3) !== r3)
56789                return;
56790              u2 = false;
56791            } else
56792              for (; !(u2 = (n2 = o.call(r3)).done) && (s.push(n2.value), s.length !== t3); u2 = true)
56793                ;
56794          } catch (e5) {
56795            c2 = true, i = e5;
56796          } finally {
56797            try {
56798              if (!u2 && null != r3.return && (a = r3.return(), Object(a) !== a))
56799                return;
56800            } finally {
56801              if (c2)
56802                throw i;
56803            }
56804          }
56805          return s;
56806        }
56807      }, e3.exports.__esModule = true, e3.exports.default = e3.exports;
56808    }, 2966: (e3) => {
56809      e3.exports = function() {
56810        throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
56811      }, e3.exports.__esModule = true, e3.exports.default = e3.exports;
56812    }, 2344: (e3) => {
56813      e3.exports = function() {
56814        throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
56815      }, e3.exports.__esModule = true, e3.exports.default = e3.exports;
56816    }, 4650: (e3, t3, r3) => {
56817      var n2 = r3(3355).default, i = r3(8975);
56818      e3.exports = function(e4, t4) {
56819        if (t4 && ("object" === n2(t4) || "function" == typeof t4))
56820          return t4;
56821        if (void 0 !== t4)
56822          throw new TypeError("Derived constructors may only return object or undefined");
56823        return i(e4);
56824      }, e3.exports.__esModule = true, e3.exports.default = e3.exports;
56825    }, 2028: (e3, t3, r3) => {
56826      var n2 = r3(3355).default;
56827      function i() {
56828        e3.exports = i = function() {
56829          return t4;
56830        }, e3.exports.__esModule = true, e3.exports.default = e3.exports;
56831        var t4 = {}, r4 = Object.prototype, o = r4.hasOwnProperty, a = Object.defineProperty || function(e4, t5, r5) {
56832          e4[t5] = r5.value;
56833        }, s = "function" == typeof Symbol ? Symbol : {}, u2 = s.iterator || "@@iterator", c2 = s.asyncIterator || "@@asyncIterator", f2 = s.toStringTag || "@@toStringTag";
56834        function d2(e4, t5, r5) {
56835          return Object.defineProperty(e4, t5, { value: r5, enumerable: true, configurable: true, writable: true }), e4[t5];
56836        }
56837        try {
56838          d2({}, "");
56839        } catch (e4) {
56840          d2 = function(e5, t5, r5) {
56841            return e5[t5] = r5;
56842          };
56843        }
56844        function l2(e4, t5, r5, n3) {
56845          var i2 = t5 && t5.prototype instanceof b2 ? t5 : b2, o2 = Object.create(i2.prototype), s2 = new O2(n3 || []);
56846          return a(o2, "_invoke", { value: S2(e4, r5, s2) }), o2;
56847        }
56848        function h2(e4, t5, r5) {
56849          try {
56850            return { type: "normal", arg: e4.call(t5, r5) };
56851          } catch (e5) {
56852            return { type: "throw", arg: e5 };
56853          }
56854        }
56855        t4.wrap = l2;
56856        var p2 = {};
56857        function b2() {
56858        }
56859        function y2() {
56860        }
56861        function m2() {
56862        }
56863        var v2 = {};
56864        d2(v2, u2, function() {
56865          return this;
56866        });
56867        var g2 = Object.getPrototypeOf, w2 = g2 && g2(g2(B2([])));
56868        w2 && w2 !== r4 && o.call(w2, u2) && (v2 = w2);
56869        var A2 = m2.prototype = b2.prototype = Object.create(v2);
56870        function k2(e4) {
56871          ["next", "throw", "return"].forEach(function(t5) {
56872            d2(e4, t5, function(e5) {
56873              return this._invoke(t5, e5);
56874            });
56875          });
56876        }
56877        function _(e4, t5) {
56878          function r5(i3, a2, s2, u3) {
56879            var c3 = h2(e4[i3], e4, a2);
56880            if ("throw" !== c3.type) {
56881              var f3 = c3.arg, d3 = f3.value;
vendor: 6,178 bytes, lines 56882-57018
56882              return d3 && "object" == n2(d3) && o.call(d3, "__await") ? t5.resolve(d3.__await).then(function(e5) {
56883                r5("next", e5, s2, u3);
56884              }, function(e5) {
56885                r5("throw", e5, s2, u3);
56886              }) : t5.resolve(d3).then(function(e5) {
56887                f3.value = e5, s2(f3);
56888              }, function(e5) {
56889                return r5("throw", e5, s2, u3);
56890              });
56891            }
56892            u3(c3.arg);
56893          }
56894          var i2;
56895          a(this, "_invoke", { value: function(e5, n3) {
56896            function o2() {
56897              return new t5(function(t6, i3) {
56898                r5(e5, n3, t6, i3);
56899              });
56900            }
56901            return i2 = i2 ? i2.then(o2, o2) : o2();
56902          } });
56903        }
56904        function S2(e4, t5, r5) {
56905          var n3 = "suspendedStart";
56906          return function(i2, o2) {
56907            if ("executing" === n3)
56908              throw new Error("Generator is already running");
56909            if ("completed" === n3) {
56910              if ("throw" === i2)
56911                throw o2;
56912              return { value: void 0, done: true };
56913            }
56914            for (r5.method = i2, r5.arg = o2; ; ) {
56915              var a2 = r5.delegate;
56916              if (a2) {
56917                var s2 = x2(a2, r5);
56918                if (s2) {
56919                  if (s2 === p2)
56920                    continue;
56921                  return s2;
56922                }
56923              }
56924              if ("next" === r5.method)
56925                r5.sent = r5._sent = r5.arg;
56926              else if ("throw" === r5.method) {
56927                if ("suspendedStart" === n3)
56928                  throw n3 = "completed", r5.arg;
56929                r5.dispatchException(r5.arg);
56930              } else
56931                "return" === r5.method && r5.abrupt("return", r5.arg);
56932              n3 = "executing";
56933              var u3 = h2(e4, t5, r5);
56934              if ("normal" === u3.type) {
56935                if (n3 = r5.done ? "completed" : "suspendedYield", u3.arg === p2)
56936                  continue;
56937                return { value: u3.arg, done: r5.done };
56938              }
56939              "throw" === u3.type && (n3 = "completed", r5.method = "throw", r5.arg = u3.arg);
56940            }
56941          };
56942        }
56943        function x2(e4, t5) {
56944          var r5 = t5.method, n3 = e4.iterator[r5];
56945          if (void 0 === n3)
56946            return t5.delegate = null, "throw" === r5 && e4.iterator.return && (t5.method = "return", t5.arg = void 0, x2(e4, t5), "throw" === t5.method) || "return" !== r5 && (t5.method = "throw", t5.arg = new TypeError("The iterator does not provide a '" + r5 + "' method")), p2;
56947          var i2 = h2(n3, e4.iterator, t5.arg);
56948          if ("throw" === i2.type)
56949            return t5.method = "throw", t5.arg = i2.arg, t5.delegate = null, p2;
56950          var o2 = i2.arg;
56951          return o2 ? o2.done ? (t5[e4.resultName] = o2.value, t5.next = e4.nextLoc, "return" !== t5.method && (t5.method = "next", t5.arg = void 0), t5.delegate = null, p2) : o2 : (t5.method = "throw", t5.arg = new TypeError("iterator result is not an object"), t5.delegate = null, p2);
56952        }
56953        function E2(e4) {
56954          var t5 = { tryLoc: e4[0] };
56955          1 in e4 && (t5.catchLoc = e4[1]), 2 in e4 && (t5.finallyLoc = e4[2], t5.afterLoc = e4[3]), this.tryEntries.push(t5);
56956        }
56957        function P2(e4) {
56958          var t5 = e4.completion || {};
56959          t5.type = "normal", delete t5.arg, e4.completion = t5;
56960        }
56961        function O2(e4) {
56962          this.tryEntries = [{ tryLoc: "root" }], e4.forEach(E2, this), this.reset(true);
56963        }
56964        function B2(e4) {
56965          if (e4) {
56966            var t5 = e4[u2];
56967            if (t5)
56968              return t5.call(e4);
56969            if ("function" == typeof e4.next)
56970              return e4;
56971            if (!isNaN(e4.length)) {
56972              var r5 = -1, n3 = function t6() {
56973                for (; ++r5 < e4.length; )
56974                  if (o.call(e4, r5))
56975                    return t6.value = e4[r5], t6.done = false, t6;
56976                return t6.value = void 0, t6.done = true, t6;
56977              };
56978              return n3.next = n3;
56979            }
56980          }
56981          return { next: T2 };
56982        }
56983        function T2() {
56984          return { value: void 0, done: true };
56985        }
56986        return y2.prototype = m2, a(A2, "constructor", { value: m2, configurable: true }), a(m2, "constructor", { value: y2, configurable: true }), y2.displayName = d2(m2, f2, "GeneratorFunction"), t4.isGeneratorFunction = function(e4) {
56987          var t5 = "function" == typeof e4 && e4.constructor;
56988          return !!t5 && (t5 === y2 || "GeneratorFunction" === (t5.displayName || t5.name));
56989        }, t4.mark = function(e4) {
56990          return Object.setPrototypeOf ? Object.setPrototypeOf(e4, m2) : (e4.__proto__ = m2, d2(e4, f2, "GeneratorFunction")), e4.prototype = Object.create(A2), e4;
56991        }, t4.awrap = function(e4) {
56992          return { __await: e4 };
56993        }, k2(_.prototype), d2(_.prototype, c2, function() {
56994          return this;
56995        }), t4.AsyncIterator = _, t4.async = function(e4, r5, n3, i2, o2) {
56996          void 0 === o2 && (o2 = Promise);
56997          var a2 = new _(l2(e4, r5, n3, i2), o2);
56998          return t4.isGeneratorFunction(r5) ? a2 : a2.next().then(function(e5) {
56999            return e5.done ? e5.value : a2.next();
57000          });
57001        }, k2(A2), d2(A2, f2, "Generator"), d2(A2, u2, function() {
57002          return this;
57003        }), d2(A2, "toString", function() {
57004          return "[object Generator]";
57005        }), t4.keys = function(e4) {
57006          var t5 = Object(e4), r5 = [];
57007          for (var n3 in t5)
57008            r5.push(n3);
57009          return r5.reverse(), function e5() {
57010            for (; r5.length; ) {
57011              var n4 = r5.pop();
57012              if (n4 in t5)
57013                return e5.value = n4, e5.done = false, e5;
57014            }
57015            return e5.done = true, e5;
57016          };
57017        }, t4.values = B2, O2.prototype = { constructor: O2, reset: function(e4) {
57018          if (this.prev = 0, this.next = 0, this.sent = this._sent = void 0, this.done = false, this.delegate = null, this.method = "next", this.arg = void 0, this.tryEntries.forEac
57018h(P2), !e4)
57019            for (var t5 in this)
57020              "t" === t5.charAt(0) && o.call(this, t5) && !isNaN(+t5.slice(1)) && (this[t5] = void 0);
57021        }, stop: function() {
57022          this.done = true;
57023          var e4 = this.tryEntries[0].completion;
57024          if ("throw" === e4.type)
57025            throw e4.arg;
57026          return this.rval;
57027        }, dispatchException: function(e4) {
57028          if (this.done)
57029            throw e4;
57030          var t5 = this;
57031          function r5(r6, n4) {
57032            return a2.type = "throw", a2.arg = e4, t5.next = r6, n4 && (t5.method = "next", t5.arg = void 0), !!n4;
57033          }
57034          for (var n3 = this.tryEntries.length - 1; n3 >= 0; --n3) {
57035            var i2 = this.tryEntries[n3], a2 = i2.completion;
57036            if ("root" === i2.tryLoc)
57037              return r5("end");
57038            if (i2.tryLoc <= this.prev) {
57039              var s2 = o.call(i2, "catchLoc"), u3 = o.call(i2, "finallyLoc");
57040              if (s2 && u3) {
57041                if (this.prev < i2.catchLoc)
57042                  return r5(i2.catchLoc, true);
57043                if (this.prev < i2.finallyLoc)
57044                  return r5(i2.finallyLoc);
57045              } else if (s2) {
57046                if (this.prev < i2.catchLoc)
57047                  return r5(i2.catchLoc, true);
57048              } else {
57049                if (!u3)
57050                  throw new Error("try statement without catch or finally");
57051                if (this.prev < i2.finallyLoc)
57052                  return r5(i2.finallyLoc);
57053              }
57054            }
57055          }
57056        }, abrupt: function(e4, t5) {
57057          for (var r5 = this.tryEntries.length - 1; r5 >= 0; --r5) {
57058            var n3 = this.tryEntries[r5];
57059            if (n3.tryLoc <= this.prev && o.call(n3, "finallyLoc") && this.prev < n3.finallyLoc) {
57060              var i2 = n3;
57061              break;
57062            }
57063          }
57064          i2 && ("break" === e4 || "continue" === e4) && i2.tryLoc <= t5 && t5 <= i2.finallyLoc && (i2 = null);
57065          var a2 = i2 ? i2.completion : {};
57066          return a2.type = e4, a2.arg = t5, i2 ? (this.method = "next", this.next = i2.finallyLoc, p2) : this.complete(a2);
57067        }, complete: function(e4, t5) {
57068          if ("throw" === e4.type)
57069            throw e4.arg;
57070          return "break" === e4.type || "continue" === e4.type ? this.next = e4.arg : "return" === e4.type ? (this.rval = this.arg = e4.arg, this.method = "return", this.next = "end") : "normal" === e4.type && t5 && (this.next = t5), p2;
57071        }, finish: function(e4) {
57072          for (var t5 = this.tryEntries.length - 1; t5 >= 0; --t5) {
57073            var r5 = this.tryEntries[t5];
57074            if (r5.finallyLoc === e4)
57075              return this.complete(r5.completion, r5.afterLoc), P2(r5), p2;
57076          }
57077        }, catch: function(e4) {
57078          for (var t5 = this.tryEntries.length - 1; t5 >= 0; --t5) {
57079            var r5 = this.tryEntries[t5];
57080            if (r5.tryLoc === e4) {
57081              var n3 = r5.completion;
57082              if ("throw" === n3.type) {
57083                var i2 = n3.arg;
57084                P2(r5);
57085              }
57086              return i2;
57087            }
57088          }
57089          throw new Error("illegal catch attempt");
57090        }, delegateYield: function(e4, t5, r5) {
57091          return this.delegate = { iterator: B2(e4), resultName: t5, nextLoc: r5 }, "next" === this.method && (this.arg = void 0), p2;
57092        } }, t4;
57093      }
57094      e3.exports = i, e3.exports.__esModule = true, e3.exports.default = e3.exports;
57095    }, 8746: (e3) => {
57096      function t3(r3, n2) {
57097        return e3.exports = t3 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e4, t4) {
57098          return e4.__proto__ = t4, e4;
57099        }, e3.exports.__esModule = true, e3.exports.default = e3.exports, t3(r3, n2);
57100      }
57101      e3.exports = t3, e3.exports.__esModule = true, e3.exports.default = e3.exports;
57102    }, 4519: (e3, t3, r3) => {
57103      var n2 = r3(2338), i = r3(1436), o = r3(6906), a = r3(2966);
57104      e3.exports = function(e4, t4) {
57105        return n2(e4) || i(e4, t4) || o(e4, t4) || a();
57106      }, e3.exports.__esModule = true, e3.exports.default = e3.exports;
57107    }, 7460: (e3, t3, r3) => {
57108      var n2 = r3(1949);
57109      e3.exports = function(e4, t4) {
57110        for (; !Object.prototype.hasOwnProperty.call(e4, t4) && null !== (e4 = n2(e4)); )
57111          ;
57112        return e4;
57113      }, e3.exports.__esModule = true, e3.exports.default = e3.exports;
57114    }, 3106: (e3, t3, r3) => {
57115      var n2 = r3(7907), i = r3(1642), o = r3(6906), a = r3(2344);
57116      e3.exports = function(e4) {
57117        return n2(e4) || i(e4) || o(e4) || a();
57118      }, e3.exports.__esModule = true, e3.exports.default = e3.exports;
57119    }, 9662: (e3, t3, r3) => {
57120      var n2 = r3(3355).default;
57121      e3.exports = function(e4, t4) {
57122        if ("object" !== n2(e4) || null === e4)
57123          return e4;
57124        var r4 = e4[Symbol.toPrimitive];
57125        if (void 0 !== r4) {
57126          var i = r4.call(e4, t4 || "default");
57127          if ("object" !== n2(i))
57128            return i;
57129          throw new TypeError("@@toPrimitive must return a primitive value.");
57130        }
57131        return ("string" === t4 ? String : Number)(e4);
57132      }, e3.exports.__esModule = true, e3.exports.default = e3.exports;
57133    }, 2310: (e3, t3, r3) => {
57134      var n2 = r3(3355).default, i = r3(9662);
57135      e3.exports = function(e4) {
57136        var t4 = i(e4, "string");
57137        return "symbol" === n2(t4) ? t4 : String(t4);
57138      }, e3.exports.__esModule = true, e3.exports.default = e3.exports;
57139    }, 3355: (e3) => {
57140      function t3(r3) {
57141        return e3.exports = t3 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e4) {
57142          return typeof e4;
57143        } : function(e4) {
57144          return e4 && "function" == typeof Symbol && e4.constructor === Symbol && e4 !== Symbol.prototype ? "symbol" : typeof e4;
57145        }, e3.exports.__esModule = true, e3.exports.default = e3.exports, t3(r3);
57146      }
57147      e3.exports = t3, e3.exports.__esModule = true, e3.exports.default = e3.exports;
57148    }, 6906: (e3, t3, r3) => {
57149      var n2 = r3(8768);
57150      e3.exports = function(e4, t4) {
57151        if (e4) {
57152          if ("string" == typeof e4)
57153            return n2(e4, t4);
57154          var r4 = Object.prototype.toString.call(e4).slice(8, -1);
57155          return "Object" === r4 && e4.constructor && (r4 = e4.constructor.name), "Map" === r4 || "Set" === r4 ? Array.from(e4) : "Arguments" === r4 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r4) ? n2(e4, t4) : void 0;
57156        }
57157      }, e3.exports.__esModule = true, e3.exports.default = e3.exports;
57158    }, 2247: (e3, t3, r3) => {
57159      var n2 = r3(8847)(r3(3355)), i = r3(2028)();
57160      e3.exports = i;
57161      try {
57162        regeneratorRuntime = i;
57163      } catch (e4) {
57164        "object" === ("undefined" == typeof globalThis ? "undefined" : (0, n2.default)(globalThis)) ? globalThis.regeneratorRuntime = i : Function("r", "regeneratorRuntime = r")(i);
57165      }
57166    }, 3604: (e3, t3, r3) => {
57167      var n2 = ["BigInt64Array", "BigUint64Array", "Float32Array", "Float64Array", "Int16Array", "Int32Array", "Int8Array", "Uint16Array", "Uint32Array", "Uint8Array", "Uint8ClampedArray"], i = "undefined" == typeof globalThis ? r3.g : globalThis;
57168      e3.exports = function() {
57169        for (var e4 = [], t4 = 0; t4 < n2.length; t4++)
57170          "function" == typeof i[n2[t4]] && (e4[e4.length] = n2[t4]);
57171        return e4;
57172      };
57173    }, 7687: (e3) => {
57174      e3.exports = JSON.parse('{"name":"goerli","chainId":5,"networkId":5,"defaultHardfork":"istanbul","consensus":{"type":"poa","algorithm":"clique","clique":{"period":15,"epoch":30000}},"comment":"Cross-client PoA test network","url":"https://github.com/goerli/testnet","genesis":{"hash":"0xbf7e331f7f7c1dd2e05159666b3bf8bc7a8a3a9eb1d518969eab529dd9b88c1a","timestamp":"0x5c51a607","gasLimit":10485760,"difficulty":1,"nonce":"0x0000000000000000","extraData":"0x22466c6578692069732061207468696e6722202d204166726900000000000000e0a2bd4258d2768837baa26a28fe71dc079f84c70000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","stateRoot":"0x5d6cded585e73c4e322c30c2f782a336316f17dd85a4863b9d838d2d4b8b3008"},"hardforks":[{"name":"chainstart","block":0,"forkHash":"0xa3f5ab08"},{"name":"homestead","block":0,"forkHash":"0xa3f5ab08"},{"name":"tangerineWhistle","block":0,"forkHash":"0xa3f5ab08"},{"name":"spuriousDragon","block":0,"forkHash":"0xa3f5ab08"},{"name":"byzantium","block":0,"forkHash":"0xa3f5ab08"},{"name":"constantinople","block":0,"forkHash":"0xa3f5ab08"},{"name":"petersburg","block":0,"forkHash":"0xa3f5ab08"},{"name":"istanbul","block":1561651,"forkHash":"0xc25efa5c"},{"name":"berlin","block":4460644,"forkHash":"0x757a1c47"},{"name":"london","block":5062605,"forkHash":"0xb8c6299d"},{"name":"merge","block":null,"forkash":null},{"name":"shanghai","block":null,"forkash":null}],"bootstrapNodes":[{"ip":"51.141.78.53","port":30303,"id":"011f758e6552d105183b1761c5e2dea0111bc20fd5f6422bc7f91e0fabbec9a6595caf6239b37feb773dddd3f87240d99d859431891e4a642cf2a0a9e6cbb98a","location":"","comment":"Upstream bootnode 1"},{"ip":"13.93.54.137","port":30303,"id":"176b9417f511d05b6b2cf3e34b756cf0a7096b3094572a8f6ef4cdcb9d1f9d00683bf0f83347eebdf3b81c3521c2332086d9592802230bf528eaf606a1d9677b","location":"","comment":"Upstream bootnode 2"},{"ip":"94.237.54.114","port":30313,"id":"46add44b9f13965f7b9875ac6b85f016f341012d84f975377573800a863526f4da19ae2c620ec73d11591fa9510e992ecc03ad0751f53cc02f7c7ed6d55c7291","location":"","comment":"Upstream bootnode 3"},{"ip":"18.218.250.66","port":30313,"id":"b5948a2d3e9d486c4d75bf32713221c2bd6cf86463302339299bd227dc2e276cd5a1c7ca4f43a0e9122fe9af884efed563bd2a1fd28661f3b5f5ad7bf1de5949","location":"","comment":"Upstream bootnode 4"},{"ip":"3.11.147.67","port":30303,"id":"a61215641fb8714a373c80edbfa0ea8878243193f57c96eeb44d0bc019ef295abd4e044fd619bfc4c59731a73fb79afe84e9ab6da0c743ceb479cbb6d263fa91","location":"","comment":"Ethereum Foundation bootnode"},{"ip":"51.15.116.226","port":30303,"id":"a869b02cec167211fb4815a82941db2e7ed2936fd90e78619c53eb17753fcf0207463e3419c264e2a1dd8786de0df7e68cf99571ab8aeb7c4e51367ef186b1dd","location":"","comment":"Goerli Initiative bootnode"},{"ip":"51.15.119.157","port":30303,"id":"807b37ee4816ecf407e9112224494b74dd5933625f655962d892f2f0f02d7fbbb3e2a94cf87a96609526f30c998fd71e93e2f53015c558ffc8b03eceaf30ee33","location":"","comment":"Goerli Initiative bootnode"},{"ip":"51.15.119.157","port":40303,"id":"a59e33ccd2b3e52d578f1fbd70c6f9babda2650f0760d6ff3b37742fdcdfdb3defba5d56d315b40c46b70198c7621e63ffa3f987389c7118634b0fefbbdfa7fd","location":"","comment":"Goerli Initiative bootnode"}],"dnsNetworks":["enrtree://AKA3AM6LPBYEUDMVNU3BSVQJ5AD45Y7YPOHJLEF6W26QOE4VTUDPE@all.goerli.ethdisco.net"]}');
57175    }, 7098: (e3) => {
57176      e3.exports = JSON.parse('{"name":"kovan","chainId":42,"networkId":42,"defaultHardfork":"istanbul","consensus":{"type":"poa","algorithm":"aura","aura":{}},"comment":"Parity PoA test network","url":"https://kovan-testnet.github.io/website/","genesis":{"hash":"0xa3c565fc15c7478862d50ccd6561e3c06b24cc509bf388941c25ea985ce32cb9","timestamp":null,"gasLimit":6000000,"difficulty":131072,"nonce":"0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","extraData":"0x","stateRoot":"0x2480155b48a1cea17d67dbfdfaafe821c1d19cdd478c5358e8ec56dec24502b2"},"hardforks":[{"name":"chainstart","block":0,"forkHash":"0x010ffe56"},{"name":"homestead","block":0,"forkHash":"0x010ffe56"},{"name":"tangerineWhistle","block":0,"forkHash":"0x010ffe56"},{"name":"spuriousDragon","block":0,"forkHash":"0x010ffe56"},{"name":"byzantium","block":5067000,"forkHash":"0x7f83c620"},{"name":"constantinople","block":9200000,"forkHash":"0xa94e3dc4"},{"name":"petersburg","block":10255201,"forkHash":"0x186874aa"},{"name":"istanbul","block":14111141,"forkHash":"0x7f6599a6"},{"name":"berlin","block":null,"forkHash":null},{"name":"london","block":null,"forkHash":null},{"name":"merge","block":null,"forkash":null},{"name":"shanghai","block":null,"forkash":null}],"bootstrapNodes":[{"ip":"116.203.116.241","port":30303,"id":"16898006ba2cd4fa8bf9a3dfe32684c178fa861df144bfc21fe800dc4838a03e342056951fa9fd533dcb0be1219e306106442ff2cf1f7e9f8faa5f2fc1a3aa45","location":"","comment":"1"},{"ip":"3.217.96.11","port":30303,"id":"2909846f78c37510cc0e306f185323b83bb2209e5ff4fdd279d93c60e3f365e3c6e62ad1d2133ff11f9fd6d23ad9c3dad73bb974d53a22f7d1ac5b7dea79d0b0","location":"","comment":"2"},{"ip":"108.61.170.124","port":30303,"id":"740e1c8ea64e71762c71a463a04e2046070a0c9394fcab5891d41301dc473c0cff00ebab5a9bc87fbcb610ab98ac18225ff897bc8b7b38def5975d5ceb0a7d7c","location":"","comment":"3"},{"ip":"157.230.31.163","port":30303,"id":"2909846f78c37510cc0e306f185323b83bb2209e5ff4fdd279d93c60e3f365e3c6e62ad1d2133ff11f9fd6d23ad9c3dad73bb974d53a22f7d1ac5b7dea79d0b0","location":"","comment":"4"}]}');
57177    }, 7295: (e3) => {
57178      e3.exports = JSON.parse('{"name":"mainnet","chainId":1,"networkId":1,"defaultHardfork":"istanbul","consensus":{"type":"pow","algorithm":"ethash","ethash":{}},"comment":"The Ethereum main chain","url":"https://ethstats.net/","genesis":{"hash":"0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3","timestamp":null,"gasLimit":5000,"difficulty":17179869184,"nonce":"0x0000000000000042","extraData":"0x11bbe8db4e347b4e8c937c1c8370e4b5ed33adb3db69cbdb7a38e1e50b1b82fa","stateRoot":"0xd7f8974fb5ac78d9ac099b9ad5018bedc2ce0a72dad1827a1709da30580f0544"},"hardforks":[{"name":"chainstart","block":0,"forkHash":"0xfc64ec04"},{"name":"homestead","block":1150000,"forkHash":"0x97c2c34c"},{"name":"dao","block":1920000,"forkHash":"0x91d1f948"},{"name":"tangerineWhistle","block":2463000,"forkHash":"0x7a64da13"},{"name":"spuriousDragon","block":2675000,"forkHash":"0x3edd5b10"},{"name":"byzantium","block":4370000,"forkHash":"0xa00bc324"},{"name":"constantinople","block":7280000,"forkHash":"0x668db0af"},{"name":"petersburg","block":7280000,"forkHash":"0x668db0af"},{"name":"istanbul","block":9069000,"forkHash":"0x879d6e30"},{"name":"muirGlacier","block":9200000,"forkHash":"0xe029e991"},{"name":"berlin","block":12244000,"forkHash":"0x0eb440f6"},{"name":"london","block":12965000,"forkHash":"0xb715077d"},{"name":"merge","block":null,"forkash":null},{"name":"shanghai","block":null,"forkash":null}],"bootstrapNodes":[{"ip":"18.138.108.67","port":30303,"id":"d860a01f9722d78051619d1e2351aba3f43f943f6f00718d1b9baa4101932a1f5011f16bb2b1bb35db20d6fe28fa0bf09636d26a87d31de9ec6203eeedb1f666","location":"ap-southeast-1-001","comment":"bootnode-aws-ap-southeast-1-001"},{"ip":"3.209.45.79","port":30303,"id":"22a8232c3abc76a16ae9d6c3b164f98775fe226f0917b0ca871128a74a8e9630b458460865bab457221f1d448dd9791d24c4e5d88786180ac185df813a68d4de","location":"us-east-1-001","comment":"bootnode-aws-us-east-1-001"},{"ip":"34.255.23.113","port":30303,"id":"ca6de62fce278f96aea6ec5a2daadb877e51651247cb96ee310a318def462913b653963c155a0ef6c7d50048bba6e6cea881130857413d9f50a621546b590758","location":"eu-west-1-001","comment":"bootnode-aws-eu-west-1-001"},{"ip":"35.158.244.151","port":30303,"id":"279944d8dcd428dffaa7436f25ca0ca43ae19e7bcf94a8fb7d1641651f92d121e972ac2e8f381414b80cc8e5555811c2ec6e1a99bb009b3f53c4c69923e11bd8","location":"eu-central-1-001","comment":"bootnode-aws-eu-central-1-001"},{"ip":"52.187.207.27","port":30303,"id":"8499da03c47d637b20eee24eec3c356c9a2e6148d6fe25ca195c7949ab8ec2c03e3556126b0d7ed644675e78c4318b08691b7b57
57178de10e5f0d40d05b09238fa0a","location":"australiaeast-001","comment":"bootnode-azure-australiaeast-001"},{"ip":"191.234.162.198","port":30303,"id":"103858bdb88756c71f15e9b5e09b56dc1be52f0a5021d46301dbbfb7e130029cc9d0d6f73f693bc29b665770fff7da4d34f3c6379fe12721b5d7a0bcb5ca1fc1","location":"brazilsouth-001","comment":"bootnode-azure-brazilsouth-001"},{"ip":"52.231.165.108","port":30303,"id":"715171f50508aba88aecd1250af392a45a330af91d7b90701c436b618c86aaa1589c9184561907bebbb56439b8f8787bc01f49a7c77276c58c1b09822d75e8e8","location":"koreasouth-001","comment":"bootnode-azure-koreasouth-001"},{"ip":"104.42.217.25","port":30303,"id":"5d6d7cd20d6da4bb83a1d28cadb5d409b64edf314c0335df658c1a54e32c7c4a7ab7823d57c39b6a757556e68ff1df17c748b698544a55cb488b52479a92b60f","location":"westus-001","comment":"bootnode-azure-westus-001"}],"dnsNetworks":["enrtree://AKA3AM6LPBYEUDMVNU3BSVQJ5AD45Y7YPOHJLEF6W26QOE4VTUDPE@all.mainnet.ethdisco.net"]}');
57179    }, 439: (e3) => {
57180      e3.exports = JSON.parse('{"name":"rinkeby","chainId":4,"networkId":4,"defaultHardfork":"istanbul","consensus":{"type":"poa","algorithm":"clique","clique":{"period":15,"epoch":30000}},"comment":"PoA test network","url":"https://www.rinkeby.io","genesis":{"hash":"0x6341fd3daf94b748c72ced5a5b26028f2474f5f00d824504e4fa37a75767e177","timestamp":"0x58ee40ba","gasLimit":4700000,"difficulty":1,"nonce":"0x0000000000000000","extraData":"0x52657370656374206d7920617574686f7269746168207e452e436172746d616e42eb768f2244c8811c63729a21a3569731535f067ffc57839b00206d1ad20c69a1981b489f772031b279182d99e65703f0076e4812653aab85fca0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","stateRoot":"0x53580584816f617295ea26c0e17641e0120cab2f0a8ffb53a866fd53aa8e8c2d"},"hardforks":[{"name":"chainstart","block":0,"forkHash":"0x3b8e0691"},{"name":"homestead","block":1,"forkHash":"0x60949295"},{"name":"tangerineWhistle","block":2,"forkHash":"0x8bde40dd"},{"name":"spuriousDragon","block":3,"forkHash":"0xcb3a64bb"},{"name":"byzantium","block":1035301,"forkHash":"0x8d748b57"},{"name":"constantinople","block":3660663,"forkHash":"0xe49cab14"},{"name":"petersburg","block":4321234,"forkHash":"0xafec6b27"},{"name":"istanbul","block":5435345,"forkHash":"0xcbdb8838"},{"name":"berlin","block":8290928,"forkHash":"0x6910c8bd"},{"name":"london","block":8897988,"forkHash":"0x8e29f2f3"},{"name":"merge","block":null,"forkash":null},{"name":"shanghai","block":null,"forkash":null}],"bootstrapNodes":[{"ip":"52.169.42.101","port":30303,"id":"a24ac7c5484ef4ed0c5eb2d36620ba4e4aa13b8c84684e1b4aab0cebea2ae45cb4d375b77eab56516d34bfbd3c1a833fc51296ff084b770b94fb9028c4d25ccf","location":"","comment":"IE"},{"ip":"52.3.158.184","port":30303,"id":"343149e4feefa15d882d9fe4ac7d88f885bd05ebb735e547f12e12080a9fa07c8014ca6fd7f373123488102fe5e34111f8509cf0b7de3f5b44339c9f25e87cb8","location":"","comment":"INFURA"},{"ip":"159.89.28.211","port":30303,"id":"b6b28890b006743680c52e64e0d16db57f28124885595fa03a562be1d2bf0f3a1da297d56b13da25fb992888fd556d4c1a27b1f39d531bde7de1921c90061cc6","location":"","comment":"AKASHA"}],"dnsNetworks":["enrtree://AKA3AM6LPBYEUDMVNU3BSVQJ5AD45Y7YPOHJLEF6W26QOE4VTUDPE@all.rinkeby.ethdisco.net"]}');
57181    }, 1227: (e3) => {
57182      e3.exports = JSON.parse('{"name":"ropsten","chainId":3,"networkId":3,"defaultHardfork":"istanbul","consensus":{"type":"pow","algorithm":"ethash","ethash":{}},"comment":"PoW test network","url":"https://github.com/ethereum/ropsten","genesis":{"hash":"0x41941023680923e0fe4d74a34bdac8141f2540e3ae90623718e47d66d1ca4a2d","timestamp":null,"gasLimit":16777216,"difficulty":1048576,"nonce":"0x0000000000000042","extraData":"0x3535353535353535353535353535353535353535353535353535353535353535","stateRoot":"0x217b0bbcfb72e2d57e28f33cb361b9983513177755dc3f33ce3e7022ed62b77b"},"hardforks":[{"name":"chainstart","block":0,"forkHash":"0x30c7ddbc"},{"name":"homestead","block":0,"forkHash":"0x30c7ddbc"},{"name":"tangerineWhistle","block":0,"forkHash":"0x30c7ddbc"},{"name":"spuriousDragon","block":10,"forkHash":"0x63760190"},{"name":"byzantium","block":1700000,"forkHash":"0x3ea159c7"},{"name":"constantinople","block":4230000,"forkHash":"0x97b544f3"},{"name":"petersburg","block":4939394,"forkHash":"0xd6e2149b"},{"name":"istanbul","block":6485846,"forkHash":"0x4bc66396"},{"name":"muirGlacier","block":7117117,"forkHash":"0x6727ef90"},{"name":"berlin","block":9812189,"forkHash":"0xa157d377"},{"name":"london","block":10499401,"forkHash":"0x7119b6b3"},{"name":"merge","block":null,"forkash":null},{"name":"shanghai","block":null,"forkash":null}],"bootstrapNodes":[{"ip":"52.176.7.10","port":30303,"id":"30b7ab30a01c124a6cceca36863ece12c4f5fa68e3ba9b0b51407ccc002eeed3b3102d20a88f1c1d3c3154e2449317b8ef95090e77b312d5cc39354f86d5d606","location":"","comment":"US-Azure geth"},{"ip":"52.176.100.77","port":30303,"id":"865a63255b3bb68023b6bffd5095118fcc13e79dcf014fe4e47e065c350c7cc72af2e53eff895f11ba1bbb6a2b33271c1116ee870f266618eadfc2e78aa7349c","location":"","comment":"US-Azure parity"},{"ip":"52.232.243.152","port":30303,"id":"6332792c4a00e3e4ee0926ed89e0d27ef985424d97b6a45bf0f23e51f0dcb5e66b875777506458aea7af6f9e4ffb69f43f3778ee73c81ed9d34c51c4b16b0b0f","location":"","comment":"Parity"},{"ip":"192.81.208.223","port":30303,"id":"94c15d1b9e2fe7ce56e458b9a3b672ef11894ddedd0c6f247e0f1d3487f52b66208fb4aeb8179fce6e3a749ea93ed147c37976d67af557508d199d9594c35f09","location":"","comment":"@gpip"}],"dnsNetworks":["enrtree://AKA3AM6LPBYEUDMVNU3BSVQJ5AD45Y7YPOHJLEF6W26QOE4VTUDPE@all.ropsten.ethdisco.net"]}');
57183    }, 7523: (e3) => {
57184      e3.exports = JSON.parse('{"name":"EIP-1559","number":1559,"comment":"Fee market change for ETH 1.0 chain","url":"https://eips.ethereum.org/EIPS/eip-1559","status":"Review","minimumHardfork":"berlin","requiredEIPs":[2930],"gasConfig":{"baseFeeMaxChangeDenominator":{"v":8,"d":"Maximum base fee change denominator"},"elasticityMultiplier":{"v":2,"d":"Maximum block gas target elasticity"},"initialBaseFee":{"v":1000000000,"d":"Initial base fee on first EIP1559 block"}},"gasPrices":{},"vm":{},"pow":{}}');
57185    }, 3339: (e3) => {
57186      e3.exports = JSON.parse('{"name":"EIP-2315","number":2315,"comment":"Simple subroutines for the EVM","url":"https://eips.ethereum.org/EIPS/eip-2315","status":"Draft","minimumHardfork":"istanbul","gasConfig":{},"gasPrices":{"beginsub":{"v":2,"d":"Base fee of the BEGINSUB opcode"},"returnsub":{"v":5,"d":"Base fee of the RETURNSUB opcode"},"jumpsub":{"v":10,"d":"Base fee of the JUMPSUB opcode"}},"vm":{},"pow":{}}');
57187    }, 6769: (e3) => {
57188      e3.exports = JSON.parse('{"name":"EIP-2537","number":2537,"comment":"BLS12-381 precompiles","url":"https://eips.ethereum.org/EIPS/eip-2537","
57188status":"Draft","minimumHardfork":"chainstart","gasConfig":{},"gasPrices":{"Bls12381G1AddGas":{"v":600,"d":"Gas cost of a single BLS12-381 G1 addition precompile-call"},"Bls12381G1MulGas":{"v":12000,"d":"Gas cost of a single BLS12-381 G1 multiplication precompile-call"},"Bls12381G2AddGas":{"v":4500,"d":"Gas cost of a single BLS12-381 G2 addition precompile-call"},"Bls12381G2MulGas":{"v":55000,"d":"Gas cost of a single BLS12-381 G2 multiplication precompile-call"},"Bls12381PairingBaseGas":{"v":115000,"d":"Base gas cost of BLS12-381 pairing check"},"Bls12381PairingPerPairGas":{"v":23000,"d":"Per-pair gas cost of BLS12-381 pairing check"},"Bls12381MapG1Gas":{"v":5500,"d":"Gas cost of BLS12-381 map field element to G1"},"Bls12381MapG2Gas":{"v":110000,"d":"Gas cost of BLS12-381 map field element to G2"},"Bls12381MultiExpGasDiscount":{"v":[[1,1200],[2,888],[3,764],[4,641],[5,594],[6,547],[7,500],[8,453],[9,438],[10,423],[11,408],[12,394],[13,379],[14,364],[15,349],[16,334],[17,330],[18,326],[19,322],[20,318],[21,314],[22,310],[23,306],[24,302],[25,298],[26,294],[27,289],[28,285],[29,281],[30,277],[31,273],[32,269],[33,268],[34,266],[35,265],[36,263],[37,262],[38,260],[39,259],[40,257],[41,256],[42,254],[43,253],[44,251],[45,250],[46,248],[47,247],[48,245],[49,244],[50,242],[51,241],[52,239],[53,238],[54,236],[55,235],[56,233],[57,232],[58,231],[59,229],[60,228],[61,226],[62,225],[63,223],[64,222],[65,221],[66,220],[67,219],[68,219],[69,218],[70,217],[71,216],[72,216],[73,215],[74,214],[75,213],[76,213],[77,212],[78,211],[79,211],[80,210],[81,209],[82,208],[83,208],[84,207],[85,206],[86,205],[87,205],[88,204],[89,203],[90,202],[91,202],[92,201],[93,200],[94,199],[95,199],[96,198],[97,197],[98,196],[99,196],[100,195],[101,194],[102,193],[103,193],[104,192],[105,191],[106,191],[107,190],[108,189],[109,188],[110,188],[111,187],[112,186],[113,185],[114,185],[115,184],[116,183],[117,182],[118,182],[119,181],[120,180],[121,179],[122,179],[123,178],[124,177],[125,176],[126,176],[127,175],[128,174]],"d":"Discount gas costs of calls to the MultiExp precompiles with `k` (point, scalar) pair"}},"vm":{},"pow":{}}');
57189    }, 7897: (e3) => {
57190      e3.exports = JSON.parse('{"name":"EIP-2565","number":2565,"comment":"ModExp gas cost","url":"https://eips.ethereum.org/EIPS/eip-2565","status":"Last call","minimumHardfork":"byzantium","gasConfig":{},"gasPrices":{"modexpGquaddivisor":{"v":3,"d":"Gquaddivisor from modexp precompile for gas calculation"}},"vm":{},"pow":{}}');
57191    }, 2170: (e3) => {
57192      e3.exports = JSON.parse('{"name":"EIP-2718","comment":"Typed Transaction Envelope","url":"https://eips.ethereum.org/EIPS/eip-2718","status":"Draft","minimumHardfork":"chainstart","gasConfig":{},"gasPrices":{},"vm":{},"pow":{}}');
57193    }, 8436: (e3) => {
57194      e3.exports = JSON.parse(`{"name":"EIP-2929","comment":"Gas cost increases for state access opcodes","url":"https://eips.ethereum.org/EIPS/eip-2929","status":"Draft","minimumHardfork":"chainstart","gasConfig":{},"gasPrices":{"coldsload":{"v":2100,"d":"Gas cost of the first read of storage from a given location (per transaction)"},"coldaccountaccess":{"v":2600,"d":"Gas cost of the first read of a given address (per transaction)"},"warmstorageread":{"v":100,"d":"Gas cost of reading storage locations which have already loaded 'cold'"},"sstoreCleanGasEIP2200":{"v":2900,"d":"Once per SSTORE operation from clean non-zero to something else"},"sstoreNoopGasEIP2200":{"v":100,"d":"Once per SSTORE operation if the value doesn't change"},"sstoreDirtyGasEIP2200":{"v":100,"d":"Once per SSTORE operation if a dirty value is changed"},"sstoreInitRefundEIP2200":{"v":19900,"d":"Once per SSTORE operation for resetting to the original zero value"},"sstoreCleanRefundEIP2200":{"v":4900,"d":"Once per SSTORE operation for resetting to the original non-zero value"},"call":{"v":0,"d":"Base fee of the CALL opcode"},"callcode":{"v":0,"d":"Base fee of the CALLCODE opcode"},"delegatecall":{"v":0,"d":"Base fee of the DELEGATECALL opcode"},"staticcall":{"v":0,"d":"Base fee of the STATICCALL opcode"},"balance":{"v":0,"d":"Base fee of the BALANCE opcode"},"extcodesize":{"v":0,"d":"Base fee of the EXTCODESIZE opcode"},"extcodecopy":{"v":0,"d":"Base fee of the EXTCODECOPY opcode"},"extcodehash":{"v":0,"d":"Base fee of the EXTCODEHASH opcode"},"sload":{"v":0,"d":"Base fee of the SLOAD opcode"},"sstore":{"v":0,"d":"Base fee of the SSTORE opcode"}},"vm":{},"pow":{}}`);
57195    }, 6213: (e3) => {
57196      e3.exports = JSON.parse('{"name":"EIP-2930","comment":"Optional access lists","url":"https://eips.ethereum.org/EIPS/eip-2930","status":"Draft","minimumHardfork":"istanbul","requiredEIPs":[2718,2929],"gasConfig":{},"gasPrices":{"accessListStorageKeyCost":{"v":1900,"d":"Gas cost per storage key in an Access List transaction"},"accessListAddressCost":{"v":2400,"d":"Gas cost per storage key in an Access List transaction"}},"vm":{},"pow":{}}');
57197    }, 5491: (e3) => {
57198      e3.exports = JSON.parse('{"name":"EIP-3198","number":3198,"comment":"BASEFEE opcode","url":"https://eips.ethereum.org/EIPS/eip-3198","status":"Review","minimumHardfork":"london","gasConfig":{},"gasPrices":{"basefee":{"v":2,"d":"Gas cost of the BASEFEE opcode"}},"vm":{},"pow":{}}');
57199    }, 7852: (e3) => {
57200      e3.exports = JSON.parse('{"name":"EIP-3529","comment":"Reduction in refunds","url":"https://eips.ethereum.org/EIPS/eip-3529","status":"Draft","minimumHardfork":"berlin","requiredEIPs":[2929],"gasConfig":{"maxRefundQuotient":{"v":5,"d":"Maximum refund quotient; max tx refund is min(tx.gasUsed/maxRefundQuotient, tx.gasRefund)"}},"gasPrices":{"selfdestructRefund":{"v":0,"d":"Refunded following a selfdestruct operation"},"sstoreClearRefundEIP2200":{"v":4800,"d":"Once per SSTORE operation for clearing an originally existing storage slot"}},"vm":{},"pow":{}}');
57201    }, 1871: (e3) => {
57202      e3.exports = JSON.parse('{"name":"EIP-3541","comment":"Reject new contracts starting with the 0xEF byte","url":"https://eips.ethereum.org/EIPS/eip-3541","status":"Draft","minimumHardfork":"berlin","requiredEIPs":[],"gasConfig":{},"gasPrices":{},"vm":{},"pow":{}}');
57203    }, 7225: (e3) => {
57204      e3.exports = JSON.parse('{"name":"EIP-3554","comment":"Reduction in refunds","url":"Difficulty Bomb Delay to December 1st 2021","status":"Draft","minimumHardfork":"muirGlacier","requiredEIPs":[],"gasConfig":{},"gasPrices":{},"vm":{},"pow":{"difficultyBombDelay":{"v":9500000,"d":"the amount of blocks to delay the difficulty bomb with"}}}');
57205    }, 8571: (e3) => {
57206      e3.exports = JSON.parse('{"name":"EIP-3675","number":3675,"comment":"Upgrade consensus to Proof-of-Stake","url":"https://eips.ethereum.org/EIPS/eip-3675","status":"Draft","minimumHardfork":"london","requiredEIPs":[],"gasConfig":{},"gasPrices":{},"vm":{},"pow":{}}');
57207    }, 15: (e3) => {
57208      e3.exports = JSON.parse('{"name":"berlin","comment":"HF targeted for July 2020 following the Muir Glacier HF","url":"https://eips.ethereum.org/EIPS/eip-2070","status":"Draft","eips":[2565,2929,2718,2930]}');
57209    }, 6985: (e3) => {
57210      e3.exports = JSON.parse('{"name":"byzantium","comment":"Hardfork with new precompiles, instructions and other protocol changes","url":"https://eips.ethereum.org/EIPS/eip-609","status":"Final","gasConfig":{},"gasPrices":{"modexpGquaddivisor":{"v":20,"d":"Gquaddivisor from modexp precompile for gas calculation"},"ecAdd":{"v":500,"d":"Gas costs for curve addition precompile"},"ecMul":{"v":40000,"d":"Gas costs for curve multiplication precompile"},"ecPairing":{"v":100000,"d":"Base gas costs for curve pairing precompile"},"ecPairingWord":{"v":80000,"d":"Gas costs regarding curve pairing precompile input length"},"revert":{"v":0,"d":"Base fee of the REVERT opcode"},"staticcall":{"v":700,"d":"Base fee of the STATICCALL opcode"},"returndatasize":{"v":2,"d":"Base fee of the RETURNDATASIZE opcode"},"returndatacopy":{"v":3,"d":"Base fee of the RETURNDATACOPY opcode"}},"vm":{},"pow":{"minerReward":{"v":"3000000000000000000","d":"the amount a miner get rewarded for mining a block"},"difficultyBombDelay":{"v":3000000,"d":"the amount of blocks to delay the difficulty bomb with"}}}');
57211    }, 114: (e3) => {
57212      e3.exports = JSON.parse(`{"name":"chainstart","comment":"Start of the Ethereum main chain","url":"","status":"","gasConfig":{"minGasLimit":{"v":5000,"d":"Minimum the gas limit may ever be"}
57212,"gasLimitBoundDivisor":{"v":1024,"d":"The bound divisor of the gas limit, used in update calculations"},"maxRefundQuotient":{"v":2,"d":"Maximum refund quotient; max tx refund is min(tx.gasUsed/maxRefundQuotient, tx.gasRefund)"}},"gasPrices":{"base":{"v":2,"d":"Gas base cost, used e.g. for ChainID opcode (Istanbul)"},"tierStep":{"v":[0,2,3,5,8,10,20],"d":"Once per operation, for a selection of them"},"exp":{"v":10,"d":"Base fee of the EXP opcode"},"expByte":{"v":10,"d":"Times ceil(log256(exponent)) for the EXP instruction"},"sha3":{"v":30,"d":"Base fee of the SHA3 opcode"},"sha3Word":{"v":6,"d":"Once per word of the SHA3 operation's data"},"sload":{"v":50,"d":"Base fee of the SLOAD opcode"},"sstoreSet":{"v":20000,"d":"Once per SSTORE operation if the zeroness changes from zero"},"sstoreReset":{"v":5000,"d":"Once per SSTORE operation if the zeroness does not change from zero"},"sstoreRefund":{"v":15000,"d":"Once per SSTORE operation if the zeroness changes to zero"},"jumpdest":{"v":1,"d":"Base fee of the JUMPDEST opcode"},"log":{"v":375,"d":"Base fee of the LOG opcode"},"logData":{"v":8,"d":"Per byte in a LOG* operation's data"},"logTopic":{"v":375,"d":"Multiplied by the * of the LOG*, per LOG transaction. e.g. LOG0 incurs 0 * c_txLogTopicGas, LOG4 incurs 4 * c_txLogTopicGas"},"create":{"v":32000,"d":"Base fee of the CREATE opcode"},"call":{"v":40,"d":"Base fee of the CALL opcode"},"callStipend":{"v":2300,"d":"Free gas given at beginning of call"},"callValueTransfer":{"v":9000,"d":"Paid for CALL when the value transfor is non-zero"},"callNewAccount":{"v":25000,"d":"Paid for CALL when the destination address didn't exist prior"},"selfdestructRefund":{"v":24000,"d":"Refunded following a selfdestruct operation"},"memory":{"v":3,"d":"Times the address of the (highest referenced byte in memory + 1). NOTE: referencing happens on read, write and in instructions such as RETURN and CALL"},"quadCoeffDiv":{"v":512,"d":"Divisor for the quadratic particle of the memory cost equation"},"createData":{"v":200,"d":""},"tx":{"v":21000,"d":"Per transaction. NOTE: Not payable on data of calls between transactions"},"txCreation":{"v":32000,"d":"The cost of creating a contract via tx"},"txDataZero":{"v":4,"d":"Per byte of data attached to a transaction that equals zero. NOTE: Not payable on data of calls between transactions"},"txDataNonZero":{"v":68,"d":"Per byte of data attached to a transaction that is not equal to zero. NOTE: Not payable on data of calls between transactions"},"copy":{"v":3,"d":"Multiplied by the number of 32-byte words that are copied (round up) for any *COPY operation and added"},"ecRecover":{"v":3000,"d":""},"sha256":{"v":60,"d":""},"sha256Word":{"v":12,"d":""},"ripemd160":{"v":600,"d":""},"ripemd160Word":{"v":120,"d":""},"identity":{"v":15,"d":""},"identityWord":{"v":3,"d":""},"stop":{"v":0,"d":"Base fee of the STOP opcode"},"add":{"v":3,"d":"Base fee of the ADD opcode"},"mul":{"v":5,"d":"Base fee of the MUL opcode"},"sub":{"v":3,"d":"Base fee of the SUB opcode"},"div":{"v":5,"d":"Base fee of the DIV opcode"},"sdiv":{"v":5,"d":"Base fee of the SDIV opcode"},"mod":{"v":5,"d":"Base fee of the MOD opcode"},"smod":{"v":5,"d":"Base fee of the SMOD opcode"},"addmod":{"v":8,"d":"Base fee of the ADDMOD opcode"},"mulmod":{"v":8,"d":"Base fee of the MULMOD opcode"},"signextend":{"v":5,"d":"Base fee of the SIGNEXTEND opcode"},"lt":{"v":3,"d":"Base fee of the LT opcode"},"gt":{"v":3,"d":"Base fee of the GT opcode"},"slt":{"v":3,"d":"Base fee of the SLT opcode"},"sgt":{"v":3,"d":"Base fee of the SGT opcode"},"eq":{"v":3,"d":"Base fee of the EQ opcode"},"iszero":{"v":3,"d":"Base fee of the ISZERO opcode"},"and":{"v":3,"d":"Base fee of the AND opcode"},"or":{"v":3,"d":"Base fee of the OR opcode"},"xor":{"v":3,"d":"Base fee of the XOR opcode"},"not":{"v":3,"d":"Base fee of the NOT opcode"},"byte":{"v":3,"d":"Base fee of the BYTE opcode"},"address":{"v":2,"d":"Base fee of the ADDRESS opcode"},"balance":{"v":20,"d":"Base fee of the BALANCE opcode"},"origin":{"v":2,"d":"Base fee of the ORIGIN opcode"},"caller":{"v":2,"d":"Base fee of the CALLER opcode"},"callvalue":{"v":2,"d":"Base fee of the CALLVALUE opcode"},"calldataload":{"v":3,"d":"Base fee of the CALLDATALOAD opcode"},"calldatasize":{"v":2,"d":"Base fee of the CALLDATASIZE opcode"},"calldatacopy":{"v":3,"d":"Base fee of the CALLDATACOPY opcode"},"codesize":{"v":2,"d":"Base fee of the CODESIZE opcode"},"codecopy":{"v":3,"d":"Base fee of the CODECOPY opcode"},"gasprice":{"v":2,"d":"Base fee of the GASPRICE opcode"},"extcodesize":{"v":20,"d":"Base fee of the EXTCODESIZE opcode"},"extcodecopy":{"v":20,"d":"Base fee of the EXTCODECOPY opcode"},"blockhash":{"v":20,"d":"Base fee of the BLOCKHASH opcode"},"coinbase":{"v":2,"d":"Base fee of the COINBASE opcode"},"timestamp":{"v":2,"d":"Base fee of the TIMESTAMP opcode"},"number":{"v":2,"d":"Base fee of the NUMBER opcode"},"difficulty":{"v":2,"d":"Base fee of the DIFFICULTY opcode"},"gaslimit":{"v":2,"d":"Base fee of the GASLIMIT opcode"},"pop":{"v":2,"d":"Base fee of the POP opcode"},"mload":{"v":3,"d":"Base fee of the MLOAD opcode"},"mstore":{"v":3,"d":"Base fee of the MSTORE opcode"},"mstore8":{"v":3,"d":"Base fee of the MSTORE8 opcode"},"sstore":{"v":0,"d":"Base fee of the SSTORE opcode"},"jump":{"v":8,"d":"Base fee of the JUMP opcode"},"jumpi":{"v":10,"d":"Base fee of the JUMPI opcode"},"pc":{"v":2,"d":"Base fee of the PC opcode"},"msize":{"v":2,"d":"Base fee of the MSIZE opcode"},"gas":{"v":2,"d":"Base fee of the GAS opcode"},"push":{"v":3,"d":"Base fee of the PUSH opcode"},"dup":{"v":3,"d":"Base fee of the DUP opcode"},"swap":{"v":3,"d":"Base fee of the SWAP opcode"},"callcode":{"v":40,"d":"Base fee of the CALLCODE opcode"},"return":{"v":0,"d":"Base fee of the RETURN opcode"},"invalid":{"v":0,"d":"Base fee of the INVALID opcode"},"selfdestruct":{"v":0,"d":"Base fee of the SELFDESTRUCT opcode"}},"vm":{"stackLimit":{"v":1024,"d":"Maximum size of VM stack allowed"},"callCreateDepth":{"v":1024,"d":"Maximum depth of call/create stack"},"maxExtraDataSize":{"v":32,"d":"Maximum size extra data may be after Genesis"}},"pow":{"minimumDifficulty":{"v":131072,"d":"The minimum that the difficulty may ever be"},"difficultyBoundDivisor":{"v":2048,"d":"The bound divisor of the difficulty, used in the update calculations"},"durationLimit":{"v":13,"d":"The decision boundary on the blocktime duration used to determine whether difficulty should go up or not"},"epochDuration":{"v":30000,"d":"Duration between proof-of-work epochs"},"timebombPeriod":{"v":100000,"d":"Exponential difficulty timebomb period"},"minerReward":{"v":"5000000000000000000","d":"the amount a miner get rewarded for mining a block"},"difficultyBombDelay":{"v":0,"d":"the amount of blocks to delay the difficulty bomb with"}}}`);
57213    }, 5993: (e3) => {
57214      e3.exports = JSON.parse(`{"name":"constantinople","comment":"Postponed hardfork including EIP-1283 (SSTORE gas metering changes)","url":"https://eips.ethereum.org/EIPS/eip-1013","status":"Final","gasConfig":{},"gasPrices":{"netSstoreNoopGas":{"v":200,"d":"Once per SSTORE operation if the value doesn't change"},"netSstoreInitGas":{"v":20000,"d":"Once per SSTORE operation from clean zero"},"netSstoreCleanGas":{"v":5000,"d":"Once per SSTORE operation from clean non-zero"},"netSstoreDirtyGas":{"v":200,"d":"Once per SSTORE operation from dirty"},"netSstoreClearRefund":{"v":15000,"d":"Once per SSTORE operation for clearing an originally existing storage slot"},"netSstoreResetRefund":{"v":4800,"d":"Once per SSTORE operation for resetting to the original non-zero value"},"netSstoreResetClearRefund":{"v":19800,"d":"Once per SSTORE operation for resetting to the original zero value"},"shl":{"v":3,"d":"Base fee of the SHL opcode"},"shr":{"v":3,"d":"Base fee of the SHR opcode"}
57214,"sar":{"v":3,"d":"Base fee of the SAR opcode"},"extcodehash":{"v":400,"d":"Base fee of the EXTCODEHASH opcode"},"create2":{"v":32000,"d":"Base fee of the CREATE2 opcode"}},"vm":{},"pow":{"minerReward":{"v":"2000000000000000000","d":"The amount a miner gets rewarded for mining a block"},"difficultyBombDelay":{"v":5000000,"d":"the amount of blocks to delay the difficulty bomb with"}}}`);
57215    }, 7197: (e3) => {
57216      e3.exports = JSON.parse('{"name":"dao","comment":"DAO rescue hardfork","url":"https://eips.ethereum.org/EIPS/eip-779","status":"Final","gasConfig":{},"gasPrices":{},"vm":{},"pow":{}}');
57217    }, 2800: (e3) => {
57218      e3.exports = JSON.parse('{"name":"homestead","comment":"Homestead hardfork with protocol and network changes","url":"https://eips.ethereum.org/EIPS/eip-606","status":"Final","gasConfig":{},"gasPrices":{"delegatecall":{"v":40,"d":"Base fee of the DELEGATECALL opcode"}},"vm":{},"pow":{}}');
57219    }, 3166: (e3) => {
57220      e3.exports = JSON.parse(`{"name":"istanbul","comment":"HF targeted for December 2019 following the Constantinople/Petersburg HF","url":"https://eips.ethereum.org/EIPS/eip-1679","status":"Draft","gasConfig":{},"gasPrices":{"blake2Round":{"v":1,"d":"Gas cost per round for the Blake2 F precompile"},"ecAdd":{"v":150,"d":"Gas costs for curve addition precompile"},"ecMul":{"v":6000,"d":"Gas costs for curve multiplication precompile"},"ecPairing":{"v":45000,"d":"Base gas costs for curve pairing precompile"},"ecPairingWord":{"v":34000,"d":"Gas costs regarding curve pairing precompile input length"},"txDataNonZero":{"v":16,"d":"Per byte of data attached to a transaction that is not equal to zero. NOTE: Not payable on data of calls between transactions"},"sstoreSentryGasEIP2200":{"v":2300,"d":"Minimum gas required to be present for an SSTORE call, not consumed"},"sstoreNoopGasEIP2200":{"v":800,"d":"Once per SSTORE operation if the value doesn't change"},"sstoreDirtyGasEIP2200":{"v":800,"d":"Once per SSTORE operation if a dirty value is changed"},"sstoreInitGasEIP2200":{"v":20000,"d":"Once per SSTORE operation from clean zero to non-zero"},"sstoreInitRefundEIP2200":{"v":19200,"d":"Once per SSTORE operation for resetting to the original zero value"},"sstoreCleanGasEIP2200":{"v":5000,"d":"Once per SSTORE operation from clean non-zero to something else"},"sstoreCleanRefundEIP2200":{"v":4200,"d":"Once per SSTORE operation for resetting to the original non-zero value"},"sstoreClearRefundEIP2200":{"v":15000,"d":"Once per SSTORE operation for clearing an originally existing storage slot"},"balance":{"v":700,"d":"Base fee of the BALANCE opcode"},"extcodehash":{"v":700,"d":"Base fee of the EXTCODEHASH opcode"},"chainid":{"v":2,"d":"Base fee of the CHAINID opcode"},"selfbalance":{"v":5,"d":"Base fee of the SELFBALANCE opcode"},"sload":{"v":800,"d":"Base fee of the SLOAD opcode"}},"vm":{},"pow":{}}`);
57221    }, 1250: (e3) => {
57222      e3.exports = JSON.parse('{"name":"london","comment":"HF targeted for July 2021 following the Berlin fork","url":"https://github.com/ethereum/eth1.0-specs/blob/master/network-upgrades/mainnet-upgrades/london.md","status":"Draft","eips":[1559,3198,3529,3541]}');
57223    }, 8648: (e3) => {
57224      e3.exports = JSON.parse('{"name":"merge","comment":"Hardfork to upgrade the consensus mechanism to Proof-of-Stake","url":"https://github.com/ethereum/pm/issues/361","status":"pre-Draft","consensus":{"type":"pos","algorithm":"casper","casper":{}},"eips":[3675]}');
57225    }, 2946: (e3) => {
57226      e3.exports = JSON.parse('{"name":"muirGlacier","comment":"HF to delay the difficulty bomb","url":"https://eips.ethereum.org/EIPS/eip-2384","status":"Final","gasConfig":{},"gasPrices":{},"vm":{},"pow":{"difficultyBombDelay":{"v":9000000,"d":"the amount of blocks to delay the difficulty bomb with"}}}');
57227    }, 4064: (e3) => {
57228      e3.exports = JSON.parse('{"name":"petersburg","comment":"Aka constantinopleFix, removes EIP-1283, activate together with or after constantinople","url":"https://eips.ethereum.org/EIPS/eip-1716","status":"Draft","gasConfig":{},"gasPrices":{"netSstoreNoopGas":{"v":null,"d":"Removed along EIP-1283"},"netSstoreInitGas":{"v":null,"d":"Removed along EIP-1283"},"netSstoreCleanGas":{"v":null,"d":"Removed along EIP-1283"},"netSstoreDirtyGas":{"v":null,"d":"Removed along EIP-1283"},"netSstoreClearRefund":{"v":null,"d":"Removed along EIP-1283"},"netSstoreResetRefund":{"v":null,"d":"Removed along EIP-1283"},"netSstoreResetClearRefund":{"v":null,"d":"Removed along EIP-1283"}},"vm":{},"pow":{}}');
57229    }, 5553: (e3) => {
57230      e3.exports = JSON.parse('{"name":"shanghai","comment":"Next feature hardfork after the London HF","url":"https://github.com/ethereum/pm/issues/356","status":"Pre-Draft","eips":[]}');
57231    }, 716: (e3) => {
57232      e3.exports = JSON.parse('{"name":"spuriousDragon","comment":"HF with EIPs for simple replay attack protection, EXP cost increase, state trie clearing, contract code size limit","url":"https://eips.ethereum.org/EIPS/eip-607","status":"Final","gasConfig":{},"gasPrices":{"expByte":{"v":50,"d":"Times ceil(log256(exponent)) for the EXP instruction"}},"vm":{"maxCodeSize":{"v":24576,"d":"Maximum length of contract code"}},"pow":{}}');
57233    }, 2302: (e3) => {
57234      e3.exports = JSON.parse('{"name":"tangerineWhistle","comment":"Hardfork with gas cost changes for IO-heavy operations","url":"https://eips.ethereum.org/EIPS/eip-608","status":"Final","gasConfig":{},"gasPrices":{"sload":{"v":200,"d":"Once per SLOAD operation"},"call":{"v":700,"d":"Once per CALL operation & message call transaction"},"extcodesize":{"v":700,"d":"Base fee of the EXTCODESIZE opcode"},"extcodecopy":{"v":700,"d":"Base fee of the EXTCODECOPY opcode"},"balance":{"v":400,"d":"Base fee of the BALANCE opcode"},"delegatecall":{"v":700,"d":"Base fee of the DELEGATECALL opcode"},"callcode":{"v":700,"d":"Base fee of the CALLCODE opcode"},"selfdestruct":{"v":5000,"d":"Base fee of the SELFDESTRUCT opcode"}},"vm":{},"pow":{}}');
57235    }, 4946: (e3) => {
57236      e3.exports = JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"}
57236,"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}');
57237    }, 5207: (e3) => {
57238      e3.exports = JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}');
57239    }, 1308: (e3) => {
57240      e3.exports = JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}');
57241    }, 3630: (e3) => {
57242      e3.exports = JSON.parse('{"identity":0,"ip4":4,"tcp":6,"sha1":17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,"blake3":30,"dccp":33,"murmur3-128":34,"murmur3-32":35,"ip6":41,"ip6zone":42,"path":47,"multicodec":48,"multihash":49,"multiaddr":50,"multibase":51,"dns":53,"dns4":54,"dns6":55,"dnsaddr":56,"protobuf":80,"cbor":81,"raw":85,"dbl-sha2-256":86,"rlp":96,"bencode":99,"dag-pb":112,"dag-cbor":113,"libp2p-key":114,"git-raw":120,"torrent-info":123,"torrent-file":124,"leofcoin-block":129,"leofcoin-tx":130,"leofcoin-pr":131,"sctp":132,"dag-jose":133,"dag-cose":134,"eth-block":144,"eth-block-list":145,"eth-tx-trie":146,"eth-tx":147,"eth-tx-receipt-tr
57242ie":148,"eth-tx-receipt":149,"eth-state-trie":150,"eth-account-snapshot":151,"eth-storage-trie":152,"bitcoin-block":176,"bitcoin-tx":177,"bitcoin-witness-commitment":178,"zcash-block":192,"zcash-tx":193,"stellar-block":208,"stellar-tx":209,"md4":212,"md5":213,"bmt":214,"decred-block":224,"decred-tx":225,"ipld-ns":226,"ipfs-ns":227,"swarm-ns":228,"ipns-ns":229,"zeronet":230,"secp256k1-pub":231,"bls12_381-g1-pub":234,"bls12_381-g2-pub":235,"x25519-pub":236,"ed25519-pub":237,"dash-block":240,"dash-tx":241,"swarm-manifest":250,"swarm-feed":251,"udp":273,"p2p-webrtc-star":275,"p2p-webrtc-direct":276,"p2p-stardust":277,"p2p-circuit":290,"dag-json":297,"udt":301,"utp":302,"unix":400,"p2p":421,"ipfs":421,"https":443,"onion":444,"onion3":445,"garlic64":446,"garlic32":447,"tls":448,"quic":460,"ws":477,"wss":478,"p2p-websocket-star":479,"http":480,"json":512,"messagepack":513,"libp2p-peer-record":769,"sha2-256-trunc254-padded":4114,"ripemd-128":4178,"ripemd-160":4179,"ripemd-256":4180,"ripemd-320":4181,"x11":4352,"sm3-256":21325,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"
57242skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46000,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"poseidon-bls12_381-a2-fc1":46081,"poseidon-bls12_381-a2-fc1-sc":46082,"zeroxcert-imprint-256":52753,"fil-commitment-unsealed":61697,"fil-commitment-sealed":61698,"holochain-adr-v0":8417572,"holochain-adr-v1":8483108,"holochain-key-v0":9728292,"holochain-key-v1":9793828,"holochain-sig-v0":10645796,"holochain-sig-v1":10711332}');
57243    }, 9799: (e3) => {
57244      e3.exports = JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd4
5724407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}');
57245    }, 8597: (e3) => {
57246      e3.exports = { i8: "6.5.4" };
57247    }, 4070: (e3) => {
57248      e3.exports = JSON.parse('{"identity":0,"ip4":4,"tcp":6,"sha1":17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,"dccp":33,"murmur3-128":34,"murmur3-32":35,"ip6":41,"ip6zone":42,"path":47,"multicodec":48,"multihash":49,"multiaddr":50,"multibase":51,"dns":53,"dns4":54,"dns6":55,"dnsaddr":56,"protobuf":80,"cbor":81,"raw":85,"dbl-sha2-256":86,"rlp":96,"bencode":99,"dag-pb":112,"dag-cbor":113,"libp2p-key":114,"git-raw":120,"torrent-info":123,"torrent-file":124,"leofcoin-block":129,"leofcoin-tx":130,"leofcoin-pr":131,"sctp":132,"eth-block":144,"eth-block-list":145,"eth-tx-trie":146,"eth-tx":147,"eth-tx-receipt-trie":148,"eth-tx-receipt":149,"eth-state-trie":150,"eth-account-snapshot":151,"eth-storage-trie":152,"bitcoin-block":176,"bitcoin-tx":177,"zcash-block":192,"zcash-tx":193,"stellar-block":208,"stellar-tx":209,"md4":212,"md5":213,"bmt":214,"decred-block":224,"decred-tx":225,"ipld-ns":226,"ipfs-ns":227,"swarm-ns":228,"ipns-ns":229,"zeronet":230,"ed25519-pub":237,"dash-block":240,"dash-tx":241,"swarm-manifest":250,"swarm-feed":251,"udp":273,"p2p-webrtc-star":275,"p2p-webrtc-direct":276,"p2p-stardust":277,"p2p-circuit":290,"dag-json":297,"udt":301,"utp":302,"unix":400,"p2p":421,"ipfs":421,"https":443,"onion":444,"onion3":445,"garlic64":446,"garlic32":447,"tls":448,"quic":460,"ws":477,"wss":478,"p2p-websocket-star":479,"http":480,"json":512,"messagepack":513,"x11":4352,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-
5724856":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46000,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"
57248skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"holochain-adr-v0":8417572,"holochain-adr-v1":8483108,"holochain-key-v0":9728292,"holochain-key-v1":9793828,"holochain-sig-v0":10645796,"holochain-sig-v1":10711332}');
57249    }, 2562: (e3) => {
57250      e3.exports = JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}');
57251    }, 9794: (e3) => {
57252      e3.exports = { version: "1.0.34" };
57253    }, 8920: (e3) => {
57254      e3.exports = { i8: "1.8.2" };
57255    } }, t2 = {};
57256    function r2(n2) {
57257      var i = t2[n2];
57258      if (void 0 !== i)
57259        return i.exports;
57260      var o = t2[n2] = { id: n2, loaded: false, exports: {} };
57261      return e2[n2](o, o.exports, r2), o.loaded = true, o.exports;
57262    }
57263    return r2.amdO = {}, r2.g = function() {
57264      if ("object" == typeof globalThis)
57265        return globalThis;
57266      try {
57267        return this || new Function("return this")();
57268      } catch (e3) {
57269        if ("object" == typeof window)
57270          return window;
57271      }
57272    }(), r2.nmd = (e3) => (e3.paths = [], e3.children || (e3.children = []), e3), r2(7001);
57273  })());
57274})(web3_min);
57275const Web3 = /* @__PURE__ */ getDefaultExportFromCjs(web3_minExports);
57276const Home = () => {
57277  const [message, setMessage] = React$1.useState("");
57278  const [address, setAddress] = React$1.useState("");
57279  const [signature, setSignature] = React$1.useState("");
57280  const [sdk, setSdk] = React$1.useState({});
57281  const handleInputChangeMessage = (e2) => setMessage(e2.target.value);
57282  const onStart = async function() {
57283    try {
57284      localStorage.setItems("chakra-ui-color-mode", "dark");
57285      const spec2 = "http://localhost:1646/spec/swagger.json";
57286      const apiKey = localStorage.getItem("apiKey") || "1234";
57287      const config2 = {
57288        apiKey,
57289        pairingInfo: {
57290          name: "eth message signer",
57291          imageUrl: "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR_DfChah0zu_wAkVFIPftsaBz_9UfSd2dxug&usqp=CAU",
57292          basePath: spec2,
57293          url: "http://localhost:1646"
57294        }
57295      };
57296      const sdkInit = await dist.KeepKeySdk.create(config2);
57297      setSdk(sdkInit);
57298      if (config2.apiKey !== apiKey)
57299        localStorage.setItem("apiKey", config2.apiKey);
57300      const addressInfo = {
57301        addressNList: [2147483692, 2147483708, 2147483648, 0, 0],
57302        coin: "Ethereum",
57303        scriptType: "ethereum",
57304        showDisplay: false
57305      };
57306      const responseAddress = await sdk.address.ethereumGetAddress({
57307        address_n: addressInfo.addressNList
57308      });
57309      console.log("responseAddress: ", responseAddress.address);
57310      setAddress(responseAddress.address);
57311      console.log("apiKey: ", config2.apiKey);
57312    } catch (e2) {
57313      console.error(e2);
57314    }
57315  };
57316  const onSubmit = async function() {
57317    try {
57318      console.log("message: ", message);
57319      if (sdk && (sdk == null ? void 0 : sdk.eth)) {
57320        const addressInfo = {
57321          addressNList: [2147483692, 2147483708, 2147483648, 0, 0],
57322          coin: "Ethereum",
57323          scriptType: "ethereum",
57324          showDisplay: false
57325        };
57326        const responseAddress = await sdk.address.ethereumGetAddress({
57327          address_n: addressInfo.addressNList
57328        });
57329        console.log("responseAddress: ", responseAddress.address);
57330        setAddress(responseAddress.address);
57331        const msg = {
57332          message: Web3.utils.toHex(message),
57333          address: "0x2356A15042F98f0a53784F42237bd4b2873AADCF"
57334        };
57335        const responseSign = await sdk.eth.ethSign(msg);
57336        setSignature(responseSign);
57337        console.log("responseSign: ", responseSign);
57338      }
57339    } catch (e2) {
57340      console.error(e2);
57341    }
57342  };
57343  const isError = false;
57344  reactExports.useEffect(() => {
57345    onStart();
57346  }, []);
57347  return /* @__PURE__ */ jsxs(Grid, { gap: 4, children: [
57348    /* @__PURE__ */ jsxs("div", { children: [
57349      /* @__PURE__ */ jsxs(FormControl, { isInvalid: isError, children: [
57350        /* @__PURE__ */ jsxs(FormLabel, { children: [
57351          "Sign a message! address: ",
57352          address
57353        ] }),
57354        /* @__PURE__ */ jsx(
57355          Input,
57356          {
57357            type: "email",
57358            value: message,
57359            onChange: handleInputChangeMessage
57360          }
57361        ),
57362        /* @__PURE__ */ jsx(FormHelperText, { children: "Enter your message" })
57363      ] }),
57364      /* @__PURE__ */ jsx(
57365        Button,
57366        {
57367          mt: 4,
57368          colorScheme: "teal",
57369          type: "submit",
57370          onClick: () => onSubmit(),
57371          children: "Submit"
57372        }
57373      )
57374    ] }),
57375    /* @__PURE__ */ jsx("div", { children: signature ? /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs("small", { children: [
57376      "signature: ",
57377      signature
57378    ] }) }) : /* @__PURE__ */ jsx("div", { children: "no sig" }) })
57379  ] });
57380};
57381const routes = [
57382  {
57383    path: "/",
57384    element: /* @__PURE__ */ jsx(Home, {})
57385  }
57386];
57387const privateRoutes = [];
57388const Routings = () => {
57389  return /* @__PURE__ */ jsxs(Routes, { children: [
57390    routes.map((routeProps) => /* @__PURE__ */ reactExports.createElement(Route, { ...routeProps, key: routeProps.path })),
57391    privateRoutes.map(({ element, ...privateRouteProps }) => /* @__PURE__ */ reactExports.createElement(
57392      Route,
57393      {
57394        element: /* @__PURE__ */ jsx(
57395          RequireAuth,
57396          {
57397            redirectTo: `/login?redirectTo=${privateRouteProps.path}`,
57398            children: element
57399          }
57400        ),
57401        ...privateRouteProps,
57402        key: `privateRoute-${privateRouteProps.path}`
57403      }
57404    )),
57405    /* @__PURE__ */ jsx(Route, { path: "*", element: /* @__PURE__ */ jsx(Page404, {}) })
57406  ] });
57407};
57408const App = () => /* @__PURE__ */ jsx(ChakraProvider, { theme, children: /* @__PURE__ */ jsx(BrowserRouter, { children: /* @__PURE__ */ jsx(Layout, { children: /* @__PURE__ */ jsx(Routings, {}) }) }) });
57409const root = client.createRoot(
57410  document.getElementById("root")
57411);
57412root.render(
57413  /* @__PURE__ */ jsxs(reactExports.StrictMode, { children: [
57414    /* @__PURE__ */ jsx(ColorModeScript, { initialColorMode: (_a4 = theme.config) == null ? void 0 : _a4.initialColorMode }),
57415    /* @__PURE__ */ jsx(App, {})
57416  ] })
57417);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.